@segmentify/ui 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/badge.d.ts +1 -1
- package/dist/components/atoms/button.d.ts +6 -3
- package/dist/components/atoms/carousel.d.ts +1 -1
- package/dist/components/atoms/command.d.ts +4 -2
- package/dist/components/atoms/label.d.ts +1 -1
- package/dist/components/atoms/quill-editor.d.ts +11 -0
- package/dist/components/atoms/sidebar.d.ts +4 -4
- package/dist/components/atoms/sonner.d.ts +3 -0
- package/dist/components/atoms/tooltip.d.ts +2 -1
- package/dist/components/molecules/base-button.d.ts +29 -0
- package/dist/components/molecules/campaign-title.d.ts +9 -0
- package/dist/components/molecules/checkbox-field.d.ts +10 -0
- package/dist/components/molecules/combobox-field.d.ts +32 -0
- package/dist/components/molecules/confirmation-dialog.d.ts +24 -0
- package/dist/components/molecules/creatable-action-icons.d.ts +9 -0
- package/dist/components/molecules/date-range-picker.d.ts +15 -0
- package/dist/components/molecules/debounced-input.d.ts +11 -0
- package/dist/components/molecules/detailed-image-modal.d.ts +18 -0
- package/dist/components/molecules/input-field.d.ts +19 -0
- package/dist/components/molecules/multi-select-dropdown.d.ts +18 -0
- package/dist/components/molecules/select-field.d.ts +16 -0
- package/dist/components/molecules/select-multi-field.d.ts +20 -0
- package/dist/components/molecules/switch-field.d.ts +7 -0
- package/dist/components/molecules/textarea-field.d.ts +11 -0
- package/dist/components/molecules/tooltip-field.d.ts +13 -0
- package/dist/components/organisms/form-checkbox.d.ts +7 -0
- package/dist/components/organisms/form-combobox.d.ts +24 -0
- package/dist/components/organisms/form-file-upload.d.ts +19 -0
- package/dist/components/organisms/form-input.d.ts +12 -0
- package/dist/components/organisms/form-password.d.ts +12 -0
- package/dist/components/organisms/form-radio.d.ts +13 -0
- package/dist/components/organisms/form-switch.d.ts +7 -0
- package/dist/components/organisms/form-textarea.d.ts +9 -0
- package/dist/index.d.ts +28 -15
- package/dist/lib/design-variants.d.ts +3 -0
- package/dist/lib/types.d.ts +7 -0
- package/dist/segmentify-ui.cjs +81 -33
- package/dist/segmentify-ui.js +27012 -18258
- package/package.json +2 -2
- package/dist/components/atoms/load-more.d.ts +0 -6
- package/dist/components/atoms/select-multi.d.ts +0 -28
- package/dist/components/atoms/table-whatsapp.d.ts +0 -35
- package/dist/vite.svg +0 -1
- /package/dist/{App.d.ts → app.d.ts} +0 -0
package/dist/segmentify-ui.cjs
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),E=require("react"),Gd=require("react-dom");function kv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const p=kv(E),ei=kv(Gd);function t1(e,t){const n=p.createContext(t),r=a=>{const{children:i,...s}=a,c=p.useMemo(()=>s,Object.values(s));return y.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ze(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i),c=n.length;n=[...n,i];const l=d=>{const{scope:f,children:g,...b}=d,m=f?.[e]?.[c]||s,h=p.useMemo(()=>b,Object.values(b));return y.jsx(m.Provider,{value:h,children:g})};l.displayName=a+"Provider";function u(d,f){const g=f?.[e]?.[c]||s,b=p.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const c=s?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,n1(o,...t)]}function n1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Cp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cp(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cp(e[o],null)}}}}function pe(...e){return p.useCallback(Yt(...e),e)}function Dn(e){const t=r1(e),n=p.forwardRef((r,o)=>{const{children:a,...i}=r,s=p.Children.toArray(a),c=s.find(a1);if(c){const l=c.props.children,u=s.map(d=>d===c?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return y.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,u):null})}return y.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function r1(e){const t=p.forwardRef((n,r)=>{const{children:o,...a}=n;if(p.isValidElement(o)){const i=s1(o),s=i1(a,o.props);return o.type!==p.Fragment&&(s.ref=r?Yt(r,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fv=Symbol("radix.slottable");function o1(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fv,t}function a1(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fv}function i1(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function s1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wo(e){const t=e+"CollectionProvider",[n,r]=ze(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:h,children:v}=m,x=E.useRef(null),w=E.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:v})};i.displayName=t;const s=e+"CollectionSlot",c=Dn(s),l=E.forwardRef((m,h)=>{const{scope:v,children:x}=m,w=a(s,v),C=pe(h,w.collectionRef);return y.jsx(c,{ref:C,children:x})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Dn(u),g=E.forwardRef((m,h)=>{const{scope:v,children:x,...w}=m,C=E.useRef(null),S=pe(h,C),A=a(u,v);return E.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>{A.itemMap.delete(C)})),y.jsx(f,{[d]:"",ref:S,children:x})});g.displayName=u;function b(m){const h=a(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((A,I)=>w.indexOf(A.ref.current)-w.indexOf(I.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},b,r]}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ke=globalThis?.document?p.useLayoutEffect:()=>{},c1=p[" useInsertionEffect ".trim().toString()]||ke;function et({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=l1({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const l=p.useCallback(u=>{if(s){const d=u1(u)?u(e):u;d!==e&&i.current?.(d)}else a(u)},[s,e,a,i]);return[c,l]}function l1({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),a=p.useRef(t);return c1(()=>{a.current=t},[t]),p.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function u1(e){return typeof e=="function"}var d1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=d1.reduce((e,t)=>{const n=Dn(`Primitive.${t}`),r=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bv(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}function f1(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Xe=e=>{const{present:t,children:n}=e,r=p1(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),a=pe(r.ref,m1(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:a}):null};Xe.displayName="Presence";function p1(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,c]=f1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Xo(r.current);a.current=s==="mounted"?l:"none"},[s]),ke(()=>{const l=r.current,u=o.current;if(u!==e){const f=a.current,g=Xo(l);e?c("MOUNT"):g==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ke(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const m=Xo(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=g=>{g.target===t&&(a.current=Xo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Xo(e){return e?.animationName||"none"}function m1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h1=p[" useId ".trim().toString()]||(()=>{}),g1=0;function Le(e){const[t,n]=p.useState(h1());return ke(()=>{n(r=>r??String(g1++))},[e]),t?`radix-${t}`:""}var ti="Collapsible",[b1,jv]=ze(ti),[v1,Ld]=b1(ti),Gv=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c,l]=et({prop:r,defaultProp:o??!1,onChange:i,caller:ti});return y.jsx(v1,{scope:n,disabled:a,contentId:Le(),open:c,onOpenToggle:p.useCallback(()=>l(u=>!u),[l]),children:y.jsx(oe.div,{"data-state":$d(c),"data-disabled":a?"":void 0,...s,ref:t})})});Gv.displayName=ti;var Lv="CollapsibleTrigger",Wd=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ld(Lv,n);return y.jsx(oe.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$d(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:X(e.onClick,o.onOpenToggle)})});Wd.displayName=Lv;var Vd="CollapsibleContent",Hd=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ld(Vd,e.__scopeCollapsible);return y.jsx(Xe,{present:n||o.open,children:({present:a})=>y.jsx(y1,{...r,ref:t,present:a})})});Hd.displayName=Vd;var y1=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Ld(Vd,n),[s,c]=p.useState(r),l=p.useRef(null),u=pe(t,l),d=p.useRef(0),f=d.current,g=p.useRef(0),b=g.current,m=i.open||s,h=p.useRef(m),v=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),ke(()=>{const x=l.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,g.current=w.width,h.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),c(r)}},[i.open,r]),y.jsx(oe.div,{"data-state":$d(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:m&&o})});function $d(e){return e?"open":"closed"}var Wv=Gv,x1=Wd,w1=Hd,C1=p.createContext(void 0);function wn(e){const t=p.useContext(C1);return e||t||"ltr"}var Dt="Accordion",S1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[zd,I1,E1]=wo(Dt),[ni]=ze(Dt,[E1,jv]),Xd=jv(),Vv=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return y.jsx(zd.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?y.jsx(O1,{...a,ref:t}):y.jsx(P1,{...o,ref:t})})});Vv.displayName=Dt;var[Hv,A1]=ni(Dt),[$v,R1]=ni(Dt,{collapsible:!1}),P1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=et({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return y.jsx(Hv,{scope:e.__scopeAccordion,value:E.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:y.jsx($v,{scope:e.__scopeAccordion,collapsible:a,children:y.jsx(zv,{...i,ref:t})})})}),O1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=et({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),c=E.useCallback(u=>s((d=[])=>[...d,u]),[s]),l=E.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return y.jsx(Hv,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:l,children:y.jsx($v,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(zv,{...a,ref:t})})})}),[T1,ri]=ni(Dt),zv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=E.useRef(null),c=pe(s,t),l=I1(n),d=wn(o)==="ltr",f=X(e.onKeyDown,g=>{if(!S1.includes(g.key))return;const b=g.target,m=l().filter(R=>!R.ref.current?.disabled),h=m.findIndex(R=>R.ref.current===b),v=m.length;if(h===-1)return;g.preventDefault();let x=h;const w=0,C=v-1,S=()=>{x=h+1,x>C&&(x=w)},A=()=>{x=h-1,x<w&&(x=C)};switch(g.key){case"Home":x=w;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(d?S():A());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(d?A():S());break;case"ArrowUp":a==="vertical"&&A();break}const I=x%v;m[I].ref.current?.focus()});return y.jsx(T1,{scope:n,disabled:r,direction:o,orientation:a,children:y.jsx(zd.Slot,{scope:n,children:y.jsx(oe.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:f})})})}),Sa="AccordionItem",[_1,Yd]=ni(Sa),Xv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ri(Sa,n),i=A1(Sa,n),s=Xd(n),c=Le(),l=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return y.jsx(_1,{scope:n,open:l,disabled:u,triggerId:c,children:y.jsx(Wv,{"data-orientation":a.orientation,"data-state":Kv(l),...s,...o,ref:t,disabled:u,open:l,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})})});Xv.displayName=Sa;var Yv="AccordionHeader",Zv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Yv,n);return y.jsx(oe.h3,{"data-orientation":o.orientation,"data-state":Kv(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Zv.displayName=Yv;var Hu="AccordionTrigger",qv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Hu,n),i=R1(Hu,n),s=Xd(n);return y.jsx(zd.ItemSlot,{scope:n,children:y.jsx(x1,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});qv.displayName=Hu;var Uv="AccordionContent",Jv=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ri(Dt,n),a=Yd(Uv,n),i=Xd(n);return y.jsx(w1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Jv.displayName=Uv;function Kv(e){return e?"open":"closed"}var M1=Vv,D1=Xv,N1=Zv,k1=qv,F1=Jv;const B1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Sp=e=>{const t=j1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),G1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var L1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const W1=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>E.createElement("svg",{ref:c,...L1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Qv("lucide",o),...!a&&!G1(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,u])=>E.createElement(l,u)),...Array.isArray(a)?a:[a]]));const qt=(e,t)=>{const n=E.forwardRef(({className:r,...o},a)=>E.createElement(W1,{ref:a,iconNode:t,className:Qv(`lucide-${B1(Sp(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Sp(e),n};const V1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],H1=qt("arrow-left",V1);const $1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],z1=qt("arrow-right",$1);const X1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Y1=qt("check",X1);const Z1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zd=qt("chevron-down",Z1);const q1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],U1=qt("chevron-left",q1);const J1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],K1=qt("chevron-right",J1);const Q1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ey=qt("loader-circle",Q1);const eE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tE=qt("panel-left",eE);const nE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rE=qt("search",nE);const oE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ty=qt("x",oE);function ny(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ny(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ny(e))&&(r&&(r+=" "),r+=t);return r}const aE=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},iE=(e,t)=>({classGroupId:e,validator:t}),ry=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ia="-",Ip=[],sE="arbitrary..",cE=e=>{const t=uE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return lE(i);const s=i.split(Ia),c=s[0]===""&&s.length>1?1:0;return oy(s,c,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const c=r[i],l=n[i];return c?l?aE(l,c):c:l||Ip}return n[i]||Ip}}},oy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const l=oy(e,t+1,a);if(l)return l}const i=n.validators;if(i===null)return;const s=t===0?e.join(Ia):e.slice(t).join(Ia),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(s))return u.classGroupId}},lE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?sE+r:void 0})(),uE=e=>{const{theme:t,classGroups:n}=e;return dE(n,t)},dE=(e,t)=>{const n=ry();for(const r in e){const o=e[r];qd(o,n,r,t)}return n},qd=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];fE(i,t,n,r)}},fE=(e,t,n,r)=>{if(typeof e=="string"){pE(e,t,n);return}if(typeof e=="function"){mE(e,t,n,r);return}hE(e,t,n,r)},pE=(e,t,n)=>{const r=e===""?t:ay(t,e);r.classGroupId=n},mE=(e,t,n,r)=>{if(gE(e)){qd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(iE(n,e))},hE=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[s,c]=o[i];qd(c,ay(t,s),n,r)}},ay=(e,t)=>{let n=e;const r=t.split(Ia),o=r.length;for(let a=0;a<o;a++){const i=r[a];let s=n.nextPart.get(i);s||(s=ry(),n.nextPart.set(i,s)),n=s}return n},gE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},$u="!",Ep=":",vE=[],Ap=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),yE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,l;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(i===0&&s===0){if(h===Ep){a.push(o.slice(c,m)),c=m+1;continue}if(h==="/"){l=m;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const d=a.length===0?o:o.slice(c);let f=d,g=!1;d.endsWith($u)?(f=d.slice(0,-1),g=!0):d.startsWith($u)&&(f=d.slice(1),g=!0);const b=l&&l>c?l-c:void 0;return Ap(a,g,f,b)};if(t){const o=t+Ep,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):Ap(vE,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},xE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],s=i[0]==="[",c=t.has(i);s||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},wE=e=>({cache:bE(e.cacheSize),parseClassName:yE(e),sortModifiers:xE(e),...cE(e)}),CE=/\s+/,SE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(CE);let c="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{isExternal:d,modifiers:f,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let h=!!m,v=r(h?b.substring(0,m):b);if(!v){if(!h){c=u+(c.length>0?" "+c:c);continue}if(v=r(b),!v){c=u+(c.length>0?" "+c:c);continue}h=!1}const x=f.length===0?"":f.length===1?f[0]:a(f).join(":"),w=g?x+$u:x,C=w+v;if(i.indexOf(C)>-1)continue;i.push(C);const S=o(v,h);for(let A=0;A<S.length;++A){const I=S[A];i.push(w+I)}c=u+(c.length>0?" "+c:c)}return c},IE=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=iy(n))&&(o&&(o+=" "),o+=r);return o},iy=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=iy(e[r]))&&(n&&(n+=" "),n+=t);return n},EE=(e,...t)=>{let n,r,o,a;const i=c=>{const l=t.reduce((u,d)=>d(u),e());return n=wE(l),r=n.cache.get,o=n.cache.set,a=s,s(c)},s=c=>{const l=r(c);if(l)return l;const u=SE(c,n);return o(c,u),u};return a=i,(...c)=>a(IE(...c))},AE=[],He=e=>{const t=n=>n[e]||AE;return t.isThemeGetter=!0,t},sy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RE=/^\d+\/\d+$/,PE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ME=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>RE.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),mn=e=>!!e&&Number.isInteger(Number(e)),ns=e=>e.endsWith("%")&&be(e.slice(0,-1)),an=e=>PE.test(e),DE=()=>!0,NE=e=>OE.test(e)&&!TE.test(e),ly=()=>!1,kE=e=>_E.test(e),FE=e=>ME.test(e),BE=e=>!ie(e)&&!se(e),jE=e=>wr(e,fy,ly),ie=e=>sy.test(e),Rn=e=>wr(e,py,NE),rs=e=>wr(e,HE,be),Rp=e=>wr(e,uy,ly),GE=e=>wr(e,dy,FE),Yo=e=>wr(e,my,kE),se=e=>cy.test(e),Nr=e=>Cr(e,py),LE=e=>Cr(e,$E),Pp=e=>Cr(e,uy),WE=e=>Cr(e,fy),VE=e=>Cr(e,dy),Zo=e=>Cr(e,my,!0),wr=(e,t,n)=>{const r=sy.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Cr=(e,t,n=!1)=>{const r=cy.exec(e);return r?r[1]?t(r[1]):n:!1},uy=e=>e==="position"||e==="percentage",dy=e=>e==="image"||e==="url",fy=e=>e==="length"||e==="size"||e==="bg-size",py=e=>e==="length",HE=e=>e==="number",$E=e=>e==="family-name",my=e=>e==="shadow",zE=()=>{const e=He("color"),t=He("font"),n=He("text"),r=He("font-weight"),o=He("tracking"),a=He("leading"),i=He("breakpoint"),s=He("container"),c=He("spacing"),l=He("radius"),u=He("shadow"),d=He("inset-shadow"),f=He("text-shadow"),g=He("drop-shadow"),b=He("blur"),m=He("perspective"),h=He("aspect"),v=He("ease"),x=He("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),se,ie],A=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],R=()=>[se,ie,c],P=()=>[Un,"full","auto",...R()],M=()=>[mn,"none","subgrid",se,ie],T=()=>["auto",{span:["full",mn,se,ie]},mn,se,ie],B=()=>[mn,"auto",se,ie],O=()=>["auto","min","max","fr",se,ie],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...R()],$=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,se,ie],V=()=>[...C(),Pp,Rp,{position:[se,ie]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",WE,jE,{size:[se,ie]}],k=()=>[ns,Nr,Rn],H=()=>["","none","full",l,se,ie],Y=()=>["",be,Nr,Rn],z=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[be,ns,Pp,Rp],q=()=>["","none",b,se,ie],ae=()=>["none",be,se,ie],re=()=>["none",be,se,ie],te=()=>[be,se,ie],F=()=>[Un,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[an],breakpoint:[an],color:[DE],container:[an],"drop-shadow":[an],ease:["in","out","in-out"],font:[BE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[an],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[an],shadow:[an],spacing:["px",be],text:[an],"text-shadow":[an],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,ie,se,h]}],container:["container"],columns:[{columns:[be,ie,se,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[mn,"auto",se,ie]}],basis:[{basis:[Un,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Un,"auto","initial","none",ie]}],grow:[{grow:["",be,se,ie]}],shrink:[{shrink:["",be,se,ie]}],order:[{order:[mn,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Nr,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,se,rs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ns,ie]}],"font-family":[{font:[LE,ie,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,se,ie]}],"line-clamp":[{"line-clamp":[be,"none",se,rs]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",se,Rn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[be,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mn,se,ie],radial:["",se,ie],conic:[mn,se,ie]},VE,GE]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,se,ie]}],"outline-w":[{outline:["",be,Nr,Rn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,Zo,Yo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Zo,Yo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[be,Rn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Zo,Yo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[be,se,ie]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:q()}],brightness:[{brightness:[be,se,ie]}],contrast:[{contrast:[be,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",g,Zo,Yo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",be,se,ie]}],"hue-rotate":[{"hue-rotate":[be,se,ie]}],invert:[{invert:["",be,se,ie]}],saturate:[{saturate:[be,se,ie]}],sepia:[{sepia:["",be,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[be,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[be,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",be,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[be,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[be,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",be,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",se,ie]}],ease:[{ease:["linear","initial",v,se,ie]}],delay:[{delay:[be,se,ie]}],animate:[{animate:["none",x,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,se,ie]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ie]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[be,Nr,Rn,rs]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},XE=EE(zE),hy=6048e5,YE=864e5,Op=Symbol.for("constructDateFrom");function We(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Op in e?e[Op](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return We(t||e,e)}function gy(e,t,n){const r=Oe(e,n?.in);return isNaN(t)?We(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function by(e,t,n){const r=Oe(e,n?.in);if(isNaN(t))return We(e,NaN);if(!t)return r;const o=r.getDate(),a=We(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let ZE={};function Co(){return ZE}function dr(e,t){const n=Co(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Oe(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function to(e,t){return dr(e,{...t,weekStartsOn:1})}function vy(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=We(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=to(o),i=We(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=to(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Tp(e){const t=Oe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sr(e,...t){const n=We.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function no(e,t){const n=Oe(e,t?.in);return n.setHours(0,0,0,0),n}function Ud(e,t,n){const[r,o]=Sr(n?.in,e,t),a=no(r),i=no(o),s=+a-Tp(a),c=+i-Tp(i);return Math.round((s-c)/YE)}function qE(e,t){const n=vy(e,t),r=We(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),to(r)}function UE(e,t,n){return gy(e,t*7,n)}function JE(e,t,n){return by(e,t*12,n)}function KE(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=We.bind(null,o));const a=Oe(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),We(r,n||NaN)}function QE(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=We.bind(null,o));const a=Oe(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),We(r,n||NaN)}function eA(e,t,n){const[r,o]=Sr(n?.in,e,t);return+no(r)==+no(o)}function yy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xy(e){return!(!yy(e)&&typeof e!="number"||isNaN(+Oe(e)))}function wy(e,t,n){const[r,o]=Sr(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function tA(e,t){const n=Oe(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Cy(e,t){const[n,r]=Sr(e,t.start,t.end);return{start:n,end:r}}function nA(e,t){const{start:n,end:r}=Cy(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const c=[];for(;+i<=a;)c.push(We(n,i)),i.setMonth(i.getMonth()+s);return o?c.reverse():c}function rA(e,t){const n=Oe(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function oA(e,t){const n=Oe(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Sy(e,t){const n=Oe(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function aA(e,t){const{start:n,end:r}=Cy(t?.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setMonth(0,1);let s=1;const c=[];for(;+i<=a;)c.push(We(n,i)),i.setFullYear(i.getFullYear()+s);return o?c.reverse():c}function Iy(e,t){const n=Co(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Oe(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function iA(e,t){return Iy(e,{...t,weekStartsOn:1})}const sA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cA=(e,t,n)=>{let r;const o=sA[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function os(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fA={date:os({formats:lA,defaultWidth:"full"}),time:os({formats:uA,defaultWidth:"full"}),dateTime:os({formats:dA,defaultWidth:"full"})},pA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mA=(e,t,n,r)=>pA[e];function kr(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const hA={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gA={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bA={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vA={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xA={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wA=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},CA={ordinalNumber:wA,era:kr({values:hA,defaultWidth:"wide"}),quarter:kr({values:gA,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kr({values:bA,defaultWidth:"wide"}),day:kr({values:vA,defaultWidth:"wide"}),dayPeriod:kr({values:yA,defaultWidth:"wide",formattingValues:xA,defaultFormattingWidth:"wide"})};function Fr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?IA(s,d=>d.test(i)):SA(s,d=>d.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}function SA(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function IA(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function EA(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const AA=/^(\d+)(th|st|nd|rd)?/i,RA=/\d+/i,PA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OA={any:[/^b/i,/^(a|c)/i]},TA={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_A={any:[/1/i,/2/i,/3/i,/4/i]},MA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},DA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},FA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},BA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},jA={ordinalNumber:EA({matchPattern:AA,parsePattern:RA,valueCallback:e=>parseInt(e,10)}),era:Fr({matchPatterns:PA,defaultMatchWidth:"wide",parsePatterns:OA,defaultParseWidth:"any"}),quarter:Fr({matchPatterns:TA,defaultMatchWidth:"wide",parsePatterns:_A,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fr({matchPatterns:MA,defaultMatchWidth:"wide",parsePatterns:DA,defaultParseWidth:"any"}),day:Fr({matchPatterns:NA,defaultMatchWidth:"wide",parsePatterns:kA,defaultParseWidth:"any"}),dayPeriod:Fr({matchPatterns:FA,defaultMatchWidth:"any",parsePatterns:BA,defaultParseWidth:"any"})},rr={code:"en-US",formatDistance:cA,formatLong:fA,formatRelative:mA,localize:CA,match:jA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GA(e,t){const n=Oe(e,t?.in);return Ud(n,Sy(n))+1}function Jd(e,t){const n=Oe(e,t?.in),r=+to(n)-+qE(n);return Math.round(r/hy)+1}function Ey(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=Co(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=We(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=dr(i,t),c=We(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const l=dr(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function LA(e,t){const n=Co(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Ey(e,t),a=We(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),dr(a,t)}function Kd(e,t){const n=Oe(e,t?.in),r=+dr(n,t)-+LA(n,t);return Math.round(r/hy)+1}function Pe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const hn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pe(n+1,2)},d(e,t){return Pe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Pe(e.getHours()%12||12,t.length)},H(e,t){return Pe(e.getHours(),t.length)},m(e,t){return Pe(e.getMinutes(),t.length)},s(e,t){return Pe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Pe(o,t.length)}},Jn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_p={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return hn.y(e,t)},Y:function(e,t,n,r){const o=Ey(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return Pe(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pe(a,t.length)},R:function(e,t){const n=vy(e);return Pe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Pe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Pe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return hn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Pe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Kd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Pe(o,t.length)},I:function(e,t,n){const r=Jd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):hn.d(e,t)},D:function(e,t,n){const r=GA(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Pe(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Jn.noon:r===0?o=Jn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Jn.evening:r>=12?o=Jn.afternoon:r>=4?o=Jn.morning:o=Jn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return hn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):hn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):hn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):hn.s(e,t)},S:function(e,t){return hn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Dp(r);case"XXXX":case"XX":return On(r);default:return On(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Dp(r);case"xxxx":case"xx":return On(r);default:return On(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mp(r,":");default:return"GMT"+On(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mp(r,":");default:return"GMT"+On(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Pe(r,t.length)},T:function(e,t,n){return Pe(+e,t.length)}};function Mp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+Pe(a,2)}function Dp(e,t){return e%60===0?(e>0?"-":"+")+Pe(Math.abs(e)/60,2):On(e,t)}function On(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Pe(Math.trunc(r/60),2),a=Pe(r%60,2);return n+o+t+a}const Np=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ay=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},WA=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Np(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Np(r,t)).replace("{{time}}",Ay(o,t))},VA={p:Ay,P:WA},HA=/^D+$/,$A=/^Y+$/,zA=["D","DD","YY","YYYY"];function XA(e){return HA.test(e)}function YA(e){return $A.test(e)}function ZA(e,t,n){const r=qA(e,t,n);if(console.warn(r),zA.includes(e))throw new RangeError(r)}function qA(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const UA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JA=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KA=/^'([^]*?)'?$/,QA=/''/g,eR=/[a-zA-Z]/;function _n(e,t,n){const r=Co(),o=n?.locale??r.locale??rr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Oe(e,n?.in);if(!xy(s))throw new RangeError("Invalid time value");let c=t.match(JA).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=VA[d];return f(u,o.formatLong)}return u}).join("").match(UA).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:tR(u)};if(_p[d])return{isToken:!0,value:u};if(d.match(eR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&YA(d)||!n?.useAdditionalDayOfYearTokens&&XA(d))&&ZA(d,t,String(e));const f=_p[d[0]];return f(s,d,o.localize,l)}).join("")}function tR(e){const t=e.match(KA);return t?t[1].replace(QA,"'"):e}function nR(e,t){const n=Oe(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=We(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function rR(e,t){return Oe(e,t?.in).getMonth()}function oR(e,t){return Oe(e,t?.in).getFullYear()}function aR(e,t){return+Oe(e)>+Oe(t)}function iR(e,t){return+Oe(e)<+Oe(t)}function sR(e,t,n){const[r,o]=Sr(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function cR(e,t,n){const[r,o]=Sr(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function lR(e,t,n){const r=Oe(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=We(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=nR(i);return r.setMonth(t,Math.min(a,s)),r}function uR(e,t,n){const r=Oe(e,n?.in);return isNaN(+r)?We(e,NaN):(r.setFullYear(t),r)}function D(...e){return XE(dn(e))}const dR=(e,t="yyyy-MM-dd")=>xy(e)?_n(e,t):_n(new Date,t);function fR({...e}){return y.jsx(M1,{"data-slot":"accordion",...e})}function pR({className:e,...t}){return y.jsx(D1,{"data-slot":"accordion-item",className:D("border-b last:border-b-0",e),...t})}function mR({className:e,children:t,...n}){return y.jsx(N1,{className:"flex",children:y.jsxs(k1,{"data-slot":"accordion-trigger",className:D("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,y.jsx(Zd,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function hR({className:e,children:t,...n}){return y.jsx(F1,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:y.jsx("div",{className:D("pt-0 pb-4",e),children:t})})}var gR=Symbol.for("react.lazy"),Ea=p[" use ".trim().toString()];function bR(e){return typeof e=="object"&&e!==null&&"then"in e}function Ry(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===gR&&"_payload"in e&&bR(e._payload)}function Py(e){const t=vR(e),n=p.forwardRef((r,o)=>{let{children:a,...i}=r;Ry(a)&&typeof Ea=="function"&&(a=Ea(a._payload));const s=p.Children.toArray(a),c=s.find(xR);if(c){const l=c.props.children,u=s.map(d=>d===c?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return y.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,u):null})}return y.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Cn=Py("Slot");function vR(e){const t=p.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ry(o)&&typeof Ea=="function"&&(o=Ea(o._payload)),p.isValidElement(o)){const i=CR(o),s=wR(a,o.props);return o.type!==p.Fragment&&(s.ref=r?Yt(r,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yR=Symbol("radix.slottable");function xR(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yR}function wR(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function CR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var SR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=SR.reduce((e,t)=>{const n=Py(`Primitive.${t}`),r=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),IR="AspectRatio",Oy=p.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return y.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:y.jsx(st.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Oy.displayName=IR;var ER=Oy;function AR({...e}){return y.jsx(ER,{"data-slot":"aspect-ratio",...e})}function RR(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i);s.displayName=a+"Context";const c=n.length;n=[...n,i];const l=d=>{const{scope:f,children:g,...b}=d,m=f?.[e]?.[c]||s,h=p.useMemo(()=>b,Object.values(b));return y.jsx(m.Provider,{value:h,children:g})};l.displayName=a+"Provider";function u(d,f){const g=f?.[e]?.[c]||s,b=p.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const c=s?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,PR(o,...t)]}function PR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function qe(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}var qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}},as={};var kp;function OR(){if(kp)return as;kp=1;var e=E;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(d,f){var g=f(),b=r({inst:{value:g,getSnapshot:f}}),m=b[0].inst,h=b[1];return a(function(){m.value=g,m.getSnapshot=f,c(m)&&h({inst:m})},[d,g,f]),o(function(){return c(m)&&h({inst:m}),d(function(){c(m)&&h({inst:m})})},[d]),i(g),g}function c(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!n(d,g)}catch{return!0}}function l(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return as.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,as}var is={};var Fp;function TR(){return Fp||(Fp=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=b();if(!d){var h=b();a(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=i({inst:{value:m,getSnapshot:b}});var v=h[0].inst,x=h[1];return c(function(){v.value=m,v.getSnapshot=b,n(v)&&x({inst:v})},[g,m,b]),s(function(){return n(v)&&x({inst:v}),g(function(){n(v)&&x({inst:v})})},[g]),l(m),m}function n(g){var b=g.getSnapshot;g=g.value;try{var m=b();return!a(g,m)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=E,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;is.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),is}var Bp;function _R(){return Bp||(Bp=1,process.env.NODE_ENV==="production"?Uo.exports=OR():Uo.exports=TR()),Uo.exports}var MR=_R();function DR(){return MR.useSyncExternalStore(NR,()=>!0,()=>!1)}function NR(){return()=>{}}var Qd="Avatar",[kR]=RR(Qd),[FR,Ty]=kR(Qd),_y=p.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=p.useState("idle");return y.jsx(FR,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:y.jsx(st.span,{...r,ref:t})})});_y.displayName=Qd;var My="AvatarImage",BR=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Ty(My,n),s=GR(r,a),c=qe(l=>{o(l),i.onImageLoadingStatusChange(l)});return ke(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?y.jsx(st.img,{...a,ref:t,src:r}):null});BR.displayName=My;var Dy="AvatarFallback",jR=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ty(Dy,n),[i,s]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?y.jsx(st.span,{...o,ref:t}):null});jR.displayName=Dy;function jp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function GR(e,{referrerPolicy:t,crossOrigin:n}){const r=DR(),o=p.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=p.useState(()=>jp(a,e));return ke(()=>{s(jp(a,e))},[a,e]),ke(()=>{const c=d=>()=>{s(d)};if(!a)return;const l=c("loaded"),u=c("error");return a.addEventListener("load",l),a.addEventListener("error",u),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",l),a.removeEventListener("error",u)}},[a,n,t]),i}var LR=_y;function WR({className:e,...t}){return y.jsx(LR,{"data-slot":"avatar",className:D("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}const Gp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lp=dn,So=(e,t)=>n=>{var r;if(t?.variants==null)return Lp(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const u=n?.[l],d=a?.[l];if(u===null)return null;const f=Gp(u)||Gp(d);return o[l][f]}),s=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...g}=u;return Object.entries(g).every(b=>{let[m,h]=b;return Array.isArray(h)?h.includes({...a,...s}[m]):{...a,...s}[m]===h})?[...l,d,f]:l},[]);return Lp(e,i,c,n?.class,n?.className)},zu=So("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-primary text-white hover:bg-primary/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200 focus-visible:ring-gray-300",tertiary:"bg-kashmir-blue-500 text-white hover:bg-kashmir-blue-600 hover:text-white focus-visible:ring-kashmir-blue-200",success:"bg-green-400 text-white focus-visible:ring-green-200 hover:bg-green-400/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input border-solid bg-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-gray-600 focus-visible:border-gray-200",ghost:"bg-transparent text-segmentify-600 hover:bg-segmentify-200 hover:text-primary",link:"text-segmentify-600 underline-offset-4 hover:underline",action:"bg-neutral-700 disabled:bg-neutral-700 disabled:opacity-50 rounded-md text-white hover:bg-neutral-800 focus-visible:ring-neutral-500",paginationActive:"bg-transparent text-black-250",paginationInactive:"bg-segmentify-300 text-segmentify-600 hover:text-segmentify-700 pointer-events-none"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"primary",size:"default"}}),VR=So("text-primary text-base font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-black-950 text-sm"}},defaultVariants:{variant:"default"}}),HR=So("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border border-solid border-primary bg-segmentify-200 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"border-transparent bg-green-400 text-white hover:bg-green-400/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",subtle:"border-0 bg-segmentify-100 text-primary"}},defaultVariants:{variant:"default"}});function $R({className:e,variant:t,asChild:n=!1,...r}){const o=n?Cn:"span";return y.jsx(o,{"data-slot":"badge",className:D(HR({variant:t}),e),...r})}function zR({...e}){return y.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Io({className:e,variant:t="primary",size:n="default",asChild:r=!1,...o}){const a=r?Cn:"button";return y.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:D(zu({variant:t,size:n,className:e})),...o})}function XR(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const YR={},$r={};function Mn(e,t){try{const r=(YR[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in $r?$r[r]:Wp(r,r.split(":"))}catch{if(e in $r)return $r[e];const n=e?.match(ZR);return n?Wp(e,n.slice(1)):NaN}}const ZR=/([+-]\d\d):?(\d\d)?/;function Wp(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return $r[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Ht extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Mn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ny(this),Xu(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ht(...n,t):new Ht(Date.now(),t)}withTimeZone(t){return new Ht(+this,t)}getTimezoneOffset(){const t=-Mn(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Xu(this),+this}[Symbol.for("constructDateFrom")](t){return new Ht(+new Date(t),this.timeZone)}}const Vp=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Vp.test(e))return;const t=e.replace(Vp,"$1UTC");Ht.prototype[t]&&(e.startsWith("get")?Ht.prototype[e]=function(){return this.internal[t]()}:(Ht.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),qR(this),+this},Ht.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Xu(this),+this}))});function Xu(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Mn(e.timeZone,e)*60))}function qR(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ny(e)}function Ny(e){const t=Mn(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),i=o-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const l=new Date(+e);l.setUTCSeconds(0);const u=o>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-(Mn(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));const f=Mn(e.timeZone,e),g=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset()-g,h=g!==n,v=m-c;if(h&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const x=Mn(e.timeZone,e),w=x>0?Math.floor(x):Math.ceil(x),C=g-w;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class Qe extends Ht{static tz(t,...n){return n.length?new Qe(...n,t):new Qe(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${XR(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Qe(+this,t)}[Symbol.for("constructDateFrom")](t){return new Qe(+new Date(t),this.timeZone)}}const Hp=5,UR=4;function JR(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Hp*7-1);return t.getMonth(e)===t.getMonth(a)?Hp:UR}function ky(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function KR(e,t){const n=ky(e,t),r=JR(e,t);return t.addDays(n,r*7-1)}const Fy={...rr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(i,s)=>_n(i,s,{locale:rr,...n});let a=o(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>_n(o,a,{locale:rr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(i,s)=>_n(i,s,{locale:rr,...n});let a=o(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>_n(o,a,{locale:rr,...t}),r(e,"cccc")}}};class gt{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Qe.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,a)=>this.overrides?.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Qe(r,o,a,this.options.timeZone):new Date(r,o,a),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):gy(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):by(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):UE(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):JE(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Ud(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):wy(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):nA(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):aA(r),a=new Set(o.map(s=>this.getYear(s)));if(a.size===o.length)return o;const i=[];return a.forEach(s=>{i.push(new Date(s,0,1))}),i},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):KR(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):iA(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):tA(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Iy(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):oA(r),this.format=(r,o,a)=>{const i=this.overrides?.format?this.overrides.format(r,o,this.options):_n(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Jd(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):rR(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):oR(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Kd(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):aR(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):iR(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):yy(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):eA(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):sR(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):cR(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):KE(r),this.min=r=>this.overrides?.min?this.overrides.min(r):QE(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):lR(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):uR(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):ky(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):no(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):to(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):rA(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):dr(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Sy(r),this.options={locale:Fy,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&>.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n?.code;if(a&>.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const i=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,i)}}gt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Jt=new gt;class By{constructor(t,n,r=Jt){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class QR{constructor(t,n){this.date=t,this.weeks=n}}class eP{constructor(t,n){this.days=n,this.weekNumber=t}}function tP(e){return E.createElement("button",{...e})}function nP(e){return E.createElement("span",{...e})}function rP(e){const{size:t=24,orientation:n="left",className:r}=e;return E.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&E.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&E.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&E.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&E.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function oP(e){const{day:t,modifiers:n,...r}=e;return E.createElement("td",{...r})}function aP(e){const{day:t,modifiers:n,...r}=e,o=E.useRef(null);return E.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),E.createElement("button",{ref:o,...r})}var le;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(le||(le={}));var Me;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Me||(Me={}));var Ot;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ot||(Ot={}));var ft;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ft||(ft={}));function iP(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[le.Dropdown],n].join(" "),s=t?.find(({value:c})=>c===a.value);return E.createElement("span",{"data-disabled":a.disabled,className:o[le.DropdownRoot]},E.createElement(r.Select,{className:i,...a},t?.map(({value:c,label:l,disabled:u})=>E.createElement(r.Option,{key:c,value:c,disabled:u},l))),E.createElement("span",{className:o[le.CaptionLabel],"aria-hidden":!0},s?.label,E.createElement(r.Chevron,{orientation:"down",size:18,className:o[le.Chevron]})))}function sP(e){return E.createElement("div",{...e})}function cP(e){return E.createElement("div",{...e})}function lP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return E.createElement("div",{...r},e.children)}function uP(e){const{calendarMonth:t,displayIndex:n,...r}=e;return E.createElement("div",{...r})}function dP(e){return E.createElement("table",{...e})}function fP(e){return E.createElement("div",{...e})}const jy=E.createContext(void 0);function Eo(){const e=E.useContext(jy);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function pP(e){const{components:t}=Eo();return E.createElement(t.Dropdown,{...e})}function mP(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Eo(),u=E.useCallback(f=>{o&&n?.(f)},[o,n]),d=E.useCallback(f=>{r&&t?.(f)},[r,t]);return E.createElement("nav",{...a},E.createElement(i.PreviousMonthButton,{type:"button",className:s[le.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},E.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[le.Chevron],orientation:"left"})),E.createElement(i.NextMonthButton,{type:"button",className:s[le.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":l(o),onClick:u},E.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[le.Chevron]})))}function hP(e){const{components:t}=Eo();return E.createElement(t.Button,{...e})}function gP(e){return E.createElement("option",{...e})}function bP(e){const{components:t}=Eo();return E.createElement(t.Button,{...e})}function vP(e){const{rootRef:t,...n}=e;return E.createElement("div",{...n,ref:t})}function yP(e){return E.createElement("select",{...e})}function xP(e){const{week:t,...n}=e;return E.createElement("tr",{...n})}function wP(e){return E.createElement("th",{...e})}function CP(e){return E.createElement("thead",{"aria-hidden":!0},E.createElement("tr",{...e}))}function SP(e){const{week:t,...n}=e;return E.createElement("th",{...n})}function IP(e){return E.createElement("th",{...e})}function EP(e){return E.createElement("tbody",{...e})}function AP(e){const{components:t}=Eo();return E.createElement(t.Dropdown,{...e})}const RP=Object.freeze(Object.defineProperty({__proto__:null,Button:tP,CaptionLabel:nP,Chevron:rP,Day:oP,DayButton:aP,Dropdown:iP,DropdownNav:sP,Footer:cP,Month:lP,MonthCaption:uP,MonthGrid:dP,Months:fP,MonthsDropdown:pP,Nav:mP,NextMonthButton:hP,Option:gP,PreviousMonthButton:bP,Root:vP,Select:yP,Week:xP,WeekNumber:SP,WeekNumberHeader:IP,Weekday:wP,Weekdays:CP,Weeks:EP,YearsDropdown:AP},Symbol.toStringTag,{value:"Module"}));function cn(e,t,n=!1,r=Jt){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function ef(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function oi(e){return!!(e&&typeof e=="object"&&"from"in e)}function tf(e){return!!(e&&typeof e=="object"&&"after"in e)}function nf(e){return!!(e&&typeof e=="object"&&"before"in e)}function Gy(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Ly(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ln(e,t,n=Jt){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(Ly(s,n))return s.some(c=>o(e,c));if(oi(s))return cn(s,e,!1,n);if(Gy(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(ef(s)){const c=a(s.before,e),l=a(s.after,e),u=c>0,d=l<0;return i(s.before,s.after)?d&&u:u||d}return tf(s)?a(e,s.after)>0:nf(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function PP(e,t,n,r,o){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=o.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:g,isBefore:b,endOfMonth:m,isAfter:h}=o,v=n&&g(n),x=r&&m(r),w={[Me.focused]:[],[Me.outside]:[],[Me.disabled]:[],[Me.hidden]:[],[Me.today]:[]},C={};for(const S of e){const{date:A,displayMonth:I}=S,R=!!(I&&!f(A,I)),P=!!(v&&b(A,v)),M=!!(x&&h(A,x)),T=!!(a&&ln(A,a,o)),B=!!(i&&ln(A,i,o))||P||M||!l&&!c&&R||l&&c===!1&&R,O=d(A,u);R&&w.outside.push(S),T&&w.disabled.push(S),B&&w.hidden.push(S),O&&w.today.push(S),s&&Object.keys(s).forEach(L=>{const W=s?.[L];W&&ln(A,W,o)&&(C[L]?C[L].push(S):C[L]=[S])})}return S=>{const A={[Me.focused]:!1,[Me.disabled]:!1,[Me.hidden]:!1,[Me.outside]:!1,[Me.today]:!1},I={};for(const R in w){const P=w[R];A[R]=P.some(M=>M===S)}for(const R in C)I[R]=C[R].some(P=>P===S);return{...A,...I}}}function OP(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[Me[a]]?o.push(t[Me[a]]):t[Ot[a]]&&o.push(t[Ot[a]]),o),[t[le.Day]])}function TP(e){return{...RP,...e}}function _P(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function rf(){const e={};for(const t in le)e[le[t]]=`rdp-${le[t]}`;for(const t in Me)e[Me[t]]=`rdp-${Me[t]}`;for(const t in Ot)e[Ot[t]]=`rdp-${Ot[t]}`;for(const t in ft)e[ft[t]]=`rdp-${ft[t]}`;return e}function Wy(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const MP=Wy;function DP(e,t,n){return(n??new gt(t)).format(e,"d")}function NP(e,t=Jt){return t.format(e,"LLLL")}function kP(e,t,n){return(n??new gt(t)).format(e,"cccccc")}function FP(e,t=Jt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function BP(){return""}function Vy(e,t=Jt){return t.format(e,"yyyy")}const jP=Vy,GP=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Wy,formatDay:DP,formatMonthCaption:MP,formatMonthDropdown:NP,formatWeekNumber:FP,formatWeekNumberHeader:BP,formatWeekdayName:kP,formatYearCaption:jP,formatYearDropdown:Vy},Symbol.toStringTag,{value:"Module"}));function LP(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...GP,...e}}function of(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const WP=of;function af(e,t,n){return(n??new gt(t)).formatMonthYear(e)}const VP=af;function Hy(e,t,n,r){let o=(r??new gt(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function $y(e){return"Choose the Month"}function zy(){return""}const HP="Go to the Next Month";function Xy(e,t){return HP}function Yy(e){return"Go to the Previous Month"}function Zy(e,t,n){return(n??new gt(t)).format(e,"cccc")}function qy(e,t){return`Week ${e}`}function Uy(e){return"Week Number"}function Jy(e){return"Choose the Year"}const $P=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:VP,labelDay:WP,labelDayButton:of,labelGrid:af,labelGridcell:Hy,labelMonthDropdown:$y,labelNav:zy,labelNext:Xy,labelPrevious:Yy,labelWeekNumber:qy,labelWeekNumberHeader:Uy,labelWeekday:Zy,labelYearDropdown:Jy},Symbol.toStringTag,{value:"Module"})),At=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function zP(e,t){const n=t.locale?.labels??{};return{...$P,...e??{},labelDayButton:At(of,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:At($y,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:At(Xy,e?.labelNext,n.labelNext),labelPrevious:At(Yy,e?.labelPrevious,n.labelPrevious),labelWeekNumber:At(qy,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:At(Jy,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:At(af,e?.labelGrid,n.labelGrid),labelGridcell:At(Hy,e?.labelGridcell,n.labelGridcell),labelNav:At(zy,e?.labelNav,n.labelNav),labelWeekNumberHeader:At(Uy,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:At(Zy,e?.labelWeekday,n.labelWeekday)}}function XP(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=o;return c({start:i(e),end:s(e)}).map(f=>{const g=r.formatMonthDropdown(f,o),b=l(f),m=t&&f<a(t)||n&&f>a(n)||!1;return{value:b,label:g,disabled:m}})}function YP(e,t={},n={}){let r={...t?.[le.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function ZP(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),i=[];for(let s=0;s<7;s++){const c=e.addDays(a,s);i.push(c)}return i}function qP(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:c}=r,l=a(e),u=i(t),d=s({start:l,end:u});return o&&d.reverse(),d.map(f=>{const g=n.formatYearDropdown(f,r);return{value:c(f),label:g,disabled:!1}})}function UP(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,a=s=>{const c=typeof s=="number"||typeof s=="string"?new Date(s):s;return new Qe(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},i=s=>{const c=a(s);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>a(Qe.tz(e)),newDate:(s,c,l)=>new Qe(s,c,l,12,0,0,e),startOfDay:s=>a(s),startOfWeek:(s,c)=>{const l=a(s),u=c?.weekStartsOn??o,d=(l.getDay()-u+7)%7;return l.setDate(l.getDate()-d),l},startOfISOWeek:s=>{const c=a(s),l=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-l),c},startOfMonth:s=>{const c=a(s);return c.setDate(1),c},startOfYear:s=>{const c=a(s);return c.setMonth(0,1),c},endOfWeek:(s,c)=>{const l=a(s),f=(((c?.weekStartsOn??o)+6)%7-l.getDay()+7)%7;return l.setDate(l.getDate()+f),l},endOfISOWeek:s=>{const c=a(s),l=(7-c.getDay())%7;return c.setDate(c.getDate()+l),c},endOfMonth:s=>{const c=a(s);return c.setMonth(c.getMonth()+1,0),c},endOfYear:s=>{const c=a(s);return c.setMonth(11,31),c},eachMonthOfInterval:s=>{const c=a(s.start),l=a(s.end),u=[],d=new Qe(c.getFullYear(),c.getMonth(),1,12,0,0,e),f=l.getFullYear()*12+l.getMonth();for(;d.getFullYear()*12+d.getMonth()<=f;)u.push(new Qe(d,e)),d.setMonth(d.getMonth()+1,1);return u},addDays:(s,c)=>{const l=a(s);return l.setDate(l.getDate()+c),l},addWeeks:(s,c)=>{const l=a(s);return l.setDate(l.getDate()+c*7),l},addMonths:(s,c)=>{const l=a(s);return l.setMonth(l.getMonth()+c),l},addYears:(s,c)=>{const l=a(s);return l.setFullYear(l.getFullYear()+c),l},eachYearOfInterval:s=>{const c=a(s.start),l=a(s.end),u=[],d=new Qe(c.getFullYear(),0,1,12,0,0,e);for(;d.getFullYear()<=l.getFullYear();)u.push(new Qe(d,e)),d.setFullYear(d.getFullYear()+1,0,1);return u},getWeek:(s,c)=>{const l=i(s);return Kd(l,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const c=i(s);return Jd(c)},differenceInCalendarDays:(s,c)=>{const l=i(s),u=i(c);return Ud(l,u)},differenceInCalendarMonths:(s,c)=>{const l=i(s),u=i(c);return wy(l,u)}}}const Ao=e=>e instanceof HTMLElement?e:null,ss=e=>[...e.querySelectorAll("[data-animated-month]")??[]],JP=e=>Ao(e.querySelector("[data-animated-month]")),cs=e=>Ao(e.querySelector("[data-animated-caption]")),ls=e=>Ao(e.querySelector("[data-animated-weeks]")),KP=e=>Ao(e.querySelector("[data-animated-nav]")),QP=e=>Ao(e.querySelector("[data-animated-weekdays]"));function eO(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const i=E.useRef(null),s=E.useRef(r),c=E.useRef(!1);E.useLayoutEffect(()=>{const l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;const u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ft.caption_after_enter]:n[ft.caption_before_enter],g=d?n[ft.weeks_after_enter]:n[ft.weeks_before_enter],b=i.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(ss(m).forEach(w=>{if(!(w instanceof HTMLElement))return;const C=JP(w);C&&w.contains(C)&&w.removeChild(C);const S=cs(w);S&&S.classList.remove(f);const A=ls(w);A&&A.classList.remove(g)}),i.current=m):i.current=null,c.current||u||o)return;const h=b instanceof HTMLElement?ss(b):[],v=ss(e.current);if(v?.every(x=>x instanceof HTMLElement)&&h&&h.every(x=>x instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const x=KP(e.current);x&&(x.style.zIndex="1"),v.forEach((w,C)=>{const S=h[C];if(!S)return;w.style.position="relative",w.style.overflow="hidden";const A=cs(w);A&&A.classList.add(f);const I=ls(w);I&&I.classList.add(g);const R=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),A&&A.classList.remove(f),I&&I.classList.remove(g),w.style.position="",w.style.overflow="",w.contains(S)&&w.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const P=QP(S);P&&(P.style.opacity="0");const M=cs(S);M&&(M.classList.add(d?n[ft.caption_before_exit]:n[ft.caption_after_exit]),M.addEventListener("animationend",R));const T=ls(S);T&&T.classList.add(d?n[ft.weeks_before_exit]:n[ft.weeks_after_exit]),w.insertBefore(S,w.firstChild)})}})}function tO(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:g,endOfMonth:b,endOfWeek:m,isAfter:h,startOfBroadcastWeek:v,startOfISOWeek:x,startOfWeek:w}=r,C=c?v(o,r):i?x(o):w(o),S=c?f(a):i?g(b(a)):m(b(a)),A=t&&(c?f(t):i?g(t):m(t)),I=A&&h(S,A)?A:S,R=u(I,C),P=d(a,o)+1,M=[];for(let O=0;O<=R;O++){const L=l(C,O);M.push(L)}const B=(c?35:42)*P;if(s&&M.length<B){const O=B-M.length;for(let L=0;L<O;L++){const W=l(M[M.length-1],1);M.push(W)}}return M}function nO(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,i)=>a.concat(i.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function rO(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function $p(e,t,n,r){const{month:o,defaultMonth:a,today:i=r.today(),numberOfMonths:s=1}=e;let c=o||a||i;const{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;if(n&&l(n,c)<s-1){const f=-1*(s-1);c=u(n,f)}return t&&l(c,t)<0&&(c=t),d(c)}function oO(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:g}=r,b=e.reduce((m,h)=>{const v=n.broadcastCalendar?d(h,r):n.ISOWeek?f(h):g(h),x=n.broadcastCalendar?a(h):n.ISOWeek?i(s(h)):c(s(h)),w=t.filter(I=>I>=v&&I<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length<C){const I=t.filter(R=>{const P=C-w.length;return R>x&&R<=o(x,P)});w.push(...I)}const S=w.reduce((I,R)=>{const P=n.ISOWeek?l(R):u(R),M=I.find(B=>B.weekNumber===P),T=new By(R,h,r);return M?M.days.push(T):I.push(new eP(P,[T])),I},[]),A=new QR(h,S);return m.push(A),m},[]);return n.reverseMonths?b.reverse():b}function aO(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:g,fromMonth:b,toMonth:m}=e;!n&&b&&(n=b),!n&&f&&(n=t.newDate(f,0,1)),!r&&m&&(r=m),!r&&g&&(r=u(g,11,31));const h=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):f?n=u(f,0,1):!n&&h&&(n=o(c(e.today??d(),-100))),r?r=s(r):g?r=u(g,11,31):!r&&h&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function iO(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a:1,u=i(e);if(!t)return s(u,l);if(!(c(t,e)<a))return s(u,l)}function sO(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,l=o?a??1:1,u=i(e);if(!t)return s(u,-l);if(!(c(u,t)<=0))return s(u,-l)}function cO(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function ai(e,t){const[n,r]=E.useState(e);return[t===void 0?n:t,r]}function lO(e,t){const[n,r]=aO(e,t),{startOfMonth:o,endOfMonth:a}=t,i=$p(e,n,r,t),[s,c]=ai(i,e.month?i:void 0);E.useEffect(()=>{const C=$p(e,n,r,t);c(C)},[e.timeZone]);const{months:l,weeks:u,days:d,previousMonth:f,nextMonth:g}=E.useMemo(()=>{const C=rO(s,r,{numberOfMonths:e.numberOfMonths},t),S=tO(C,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),A=oO(C,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),I=cO(A),R=nO(A),P=sO(s,n,e,t),M=iO(s,r,e,t);return{months:A,weeks:I,days:R,previousMonth:P,nextMonth:M}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:b,onMonthChange:m}=e,h=C=>u.some(S=>S.days.some(A=>A.isEqualTo(C))),v=C=>{if(b)return;let S=o(C);n&&S<o(n)&&(S=o(n)),r&&S>o(r)&&(S=o(r)),c(S),m?.(S)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:g,goToMonth:v,goToDay:C=>{h(C)||v(C.date)}}}var Gt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Gt||(Gt={}));function zp(e){return!e[Me.disabled]&&!e[Me.hidden]&&!e[Me.outside]}function uO(e,t,n,r){let o,a=-1;for(const i of e){const s=t(i);zp(s)&&(s[Me.focused]&&a<Gt.FocusedModifier?(o=i,a=Gt.FocusedModifier):r?.isEqualTo(i)&&a<Gt.LastFocused?(o=i,a=Gt.LastFocused):n(i.date)&&a<Gt.Selected?(o=i,a=Gt.Selected):s[Me.today]&&a<Gt.Today&&(o=i,a=Gt.Today))}return o||(o=e.find(i=>zp(t(i)))),o}function dO(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:g,endOfISOWeek:b,endOfWeek:m,max:h,min:v,startOfBroadcastWeek:x,startOfISOWeek:w,startOfWeek:C}=i;let A={day:l,week:d,month:u,year:f,startOfWeek:I=>c?x(I,i):s?w(I):C(I),endOfWeek:I=>c?g(I):s?b(I):m(I)}[e](n,t==="after"?1:-1);return t==="before"&&r?A=h([r,A]):t==="after"&&o&&(A=v([o,A])),A}function Ky(e,t,n,r,o,a,i,s=0){if(s>365)return;const c=dO(e,t,n.date,r,o,a,i),l=!!(a.disabled&&ln(c,a.disabled,i)),u=!!(a.hidden&&ln(c,a.hidden,i)),d=c,f=new By(c,d,i);return!l&&!u?f:Ky(e,t,f,r,o,a,i,s+1)}function fO(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=E.useState(),c=uO(t.days,n,r||(()=>!1),i),[l,u]=E.useState(a?c:void 0);return{isFocusTarget:m=>!!c?.isEqualTo(m),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(m,h)=>{if(!l)return;const v=Ky(m,h,l,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(w=>w.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function pO(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ai(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t,l=g=>s?.some(b=>c(b,g))??!1,{min:u,max:d}=e;return{selected:s,select:(g,b,m)=>{let h=[...s??[]];if(l(g)){if(s?.length===u||r&&s?.length===1)return;h=s?.filter(v=>!c(v,g))}else s?.length===d?h=[g]:h=[...h,g];return o||i(h),o?.(h,g,b,m),h},isSelected:l}}function mO(e,t,n=0,r=0,o=!1,a=Jt){const{from:i,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a;let d;if(!i&&!s)d={from:e,to:n>0?void 0:e};else if(i&&!s)c(i,e)?n===0?d={from:i,to:e}:o?d={from:i,to:void 0}:d=void 0:u(e,i)?d={from:e,to:i}:d={from:i,to:e};else if(i&&s)if(c(i,e)&&c(s,e))o?d={from:i,to:s}:d=void 0;else if(c(i,e))d={from:i,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,i))d={from:e,to:s};else if(l(e,i))d={from:i,to:e};else if(l(e,s))d={from:i,to:e};else throw new Error("Invalid range");if(d?.from&&d?.to){const f=a.differenceInCalendarDays(d.to,d.from);r>0&&f>r?d={from:e,to:void 0}:n>1&&f<n&&(d={from:e,to:void 0})}return d}function hO(e,t,n=Jt){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Xp(e,t,n=Jt){return cn(e,t.from,!1,n)||cn(e,t.to,!1,n)||cn(t,e.from,!1,n)||cn(t,e.to,!1,n)}function gO(e,t,n=Jt){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?cn(e,s,!1,n):Ly(s,n)?s.some(c=>cn(e,c,!1,n)):oi(s)?s.from&&s.to?Xp(e,{from:s.from,to:s.to},n):!1:Gy(s)?hO(e,s.dayOfWeek,n):ef(s)?n.isAfter(s.before,s.after)?Xp(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):ln(e.from,s,n)||ln(e.to,s,n):tf(s)||nf(s)?ln(e.from,s,n)||ln(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let l=0;l<=c;l++){if(i.some(u=>u(s)))return!0;s=n.addDays(s,1)}}return!1}function bO(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,c]=ai(o,i?o:void 0),l=i?o:s;return{selected:l,select:(f,g,b)=>{const{min:m,max:h}=e,v=f?mO(f,l,m,h,a,t):void 0;return r&&n&&v?.from&&v.to&&gO({from:v.from,to:v.to},n,t)&&(v.from=f,v.to=void 0),i||c(v),i?.(v,f,g,b),v},isSelected:f=>l&&cn(l,f,!1,t)}}function vO(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=ai(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t;return{selected:s,select:(d,f,g)=>{let b=d;return!r&&s&&s&&c(d,s)&&(b=void 0),o||i(b),o?.(b,d,f,g),b},isSelected:d=>s?c(s,d):!1}}function yO(e,t){const n=vO(e,t),r=pO(e,t),o=bO(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function wt(e,t){return e instanceof Qe&&e.timeZone===t?e:new Qe(e,t)}function Kn(e,t,n){return wt(e,t)}function Yp(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Kn(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Kn(r,t):r):oi(e)?{...e,from:e.from?wt(e.from,t):e.from,to:e.to?wt(e.to,t):e.to}:ef(e)?{before:Kn(e.before,t),after:Kn(e.after,t)}:tf(e)?{after:Kn(e.after,t)}:nf(e)?{before:Kn(e.before,t)}:e}function us(e,t,n){return e&&(Array.isArray(e)?e.map(r=>Yp(r,t)):Yp(e,t))}function xO(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=wt(t.today,n)),t.month&&(t.month=wt(t.month,n)),t.defaultMonth&&(t.defaultMonth=wt(t.defaultMonth,n)),t.startMonth&&(t.startMonth=wt(t.startMonth,n)),t.endMonth&&(t.endMonth=wt(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=wt(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Z=>wt(Z,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?wt(t.selected.from,n):t.selected.from,to:t.selected.to?wt(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=us(t.disabled,n)),t.hidden!==void 0&&(t.hidden=us(t.hidden,n)),t.modifiers)){const Z={};Object.keys(t.modifiers).forEach(ce=>{Z[ce]=us(t.modifiers?.[ce],n)}),t.modifiers=Z}const{components:r,formatters:o,labels:a,dateLib:i,locale:s,classNames:c}=E.useMemo(()=>{const Z={...Fy,...t.locale},ce=t.broadcastCalendar?1:t.weekStartsOn,K=t.noonSafe&&t.timeZone?UP(t.timeZone,{weekStartsOn:ce,locale:Z}):void 0,ne=t.dateLib&&K?{...K,...t.dateLib}:t.dateLib??K,ve=new gt({locale:Z,weekStartsOn:ce,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ne);return{dateLib:ve,components:TP(t.components),formatters:LP(t.formatters),labels:zP(t.labels,ve.options),locale:Z,classNames:{...rf(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:i.today()});const{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:g,onDayClick:b,onDayFocus:m,onDayKeyDown:h,onDayMouseEnter:v,onDayMouseLeave:x,onNextClick:w,onPrevClick:C,showWeekNumber:S,styles:A}=t,{formatCaption:I,formatDay:R,formatMonthDropdown:P,formatWeekNumber:M,formatWeekNumberHeader:T,formatWeekdayName:B,formatYearDropdown:O}=o,L=lO(t,i),{days:W,months:j,navStart:$,navEnd:N,previousMonth:V,nextMonth:U,goToMonth:ee}=L,k=PP(W,t,$,N,i),{isSelected:H,select:Y,selected:z}=yO(t,i)??{},{blur:J,focused:G,isFocusTarget:q,moveFocus:ae,setFocused:re}=fO(t,L,k,H??(()=>!1),i),{labelDayButton:te,labelGridcell:F,labelGrid:de,labelMonthDropdown:_,labelNav:Q,labelPrevious:ge,labelNext:xe,labelWeekday:Te,labelWeekNumber:ye,labelWeekNumberHeader:Se,labelYearDropdown:tt}=a,Ve=E.useMemo(()=>ZP(i,t.ISOWeek,t.broadcastCalendar,t.today),[i,t.ISOWeek,t.broadcastCalendar,t.today]),Fe=u!==void 0||b!==void 0,Ye=E.useCallback(()=>{V&&(ee(V),C?.(V))},[V,ee,C]),Ze=E.useCallback(()=>{U&&(ee(U),w?.(U))},[ee,U,w]),rt=E.useCallback((Z,ce)=>K=>{K.preventDefault(),K.stopPropagation(),re(Z),!ce.disabled&&(Y?.(Z.date,ce,K),b?.(Z.date,ce,K))},[Y,b,re]),ot=E.useCallback((Z,ce)=>K=>{re(Z),m?.(Z.date,ce,K)},[m,re]),It=E.useCallback((Z,ce)=>K=>{J(),g?.(Z.date,ce,K)},[J,g]),Bt=E.useCallback((Z,ce)=>K=>{const ne={ArrowLeft:[K.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[K.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[K.shiftKey?"year":"week","after"],ArrowUp:[K.shiftKey?"year":"week","before"],PageUp:[K.shiftKey?"year":"month","before"],PageDown:[K.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ne[K.key]){K.preventDefault(),K.stopPropagation();const[ve,me]=ne[K.key];ae(ve,me)}h?.(Z.date,ce,K)},[ae,h,t.dir]),lt=E.useCallback((Z,ce)=>K=>{v?.(Z.date,ce,K)},[v]),rn=E.useCallback((Z,ce)=>K=>{x?.(Z.date,ce,K)},[x]),ut=E.useCallback(Z=>ce=>{const K=Number(ce.target.value),ne=i.setMonth(i.startOfMonth(Z),K);ee(ne)},[i,ee]),Ue=E.useCallback(Z=>ce=>{const K=Number(ce.target.value),ne=i.setYear(i.startOfMonth(Z),K);ee(ne)},[i,ee]),{className:on,style:An}=E.useMemo(()=>({className:[c[le.Root],t.className].filter(Boolean).join(" "),style:{...A?.[le.Root],...t.style}}),[c,t.className,t.style,A]),Mr=_P(t),qn=E.useRef(null);eO(qn,!!t.animate,{classNames:c,months:j,focused:G,dateLib:i});const Dr={dayPickerProps:t,selected:z,select:Y,isSelected:H,months:j,nextMonth:U,previousMonth:V,goToMonth:ee,getModifiers:k,components:r,classNames:c,styles:A,labels:a,formatters:o};return E.createElement(jy.Provider,{value:Dr},E.createElement(r.Root,{rootRef:t.animate?qn:void 0,className:on,style:An,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Mr},E.createElement(r.Months,{className:c[le.Months],style:A?.[le.Months]},!t.hideNavigation&&!d&&E.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[le.Nav],style:A?.[le.Nav],"aria-label":Q(),onPreviousClick:Ye,onNextClick:Ze,previousMonth:V,nextMonth:U}),j.map((Z,ce)=>E.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[le.Month],style:A?.[le.Month],key:ce,displayIndex:ce,calendarMonth:Z},d==="around"&&!t.hideNavigation&&ce===0&&E.createElement(r.PreviousMonthButton,{type:"button",className:c[le.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":ge(V),onClick:Ye,"data-animated-button":t.animate?"true":void 0},E.createElement(r.Chevron,{disabled:V?void 0:!0,className:c[le.Chevron],orientation:t.dir==="rtl"?"right":"left"})),E.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[le.MonthCaption],style:A?.[le.MonthCaption],calendarMonth:Z,displayIndex:ce},l?.startsWith("dropdown")?E.createElement(r.DropdownNav,{className:c[le.Dropdowns],style:A?.[le.Dropdowns]},(()=>{const K=l==="dropdown"||l==="dropdown-months"?E.createElement(r.MonthsDropdown,{key:"month",className:c[le.MonthsDropdown],"aria-label":_(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:ut(Z.date),options:XP(Z.date,$,N,o,i),style:A?.[le.Dropdown],value:i.getMonth(Z.date)}):E.createElement("span",{key:"month"},P(Z.date,i)),ne=l==="dropdown"||l==="dropdown-years"?E.createElement(r.YearsDropdown,{key:"year",className:c[le.YearsDropdown],"aria-label":tt(i.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ue(Z.date),options:qP($,N,o,i,!!t.reverseYears),style:A?.[le.Dropdown],value:i.getYear(Z.date)}):E.createElement("span",{key:"year"},O(Z.date,i));return i.getMonthYearOrder()==="year-first"?[ne,K]:[K,ne]})(),E.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},I(Z.date,i.options,i))):E.createElement(r.CaptionLabel,{className:c[le.CaptionLabel],role:"status","aria-live":"polite"},I(Z.date,i.options,i))),d==="around"&&!t.hideNavigation&&ce===f-1&&E.createElement(r.NextMonthButton,{type:"button",className:c[le.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":xe(U),onClick:Ze,"data-animated-button":t.animate?"true":void 0},E.createElement(r.Chevron,{disabled:U?void 0:!0,className:c[le.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ce===f-1&&d==="after"&&!t.hideNavigation&&E.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[le.Nav],style:A?.[le.Nav],"aria-label":Q(),onPreviousClick:Ye,onNextClick:Ze,previousMonth:V,nextMonth:U}),E.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":de(Z.date,i.options,i)||void 0,className:c[le.MonthGrid],style:A?.[le.MonthGrid]},!t.hideWeekdays&&E.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[le.Weekdays],style:A?.[le.Weekdays]},S&&E.createElement(r.WeekNumberHeader,{"aria-label":Se(i.options),className:c[le.WeekNumberHeader],style:A?.[le.WeekNumberHeader],scope:"col"},T()),Ve.map(K=>E.createElement(r.Weekday,{"aria-label":Te(K,i.options,i),className:c[le.Weekday],key:String(K),style:A?.[le.Weekday],scope:"col"},B(K,i.options,i)))),E.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[le.Weeks],style:A?.[le.Weeks]},Z.weeks.map(K=>E.createElement(r.Week,{className:c[le.Week],key:K.weekNumber,style:A?.[le.Week],week:K},S&&E.createElement(r.WeekNumber,{week:K,style:A?.[le.WeekNumber],"aria-label":ye(K.weekNumber,{locale:s}),className:c[le.WeekNumber],scope:"row",role:"rowheader"},M(K.weekNumber,i)),K.days.map(ne=>{const{date:ve}=ne,me=k(ne);if(me[Me.focused]=!me.hidden&&!!G?.isEqualTo(ne),me[Ot.selected]=H?.(ve)||me.selected,oi(z)){const{from:Et,to:bt}=z;me[Ot.range_start]=!!(Et&&bt&&i.isSameDay(ve,Et)),me[Ot.range_end]=!!(Et&&bt&&i.isSameDay(ve,bt)),me[Ot.range_middle]=cn(z,ve,!0,i)}const Be=YP(me,A,t.modifiersStyles),dt=OP(me,c,t.modifiersClassNames),nt=!Fe&&!me.hidden?F(ve,me,i.options,i):void 0;return E.createElement(r.Day,{key:`${ne.isoDate}_${ne.displayMonthId}`,day:ne,modifiers:me,className:dt.join(" "),style:Be,role:"gridcell","aria-selected":me.selected||void 0,"aria-label":nt,"data-day":ne.isoDate,"data-month":ne.outside?ne.dateMonthId:void 0,"data-selected":me.selected||void 0,"data-disabled":me.disabled||void 0,"data-hidden":me.hidden||void 0,"data-outside":ne.outside||void 0,"data-focused":me.focused||void 0,"data-today":me.today||void 0},!me.hidden&&Fe?E.createElement(r.DayButton,{className:c[le.DayButton],style:A?.[le.DayButton],type:"button",day:ne,modifiers:me,disabled:!me.focused&&me.disabled||void 0,"aria-disabled":me.focused&&me.disabled||void 0,tabIndex:q(ne)?0:-1,"aria-label":te(ve,me,i.options,i),onClick:rt(ne,me),onBlur:It(ne,me),onFocus:ot(ne,me),onKeyDown:Bt(ne,me),onMouseEnter:lt(ne,me),onMouseLeave:rn(ne,me)},R(ve,i.options,i)):!me.hidden&&R(ne.date,i.options,i))})))))))),t.footer&&E.createElement(r.Footer,{className:c[le.Footer],style:A?.[le.Footer],role:"status","aria-live":"polite"},t.footer)))}function wO({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:a,components:i,...s}){const c=rf();return y.jsx(xO,{showOutsideDays:n,className:D("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:l=>l.toLocaleString("default",{month:"short"}),...a},classNames:{root:D("w-fit",c.root),months:D("flex gap-4 flex-col md:flex-row relative",c.months),month:D("flex flex-col w-full gap-4",c.month),nav:D("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",c.nav),button_previous:D(zu({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",c.button_previous),button_next:D(zu({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",c.button_next),month_caption:D("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",c.month_caption),dropdowns:D("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",c.dropdowns),dropdown_root:D("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",c.dropdown_root),dropdown:D("absolute bg-popover inset-0 opacity-0",c.dropdown),caption_label:D("select-none font-medium",r==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",c.caption_label),table:"w-full border-collapse",weekdays:D("flex",c.weekdays),weekday:D("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",c.weekday),week:D("flex w-full mt-2",c.week),week_number_header:D("select-none w-(--cell-size)",c.week_number_header),week_number:D("text-[0.8rem] select-none text-muted-foreground",c.week_number),day:D("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",s.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",c.day),range_start:D("rounded-l-md bg-accent",c.range_start),range_middle:D("rounded-none",c.range_middle),range_end:D("rounded-r-md bg-accent",c.range_end),today:D("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",c.today),outside:D("text-muted-foreground aria-selected:text-muted-foreground",c.outside),disabled:D("text-muted-foreground opacity-50",c.disabled),hidden:D("invisible",c.hidden),...t},components:{Root:({className:l,rootRef:u,...d})=>y.jsx("div",{"data-slot":"calendar",ref:u,className:D(l),...d}),Chevron:({className:l,orientation:u,...d})=>u==="left"?y.jsx(U1,{className:D("size-4",l),...d}):u==="right"?y.jsx(K1,{className:D("size-4",l),...d}):y.jsx(Zd,{className:D("size-4",l),...d}),DayButton:CO,WeekNumber:({children:l,...u})=>y.jsx("td",{...u,children:y.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:l})}),...i},...s})}function CO({className:e,day:t,modifiers:n,...r}){const o=rf(),a=p.useRef(null);return p.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),y.jsx(Io,{ref:a,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:D("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}function SO({className:e,...t}){return y.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function IO({className:e,...t}){return y.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function EO({className:e,...t}){return y.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function AO({className:e,...t}){return y.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function RO({className:e,...t}){return y.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function PO({className:e,...t}){return y.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function OO({className:e,...t}){return y.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}function TO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zp(e){return TO(e)||Array.isArray(e)}function _O(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function sf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],c=t[i];return typeof s=="function"?`${s}`==`${c}`:!Zp(s)||!Zp(c)?s===c:sf(s,c)})}function qp(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function MO(e,t){if(e.length!==t.length)return!1;const n=qp(e),r=qp(t);return n.every((o,a)=>{const i=r[a];return sf(o,i)})}function cf(e){return typeof e=="number"}function Yu(e){return typeof e=="string"}function ii(e){return typeof e=="boolean"}function Up(e){return Object.prototype.toString.call(e)==="[object Object]"}function De(e){return Math.abs(e)}function lf(e){return Math.sign(e)}function eo(e,t){return De(e-t)}function DO(e,t){if(e===0||t===0||De(e)<=De(t))return 0;const n=eo(De(e),De(t));return De(n/e)}function NO(e){return Math.round(e*100)/100}function ro(e){return oo(e).map(Number)}function Tt(e){return e[Ro(e)]}function Ro(e){return Math.max(0,e.length-1)}function uf(e,t){return t===Ro(e)}function Jp(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function oo(e){return Object.keys(e)}function Qy(e,t){return[e,t].reduce((n,r)=>(oo(r).forEach(o=>{const a=n[o],i=r[o],s=Up(a)&&Up(i);n[o]=s?Qy(a,i):i}),n),{})}function Zu(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function kO(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(c){return a(c)/2}function a(c){return t-c}function i(c,l){return Yu(e)?n[e](c):e(t,c,l)}return{measure:i}}function ao(){let e=[];function t(o,a,i,s={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(a,i,s),c=()=>o.removeEventListener(a,i,s);else{const l=o;l.addListener(i),c=()=>l.removeListener(i)}return e.push(c),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function FO(e,t,n,r){const o=ao(),a=1e3/60;let i=null,s=0,c=0;function l(){o.add(e,"visibilitychange",()=>{e.hidden&&b()})}function u(){g(),o.clear()}function d(h){if(!c)return;i||(i=h,n(),n());const v=h-i;for(i=h,s+=v;s>=a;)n(),s-=a;const x=s/a;r(x),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function g(){t.cancelAnimationFrame(c),i=null,s=0,c=0}function b(){i=null,s=0}return{init:l,destroy:u,start:f,stop:g,update:n,render:r}}function BO(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=u(),c=d();function l(b){const{height:m,width:h}=b;return r?m:h}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(b){return b*i}return{scroll:o,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function Nn(e=0,t=0){const n=De(e-t);function r(l){return l<e}function o(l){return l>t}function a(l){return r(l)||o(l)}function i(l){return a(l)?r(l)?e:t:l}function s(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function e0(e,t,n){const{constrain:r}=Nn(0,e),o=e+1;let a=i(t);function i(f){return n?De((o+f)%o):r(f)}function s(){return a}function c(f){return a=i(f),d}function l(f){return u().set(s()+f)}function u(){return e0(e,s(),n)}const d={get:s,set:c,add:l,clone:u};return d}function jO(e,t,n,r,o,a,i,s,c,l,u,d,f,g,b,m,h,v,x){const{cross:w,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},I=ao(),R=ao(),P=Nn(50,225).constrain(g.measure(20)),M={mouse:300,touch:400},T={mouse:500,touch:600},B=b?43:25;let O=!1,L=0,W=0,j=!1,$=!1,N=!1,V=!1;function U(F){if(!x)return;function de(Q){(ii(x)||x(F,Q))&&J(Q)}const _=t;I.add(_,"dragstart",Q=>Q.preventDefault(),A).add(_,"touchmove",()=>{},A).add(_,"touchend",()=>{}).add(_,"touchstart",de).add(_,"mousedown",de).add(_,"touchcancel",q).add(_,"contextmenu",q).add(_,"click",ae,!0)}function ee(){I.clear(),R.clear()}function k(){const F=V?n:t;R.add(F,"touchmove",G,A).add(F,"touchend",q).add(F,"mousemove",G,A).add(F,"mouseup",q)}function H(F){const de=F.nodeName||"";return S.includes(de)}function Y(){return(b?T:M)[V?"mouse":"touch"]}function z(F,de){const _=d.add(lf(F)*-1),Q=u.byDistance(F,!b).distance;return b||De(F)<P?Q:h&&de?Q*.5:u.byIndex(_.get(),0).distance}function J(F){const de=Zu(F,r);V=de,N=b&&de&&!F.buttons&&O,O=eo(o.get(),i.get())>=2,!(de&&F.button!==0)&&(H(F.target)||(j=!0,a.pointerDown(F),l.useFriction(0).useDuration(0),o.set(i),k(),L=a.readPoint(F),W=a.readPoint(F,w),f.emit("pointerDown")))}function G(F){if(!Zu(F,r)&&F.touches.length>=2)return q(F);const _=a.readPoint(F),Q=a.readPoint(F,w),ge=eo(_,L),xe=eo(Q,W);if(!$&&!V&&(!F.cancelable||($=ge>xe,!$)))return q(F);const Te=a.pointerMove(F);ge>m&&(N=!0),l.useFriction(.3).useDuration(.75),s.start(),o.add(C(Te)),F.preventDefault()}function q(F){const _=u.byDistance(0,!1).index!==d.get(),Q=a.pointerUp(F)*Y(),ge=z(C(Q),_),xe=DO(Q,ge),Te=B-10*xe,ye=v+xe/50;$=!1,j=!1,R.clear(),l.useDuration(Te).useFriction(ye),c.distance(ge,!b),V=!1,f.emit("pointerUp")}function ae(F){N&&(F.stopPropagation(),F.preventDefault(),N=!1)}function re(){return j}return{init:U,destroy:ee,pointerDown:re}}function GO(e,t){let r,o;function a(d){return d.timeStamp}function i(d,f){const b=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Zu(d,t)?d:d.touches[0])[b]}function s(d){return r=d,o=d,i(d)}function c(d){const f=i(d)-i(o),g=a(d)-a(r)>170;return o=d,g&&(r=d),f}function l(d){if(!r||!o)return 0;const f=i(o)-i(r),g=a(d)-a(r),b=a(d)-a(o)>170,m=f/g;return g&&!b&&De(m)>.1?m:0}return{pointerDown:s,pointerMove:c,pointerUp:l,readPoint:i}}function LO(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function WO(e){function t(r){return e*(r/100)}return{measure:t}}function VO(e,t,n,r,o,a,i){const s=[e].concat(r);let c,l,u=[],d=!1;function f(h){return o.measureSize(i.measure(h))}function g(h){if(!a)return;l=f(e),u=r.map(f);function v(x){for(const w of x){if(d)return;const C=w.target===e,S=r.indexOf(w.target),A=C?l:u[S],I=f(C?e:r[S]);if(De(I-A)>=.5){h.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(ii(a)||a(h,x))&&v(x)}),n.requestAnimationFrame(()=>{s.forEach(x=>c.observe(x))})}function b(){d=!0,c&&c.disconnect()}return{init:g,destroy:b}}function HO(e,t,n,r,o,a){let i=0,s=0,c=o,l=a,u=e.get(),d=0;function f(){const A=r.get()-e.get(),I=!c;let R=0;return I?(i=0,n.set(r),e.set(r),R=A):(n.set(e),i+=A/c,i*=l,u+=i,e.add(i),R=u-d),s=lf(R),d=u,S}function g(){const A=r.get()-t.get();return De(A)<.001}function b(){return c}function m(){return s}function h(){return i}function v(){return w(o)}function x(){return C(a)}function w(A){return c=A,S}function C(A){return l=A,S}const S={direction:m,duration:b,velocity:h,seek:f,settled:g,useBaseFriction:x,useBaseDuration:v,useFriction:C,useDuration:w};return S}function $O(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=Nn(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(g){if(!l())return;const b=e.reachedMin(t.get())?"min":"max",m=De(e[b]-t.get()),h=n.get()-t.get(),v=s.constrain(m/i);n.subtract(h*v),!g&&De(h)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(g){c=!g}return{shouldConstrain:l,constrain:u,toggleActive:d}}function zO(e,t,n,r,o){const a=Nn(-t+e,0),i=d(),s=u(),c=f();function l(b,m){return eo(b,m)<=1}function u(){const b=i[0],m=Tt(i),h=i.lastIndexOf(b),v=i.indexOf(m)+1;return Nn(h,v)}function d(){return n.map((b,m)=>{const{min:h,max:v}=a,x=a.constrain(b),w=!m,C=uf(n,m);return w?v:C||l(h,x)?h:l(v,x)?v:x}).map(b=>parseFloat(b.toFixed(3)))}function f(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:b,max:m}=s;return i.slice(b,m)}return{snapsContained:c,scrollContainLimit:s}}function XO(e,t,n){const r=t[0],o=n?r-e:Tt(t);return{limit:Nn(o,r)}}function YO(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=Nn(a,i);function l(f){return f===1?c(n.get()):f===-1?s(n.get()):!1}function u(f){if(!l(f))return;const g=e*(f*-1);r.forEach(b=>b.add(g))}return{loop:u}}function ZO(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function qO(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,c=d().map(t.measure),l=f(),u=g();function d(){return s(r).map(m=>Tt(m)[i]-m[0][a]).map(De)}function f(){return r.map(m=>n[a]-m[a]).map(m=>-De(m))}function g(){return s(l).map(m=>m[0]).map((m,h)=>m+c[h])}return{snaps:l,snapsAligned:u}}function UO(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:c}=r,l=u();function u(){const f=i(a),g=!e||t==="keepSnaps";return n.length===1?[a]:g?f:f.slice(s,c).map((b,m,h)=>{const v=!m,x=uf(h,m);if(v){const w=Tt(h[0])+1;return Jp(w)}if(x){const w=Ro(a)-Tt(h)[0]+1;return Jp(w,Tt(h)[0])}return b})}return{slideRegistry:l}}function JO(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function c(b){return b.concat().sort((m,h)=>De(m)-De(h))[0]}function l(b){const m=e?i(b):s(b),h=t.map((x,w)=>({diff:u(x-m,0),index:w})).sort((x,w)=>De(x.diff)-De(w.diff)),{index:v}=h[0];return{index:v,distance:m}}function u(b,m){const h=[b,b+n,b-n];if(!e)return b;if(!m)return c(h);const v=h.filter(x=>lf(x)===m);return v.length?c(v):Tt(h)-n}function d(b,m){const h=t[b]-o.get(),v=u(h,m);return{index:b,distance:v}}function f(b,m){const h=o.get()+b,{index:v,distance:x}=l(h),w=!e&&a(h);if(!m||w)return{index:v,distance:b};const C=t[v]-x,S=b+u(C,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function KO(e,t,n,r,o,a,i){function s(d){const f=d.distance,g=d.index!==t.get();a.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(d.index),i.emit("select"))}function c(d,f){const g=o.byDistance(d,f);s(g)}function l(d,f){const g=t.clone().set(d),b=o.byIndex(g.get(),f);s(b)}return{distance:c,index:l}}function QO(e,t,n,r,o,a,i,s){const c={passive:!0,capture:!0};let l=0;function u(g){if(!s)return;function b(m){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(w=>w.includes(m));cf(x)&&(o.useDuration(0),r.index(x,0),i.emit("slideFocus"))}a.add(document,"keydown",d,!1),t.forEach((m,h)=>{a.add(m,"focus",v=>{(ii(s)||s(g,v))&&b(h)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function zr(e){let t=e;function n(){return t}function r(c){t=i(c)}function o(c){t+=i(c)}function a(c){t-=i(c)}function i(c){return cf(c)?c:c.get()}return{get:n,set:r,add:o,subtract:a}}function t0(e,t){const n=e.scroll==="x"?i:s,r=t.style;let o=null,a=!1;function i(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(a)return;const g=NO(e.direction(f));g!==o&&(r.transform=n(g),o=g)}function l(f){a=!f}function u(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function eT(e,t,n,r,o,a,i,s,c){const u=ro(o),d=ro(o).reverse(),f=v().concat(x());function g(I,R){return I.reduce((P,M)=>P-o[M],R)}function b(I,R){return I.reduce((P,M)=>g(P,R)>0?P.concat([M]):P,[])}function m(I){return a.map((R,P)=>({start:R-r[P]+.5+I,end:R+t-.5+I}))}function h(I,R,P){const M=m(R);return I.map(T=>{const B=P?0:-n,O=P?n:0,L=P?"end":"start",W=M[T][L];return{index:T,loopPoint:W,slideLocation:zr(-1),translate:t0(e,c[T]),target:()=>s.get()>W?B:O}})}function v(){const I=i[0],R=b(d,I);return h(R,n,!1)}function x(){const I=t-i[0]-1,R=b(u,I);return h(R,-n,!0)}function w(){return f.every(({index:I})=>{const R=u.filter(P=>P!==I);return g(R,t)<=.1})}function C(){f.forEach(I=>{const{target:R,translate:P,slideLocation:M}=I,T=R();T!==M.get()&&(P.to(T),M.set(T))})}function S(){f.forEach(I=>I.translate.clear())}return{canLoop:w,clear:S,loop:C,loopPoints:f}}function tT(e,t,n){let r,o=!1;function a(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{o||(ii(n)||n(c,u))&&l(u)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function nT(e,t,n,r){const o={};let a=null,i=null,s,c=!1;function l(){s=new IntersectionObserver(b=>{c||(b.forEach(m=>{const h=t.indexOf(m.target);o[h]=m}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(b=>s.observe(b))}function u(){s&&s.disconnect(),c=!0}function d(b){return oo(o).reduce((m,h)=>{const v=parseInt(h),{isIntersecting:x}=o[v];return(b&&x||!b&&!x)&&m.push(v),m},[])}function f(b=!0){if(b&&a)return a;if(!b&&i)return i;const m=d(b);return b&&(a=m),b||(i=m),m}return{init:l,destroy:u,get:f}}function rT(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:c}=e,l=n[0]&&o,u=b(),d=m(),f=n.map(i),g=h();function b(){if(!l)return 0;const x=n[0];return De(t[s]-x[s])}function m(){if(!l)return 0;const x=a.getComputedStyle(Tt(r));return parseFloat(x.getPropertyValue(`margin-${c}`))}function h(){return n.map((x,w,C)=>{const S=!w,A=uf(C,w);return S?f[w]+u:A?f[w]+d:C[w+1][s]-x[s]}).map(De)}return{slideSizes:f,slideSizesWithGaps:g,startGap:u,endGap:d}}function oT(e,t,n,r,o,a,i,s,c){const{startEdge:l,endEdge:u,direction:d}=e,f=cf(n);function g(v,x){return ro(v).filter(w=>w%x===0).map(w=>v.slice(w,w+x))}function b(v){return v.length?ro(v).reduce((x,w,C)=>{const S=Tt(x)||0,A=S===0,I=w===Ro(v),R=o[l]-a[S][l],P=o[l]-a[w][u],M=!r&&A?d(i):0,T=!r&&I?d(s):0,B=De(P-T-(R+M));return C&&B>t+c&&x.push(w),I&&x.push(v.length),x},[]).map((x,w,C)=>{const S=Math.max(C[w-1]||0);return v.slice(S,x)}):[]}function m(v){return f?g(v,n):b(v)}return{groupSlides:m}}function aT(e,t,n,r,o,a,i){const{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:g,dragThreshold:b,inViewThreshold:m,slidesToScroll:h,skipSnaps:v,containScroll:x,watchResize:w,watchSlides:C,watchDrag:S,watchFocus:A}=a,I=2,R=LO(),P=R.measure(t),M=n.map(R.measure),T=BO(c,l),B=T.measureSize(P),O=WO(B),L=kO(s,B),W=!d&&!!x,j=d||!!x,{slideSizes:$,slideSizesWithGaps:N,startGap:V,endGap:U}=rT(T,P,M,n,j,o),ee=oT(T,B,h,d,P,M,V,U,I),{snaps:k,snapsAligned:H}=qO(T,L,P,M,ee),Y=-Tt(k)+Tt(N),{snapsContained:z,scrollContainLimit:J}=zO(B,Y,H,x,I),G=W?z:H,{limit:q}=XO(Y,G,d),ae=e0(Ro(G),u,d),re=ae.clone(),te=ro(n),F=({dragHandler:lt,scrollBody:rn,scrollBounds:ut,options:{loop:Ue}})=>{Ue||ut.constrain(lt.pointerDown()),rn.seek()},de=({scrollBody:lt,translate:rn,location:ut,offsetLocation:Ue,previousLocation:on,scrollLooper:An,slideLooper:Mr,dragHandler:qn,animation:Dr,eventHandler:Z,scrollBounds:ce,options:{loop:K}},ne)=>{const ve=lt.settled(),me=!ce.shouldConstrain(),Be=K?ve:ve&&me,dt=Be&&!qn.pointerDown();dt&&Dr.stop();const nt=ut.get()*ne+on.get()*(1-ne);Ue.set(nt),K&&(An.loop(lt.direction()),Mr.loop()),rn.to(Ue.get()),dt&&Z.emit("settle"),Be||Z.emit("scroll")},_=FO(r,o,()=>F(Bt),lt=>de(Bt,lt)),Q=.68,ge=G[ae.get()],xe=zr(ge),Te=zr(ge),ye=zr(ge),Se=zr(ge),tt=HO(xe,ye,Te,Se,f,Q),Ve=JO(d,G,Y,q,Se),Fe=KO(_,ae,re,tt,Ve,Se,i),Ye=ZO(q),Ze=ao(),rt=nT(t,n,i,m),{slideRegistry:ot}=UO(W,x,G,J,ee,te),It=QO(e,n,ot,Fe,tt,Ze,i,A),Bt={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:P,slideRects:M,animation:_,axis:T,dragHandler:jO(T,e,r,o,Se,GO(T,o),xe,_,Fe,tt,Ve,ae,i,O,g,b,v,Q,S),eventStore:Ze,percentOfView:O,index:ae,indexPrevious:re,limit:q,location:xe,offsetLocation:ye,previousLocation:Te,options:a,resizeHandler:VO(t,i,o,n,T,w,R),scrollBody:tt,scrollBounds:$O(q,ye,Se,tt,O),scrollLooper:YO(Y,q,ye,[xe,ye,Te,Se]),scrollProgress:Ye,scrollSnapList:G.map(Ye.get),scrollSnaps:G,scrollTarget:Ve,scrollTo:Fe,slideLooper:eT(T,B,Y,$,N,k,G,ye,n),slideFocus:It,slidesHandler:tT(t,i,C),slidesInView:rt,slideIndexes:te,slideRegistry:ot,slidesToScroll:ee,target:Se,translate:t0(T,t)};return Bt}function iT(){let e={},t;function n(l){t=l}function r(l){return e[l]||[]}function o(l){return r(l).forEach(u=>u(t,l)),c}function a(l,u){return e[l]=r(l).concat([u]),c}function i(l,u){return e[l]=r(l).filter(d=>d!==u),c}function s(){e={}}const c={init:n,emit:o,off:i,on:a,clear:s};return c}const sT={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function cT(e){function t(a,i){return Qy(a,i||{})}function n(a){const i=a.breakpoints||{},s=oo(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,l)=>t(c,l),{});return t(a,s)}function r(a){return a.map(i=>oo(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function lT(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,c)=>Object.assign(s,{[c.name]:c}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Aa(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=cT(o),i=lT(a),s=ao(),c=iT(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:g,emit:b}=c,m=T;let h=!1,v,x=l(sT,Aa.globalOptions),w=l(x),C=[],S,A,I;function R(){const{container:te,slides:F}=w;A=(Yu(te)?e.querySelector(te):te)||e.children[0];const _=Yu(F)?A.querySelectorAll(F):F;I=[].slice.call(_||A.children)}function P(te){const F=aT(e,A,I,r,o,te,c);if(te.loop&&!F.slideLooper.canLoop()){const de=Object.assign({},te,{loop:!1});return P(de)}return F}function M(te,F){h||(x=l(x,te),w=u(x),C=F||C,R(),v=P(w),d([x,...C.map(({options:de})=>de)]).forEach(de=>s.add(de,"change",T)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(re),v.eventHandler.init(re),v.resizeHandler.init(re),v.slidesHandler.init(re),v.options.loop&&v.slideLooper.loop(),A.offsetParent&&I.length&&v.dragHandler.init(re),S=i.init(re,C)))}function T(te,F){const de=ee();B(),M(l({startIndex:de},te),F),c.emit("reInit")}function B(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),s.clear()}function O(){h||(h=!0,s.clear(),B(),c.emit("destroy"),c.clear())}function L(te,F,de){!w.active||h||(v.scrollBody.useBaseFriction().useDuration(F===!0?0:w.duration),v.scrollTo.index(te,de||0))}function W(te){const F=v.index.add(1).get();L(F,te,-1)}function j(te){const F=v.index.add(-1).get();L(F,te,1)}function $(){return v.index.add(1).get()!==ee()}function N(){return v.index.add(-1).get()!==ee()}function V(){return v.scrollSnapList}function U(){return v.scrollProgress.get(v.offsetLocation.get())}function ee(){return v.index.get()}function k(){return v.indexPrevious.get()}function H(){return v.slidesInView.get()}function Y(){return v.slidesInView.get(!1)}function z(){return S}function J(){return v}function G(){return e}function q(){return A}function ae(){return I}const re={canScrollNext:$,canScrollPrev:N,containerNode:q,internalEngine:J,destroy:O,off:g,on:f,emit:b,plugins:z,previousScrollSnap:k,reInit:m,rootNode:G,scrollNext:W,scrollPrev:j,scrollProgress:U,scrollSnapList:V,scrollTo:L,selectedScrollSnap:ee,slideNodes:ae,slidesInView:H,slidesNotInView:Y};return M(t,n),setTimeout(()=>c.emit("init"),0),re}Aa.globalOptions=void 0;function df(e={},t=[]){const n=E.useRef(e),r=E.useRef(t),[o,a]=E.useState(),[i,s]=E.useState(),c=E.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return E.useEffect(()=>{sf(n.current,e)||(n.current=e,c())},[e,c]),E.useEffect(()=>{MO(r.current,t)||(r.current=t,c())},[t,c]),E.useEffect(()=>{if(_O()&&i){Aa.globalOptions=df.globalOptions;const l=Aa(i,n.current,r.current);return a(l),()=>l.destroy()}else a(void 0)},[i,a]),[s,o]}df.globalOptions=void 0;const n0=p.createContext(null);function si(){const e=p.useContext(n0);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function uT({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i}){const[s,c]=df({...t,axis:e==="horizontal"?"x":"y"},r),[l,u]=p.useState(!1),[d,f]=p.useState(!1),g=p.useCallback(v=>{v&&(u(v.canScrollPrev()),f(v.canScrollNext()))},[]),b=p.useCallback(()=>{c?.scrollPrev()},[c]),m=p.useCallback(()=>{c?.scrollNext()},[c]),h=p.useCallback(v=>{v.key==="ArrowLeft"?(v.preventDefault(),b()):v.key==="ArrowRight"&&(v.preventDefault(),m())},[b,m]);return p.useEffect(()=>{!c||!n||n(c)},[c,n]),p.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c?.off("select",g)}},[c,g]),y.jsx(n0.Provider,{value:{carouselRef:s,api:c,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:b,scrollNext:m,canScrollPrev:l,canScrollNext:d},children:y.jsx("div",{onKeyDownCapture:h,className:D("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:a})})}function dT({className:e,...t}){const{carouselRef:n,orientation:r}=si();return y.jsx("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:y.jsx("div",{className:D("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function fT({className:e,...t}){const{orientation:n}=si();return y.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:D("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})}function pT({className:e,variant:t="outline",size:n="icon",...r}){const{orientation:o,scrollPrev:a,canScrollPrev:i}=si();return y.jsxs(Io,{"data-slot":"carousel-previous",variant:t,size:n,className:D("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:a,...r,children:[y.jsx(H1,{}),y.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function mT({className:e,variant:t="outline",size:n="icon",...r}){const{orientation:o,scrollNext:a,canScrollNext:i}=si();return y.jsxs(Io,{"data-slot":"carousel-next",variant:t,size:n,className:D("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:a,...r,children:[y.jsx(z1,{}),y.jsx("span",{className:"sr-only",children:"Next slide"})]})}function ir({children:e}){return e}ir.displayName="Case";function ff({children:e}){return e}ff.displayName="Default";function hT(e){return p.isValidElement(e)}function Xr({children:e}){let t=null,n=null;return p.Children.forEach(e,r=>{if(!hT(r))return;const o=r.type.displayName;if(!t&&o==="Case"){const{condition:a}=r.props;a&&(t=r)}else!n&&o==="Default"&&(n=r)}),t??n??null}var ds,Kp;function Nt(){if(Kp)return ds;Kp=1;var e=Array.isArray;return ds=e,ds}var fs,Qp;function r0(){if(Qp)return fs;Qp=1;var e=typeof qo=="object"&&qo&&qo.Object===Object&&qo;return fs=e,fs}var ps,em;function Kt(){if(em)return ps;em=1;var e=r0(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ps=n,ps}var ms,tm;function Po(){if(tm)return ms;tm=1;var e=Kt(),t=e.Symbol;return ms=t,ms}var hs,nm;function gT(){if(nm)return hs;nm=1;var e=Po(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=n.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var u=r.call(i);return l&&(s?i[o]=c:delete i[o]),u}return hs=a,hs}var gs,rm;function bT(){if(rm)return gs;rm=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return gs=n,gs}var bs,om;function Vn(){if(om)return bs;om=1;var e=Po(),t=gT(),n=bT(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:r:a&&a in Object(s)?t(s):n(s)}return bs=i,bs}var vs,am;function Hn(){if(am)return vs;am=1;function e(t){return t!=null&&typeof t=="object"}return vs=e,vs}var ys,im;function Oo(){if(im)return ys;im=1;var e=Vn(),t=Hn(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return ys=r,ys}var xs,sm;function pf(){if(sm)return xs;sm=1;var e=Nt(),t=Oo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||i!=null&&a in Object(i)}return xs=o,xs}var ws,cm;function Sn(){if(cm)return ws;cm=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ws=e,ws}var Cs,lm;function mf(){if(lm)return Cs;lm=1;var e=Vn(),t=Sn(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var c=e(s);return c==r||c==o||c==n||c==a}return Cs=i,Cs}var Ss,um;function vT(){if(um)return Ss;um=1;var e=Kt(),t=e["__core-js_shared__"];return Ss=t,Ss}var Is,dm;function yT(){if(dm)return Is;dm=1;var e=vT(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Is=n,Is}var Es,fm;function o0(){if(fm)return Es;fm=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Es=n,Es}var As,pm;function xT(){if(pm)return As;pm=1;var e=mf(),t=yT(),n=Sn(),r=o0(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,u=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||t(f))return!1;var g=e(f)?u:a;return g.test(r(f))}return As=d,As}var Rs,mm;function wT(){if(mm)return Rs;mm=1;function e(t,n){return t?.[n]}return Rs=e,Rs}var Ps,hm;function $n(){if(hm)return Ps;hm=1;var e=xT(),t=wT();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return Ps=n,Ps}var Os,gm;function ci(){if(gm)return Os;gm=1;var e=$n(),t=e(Object,"create");return Os=t,Os}var Ts,bm;function CT(){if(bm)return Ts;bm=1;var e=ci();function t(){this.__data__=e?e(null):{},this.size=0}return Ts=t,Ts}var _s,vm;function ST(){if(vm)return _s;vm=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return _s=e,_s}var Ms,ym;function IT(){if(ym)return Ms;ym=1;var e=ci(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return r.call(i,a)?i[a]:void 0}return Ms=o,Ms}var Ds,xm;function ET(){if(xm)return Ds;xm=1;var e=ci(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return Ds=r,Ds}var Ns,wm;function AT(){if(wm)return Ns;wm=1;var e=ci(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return Ns=n,Ns}var ks,Cm;function RT(){if(Cm)return ks;Cm=1;var e=CT(),t=ST(),n=IT(),r=ET(),o=AT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,ks=a,ks}var Fs,Sm;function PT(){if(Sm)return Fs;Sm=1;function e(){this.__data__=[],this.size=0}return Fs=e,Fs}var Bs,Im;function hf(){if(Im)return Bs;Im=1;function e(t,n){return t===n||t!==t&&n!==n}return Bs=e,Bs}var js,Em;function li(){if(Em)return js;Em=1;var e=hf();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return js=t,js}var Gs,Am;function OT(){if(Am)return Gs;Am=1;var e=li(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():n.call(a,i,1),--this.size,!0}return Gs=r,Gs}var Ls,Rm;function TT(){if(Rm)return Ls;Rm=1;var e=li();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return Ls=t,Ls}var Ws,Pm;function _T(){if(Pm)return Ws;Pm=1;var e=li();function t(n){return e(this.__data__,n)>-1}return Ws=t,Ws}var Vs,Om;function MT(){if(Om)return Vs;Om=1;var e=li();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return Vs=t,Vs}var Hs,Tm;function ui(){if(Tm)return Hs;Tm=1;var e=PT(),t=OT(),n=TT(),r=_T(),o=MT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Hs=a,Hs}var $s,_m;function gf(){if(_m)return $s;_m=1;var e=$n(),t=Kt(),n=e(t,"Map");return $s=n,$s}var zs,Mm;function DT(){if(Mm)return zs;Mm=1;var e=RT(),t=ui(),n=gf();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return zs=r,zs}var Xs,Dm;function NT(){if(Dm)return Xs;Dm=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Xs=e,Xs}var Ys,Nm;function di(){if(Nm)return Ys;Nm=1;var e=NT();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Ys=t,Ys}var Zs,km;function kT(){if(km)return Zs;km=1;var e=di();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Zs=t,Zs}var qs,Fm;function FT(){if(Fm)return qs;Fm=1;var e=di();function t(n){return e(this,n).get(n)}return qs=t,qs}var Us,Bm;function BT(){if(Bm)return Us;Bm=1;var e=di();function t(n){return e(this,n).has(n)}return Us=t,Us}var Js,jm;function jT(){if(jm)return Js;jm=1;var e=di();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return Js=t,Js}var Ks,Gm;function bf(){if(Gm)return Ks;Gm=1;var e=DT(),t=kT(),n=FT(),r=BT(),o=jT();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Ks=a,Ks}var Qs,Lm;function GT(){if(Lm)return Qs;Lm=1;var e=bf(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],c=a.cache;if(c.has(s))return c.get(s);var l=r.apply(this,i);return a.cache=c.set(s,l)||c,l};return a.cache=new(n.Cache||e),a}return n.Cache=e,Qs=n,Qs}var ec,Wm;function LT(){if(Wm)return ec;Wm=1;var e=GT(),t=500;function n(r){var o=e(r,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return ec=n,ec}var tc,Vm;function WT(){if(Vm)return tc;Vm=1;var e=LT(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,c,l){a.push(c?l.replace(n,"$1"):s||i)}),a});return tc=r,tc}var nc,Hm;function a0(){if(Hm)return nc;Hm=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return nc=e,nc}var rc,$m;function VT(){if($m)return rc;$m=1;var e=Po(),t=a0(),n=Nt(),r=Oo(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(n(s))return t(s,i)+"";if(r(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return rc=i,rc}var oc,zm;function i0(){if(zm)return oc;zm=1;var e=VT();function t(n){return n==null?"":e(n)}return oc=t,oc}var ac,Xm;function s0(){if(Xm)return ac;Xm=1;var e=Nt(),t=pf(),n=WT(),r=i0();function o(a,i){return e(a)?a:t(a,i)?[a]:n(r(a))}return ac=o,ac}var ic,Ym;function fi(){if(Ym)return ic;Ym=1;var e=Oo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return ic=t,ic}var sc,Zm;function vf(){if(Zm)return sc;Zm=1;var e=s0(),t=fi();function n(r,o){o=e(o,r);for(var a=0,i=o.length;r!=null&&a<i;)r=r[t(o[a++])];return a&&a==i?r:void 0}return sc=n,sc}var cc,qm;function c0(){if(qm)return cc;qm=1;var e=vf();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return cc=t,cc}c0();var lc,Um;function HT(){if(Um)return lc;Um=1;function e(t){return t==null}return lc=e,lc}var $T=HT();const zT=Ut($T);var uc,Jm;function XT(){if(Jm)return uc;Jm=1;var e=Vn(),t=Nt(),n=Hn(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return uc=o,uc}var YT=XT();const l0=Ut(YT);var ZT=mf();const Ra=Ut(ZT);var qT=Sn();const u0=Ut(qT);var Jo={exports:{}},Ie={};var Km;function UT(){if(Km)return Ie;Km=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function m(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case e:switch(h=h.type,h){case n:case o:case r:case l:case u:return h;default:switch(h=h&&h.$$typeof,h){case s:case i:case c:case f:case d:case a:return h;default:return v}}case t:return v}}}return Ie.ContextConsumer=i,Ie.ContextProvider=a,Ie.Element=e,Ie.ForwardRef=c,Ie.Fragment=n,Ie.Lazy=f,Ie.Memo=d,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=u,Ie.isAsyncMode=function(){return!1},Ie.isConcurrentMode=function(){return!1},Ie.isContextConsumer=function(h){return m(h)===i},Ie.isContextProvider=function(h){return m(h)===a},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Ie.isForwardRef=function(h){return m(h)===c},Ie.isFragment=function(h){return m(h)===n},Ie.isLazy=function(h){return m(h)===f},Ie.isMemo=function(h){return m(h)===d},Ie.isPortal=function(h){return m(h)===t},Ie.isProfiler=function(h){return m(h)===o},Ie.isStrictMode=function(h){return m(h)===r},Ie.isSuspense=function(h){return m(h)===l},Ie.isSuspenseList=function(h){return m(h)===u},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===u||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===a||h.$$typeof===i||h.$$typeof===c||h.$$typeof===b||h.getModuleId!==void 0)},Ie.typeOf=m,Ie}var Ee={};var Qm;function JT(){return Qm||(Qm=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=!1,m=!1,h=!1,v=!1,x=!1,w;w=Symbol.for("react.module.reference");function C(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||x||_===r||_===l||_===u||v||_===g||b||m||h||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===i||_.$$typeof===c||_.$$typeof===w||_.getModuleId!==void 0))}function S(_){if(typeof _=="object"&&_!==null){var Q=_.$$typeof;switch(Q){case e:var ge=_.type;switch(ge){case n:case o:case r:case l:case u:return ge;default:var xe=ge&&ge.$$typeof;switch(xe){case s:case i:case c:case f:case d:case a:return xe;default:return Q}}case t:return Q}}}var A=i,I=a,R=e,P=c,M=n,T=f,B=d,O=t,L=o,W=r,j=l,$=u,N=!1,V=!1;function U(_){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(_){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(_){return S(_)===i}function H(_){return S(_)===a}function Y(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function z(_){return S(_)===c}function J(_){return S(_)===n}function G(_){return S(_)===f}function q(_){return S(_)===d}function ae(_){return S(_)===t}function re(_){return S(_)===o}function te(_){return S(_)===r}function F(_){return S(_)===l}function de(_){return S(_)===u}Ee.ContextConsumer=A,Ee.ContextProvider=I,Ee.Element=R,Ee.ForwardRef=P,Ee.Fragment=M,Ee.Lazy=T,Ee.Memo=B,Ee.Portal=O,Ee.Profiler=L,Ee.StrictMode=W,Ee.Suspense=j,Ee.SuspenseList=$,Ee.isAsyncMode=U,Ee.isConcurrentMode=ee,Ee.isContextConsumer=k,Ee.isContextProvider=H,Ee.isElement=Y,Ee.isForwardRef=z,Ee.isFragment=J,Ee.isLazy=G,Ee.isMemo=q,Ee.isPortal=ae,Ee.isProfiler=re,Ee.isStrictMode=te,Ee.isSuspense=F,Ee.isSuspenseList=de,Ee.isValidElementType=C,Ee.typeOf=S})()),Ee}var eh;function KT(){return eh||(eh=1,process.env.NODE_ENV==="production"?Jo.exports=UT():Jo.exports=JT()),Jo.exports}KT();var dc,th;function d0(){if(th)return dc;th=1;var e=Vn(),t=Hn(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return dc=r,dc}var fc,nh;function QT(){if(nh)return fc;nh=1;var e=d0();function t(n){return e(n)&&n!=+n}return fc=t,fc}var e_=QT();const t_=Ut(e_);var n_=d0();const r_=Ut(n_);var Ko=function(t){return l0(t)&&t.indexOf("%")===t.length-1},Pt=function(t){return r_(t)&&!t_(t)},Pa=function(t){return Pt(t)||l0(t)};function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}var o_=["viewBox","children"],a_=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rh=["points","pathLength"],pc={svg:o_,polygon:rh,polyline:rh},f0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],i_=function(t,n,r){return function(o){return t(n,r,o),null}},s_=function(t,n,r){if(!u0(t)||qu(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];f0.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=i_(i,n,r))}),o},c_=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},l_=function(t,n,r,o){var a,i=(a=pc?.[o])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!Ra(t)&&(o&&i.includes(n)||a_.includes(n))||f0.includes(n)},p0=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(E.isValidElement(t)&&(o=t.props),!u0(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;l_((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},u_=["children","width","height","viewBox","className","style","title","desc"];function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}function d_(e,t){if(e==null)return{};var n=f_(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f_(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function p_(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,c=e.desc,l=d_(e,u_),u=o||{width:n,height:r,x:0,y:0},d=dn("recharts-surface",a);return E.createElement("svg",Uu({},p0(l,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),E.createElement("title",null,s),E.createElement("desc",null,c),t)}var m_=process.env.NODE_ENV!=="production",ma=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(m_&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(n.replace(/%s/g,function(){return o[i++]}))}},mc,oh;function h_(){if(oh)return mc;oh=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+n];return i}return mc=e,mc}var hc,ah;function g_(){if(ah)return hc;ah=1;var e=h_();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return hc=t,hc}var gc,ih;function m0(){if(ih)return gc;ih=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function c(l){return s.test(l)}return gc=c,gc}var bc,sh;function b_(){if(sh)return bc;sh=1;function e(t){return t.split("")}return bc=e,bc}var vc,ch;function v_(){if(ch)return vc;ch=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=l+"?",m="["+a+"]?",h="(?:"+g+"(?:"+[u,d,f].join("|")+")"+m+b+")*",v=m+b+h,x="(?:"+[u+s+"?",s,d,f,i].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+v,"g");function C(S){return S.match(w)||[]}return vc=C,vc}var yc,lh;function y_(){if(lh)return yc;lh=1;var e=b_(),t=m0(),n=v_();function r(o){return t(o)?n(o):e(o)}return yc=r,yc}var xc,uh;function x_(){if(uh)return xc;uh=1;var e=g_(),t=m0(),n=y_(),r=i0();function o(a){return function(i){i=r(i);var s=t(i)?n(i):void 0,c=s?s[0]:i.charAt(0),l=s?e(s,1).join(""):i.slice(1);return c[a]()+l}}return xc=o,xc}var wc,dh;function w_(){if(dh)return wc;dh=1;var e=x_(),t=e("toUpperCase");return wc=t,wc}var C_=w_();const h0=Ut(C_);function Qo(e){return function(){return e}}const g0=Math.cos,Oa=Math.sin,kt=Math.sqrt,Ta=Math.PI,pi=2*Ta,Ju=Math.PI,Ku=2*Ju,Tn=1e-6,S_=Ku-Tn;function b0(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function I_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b0;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class E_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?b0:I_(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,c=r-t,l=o-n,u=i-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Tn)if(!(Math.abs(d*c-l*u)>Tn)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-i,b=o-s,m=c*c+l*l,h=g*g+b*b,v=Math.sqrt(m),x=Math.sqrt(f),w=a*Math.tan((Ju-Math.acos((m+f-h)/(2*v*x)))/2),C=w/x,S=w/v;Math.abs(C-1)>Tn&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*g>u*b)},${this._x1=t+S*c},${this._y1=n+S*l}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),c=r*Math.sin(o),l=t+s,u=n+c,d=1^i,f=i?o-a:a-o;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Tn||Math.abs(this._y1-u)>Tn)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%Ku+Ku),f>S_?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=u}`:f>Tn&&this._append`A${r},${r},0,${+(f>=Ju)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function A_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new E_(t)}const yf={draw(e,t){const n=kt(t/Ta);e.moveTo(n,0),e.arc(0,0,n,0,pi)}},R_={draw(e,t){const n=kt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},v0=kt(1/3),P_=v0*2,O_={draw(e,t){const n=kt(t/P_),r=n*v0;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},T_={draw(e,t){const n=kt(t),r=-n/2;e.rect(r,r,n,n)}},__=.8908130915292852,y0=Oa(Ta/10)/Oa(7*Ta/10),M_=Oa(pi/10)*y0,D_=-g0(pi/10)*y0,N_={draw(e,t){const n=kt(t*__),r=M_*n,o=D_*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=pi*a/5,s=g0(i),c=Oa(i);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},Cc=kt(3),k_={draw(e,t){const n=-kt(t/(Cc*3));e.moveTo(0,n*2),e.lineTo(-Cc*n,-n),e.lineTo(Cc*n,-n),e.closePath()}},vt=-.5,yt=kt(3)/2,Qu=1/kt(12),F_=(Qu/2+1)*3,B_={draw(e,t){const n=kt(t/F_),r=n/2,o=n*Qu,a=r,i=n*Qu+n,s=-a,c=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,c),e.lineTo(vt*r-yt*o,yt*r+vt*o),e.lineTo(vt*a-yt*i,yt*a+vt*i),e.lineTo(vt*s-yt*c,yt*s+vt*c),e.lineTo(vt*r+yt*o,vt*o-yt*r),e.lineTo(vt*a+yt*i,vt*i-yt*a),e.lineTo(vt*s+yt*c,vt*c-yt*s),e.closePath()}};function j_(e,t){let n=null,r=A_(o);e=typeof e=="function"?e:Qo(e||yf),t=typeof t=="function"?t:Qo(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Qo(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Qo(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}var G_=["type","size","sizeType"];function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ed.apply(this,arguments)}function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(r){L_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L_(e,t,n){return t=W_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W_(e){var t=V_(e,"string");return io(t)=="symbol"?t:t+""}function V_(e,t){if(io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H_(e,t){if(e==null)return{};var n=$_(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $_(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var x0={symbolCircle:yf,symbolCross:R_,symbolDiamond:O_,symbolSquare:T_,symbolStar:N_,symbolTriangle:k_,symbolWye:B_},z_=Math.PI/180,X_=function(t){var n="symbol".concat(h0(t));return x0[n]||yf},Y_=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*z_;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Z_=function(t,n){x0["symbol".concat(h0(t))]=n},w0=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,c=H_(t,G_),l=ph(ph({},c),{},{type:r,size:a,sizeType:s}),u=function(){var h=X_(r),v=j_().type(h).size(Y_(a,s,r));return v()},d=l.className,f=l.cx,g=l.cy,b=p0(l,!0);return f===+f&&g===+g&&a===+a?E.createElement("path",ed({},b,{className:dn("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(g,")"),d:u()})):null};w0.registerSymbol=Z_;function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},td.apply(this,arguments)}function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(n),!0).forEach(function(r){so(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S0(r.key),r)}}function K_(e,t,n){return t&&J_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t,n){return t=_a(t),eM(e,C0()?Reflect.construct(t,n||[],_a(e).constructor):t.apply(e,n))}function eM(e,t){if(t&&(fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tM(e)}function tM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C0=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_a(e)}function nM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nd(e,t)}function so(e,t,n){return t=S0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S0(e){var t=rM(e,"string");return fr(t)=="symbol"?t:t+""}function rM(e,t){if(fr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xt=32,xf=(function(e){function t(){return U_(this,t),Q_(this,t,arguments)}return nM(t,e),K_(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=xt/2,i=xt/6,s=xt/3,c=r.inactive?o:r.color;if(r.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:xt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
2
|
-
A`).concat(
|
|
3
|
-
H`).concat(
|
|
4
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return E.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(xt/8,"h").concat(xt,"v").concat(xt*3/4,"h").concat(-xt,"z"),className:"recharts-legend-icon"});if(E.isValidElement(r.legendIcon)){var l=q_({},r);return delete l.legendIcon,E.cloneElement(r.legendIcon,l)}return E.createElement(w0,{fill:c,cx:a,cy:a,size:xt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,c=o.formatter,l=o.inactiveColor,u={x:0,y:0,width:xt,height:xt},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(g,b){var m=g.formatter||c,h=dn(so(so({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",g.inactive));if(g.type==="none")return null;var v=Ra(g.value)?null:g.value;ma(!Ra(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=g.inactive?l:g.color;return E.createElement("li",td({className:h,style:d,key:"legend-item-".concat(b)},s_(r.props,g,b)),E.createElement(p_,{width:i,height:i,viewBox:u,style:f},r.renderIcon(g)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(v,g,b):v))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(E.PureComponent);so(xf,"displayName","Legend");so(xf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Sc,hh;function oM(){if(hh)return Sc;hh=1;var e=ui();function t(){this.__data__=new e,this.size=0}return Sc=t,Sc}var Ic,gh;function aM(){if(gh)return Ic;gh=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Ic=e,Ic}var Ec,bh;function iM(){if(bh)return Ec;bh=1;function e(t){return this.__data__.get(t)}return Ec=e,Ec}var Ac,vh;function sM(){if(vh)return Ac;vh=1;function e(t){return this.__data__.has(t)}return Ac=e,Ac}var Rc,yh;function cM(){if(yh)return Rc;yh=1;var e=ui(),t=gf(),n=bf(),r=200;function o(a,i){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([a,i]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(a,i),this.size=s.size,this}return Rc=o,Rc}var Pc,xh;function I0(){if(xh)return Pc;xh=1;var e=ui(),t=oM(),n=aM(),r=iM(),o=sM(),a=cM();function i(s){var c=this.__data__=new e(s);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,Pc=i,Pc}var Oc,wh;function lM(){if(wh)return Oc;wh=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Oc=t,Oc}var Tc,Ch;function uM(){if(Ch)return Tc;Ch=1;function e(t){return this.__data__.has(t)}return Tc=e,Tc}var _c,Sh;function E0(){if(Sh)return _c;Sh=1;var e=bf(),t=lM(),n=uM();function r(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,_c=r,_c}var Mc,Ih;function dM(){if(Ih)return Mc;Ih=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Mc=e,Mc}var Dc,Eh;function A0(){if(Eh)return Dc;Eh=1;function e(t,n){return t.has(n)}return Dc=e,Dc}var Nc,Ah;function R0(){if(Ah)return Nc;Ah=1;var e=E0(),t=dM(),n=A0(),r=1,o=2;function a(i,s,c,l,u,d){var f=c&r,g=i.length,b=s.length;if(g!=b&&!(f&&b>g))return!1;var m=d.get(i),h=d.get(s);if(m&&h)return m==s&&h==i;var v=-1,x=!0,w=c&o?new e:void 0;for(d.set(i,s),d.set(s,i);++v<g;){var C=i[v],S=s[v];if(l)var A=f?l(S,C,v,s,i,d):l(C,S,v,i,s,d);if(A!==void 0){if(A)continue;x=!1;break}if(w){if(!t(s,function(I,R){if(!n(w,R)&&(C===I||u(C,I,c,l,d)))return w.push(R)})){x=!1;break}}else if(!(C===S||u(C,S,c,l,d))){x=!1;break}}return d.delete(i),d.delete(s),x}return Nc=a,Nc}var kc,Rh;function fM(){if(Rh)return kc;Rh=1;var e=Kt(),t=e.Uint8Array;return kc=t,kc}var Fc,Ph;function pM(){if(Ph)return Fc;Ph=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Fc=e,Fc}var Bc,Oh;function wf(){if(Oh)return Bc;Oh=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Bc=e,Bc}var jc,Th;function mM(){if(Th)return jc;Th=1;var e=Po(),t=fM(),n=hf(),r=R0(),o=pM(),a=wf(),i=1,s=2,c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",g="[object RegExp]",b="[object Set]",m="[object String]",h="[object Symbol]",v="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,C=w?w.valueOf:void 0;function S(A,I,R,P,M,T,B){switch(R){case x:if(A.byteLength!=I.byteLength||A.byteOffset!=I.byteOffset)return!1;A=A.buffer,I=I.buffer;case v:return!(A.byteLength!=I.byteLength||!T(new t(A),new t(I)));case c:case l:case f:return n(+A,+I);case u:return A.name==I.name&&A.message==I.message;case g:case m:return A==I+"";case d:var O=o;case b:var L=P&i;if(O||(O=a),A.size!=I.size&&!L)return!1;var W=B.get(A);if(W)return W==I;P|=s,B.set(A,I);var j=r(O(A),O(I),P,M,T,B);return B.delete(A),j;case h:if(C)return C.call(A)==C.call(I)}return!1}return jc=S,jc}var Gc,_h;function P0(){if(_h)return Gc;_h=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return Gc=e,Gc}var Lc,Mh;function hM(){if(Mh)return Lc;Mh=1;var e=P0(),t=Nt();function n(r,o,a){var i=o(r);return t(r)?i:e(i,a(r))}return Lc=n,Lc}var Wc,Dh;function gM(){if(Dh)return Wc;Dh=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];n(s,r,t)&&(i[a++]=s)}return i}return Wc=e,Wc}var Vc,Nh;function bM(){if(Nh)return Vc;Nh=1;function e(){return[]}return Vc=e,Vc}var Hc,kh;function vM(){if(kh)return Hc;kh=1;var e=gM(),t=bM(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return r.call(i,s)}))}:t;return Hc=a,Hc}var $c,Fh;function yM(){if(Fh)return $c;Fh=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return $c=e,$c}var zc,Bh;function xM(){if(Bh)return zc;Bh=1;var e=Vn(),t=Hn(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return zc=r,zc}var Xc,jh;function Cf(){if(jh)return Xc;jh=1;var e=xM(),t=Hn(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(i){return t(i)&&r.call(i,"callee")&&!o.call(i,"callee")};return Xc=a,Xc}var Yr={exports:{}},Yc,Gh;function wM(){if(Gh)return Yc;Gh=1;function e(){return!1}return Yc=e,Yc}Yr.exports;var Lh;function O0(){return Lh||(Lh=1,(function(e,t){var n=Kt(),r=wM(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Yr,Yr.exports)),Yr.exports}var Zc,Wh;function Sf(){if(Wh)return Zc;Wh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Zc=n,Zc}var qc,Vh;function If(){if(Vh)return qc;Vh=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return qc=t,qc}var Uc,Hh;function CM(){if(Hh)return Uc;Hh=1;var e=Vn(),t=If(),n=Hn(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",g="[object Set]",b="[object String]",m="[object WeakMap]",h="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",T={};T[x]=T[w]=T[C]=T[S]=T[A]=T[I]=T[R]=T[P]=T[M]=!0,T[r]=T[o]=T[h]=T[a]=T[v]=T[i]=T[s]=T[c]=T[l]=T[u]=T[d]=T[f]=T[g]=T[b]=T[m]=!1;function B(O){return n(O)&&t(O.length)&&!!T[e(O)]}return Uc=B,Uc}var Jc,$h;function T0(){if($h)return Jc;$h=1;function e(t){return function(n){return t(n)}}return Jc=e,Jc}var Zr={exports:{}};Zr.exports;var zh;function SM(){return zh||(zh=1,(function(e,t){var n=r0(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=(function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=s})(Zr,Zr.exports)),Zr.exports}var Kc,Xh;function _0(){if(Xh)return Kc;Xh=1;var e=CM(),t=T0(),n=SM(),r=n&&n.isTypedArray,o=r?t(r):e;return Kc=o,Kc}var Qc,Yh;function IM(){if(Yh)return Qc;Yh=1;var e=yM(),t=Cf(),n=Nt(),r=O0(),o=Sf(),a=_0(),i=Object.prototype,s=i.hasOwnProperty;function c(l,u){var d=n(l),f=!d&&t(l),g=!d&&!f&&r(l),b=!d&&!f&&!g&&a(l),m=d||f||g||b,h=m?e(l.length,String):[],v=h.length;for(var x in l)(u||s.call(l,x))&&!(m&&(x=="length"||g&&(x=="offset"||x=="parent")||b&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,v)))&&h.push(x);return h}return Qc=c,Qc}var el,Zh;function EM(){if(Zh)return el;Zh=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return el=t,el}var tl,qh;function AM(){if(qh)return tl;qh=1;function e(t,n){return function(r){return t(n(r))}}return tl=e,tl}var nl,Uh;function RM(){if(Uh)return nl;Uh=1;var e=AM(),t=e(Object.keys,Object);return nl=t,nl}var rl,Jh;function PM(){if(Jh)return rl;Jh=1;var e=EM(),t=RM(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&i.push(s);return i}return rl=o,rl}var ol,Kh;function mi(){if(Kh)return ol;Kh=1;var e=mf(),t=If();function n(r){return r!=null&&t(r.length)&&!e(r)}return ol=n,ol}var al,Qh;function Ef(){if(Qh)return al;Qh=1;var e=IM(),t=PM(),n=mi();function r(o){return n(o)?e(o):t(o)}return al=r,al}var il,eg;function OM(){if(eg)return il;eg=1;var e=hM(),t=vM(),n=Ef();function r(o){return e(o,n,t)}return il=r,il}var sl,tg;function TM(){if(tg)return sl;tg=1;var e=OM(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,i,s,c,l,u){var d=s&t,f=e(a),g=f.length,b=e(i),m=b.length;if(g!=m&&!d)return!1;for(var h=g;h--;){var v=f[h];if(!(d?v in i:r.call(i,v)))return!1}var x=u.get(a),w=u.get(i);if(x&&w)return x==i&&w==a;var C=!0;u.set(a,i),u.set(i,a);for(var S=d;++h<g;){v=f[h];var A=a[v],I=i[v];if(c)var R=d?c(I,A,v,i,a,u):c(A,I,v,a,i,u);if(!(R===void 0?A===I||l(A,I,s,c,u):R)){C=!1;break}S||(S=v=="constructor")}if(C&&!S){var P=a.constructor,M=i.constructor;P!=M&&"constructor"in a&&"constructor"in i&&!(typeof P=="function"&&P instanceof P&&typeof M=="function"&&M instanceof M)&&(C=!1)}return u.delete(a),u.delete(i),C}return sl=o,sl}var cl,ng;function _M(){if(ng)return cl;ng=1;var e=$n(),t=Kt(),n=e(t,"DataView");return cl=n,cl}var ll,rg;function MM(){if(rg)return ll;rg=1;var e=$n(),t=Kt(),n=e(t,"Promise");return ll=n,ll}var ul,og;function M0(){if(og)return ul;og=1;var e=$n(),t=Kt(),n=e(t,"Set");return ul=n,ul}var dl,ag;function DM(){if(ag)return dl;ag=1;var e=$n(),t=Kt(),n=e(t,"WeakMap");return dl=n,dl}var fl,ig;function NM(){if(ig)return fl;ig=1;var e=_M(),t=gf(),n=MM(),r=M0(),o=DM(),a=Vn(),i=o0(),s="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",g=i(e),b=i(t),m=i(n),h=i(r),v=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=f||t&&x(new t)!=s||n&&x(n.resolve())!=l||r&&x(new r)!=u||o&&x(new o)!=d)&&(x=function(w){var C=a(w),S=C==c?w.constructor:void 0,A=S?i(S):"";if(A)switch(A){case g:return f;case b:return s;case m:return l;case h:return u;case v:return d}return C}),fl=x,fl}var pl,sg;function kM(){if(sg)return pl;sg=1;var e=I0(),t=R0(),n=mM(),r=TM(),o=NM(),a=Nt(),i=O0(),s=_0(),c=1,l="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,g=f.hasOwnProperty;function b(m,h,v,x,w,C){var S=a(m),A=a(h),I=S?u:o(m),R=A?u:o(h);I=I==l?d:I,R=R==l?d:R;var P=I==d,M=R==d,T=I==R;if(T&&i(m)){if(!i(h))return!1;S=!0,P=!1}if(T&&!P)return C||(C=new e),S||s(m)?t(m,h,v,x,w,C):n(m,h,I,v,x,w,C);if(!(v&c)){var B=P&&g.call(m,"__wrapped__"),O=M&&g.call(h,"__wrapped__");if(B||O){var L=B?m.value():m,W=O?h.value():h;return C||(C=new e),w(L,W,v,x,C)}}return T?(C||(C=new e),r(m,h,v,x,w,C)):!1}return pl=b,pl}var ml,cg;function D0(){if(cg)return ml;cg=1;var e=kM(),t=Hn();function n(r,o,a,i,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,i,n,s)}return ml=n,ml}var hl,lg;function FM(){if(lg)return hl;lg=1;var e=I0(),t=D0(),n=1,r=2;function o(a,i,s,c){var l=s.length,u=l,d=!c;if(a==null)return!u;for(a=Object(a);l--;){var f=s[l];if(d&&f[2]?f[1]!==a[f[0]]:!(f[0]in a))return!1}for(;++l<u;){f=s[l];var g=f[0],b=a[g],m=f[1];if(d&&f[2]){if(b===void 0&&!(g in a))return!1}else{var h=new e;if(c)var v=c(b,m,g,a,i,h);if(!(v===void 0?t(m,b,n|r,c,h):v))return!1}}return!0}return hl=o,hl}var gl,ug;function N0(){if(ug)return gl;ug=1;var e=Sn();function t(n){return n===n&&!e(n)}return gl=t,gl}var bl,dg;function BM(){if(dg)return bl;dg=1;var e=N0(),t=Ef();function n(r){for(var o=t(r),a=o.length;a--;){var i=o[a],s=r[i];o[a]=[i,s,e(s)]}return o}return bl=n,bl}var vl,fg;function k0(){if(fg)return vl;fg=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vl=e,vl}var yl,pg;function jM(){if(pg)return yl;pg=1;var e=FM(),t=BM(),n=k0();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return yl=r,yl}var xl,mg;function GM(){if(mg)return xl;mg=1;function e(t,n){return t!=null&&n in Object(t)}return xl=e,xl}var wl,hg;function LM(){if(hg)return wl;hg=1;var e=s0(),t=Cf(),n=Nt(),r=Sf(),o=If(),a=fi();function i(s,c,l){c=e(c,s);for(var u=-1,d=c.length,f=!1;++u<d;){var g=a(c[u]);if(!(f=s!=null&&l(s,g)))break;s=s[g]}return f||++u!=d?f:(d=s==null?0:s.length,!!d&&o(d)&&r(g,d)&&(n(s)||t(s)))}return wl=i,wl}var Cl,gg;function WM(){if(gg)return Cl;gg=1;var e=GM(),t=LM();function n(r,o){return r!=null&&t(r,o,e)}return Cl=n,Cl}var Sl,bg;function VM(){if(bg)return Sl;bg=1;var e=D0(),t=c0(),n=WM(),r=pf(),o=N0(),a=k0(),i=fi(),s=1,c=2;function l(u,d){return r(u)&&o(d)?a(i(u),d):function(f){var g=t(f,u);return g===void 0&&g===d?n(f,u):e(d,g,s|c)}}return Sl=l,Sl}var Il,vg;function hi(){if(vg)return Il;vg=1;function e(t){return t}return Il=e,Il}var El,yg;function HM(){if(yg)return El;yg=1;function e(t){return function(n){return n?.[t]}}return El=e,El}var Al,xg;function $M(){if(xg)return Al;xg=1;var e=vf();function t(n){return function(r){return e(r,n)}}return Al=t,Al}var Rl,wg;function zM(){if(wg)return Rl;wg=1;var e=HM(),t=$M(),n=pf(),r=fi();function o(a){return n(a)?e(r(a)):t(a)}return Rl=o,Rl}var Pl,Cg;function F0(){if(Cg)return Pl;Cg=1;var e=jM(),t=VM(),n=hi(),r=Nt(),o=zM();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):o(i)}return Pl=a,Pl}var Ol,Sg;function XM(){if(Sg)return Ol;Sg=1;function e(t,n,r,o){for(var a=t.length,i=r+(o?1:-1);o?i--:++i<a;)if(n(t[i],i,t))return i;return-1}return Ol=e,Ol}var Tl,Ig;function YM(){if(Ig)return Tl;Ig=1;function e(t){return t!==t}return Tl=e,Tl}var _l,Eg;function ZM(){if(Eg)return _l;Eg=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return _l=e,_l}var Ml,Ag;function qM(){if(Ag)return Ml;Ag=1;var e=XM(),t=YM(),n=ZM();function r(o,a,i){return a===a?n(o,a,i):e(o,t,i)}return Ml=r,Ml}var Dl,Rg;function UM(){if(Rg)return Dl;Rg=1;var e=qM();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Dl=t,Dl}var Nl,Pg;function JM(){if(Pg)return Nl;Pg=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Nl=e,Nl}var kl,Og;function KM(){if(Og)return kl;Og=1;function e(){}return kl=e,kl}var Fl,Tg;function QM(){if(Tg)return Fl;Tg=1;var e=M0(),t=KM(),n=wf(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Fl=o,Fl}var Bl,_g;function eD(){if(_g)return Bl;_g=1;var e=E0(),t=UM(),n=JM(),r=A0(),o=QM(),a=wf(),i=200;function s(c,l,u){var d=-1,f=t,g=c.length,b=!0,m=[],h=m;if(u)b=!1,f=n;else if(g>=i){var v=l?null:o(c);if(v)return a(v);b=!1,f=r,h=new e}else h=l?[]:m;e:for(;++d<g;){var x=c[d],w=l?l(x):x;if(x=u||x!==0?x:0,b&&w===w){for(var C=h.length;C--;)if(h[C]===w)continue e;l&&h.push(w),m.push(x)}else f(h,w,u)||(h!==m&&h.push(w),m.push(x))}return m}return Bl=s,Bl}var jl,Mg;function tD(){if(Mg)return jl;Mg=1;var e=F0(),t=eD();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return jl=n,jl}var nD=tD();const Dg=Ut(nD);function B0(e,t,n){return t===!0?Dg(e,n):Ra(t)?Dg(e,t):e}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}var rD=["ref"];function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(n),!0).forEach(function(r){gi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G0(r.key),r)}}function aD(e,t,n){return t&&kg(e.prototype,t),n&&kg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iD(e,t,n){return t=Ma(t),sD(e,j0()?Reflect.construct(t,n||[],Ma(e).constructor):t.apply(e,n))}function sD(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cD(e)}function cD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j0=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ma(e)}function lD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rd(e,t)}function rd(e,t){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},rd(e,t)}function gi(e,t,n){return t=G0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(e){var t=uD(e,"string");return pr(t)=="symbol"?t:t+""}function uD(e,t){if(pr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dD(e,t){if(e==null)return{};var n=fD(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pD(e){return e.value}function mD(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var n=dD(t,rD);return E.createElement(xf,n)}var Fg=1,Af=(function(e){function t(){var n;oD(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=iD(this,t,[].concat(o)),gi(n,"lastBoundingBox",{width:-1,height:-1}),n}return lD(t,e),aD(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Fg||Math.abs(o.height-this.lastBoundingBox.height)>Fg)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?sn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,c=o.margin,l=o.chartWidth,u=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var g=this.getBBoxSnapshot();d={left:((l||0)-g.width)/2}}else d=i==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var b=this.getBBoxSnapshot();f={top:((u||0)-b.height)/2}}else f=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return sn(sn({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,c=o.wrapperStyle,l=o.payloadUniqBy,u=o.payload,d=sn(sn({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return E.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){r.wrapperNode=g}},mD(a,sn(sn({},this.props),{},{payload:B0(u,l,pD)})))}}],[{key:"getWithHeight",value:function(r,o){var a=sn(sn({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&Pt(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])})(E.PureComponent);gi(Af,"displayName","Legend");gi(Af,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Gl,Bg;function hD(){if(Bg)return Gl;Bg=1;var e=Po(),t=Cf(),n=Nt(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Gl=o,Gl}var Ll,jg;function gD(){if(jg)return Ll;jg=1;var e=P0(),t=hD();function n(r,o,a,i,s){var c=-1,l=r.length;for(a||(a=t),s||(s=[]);++c<l;){var u=r[c];o>0&&a(u)?o>1?n(u,o-1,a,i,s):e(s,u):i||(s[s.length]=u)}return s}return Ll=n,Ll}var Wl,Gg;function bD(){if(Gg)return Wl;Gg=1;function e(t){return function(n,r,o){for(var a=-1,i=Object(n),s=o(n),c=s.length;c--;){var l=s[t?c:++a];if(r(i[l],l,i)===!1)break}return n}}return Wl=e,Wl}var Vl,Lg;function vD(){if(Lg)return Vl;Lg=1;var e=bD(),t=e();return Vl=t,Vl}var Hl,Wg;function yD(){if(Wg)return Hl;Wg=1;var e=vD(),t=Ef();function n(r,o){return r&&e(r,o,t)}return Hl=n,Hl}var $l,Vg;function xD(){if(Vg)return $l;Vg=1;var e=mi();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var i=o.length,s=r?i:-1,c=Object(o);(r?s--:++s<i)&&a(c[s],s,c)!==!1;);return o}}return $l=t,$l}var zl,Hg;function wD(){if(Hg)return zl;Hg=1;var e=yD(),t=xD(),n=t(e);return zl=n,zl}var Xl,$g;function CD(){if($g)return Xl;$g=1;var e=wD(),t=mi();function n(r,o){var a=-1,i=t(r)?Array(r.length):[];return e(r,function(s,c,l){i[++a]=o(s,c,l)}),i}return Xl=n,Xl}var Yl,zg;function SD(){if(zg)return Yl;zg=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Yl=e,Yl}var Zl,Xg;function ID(){if(Xg)return Zl;Xg=1;var e=Oo();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,i=n===n,s=e(n),c=r!==void 0,l=r===null,u=r===r,d=e(r);if(!l&&!d&&!s&&n>r||s&&c&&u&&!l&&!d||a&&c&&u||!o&&u||!i)return 1;if(!a&&!s&&!d&&n<r||d&&o&&i&&!a&&!s||l&&o&&i||!c&&i||!u)return-1}return 0}return Zl=t,Zl}var ql,Yg;function ED(){if(Yg)return ql;Yg=1;var e=ID();function t(n,r,o){for(var a=-1,i=n.criteria,s=r.criteria,c=i.length,l=o.length;++a<c;){var u=e(i[a],s[a]);if(u){if(a>=l)return u;var d=o[a];return u*(d=="desc"?-1:1)}}return n.index-r.index}return ql=t,ql}var Ul,Zg;function AD(){if(Zg)return Ul;Zg=1;var e=a0(),t=vf(),n=F0(),r=CD(),o=SD(),a=T0(),i=ED(),s=hi(),c=Nt();function l(u,d,f){d.length?d=e(d,function(m){return c(m)?function(h){return t(h,m.length===1?m[0]:m)}:m}):d=[s];var g=-1;d=e(d,a(n));var b=r(u,function(m,h,v){var x=e(d,function(w){return w(m)});return{criteria:x,index:++g,value:m}});return o(b,function(m,h){return i(m,h,f)})}return Ul=l,Ul}var Jl,qg;function RD(){if(qg)return Jl;qg=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Jl=e,Jl}var Kl,Ug;function PD(){if(Ug)return Kl;Ug=1;var e=RD(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var i=arguments,s=-1,c=t(i.length-o,0),l=Array(c);++s<c;)l[s]=i[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=i[s];return u[o]=a(l),e(r,this,u)}}return Kl=n,Kl}var Ql,Jg;function OD(){if(Jg)return Ql;Jg=1;function e(t){return function(){return t}}return Ql=e,Ql}var eu,Kg;function TD(){if(Kg)return eu;Kg=1;var e=$n(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return eu=t,eu}var tu,Qg;function _D(){if(Qg)return tu;Qg=1;var e=OD(),t=TD(),n=hi(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return tu=r,tu}var nu,eb;function MD(){if(eb)return nu;eb=1;var e=800,t=16,n=Date.now;function r(o){var a=0,i=0;return function(){var s=n(),c=t-(s-i);if(i=s,c>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return nu=r,nu}var ru,tb;function DD(){if(tb)return ru;tb=1;var e=_D(),t=MD(),n=t(e);return ru=n,ru}var ou,nb;function ND(){if(nb)return ou;nb=1;var e=hi(),t=PD(),n=DD();function r(o,a){return n(t(o,a,e),o+"")}return ou=r,ou}var au,rb;function kD(){if(rb)return au;rb=1;var e=hf(),t=mi(),n=Sf(),r=Sn();function o(a,i,s){if(!r(s))return!1;var c=typeof i;return(c=="number"?t(s)&&n(i,s.length):c=="string"&&i in s)?e(s[i],a):!1}return au=o,au}var iu,ob;function FD(){if(ob)return iu;ob=1;var e=gD(),t=AD(),n=ND(),r=kD(),o=n(function(a,i){if(a==null)return[];var s=i.length;return s>1&&r(a,i[0],i[1])?i=[]:s>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return iu=o,iu}var BD=FD();const jD=Ut(BD);function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},od.apply(this,arguments)}function GD(e,t){return HD(e)||VD(e,t)||WD(e,t)||LD()}function LD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WD(e,t){if(e){if(typeof e=="string")return ab(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function HD(e){if(Array.isArray(e))return e}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(n),!0).forEach(function(r){$D(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $D(e,t,n){return t=zD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=XD(e,"string");return co(t)=="symbol"?t:t+""}function XD(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YD(e){return Array.isArray(e)&&Pa(e[0])&&Pa(e[1])?e.join(" ~ "):e}var ZD=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,c=t.labelStyle,l=c===void 0?{}:c,u=t.payload,d=t.formatter,f=t.itemSorter,g=t.wrapperClassName,b=t.labelClassName,m=t.label,h=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,w=function(){if(u&&u.length){var B={padding:0,margin:0},O=(f?jD(u,f):u).map(function(L,W){if(L.type==="none")return null;var j=su({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},s),$=L.formatter||d||YD,N=L.value,V=L.name,U=N,ee=V;if($&&U!=null&&ee!=null){var k=$(N,V,L,W,u);if(Array.isArray(k)){var H=GD(k,2);U=H[0],ee=H[1]}else U=k}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:j},Pa(ee)?E.createElement("span",{className:"recharts-tooltip-item-name"},ee):null,Pa(ee)?E.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,E.createElement("span",{className:"recharts-tooltip-item-value"},U),E.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:B},O)}return null},C=su({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),S=su({margin:0},l),A=!zT(m),I=A?m:"",R=dn("recharts-default-tooltip",g),P=dn("recharts-tooltip-label",b);A&&h&&u!==void 0&&u!==null&&(I=h(m,u));var M=x?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",od({className:R,style:C},M),E.createElement("p",{className:P,style:S},E.isValidElement(I)?I:"".concat(I)),w())};function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function ea(e,t,n){return t=qD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e){var t=UD(e,"string");return lo(t)=="symbol"?t:t+""}function UD(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Br="recharts-tooltip-wrapper",JD={visibility:"hidden"};function KD(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return dn(Br,ea(ea(ea(ea({},"".concat(Br,"-right"),Pt(n)&&t&&Pt(t.x)&&n>=t.x),"".concat(Br,"-left"),Pt(n)&&t&&Pt(t.x)&&n<t.x),"".concat(Br,"-bottom"),Pt(r)&&t&&Pt(t.y)&&r>=t.y),"".concat(Br,"-top"),Pt(r)&&t&&Pt(t.y)&&r<t.y))}function sb(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Pt(a[r]))return a[r];var u=n[r]-s-o,d=n[r]+o;if(t[r])return i[r]?u:d;if(i[r]){var f=u,g=c[r];return f<g?Math.max(d,c[r]):Math.max(u,c[r])}var b=d+s,m=c[r]+l;return b>m?Math.max(u,c[r]):Math.max(d,c[r])}function QD(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function eN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return i.height>0&&i.width>0&&n?(u=sb({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:c,viewBoxDimension:c.width}),d=sb({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:c,viewBoxDimension:c.height}),l=QD({translateX:u,translateY:d,useTranslate3d:s})):l=JD,{cssProperties:l,cssClasses:KD({translateX:u,translateY:d,coordinate:n})}}function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(n),!0).forEach(function(r){id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W0(r.key),r)}}function rN(e,t,n){return t&&nN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oN(e,t,n){return t=Da(t),aN(e,L0()?Reflect.construct(t,n||[],Da(e).constructor):t.apply(e,n))}function aN(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iN(e)}function iN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L0=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Da(e)}function sN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}function id(e,t,n){return t=W0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W0(e){var t=cN(e,"string");return mr(t)=="symbol"?t:t+""}function cN(e,t){if(mr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ub=1,lN=(function(e){function t(){var n;tN(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=oN(this,t,[].concat(o)),id(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),id(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,c,l,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&l!==void 0?l:0}})}}),n}return sN(t,e),rN(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ub||Math.abs(r.height-this.state.lastBoundingBox.height)>ub)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.children,u=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,g=o.offset,b=o.position,m=o.reverseDirection,h=o.useTranslate3d,v=o.viewBox,x=o.wrapperStyle,w=eN({allowEscapeViewBox:i,coordinate:u,offsetTopLeft:g,position:b,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:v}),C=w.cssClasses,S=w.cssProperties,A=lb(lb({transition:f&&a?"transform ".concat(s,"ms ").concat(c):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return E.createElement("div",{tabIndex:-1,className:C,style:A,ref:function(R){r.wrapperNode=R}},l)}}])})(E.PureComponent),uN=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},dN={isSsr:uN()};function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?db(Object(n),!0).forEach(function(r){Rf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H0(r.key),r)}}function mN(e,t,n){return t&&pN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hN(e,t,n){return t=Na(t),gN(e,V0()?Reflect.construct(t,n||[],Na(e).constructor):t.apply(e,n))}function gN(e,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bN(e)}function bN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Na(e)}function vN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sd(e,t)}function Rf(e,t,n){return t=H0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(e){var t=yN(e,"string");return hr(t)=="symbol"?t:t+""}function yN(e,t){if(hr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xN(e){return e.dataKey}function wN(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(ZD,t)}var Pf=(function(e){function t(){return fN(this,t),hN(this,t,arguments)}return vN(t,e),mN(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.content,u=o.coordinate,d=o.filterNull,f=o.isAnimationActive,g=o.offset,b=o.payload,m=o.payloadUniqBy,h=o.position,v=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,C=o.wrapperStyle,S=b??[];d&&S.length&&(S=B0(b.filter(function(I){return I.value!=null&&(I.hide!==!0||r.props.includeHidden)}),m,xN));var A=S.length>0;return E.createElement(lN,{allowEscapeViewBox:i,animationDuration:s,animationEasing:c,isAnimationActive:f,active:a,coordinate:u,hasPayload:A,offset:g,position:h,reverseDirection:v,useTranslate3d:x,viewBox:w,wrapperStyle:C},wN(l,fb(fb({},this.props),{},{payload:S})))}}])})(E.PureComponent);Rf(Pf,"displayName","Tooltip");Rf(Pf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!dN.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var cu,pb;function CN(){if(pb)return cu;pb=1;var e=Kt(),t=function(){return e.Date.now()};return cu=t,cu}var lu,mb;function SN(){if(mb)return lu;mb=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return lu=t,lu}var uu,hb;function IN(){if(hb)return uu;hb=1;var e=SN(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return uu=n,uu}var du,gb;function EN(){if(gb)return du;gb=1;var e=IN(),t=Sn(),n=Oo(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||i.test(l)?s(l.slice(2),d?2:8):o.test(l)?r:+l}return du=c,du}var fu,bb;function AN(){if(bb)return fu;bb=1;var e=Sn(),t=CN(),n=EN(),r="Expected a function",o=Math.max,a=Math.min;function i(s,c,l){var u,d,f,g,b,m,h=0,v=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(l)&&(v=!!l.leading,x="maxWait"in l,f=x?o(n(l.maxWait)||0,c):f,w="trailing"in l?!!l.trailing:w);function C(O){var L=u,W=d;return u=d=void 0,h=O,g=s.apply(W,L),g}function S(O){return h=O,b=setTimeout(R,c),v?C(O):g}function A(O){var L=O-m,W=O-h,j=c-L;return x?a(j,f-W):j}function I(O){var L=O-m,W=O-h;return m===void 0||L>=c||L<0||x&&W>=f}function R(){var O=t();if(I(O))return P(O);b=setTimeout(R,A(O))}function P(O){return b=void 0,w&&u?C(O):(u=d=void 0,g)}function M(){b!==void 0&&clearTimeout(b),h=0,u=m=d=b=void 0}function T(){return b===void 0?g:P(t())}function B(){var O=t(),L=I(O);if(u=arguments,d=this,m=O,L){if(b===void 0)return S(m);if(x)return clearTimeout(b),b=setTimeout(R,c),C(m)}return b===void 0&&(b=setTimeout(R,c)),g}return B.cancel=M,B.flush=T,B}return fu=i,fu}var pu,vb;function RN(){if(vb)return pu;vb=1;var e=AN(),t=Sn(),n="Expected a function";function r(o,a,i){var s=!0,c=!0;if(typeof o!="function")throw new TypeError(n);return t(i)&&(s="leading"in i?!!i.leading:s,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:s,maxWait:a,trailing:c})}return pu=r,pu}var PN=RN();const ON=Ut(PN);function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(n),!0).forEach(function(r){TN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TN(e,t,n){return t=_N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _N(e){var t=MN(e,"string");return uo(t)=="symbol"?t:t+""}function MN(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DN(e,t){return BN(e)||FN(e,t)||kN(e,t)||NN()}function NN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
7
|
-
maybe you don't need to use a ResponsiveContainer.`,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),O=require("react"),dg=require("react-dom");function HC(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const v=HC(O),tc=HC(dg);function bP(t,e){const n=v.createContext(e),r=i=>{const{children:a,...s}=i,l=v.useMemo(()=>s,Object.values(s));return p.jsx(n.Provider,{value:l,children:a})};r.displayName=t+"Provider";function o(i){const a=v.useContext(n);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,o]}function xt(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a),l=n.length;n=[...n,a];const c=d=>{const{scope:f,children:h,...g}=d,m=f?.[t]?.[l]||s,b=v.useMemo(()=>g,Object.values(g));return p.jsx(m.Provider,{value:b,children:h})};c.displayName=i+"Provider";function u(d,f){const h=f?.[t]?.[l]||s,g=v.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,vP(o,...e)]}function vP(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function Ov(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function er(...t){return e=>{let n=!1;const r=t.map(o=>{const i=Ov(o,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ov(t[o],null)}}}}function Se(...t){return v.useCallback(er(...t),t)}function ao(t){const e=yP(t),n=v.forwardRef((r,o)=>{const{children:i,...a}=r,s=v.Children.toArray(i),l=s.find(wP);if(l){const c=l.props.children,u=s.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return p.jsx(e,{...a,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return p.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}function yP(t){const e=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const a=SP(o),s=CP(i,o.props);return o.type!==v.Fragment&&(s.ref=r?er(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var qC=Symbol("radix.slottable");function xP(t){const e=({children:n})=>p.jsx(p.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=qC,e}function wP(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===qC}function CP(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function SP(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Wa(t){const e=t+"CollectionProvider",[n,r]=xt(e),[o,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:b,children:y}=m,w=O.useRef(null),C=O.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:C,collectionRef:w,children:y})};a.displayName=e;const s=t+"CollectionSlot",l=ao(s),c=O.forwardRef((m,b)=>{const{scope:y,children:w}=m,C=i(s,y),S=Se(b,C.collectionRef);return p.jsx(l,{ref:S,children:w})});c.displayName=s;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=ao(u),h=O.forwardRef((m,b)=>{const{scope:y,children:w,...C}=m,S=O.useRef(null),E=Se(b,S),T=i(u,y);return O.useEffect(()=>(T.itemMap.set(S,{ref:S,...C}),()=>{T.itemMap.delete(S)})),p.jsx(f,{[d]:"",ref:E,children:w})});h.displayName=u;function g(m){const b=i(t+"CollectionConsumer",m);return O.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((T,I)=>C.indexOf(T.ref.current)-C.indexOf(I.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:c,ItemSlot:h},g,r]}function oe(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}var lt=globalThis?.document?v.useLayoutEffect:()=>{},EP=v[" useInsertionEffect ".trim().toString()]||lt;function Rt({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[o,i,a]=IP({defaultProp:e,onChange:n}),s=t!==void 0,l=s?t:o;{const u=v.useRef(t!==void 0);v.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=v.useCallback(u=>{if(s){const d=AP(u)?u(t):u;d!==t&&a.current?.(d)}else i(u)},[s,t,i,a]);return[l,c]}function IP({defaultProp:t,onChange:e}){const[n,r]=v.useState(t),o=v.useRef(n),i=v.useRef(e);return EP(()=>{i.current=e},[e]),v.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function AP(t){return typeof t=="function"}var TP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fe=TP.reduce((t,e)=>{const n=ao(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function zC(t,e){t&&tc.flushSync(()=>t.dispatchEvent(e))}function OP(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var ot=t=>{const{present:e,children:n}=t,r=NP(e),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Se(r.ref,RP(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};ot.displayName="Presence";function NP(t){const[e,n]=v.useState(),r=v.useRef(null),o=v.useRef(t),i=v.useRef("none"),a=t?"mounted":"unmounted",[s,l]=OP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=Rs(r.current);i.current=s==="mounted"?c:"none"},[s]),lt(()=>{const c=r.current,u=o.current;if(u!==t){const f=i.current,h=Rs(c);t?l("MOUNT"):h==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,l]),lt(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=h=>{const m=Rs(r.current).includes(CSS.escape(h.animationName));if(h.target===e&&m&&(l("ANIMATION_END"),!o.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=h=>{h.target===e&&(i.current=Rs(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Rs(t){return t?.animationName||"none"}function RP(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var _P=v[" useId ".trim().toString()]||(()=>{}),PP=0;function nt(t){const[e,n]=v.useState(_P());return lt(()=>{n(r=>r??String(PP++))},[t]),e?`radix-${e}`:""}var nc="Collapsible",[MP,XC]=xt(nc),[DP,fg]=MP(nc),YC=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=t,[l,c]=Rt({prop:r,defaultProp:o??!1,onChange:a,caller:nc});return p.jsx(DP,{scope:n,disabled:i,contentId:nt(),open:l,onOpenToggle:v.useCallback(()=>c(u=>!u),[c]),children:p.jsx(fe.div,{"data-state":gg(l),"data-disabled":i?"":void 0,...s,ref:e})})});YC.displayName=nc;var UC="CollapsibleTrigger",hg=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,o=fg(UC,n);return p.jsx(fe.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":gg(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:e,onClick:oe(t.onClick,o.onOpenToggle)})});hg.displayName=UC;var pg="CollapsibleContent",mg=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=fg(pg,t.__scopeCollapsible);return p.jsx(ot,{present:n||o.open,children:({present:i})=>p.jsx(kP,{...r,ref:e,present:i})})});mg.displayName=pg;var kP=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=t,a=fg(pg,n),[s,l]=v.useState(r),c=v.useRef(null),u=Se(e,c),d=v.useRef(0),f=d.current,h=v.useRef(0),g=h.current,m=a.open||s,b=v.useRef(m),y=v.useRef(void 0);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),lt(()=>{const w=c.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();d.current=C.height,h.current=C.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[a.open,r]),p.jsx(fe.div,{"data-state":gg(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:m&&o})});function gg(t){return t?"open":"closed"}var ZC=YC,jP=hg,LP=mg,BP=v.createContext(void 0);function Wr(t){const e=v.useContext(BP);return t||e||"ltr"}var Mn="Accordion",FP=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bg,GP,$P]=Wa(Mn),[rc]=xt(Mn,[$P,XC]),vg=XC(),JC=O.forwardRef((t,e)=>{const{type:n,...r}=t,o=r,i=r;return p.jsx(bg.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?p.jsx(qP,{...i,ref:e}):p.jsx(HP,{...o,ref:e})})});JC.displayName=Mn;var[KC,WP]=rc(Mn),[QC,VP]=rc(Mn,{collapsible:!1}),HP=O.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=t,[s,l]=Rt({prop:n,defaultProp:r??"",onChange:o,caller:Mn});return p.jsx(KC,{scope:t.__scopeAccordion,value:O.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:O.useCallback(()=>i&&l(""),[i,l]),children:p.jsx(QC,{scope:t.__scopeAccordion,collapsible:i,children:p.jsx(eS,{...a,ref:e})})})}),qP=O.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=t,[a,s]=Rt({prop:n,defaultProp:r??[],onChange:o,caller:Mn}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return p.jsx(KC,{scope:t.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:p.jsx(QC,{scope:t.__scopeAccordion,collapsible:!0,children:p.jsx(eS,{...i,ref:e})})})}),[zP,oc]=rc(Mn),eS=O.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=t,s=O.useRef(null),l=Se(s,e),c=GP(n),d=Wr(o)==="ltr",f=oe(t.onKeyDown,h=>{if(!FP.includes(h.key))return;const g=h.target,m=c().filter(_=>!_.ref.current?.disabled),b=m.findIndex(_=>_.ref.current===g),y=m.length;if(b===-1)return;h.preventDefault();let w=b;const C=0,S=y-1,E=()=>{w=b+1,w>S&&(w=C)},T=()=>{w=b-1,w<C&&(w=S)};switch(h.key){case"Home":w=C;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(d?E():T());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?T():E());break;case"ArrowUp":i==="vertical"&&T();break}const I=w%y;m[I].ref.current?.focus()});return p.jsx(zP,{scope:n,disabled:r,direction:o,orientation:i,children:p.jsx(bg.Slot,{scope:n,children:p.jsx(fe.div,{...a,"data-orientation":i,ref:l,onKeyDown:r?void 0:f})})})}),bl="AccordionItem",[XP,yg]=rc(bl),tS=O.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...o}=t,i=oc(bl,n),a=WP(bl,n),s=vg(n),l=nt(),c=r&&a.value.includes(r)||!1,u=i.disabled||t.disabled;return p.jsx(XP,{scope:n,open:c,disabled:u,triggerId:l,children:p.jsx(ZC,{"data-orientation":i.orientation,"data-state":sS(c),...s,...o,ref:e,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(r):a.onItemClose(r)}})})});tS.displayName=bl;var nS="AccordionHeader",rS=O.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=oc(Mn,n),i=yg(nS,n);return p.jsx(fe.h3,{"data-orientation":o.orientation,"data-state":sS(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:e})});rS.displayName=nS;var Zp="AccordionTrigger",oS=O.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=oc(Mn,n),i=yg(Zp,n),a=VP(Zp,n),s=vg(n);return p.jsx(bg.ItemSlot,{scope:n,children:p.jsx(jP,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:e})})});oS.displayName=Zp;var iS="AccordionContent",aS=O.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=oc(Mn,n),i=yg(iS,n),a=vg(n);return p.jsx(LP,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});aS.displayName=iS;function sS(t){return t?"open":"closed"}var YP=JC,UP=tS,ZP=rS,JP=oS,KP=aS;const QP=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eM=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),Nv=t=>{const e=eM(t);return e.charAt(0).toUpperCase()+e.slice(1)},lS=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),tM=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var nM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const rM=O.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>O.createElement("svg",{ref:l,...nM,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:lS("lucide",o),...!i&&!tM(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>O.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Et=(t,e)=>{const n=O.forwardRef(({className:r,...o},i)=>O.createElement(rM,{ref:i,iconNode:e,className:lS(`lucide-${QP(Nv(t))}`,`lucide-${t}`,r),...o}));return n.displayName=Nv(t),n};const oM=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],iM=Et("arrow-left",oM);const aM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],sM=Et("arrow-right",aM);const lM=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],cM=Et("calendar",lM);const uM=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ga=Et("check",uM);const dM=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wi=Et("chevron-down",dM);const fM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cS=Et("chevron-left",fM);const hM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ic=Et("chevron-right",hM);const pM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],uS=Et("chevron-up",pM);const mM=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],gM=Et("chevrons-up-down",mM);const bM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],vM=Et("circle-plus",bM);const yM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xM=Et("circle-x",yM);const wM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dS=Et("circle",wM);const CM=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],fS=Et("ellipsis",CM);const SM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],EM=Et("info",SM);const IM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],hS=Et("loader-circle",IM);const AM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],TM=Et("panel-left",AM);const OM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],NM=Et("search",OM);const RM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xg=Et("x",RM);function pS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=pS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=pS(t))&&(r&&(r+=" "),r+=e);return r}const _M=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},PM=(t,e)=>({classGroupId:t,validator:e}),mS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),vl="-",Rv=[],MM="arbitrary..",DM=t=>{const e=jM(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return kM(a);const s=a.split(vl),l=s[0]===""&&s.length>1?1:0;return gS(s,l,e)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],c=n[a];return l?c?_M(c,l):l:c||Rv}return n[a]||Rv}}},gS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const c=gS(t,e+1,i);if(c)return c}const a=n.validators;if(a===null)return;const s=e===0?t.join(vl):t.slice(e).join(vl),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},kM=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?MM+r:void 0})(),jM=t=>{const{theme:e,classGroups:n}=t;return LM(n,e)},LM=(t,e)=>{const n=mS();for(const r in t){const o=t[r];wg(o,n,r,e)}return n},wg=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const a=t[i];BM(a,e,n,r)}},BM=(t,e,n,r)=>{if(typeof t=="string"){FM(t,e,n);return}if(typeof t=="function"){GM(t,e,n,r);return}$M(t,e,n,r)},FM=(t,e,n)=>{const r=t===""?e:bS(e,t);r.classGroupId=n},GM=(t,e,n,r)=>{if(WM(t)){wg(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(PM(n,t))},$M=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];wg(l,bS(e,s),n,r)}},bS=(t,e)=>{let n=t;const r=e.split(vl),o=r.length;for(let i=0;i<o;i++){const a=r[i];let s=n.nextPart.get(a);s||(s=mS(),n.nextPart.set(a,s)),n=s}return n},WM=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,VM=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},Jp="!",_v=":",HM=[],Pv=(t,e,n,r,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),qM=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const b=o[m];if(a===0&&s===0){if(b===_v){i.push(o.slice(l,m)),l=m+1;continue}if(b==="/"){c=m;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const d=i.length===0?o:o.slice(l);let f=d,h=!1;d.endsWith(Jp)?(f=d.slice(0,-1),h=!0):d.startsWith(Jp)&&(f=d.slice(1),h=!0);const g=c&&c>l?c-l:void 0;return Pv(i,h,f,g)};if(e){const o=e+_v,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Pv(HM,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},zM=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],s=a[0]==="[",l=e.has(a);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},XM=t=>({cache:VM(t.cacheSize),parseClassName:qM(t),sortModifiers:zM(t),...DM(t)}),YM=/\s+/,UM=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=e,a=[],s=t.trim().split(YM);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let b=!!m,y=r(b?g.substring(0,m):g);if(!y){if(!b){l=u+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=u+(l.length>0?" "+l:l);continue}b=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),C=h?w+Jp:w,S=C+y;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(y,b);for(let T=0;T<E.length;++T){const I=E[T];a.push(C+I)}l=u+(l.length>0?" "+l:l)}return l},ZM=(...t)=>{let e=0,n,r,o="";for(;e<t.length;)(n=t[e++])&&(r=vS(n))&&(o&&(o+=" "),o+=r);return o},vS=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=vS(t[r]))&&(n&&(n+=" "),n+=e);return n},JM=(t,...e)=>{let n,r,o,i;const a=l=>{const c=e.reduce((u,d)=>d(u),t());return n=XM(c),r=n.cache.get,o=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=UM(l,n);return o(l,u),u};return i=a,(...l)=>i(ZM(...l))},KM=[],bt=t=>{const e=n=>n[t]||KM;return e.isThemeGetter=!0,e},yS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QM=/^\d+\/\d+$/,e2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,n2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,r2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,o2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Go=t=>QM.test(t),Re=t=>!!t&&!Number.isNaN(Number(t)),Rr=t=>!!t&&Number.isInteger(Number(t)),Yu=t=>t.endsWith("%")&&Re(t.slice(0,-1)),mr=t=>e2.test(t),i2=()=>!0,a2=t=>t2.test(t)&&!n2.test(t),wS=()=>!1,s2=t=>r2.test(t),l2=t=>o2.test(t),c2=t=>!he(t)&&!pe(t),u2=t=>Ci(t,ES,wS),he=t=>yS.test(t),eo=t=>Ci(t,IS,a2),Uu=t=>Ci(t,m2,Re),Mv=t=>Ci(t,CS,wS),d2=t=>Ci(t,SS,l2),_s=t=>Ci(t,AS,s2),pe=t=>xS.test(t),Vi=t=>Si(t,IS),f2=t=>Si(t,g2),Dv=t=>Si(t,CS),h2=t=>Si(t,ES),p2=t=>Si(t,SS),Ps=t=>Si(t,AS,!0),Ci=(t,e,n)=>{const r=yS.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Si=(t,e,n=!1)=>{const r=xS.exec(t);return r?r[1]?e(r[1]):n:!1},CS=t=>t==="position"||t==="percentage",SS=t=>t==="image"||t==="url",ES=t=>t==="length"||t==="size"||t==="bg-size",IS=t=>t==="length",m2=t=>t==="number",g2=t=>t==="family-name",AS=t=>t==="shadow",b2=()=>{const t=bt("color"),e=bt("font"),n=bt("text"),r=bt("font-weight"),o=bt("tracking"),i=bt("leading"),a=bt("breakpoint"),s=bt("container"),l=bt("spacing"),c=bt("radius"),u=bt("shadow"),d=bt("inset-shadow"),f=bt("text-shadow"),h=bt("drop-shadow"),g=bt("blur"),m=bt("perspective"),b=bt("aspect"),y=bt("ease"),w=bt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),pe,he],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],_=()=>[pe,he,l],P=()=>[Go,"full","auto",..._()],W=()=>[Rr,"none","subgrid",pe,he],A=()=>["auto",{span:["full",Rr,pe,he]},Rr,pe,he],D=()=>[Rr,"auto",pe,he],N=()=>["auto","min","max","fr",pe,he],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",..._()],V=()=>[Go,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],k=()=>[t,pe,he],H=()=>[...S(),Dv,Mv,{position:[pe,he]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",h2,u2,{size:[pe,he]}],G=()=>[Yu,Vi,eo],X=()=>["","none","full",c,pe,he],Z=()=>["",Re,Vi,eo],Y=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[Re,Yu,Dv,Mv],K=()=>["","none",g,pe,he],ae=()=>["none",Re,pe,he],ie=()=>["none",Re,pe,he],re=()=>[Re,pe,he],q=()=>[Go,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[i2],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[c2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",Re],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Go,he,pe,b]}],container:["container"],columns:[{columns:[Re,he,pe,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",pe,he]}],basis:[{basis:[Go,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Go,"auto","initial","none",he]}],grow:[{grow:["",Re,pe,he]}],shrink:[{shrink:["",Re,pe,he]}],order:[{order:[Rr,"first","last","none",pe,he]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Vi,eo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pe,Uu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yu,he]}],"font-family":[{font:[f2,he,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,he]}],"line-clamp":[{"line-clamp":[Re,"none",pe,Uu]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",pe,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",pe,eo]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Re,"auto",pe,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,pe,he],radial:["",pe,he],conic:[Rr,pe,he]},p2,d2]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,pe,he]}],"outline-w":[{outline:["",Re,Vi,eo]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,Ps,_s]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,Ps,_s]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Re,eo]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",f,Ps,_s]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Re,pe,he]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[pe,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,he]}],filter:[{filter:["","none",pe,he]}],blur:[{blur:K()}],brightness:[{brightness:[Re,pe,he]}],contrast:[{contrast:[Re,pe,he]}],"drop-shadow":[{"drop-shadow":["","none",h,Ps,_s]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Re,pe,he]}],"hue-rotate":[{"hue-rotate":[Re,pe,he]}],invert:[{invert:["",Re,pe,he]}],saturate:[{saturate:[Re,pe,he]}],sepia:[{sepia:["",Re,pe,he]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,he]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[Re,pe,he]}],"backdrop-contrast":[{"backdrop-contrast":[Re,pe,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,pe,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,pe,he]}],"backdrop-invert":[{"backdrop-invert":["",Re,pe,he]}],"backdrop-opacity":[{"backdrop-opacity":[Re,pe,he]}],"backdrop-saturate":[{"backdrop-saturate":[Re,pe,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,pe,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",pe,he]}],ease:[{ease:["linear","initial",y,pe,he]}],delay:[{delay:[Re,pe,he]}],animate:[{animate:["none",w,pe,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,pe,he]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[pe,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,he]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Re,Vi,eo,Uu]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},v2=JM(b2),TS=6048e5,y2=864e5,kv=Symbol.for("constructDateFrom");function pt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&kv in t?t[kv](e):t instanceof Date?new t.constructor(e):new Date(e)}function He(t,e){return pt(e||t,t)}function OS(t,e,n){const r=He(t,n?.in);return isNaN(e)?pt(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function NS(t,e,n){const r=He(t,n?.in);if(isNaN(e))return pt(t,NaN);if(!e)return r;const o=r.getDate(),i=pt(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let x2={};function Va(){return x2}function li(t,e){const n=Va(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=He(t,e?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ba(t,e){return li(t,{...e,weekStartsOn:1})}function RS(t,e){const n=He(t,e?.in),r=n.getFullYear(),o=pt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ba(o),a=pt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ba(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jv(t){const e=He(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Ei(t,...e){const n=pt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function va(t,e){const n=He(t,e?.in);return n.setHours(0,0,0,0),n}function Cg(t,e,n){const[r,o]=Ei(n?.in,t,e),i=va(r),a=va(o),s=+i-jv(i),l=+a-jv(a);return Math.round((s-l)/y2)}function w2(t,e){const n=RS(t,e),r=pt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ba(r)}function C2(t,e,n){return OS(t,e*7,n)}function S2(t,e,n){return NS(t,e*12,n)}function E2(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=pt.bind(null,o));const i=He(o,r);(!n||n<i||isNaN(+i))&&(n=i)}),pt(r,n||NaN)}function I2(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=pt.bind(null,o));const i=He(o,r);(!n||n>i||isNaN(+i))&&(n=i)}),pt(r,n||NaN)}function A2(t,e,n){const[r,o]=Ei(n?.in,t,e);return+va(r)==+va(o)}function _S(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function PS(t){return!(!_S(t)&&typeof t!="number"||isNaN(+He(t)))}function MS(t,e,n){const[r,o]=Ei(n?.in,t,e),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function T2(t,e){const n=He(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function DS(t,e){const[n,r]=Ei(t,e.start,e.end);return{start:n,end:r}}function O2(t,e){const{start:n,end:r}=DS(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=1;const l=[];for(;+a<=i;)l.push(pt(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}function N2(t,e){const n=He(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function R2(t,e){const n=He(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function kS(t,e){const n=He(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _2(t,e){const{start:n,end:r}=DS(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let s=1;const l=[];for(;+a<=i;)l.push(pt(n,a)),a.setFullYear(a.getFullYear()+s);return o?l.reverse():l}function jS(t,e){const n=Va(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=He(t,e?.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function P2(t,e){return jS(t,{...e,weekStartsOn:1})}const M2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},D2=(t,e,n)=>{let r;const o=M2[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Zu(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const k2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},j2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},B2={date:Zu({formats:k2,defaultWidth:"full"}),time:Zu({formats:j2,defaultWidth:"full"}),dateTime:Zu({formats:L2,defaultWidth:"full"})},F2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G2=(t,e,n,r)=>F2[t];function Hi(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return o[i]}}const $2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},W2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},V2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},H2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},q2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},z2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},X2=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Y2={ordinalNumber:X2,era:Hi({values:$2,defaultWidth:"wide"}),quarter:Hi({values:W2,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Hi({values:V2,defaultWidth:"wide"}),day:Hi({values:H2,defaultWidth:"wide"}),dayPeriod:Hi({values:q2,defaultWidth:"wide",formattingValues:z2,defaultFormattingWidth:"wide"})};function qi(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;const a=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?Z2(s,d=>d.test(a)):U2(s,d=>d.test(a));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(a.length);return{value:c,rest:u}}}function U2(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Z2(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function J2(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=e.slice(o.length);return{value:a,rest:s}}}const K2=/^(\d+)(th|st|nd|rd)?/i,Q2=/\d+/i,eD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tD={any:[/^b/i,/^(a|c)/i]},nD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rD={any:[/1/i,/2/i,/3/i,/4/i]},oD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uD={ordinalNumber:J2({matchPattern:K2,parsePattern:Q2,valueCallback:t=>parseInt(t,10)}),era:qi({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:tD,defaultParseWidth:"any"}),quarter:qi({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:qi({matchPatterns:oD,defaultMatchWidth:"wide",parsePatterns:iD,defaultParseWidth:"any"}),day:qi({matchPatterns:aD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any"}),dayPeriod:qi({matchPatterns:lD,defaultMatchWidth:"any",parsePatterns:cD,defaultParseWidth:"any"})},Xo={code:"en-US",formatDistance:D2,formatLong:B2,formatRelative:G2,localize:Y2,match:uD,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dD(t,e){const n=He(t,e?.in);return Cg(n,kS(n))+1}function Sg(t,e){const n=He(t,e?.in),r=+ba(n)-+w2(n);return Math.round(r/TS)+1}function LS(t,e){const n=He(t,e?.in),r=n.getFullYear(),o=Va(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=pt(e?.in||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=li(a,e),l=pt(e?.in||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=li(l,e);return+n>=+s?r+1:+n>=+c?r:r-1}function fD(t,e){const n=Va(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=LS(t,e),i=pt(e?.in||t,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),li(i,e)}function Eg(t,e){const n=He(t,e?.in),r=+li(n,e)-+fD(n,e);return Math.round(r/TS)+1}function We(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const _r={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return We(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):We(n+1,2)},d(t,e){return We(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return We(t.getHours()%12||12,e.length)},H(t,e){return We(t.getHours(),e.length)},m(t,e){return We(t.getMinutes(),e.length)},s(t,e){return We(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return We(o,e.length)}},$o={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Lv={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return _r.y(t,e)},Y:function(t,e,n,r){const o=LS(t,r),i=o>0?o:1-o;if(e==="YY"){const a=i%100;return We(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):We(i,e.length)},R:function(t,e){const n=RS(t);return We(n,e.length)},u:function(t,e){const n=t.getFullYear();return We(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return _r.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Eg(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):We(o,e.length)},I:function(t,e,n){const r=Sg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):_r.d(t,e)},D:function(t,e,n){const r=dD(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return We(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return We(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return We(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=$o.noon:r===0?o=$o.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=$o.evening:r>=12?o=$o.afternoon:r>=4?o=$o.morning:o=$o.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _r.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):_r.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):_r.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):_r.s(t,e)},S:function(t,e){return _r.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Fv(r);case"XXXX":case"XX":return ro(r);default:return ro(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Fv(r);case"xxxx":case"xx":return ro(r);default:return ro(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Bv(r,":");default:return"GMT"+ro(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Bv(r,":");default:return"GMT"+ro(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return We(r,e.length)},T:function(t,e,n){return We(+t,e.length)}};function Bv(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+e+We(i,2)}function Fv(t,e){return t%60===0?(t>0?"-":"+")+We(Math.abs(t)/60,2):ro(t,e)}function ro(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=We(Math.trunc(r/60),2),i=We(r%60,2);return n+o+e+i}const Gv=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},BS=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},hD=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Gv(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Gv(r,e)).replace("{{time}}",BS(o,e))},pD={p:BS,P:hD},mD=/^D+$/,gD=/^Y+$/,bD=["D","DD","YY","YYYY"];function vD(t){return mD.test(t)}function yD(t){return gD.test(t)}function xD(t,e,n){const r=wD(t,e,n);if(console.warn(r),bD.includes(t))throw new RangeError(r)}function wD(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,SD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ED=/^'([^]*?)'?$/,ID=/''/g,AD=/[a-zA-Z]/;function Yn(t,e,n){const r=Va(),o=n?.locale??r.locale??Xo,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=He(t,n?.in);if(!PS(s))throw new RangeError("Invalid time value");let l=e.match(SD).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=pD[d];return f(u,o.formatLong)}return u}).join("").match(CD).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:TD(u)};if(Lv[d])return{isToken:!0,value:u};if(d.match(AD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&yD(d)||!n?.useAdditionalDayOfYearTokens&&vD(d))&&xD(d,e,String(t));const f=Lv[d[0]];return f(s,d,o.localize,c)}).join("")}function TD(t){const e=t.match(ED);return e?e[1].replace(ID,"'"):t}function OD(t,e){const n=He(t,e?.in),r=n.getFullYear(),o=n.getMonth(),i=pt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function ND(t,e){return He(t,e?.in).getMonth()}function RD(t,e){return He(t,e?.in).getFullYear()}function _D(t,e){return+He(t)>+He(e)}function PD(t,e){return+He(t)<+He(e)}function MD(t,e,n){const[r,o]=Ei(n?.in,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function DD(t,e,n){const[r,o]=Ei(n?.in,t,e);return r.getFullYear()===o.getFullYear()}function kD(t,e,n){const r=He(t,n?.in),o=r.getFullYear(),i=r.getDate(),a=pt(t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);const s=OD(a);return r.setMonth(e,Math.min(i,s)),r}function jD(t,e,n){const r=He(t,n?.in);return isNaN(+r)?pt(t,NaN):(r.setFullYear(e),r)}function L(...t){return v2(wr(t))}const LD=(t,e="yyyy-MM-dd")=>PS(t)?Yn(t,e):Yn(new Date,e);function BD({...t}){return p.jsx(YP,{"data-slot":"accordion",...t})}function FD({className:t,...e}){return p.jsx(UP,{"data-slot":"accordion-item",className:L("border-b last:border-b-0",t),...e})}function GD({className:t,children:e,...n}){return p.jsx(ZP,{className:"flex",children:p.jsxs(JP,{"data-slot":"accordion-trigger",className:L("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...n,children:[e,p.jsx(wi,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function $D({className:t,children:e,...n}){return p.jsx(KP,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:p.jsx("div",{className:L("pt-0 pb-4",t),children:e})})}var WD=Symbol.for("react.lazy"),yl=v[" use ".trim().toString()];function VD(t){return typeof t=="object"&&t!==null&&"then"in t}function FS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===WD&&"_payload"in t&&VD(t._payload)}function GS(t){const e=HD(t),n=v.forwardRef((r,o)=>{let{children:i,...a}=r;FS(i)&&typeof yl=="function"&&(i=yl(i._payload));const s=v.Children.toArray(i),l=s.find(zD);if(l){const c=l.props.children,u=s.map(d=>d===l?v.Children.count(c)>1?v.Children.only(null):v.isValidElement(c)?c.props.children:null:d);return p.jsx(e,{...a,ref:o,children:v.isValidElement(c)?v.cloneElement(c,void 0,u):null})}return p.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}var rr=GS("Slot");function HD(t){const e=v.forwardRef((n,r)=>{let{children:o,...i}=n;if(FS(o)&&typeof yl=="function"&&(o=yl(o._payload)),v.isValidElement(o)){const a=YD(o),s=XD(i,o.props);return o.type!==v.Fragment&&(s.ref=r?er(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var qD=Symbol("radix.slottable");function zD(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===qD}function XD(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function YD(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var UD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ut=UD.reduce((t,e)=>{const n=GS(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),ZD="AspectRatio",$S=v.forwardRef((t,e)=>{const{ratio:n=1/1,style:r,...o}=t;return p.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:p.jsx(Ut.div,{...o,ref:e,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});$S.displayName=ZD;var JD=$S;function KD({...t}){return p.jsx(JD,{"data-slot":"aspect-ratio",...t})}function QD(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const c=d=>{const{scope:f,children:h,...g}=d,m=f?.[t]?.[l]||s,b=v.useMemo(()=>g,Object.values(g));return p.jsx(m.Provider,{value:b,children:h})};c.displayName=i+"Provider";function u(d,f){const h=f?.[t]?.[l]||s,g=v.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,ek(o,...e)]}function ek(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function yt(t){const e=v.useRef(t);return v.useEffect(()=>{e.current=t}),v.useMemo(()=>(...n)=>e.current?.(...n),[])}var hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ms={exports:{}},Ju={};var $v;function tk(){if($v)return Ju;$v=1;var t=O;function e(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(d,f){var h=f(),g=r({inst:{value:h,getSnapshot:f}}),m=g[0].inst,b=g[1];return i(function(){m.value=h,m.getSnapshot=f,l(m)&&b({inst:m})},[d,h,f]),o(function(){return l(m)&&b({inst:m}),d(function(){l(m)&&b({inst:m})})},[d]),a(h),h}function l(d){var f=d.getSnapshot;d=d.value;try{var h=f();return!n(d,h)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Ju.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Ju}var Ku={};var Wv;function nk(){return Wv||(Wv=1,process.env.NODE_ENV!=="production"&&(function(){function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function e(h,g){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!d){var b=g();i(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}b=a({inst:{value:m,getSnapshot:g}});var y=b[0].inst,w=b[1];return l(function(){y.value=m,y.getSnapshot=g,n(y)&&w({inst:y})},[h,m,g]),s(function(){return n(y)&&w({inst:y}),h(function(){n(y)&&w({inst:y})})},[h]),c(m),m}function n(h){var g=h.getSnapshot;h=h.value;try{var m=g();return!i(h,m)}catch{return!0}}function r(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=O,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Ku.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ku}var Vv;function rk(){return Vv||(Vv=1,process.env.NODE_ENV==="production"?Ms.exports=tk():Ms.exports=nk()),Ms.exports}var ok=rk();function ik(){return ok.useSyncExternalStore(ak,()=>!0,()=>!1)}function ak(){return()=>{}}var Ig="Avatar",[sk]=QD(Ig),[lk,WS]=sk(Ig),VS=v.forwardRef((t,e)=>{const{__scopeAvatar:n,...r}=t,[o,i]=v.useState("idle");return p.jsx(lk,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:p.jsx(Ut.span,{...r,ref:e})})});VS.displayName=Ig;var HS="AvatarImage",qS=v.forwardRef((t,e)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=t,a=WS(HS,n),s=ck(r,i),l=yt(c=>{o(c),a.onImageLoadingStatusChange(c)});return lt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?p.jsx(Ut.img,{...i,ref:e,src:r}):null});qS.displayName=HS;var zS="AvatarFallback",XS=v.forwardRef((t,e)=>{const{__scopeAvatar:n,delayMs:r,...o}=t,i=WS(zS,n),[a,s]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&i.imageLoadingStatus!=="loaded"?p.jsx(Ut.span,{...o,ref:e}):null});XS.displayName=zS;function Hv(t,e){return t?e?(t.src!==e&&(t.src=e),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ck(t,{referrerPolicy:e,crossOrigin:n}){const r=ik(),o=v.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[a,s]=v.useState(()=>Hv(i,t));return lt(()=>{s(Hv(i,t))},[i,t]),lt(()=>{const l=d=>()=>{s(d)};if(!i)return;const c=l("loaded"),u=l("error");return i.addEventListener("load",c),i.addEventListener("error",u),e&&(i.referrerPolicy=e),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",c),i.removeEventListener("error",u)}},[i,n,e]),a}var uk=VS,dk=qS,fk=XS;function hk({className:t,...e}){return p.jsx(uk,{"data-slot":"avatar",className:L("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...e})}function pk({className:t,...e}){return p.jsx(dk,{"data-slot":"avatar-image",className:L("aspect-square size-full",t),...e})}function mk({className:t,...e}){return p.jsx(fk,{"data-slot":"avatar-fallback",className:L("bg-muted flex size-full items-center justify-center rounded-full",t),...e})}const qv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,zv=wr,Ii=(t,e)=>n=>{var r;if(e?.variants==null)return zv(t,n?.class,n?.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(c=>{const u=n?.[c],d=i?.[c];if(u===null)return null;const f=qv(u)||qv(d);return o[c][f]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...i,...s}[m]):{...i,...s}[m]===b})?[...c,d,f]:c},[]);return zv(t,a,l,n?.class,n?.className)},xl=Ii("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-primary text-white hover:bg-primary/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200 focus-visible:ring-gray-300",tertiary:"bg-kashmir-blue-500 text-white hover:bg-kashmir-blue-600 hover:text-white focus-visible:ring-kashmir-blue-200",success:"bg-green-400 text-white focus-visible:ring-green-200 hover:bg-green-400/80 hover:text-white disabled:opacity-70 disabled:bg-gray-400 disabled:text-white",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input border-solid bg-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-gray-600 focus-visible:border-gray-200",ghost:"bg-transparent text-segmentify-600 hover:bg-segmentify-200 hover:text-primary",link:"text-segmentify-600 underline-offset-4 hover:underline",action:"bg-neutral-700 disabled:bg-neutral-700 disabled:opacity-50 rounded-md text-white hover:bg-neutral-800 focus-visible:ring-neutral-500",paginationActive:"bg-transparent text-black-250",paginationInactive:"bg-segmentify-300 text-segmentify-600 hover:text-segmentify-700 pointer-events-none"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"primary",size:"default"}}),gk=Ii("text-primary text-base font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-black-950 text-sm"}},defaultVariants:{variant:"default"}}),bk=Ii("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border border-solid border-primary bg-segmentify-200 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"border-transparent bg-green-400 text-white hover:bg-green-400/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",subtle:"border-0 bg-segmentify-100 text-primary"}},defaultVariants:{variant:"default"}}),to=Ii("select-wrapper border rounded-md! text-sm",{variants:{variant:{default:"border border-transparent",isFocused:"bg-segmentify-200! rounded-none!",multiSelected:"bg-segmentify-200! text-primary-foreground! rounded-full! px-2 py-1 mr-1! border border-primary!",isSelected:"bg-segmentify-200! px-2 py-1 border border-primary! text-black-950!",isControlFocused:"bg-white border-destructive! shadow-none! focus-visible:border-destructive! ring-destructive/50! ring-[3px]!",isDisabled:"opacity-50 cursor-not-allowed"}}});function YS({className:t,variant:e,asChild:n=!1,...r}){const o=n?rr:"span";return p.jsx(o,{"data-slot":"badge",className:L(bk({variant:e}),t),...r})}function nn({className:t,variant:e="primary",size:n="default",asChild:r=!1,...o}){const i=r?rr:"button";return p.jsx(i,{"data-slot":"button","data-variant":e,"data-size":n,className:L(xl({variant:e,size:n,className:t})),...o})}function An({children:t}){return t}An.displayName="Case";function so({children:t}){return t}so.displayName="Default";function vk(t){return v.isValidElement(t)}function ci({children:t}){let e=null,n=null;return v.Children.forEach(t,r=>{if(!vk(r))return;const o=r.type.displayName;if(!e&&o==="Case"){const{condition:i}=r.props;i&&(e=r)}else!n&&o==="Default"&&(n=r)}),e??n??null}const yk=({icon:t,type:e="button",label:n="save",size:r="default",variant:o="primary",suffix:i,prefix:a,isLoading:s,onClick:l=()=>{},className:c,labelClassName:u,disabled:d,isIconOnly:f,form:h})=>p.jsx(nn,{"data-test-id":`button-${n}`,type:e,variant:o,size:r,className:L(c),onClick:l,disabled:d,...h&&{form:h},children:p.jsxs(ci,{children:[p.jsxs(An,{condition:!!s,children:[p.jsx(hS,{className:"mr-2 h-4 w-4 animate-spin"}),p.jsx("span",{className:u,children:n})]}),p.jsx(An,{condition:!!f,children:t}),p.jsx(An,{condition:!!a&&!!t,children:p.jsxs("div",{className:"flex gap-2 items-center",children:[t,p.jsx("span",{className:u,children:n})]})}),p.jsx(An,{condition:!!i&&!!t,children:p.jsxs("div",{className:"flex gap-2 items-center",children:[p.jsx("span",{className:u,children:n}),t]})}),p.jsx(so,{children:n})]})});function xk({...t}){return p.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}function wk({className:t,...e}){return p.jsx("ol",{"data-slot":"breadcrumb-list",className:L("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",t),...e})}function Ck({className:t,...e}){return p.jsx("li",{"data-slot":"breadcrumb-item",className:L("inline-flex items-center gap-1.5",t),...e})}function Sk({asChild:t,className:e,...n}){const r=t?rr:"a";return p.jsx(r,{"data-slot":"breadcrumb-link",className:L("hover:text-foreground transition-colors",e),...n})}function Ek({className:t,...e}){return p.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:L("text-foreground font-normal",t),...e})}function Ik({children:t,className:e,...n}){return p.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:L("[&>svg]:size-3.5",e),...n,children:t??p.jsx(ic,{})})}function Ak({className:t,...e}){return p.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:L("flex size-9 items-center justify-center",t),...e,children:[p.jsx(fS,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"More"})]})}function Tk(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const Ok={},ta={};function io(t,e){try{const r=(Ok[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in ta?ta[r]:Xv(r,r.split(":"))}catch{if(t in ta)return ta[t];const n=t?.match(Nk);return n?Xv(t,n.slice(1)):NaN}}const Nk=/([+-]\d\d):?(\d\d)?/;function Xv(t,e){const n=+(e[0]||0),r=+(e[1]||0),o=+(e[2]||0)/60;return ta[t]=n*60+r>0?n*60+r+o:n*60-r-o}class Un extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(io(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),US(this),Kp(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new Un(...n,e):new Un(Date.now(),e)}withTimeZone(e){return new Un(+this,e)}getTimezoneOffset(){const e=-io(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Kp(this),+this}[Symbol.for("constructDateFrom")](e){return new Un(+new Date(e),this.timeZone)}}const Yv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!Yv.test(t))return;const e=t.replace(Yv,"$1UTC");Un.prototype[e]&&(t.startsWith("get")?Un.prototype[t]=function(){return this.internal[e]()}:(Un.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),Rk(this),+this},Un.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),Kp(this),+this}))});function Kp(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-io(t.timeZone,t)*60))}function Rk(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),US(t)}function US(t){const e=io(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&s&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const c=new Date(+t);c.setUTCSeconds(0);const u=o>0?c.getSeconds():(c.getSeconds()-60)%60,d=Math.round(-(io(t.timeZone,t)*60))%60;(d||u)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+d+u));const f=io(t.timeZone,t),h=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+t).getTimezoneOffset()-h,b=h!==n,y=m-l;if(b&&y){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+y);const w=io(t.timeZone,t),C=w>0?Math.floor(w):Math.ceil(w),S=h-C;S&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+S))}}class jt extends Un{static tz(e,...n){return n.length?new jt(...n,e):new jt(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),o=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,n,r,o]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${e} GMT${n}${r}${o} (${Tk(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),o=String(Math.abs(e)%60).padStart(2,"0");return[n,r,o]}withTimeZone(e){return new jt(+this,e)}[Symbol.for("constructDateFrom")](e){return new jt(+new Date(e),this.timeZone)}}const Uv=5,_k=4;function Pk(t,e){const n=e.startOfMonth(t),r=n.getDay()>0?n.getDay():7,o=e.addDays(t,-r+1),i=e.addDays(o,Uv*7-1);return e.getMonth(t)===e.getMonth(i)?Uv:_k}function ZS(t,e){const n=e.startOfMonth(t),r=n.getDay();return r===1?n:r===0?e.addDays(n,-6):e.addDays(n,-1*(r-1))}function Mk(t,e){const n=ZS(t,e),r=Pk(t,e);return e.addDays(n,r*7-1)}const JS={...Xo,labels:{labelDayButton:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Yn(a,s,{locale:Xo,...n});let i=o(t,"PPPP");return e.today&&(i=`Today, ${i}`),e.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Yn(o,i,{locale:Xo,...e}),r(t,"LLLL yyyy")},labelGridcell:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Yn(a,s,{locale:Xo,...n});let i=o(t,"PPPP");return e?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Yn(o,i,{locale:Xo,...e}),r(t,"cccc")}}};class rn{constructor(e,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?jt.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,i)=>this.overrides?.newDate?this.overrides.newDate(r,o,i):this.options.timeZone?new jt(r,o,i,this.options.timeZone):new Date(r,o,i),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):OS(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):NS(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):C2(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):S2(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Cg(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):MS(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):O2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):_2(r),i=new Set(o.map(s=>this.getYear(s)));if(i.size===o.length)return o;const a=[];return i.forEach(s=>{a.push(new Date(s,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Mk(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):P2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):T2(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):jS(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):R2(r),this.format=(r,o,i)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):Yn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Sg(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):ND(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):RD(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Eg(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):_D(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):PD(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):_S(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):A2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):MD(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):DD(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):E2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):I2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):kD(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):jD(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):ZS(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):va(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):ba(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):N2(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):li(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):kS(r),this.options={locale:JS,...e},this.overrides=n}getDigitMap(){const{numerals:e="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:e}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(e){const n=this.getDigitMap();return e.replace(/\d/g,r=>n[r]||r)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&rn.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:n,timeZone:r,numerals:o}=this.options,i=n?.code;if(i&&rn.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(e)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,a)}}rn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const or=new rn;class KS{constructor(e,n,r=or){this.date=e,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(e,n)),this.dateLib=r,this.isoDate=r.format(e,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class Dk{constructor(e,n){this.date=e,this.weeks=n}}class kk{constructor(e,n){this.days=n,this.weekNumber=e}}function jk(t){return O.createElement("button",{...t})}function Lk(t){return O.createElement("span",{...t})}function Bk(t){const{size:e=24,orientation:n="left",className:r}=t;return O.createElement("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24"},n==="up"&&O.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&O.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&O.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&O.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Fk(t){const{day:e,modifiers:n,...r}=t;return O.createElement("td",{...r})}function Gk(t){const{day:e,modifiers:n,...r}=t,o=O.useRef(null);return O.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),O.createElement("button",{ref:o,...r})}var xe;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(xe||(xe={}));var Qe;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(Qe||(Qe={}));var Tn;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(Tn||(Tn={}));var Kt;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"})(Kt||(Kt={}));function $k(t){const{options:e,className:n,components:r,classNames:o,...i}=t,a=[o[xe.Dropdown],n].join(" "),s=e?.find(({value:l})=>l===i.value);return O.createElement("span",{"data-disabled":i.disabled,className:o[xe.DropdownRoot]},O.createElement(r.Select,{className:a,...i},e?.map(({value:l,label:c,disabled:u})=>O.createElement(r.Option,{key:l,value:l,disabled:u},c))),O.createElement("span",{className:o[xe.CaptionLabel],"aria-hidden":!0},s?.label,O.createElement(r.Chevron,{orientation:"down",size:18,className:o[xe.Chevron]})))}function Wk(t){return O.createElement("div",{...t})}function Vk(t){return O.createElement("div",{...t})}function Hk(t){const{calendarMonth:e,displayIndex:n,...r}=t;return O.createElement("div",{...r},t.children)}function qk(t){const{calendarMonth:e,displayIndex:n,...r}=t;return O.createElement("div",{...r})}function zk(t){return O.createElement("table",{...t})}function Xk(t){return O.createElement("div",{...t})}const QS=O.createContext(void 0);function Ha(){const t=O.useContext(QS);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function Yk(t){const{components:e}=Ha();return O.createElement(e.Dropdown,{...t})}function Uk(t){const{onPreviousClick:e,onNextClick:n,previousMonth:r,nextMonth:o,...i}=t,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:c}}=Ha(),u=O.useCallback(f=>{o&&n?.(f)},[o,n]),d=O.useCallback(f=>{r&&e?.(f)},[r,e]);return O.createElement("nav",{...i},O.createElement(a.PreviousMonthButton,{type:"button",className:s[xe.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:d},O.createElement(a.Chevron,{disabled:r?void 0:!0,className:s[xe.Chevron],orientation:"left"})),O.createElement(a.NextMonthButton,{type:"button",className:s[xe.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":c(o),onClick:u},O.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[xe.Chevron]})))}function Zk(t){const{components:e}=Ha();return O.createElement(e.Button,{...t})}function Jk(t){return O.createElement("option",{...t})}function Kk(t){const{components:e}=Ha();return O.createElement(e.Button,{...t})}function Qk(t){const{rootRef:e,...n}=t;return O.createElement("div",{...n,ref:e})}function ej(t){return O.createElement("select",{...t})}function tj(t){const{week:e,...n}=t;return O.createElement("tr",{...n})}function nj(t){return O.createElement("th",{...t})}function rj(t){return O.createElement("thead",{"aria-hidden":!0},O.createElement("tr",{...t}))}function oj(t){const{week:e,...n}=t;return O.createElement("th",{...n})}function ij(t){return O.createElement("th",{...t})}function aj(t){return O.createElement("tbody",{...t})}function sj(t){const{components:e}=Ha();return O.createElement(e.Dropdown,{...t})}const lj=Object.freeze(Object.defineProperty({__proto__:null,Button:jk,CaptionLabel:Lk,Chevron:Bk,Day:Fk,DayButton:Gk,Dropdown:$k,DropdownNav:Wk,Footer:Vk,Month:Hk,MonthCaption:qk,MonthGrid:zk,Months:Xk,MonthsDropdown:Yk,Nav:Uk,NextMonthButton:Zk,Option:Jk,PreviousMonthButton:Kk,Root:Qk,Select:ej,Week:tj,WeekNumber:oj,WeekNumberHeader:ij,Weekday:nj,Weekdays:rj,Weeks:aj,YearsDropdown:sj},Symbol.toStringTag,{value:"Module"}));function vr(t,e,n=!1,r=or){let{from:o,to:i}=t;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(e,o)>=(n?1:0)&&a(i,e)>=(n?1:0)):!n&&i?s(i,e):!n&&o?s(o,e):!1}function Ag(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function ac(t){return!!(t&&typeof t=="object"&&"from"in t)}function Tg(t){return!!(t&&typeof t=="object"&&"after"in t)}function Og(t){return!!(t&&typeof t=="object"&&"before"in t)}function eE(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function tE(t,e){return Array.isArray(t)&&t.every(e.isDate)}function yr(t,e,n=or){const r=Array.isArray(e)?e:[e],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(t,s);if(tE(s,n))return s.some(l=>o(t,l));if(ac(s))return vr(s,t,!1,n);if(eE(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(t.getDay()):s.dayOfWeek===t.getDay();if(Ag(s)){const l=i(s.before,t),c=i(s.after,t),u=l>0,d=c<0;return a(s.before,s.after)?d&&u:u||d}return Tg(s)?i(t,s.after)>0:Og(s)?i(s.before,t)>0:typeof s=="function"?s(t):!1})}function cj(t,e,n,r,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:u=o.today()}=e,{isSameDay:d,isSameMonth:f,startOfMonth:h,isBefore:g,endOfMonth:m,isAfter:b}=o,y=n&&h(n),w=r&&m(r),C={[Qe.focused]:[],[Qe.outside]:[],[Qe.disabled]:[],[Qe.hidden]:[],[Qe.today]:[]},S={};for(const E of t){const{date:T,displayMonth:I}=E,_=!!(I&&!f(T,I)),P=!!(y&&g(T,y)),W=!!(w&&b(T,w)),A=!!(i&&yr(T,i,o)),D=!!(a&&yr(T,a,o))||P||W||!c&&!l&&_||c&&l===!1&&_,N=d(T,u);_&&C.outside.push(E),A&&C.disabled.push(E),D&&C.hidden.push(E),N&&C.today.push(E),s&&Object.keys(s).forEach(F=>{const j=s?.[F];j&&yr(T,j,o)&&(S[F]?S[F].push(E):S[F]=[E])})}return E=>{const T={[Qe.focused]:!1,[Qe.disabled]:!1,[Qe.hidden]:!1,[Qe.outside]:!1,[Qe.today]:!1},I={};for(const _ in C){const P=C[_];T[_]=P.some(W=>W===E)}for(const _ in S)I[_]=S[_].some(P=>P===E);return{...T,...I}}}function uj(t,e,n={}){return Object.entries(t).filter(([,o])=>o===!0).reduce((o,[i])=>(n[i]?o.push(n[i]):e[Qe[i]]?o.push(e[Qe[i]]):e[Tn[i]]&&o.push(e[Tn[i]]),o),[e[xe.Day]])}function dj(t){return{...lj,...t}}function fj(t){const e={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([n,r])=>{n.startsWith("data-")&&(e[n]=r)}),e}function Ng(){const t={};for(const e in xe)t[xe[e]]=`rdp-${xe[e]}`;for(const e in Qe)t[Qe[e]]=`rdp-${Qe[e]}`;for(const e in Tn)t[Tn[e]]=`rdp-${Tn[e]}`;for(const e in Kt)t[Kt[e]]=`rdp-${Kt[e]}`;return t}function nE(t,e,n){return(n??new rn(e)).formatMonthYear(t)}const hj=nE;function pj(t,e,n){return(n??new rn(e)).format(t,"d")}function mj(t,e=or){return e.format(t,"LLLL")}function gj(t,e,n){return(n??new rn(e)).format(t,"cccccc")}function bj(t,e=or){return t<10?e.formatNumber(`0${t.toLocaleString()}`):e.formatNumber(`${t.toLocaleString()}`)}function vj(){return""}function rE(t,e=or){return e.format(t,"yyyy")}const yj=rE,xj=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:nE,formatDay:pj,formatMonthCaption:hj,formatMonthDropdown:mj,formatWeekNumber:bj,formatWeekNumberHeader:vj,formatWeekdayName:gj,formatYearCaption:yj,formatYearDropdown:rE},Symbol.toStringTag,{value:"Module"}));function wj(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...xj,...t}}function Rg(t,e,n,r){let o=(r??new rn(n)).format(t,"PPPP");return e.today&&(o=`Today, ${o}`),e.selected&&(o=`${o}, selected`),o}const Cj=Rg;function _g(t,e,n){return(n??new rn(e)).formatMonthYear(t)}const Sj=_g;function oE(t,e,n,r){let o=(r??new rn(n)).format(t,"PPPP");return e?.today&&(o=`Today, ${o}`),o}function iE(t){return"Choose the Month"}function aE(){return""}const Ej="Go to the Next Month";function sE(t,e){return Ej}function lE(t){return"Go to the Previous Month"}function cE(t,e,n){return(n??new rn(e)).format(t,"cccc")}function uE(t,e){return`Week ${t}`}function dE(t){return"Week Number"}function fE(t){return"Choose the Year"}const Ij=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Sj,labelDay:Cj,labelDayButton:Rg,labelGrid:_g,labelGridcell:oE,labelMonthDropdown:iE,labelNav:aE,labelNext:sE,labelPrevious:lE,labelWeekNumber:uE,labelWeekNumberHeader:dE,labelWeekday:cE,labelYearDropdown:fE},Symbol.toStringTag,{value:"Module"})),yn=(t,e,n)=>e||(n?typeof n=="function"?n:(...r)=>n:t);function Aj(t,e){const n=e.locale?.labels??{};return{...Ij,...t??{},labelDayButton:yn(Rg,t?.labelDayButton,n.labelDayButton),labelMonthDropdown:yn(iE,t?.labelMonthDropdown,n.labelMonthDropdown),labelNext:yn(sE,t?.labelNext,n.labelNext),labelPrevious:yn(lE,t?.labelPrevious,n.labelPrevious),labelWeekNumber:yn(uE,t?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:yn(fE,t?.labelYearDropdown,n.labelYearDropdown),labelGrid:yn(_g,t?.labelGrid,n.labelGrid),labelGridcell:yn(oE,t?.labelGridcell,n.labelGridcell),labelNav:yn(aE,t?.labelNav,n.labelNav),labelWeekNumberHeader:yn(dE,t?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:yn(cE,t?.labelWeekday,n.labelWeekday)}}function Tj(t,e,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(t),end:s(t)}).map(f=>{const h=r.formatMonthDropdown(f,o),g=c(f),m=e&&f<i(e)||n&&f>i(n)||!1;return{value:g,label:h,disabled:m}})}function Oj(t,e={},n={}){let r={...e?.[xe.Day]};return Object.entries(t).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function Nj(t,e,n,r){const o=r??t.today(),i=n?t.startOfBroadcastWeek(o,t):e?t.startOfISOWeek(o):t.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=t.addDays(i,s);a.push(l)}return a}function Rj(t,e,n,r,o=!1){if(!t||!e)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=r,c=i(t),u=a(e),d=s({start:c,end:u});return o&&d.reverse(),d.map(f=>{const h=n.formatYearDropdown(f,r);return{value:l(f),label:h,disabled:!1}})}function _j(t,e={}){const{weekStartsOn:n,locale:r}=e,o=n??r?.options?.weekStartsOn??0,i=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new jt(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,t)},a=s=>{const l=i(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(jt.tz(t)),newDate:(s,l,c)=>new jt(s,l,c,12,0,0,t),startOfDay:s=>i(s),startOfWeek:(s,l)=>{const c=i(s),u=l?.weekStartsOn??o,d=(c.getDay()-u+7)%7;return c.setDate(c.getDate()-d),c},startOfISOWeek:s=>{const l=i(s),c=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-c),l},startOfMonth:s=>{const l=i(s);return l.setDate(1),l},startOfYear:s=>{const l=i(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const c=i(s),f=(((l?.weekStartsOn??o)+6)%7-c.getDay()+7)%7;return c.setDate(c.getDate()+f),c},endOfISOWeek:s=>{const l=i(s),c=(7-l.getDay())%7;return l.setDate(l.getDate()+c),l},endOfMonth:s=>{const l=i(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=i(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=i(s.start),c=i(s.end),u=[],d=new jt(l.getFullYear(),l.getMonth(),1,12,0,0,t),f=c.getFullYear()*12+c.getMonth();for(;d.getFullYear()*12+d.getMonth()<=f;)u.push(new jt(d,t)),d.setMonth(d.getMonth()+1,1);return u},addDays:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l),c},addWeeks:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l*7),c},addMonths:(s,l)=>{const c=i(s);return c.setMonth(c.getMonth()+l),c},addYears:(s,l)=>{const c=i(s);return c.setFullYear(c.getFullYear()+l),c},eachYearOfInterval:s=>{const l=i(s.start),c=i(s.end),u=[],d=new jt(l.getFullYear(),0,1,12,0,0,t);for(;d.getFullYear()<=c.getFullYear();)u.push(new jt(d,t)),d.setFullYear(d.getFullYear()+1,0,1);return u},getWeek:(s,l)=>{const c=a(s);return Eg(c,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=a(s);return Sg(l)},differenceInCalendarDays:(s,l)=>{const c=a(s),u=a(l);return Cg(c,u)},differenceInCalendarMonths:(s,l)=>{const c=a(s),u=a(l);return MS(c,u)}}}const qa=t=>t instanceof HTMLElement?t:null,Qu=t=>[...t.querySelectorAll("[data-animated-month]")??[]],Pj=t=>qa(t.querySelector("[data-animated-month]")),ed=t=>qa(t.querySelector("[data-animated-caption]")),td=t=>qa(t.querySelector("[data-animated-weeks]")),Mj=t=>qa(t.querySelector("[data-animated-nav]")),Dj=t=>qa(t.querySelector("[data-animated-weekdays]"));function kj(t,e,{classNames:n,months:r,focused:o,dateLib:i}){const a=O.useRef(null),s=O.useRef(r),l=O.useRef(!1);O.useLayoutEffect(()=>{const c=s.current;if(s.current=r,!e||!t.current||!(t.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),f=d?n[Kt.caption_after_enter]:n[Kt.caption_before_enter],h=d?n[Kt.weeks_after_enter]:n[Kt.weeks_before_enter],g=a.current,m=t.current.cloneNode(!0);if(m instanceof HTMLElement?(Qu(m).forEach(C=>{if(!(C instanceof HTMLElement))return;const S=Pj(C);S&&C.contains(S)&&C.removeChild(S);const E=ed(C);E&&E.classList.remove(f);const T=td(C);T&&T.classList.remove(h)}),a.current=m):a.current=null,l.current||u||o)return;const b=g instanceof HTMLElement?Qu(g):[],y=Qu(t.current);if(y?.every(w=>w instanceof HTMLElement)&&b&&b.every(w=>w instanceof HTMLElement)){l.current=!0,t.current.style.isolation="isolate";const w=Mj(t.current);w&&(w.style.zIndex="1"),y.forEach((C,S)=>{const E=b[S];if(!E)return;C.style.position="relative",C.style.overflow="hidden";const T=ed(C);T&&T.classList.add(f);const I=td(C);I&&I.classList.add(h);const _=()=>{l.current=!1,t.current&&(t.current.style.isolation=""),w&&(w.style.zIndex=""),T&&T.classList.remove(f),I&&I.classList.remove(h),C.style.position="",C.style.overflow="",C.contains(E)&&C.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const P=Dj(E);P&&(P.style.opacity="0");const W=ed(E);W&&(W.classList.add(d?n[Kt.caption_before_exit]:n[Kt.caption_after_exit]),W.addEventListener("animationend",_));const A=td(E);A&&A.classList.add(d?n[Kt.weeks_before_exit]:n[Kt.weeks_after_exit]),C.insertBefore(E,C.firstChild)})}})}function jj(t,e,n,r){const o=t[0],i=t[t.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:g,endOfWeek:m,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:C}=r,S=l?y(o,r):a?w(o):C(o),E=l?f(i):a?h(g(i)):m(g(i)),T=e&&(l?f(e):a?h(e):m(e)),I=T&&b(E,T)?T:E,_=u(I,S),P=d(i,o)+1,W=[];for(let N=0;N<=_;N++){const F=c(S,N);W.push(F)}const D=(l?35:42)*P;if(s&&W.length<D){const N=D-W.length;for(let F=0;F<N;F++){const j=c(W[W.length-1],1);W.push(j)}}return W}function Lj(t){const e=[];return t.reduce((n,r)=>{const o=r.weeks.reduce((i,a)=>i.concat(a.days.slice()),e.slice());return n.concat(o.slice())},e.slice())}function Bj(t,e,n,r){const{numberOfMonths:o=1}=n,i=[];for(let a=0;a<o;a++){const s=r.addMonths(t,a);if(e&&s>e)break;i.push(s)}return i}function Zv(t,e,n,r){const{month:o,defaultMonth:i,today:a=r.today(),numberOfMonths:s=1}=t;let l=o||i||a;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;if(n&&c(n,l)<s-1){const f=-1*(s-1);l=u(n,f)}return e&&c(l,e)<0&&(l=e),d(l)}function Fj(t,e,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:h}=r,g=t.reduce((m,b)=>{const y=n.broadcastCalendar?d(b,r):n.ISOWeek?f(b):h(b),w=n.broadcastCalendar?i(b):n.ISOWeek?a(s(b)):l(s(b)),C=e.filter(I=>I>=y&&I<=w),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&C.length<S){const I=e.filter(_=>{const P=S-C.length;return _>w&&_<=o(w,P)});C.push(...I)}const E=C.reduce((I,_)=>{const P=n.ISOWeek?c(_):u(_),W=I.find(D=>D.weekNumber===P),A=new KS(_,b,r);return W?W.days.push(A):I.push(new kk(P,[A])),I},[]),T=new Dk(b,E);return m.push(T),m},[]);return n.reverseMonths?g.reverse():g}function Gj(t,e){let{startMonth:n,endMonth:r}=t;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=e,{fromYear:f,toYear:h,fromMonth:g,toMonth:m}=t;!n&&g&&(n=g),!n&&f&&(n=e.newDate(f,0,1)),!r&&m&&(r=m),!r&&h&&(r=u(h,11,31));const b=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return n?n=a(n):f?n=u(f,0,1):!n&&b&&(n=o(l(t.today??d(),-100))),r?r=s(r):h?r=u(h,11,31):!r&&b&&(r=c(t.today??d())),[n&&i(n),r&&i(r)]}function $j(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i:1,u=a(t);if(!e)return s(u,c);if(!(l(e,t)<i))return s(u,c)}function Wj(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=a(t);if(!e)return s(u,-c);if(!(l(u,e)<=0))return s(u,-c)}function Vj(t){const e=[];return t.reduce((n,r)=>n.concat(r.weeks.slice()),e.slice())}function sc(t,e){const[n,r]=O.useState(t);return[e===void 0?n:e,r]}function Hj(t,e){const[n,r]=Gj(t,e),{startOfMonth:o,endOfMonth:i}=e,a=Zv(t,n,r,e),[s,l]=sc(a,t.month?a:void 0);O.useEffect(()=>{const S=Zv(t,n,r,e);l(S)},[t.timeZone]);const{months:c,weeks:u,days:d,previousMonth:f,nextMonth:h}=O.useMemo(()=>{const S=Bj(s,r,{numberOfMonths:t.numberOfMonths},e),E=jj(S,t.endMonth?i(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},e),T=Fj(S,E,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},e),I=Vj(T),_=Lj(T),P=Wj(s,n,t,e),W=$j(s,r,t,e);return{months:T,weeks:I,days:_,previousMonth:P,nextMonth:W}},[e,s.getTime(),r?.getTime(),n?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:g,onMonthChange:m}=t,b=S=>u.some(E=>E.days.some(T=>T.isEqualTo(S))),y=S=>{if(g)return;let E=o(S);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),m?.(E)};return{months:c,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:h,goToMonth:y,goToDay:S=>{b(S)||y(S.date)}}}var Hn;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(Hn||(Hn={}));function Jv(t){return!t[Qe.disabled]&&!t[Qe.hidden]&&!t[Qe.outside]}function qj(t,e,n,r){let o,i=-1;for(const a of t){const s=e(a);Jv(s)&&(s[Qe.focused]&&i<Hn.FocusedModifier?(o=a,i=Hn.FocusedModifier):r?.isEqualTo(a)&&i<Hn.LastFocused?(o=a,i=Hn.LastFocused):n(a.date)&&i<Hn.Selected?(o=a,i=Hn.Selected):s[Qe.today]&&i<Hn.Today&&(o=a,i=Hn.Today))}return o||(o=t.find(a=>Jv(e(a)))),o}function zj(t,e,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:h,endOfISOWeek:g,endOfWeek:m,max:b,min:y,startOfBroadcastWeek:w,startOfISOWeek:C,startOfWeek:S}=a;let T={day:c,week:d,month:u,year:f,startOfWeek:I=>l?w(I,a):s?C(I):S(I),endOfWeek:I=>l?h(I):s?g(I):m(I)}[t](n,e==="after"?1:-1);return e==="before"&&r?T=b([r,T]):e==="after"&&o&&(T=y([o,T])),T}function hE(t,e,n,r,o,i,a,s=0){if(s>365)return;const l=zj(t,e,n.date,r,o,i,a),c=!!(i.disabled&&yr(l,i.disabled,a)),u=!!(i.hidden&&yr(l,i.hidden,a)),d=l,f=new KS(l,d,a);return!c&&!u?f:hE(t,e,f,r,o,i,a,s+1)}function Xj(t,e,n,r,o){const{autoFocus:i}=t,[a,s]=O.useState(),l=qj(e.days,n,r||(()=>!1),a),[c,u]=O.useState(i?l:void 0);return{isFocusTarget:m=>!!l?.isEqualTo(m),setFocused:u,focused:c,blur:()=>{s(c),u(void 0)},moveFocus:(m,b)=>{if(!c)return;const y=hE(m,b,c,e.navStart,e.navEnd,t,o);y&&(t.disableNavigation&&!e.days.some(C=>C.isEqualTo(y))||(e.goToDay(y),u(y)))}}}function Yj(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=sc(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e,c=h=>s?.some(g=>l(g,h))??!1,{min:u,max:d}=t;return{selected:s,select:(h,g,m)=>{let b=[...s??[]];if(c(h)){if(s?.length===u||r&&s?.length===1)return;b=s?.filter(y=>!l(y,h))}else s?.length===d?b=[h]:b=[...b,h];return o||a(b),o?.(b,h,g,m),b},isSelected:c}}function Uj(t,e,n=0,r=0,o=!1,i=or){const{from:a,to:s}=e||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(!a&&!s)d={from:t,to:n>0?void 0:t};else if(a&&!s)l(a,t)?n===0?d={from:a,to:t}:o?d={from:a,to:void 0}:d=void 0:u(t,a)?d={from:t,to:a}:d={from:a,to:t};else if(a&&s)if(l(a,t)&&l(s,t))o?d={from:a,to:s}:d=void 0;else if(l(a,t))d={from:a,to:n>0?void 0:t};else if(l(s,t))d={from:t,to:n>0?void 0:t};else if(u(t,a))d={from:t,to:s};else if(c(t,a))d={from:a,to:t};else if(c(t,s))d={from:a,to:t};else throw new Error("Invalid range");if(d?.from&&d?.to){const f=i.differenceInCalendarDays(d.to,d.from);r>0&&f>r?d={from:t,to:void 0}:n>1&&f<n&&(d={from:t,to:void 0})}return d}function Zj(t,e,n=or){const r=Array.isArray(e)?e:[e];let o=t.from;const i=n.differenceInCalendarDays(t.to,t.from),a=Math.min(i,6);for(let s=0;s<=a;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Kv(t,e,n=or){return vr(t,e.from,!1,n)||vr(t,e.to,!1,n)||vr(e,t.from,!1,n)||vr(e,t.to,!1,n)}function Jj(t,e,n=or){const r=Array.isArray(e)?e:[e];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?vr(t,s,!1,n):tE(s,n)?s.some(l=>vr(t,l,!1,n)):ac(s)?s.from&&s.to?Kv(t,{from:s.from,to:s.to},n):!1:eE(s)?Zj(t,s.dayOfWeek,n):Ag(s)?n.isAfter(s.before,s.after)?Kv(t,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):yr(t.from,s,n)||yr(t.to,s,n):Tg(s)||Og(s)?yr(t.from,s,n)||yr(t.to,s,n):!1))return!0;const a=r.filter(s=>typeof s=="function");if(a.length){let s=t.from;const l=n.differenceInCalendarDays(t.to,t.from);for(let c=0;c<=l;c++){if(a.some(u=>u(s)))return!0;s=n.addDays(s,1)}}return!1}function Kj(t,e){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=t,[s,l]=sc(o,a?o:void 0),c=a?o:s;return{selected:c,select:(f,h,g)=>{const{min:m,max:b}=t,y=f?Uj(f,c,m,b,i,e):void 0;return r&&n&&y?.from&&y.to&&Jj({from:y.from,to:y.to},n,e)&&(y.from=f,y.to=void 0),a||l(y),a?.(y,f,h,g),y},isSelected:f=>c&&vr(c,f,!1,e)}}function Qj(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=sc(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e;return{selected:s,select:(d,f,h)=>{let g=d;return!r&&s&&s&&l(d,s)&&(g=void 0),o||a(g),o?.(g,d,f,h),g},isSelected:d=>s?l(s,d):!1}}function eL(t,e){const n=Qj(t,e),r=Yj(t,e),o=Kj(t,e);switch(t.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function cn(t,e){return t instanceof jt&&t.timeZone===e?t:new jt(t,e)}function Wo(t,e,n){return cn(t,e)}function Qv(t,e,n){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?Wo(t,e):Array.isArray(t)?t.map(r=>r instanceof Date?Wo(r,e):r):ac(t)?{...t,from:t.from?cn(t.from,e):t.from,to:t.to?cn(t.to,e):t.to}:Ag(t)?{before:Wo(t.before,e),after:Wo(t.after,e)}:Tg(t)?{after:Wo(t.after,e)}:Og(t)?{before:Wo(t.before,e)}:t}function nd(t,e,n){return t&&(Array.isArray(t)?t.map(r=>Qv(r,e)):Qv(t,e))}function tL(t){let e=t;const n=e.timeZone;if(n&&(e={...t,timeZone:n},e.today&&(e.today=cn(e.today,n)),e.month&&(e.month=cn(e.month,n)),e.defaultMonth&&(e.defaultMonth=cn(e.defaultMonth,n)),e.startMonth&&(e.startMonth=cn(e.startMonth,n)),e.endMonth&&(e.endMonth=cn(e.endMonth,n)),e.mode==="single"&&e.selected?e.selected=cn(e.selected,n):e.mode==="multiple"&&e.selected?e.selected=e.selected?.map(te=>cn(te,n)):e.mode==="range"&&e.selected&&(e.selected={from:e.selected.from?cn(e.selected.from,n):e.selected.from,to:e.selected.to?cn(e.selected.to,n):e.selected.to}),e.disabled!==void 0&&(e.disabled=nd(e.disabled,n)),e.hidden!==void 0&&(e.hidden=nd(e.hidden,n)),e.modifiers)){const te={};Object.keys(e.modifiers).forEach(de=>{te[de]=nd(e.modifiers?.[de],n)}),e.modifiers=te}const{components:r,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=O.useMemo(()=>{const te={...JS,...e.locale},de=e.broadcastCalendar?1:e.weekStartsOn,ce=e.noonSafe&&e.timeZone?_j(e.timeZone,{weekStartsOn:de,locale:te}):void 0,ue=e.dateLib&&ce?{...ce,...e.dateLib}:e.dateLib??ce,Ae=new rn({locale:te,weekStartsOn:de,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},ue);return{dateLib:Ae,components:dj(e.components),formatters:wj(e.formatters),labels:Aj(e.labels,Ae.options),locale:te,classNames:{...Ng(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.noonSafe,e.components,e.formatters,e.labels,e.classNames]);e.today||(e={...e,today:a.today()});const{captionLayout:c,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:h,onDayClick:g,onDayFocus:m,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:C,onPrevClick:S,showWeekNumber:E,styles:T}=e,{formatCaption:I,formatDay:_,formatMonthDropdown:P,formatWeekNumber:W,formatWeekNumberHeader:A,formatWeekdayName:D,formatYearDropdown:N}=o,F=Hj(e,a),{days:j,months:M,navStart:V,navEnd:k,previousMonth:H,nextMonth:U,goToMonth:ee}=F,G=cj(j,e,V,k,a),{isSelected:X,select:Z,selected:Y}=eL(e,a)??{},{blur:ne,focused:z,isFocusTarget:K,moveFocus:ae,setFocused:ie}=Xj(e,F,G,X??(()=>!1),a),{labelDayButton:re,labelGridcell:q,labelGrid:le,labelMonthDropdown:$,labelNav:se,labelPrevious:Ie,labelNext:Oe,labelWeekday:Ve,labelWeekNumber:Ne,labelWeekNumberHeader:_e,labelYearDropdown:it}=i,Je=O.useMemo(()=>Nj(a,e.ISOWeek,e.broadcastCalendar,e.today),[a,e.ISOWeek,e.broadcastCalendar,e.today]),Ye=u!==void 0||g!==void 0,$e=O.useCallback(()=>{H&&(ee(H),S?.(H))},[H,ee,S]),Ue=O.useCallback(()=>{U&&(ee(U),C?.(U))},[ee,U,C]),wt=O.useCallback((te,de)=>ce=>{ce.preventDefault(),ce.stopPropagation(),ie(te),!de.disabled&&(Z?.(te.date,de,ce),g?.(te.date,de,ce))},[Z,g,ie]),tt=O.useCallback((te,de)=>ce=>{ie(te),m?.(te.date,de,ce)},[m,ie]),Ct=O.useCallback((te,de)=>ce=>{ne(),h?.(te.date,de,ce)},[ne,h]),_t=O.useCallback((te,de)=>ce=>{const ue={ArrowLeft:[ce.shiftKey?"month":"day",e.dir==="rtl"?"after":"before"],ArrowRight:[ce.shiftKey?"month":"day",e.dir==="rtl"?"before":"after"],ArrowDown:[ce.shiftKey?"year":"week","after"],ArrowUp:[ce.shiftKey?"year":"week","before"],PageUp:[ce.shiftKey?"year":"month","before"],PageDown:[ce.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ue[ce.key]){ce.preventDefault(),ce.stopPropagation();const[Ae,ve]=ue[ce.key];ae(Ae,ve)}b?.(te.date,de,ce)},[ae,b,e.dir]),qe=O.useCallback((te,de)=>ce=>{y?.(te.date,de,ce)},[y]),Vt=O.useCallback((te,de)=>ce=>{w?.(te.date,de,ce)},[w]),St=O.useCallback(te=>de=>{const ce=Number(de.target.value),ue=a.setMonth(a.startOfMonth(te),ce);ee(ue)},[a,ee]),at=O.useCallback(te=>de=>{const ce=Number(de.target.value),ue=a.setYear(a.startOfMonth(te),ce);ee(ue)},[a,ee]),{className:Ft,style:Ht}=O.useMemo(()=>({className:[l[xe.Root],e.className].filter(Boolean).join(" "),style:{...T?.[xe.Root],...e.style}}),[l,e.className,e.style,T]),Gn=fj(e),Zt=O.useRef(null);kj(Zt,!!e.animate,{classNames:l,months:M,focused:z,dateLib:a});const Jt={dayPickerProps:e,selected:Y,select:Z,isSelected:X,months:M,nextMonth:U,previousMonth:H,goToMonth:ee,getModifiers:G,components:r,classNames:l,styles:T,labels:i,formatters:o};return O.createElement(QS.Provider,{value:Jt},O.createElement(r.Root,{rootRef:e.animate?Zt:void 0,className:Ft,style:Ht,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],...Gn},O.createElement(r.Months,{className:l[xe.Months],style:T?.[xe.Months]},!e.hideNavigation&&!d&&O.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":se(),onPreviousClick:$e,onNextClick:Ue,previousMonth:H,nextMonth:U}),M.map((te,de)=>O.createElement(r.Month,{"data-animated-month":e.animate?"true":void 0,className:l[xe.Month],style:T?.[xe.Month],key:de,displayIndex:de,calendarMonth:te},d==="around"&&!e.hideNavigation&&de===0&&O.createElement(r.PreviousMonthButton,{type:"button",className:l[xe.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":Ie(H),onClick:$e,"data-animated-button":e.animate?"true":void 0},O.createElement(r.Chevron,{disabled:H?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"right":"left"})),O.createElement(r.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:l[xe.MonthCaption],style:T?.[xe.MonthCaption],calendarMonth:te,displayIndex:de},c?.startsWith("dropdown")?O.createElement(r.DropdownNav,{className:l[xe.Dropdowns],style:T?.[xe.Dropdowns]},(()=>{const ce=c==="dropdown"||c==="dropdown-months"?O.createElement(r.MonthsDropdown,{key:"month",className:l[xe.MonthsDropdown],"aria-label":$(),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:St(te.date),options:Tj(te.date,V,k,o,a),style:T?.[xe.Dropdown],value:a.getMonth(te.date)}):O.createElement("span",{key:"month"},P(te.date,a)),ue=c==="dropdown"||c==="dropdown-years"?O.createElement(r.YearsDropdown,{key:"year",className:l[xe.YearsDropdown],"aria-label":it(a.options),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:at(te.date),options:Rj(V,k,o,a,!!e.reverseYears),style:T?.[xe.Dropdown],value:a.getYear(te.date)}):O.createElement("span",{key:"year"},N(te.date,a));return a.getMonthYearOrder()==="year-first"?[ue,ce]:[ce,ue]})(),O.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},I(te.date,a.options,a))):O.createElement(r.CaptionLabel,{className:l[xe.CaptionLabel],role:"status","aria-live":"polite"},I(te.date,a.options,a))),d==="around"&&!e.hideNavigation&&de===f-1&&O.createElement(r.NextMonthButton,{type:"button",className:l[xe.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":Oe(U),onClick:Ue,"data-animated-button":e.animate?"true":void 0},O.createElement(r.Chevron,{disabled:U?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"left":"right"})),de===f-1&&d==="after"&&!e.hideNavigation&&O.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":se(),onPreviousClick:$e,onNextClick:Ue,previousMonth:H,nextMonth:U}),O.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":le(te.date,a.options,a)||void 0,className:l[xe.MonthGrid],style:T?.[xe.MonthGrid]},!e.hideWeekdays&&O.createElement(r.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:l[xe.Weekdays],style:T?.[xe.Weekdays]},E&&O.createElement(r.WeekNumberHeader,{"aria-label":_e(a.options),className:l[xe.WeekNumberHeader],style:T?.[xe.WeekNumberHeader],scope:"col"},A()),Je.map(ce=>O.createElement(r.Weekday,{"aria-label":Ve(ce,a.options,a),className:l[xe.Weekday],key:String(ce),style:T?.[xe.Weekday],scope:"col"},D(ce,a.options,a)))),O.createElement(r.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:l[xe.Weeks],style:T?.[xe.Weeks]},te.weeks.map(ce=>O.createElement(r.Week,{className:l[xe.Week],key:ce.weekNumber,style:T?.[xe.Week],week:ce},E&&O.createElement(r.WeekNumber,{week:ce,style:T?.[xe.WeekNumber],"aria-label":Ne(ce.weekNumber,{locale:s}),className:l[xe.WeekNumber],scope:"row",role:"rowheader"},W(ce.weekNumber,a)),ce.days.map(ue=>{const{date:Ae}=ue,ve=G(ue);if(ve[Qe.focused]=!ve.hidden&&!!z?.isEqualTo(ue),ve[Tn.selected]=X?.(Ae)||ve.selected,ac(Y)){const{from:ct,to:It}=Y;ve[Tn.range_start]=!!(ct&&It&&a.isSameDay(Ae,ct)),ve[Tn.range_end]=!!(ct&&It&&a.isSameDay(Ae,It)),ve[Tn.range_middle]=vr(Y,Ae,!0,a)}const ze=Oj(ve,T,e.modifiersStyles),mt=uj(ve,l,e.modifiersClassNames),st=!Ye&&!ve.hidden?q(Ae,ve,a.options,a):void 0;return O.createElement(r.Day,{key:`${ue.isoDate}_${ue.displayMonthId}`,day:ue,modifiers:ve,className:mt.join(" "),style:ze,role:"gridcell","aria-selected":ve.selected||void 0,"aria-label":st,"data-day":ue.isoDate,"data-month":ue.outside?ue.dateMonthId:void 0,"data-selected":ve.selected||void 0,"data-disabled":ve.disabled||void 0,"data-hidden":ve.hidden||void 0,"data-outside":ue.outside||void 0,"data-focused":ve.focused||void 0,"data-today":ve.today||void 0},!ve.hidden&&Ye?O.createElement(r.DayButton,{className:l[xe.DayButton],style:T?.[xe.DayButton],type:"button",day:ue,modifiers:ve,disabled:!ve.focused&&ve.disabled||void 0,"aria-disabled":ve.focused&&ve.disabled||void 0,tabIndex:K(ue)?0:-1,"aria-label":re(Ae,ve,a.options,a),onClick:wt(ue,ve),onBlur:Ct(ue,ve),onFocus:tt(ue,ve),onKeyDown:_t(ue,ve),onMouseEnter:qe(ue,ve),onMouseLeave:Vt(ue,ve)},_(Ae,a.options,a)):!ve.hidden&&_(ue.date,a.options,a))})))))))),e.footer&&O.createElement(r.Footer,{className:l[xe.Footer],style:T?.[xe.Footer],role:"status","aria-live":"polite"},e.footer)))}function pE({className:t,classNames:e,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:i,components:a,...s}){const l=Ng();return p.jsx(tL,{showOutsideDays:n,className:L("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:r,formatters:{formatMonthDropdown:c=>c.toLocaleString("default",{month:"short"}),...i},classNames:{root:L("w-fit",l.root),months:L("flex gap-4 flex-col md:flex-row relative",l.months),month:L("flex flex-col w-full gap-4",l.month),nav:L("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",l.nav),button_previous:L(xl({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_previous),button_next:L(xl({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_next),month_caption:L("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",l.month_caption),dropdowns:L("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",l.dropdowns),dropdown_root:L("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",l.dropdown_root),dropdown:L("absolute bg-popover inset-0 opacity-0",l.dropdown),caption_label:L("select-none font-medium",r==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:L("flex",l.weekdays),weekday:L("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",l.weekday),week:L("flex w-full mt-2",l.week),week_number_header:L("select-none w-(--cell-size)",l.week_number_header),week_number:L("text-[0.8rem] select-none text-muted-foreground",l.week_number),day:L("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",s.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",l.day),range_start:L("rounded-l-md bg-accent",l.range_start),range_middle:L("rounded-none",l.range_middle),range_end:L("rounded-r-md bg-accent",l.range_end),today:L("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:L("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:L("text-muted-foreground opacity-50",l.disabled),hidden:L("invisible",l.hidden),...e},components:{Root:({className:c,rootRef:u,...d})=>p.jsx("div",{"data-slot":"calendar",ref:u,className:L(c),...d}),Chevron:({className:c,orientation:u,...d})=>u==="left"?p.jsx(cS,{className:L("size-4",c),...d}):u==="right"?p.jsx(ic,{className:L("size-4",c),...d}):p.jsx(wi,{className:L("size-4",c),...d}),DayButton:mE,WeekNumber:({children:c,...u})=>p.jsx("td",{...u,children:p.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:c})}),...a},...s})}function mE({className:t,day:e,modifiers:n,...r}){const o=Ng(),i=v.useRef(null);return v.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),p.jsx(nn,{ref:i,variant:"ghost",size:"icon","data-day":e.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:L("data-[selected-single=true]:bg-primary text-black-950 data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,t),...r})}const nL=({label:t,editLabel:e,status:n,statusMap:r,campaignId:o})=>{const i=()=>window.navigator.clipboard.writeText(o);return p.jsx("h1",{className:"font-semibold text-xl text-card-foreground space-x-2",children:p.jsxs(ci,{children:[p.jsxs(An,{condition:!!e,children:[e,p.jsx(nn,{type:"button",onClick:i,className:"bg-transparent hover:bg-transparent hover:text-black-950 p-0 lg:ml-2 text-black-950",children:o}),n&&p.jsx(YS,{className:L("ml-2 max-w-max text-center rounded-full text-xs px-2 py-1 text-white",r[n]),children:r[n]})]}),p.jsx(so,{children:t})]})})};function rL({className:t,...e}){return p.jsx("div",{"data-slot":"card",className:L("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...e})}function oL({className:t,...e}){return p.jsx("div",{"data-slot":"card-header",className:L("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...e})}function iL({className:t,...e}){return p.jsx("div",{"data-slot":"card-title",className:L("leading-none font-semibold",t),...e})}function aL({className:t,...e}){return p.jsx("div",{"data-slot":"card-description",className:L("text-muted-foreground text-sm",t),...e})}function sL({className:t,...e}){return p.jsx("div",{"data-slot":"card-action",className:L("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...e})}function lL({className:t,...e}){return p.jsx("div",{"data-slot":"card-content",className:L("px-6",t),...e})}function cL({className:t,...e}){return p.jsx("div",{"data-slot":"card-footer",className:L("flex items-center px-6 [.border-t]:pt-6",t),...e})}function uL(t){return Object.prototype.toString.call(t)==="[object Object]"}function ey(t){return uL(t)||Array.isArray(t)}function dL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Pg(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(t.breakpoints||{})),i=JSON.stringify(Object.keys(e.breakpoints||{}));return o!==i?!1:n.every(a=>{const s=t[a],l=e[a];return typeof s=="function"?`${s}`==`${l}`:!ey(s)||!ey(l)?s===l:Pg(s,l)})}function ty(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function fL(t,e){if(t.length!==e.length)return!1;const n=ty(t),r=ty(e);return n.every((o,i)=>{const a=r[i];return Pg(o,a)})}function Mg(t){return typeof t=="number"}function Qp(t){return typeof t=="string"}function lc(t){return typeof t=="boolean"}function ny(t){return Object.prototype.toString.call(t)==="[object Object]"}function et(t){return Math.abs(t)}function Dg(t){return Math.sign(t)}function ha(t,e){return et(t-e)}function hL(t,e){if(t===0||e===0||et(t)<=et(e))return 0;const n=ha(et(t),et(e));return et(n/t)}function pL(t){return Math.round(t*100)/100}function ya(t){return xa(t).map(Number)}function On(t){return t[za(t)]}function za(t){return Math.max(0,t.length-1)}function kg(t,e){return e===za(t)}function ry(t,e=0){return Array.from(Array(t),(n,r)=>e+r)}function xa(t){return Object.keys(t)}function gE(t,e){return[t,e].reduce((n,r)=>(xa(r).forEach(o=>{const i=n[o],a=r[o],s=ny(i)&&ny(a);n[o]=s?gE(i,a):a}),n),{})}function em(t,e){return typeof e.MouseEvent<"u"&&t instanceof e.MouseEvent}function mL(t,e){const n={start:r,center:o,end:i};function r(){return 0}function o(l){return i(l)/2}function i(l){return e-l}function a(l,c){return Qp(t)?n[t](l):t(e,l,c)}return{measure:a}}function wa(){let t=[];function e(o,i,a,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(i,a,s),l=()=>o.removeEventListener(i,a,s);else{const c=o;c.addListener(a),l=()=>c.removeListener(a)}return t.push(l),r}function n(){t=t.filter(o=>o())}const r={add:e,clear:n};return r}function gL(t,e,n,r){const o=wa(),i=1e3/60;let a=null,s=0,l=0;function c(){o.add(t,"visibilitychange",()=>{t.hidden&&g()})}function u(){h(),o.clear()}function d(b){if(!l)return;a||(a=b,n(),n());const y=b-a;for(a=b,s+=y;s>=i;)n(),s-=i;const w=s/i;r(w),l&&(l=e.requestAnimationFrame(d))}function f(){l||(l=e.requestAnimationFrame(d))}function h(){e.cancelAnimationFrame(l),a=null,s=0,l=0}function g(){a=null,s=0}return{init:c,destroy:u,start:f,stop:h,update:n,render:r}}function bL(t,e){const n=e==="rtl",r=t==="y",o=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,s=u(),l=d();function c(g){const{height:m,width:b}=g;return r?m:b}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*a}return{scroll:o,cross:i,startEdge:s,endEdge:l,measureSize:c,direction:f}}function lo(t=0,e=0){const n=et(t-e);function r(c){return c<t}function o(c){return c>e}function i(c){return r(c)||o(c)}function a(c){return i(c)?r(c)?t:e:c}function s(c){return n?c-n*Math.ceil((c-e)/n):c}return{length:n,max:e,min:t,constrain:a,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:s}}function bE(t,e,n){const{constrain:r}=lo(0,t),o=t+1;let i=a(e);function a(f){return n?et((o+f)%o):r(f)}function s(){return i}function l(f){return i=a(f),d}function c(f){return u().set(s()+f)}function u(){return bE(t,s(),n)}const d={get:s,set:l,add:c,clone:u};return d}function vL(t,e,n,r,o,i,a,s,l,c,u,d,f,h,g,m,b,y,w){const{cross:C,direction:S}=t,E=["INPUT","SELECT","TEXTAREA"],T={passive:!1},I=wa(),_=wa(),P=lo(50,225).constrain(h.measure(20)),W={mouse:300,touch:400},A={mouse:500,touch:600},D=g?43:25;let N=!1,F=0,j=0,M=!1,V=!1,k=!1,H=!1;function U(q){if(!w)return;function le(se){(lc(w)||w(q,se))&&ne(se)}const $=e;I.add($,"dragstart",se=>se.preventDefault(),T).add($,"touchmove",()=>{},T).add($,"touchend",()=>{}).add($,"touchstart",le).add($,"mousedown",le).add($,"touchcancel",K).add($,"contextmenu",K).add($,"click",ae,!0)}function ee(){I.clear(),_.clear()}function G(){const q=H?n:e;_.add(q,"touchmove",z,T).add(q,"touchend",K).add(q,"mousemove",z,T).add(q,"mouseup",K)}function X(q){const le=q.nodeName||"";return E.includes(le)}function Z(){return(g?A:W)[H?"mouse":"touch"]}function Y(q,le){const $=d.add(Dg(q)*-1),se=u.byDistance(q,!g).distance;return g||et(q)<P?se:b&&le?se*.5:u.byIndex($.get(),0).distance}function ne(q){const le=em(q,r);H=le,k=g&&le&&!q.buttons&&N,N=ha(o.get(),a.get())>=2,!(le&&q.button!==0)&&(X(q.target)||(M=!0,i.pointerDown(q),c.useFriction(0).useDuration(0),o.set(a),G(),F=i.readPoint(q),j=i.readPoint(q,C),f.emit("pointerDown")))}function z(q){if(!em(q,r)&&q.touches.length>=2)return K(q);const $=i.readPoint(q),se=i.readPoint(q,C),Ie=ha($,F),Oe=ha(se,j);if(!V&&!H&&(!q.cancelable||(V=Ie>Oe,!V)))return K(q);const Ve=i.pointerMove(q);Ie>m&&(k=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(S(Ve)),q.preventDefault()}function K(q){const $=u.byDistance(0,!1).index!==d.get(),se=i.pointerUp(q)*Z(),Ie=Y(S(se),$),Oe=hL(se,Ie),Ve=D-10*Oe,Ne=y+Oe/50;V=!1,M=!1,_.clear(),c.useDuration(Ve).useFriction(Ne),l.distance(Ie,!g),H=!1,f.emit("pointerUp")}function ae(q){k&&(q.stopPropagation(),q.preventDefault(),k=!1)}function ie(){return M}return{init:U,destroy:ee,pointerDown:ie}}function yL(t,e){let r,o;function i(d){return d.timeStamp}function a(d,f){const g=`client${(f||t.scroll)==="x"?"X":"Y"}`;return(em(d,e)?d:d.touches[0])[g]}function s(d){return r=d,o=d,a(d)}function l(d){const f=a(d)-a(o),h=i(d)-i(r)>170;return o=d,h&&(r=d),f}function c(d){if(!r||!o)return 0;const f=a(o)-a(r),h=i(d)-i(r),g=i(d)-i(o)>170,m=f/h;return h&&!g&&et(m)>.1?m:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:a}}function xL(){function t(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:a}=n;return{top:r,right:o+i,bottom:r+a,left:o,width:i,height:a}}return{measure:t}}function wL(t){function e(r){return t*(r/100)}return{measure:e}}function CL(t,e,n,r,o,i,a){const s=[t].concat(r);let l,c,u=[],d=!1;function f(b){return o.measureSize(a.measure(b))}function h(b){if(!i)return;c=f(t),u=r.map(f);function y(w){for(const C of w){if(d)return;const S=C.target===t,E=r.indexOf(C.target),T=S?c:u[E],I=f(S?t:r[E]);if(et(I-T)>=.5){b.reInit(),e.emit("resize");break}}}l=new ResizeObserver(w=>{(lc(i)||i(b,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function g(){d=!0,l&&l.disconnect()}return{init:h,destroy:g}}function SL(t,e,n,r,o,i){let a=0,s=0,l=o,c=i,u=t.get(),d=0;function f(){const T=r.get()-t.get(),I=!l;let _=0;return I?(a=0,n.set(r),t.set(r),_=T):(n.set(t),a+=T/l,a*=c,u+=a,t.add(a),_=u-d),s=Dg(_),d=u,E}function h(){const T=r.get()-e.get();return et(T)<.001}function g(){return l}function m(){return s}function b(){return a}function y(){return C(o)}function w(){return S(i)}function C(T){return l=T,E}function S(T){return c=T,E}const E={direction:m,duration:g,velocity:b,seek:f,settled:h,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:C};return E}function EL(t,e,n,r,o){const i=o.measure(10),a=o.measure(50),s=lo(.1,.99);let l=!1;function c(){return!(l||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function u(h){if(!c())return;const g=t.reachedMin(e.get())?"min":"max",m=et(t[g]-e.get()),b=n.get()-e.get(),y=s.constrain(m/a);n.subtract(b*y),!h&&et(b)<i&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(h){l=!h}return{shouldConstrain:c,constrain:u,toggleActive:d}}function IL(t,e,n,r,o){const i=lo(-e+t,0),a=d(),s=u(),l=f();function c(g,m){return ha(g,m)<=1}function u(){const g=a[0],m=On(a),b=a.lastIndexOf(g),y=a.indexOf(m)+1;return lo(b,y)}function d(){return n.map((g,m)=>{const{min:b,max:y}=i,w=i.constrain(g),C=!m,S=kg(n,m);return C?y:S||c(b,w)?b:c(y,w)?y:w}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(e<=t+o)return[i.max];if(r==="keepSnaps")return a;const{min:g,max:m}=s;return a.slice(g,m)}return{snapsContained:l,scrollContainLimit:s}}function AL(t,e,n){const r=e[0],o=n?r-t:On(e);return{limit:lo(o,r)}}function TL(t,e,n,r){const i=e.min+.1,a=e.max+.1,{reachedMin:s,reachedMax:l}=lo(i,a);function c(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function u(f){if(!c(f))return;const h=t*(f*-1);r.forEach(g=>g.add(h))}return{loop:u}}function OL(t){const{max:e,length:n}=t;function r(i){const a=i-e;return n?a/-n:0}return{get:r}}function NL(t,e,n,r,o){const{startEdge:i,endEdge:a}=t,{groupSlides:s}=o,l=d().map(e.measure),c=f(),u=h();function d(){return s(r).map(m=>On(m)[a]-m[0][i]).map(et)}function f(){return r.map(m=>n[i]-m[i]).map(m=>-et(m))}function h(){return s(c).map(m=>m[0]).map((m,b)=>m+l[b])}return{snaps:c,snapsAligned:u}}function RL(t,e,n,r,o,i){const{groupSlides:a}=o,{min:s,max:l}=r,c=u();function u(){const f=a(i),h=!t||e==="keepSnaps";return n.length===1?[i]:h?f:f.slice(s,l).map((g,m,b)=>{const y=!m,w=kg(b,m);if(y){const C=On(b[0])+1;return ry(C)}if(w){const C=za(i)-On(b)[0]+1;return ry(C,On(b)[0])}return g})}return{slideRegistry:c}}function _L(t,e,n,r,o){const{reachedAny:i,removeOffset:a,constrain:s}=r;function l(g){return g.concat().sort((m,b)=>et(m)-et(b))[0]}function c(g){const m=t?a(g):s(g),b=e.map((w,C)=>({diff:u(w-m,0),index:C})).sort((w,C)=>et(w.diff)-et(C.diff)),{index:y}=b[0];return{index:y,distance:m}}function u(g,m){const b=[g,g+n,g-n];if(!t)return g;if(!m)return l(b);const y=b.filter(w=>Dg(w)===m);return y.length?l(y):On(b)-n}function d(g,m){const b=e[g]-o.get(),y=u(b,m);return{index:g,distance:y}}function f(g,m){const b=o.get()+g,{index:y,distance:w}=c(b),C=!t&&i(b);if(!m||C)return{index:y,distance:g};const S=e[y]-w,E=g+u(S,0);return{index:y,distance:E}}return{byDistance:f,byIndex:d,shortcut:u}}function PL(t,e,n,r,o,i,a){function s(d){const f=d.distance,h=d.index!==e.get();i.add(f),f&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),h&&(n.set(e.get()),e.set(d.index),a.emit("select"))}function l(d,f){const h=o.byDistance(d,f);s(h)}function c(d,f){const h=e.clone().set(d),g=o.byIndex(h.get(),f);s(g)}return{distance:l,index:c}}function ML(t,e,n,r,o,i,a,s){const l={passive:!0,capture:!0};let c=0;function u(h){if(!s)return;function g(m){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;const w=n.findIndex(C=>C.includes(m));Mg(w)&&(o.useDuration(0),r.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",d,!1),e.forEach((m,b)=>{i.add(m,"focus",y=>{(lc(s)||s(h,y))&&g(b)},l)})}function d(h){h.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function na(t){let e=t;function n(){return e}function r(l){e=a(l)}function o(l){e+=a(l)}function i(l){e-=a(l)}function a(l){return Mg(l)?l:l.get()}return{get:n,set:r,add:o,subtract:i}}function vE(t,e){const n=t.scroll==="x"?a:s,r=e.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const h=pL(t.direction(f));h!==o&&(r.transform=n(h),o=h)}function c(f){i=!f}function u(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function DL(t,e,n,r,o,i,a,s,l){const u=ya(o),d=ya(o).reverse(),f=y().concat(w());function h(I,_){return I.reduce((P,W)=>P-o[W],_)}function g(I,_){return I.reduce((P,W)=>h(P,_)>0?P.concat([W]):P,[])}function m(I){return i.map((_,P)=>({start:_-r[P]+.5+I,end:_+e-.5+I}))}function b(I,_,P){const W=m(_);return I.map(A=>{const D=P?0:-n,N=P?n:0,F=P?"end":"start",j=W[A][F];return{index:A,loopPoint:j,slideLocation:na(-1),translate:vE(t,l[A]),target:()=>s.get()>j?D:N}})}function y(){const I=a[0],_=g(d,I);return b(_,n,!1)}function w(){const I=e-a[0]-1,_=g(u,I);return b(_,-n,!0)}function C(){return f.every(({index:I})=>{const _=u.filter(P=>P!==I);return h(_,e)<=.1})}function S(){f.forEach(I=>{const{target:_,translate:P,slideLocation:W}=I,A=_();A!==W.get()&&(P.to(A),W.set(A))})}function E(){f.forEach(I=>I.translate.clear())}return{canLoop:C,clear:E,loop:S,loopPoints:f}}function kL(t,e,n){let r,o=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(u=>{o||(lc(n)||n(l,u))&&c(u)}),r.observe(t,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:i,destroy:a}}function jL(t,e,n,r){const o={};let i=null,a=null,s,l=!1;function c(){s=new IntersectionObserver(g=>{l||(g.forEach(m=>{const b=e.indexOf(m.target);o[b]=m}),i=null,a=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(g=>s.observe(g))}function u(){s&&s.disconnect(),l=!0}function d(g){return xa(o).reduce((m,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(g&&w||!g&&!w)&&m.push(y),m},[])}function f(g=!0){if(g&&i)return i;if(!g&&a)return a;const m=d(g);return g&&(i=m),g||(a=m),m}return{init:c,destroy:u,get:f}}function LL(t,e,n,r,o,i){const{measureSize:a,startEdge:s,endEdge:l}=t,c=n[0]&&o,u=g(),d=m(),f=n.map(a),h=b();function g(){if(!c)return 0;const w=n[0];return et(e[s]-w[s])}function m(){if(!c)return 0;const w=i.getComputedStyle(On(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function b(){return n.map((w,C,S)=>{const E=!C,T=kg(S,C);return E?f[C]+u:T?f[C]+d:S[C+1][s]-w[s]}).map(et)}return{slideSizes:f,slideSizesWithGaps:h,startGap:u,endGap:d}}function BL(t,e,n,r,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:d}=t,f=Mg(n);function h(y,w){return ya(y).filter(C=>C%w===0).map(C=>y.slice(C,C+w))}function g(y){return y.length?ya(y).reduce((w,C,S)=>{const E=On(w)||0,T=E===0,I=C===za(y),_=o[c]-i[E][c],P=o[c]-i[C][u],W=!r&&T?d(a):0,A=!r&&I?d(s):0,D=et(P-A-(_+W));return S&&D>e+l&&w.push(C),I&&w.push(y.length),w},[]).map((w,C,S)=>{const E=Math.max(S[C-1]||0);return y.slice(E,w)}):[]}function m(y){return f?h(y,n):g(y)}return{groupSlides:m}}function FL(t,e,n,r,o,i,a){const{align:s,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:h,dragThreshold:g,inViewThreshold:m,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:C,watchSlides:S,watchDrag:E,watchFocus:T}=i,I=2,_=xL(),P=_.measure(e),W=n.map(_.measure),A=bL(l,c),D=A.measureSize(P),N=wL(D),F=mL(s,D),j=!d&&!!w,M=d||!!w,{slideSizes:V,slideSizesWithGaps:k,startGap:H,endGap:U}=LL(A,P,W,n,M,o),ee=BL(A,D,b,d,P,W,H,U,I),{snaps:G,snapsAligned:X}=NL(A,F,P,W,ee),Z=-On(G)+On(k),{snapsContained:Y,scrollContainLimit:ne}=IL(D,Z,X,w,I),z=j?Y:X,{limit:K}=AL(Z,z,d),ae=bE(za(z),u,d),ie=ae.clone(),re=ya(n),q=({dragHandler:qe,scrollBody:Vt,scrollBounds:St,options:{loop:at}})=>{at||St.constrain(qe.pointerDown()),Vt.seek()},le=({scrollBody:qe,translate:Vt,location:St,offsetLocation:at,previousLocation:Ft,scrollLooper:Ht,slideLooper:Gn,dragHandler:Zt,animation:Jt,eventHandler:te,scrollBounds:de,options:{loop:ce}},ue)=>{const Ae=qe.settled(),ve=!de.shouldConstrain(),ze=ce?Ae:Ae&&ve,mt=ze&&!Zt.pointerDown();mt&&Jt.stop();const st=St.get()*ue+Ft.get()*(1-ue);at.set(st),ce&&(Ht.loop(qe.direction()),Gn.loop()),Vt.to(at.get()),mt&&te.emit("settle"),ze||te.emit("scroll")},$=gL(r,o,()=>q(_t),qe=>le(_t,qe)),se=.68,Ie=z[ae.get()],Oe=na(Ie),Ve=na(Ie),Ne=na(Ie),_e=na(Ie),it=SL(Oe,Ne,Ve,_e,f,se),Je=_L(d,z,Z,K,_e),Ye=PL($,ae,ie,it,Je,_e,a),$e=OL(K),Ue=wa(),wt=jL(e,n,a,m),{slideRegistry:tt}=RL(j,w,z,ne,ee,re),Ct=ML(t,n,tt,Ye,it,Ue,a,T),_t={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:P,slideRects:W,animation:$,axis:A,dragHandler:vL(A,t,r,o,_e,yL(A,o),Oe,$,Ye,it,Je,ae,a,N,h,g,y,se,E),eventStore:Ue,percentOfView:N,index:ae,indexPrevious:ie,limit:K,location:Oe,offsetLocation:Ne,previousLocation:Ve,options:i,resizeHandler:CL(e,a,o,n,A,C,_),scrollBody:it,scrollBounds:EL(K,Ne,_e,it,N),scrollLooper:TL(Z,K,Ne,[Oe,Ne,Ve,_e]),scrollProgress:$e,scrollSnapList:z.map($e.get),scrollSnaps:z,scrollTarget:Je,scrollTo:Ye,slideLooper:DL(A,D,Z,V,k,G,z,Ne,n),slideFocus:Ct,slidesHandler:kL(e,a,S),slidesInView:wt,slideIndexes:re,slideRegistry:tt,slidesToScroll:ee,target:_e,translate:vE(A,e)};return _t}function GL(){let t={},e;function n(c){e=c}function r(c){return t[c]||[]}function o(c){return r(c).forEach(u=>u(e,c)),l}function i(c,u){return t[c]=r(c).concat([u]),l}function a(c,u){return t[c]=r(c).filter(d=>d!==u),l}function s(){t={}}const l={init:n,emit:o,off:a,on:i,clear:s};return l}const $L={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function WL(t){function e(i,a){return gE(i,a||{})}function n(i){const a=i.breakpoints||{},s=xa(a).filter(l=>t.matchMedia(l).matches).map(l=>a[l]).reduce((l,c)=>e(l,c),{});return e(i,s)}function r(i){return i.map(a=>xa(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function VL(t){let e=[];function n(i,a){return e=a.filter(({options:s})=>t.optionsAtMedia(s).active!==!1),e.forEach(s=>s.init(i,t)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){e=e.filter(i=>i.destroy())}return{init:n,destroy:r}}function wl(t,e,n){const r=t.ownerDocument,o=r.defaultView,i=WL(o),a=VL(i),s=wa(),l=GL(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:h,emit:g}=l,m=A;let b=!1,y,w=c($L,wl.globalOptions),C=c(w),S=[],E,T,I;function _(){const{container:re,slides:q}=C;T=(Qp(re)?t.querySelector(re):re)||t.children[0];const $=Qp(q)?T.querySelectorAll(q):q;I=[].slice.call($||T.children)}function P(re){const q=FL(t,T,I,r,o,re,l);if(re.loop&&!q.slideLooper.canLoop()){const le=Object.assign({},re,{loop:!1});return P(le)}return q}function W(re,q){b||(w=c(w,re),C=u(w),S=q||S,_(),y=P(C),d([w,...S.map(({options:le})=>le)]).forEach(le=>s.add(le,"change",A)),C.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(ie),y.eventHandler.init(ie),y.resizeHandler.init(ie),y.slidesHandler.init(ie),y.options.loop&&y.slideLooper.loop(),T.offsetParent&&I.length&&y.dragHandler.init(ie),E=a.init(ie,S)))}function A(re,q){const le=ee();D(),W(c({startIndex:le},re),q),l.emit("reInit")}function D(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),s.clear()}function N(){b||(b=!0,s.clear(),D(),l.emit("destroy"),l.clear())}function F(re,q,le){!C.active||b||(y.scrollBody.useBaseFriction().useDuration(q===!0?0:C.duration),y.scrollTo.index(re,le||0))}function j(re){const q=y.index.add(1).get();F(q,re,-1)}function M(re){const q=y.index.add(-1).get();F(q,re,1)}function V(){return y.index.add(1).get()!==ee()}function k(){return y.index.add(-1).get()!==ee()}function H(){return y.scrollSnapList}function U(){return y.scrollProgress.get(y.offsetLocation.get())}function ee(){return y.index.get()}function G(){return y.indexPrevious.get()}function X(){return y.slidesInView.get()}function Z(){return y.slidesInView.get(!1)}function Y(){return E}function ne(){return y}function z(){return t}function K(){return T}function ae(){return I}const ie={canScrollNext:V,canScrollPrev:k,containerNode:K,internalEngine:ne,destroy:N,off:h,on:f,emit:g,plugins:Y,previousScrollSnap:G,reInit:m,rootNode:z,scrollNext:j,scrollPrev:M,scrollProgress:U,scrollSnapList:H,scrollTo:F,selectedScrollSnap:ee,slideNodes:ae,slidesInView:X,slidesNotInView:Z};return W(e,n),setTimeout(()=>l.emit("init"),0),ie}wl.globalOptions=void 0;function jg(t={},e=[]){const n=O.useRef(t),r=O.useRef(e),[o,i]=O.useState(),[a,s]=O.useState(),l=O.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return O.useEffect(()=>{Pg(n.current,t)||(n.current=t,l())},[t,l]),O.useEffect(()=>{fL(r.current,e)||(r.current=e,l())},[e,l]),O.useEffect(()=>{if(dL()&&a){wl.globalOptions=jg.globalOptions;const c=wl(a,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[a,i]),[s,o]}jg.globalOptions=void 0;const yE=v.createContext(null);function cc(){const t=v.useContext(yE);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function HL({orientation:t="horizontal",opts:e,setApi:n,plugins:r,className:o,children:i,...a}){const[s,l]=jg({...e,axis:t==="horizontal"?"x":"y"},r),[c,u]=v.useState(!1),[d,f]=v.useState(!1),h=v.useCallback(y=>{y&&(u(y.canScrollPrev()),f(y.canScrollNext()))},[]),g=v.useCallback(()=>{l?.scrollPrev()},[l]),m=v.useCallback(()=>{l?.scrollNext()},[l]),b=v.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),g()):y.key==="ArrowRight"&&(y.preventDefault(),m())},[g,m]);return v.useEffect(()=>{!l||!n||n(l)},[l,n]),v.useEffect(()=>{if(l)return h(l),l.on("reInit",h),l.on("select",h),()=>{l?.off("select",h)}},[l,h]),p.jsx(yE.Provider,{value:{carouselRef:s,api:l,opts:e,orientation:t||(e?.axis==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:m,canScrollPrev:c,canScrollNext:d},children:p.jsx("div",{onKeyDownCapture:b,className:L("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...a,children:i})})}function qL({className:t,...e}){const{carouselRef:n,orientation:r}=cc();return p.jsx("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:p.jsx("div",{className:L("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...e})})}function zL({className:t,...e}){const{orientation:n}=cc();return p.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:L("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",t),...e})}function XL({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollPrev:i,canScrollPrev:a}=cc();return p.jsxs(nn,{"data-slot":"carousel-previous",variant:e,size:n,className:L("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:i,...r,children:[p.jsx(iM,{}),p.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function YL({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollNext:i,canScrollNext:a}=cc();return p.jsxs(nn,{"data-slot":"carousel-next",variant:e,size:n,className:L("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:i,...r,children:[p.jsx(sM,{}),p.jsx("span",{className:"sr-only",children:"Next slide"})]})}var rd,oy;function Dn(){if(oy)return rd;oy=1;var t=Array.isArray;return rd=t,rd}var od,iy;function xE(){if(iy)return od;iy=1;var t=typeof hn=="object"&&hn&&hn.Object===Object&&hn;return od=t,od}var id,ay;function ir(){if(ay)return id;ay=1;var t=xE(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return id=n,id}var ad,sy;function Xa(){if(sy)return ad;sy=1;var t=ir(),e=t.Symbol;return ad=e,ad}var sd,ly;function UL(){if(ly)return sd;ly=1;var t=Xa(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[o]=l:delete a[o]),u}return sd=i,sd}var ld,cy;function ZL(){if(cy)return ld;cy=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return ld=n,ld}var cd,uy;function wo(){if(uy)return cd;uy=1;var t=Xa(),e=UL(),n=ZL(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?e(s):n(s)}return cd=a,cd}var ud,dy;function Co(){if(dy)return ud;dy=1;function t(e){return e!=null&&typeof e=="object"}return ud=t,ud}var dd,fy;function Ya(){if(fy)return dd;fy=1;var t=wo(),e=Co(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return dd=r,dd}var fd,hy;function Lg(){if(hy)return fd;hy=1;var t=Dn(),e=Ya(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(t(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||e(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return fd=o,fd}var hd,py;function Vr(){if(py)return hd;py=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return hd=t,hd}var pd,my;function Bg(){if(my)return pd;my=1;var t=wo(),e=Vr(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!e(s))return!1;var l=t(s);return l==r||l==o||l==n||l==i}return pd=a,pd}var md,gy;function JL(){if(gy)return md;gy=1;var t=ir(),e=t["__core-js_shared__"];return md=e,md}var gd,by;function KL(){if(by)return gd;by=1;var t=JL(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return gd=n,gd}var bd,vy;function wE(){if(vy)return bd;vy=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return bd=n,bd}var vd,yy;function QL(){if(yy)return vd;yy=1;var t=Bg(),e=KL(),n=Vr(),r=wE(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||e(f))return!1;var h=t(f)?u:i;return h.test(r(f))}return vd=d,vd}var yd,xy;function eB(){if(xy)return yd;xy=1;function t(e,n){return e?.[n]}return yd=t,yd}var xd,wy;function So(){if(wy)return xd;wy=1;var t=QL(),e=eB();function n(r,o){var i=e(r,o);return t(i)?i:void 0}return xd=n,xd}var wd,Cy;function uc(){if(Cy)return wd;Cy=1;var t=So(),e=t(Object,"create");return wd=e,wd}var Cd,Sy;function tB(){if(Sy)return Cd;Sy=1;var t=uc();function e(){this.__data__=t?t(null):{},this.size=0}return Cd=e,Cd}var Sd,Ey;function nB(){if(Ey)return Sd;Ey=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Sd=t,Sd}var Ed,Iy;function rB(){if(Iy)return Ed;Iy=1;var t=uc(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(t){var s=a[i];return s===e?void 0:s}return r.call(a,i)?a[i]:void 0}return Ed=o,Ed}var Id,Ay;function oB(){if(Ay)return Id;Ay=1;var t=uc(),e=Object.prototype,n=e.hasOwnProperty;function r(o){var i=this.__data__;return t?i[o]!==void 0:n.call(i,o)}return Id=r,Id}var Ad,Ty;function iB(){if(Ty)return Ad;Ty=1;var t=uc(),e="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=t&&o===void 0?e:o,this}return Ad=n,Ad}var Td,Oy;function aB(){if(Oy)return Td;Oy=1;var t=tB(),e=nB(),n=rB(),r=oB(),o=iB();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Td=i,Td}var Od,Ny;function sB(){if(Ny)return Od;Ny=1;function t(){this.__data__=[],this.size=0}return Od=t,Od}var Nd,Ry;function Fg(){if(Ry)return Nd;Ry=1;function t(e,n){return e===n||e!==e&&n!==n}return Nd=t,Nd}var Rd,_y;function dc(){if(_y)return Rd;_y=1;var t=Fg();function e(n,r){for(var o=n.length;o--;)if(t(n[o][0],r))return o;return-1}return Rd=e,Rd}var _d,Py;function lB(){if(Py)return _d;Py=1;var t=dc(),e=Array.prototype,n=e.splice;function r(o){var i=this.__data__,a=t(i,o);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():n.call(i,a,1),--this.size,!0}return _d=r,_d}var Pd,My;function cB(){if(My)return Pd;My=1;var t=dc();function e(n){var r=this.__data__,o=t(r,n);return o<0?void 0:r[o][1]}return Pd=e,Pd}var Md,Dy;function uB(){if(Dy)return Md;Dy=1;var t=dc();function e(n){return t(this.__data__,n)>-1}return Md=e,Md}var Dd,ky;function dB(){if(ky)return Dd;ky=1;var t=dc();function e(n,r){var o=this.__data__,i=t(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return Dd=e,Dd}var kd,jy;function fc(){if(jy)return kd;jy=1;var t=sB(),e=lB(),n=cB(),r=uB(),o=dB();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,kd=i,kd}var jd,Ly;function Gg(){if(Ly)return jd;Ly=1;var t=So(),e=ir(),n=t(e,"Map");return jd=n,jd}var Ld,By;function fB(){if(By)return Ld;By=1;var t=aB(),e=fc(),n=Gg();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return Ld=r,Ld}var Bd,Fy;function hB(){if(Fy)return Bd;Fy=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return Bd=t,Bd}var Fd,Gy;function hc(){if(Gy)return Fd;Gy=1;var t=hB();function e(n,r){var o=n.__data__;return t(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Fd=e,Fd}var Gd,$y;function pB(){if($y)return Gd;$y=1;var t=hc();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return Gd=e,Gd}var $d,Wy;function mB(){if(Wy)return $d;Wy=1;var t=hc();function e(n){return t(this,n).get(n)}return $d=e,$d}var Wd,Vy;function gB(){if(Vy)return Wd;Vy=1;var t=hc();function e(n){return t(this,n).has(n)}return Wd=e,Wd}var Vd,Hy;function bB(){if(Hy)return Vd;Hy=1;var t=hc();function e(n,r){var o=t(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return Vd=e,Vd}var Hd,qy;function $g(){if(qy)return Hd;qy=1;var t=fB(),e=pB(),n=mB(),r=gB(),o=bB();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Hd=i,Hd}var qd,zy;function vB(){if(zy)return qd;zy=1;var t=$g(),e="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var i=function(){var a=arguments,s=o?o.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var c=r.apply(this,a);return i.cache=l.set(s,c)||l,c};return i.cache=new(n.Cache||t),i}return n.Cache=t,qd=n,qd}var zd,Xy;function yB(){if(Xy)return zd;Xy=1;var t=vB(),e=500;function n(r){var o=t(r,function(a){return i.size===e&&i.clear(),a}),i=o.cache;return o}return zd=n,zd}var Xd,Yy;function xB(){if(Yy)return Xd;Yy=1;var t=yB(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(e,function(a,s,l,c){i.push(l?c.replace(n,"$1"):s||a)}),i});return Xd=r,Xd}var Yd,Uy;function CE(){if(Uy)return Yd;Uy=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=n(e[r],r,e);return i}return Yd=t,Yd}var Ud,Zy;function wB(){if(Zy)return Ud;Zy=1;var t=Xa(),e=CE(),n=Dn(),r=Ya(),o=t?t.prototype:void 0,i=o?o.toString:void 0;function a(s){if(typeof s=="string")return s;if(n(s))return e(s,a)+"";if(r(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Ud=a,Ud}var Zd,Jy;function SE(){if(Jy)return Zd;Jy=1;var t=wB();function e(n){return n==null?"":t(n)}return Zd=e,Zd}var Jd,Ky;function EE(){if(Ky)return Jd;Ky=1;var t=Dn(),e=Lg(),n=xB(),r=SE();function o(i,a){return t(i)?i:e(i,a)?[i]:n(r(i))}return Jd=o,Jd}var Kd,Qy;function pc(){if(Qy)return Kd;Qy=1;var t=Ya();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Kd=e,Kd}var Qd,e0;function Wg(){if(e0)return Qd;e0=1;var t=EE(),e=pc();function n(r,o){o=t(o,r);for(var i=0,a=o.length;r!=null&&i<a;)r=r[e(o[i++])];return i&&i==a?r:void 0}return Qd=n,Qd}var ef,t0;function IE(){if(t0)return ef;t0=1;var t=Wg();function e(n,r,o){var i=n==null?void 0:t(n,r);return i===void 0?o:i}return ef=e,ef}IE();var tf,n0;function CB(){if(n0)return tf;n0=1;function t(e){return e==null}return tf=t,tf}var SB=CB();const EB=gn(SB);var nf,r0;function IB(){if(r0)return nf;r0=1;var t=wo(),e=Dn(),n=Co(),r="[object String]";function o(i){return typeof i=="string"||!e(i)&&n(i)&&t(i)==r}return nf=o,nf}var AB=IB();const AE=gn(AB);var TB=Bg();const Cl=gn(TB);var OB=Vr();const TE=gn(OB);var Ds={exports:{}},Le={};var o0;function NB(){if(o0)return Le;o0=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function m(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case t:switch(b=b.type,b){case n:case o:case r:case c:case u:return b;default:switch(b=b&&b.$$typeof,b){case s:case a:case l:case f:case d:case i:return b;default:return y}}case e:return y}}}return Le.ContextConsumer=a,Le.ContextProvider=i,Le.Element=t,Le.ForwardRef=l,Le.Fragment=n,Le.Lazy=f,Le.Memo=d,Le.Portal=e,Le.Profiler=o,Le.StrictMode=r,Le.Suspense=c,Le.SuspenseList=u,Le.isAsyncMode=function(){return!1},Le.isConcurrentMode=function(){return!1},Le.isContextConsumer=function(b){return m(b)===a},Le.isContextProvider=function(b){return m(b)===i},Le.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Le.isForwardRef=function(b){return m(b)===l},Le.isFragment=function(b){return m(b)===n},Le.isLazy=function(b){return m(b)===f},Le.isMemo=function(b){return m(b)===d},Le.isPortal=function(b){return m(b)===e},Le.isProfiler=function(b){return m(b)===o},Le.isStrictMode=function(b){return m(b)===r},Le.isSuspense=function(b){return m(b)===c},Le.isSuspenseList=function(b){return m(b)===u},Le.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===c||b===u||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===d||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===g||b.getModuleId!==void 0)},Le.typeOf=m,Le}var Be={};var i0;function RB(){return i0||(i0=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,m=!1,b=!1,y=!1,w=!1,C;C=Symbol.for("react.module.reference");function S($){return!!(typeof $=="string"||typeof $=="function"||$===n||$===o||w||$===r||$===c||$===u||y||$===h||g||m||b||typeof $=="object"&&$!==null&&($.$$typeof===f||$.$$typeof===d||$.$$typeof===i||$.$$typeof===a||$.$$typeof===l||$.$$typeof===C||$.getModuleId!==void 0))}function E($){if(typeof $=="object"&&$!==null){var se=$.$$typeof;switch(se){case t:var Ie=$.type;switch(Ie){case n:case o:case r:case c:case u:return Ie;default:var Oe=Ie&&Ie.$$typeof;switch(Oe){case s:case a:case l:case f:case d:case i:return Oe;default:return se}}case e:return se}}}var T=a,I=i,_=t,P=l,W=n,A=f,D=d,N=e,F=o,j=r,M=c,V=u,k=!1,H=!1;function U($){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee($){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G($){return E($)===a}function X($){return E($)===i}function Z($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function Y($){return E($)===l}function ne($){return E($)===n}function z($){return E($)===f}function K($){return E($)===d}function ae($){return E($)===e}function ie($){return E($)===o}function re($){return E($)===r}function q($){return E($)===c}function le($){return E($)===u}Be.ContextConsumer=T,Be.ContextProvider=I,Be.Element=_,Be.ForwardRef=P,Be.Fragment=W,Be.Lazy=A,Be.Memo=D,Be.Portal=N,Be.Profiler=F,Be.StrictMode=j,Be.Suspense=M,Be.SuspenseList=V,Be.isAsyncMode=U,Be.isConcurrentMode=ee,Be.isContextConsumer=G,Be.isContextProvider=X,Be.isElement=Z,Be.isForwardRef=Y,Be.isFragment=ne,Be.isLazy=z,Be.isMemo=K,Be.isPortal=ae,Be.isProfiler=ie,Be.isStrictMode=re,Be.isSuspense=q,Be.isSuspenseList=le,Be.isValidElementType=S,Be.typeOf=E})()),Be}var a0;function _B(){return a0||(a0=1,process.env.NODE_ENV==="production"?Ds.exports=NB():Ds.exports=RB()),Ds.exports}_B();var rf,s0;function OE(){if(s0)return rf;s0=1;var t=wo(),e=Co(),n="[object Number]";function r(o){return typeof o=="number"||e(o)&&t(o)==n}return rf=r,rf}var of,l0;function PB(){if(l0)return of;l0=1;var t=OE();function e(n){return t(n)&&n!=+n}return of=e,of}var MB=PB();const DB=gn(MB);var kB=OE();const jB=gn(kB);var ks=function(e){return AE(e)&&e.indexOf("%")===e.length-1},Cn=function(e){return jB(e)&&!DB(e)},Sl=function(e){return Cn(e)||AE(e)};function tm(t){"@babel/helpers - typeof";return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tm(t)}var LB=["viewBox","children"],BB=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c0=["points","pathLength"],af={svg:LB,polygon:c0,polyline:c0},NE=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],FB=function(e,n,r){return function(o){return e(n,r,o),null}},GB=function(e,n,r){if(!TE(e)||tm(e)!=="object")return null;var o=null;return Object.keys(e).forEach(function(i){var a=e[i];NE.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=FB(a,n,r))}),o},$B=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},WB=function(e,n,r,o){var i,a=(i=af?.[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!Cl(e)&&(o&&a.includes(n)||BB.includes(n))||NE.includes(n)},RE=function(e,n,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var o=e;if(O.isValidElement(e)&&(o=e.props),!TE(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;WB((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},VB=["children","width","height","viewBox","className","style","title","desc"];function nm(){return nm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nm.apply(this,arguments)}function HB(t,e){if(t==null)return{};var n=qB(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qB(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function zB(t){var e=t.children,n=t.width,r=t.height,o=t.viewBox,i=t.className,a=t.style,s=t.title,l=t.desc,c=HB(t,VB),u=o||{width:n,height:r,x:0,y:0},d=wr("recharts-surface",i);return O.createElement("svg",nm({},RE(c,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),e)}var XB=process.env.NODE_ENV!=="production",sl=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(XB&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!e))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,function(){return o[a++]}))}},sf,u0;function YB(){if(u0)return sf;u0=1;function t(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+n];return a}return sf=t,sf}var lf,d0;function UB(){if(d0)return lf;d0=1;var t=YB();function e(n,r,o){var i=n.length;return o=o===void 0?i:o,!r&&o>=i?n:t(n,r,o)}return lf=e,lf}var cf,f0;function _E(){if(f0)return cf;f0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+t+o+i+"]");function l(c){return s.test(c)}return cf=l,cf}var uf,h0;function ZB(){if(h0)return uf;h0=1;function t(e){return e.split("")}return uf=t,uf}var df,p0;function JB(){if(p0)return df;p0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="["+t+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+t+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",g=c+"?",m="["+i+"]?",b="(?:"+h+"(?:"+[u,d,f].join("|")+")"+m+g+")*",y=m+g+b,w="(?:"+[u+s+"?",s,d,f,a].join("|")+")",C=RegExp(l+"(?="+l+")|"+w+y,"g");function S(E){return E.match(C)||[]}return df=S,df}var ff,m0;function KB(){if(m0)return ff;m0=1;var t=ZB(),e=_E(),n=JB();function r(o){return e(o)?n(o):t(o)}return ff=r,ff}var hf,g0;function QB(){if(g0)return hf;g0=1;var t=UB(),e=_E(),n=KB(),r=SE();function o(i){return function(a){a=r(a);var s=e(a)?n(a):void 0,l=s?s[0]:a.charAt(0),c=s?t(s,1).join(""):a.slice(1);return l[i]()+c}}return hf=o,hf}var pf,b0;function e4(){if(b0)return pf;b0=1;var t=QB(),e=t("toUpperCase");return pf=e,pf}var t4=e4();const PE=gn(t4);function js(t){return function(){return t}}const ME=Math.cos,El=Math.sin,kn=Math.sqrt,Il=Math.PI,mc=2*Il,rm=Math.PI,om=2*rm,oo=1e-6,n4=om-oo;function DE(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function r4(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return DE;const n=10**e;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class o4{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?DE:r4(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,o){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(e,n,r,o,i,a){this._append`C${+e},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,r,o,i){if(e=+e,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-e,c=o-n,u=a-e,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>oo)if(!(Math.abs(d*l-c*u)>oo)||!i)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-a,g=o-s,m=l*l+c*c,b=h*h+g*g,y=Math.sqrt(m),w=Math.sqrt(f),C=i*Math.tan((rm-Math.acos((m+f-b)/(2*y*w)))/2),S=C/w,E=C/y;Math.abs(S-1)>oo&&this._append`L${e+S*u},${n+S*d}`,this._append`A${i},${i},0,0,${+(d*h>u*g)},${this._x1=e+E*l},${this._y1=n+E*c}`}}arc(e,n,r,o,i,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=e+s,u=n+l,d=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>oo||Math.abs(this._y1-u)>oo)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%om+om),f>n4?this._append`A${r},${r},0,1,${d},${e-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>oo&&this._append`A${r},${r},0,${+(f>=rm)},${d},${this._x1=e+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(e,n,r,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function i4(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new o4(e)}const Vg={draw(t,e){const n=kn(e/Il);t.moveTo(n,0),t.arc(0,0,n,0,mc)}},a4={draw(t,e){const n=kn(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},kE=kn(1/3),s4=kE*2,l4={draw(t,e){const n=kn(e/s4),r=n*kE;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},c4={draw(t,e){const n=kn(e),r=-n/2;t.rect(r,r,n,n)}},u4=.8908130915292852,jE=El(Il/10)/El(7*Il/10),d4=El(mc/10)*jE,f4=-ME(mc/10)*jE,h4={draw(t,e){const n=kn(e*u4),r=d4*n,o=f4*n;t.moveTo(0,-n),t.lineTo(r,o);for(let i=1;i<5;++i){const a=mc*i/5,s=ME(a),l=El(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*o,l*r+s*o)}t.closePath()}},mf=kn(3),p4={draw(t,e){const n=-kn(e/(mf*3));t.moveTo(0,n*2),t.lineTo(-mf*n,-n),t.lineTo(mf*n,-n),t.closePath()}},an=-.5,sn=kn(3)/2,im=1/kn(12),m4=(im/2+1)*3,g4={draw(t,e){const n=kn(e/m4),r=n/2,o=n*im,i=r,a=n*im+n,s=-i,l=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,l),t.lineTo(an*r-sn*o,sn*r+an*o),t.lineTo(an*i-sn*a,sn*i+an*a),t.lineTo(an*s-sn*l,sn*s+an*l),t.lineTo(an*r+sn*o,an*o-sn*r),t.lineTo(an*i+sn*a,an*a-sn*i),t.lineTo(an*s+sn*l,an*l-sn*s),t.closePath()}};function b4(t,e){let n=null,r=i4(o);t=typeof t=="function"?t:js(t||Vg),e=typeof e=="function"?e:js(e===void 0?64:+e);function o(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(t=typeof i=="function"?i:js(i),o):t},o.size=function(i){return arguments.length?(e=typeof i=="function"?i:js(+i),o):e},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function Ca(t){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(t)}var v4=["type","size","sizeType"];function am(){return am=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},am.apply(this,arguments)}function v0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function y0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v0(Object(n),!0).forEach(function(r){y4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function y4(t,e,n){return e=x4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x4(t){var e=w4(t,"string");return Ca(e)=="symbol"?e:e+""}function w4(t,e){if(Ca(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function C4(t,e){if(t==null)return{};var n=S4(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function S4(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var LE={symbolCircle:Vg,symbolCross:a4,symbolDiamond:l4,symbolSquare:c4,symbolStar:h4,symbolTriangle:p4,symbolWye:g4},E4=Math.PI/180,I4=function(e){var n="symbol".concat(PE(e));return LE[n]||Vg},A4=function(e,n,r){if(n==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var o=18*E4;return 1.25*e*e*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},T4=function(e,n){LE["symbol".concat(PE(e))]=n},BE=function(e){var n=e.type,r=n===void 0?"circle":n,o=e.size,i=o===void 0?64:o,a=e.sizeType,s=a===void 0?"area":a,l=C4(e,v4),c=y0(y0({},l),{},{type:r,size:i,sizeType:s}),u=function(){var b=I4(r),y=b4().type(b).size(A4(i,s,r));return y()},d=c.className,f=c.cx,h=c.cy,g=RE(c,!0);return f===+f&&h===+h&&i===+i?O.createElement("path",am({},g,{className:wr("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(h,")"),d:u()})):null};BE.registerSymbol=T4;function ui(t){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(t)}function sm(){return sm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sm.apply(this,arguments)}function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function O4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Sa(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function N4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,GE(r.key),r)}}function _4(t,e,n){return e&&R4(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function P4(t,e,n){return e=Al(e),M4(t,FE()?Reflect.construct(e,n||[],Al(t).constructor):e.apply(t,n))}function M4(t,e){if(e&&(ui(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D4(t)}function D4(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FE=function(){return!!t})()}function Al(t){return Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Al(t)}function k4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lm(t,e)}function lm(t,e){return lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lm(t,e)}function Sa(t,e,n){return e=GE(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GE(t){var e=j4(t,"string");return ui(e)=="symbol"?e:e+""}function j4(t,e){if(ui(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ln=32,Hg=(function(t){function e(){return N4(this,e),P4(this,e,arguments)}return k4(e,t),_4(e,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=ln/2,a=ln/6,s=ln/3,l=r.inactive?o:r.color;if(r.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:ln,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
|
|
2
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
|
|
3
|
+
H`).concat(ln,"M").concat(2*s,",").concat(i,`
|
|
4
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ln/8,"h").concat(ln,"v").concat(ln*3/4,"h").concat(-ln,"z"),className:"recharts-legend-icon"});if(O.isValidElement(r.legendIcon)){var c=O4({},r);return delete c.legendIcon,O.cloneElement(r.legendIcon,c)}return O.createElement(BE,{fill:l,cx:i,cy:i,size:ln,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,u={x:0,y:0,width:ln,height:ln},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,g){var m=h.formatter||l,b=wr(Sa(Sa({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Cl(h.value)?null:h.value;sl(!Cl(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=h.inactive?c:h.color;return O.createElement("li",sm({className:b,style:d,key:"legend-item-".concat(g)},GB(r.props,h,g)),O.createElement(zB,{width:a,height:a,viewBox:u,style:f},r.renderIcon(h)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(y,h,g):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Sa(Hg,"displayName","Legend");Sa(Hg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var gf,w0;function L4(){if(w0)return gf;w0=1;var t=fc();function e(){this.__data__=new t,this.size=0}return gf=e,gf}var bf,C0;function B4(){if(C0)return bf;C0=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return bf=t,bf}var vf,S0;function F4(){if(S0)return vf;S0=1;function t(e){return this.__data__.get(e)}return vf=t,vf}var yf,E0;function G4(){if(E0)return yf;E0=1;function t(e){return this.__data__.has(e)}return yf=t,yf}var xf,I0;function $4(){if(I0)return xf;I0=1;var t=fc(),e=Gg(),n=$g(),r=200;function o(i,a){var s=this.__data__;if(s instanceof t){var l=s.__data__;if(!e||l.length<r-1)return l.push([i,a]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(i,a),this.size=s.size,this}return xf=o,xf}var wf,A0;function $E(){if(A0)return wf;A0=1;var t=fc(),e=L4(),n=B4(),r=F4(),o=G4(),i=$4();function a(s){var l=this.__data__=new t(s);this.size=l.size}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,wf=a,wf}var Cf,T0;function W4(){if(T0)return Cf;T0=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return Cf=e,Cf}var Sf,O0;function V4(){if(O0)return Sf;O0=1;function t(e){return this.__data__.has(e)}return Sf=t,Sf}var Ef,N0;function WE(){if(N0)return Ef;N0=1;var t=$g(),e=W4(),n=V4();function r(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new t;++i<a;)this.add(o[i])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Ef=r,Ef}var If,R0;function H4(){if(R0)return If;R0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(e[r],r,e))return!0;return!1}return If=t,If}var Af,_0;function VE(){if(_0)return Af;_0=1;function t(e,n){return e.has(n)}return Af=t,Af}var Tf,P0;function HE(){if(P0)return Tf;P0=1;var t=WE(),e=H4(),n=VE(),r=1,o=2;function i(a,s,l,c,u,d){var f=l&r,h=a.length,g=s.length;if(h!=g&&!(f&&g>h))return!1;var m=d.get(a),b=d.get(s);if(m&&b)return m==s&&b==a;var y=-1,w=!0,C=l&o?new t:void 0;for(d.set(a,s),d.set(s,a);++y<h;){var S=a[y],E=s[y];if(c)var T=f?c(E,S,y,s,a,d):c(S,E,y,a,s,d);if(T!==void 0){if(T)continue;w=!1;break}if(C){if(!e(s,function(I,_){if(!n(C,_)&&(S===I||u(S,I,l,c,d)))return C.push(_)})){w=!1;break}}else if(!(S===E||u(S,E,l,c,d))){w=!1;break}}return d.delete(a),d.delete(s),w}return Tf=i,Tf}var Of,M0;function q4(){if(M0)return Of;M0=1;var t=ir(),e=t.Uint8Array;return Of=e,Of}var Nf,D0;function z4(){if(D0)return Nf;D0=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o,i){r[++n]=[i,o]}),r}return Nf=t,Nf}var Rf,k0;function qg(){if(k0)return Rf;k0=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o){r[++n]=o}),r}return Rf=t,Rf}var _f,j0;function X4(){if(j0)return _f;j0=1;var t=Xa(),e=q4(),n=Fg(),r=HE(),o=z4(),i=qg(),a=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",h="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",C=t?t.prototype:void 0,S=C?C.valueOf:void 0;function E(T,I,_,P,W,A,D){switch(_){case w:if(T.byteLength!=I.byteLength||T.byteOffset!=I.byteOffset)return!1;T=T.buffer,I=I.buffer;case y:return!(T.byteLength!=I.byteLength||!A(new e(T),new e(I)));case l:case c:case f:return n(+T,+I);case u:return T.name==I.name&&T.message==I.message;case h:case m:return T==I+"";case d:var N=o;case g:var F=P&a;if(N||(N=i),T.size!=I.size&&!F)return!1;var j=D.get(T);if(j)return j==I;P|=s,D.set(T,I);var M=r(N(T),N(I),P,W,A,D);return D.delete(T),M;case b:if(S)return S.call(T)==S.call(I)}return!1}return _f=E,_f}var Pf,L0;function qE(){if(L0)return Pf;L0=1;function t(e,n){for(var r=-1,o=n.length,i=e.length;++r<o;)e[i+r]=n[r];return e}return Pf=t,Pf}var Mf,B0;function Y4(){if(B0)return Mf;B0=1;var t=qE(),e=Dn();function n(r,o,i){var a=o(r);return e(r)?a:t(a,i(r))}return Mf=n,Mf}var Df,F0;function U4(){if(F0)return Df;F0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=0,a=[];++r<o;){var s=e[r];n(s,r,e)&&(a[i++]=s)}return a}return Df=t,Df}var kf,G0;function Z4(){if(G0)return kf;G0=1;function t(){return[]}return kf=t,kf}var jf,$0;function J4(){if($0)return jf;$0=1;var t=U4(),e=Z4(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),t(o(a),function(s){return r.call(a,s)}))}:e;return jf=i,jf}var Lf,W0;function K4(){if(W0)return Lf;W0=1;function t(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}return Lf=t,Lf}var Bf,V0;function Q4(){if(V0)return Bf;V0=1;var t=wo(),e=Co(),n="[object Arguments]";function r(o){return e(o)&&t(o)==n}return Bf=r,Bf}var Ff,H0;function zg(){if(H0)return Ff;H0=1;var t=Q4(),e=Co(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t((function(){return arguments})())?t:function(a){return e(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return Ff=i,Ff}var ra={exports:{}},Gf,q0;function eF(){if(q0)return Gf;q0=1;function t(){return!1}return Gf=t,Gf}ra.exports;var z0;function zE(){return z0||(z0=1,(function(t,e){var n=ir(),r=eF(),o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;t.exports=c})(ra,ra.exports)),ra.exports}var $f,X0;function Xg(){if(X0)return $f;X0=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o??t,!!o&&(i=="number"||i!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<o}return $f=n,$f}var Wf,Y0;function Yg(){if(Y0)return Wf;Y0=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return Wf=e,Wf}var Vf,U0;function tF(){if(U0)return Vf;U0=1;var t=wo(),e=Yg(),n=Co(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",h="[object Set]",g="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",C="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",I="[object Uint8Array]",_="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",A={};A[w]=A[C]=A[S]=A[E]=A[T]=A[I]=A[_]=A[P]=A[W]=!0,A[r]=A[o]=A[b]=A[i]=A[y]=A[a]=A[s]=A[l]=A[c]=A[u]=A[d]=A[f]=A[h]=A[g]=A[m]=!1;function D(N){return n(N)&&e(N.length)&&!!A[t(N)]}return Vf=D,Vf}var Hf,Z0;function XE(){if(Z0)return Hf;Z0=1;function t(e){return function(n){return e(n)}}return Hf=t,Hf}var oa={exports:{}};oa.exports;var J0;function nF(){return J0||(J0=1,(function(t,e){var n=xE(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,a=i&&n.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();t.exports=s})(oa,oa.exports)),oa.exports}var qf,K0;function YE(){if(K0)return qf;K0=1;var t=tF(),e=XE(),n=nF(),r=n&&n.isTypedArray,o=r?e(r):t;return qf=o,qf}var zf,Q0;function rF(){if(Q0)return zf;Q0=1;var t=K4(),e=zg(),n=Dn(),r=zE(),o=Xg(),i=YE(),a=Object.prototype,s=a.hasOwnProperty;function l(c,u){var d=n(c),f=!d&&e(c),h=!d&&!f&&r(c),g=!d&&!f&&!h&&i(c),m=d||f||h||g,b=m?t(c.length,String):[],y=b.length;for(var w in c)(u||s.call(c,w))&&!(m&&(w=="length"||h&&(w=="offset"||w=="parent")||g&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||o(w,y)))&&b.push(w);return b}return zf=l,zf}var Xf,e1;function oF(){if(e1)return Xf;e1=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||t;return n===o}return Xf=e,Xf}var Yf,t1;function iF(){if(t1)return Yf;t1=1;function t(e,n){return function(r){return e(n(r))}}return Yf=t,Yf}var Uf,n1;function aF(){if(n1)return Uf;n1=1;var t=iF(),e=t(Object.keys,Object);return Uf=e,Uf}var Zf,r1;function sF(){if(r1)return Zf;r1=1;var t=oF(),e=aF(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!t(i))return e(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return Zf=o,Zf}var Jf,o1;function gc(){if(o1)return Jf;o1=1;var t=Bg(),e=Yg();function n(r){return r!=null&&e(r.length)&&!t(r)}return Jf=n,Jf}var Kf,i1;function Ug(){if(i1)return Kf;i1=1;var t=rF(),e=sF(),n=gc();function r(o){return n(o)?t(o):e(o)}return Kf=r,Kf}var Qf,a1;function lF(){if(a1)return Qf;a1=1;var t=Y4(),e=J4(),n=Ug();function r(o){return t(o,n,e)}return Qf=r,Qf}var eh,s1;function cF(){if(s1)return eh;s1=1;var t=lF(),e=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,l,c,u){var d=s&e,f=t(i),h=f.length,g=t(a),m=g.length;if(h!=m&&!d)return!1;for(var b=h;b--;){var y=f[b];if(!(d?y in a:r.call(a,y)))return!1}var w=u.get(i),C=u.get(a);if(w&&C)return w==a&&C==i;var S=!0;u.set(i,a),u.set(a,i);for(var E=d;++b<h;){y=f[b];var T=i[y],I=a[y];if(l)var _=d?l(I,T,y,a,i,u):l(T,I,y,i,a,u);if(!(_===void 0?T===I||c(T,I,s,l,u):_)){S=!1;break}E||(E=y=="constructor")}if(S&&!E){var P=i.constructor,W=a.constructor;P!=W&&"constructor"in i&&"constructor"in a&&!(typeof P=="function"&&P instanceof P&&typeof W=="function"&&W instanceof W)&&(S=!1)}return u.delete(i),u.delete(a),S}return eh=o,eh}var th,l1;function uF(){if(l1)return th;l1=1;var t=So(),e=ir(),n=t(e,"DataView");return th=n,th}var nh,c1;function dF(){if(c1)return nh;c1=1;var t=So(),e=ir(),n=t(e,"Promise");return nh=n,nh}var rh,u1;function UE(){if(u1)return rh;u1=1;var t=So(),e=ir(),n=t(e,"Set");return rh=n,rh}var oh,d1;function fF(){if(d1)return oh;d1=1;var t=So(),e=ir(),n=t(e,"WeakMap");return oh=n,oh}var ih,f1;function hF(){if(f1)return ih;f1=1;var t=uF(),e=Gg(),n=dF(),r=UE(),o=fF(),i=wo(),a=wE(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",h=a(t),g=a(e),m=a(n),b=a(r),y=a(o),w=i;return(t&&w(new t(new ArrayBuffer(1)))!=f||e&&w(new e)!=s||n&&w(n.resolve())!=c||r&&w(new r)!=u||o&&w(new o)!=d)&&(w=function(C){var S=i(C),E=S==l?C.constructor:void 0,T=E?a(E):"";if(T)switch(T){case h:return f;case g:return s;case m:return c;case b:return u;case y:return d}return S}),ih=w,ih}var ah,h1;function pF(){if(h1)return ah;h1=1;var t=$E(),e=HE(),n=X4(),r=cF(),o=hF(),i=Dn(),a=zE(),s=YE(),l=1,c="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,h=f.hasOwnProperty;function g(m,b,y,w,C,S){var E=i(m),T=i(b),I=E?u:o(m),_=T?u:o(b);I=I==c?d:I,_=_==c?d:_;var P=I==d,W=_==d,A=I==_;if(A&&a(m)){if(!a(b))return!1;E=!0,P=!1}if(A&&!P)return S||(S=new t),E||s(m)?e(m,b,y,w,C,S):n(m,b,I,y,w,C,S);if(!(y&l)){var D=P&&h.call(m,"__wrapped__"),N=W&&h.call(b,"__wrapped__");if(D||N){var F=D?m.value():m,j=N?b.value():b;return S||(S=new t),C(F,j,y,w,S)}}return A?(S||(S=new t),r(m,b,y,w,C,S)):!1}return ah=g,ah}var sh,p1;function ZE(){if(p1)return sh;p1=1;var t=pF(),e=Co();function n(r,o,i,a,s){return r===o?!0:r==null||o==null||!e(r)&&!e(o)?r!==r&&o!==o:t(r,o,i,a,n,s)}return sh=n,sh}var lh,m1;function mF(){if(m1)return lh;m1=1;var t=$E(),e=ZE(),n=1,r=2;function o(i,a,s,l){var c=s.length,u=c,d=!l;if(i==null)return!u;for(i=Object(i);c--;){var f=s[c];if(d&&f[2]?f[1]!==i[f[0]]:!(f[0]in i))return!1}for(;++c<u;){f=s[c];var h=f[0],g=i[h],m=f[1];if(d&&f[2]){if(g===void 0&&!(h in i))return!1}else{var b=new t;if(l)var y=l(g,m,h,i,a,b);if(!(y===void 0?e(m,g,n|r,l,b):y))return!1}}return!0}return lh=o,lh}var ch,g1;function JE(){if(g1)return ch;g1=1;var t=Vr();function e(n){return n===n&&!t(n)}return ch=e,ch}var uh,b1;function gF(){if(b1)return uh;b1=1;var t=JE(),e=Ug();function n(r){for(var o=e(r),i=o.length;i--;){var a=o[i],s=r[a];o[i]=[a,s,t(s)]}return o}return uh=n,uh}var dh,v1;function KE(){if(v1)return dh;v1=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return dh=t,dh}var fh,y1;function bF(){if(y1)return fh;y1=1;var t=mF(),e=gF(),n=KE();function r(o){var i=e(o);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(a){return a===o||t(a,o,i)}}return fh=r,fh}var hh,x1;function vF(){if(x1)return hh;x1=1;function t(e,n){return e!=null&&n in Object(e)}return hh=t,hh}var ph,w1;function yF(){if(w1)return ph;w1=1;var t=EE(),e=zg(),n=Dn(),r=Xg(),o=Yg(),i=pc();function a(s,l,c){l=t(l,s);for(var u=-1,d=l.length,f=!1;++u<d;){var h=i(l[u]);if(!(f=s!=null&&c(s,h)))break;s=s[h]}return f||++u!=d?f:(d=s==null?0:s.length,!!d&&o(d)&&r(h,d)&&(n(s)||e(s)))}return ph=a,ph}var mh,C1;function xF(){if(C1)return mh;C1=1;var t=vF(),e=yF();function n(r,o){return r!=null&&e(r,o,t)}return mh=n,mh}var gh,S1;function wF(){if(S1)return gh;S1=1;var t=ZE(),e=IE(),n=xF(),r=Lg(),o=JE(),i=KE(),a=pc(),s=1,l=2;function c(u,d){return r(u)&&o(d)?i(a(u),d):function(f){var h=e(f,u);return h===void 0&&h===d?n(f,u):t(d,h,s|l)}}return gh=c,gh}var bh,E1;function bc(){if(E1)return bh;E1=1;function t(e){return e}return bh=t,bh}var vh,I1;function CF(){if(I1)return vh;I1=1;function t(e){return function(n){return n?.[e]}}return vh=t,vh}var yh,A1;function SF(){if(A1)return yh;A1=1;var t=Wg();function e(n){return function(r){return t(r,n)}}return yh=e,yh}var xh,T1;function EF(){if(T1)return xh;T1=1;var t=CF(),e=SF(),n=Lg(),r=pc();function o(i){return n(i)?t(r(i)):e(i)}return xh=o,xh}var wh,O1;function QE(){if(O1)return wh;O1=1;var t=bF(),e=wF(),n=bc(),r=Dn(),o=EF();function i(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?e(a[0],a[1]):t(a):o(a)}return wh=i,wh}var Ch,N1;function IF(){if(N1)return Ch;N1=1;function t(e,n,r,o){for(var i=e.length,a=r+(o?1:-1);o?a--:++a<i;)if(n(e[a],a,e))return a;return-1}return Ch=t,Ch}var Sh,R1;function AF(){if(R1)return Sh;R1=1;function t(e){return e!==e}return Sh=t,Sh}var Eh,_1;function TF(){if(_1)return Eh;_1=1;function t(e,n,r){for(var o=r-1,i=e.length;++o<i;)if(e[o]===n)return o;return-1}return Eh=t,Eh}var Ih,P1;function OF(){if(P1)return Ih;P1=1;var t=IF(),e=AF(),n=TF();function r(o,i,a){return i===i?n(o,i,a):t(o,e,a)}return Ih=r,Ih}var Ah,M1;function NF(){if(M1)return Ah;M1=1;var t=OF();function e(n,r){var o=n==null?0:n.length;return!!o&&t(n,r,0)>-1}return Ah=e,Ah}var Th,D1;function RF(){if(D1)return Th;D1=1;function t(e,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;)if(r(n,e[o]))return!0;return!1}return Th=t,Th}var Oh,k1;function _F(){if(k1)return Oh;k1=1;function t(){}return Oh=t,Oh}var Nh,j1;function PF(){if(j1)return Nh;j1=1;var t=UE(),e=_F(),n=qg(),r=1/0,o=t&&1/n(new t([,-0]))[1]==r?function(i){return new t(i)}:e;return Nh=o,Nh}var Rh,L1;function MF(){if(L1)return Rh;L1=1;var t=WE(),e=NF(),n=RF(),r=VE(),o=PF(),i=qg(),a=200;function s(l,c,u){var d=-1,f=e,h=l.length,g=!0,m=[],b=m;if(u)g=!1,f=n;else if(h>=a){var y=c?null:o(l);if(y)return i(y);g=!1,f=r,b=new t}else b=c?[]:m;e:for(;++d<h;){var w=l[d],C=c?c(w):w;if(w=u||w!==0?w:0,g&&C===C){for(var S=b.length;S--;)if(b[S]===C)continue e;c&&b.push(C),m.push(w)}else f(b,C,u)||(b!==m&&b.push(C),m.push(w))}return m}return Rh=s,Rh}var _h,B1;function DF(){if(B1)return _h;B1=1;var t=QE(),e=MF();function n(r,o){return r&&r.length?e(r,t(o,2)):[]}return _h=n,_h}var kF=DF();const F1=gn(kF);function eI(t,e,n){return e===!0?F1(t,n):Cl(e)?F1(t,e):t}function di(t){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(t)}var jF=["ref"];function G1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function gr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G1(Object(n),!0).forEach(function(r){vc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function LF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nI(r.key),r)}}function BF(t,e,n){return e&&$1(t.prototype,e),n&&$1(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function FF(t,e,n){return e=Tl(e),GF(t,tI()?Reflect.construct(e,n||[],Tl(t).constructor):e.apply(t,n))}function GF(t,e){if(e&&(di(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $F(t)}function $F(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tI=function(){return!!t})()}function Tl(t){return Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tl(t)}function WF(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cm(t,e)}function cm(t,e){return cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cm(t,e)}function vc(t,e,n){return e=nI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nI(t){var e=VF(t,"string");return di(e)=="symbol"?e:e+""}function VF(t,e){if(di(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function HF(t,e){if(t==null)return{};var n=qF(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qF(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function zF(t){return t.value}function XF(t,e){if(O.isValidElement(t))return O.cloneElement(t,e);if(typeof t=="function")return O.createElement(t,e);e.ref;var n=HF(e,jF);return O.createElement(Hg,n)}var W1=1,Zg=(function(t){function e(){var n;LF(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=FF(this,e,[].concat(o)),vc(n,"lastBoundingBox",{width:-1,height:-1}),n}return WF(e,t),BF(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>W1||Math.abs(o.height-this.lastBoundingBox.height)>W1)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?gr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,u=o.chartHeight,d,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();d={left:((c||0)-h.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();f={top:((u||0)-g.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return gr(gr({},d),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,u=o.payload,d=gr(gr({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(h){r.wrapperNode=h}},XF(i,gr(gr({},this.props),{},{payload:eI(u,c,zF)})))}}],[{key:"getWithHeight",value:function(r,o){var i=gr(gr({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&Cn(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])})(O.PureComponent);vc(Zg,"displayName","Legend");vc(Zg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ph,V1;function YF(){if(V1)return Ph;V1=1;var t=Xa(),e=zg(),n=Dn(),r=t?t.isConcatSpreadable:void 0;function o(i){return n(i)||e(i)||!!(r&&i&&i[r])}return Ph=o,Ph}var Mh,H1;function UF(){if(H1)return Mh;H1=1;var t=qE(),e=YF();function n(r,o,i,a,s){var l=-1,c=r.length;for(i||(i=e),s||(s=[]);++l<c;){var u=r[l];o>0&&i(u)?o>1?n(u,o-1,i,a,s):t(s,u):a||(s[s.length]=u)}return s}return Mh=n,Mh}var Dh,q1;function ZF(){if(q1)return Dh;q1=1;function t(e){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),l=s.length;l--;){var c=s[e?l:++i];if(r(a[c],c,a)===!1)break}return n}}return Dh=t,Dh}var kh,z1;function JF(){if(z1)return kh;z1=1;var t=ZF(),e=t();return kh=e,kh}var jh,X1;function KF(){if(X1)return jh;X1=1;var t=JF(),e=Ug();function n(r,o){return r&&t(r,o,e)}return jh=n,jh}var Lh,Y1;function QF(){if(Y1)return Lh;Y1=1;var t=gc();function e(n,r){return function(o,i){if(o==null)return o;if(!t(o))return n(o,i);for(var a=o.length,s=r?a:-1,l=Object(o);(r?s--:++s<a)&&i(l[s],s,l)!==!1;);return o}}return Lh=e,Lh}var Bh,U1;function e5(){if(U1)return Bh;U1=1;var t=KF(),e=QF(),n=e(t);return Bh=n,Bh}var Fh,Z1;function t5(){if(Z1)return Fh;Z1=1;var t=e5(),e=gc();function n(r,o){var i=-1,a=e(r)?Array(r.length):[];return t(r,function(s,l,c){a[++i]=o(s,l,c)}),a}return Fh=n,Fh}var Gh,J1;function n5(){if(J1)return Gh;J1=1;function t(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}return Gh=t,Gh}var $h,K1;function r5(){if(K1)return $h;K1=1;var t=Ya();function e(n,r){if(n!==r){var o=n!==void 0,i=n===null,a=n===n,s=t(n),l=r!==void 0,c=r===null,u=r===r,d=t(r);if(!c&&!d&&!s&&n>r||s&&l&&u&&!c&&!d||i&&l&&u||!o&&u||!a)return 1;if(!i&&!s&&!d&&n<r||d&&o&&a&&!i&&!s||c&&o&&a||!l&&a||!u)return-1}return 0}return $h=e,$h}var Wh,Q1;function o5(){if(Q1)return Wh;Q1=1;var t=r5();function e(n,r,o){for(var i=-1,a=n.criteria,s=r.criteria,l=a.length,c=o.length;++i<l;){var u=t(a[i],s[i]);if(u){if(i>=c)return u;var d=o[i];return u*(d=="desc"?-1:1)}}return n.index-r.index}return Wh=e,Wh}var Vh,ex;function i5(){if(ex)return Vh;ex=1;var t=CE(),e=Wg(),n=QE(),r=t5(),o=n5(),i=XE(),a=o5(),s=bc(),l=Dn();function c(u,d,f){d.length?d=t(d,function(m){return l(m)?function(b){return e(b,m.length===1?m[0]:m)}:m}):d=[s];var h=-1;d=t(d,i(n));var g=r(u,function(m,b,y){var w=t(d,function(C){return C(m)});return{criteria:w,index:++h,value:m}});return o(g,function(m,b){return a(m,b,f)})}return Vh=c,Vh}var Hh,tx;function a5(){if(tx)return Hh;tx=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return Hh=t,Hh}var qh,nx;function s5(){if(nx)return qh;nx=1;var t=a5(),e=Math.max;function n(r,o,i){return o=e(o===void 0?r.length-1:o,0),function(){for(var a=arguments,s=-1,l=e(a.length-o,0),c=Array(l);++s<l;)c[s]=a[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=a[s];return u[o]=i(c),t(r,this,u)}}return qh=n,qh}var zh,rx;function l5(){if(rx)return zh;rx=1;function t(e){return function(){return e}}return zh=t,zh}var Xh,ox;function c5(){if(ox)return Xh;ox=1;var t=So(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Xh=e,Xh}var Yh,ix;function u5(){if(ix)return Yh;ix=1;var t=l5(),e=c5(),n=bc(),r=e?function(o,i){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Yh=r,Yh}var Uh,ax;function d5(){if(ax)return Uh;ax=1;var t=800,e=16,n=Date.now;function r(o){var i=0,a=0;return function(){var s=n(),l=e-(s-a);if(a=s,l>0){if(++i>=t)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return Uh=r,Uh}var Zh,sx;function f5(){if(sx)return Zh;sx=1;var t=u5(),e=d5(),n=e(t);return Zh=n,Zh}var Jh,lx;function h5(){if(lx)return Jh;lx=1;var t=bc(),e=s5(),n=f5();function r(o,i){return n(e(o,i,t),o+"")}return Jh=r,Jh}var Kh,cx;function p5(){if(cx)return Kh;cx=1;var t=Fg(),e=gc(),n=Xg(),r=Vr();function o(i,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?e(s)&&n(a,s.length):l=="string"&&a in s)?t(s[a],i):!1}return Kh=o,Kh}var Qh,ux;function m5(){if(ux)return Qh;ux=1;var t=UF(),e=i5(),n=h5(),r=p5(),o=n(function(i,a){if(i==null)return[];var s=a.length;return s>1&&r(i,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),e(i,t(a,1),[])});return Qh=o,Qh}var g5=m5();const b5=gn(g5);function Ea(t){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(t)}function um(){return um=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},um.apply(this,arguments)}function v5(t,e){return C5(t)||w5(t,e)||x5(t,e)||y5()}function y5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x5(t,e){if(t){if(typeof t=="string")return dx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dx(t,e)}}function dx(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w5(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function C5(t){if(Array.isArray(t))return t}function fx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ep(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fx(Object(n),!0).forEach(function(r){S5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function S5(t,e,n){return e=E5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E5(t){var e=I5(t,"string");return Ea(e)=="symbol"?e:e+""}function I5(t,e){if(Ea(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ea(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function A5(t){return Array.isArray(t)&&Sl(t[0])&&Sl(t[1])?t.join(" ~ "):t}var T5=function(e){var n=e.separator,r=n===void 0?" : ":n,o=e.contentStyle,i=o===void 0?{}:o,a=e.itemStyle,s=a===void 0?{}:a,l=e.labelStyle,c=l===void 0?{}:l,u=e.payload,d=e.formatter,f=e.itemSorter,h=e.wrapperClassName,g=e.labelClassName,m=e.label,b=e.labelFormatter,y=e.accessibilityLayer,w=y===void 0?!1:y,C=function(){if(u&&u.length){var D={padding:0,margin:0},N=(f?b5(u,f):u).map(function(F,j){if(F.type==="none")return null;var M=ep({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},s),V=F.formatter||d||A5,k=F.value,H=F.name,U=k,ee=H;if(V&&U!=null&&ee!=null){var G=V(k,H,F,j,u);if(Array.isArray(G)){var X=v5(G,2);U=X[0],ee=X[1]}else U=G}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:M},Sl(ee)?O.createElement("span",{className:"recharts-tooltip-item-name"},ee):null,Sl(ee)?O.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,O.createElement("span",{className:"recharts-tooltip-item-value"},U),O.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:D},N)}return null},S=ep({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=ep({margin:0},c),T=!EB(m),I=T?m:"",_=wr("recharts-default-tooltip",h),P=wr("recharts-tooltip-label",g);T&&b&&u!==void 0&&u!==null&&(I=b(m,u));var W=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",um({className:_,style:S},W),O.createElement("p",{className:P,style:E},O.isValidElement(I)?I:"".concat(I)),C())};function Ia(t){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(t)}function Ls(t,e,n){return e=O5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O5(t){var e=N5(t,"string");return Ia(e)=="symbol"?e:e+""}function N5(t,e){if(Ia(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zi="recharts-tooltip-wrapper",R5={visibility:"hidden"};function _5(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return wr(zi,Ls(Ls(Ls(Ls({},"".concat(zi,"-right"),Cn(n)&&e&&Cn(e.x)&&n>=e.x),"".concat(zi,"-left"),Cn(n)&&e&&Cn(e.x)&&n<e.x),"".concat(zi,"-bottom"),Cn(r)&&e&&Cn(e.y)&&r>=e.y),"".concat(zi,"-top"),Cn(r)&&e&&Cn(e.y)&&r<e.y))}function hx(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,s=t.tooltipDimension,l=t.viewBox,c=t.viewBoxDimension;if(i&&Cn(i[r]))return i[r];var u=n[r]-s-o,d=n[r]+o;if(e[r])return a[r]?u:d;if(a[r]){var f=u,h=l[r];return f<h?Math.max(d,l[r]):Math.max(u,l[r])}var g=d+s,m=l[r]+c;return g>m?Math.max(u,l[r]):Math.max(d,l[r])}function P5(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return{transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function M5(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.offsetTopLeft,o=t.position,i=t.reverseDirection,a=t.tooltipBox,s=t.useTranslate3d,l=t.viewBox,c,u,d;return a.height>0&&a.width>0&&n?(u=hx({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=hx({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=P5({translateX:u,translateY:d,useTranslate3d:s})):c=R5,{cssProperties:c,cssClasses:_5({translateX:u,translateY:d,coordinate:n})}}function fi(t){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fi(t)}function px(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function mx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?px(Object(n),!0).forEach(function(r){fm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):px(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,oI(r.key),r)}}function j5(t,e,n){return e&&k5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function L5(t,e,n){return e=Ol(e),B5(t,rI()?Reflect.construct(e,n||[],Ol(t).constructor):e.apply(t,n))}function B5(t,e){if(e&&(fi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F5(t)}function F5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rI=function(){return!!t})()}function Ol(t){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ol(t)}function G5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dm(t,e)}function dm(t,e){return dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},dm(t,e)}function fm(t,e,n){return e=oI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oI(t){var e=$5(t,"string");return fi(e)=="symbol"?e:e+""}function $5(t,e){if(fi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var gx=1,W5=(function(t){function e(){var n;D5(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=L5(this,e,[].concat(o)),fm(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),fm(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,c,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),n}return G5(e,t),j5(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>gx||Math.abs(r.height-this.state.lastBoundingBox.height)>gx)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,u=o.coordinate,d=o.hasPayload,f=o.isAnimationActive,h=o.offset,g=o.position,m=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,C=M5({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:h,position:g,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),S=C.cssClasses,E=C.cssProperties,T=mx(mx({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:S,style:T,ref:function(_){r.wrapperNode=_}},c)}}])})(O.PureComponent),V5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},H5={isSsr:V5()};function hi(t){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(t)}function bx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bx(Object(n),!0).forEach(function(r){Jg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function q5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,aI(r.key),r)}}function X5(t,e,n){return e&&z5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Y5(t,e,n){return e=Nl(e),U5(t,iI()?Reflect.construct(e,n||[],Nl(t).constructor):e.apply(t,n))}function U5(t,e){if(e&&(hi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z5(t)}function Z5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iI=function(){return!!t})()}function Nl(t){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nl(t)}function J5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hm(t,e)}function hm(t,e){return hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hm(t,e)}function Jg(t,e,n){return e=aI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aI(t){var e=K5(t,"string");return hi(e)=="symbol"?e:e+""}function K5(t,e){if(hi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Q5(t){return t.dataKey}function e3(t,e){return O.isValidElement(t)?O.cloneElement(t,e):typeof t=="function"?O.createElement(t,e):O.createElement(T5,e)}var Kg=(function(t){function e(){return q5(this,e),Y5(this,e,arguments)}return J5(e,t),X5(e,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.content,u=o.coordinate,d=o.filterNull,f=o.isAnimationActive,h=o.offset,g=o.payload,m=o.payloadUniqBy,b=o.position,y=o.reverseDirection,w=o.useTranslate3d,C=o.viewBox,S=o.wrapperStyle,E=g??[];d&&E.length&&(E=eI(g.filter(function(I){return I.value!=null&&(I.hide!==!0||r.props.includeHidden)}),m,Q5));var T=E.length>0;return O.createElement(W5,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:u,hasPayload:T,offset:h,position:b,reverseDirection:y,useTranslate3d:w,viewBox:C,wrapperStyle:S},e3(c,vx(vx({},this.props),{},{payload:E})))}}])})(O.PureComponent);Jg(Kg,"displayName","Tooltip");Jg(Kg,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!H5.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var tp,yx;function t3(){if(yx)return tp;yx=1;var t=ir(),e=function(){return t.Date.now()};return tp=e,tp}var np,xx;function n3(){if(xx)return np;xx=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return np=e,np}var rp,wx;function r3(){if(wx)return rp;wx=1;var t=n3(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return rp=n,rp}var op,Cx;function o3(){if(Cx)return op;Cx=1;var t=r3(),e=Vr(),n=Ya(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(e(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=e(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=t(c);var d=i.test(c);return d||a.test(c)?s(c.slice(2),d?2:8):o.test(c)?r:+c}return op=l,op}var ip,Sx;function i3(){if(Sx)return ip;Sx=1;var t=Vr(),e=t3(),n=o3(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,c){var u,d,f,h,g,m,b=0,y=!1,w=!1,C=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,t(c)&&(y=!!c.leading,w="maxWait"in c,f=w?o(n(c.maxWait)||0,l):f,C="trailing"in c?!!c.trailing:C);function S(N){var F=u,j=d;return u=d=void 0,b=N,h=s.apply(j,F),h}function E(N){return b=N,g=setTimeout(_,l),y?S(N):h}function T(N){var F=N-m,j=N-b,M=l-F;return w?i(M,f-j):M}function I(N){var F=N-m,j=N-b;return m===void 0||F>=l||F<0||w&&j>=f}function _(){var N=e();if(I(N))return P(N);g=setTimeout(_,T(N))}function P(N){return g=void 0,C&&u?S(N):(u=d=void 0,h)}function W(){g!==void 0&&clearTimeout(g),b=0,u=m=d=g=void 0}function A(){return g===void 0?h:P(e())}function D(){var N=e(),F=I(N);if(u=arguments,d=this,m=N,F){if(g===void 0)return E(m);if(w)return clearTimeout(g),g=setTimeout(_,l),S(m)}return g===void 0&&(g=setTimeout(_,l)),h}return D.cancel=W,D.flush=A,D}return ip=a,ip}var ap,Ex;function a3(){if(Ex)return ap;Ex=1;var t=i3(),e=Vr(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),t(o,i,{leading:s,maxWait:i,trailing:l})}return ap=r,ap}var s3=a3();const l3=gn(s3);function Aa(t){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(t)}function Ix(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ix(Object(n),!0).forEach(function(r){c3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ix(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function c3(t,e,n){return e=u3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u3(t){var e=d3(t,"string");return Aa(e)=="symbol"?e:e+""}function d3(t,e){if(Aa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function f3(t,e){return g3(t)||m3(t,e)||p3(t,e)||h3()}function h3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p3(t,e){if(t){if(typeof t=="string")return Ax(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ax(t,e)}}function Ax(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function g3(t){if(Array.isArray(t))return t}var b3=O.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=t.width,a=i===void 0?"100%":i,s=t.height,l=s===void 0?"100%":s,c=t.minWidth,u=c===void 0?0:c,d=t.minHeight,f=t.maxHeight,h=t.children,g=t.debounce,m=g===void 0?0:g,b=t.id,y=t.className,w=t.onResize,C=t.style,S=C===void 0?{}:C,E=O.useRef(null),T=O.useRef();T.current=w,O.useImperativeHandle(e,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var I=O.useState({containerWidth:o.width,containerHeight:o.height}),_=f3(I,2),P=_[0],W=_[1],A=O.useCallback(function(N,F){W(function(j){var M=Math.round(N),V=Math.round(F);return j.containerWidth===M&&j.containerHeight===V?j:{containerWidth:M,containerHeight:V}})},[]);O.useEffect(function(){var N=function(H){var U,ee=H[0].contentRect,G=ee.width,X=ee.height;A(G,X),(U=T.current)===null||U===void 0||U.call(T,G,X)};m>0&&(N=l3(N,m,{trailing:!0,leading:!1}));var F=new ResizeObserver(N),j=E.current.getBoundingClientRect(),M=j.width,V=j.height;return A(M,V),F.observe(E.current),function(){F.disconnect()}},[A,m]);var D=O.useMemo(function(){var N=P.containerWidth,F=P.containerHeight;if(N<0||F<0)return null;sl(ks(a)||ks(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,a,l),sl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var j=ks(a)?N:a,M=ks(l)?F:l;n&&n>0&&(j?M=j/n:M&&(j=M*n),f&&M>f&&(M=f)),sl(j>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
8
|
please check the style of container, or the props width(%s) and height(%s),
|
|
9
9
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
-
height and width.`,
|
|
11
|
-
${o} [data-chart=${
|
|
12
|
-
${n.map(([a
|
|
10
|
+
height and width.`,j,M,a,l,u,d,n);var V=!Array.isArray(h)&&$B(h.type).endsWith("Chart");return O.Children.map(h,function(k){return O.isValidElement(k)?O.cloneElement(k,Bs({width:j,height:M},V?{style:Bs({height:"100%",width:"100%",maxHeight:M,maxWidth:j},k.props.style)}:{})):k})},[n,h,l,f,d,u,P,a]);return O.createElement("div",{id:b?"".concat(b):void 0,className:wr("recharts-responsive-container",y),style:Bs(Bs({},S),{},{width:a,height:l,minWidth:u,minHeight:d,maxHeight:f}),ref:E},D)}),Fs={exports:{}},Fe={};var Tx;function v3(){if(Tx)return Fe;Tx=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case l:case c:case r:case i:case o:case d:return E;default:switch(E=E&&E.$$typeof,E){case s:case u:case g:case h:case a:return E;default:return T}}case n:return T}}}function S(E){return C(E)===c}return Fe.AsyncMode=l,Fe.ConcurrentMode=c,Fe.ContextConsumer=s,Fe.ContextProvider=a,Fe.Element=e,Fe.ForwardRef=u,Fe.Fragment=r,Fe.Lazy=g,Fe.Memo=h,Fe.Portal=n,Fe.Profiler=i,Fe.StrictMode=o,Fe.Suspense=d,Fe.isAsyncMode=function(E){return S(E)||C(E)===l},Fe.isConcurrentMode=S,Fe.isContextConsumer=function(E){return C(E)===s},Fe.isContextProvider=function(E){return C(E)===a},Fe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Fe.isForwardRef=function(E){return C(E)===u},Fe.isFragment=function(E){return C(E)===r},Fe.isLazy=function(E){return C(E)===g},Fe.isMemo=function(E){return C(E)===h},Fe.isPortal=function(E){return C(E)===n},Fe.isProfiler=function(E){return C(E)===i},Fe.isStrictMode=function(E){return C(E)===o},Fe.isSuspense=function(E){return C(E)===d},Fe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===c||E===i||E===o||E===d||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===h||E.$$typeof===a||E.$$typeof===s||E.$$typeof===u||E.$$typeof===b||E.$$typeof===y||E.$$typeof===w||E.$$typeof===m)},Fe.typeOf=C,Fe}var Ge={};var Ox;function y3(){return Ox||(Ox=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(q){return typeof q=="string"||typeof q=="function"||q===r||q===c||q===i||q===o||q===d||q===f||typeof q=="object"&&q!==null&&(q.$$typeof===g||q.$$typeof===h||q.$$typeof===a||q.$$typeof===s||q.$$typeof===u||q.$$typeof===b||q.$$typeof===y||q.$$typeof===w||q.$$typeof===m)}function S(q){if(typeof q=="object"&&q!==null){var le=q.$$typeof;switch(le){case e:var $=q.type;switch($){case l:case c:case r:case i:case o:case d:return $;default:var se=$&&$.$$typeof;switch(se){case s:case u:case g:case h:case a:return se;default:return le}}case n:return le}}}var E=l,T=c,I=s,_=a,P=e,W=u,A=r,D=g,N=h,F=n,j=i,M=o,V=d,k=!1;function H(q){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(q)||S(q)===l}function U(q){return S(q)===c}function ee(q){return S(q)===s}function G(q){return S(q)===a}function X(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function Z(q){return S(q)===u}function Y(q){return S(q)===r}function ne(q){return S(q)===g}function z(q){return S(q)===h}function K(q){return S(q)===n}function ae(q){return S(q)===i}function ie(q){return S(q)===o}function re(q){return S(q)===d}Ge.AsyncMode=E,Ge.ConcurrentMode=T,Ge.ContextConsumer=I,Ge.ContextProvider=_,Ge.Element=P,Ge.ForwardRef=W,Ge.Fragment=A,Ge.Lazy=D,Ge.Memo=N,Ge.Portal=F,Ge.Profiler=j,Ge.StrictMode=M,Ge.Suspense=V,Ge.isAsyncMode=H,Ge.isConcurrentMode=U,Ge.isContextConsumer=ee,Ge.isContextProvider=G,Ge.isElement=X,Ge.isForwardRef=Z,Ge.isFragment=Y,Ge.isLazy=ne,Ge.isMemo=z,Ge.isPortal=K,Ge.isProfiler=ae,Ge.isStrictMode=ie,Ge.isSuspense=re,Ge.isValidElementType=C,Ge.typeOf=S})()),Ge}var Nx;function x3(){return Nx||(Nx=1,process.env.NODE_ENV==="production"?Fs.exports=v3():Fs.exports=y3()),Fs.exports}function Ee(){return Ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ee.apply(null,arguments)}function w3(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function pm(t,e){return pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},pm(t,e)}function C3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const S3={light:"",dark:".dark"},sI=v.createContext(null);function lI(){const t=v.useContext(sI);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}function E3({id:t,className:e,children:n,config:r,...o}){const i=v.useId(),a=`chart-${t||i.replace(/:/g,"")}`;return p.jsx(sI.Provider,{value:{config:r},children:p.jsxs("div",{"data-slot":"chart","data-chart":a,className:L("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",e),...o,children:[p.jsx(cI,{id:a,config:r}),p.jsx(b3,{children:n})]})})}const cI=({id:t,config:e})=>{const n=Object.entries(e).filter(([,r])=>r.theme||r.color);return n.length?p.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(S3).map(([r,o])=>`
|
|
11
|
+
${o} [data-chart=${t}] {
|
|
12
|
+
${n.map(([i,a])=>{const s=a.theme?.[r]||a.color;return s?` --color-${i}: ${s};`:null}).join(`
|
|
13
13
|
`)}
|
|
14
14
|
}
|
|
15
15
|
`).join(`
|
|
16
|
-
`)}}):null},XN=Pf;function YN({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){const{config:g}=z0(),b=p.useMemo(()=>{if(o||!t?.length)return null;const[h]=t,v=`${f||h?.dataKey||h?.name||"value"}`,x=ld(g,h,v),w=!f&&typeof i=="string"?g[i]?.label||i:x?.label;return s?y.jsx("div",{className:D("font-medium",c),children:s(w,t)}):w?y.jsx("div",{className:D("font-medium",c),children:w}):null},[i,s,t,o,c,g,f]);if(!e||!t?.length)return null;const m=t.length===1&&r!=="dot";return y.jsxs("div",{className:D("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[m?null:b,y.jsx("div",{className:"grid gap-1.5",children:t.filter(h=>h.type!=="none").map((h,v)=>{const x=`${d||h.name||h.dataKey||"value"}`,w=ld(g,h,x),C=u||h.payload.fill||h.color;return y.jsx("div",{className:D("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",r==="dot"&&"items-center"),children:l&&h?.value!==void 0&&h.name?l(h.value,h.name,h,v,h.payload):y.jsxs(y.Fragment,{children:[w?.icon?y.jsx(w.icon,{}):!a&&y.jsx("div",{className:D("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":m&&r==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),y.jsxs("div",{className:D("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[y.jsxs("div",{className:"grid gap-1.5",children:[m?b:null,y.jsx("span",{className:"text-muted-foreground",children:w?.label||h.name})]}),h.value&&y.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:h.value.toLocaleString()})]})]})},h.dataKey)})})]})}const ZN=Af;function qN({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o}){const{config:a}=z0();return n?.length?y.jsx("div",{className:D("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(i=>i.type!=="none").map(i=>{const s=`${o||i.dataKey||"value"}`,c=ld(a,i,s);return y.jsxs("div",{className:D("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[c?.icon&&!t?y.jsx(c.icon,{}):y.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),c?.label]},i.value)})}):null}function ld(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function To(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _o(e){const[t,n]=p.useState(void 0);return ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bi="Checkbox",[UN]=ze(bi),[JN,Of]=UN(bi);function KN(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:d}=e,[f,g]=et({prop:n,defaultProp:o??!1,onChange:c,caller:bi}),[b,m]=p.useState(null),[h,v]=p.useState(null),x=p.useRef(!1),w=b?!!i||!!b.closest("form"):!0,C={checked:f,disabled:a,setChecked:g,control:b,setControl:m,name:s,form:i,value:u,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:bn(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:v};return y.jsx(JN,{scope:t,...C,children:QN(d)?d(C):r})}var Y0="CheckboxTrigger",Z0=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:g,bubbleInput:b}=Of(Y0,e),m=pe(o,u),h=p.useRef(c);return p.useEffect(()=>{const v=a?.form;if(v){const x=()=>d(h.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,d]),y.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":bn(c)?"mixed":c,"aria-required":l,"data-state":ex(c),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:m,onKeyDown:X(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:X(n,v=>{d(x=>bn(x)?!0:!x),b&&g&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});Z0.displayName=Y0;var q0=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return y.jsx(KN,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:f})=>y.jsxs(y.Fragment,{children:[y.jsx(Z0,{...d,ref:t,__scopeCheckbox:n}),f&&y.jsx(Q0,{__scopeCheckbox:n})]})})});q0.displayName=bi;var U0="CheckboxIndicator",J0=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Of(U0,n);return y.jsx(Xe,{present:r||bn(a.checked)||a.checked===!0,children:y.jsx(oe.span,{"data-state":ex(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});J0.displayName=U0;var K0="CheckboxBubbleInput",Q0=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:g}=Of(K0,e),b=pe(n,g),m=To(a),h=_o(r);p.useEffect(()=>{const x=f;if(!x)return;const w=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(w,"checked").set,A=!o.current;if(m!==a&&S){const I=new Event("click",{bubbles:A});x.indeterminate=bn(a),S.call(x,bn(a)?!1:a),x.dispatchEvent(I)}},[f,m,a,o]);const v=p.useRef(bn(a)?!1:a);return y.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:b,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Q0.displayName=K0;function QN(e){return typeof e=="function"}function bn(e){return e==="indeterminate"}function ex(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function ek({className:e,...t}){return y.jsx(q0,{"data-slot":"checkbox",className:D("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(J0,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:y.jsx(Y1,{className:"size-3.5"})})})}function tk({...e}){return y.jsx(Wv,{"data-slot":"collapsible",...e})}function nk({...e}){return y.jsx(Wd,{"data-slot":"collapsible-trigger",...e})}function rk({...e}){return y.jsx(Hd,{"data-slot":"collapsible-content",...e})}var Ib=1,ok=.9,ak=.8,ik=.17,mu=.1,hu=.999,sk=.9999,ck=.99,lk=/[\\\/_+.#"@\[\(\{&]/,uk=/[\\\/_+.#"@\[\(\{&]/g,dk=/[\s-]/,tx=/[\s-]/g;function ud(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?Ib:ck;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=r.charAt(a),l=n.indexOf(c,o),u=0,d,f,g,b;l>=0;)d=ud(e,t,n,r,l+1,a+1,i),d>u&&(l===o?d*=Ib:lk.test(e.charAt(l-1))?(d*=ak,g=e.slice(o,l-1).match(uk),g&&o>0&&(d*=Math.pow(hu,g.length))):dk.test(e.charAt(l-1))?(d*=ok,b=e.slice(o,l-1).match(tx),b&&o>0&&(d*=Math.pow(hu,b.length))):(d*=ik,o>0&&(d*=Math.pow(hu,l-o))),e.charAt(l)!==t.charAt(a)&&(d*=sk)),(d<mu&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=ud(e,t,n,r,l+1,a+2,i),f*mu>d&&(d=f*mu)),d>u&&(u=d),l=n.indexOf(c,l+1);return i[s]=u,u}function Eb(e){return e.toLowerCase().replace(tx," ")}function fk(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ud(e,t,Eb(e),Eb(t),0,0,{})}function pk(e,t=globalThis?.document){const n=qe(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mk="DismissableLayer",dd="dismissableLayer.update",hk="dismissableLayer.pointerDownOutside",gk="dismissableLayer.focusOutside",Ab,nx=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=p.useContext(nx),[u,d]=p.useState(null),f=u?.ownerDocument??globalThis?.document,[,g]=p.useState({}),b=pe(t,I=>d(I)),m=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(h),x=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,S=yk(I=>{const R=I.target,P=[...l.branches].some(M=>M.contains(R));!C||P||(o?.(I),i?.(I),I.defaultPrevented||s?.())},f),A=xk(I=>{const R=I.target;[...l.branches].some(M=>M.contains(R))||(a?.(I),i?.(I),I.defaultPrevented||s?.())},f);return pk(I=>{x===l.layers.size-1&&(r?.(I),!I.defaultPrevented&&s&&(I.preventDefault(),s()))},f),p.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ab=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Rb(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ab)}},[u,f,n,l]),p.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Rb())},[u,l]),p.useEffect(()=>{const I=()=>g({});return document.addEventListener(dd,I),()=>document.removeEventListener(dd,I)},[]),y.jsx(oe.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,A.onFocusCapture),onBlurCapture:X(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,S.onPointerDownCapture)})});zn.displayName=mk;var bk="DismissableLayerBranch",vk=p.forwardRef((e,t)=>{const n=p.useContext(nx),r=p.useRef(null),o=pe(t,r);return p.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),y.jsx(oe.div,{...e,ref:o})});vk.displayName=bk;function yk(e,t=globalThis?.document){const n=qe(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){rx(hk,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xk(e,t=globalThis?.document){const n=qe(e),r=p.useRef(!1);return p.useEffect(()=>{const o=a=>{a.target&&!r.current&&rx(gk,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rb(){const e=new CustomEvent(dd);document.dispatchEvent(e)}function rx(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bv(o,a):o.dispatchEvent(a)}var gu="focusScope.autoFocusOnMount",bu="focusScope.autoFocusOnUnmount",Pb={bubbles:!1,cancelable:!0},wk="FocusScope",Mo=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=p.useState(null),l=qe(o),u=qe(a),d=p.useRef(null),f=pe(t,m=>c(m)),g=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let m=function(w){if(g.paused||!s)return;const C=w.target;s.contains(C)?d.current=C:gn(d.current,{select:!0})},h=function(w){if(g.paused||!s)return;const C=w.relatedTarget;C!==null&&(s.contains(C)||gn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(v);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[r,s,g.paused]),p.useEffect(()=>{if(s){Tb.add(g);const m=document.activeElement;if(!s.contains(m)){const v=new CustomEvent(gu,Pb);s.addEventListener(gu,l),s.dispatchEvent(v),v.defaultPrevented||(Ck(Rk(ox(s)),{select:!0}),document.activeElement===m&&gn(s))}return()=>{s.removeEventListener(gu,l),setTimeout(()=>{const v=new CustomEvent(bu,Pb);s.addEventListener(bu,u),s.dispatchEvent(v),v.defaultPrevented||gn(m??document.body,{select:!0}),s.removeEventListener(bu,u),Tb.remove(g)},0)}}},[s,l,u,g]);const b=p.useCallback(m=>{if(!n&&!r||g.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(h&&v){const x=m.currentTarget,[w,C]=Sk(x);w&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&gn(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),n&&gn(C,{select:!0})):v===x&&m.preventDefault()}},[n,r,g.paused]);return y.jsx(oe.div,{tabIndex:-1,...i,ref:f,onKeyDown:b})});Mo.displayName=wk;function Ck(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function Sk(e){const t=ox(e),n=Ob(t,e),r=Ob(t.reverse(),e);return[n,r]}function ox(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 Ob(e,t){for(const n of e)if(!Ik(n,{upTo:t}))return n}function Ik(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 Ek(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ek(e)&&t&&e.select()}}var Tb=Ak();function Ak(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=_b(e,t),e.unshift(t)},remove(t){e=_b(e,t),e[0]?.resume()}}}function _b(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rk(e){return e.filter(t=>t.tagName!=="A")}var Pk="Portal",Tf=p.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=p.useState(!1);ke(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Gd.createPortal(y.jsx(oe.div,{...r,ref:t}),i):null});Tf.displayName=Pk;var vu=0;function vi(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mb()),document.body.insertAdjacentElement("beforeend",e[1]??Mb()),vu++,()=>{vu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vu--}},[])}function Mb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Vt=function(){return Vt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Vt.apply(this,arguments)};function ax(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 Ok(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ha="right-scroll-bar-position",ga="width-before-scroll-bar",Tk="with-scroll-bars-hidden",_k="--removed-body-scroll-bar-size";function yu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mk(e,t){var n=E.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}var Dk=typeof window<"u"?p.useLayoutEffect:p.useEffect,Db=new WeakMap;function Nk(e,t){var n=Mk(null,function(r){return e.forEach(function(o){return yu(o,r)})});return Dk(function(){var r=Db.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||yu(s,null)}),a.forEach(function(s){o.has(s)||yu(s,i)})}Db.set(n,e)},[e]),n}function kk(e){return e}function Fk(e,t){t===void 0&&(t=kk);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(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var u=i;i=[],u.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){i.push(u),l()},filter:function(u){return i=i.filter(u),n}}}};return o}function Bk(e){e===void 0&&(e={});var t=Fk(null);return t.options=Vt({async:!0,ssr:!1},e),t}var ix=function(e){var t=e.sideCar,n=ax(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 p.createElement(r,Vt({},n))};ix.isSideCarExport=!0;function jk(e,t){return e.useMedium(t),ix}var sx=Bk(),xu=function(){},yi=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:xu,onWheelCapture:xu,onTouchMoveCapture:xu}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,g=e.noRelative,b=e.noIsolation,m=e.inert,h=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,C=ax(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=Nk([n,t]),I=Vt(Vt({},C),o);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:sx,removeScrollBar:l,shards:d,noRelative:g,noIsolation:b,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?p.cloneElement(p.Children.only(s),Vt(Vt({},I),{ref:A})):p.createElement(x,Vt({},I,{className:c,ref:A}),s))});yi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yi.classNames={fullWidth:ga,zeroRight:ha};var Gk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Lk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gk();return t&&e.setAttribute("nonce",t),e}function Wk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Lk())&&(Wk(t,n),Vk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$k=function(){var e=Hk();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cx=function(){var e=$k(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zk={left:0,top:0,right:0,gap:0},wu=function(e){return parseInt(e||"",10)||0},Xk=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[wu(n),wu(r),wu(o)]},Yk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zk;var t=Xk(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])}},Zk=cx(),sr="data-scroll-locked",qk=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
17
|
-
.`.concat(
|
|
16
|
+
`)}}):null},I3=Kg;function A3({active:t,payload:e,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:d,labelKey:f}){const{config:h}=lI(),g=v.useMemo(()=>{if(o||!e?.length)return null;const[b]=e,y=`${f||b?.dataKey||b?.name||"value"}`,w=mm(h,b,y),C=!f&&typeof a=="string"?h[a]?.label||a:w?.label;return s?p.jsx("div",{className:L("font-medium",l),children:s(C,e)}):C?p.jsx("div",{className:L("font-medium",l),children:C}):null},[a,s,e,o,l,h,f]);if(!t||!e?.length)return null;const m=e.length===1&&r!=="dot";return p.jsxs("div",{className:L("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[m?null:g,p.jsx("div",{className:"grid gap-1.5",children:e.filter(b=>b.type!=="none").map((b,y)=>{const w=`${d||b.name||b.dataKey||"value"}`,C=mm(h,b,w),S=u||b.payload.fill||b.color;return p.jsx("div",{className:L("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",r==="dot"&&"items-center"),children:c&&b?.value!==void 0&&b.name?c(b.value,b.name,b,y,b.payload):p.jsxs(p.Fragment,{children:[C?.icon?p.jsx(C.icon,{}):!i&&p.jsx("div",{className:L("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":m&&r==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),p.jsxs("div",{className:L("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[p.jsxs("div",{className:"grid gap-1.5",children:[m?g:null,p.jsx("span",{className:"text-muted-foreground",children:C?.label||b.name})]}),b.value&&p.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})}const T3=Zg;function O3({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:o}){const{config:i}=lI();return n?.length?p.jsx("div",{className:L("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",t),children:n.filter(a=>a.type!=="none").map(a=>{const s=`${o||a.dataKey||"value"}`,l=mm(i,a,s);return p.jsxs("div",{className:L("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[l?.icon&&!e?p.jsx(l.icon,{}):p.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),l?.label]},a.value)})}):null}function mm(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let o=n;return n in e&&typeof e[n]=="string"?o=e[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in t?t[o]:t[n]}function Ua(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function Za(t){const[e,n]=v.useState(void 0);return lt(()=>{if(t){n({width:t.offsetWidth,height:t.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 l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=t.offsetWidth,s=t.offsetHeight;n({width:a,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var yc="Checkbox",[N3]=xt(yc),[R3,Qg]=N3(yc);function _3(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=t,[f,h]=Rt({prop:n,defaultProp:o??!1,onChange:l,caller:yc}),[g,m]=v.useState(null),[b,y]=v.useState(null),w=v.useRef(!1),C=g?!!a||!!g.closest("form"):!0,S={checked:f,disabled:i,setChecked:h,control:g,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:kr(o)?!1:o,isFormControl:C,bubbleInput:b,setBubbleInput:y};return p.jsx(R3,{scope:e,...S,children:P3(d)?d(S):r})}var uI="CheckboxTrigger",dI=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:g}=Qg(uI,t),m=Se(o,u),b=v.useRef(l);return v.useEffect(()=>{const y=i?.form;if(y){const w=()=>d(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[i,d]),p.jsx(fe.button,{type:"button",role:"checkbox","aria-checked":kr(l)?"mixed":l,"aria-required":c,"data-state":bI(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:oe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:oe(n,y=>{d(w=>kr(w)?!0:!w),g&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});dI.displayName=uI;var fI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=t;return p.jsx(_3,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(dI,{...d,ref:e,__scopeCheckbox:n}),f&&p.jsx(gI,{__scopeCheckbox:n})]})})});fI.displayName=yc;var hI="CheckboxIndicator",pI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...o}=t,i=Qg(hI,n);return p.jsx(ot,{present:r||kr(i.checked)||i.checked===!0,children:p.jsx(fe.span,{"data-state":bI(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});pI.displayName=hI;var mI="CheckboxBubbleInput",gI=v.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:h}=Qg(mI,t),g=Se(n,h),m=Ua(i),b=Za(r);v.useEffect(()=>{const w=f;if(!w)return;const C=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(C,"checked").set,T=!o.current;if(m!==i&&E){const I=new Event("click",{bubbles:T});w.indeterminate=kr(i),E.call(w,kr(i)?!1:i),w.dispatchEvent(I)}},[f,m,i,o]);const y=v.useRef(kr(i)?!1:i);return p.jsx(fe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:c,value:u,form:d,...e,tabIndex:-1,ref:g,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gI.displayName=mI;function P3(t){return typeof t=="function"}function kr(t){return t==="indeterminate"}function bI(t){return kr(t)?"indeterminate":t?"checked":"unchecked"}function vI({className:t,...e}){return p.jsx(fI,{"data-slot":"checkbox",className:L("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(pI,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:p.jsx(ga,{className:"size-3.5"})})})}function M3({...t}){return p.jsx(ZC,{"data-slot":"collapsible",...t})}function D3({...t}){return p.jsx(hg,{"data-slot":"collapsible-trigger",...t})}function k3({...t}){return p.jsx(mg,{"data-slot":"collapsible-content",...t})}var Rx=1,j3=.9,L3=.8,B3=.17,sp=.1,lp=.999,F3=.9999,G3=.99,$3=/[\\\/_+.#"@\[\(\{&]/,W3=/[\\\/_+.#"@\[\(\{&]/g,V3=/[\s-]/,yI=/[\s-]/g;function gm(t,e,n,r,o,i,a){if(i===e.length)return o===t.length?Rx:G3;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),c=n.indexOf(l,o),u=0,d,f,h,g;c>=0;)d=gm(t,e,n,r,c+1,i+1,a),d>u&&(c===o?d*=Rx:$3.test(t.charAt(c-1))?(d*=L3,h=t.slice(o,c-1).match(W3),h&&o>0&&(d*=Math.pow(lp,h.length))):V3.test(t.charAt(c-1))?(d*=j3,g=t.slice(o,c-1).match(yI),g&&o>0&&(d*=Math.pow(lp,g.length))):(d*=B3,o>0&&(d*=Math.pow(lp,c-o))),t.charAt(c)!==e.charAt(i)&&(d*=F3)),(d<sp&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(f=gm(t,e,n,r,c+1,i+2,a),f*sp>d&&(d=f*sp)),d>u&&(u=d),c=n.indexOf(l,c+1);return a[s]=u,u}function _x(t){return t.toLowerCase().replace(yI," ")}function H3(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,gm(t,e,_x(t),_x(e),0,0,{})}function q3(t,e=globalThis?.document){const n=yt(t);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var z3="DismissableLayer",bm="dismissableLayer.update",X3="dismissableLayer.pointerDownOutside",Y3="dismissableLayer.focusOutside",Px,xI=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eo=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=t,c=v.useContext(xI),[u,d]=v.useState(null),f=u?.ownerDocument??globalThis?.document,[,h]=v.useState({}),g=Se(e,I=>d(I)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),w=u?m.indexOf(u):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,E=J3(I=>{const _=I.target,P=[...c.branches].some(W=>W.contains(_));!S||P||(o?.(I),a?.(I),I.defaultPrevented||s?.())},f),T=K3(I=>{const _=I.target;[...c.branches].some(W=>W.contains(_))||(i?.(I),a?.(I),I.defaultPrevented||s?.())},f);return q3(I=>{w===c.layers.size-1&&(r?.(I),!I.defaultPrevented&&s&&(I.preventDefault(),s()))},f),v.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Px=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Mx(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Px)}},[u,f,n,c]),v.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Mx())},[u,c]),v.useEffect(()=>{const I=()=>h({});return document.addEventListener(bm,I),()=>document.removeEventListener(bm,I)},[]),p.jsx(fe.div,{...l,ref:g,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:oe(t.onFocusCapture,T.onFocusCapture),onBlurCapture:oe(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:oe(t.onPointerDownCapture,E.onPointerDownCapture)})});Eo.displayName=z3;var U3="DismissableLayerBranch",Z3=v.forwardRef((t,e)=>{const n=v.useContext(xI),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(fe.div,{...t,ref:o})});Z3.displayName=U3;function J3(t,e=globalThis?.document){const n=yt(t),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){wI(X3,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=l,e.addEventListener("click",o.current,{once:!0})):l()}else e.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function K3(t,e=globalThis?.document){const n=yt(t),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&wI(Y3,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Mx(){const t=new CustomEvent(bm);document.dispatchEvent(t)}function wI(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?zC(o,i):o.dispatchEvent(i)}var cp="focusScope.autoFocusOnMount",up="focusScope.autoFocusOnUnmount",Dx={bubbles:!1,cancelable:!0},Q3="FocusScope",Ja=v.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=t,[s,l]=v.useState(null),c=yt(o),u=yt(i),d=v.useRef(null),f=Se(e,m=>l(m)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let m=function(C){if(h.paused||!s)return;const S=C.target;s.contains(S)?d.current=S:Pr(d.current,{select:!0})},b=function(C){if(h.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||Pr(d.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Pr(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),w.disconnect()}}},[r,s,h.paused]),v.useEffect(()=>{if(s){jx.add(h);const m=document.activeElement;if(!s.contains(m)){const y=new CustomEvent(cp,Dx);s.addEventListener(cp,c),s.dispatchEvent(y),y.defaultPrevented||(e9(i9(CI(s)),{select:!0}),document.activeElement===m&&Pr(s))}return()=>{s.removeEventListener(cp,c),setTimeout(()=>{const y=new CustomEvent(up,Dx);s.addEventListener(up,u),s.dispatchEvent(y),y.defaultPrevented||Pr(m??document.body,{select:!0}),s.removeEventListener(up,u),jx.remove(h)},0)}}},[s,c,u,h]);const g=v.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const w=m.currentTarget,[C,S]=t9(w);C&&S?!m.shiftKey&&y===S?(m.preventDefault(),n&&Pr(C,{select:!0})):m.shiftKey&&y===C&&(m.preventDefault(),n&&Pr(S,{select:!0})):y===w&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(fe.div,{tabIndex:-1,...a,ref:f,onKeyDown:g})});Ja.displayName=Q3;function e9(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Pr(r,{select:e}),document.activeElement!==n)return}function t9(t){const e=CI(t),n=kx(e,t),r=kx(e.reverse(),t);return[n,r]}function CI(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function kx(t,e){for(const n of t)if(!n9(n,{upTo:e}))return n}function n9(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function r9(t){return t instanceof HTMLInputElement&&"select"in t}function Pr(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&r9(t)&&e&&t.select()}}var jx=o9();function o9(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=Lx(t,e),t.unshift(e)},remove(e){t=Lx(t,e),t[0]?.resume()}}}function Lx(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function i9(t){return t.filter(e=>e.tagName!=="A")}var a9="Portal",Io=v.forwardRef((t,e)=>{const{container:n,...r}=t,[o,i]=v.useState(!1);lt(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?dg.createPortal(p.jsx(fe.div,{...r,ref:e}),a):null});Io.displayName=a9;var dp=0;function xc(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Bx()),document.body.insertAdjacentElement("beforeend",t[1]??Bx()),dp++,()=>{dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),dp--}},[])}function Bx(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Xn=function(){return Xn=Object.assign||function(e){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)&&(e[i]=n[i])}return e},Xn.apply(this,arguments)};function SI(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function s9(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var ll="right-scroll-bar-position",cl="width-before-scroll-bar",l9="with-scroll-bars-hidden",c9="--removed-body-scroll-bar-size";function fp(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function u9(t,e){var n=O.useState(function(){return{value:t,callback:e,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=e,n.facade}var d9=typeof window<"u"?v.useLayoutEffect:v.useEffect,Fx=new WeakMap;function f9(t,e){var n=u9(null,function(r){return t.forEach(function(o){return fp(o,r)})});return d9(function(){var r=Fx.get(n);if(r){var o=new Set(r),i=new Set(t),a=n.current;o.forEach(function(s){i.has(s)||fp(s,null)}),i.forEach(function(s){o.has(s)||fp(s,a)})}Fx.set(n,t)},[t]),n}function h9(t){return t}function p9(t,e){e===void 0&&(e=h9);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]:t},useMedium:function(i){var a=e(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 l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),n}}}};return o}function m9(t){t===void 0&&(t={});var e=p9(null);return e.options=Xn({async:!0,ssr:!1},t),e}var EI=function(t){var e=t.sideCar,n=SI(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Xn({},n))};EI.isSideCarExport=!0;function g9(t,e){return t.useMedium(e),EI}var II=m9(),hp=function(){},wc=v.forwardRef(function(t,e){var n=v.useRef(null),r=v.useState({onScrollCapture:hp,onWheelCapture:hp,onTouchMoveCapture:hp}),o=r[0],i=r[1],a=t.forwardProps,s=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,f=t.sideCar,h=t.noRelative,g=t.noIsolation,m=t.inert,b=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,C=t.gapMode,S=SI(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,T=f9([n,e]),I=Xn(Xn({},S),o);return v.createElement(v.Fragment,null,u&&v.createElement(E,{sideCar:II,removeScrollBar:c,shards:d,noRelative:h,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:C}),a?v.cloneElement(v.Children.only(s),Xn(Xn({},I),{ref:T})):v.createElement(w,Xn({},I,{className:l,ref:T}),s))});wc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wc.classNames={fullWidth:cl,zeroRight:ll};var b9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=b9();return e&&t.setAttribute("nonce",e),t}function y9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function x9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var w9=function(){var t=0,e=null;return{add:function(n){t==0&&(e=v9())&&(y9(e,n),x9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},C9=function(){var t=w9();return function(e,n){v.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},AI=function(){var t=C9(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},S9={left:0,top:0,right:0,gap:0},pp=function(t){return parseInt(t||"",10)||0},E9=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[pp(n),pp(r),pp(o)]},I9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return S9;var e=E9(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},A9=AI(),ti="data-scroll-locked",T9=function(t,e,n,r){var o=t.left,i=t.top,a=t.right,s=t.gap;return n===void 0&&(n="margin"),`
|
|
17
|
+
.`.concat(l9,` {
|
|
18
18
|
overflow: hidden `).concat(r,`;
|
|
19
19
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
20
20
|
}
|
|
21
|
-
body[`).concat(
|
|
21
|
+
body[`).concat(ti,`] {
|
|
22
22
|
overflow: hidden `).concat(r,`;
|
|
23
23
|
overscroll-behavior: contain;
|
|
24
|
-
`).concat([
|
|
24
|
+
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
25
25
|
padding-left: `.concat(o,`px;
|
|
26
|
-
padding-top: `).concat(
|
|
27
|
-
padding-right: `).concat(
|
|
26
|
+
padding-top: `).concat(i,`px;
|
|
27
|
+
padding-right: `).concat(a,`px;
|
|
28
28
|
margin-left:0;
|
|
29
29
|
margin-top:0;
|
|
30
30
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|
31
31
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.`).concat(
|
|
34
|
+
.`).concat(ll,` {
|
|
35
35
|
right: `).concat(s,"px ").concat(r,`;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.`).concat(
|
|
38
|
+
.`).concat(cl,` {
|
|
39
39
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.`).concat(
|
|
42
|
+
.`).concat(ll," .").concat(ll,` {
|
|
43
43
|
right: 0 `).concat(r,`;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.`).concat(
|
|
46
|
+
.`).concat(cl," .").concat(cl,` {
|
|
47
47
|
margin-right: 0 `).concat(r,`;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
body[`).concat(
|
|
51
|
-
`).concat(
|
|
50
|
+
body[`).concat(ti,`] {
|
|
51
|
+
`).concat(c9,": ").concat(s,`px;
|
|
52
52
|
}
|
|
53
|
-
`)},
|
|
54
|
-
.block-interactivity-`.concat(
|
|
55
|
-
.allow-interactivity-`).concat(
|
|
56
|
-
`)},
|
|
53
|
+
`)},Gx=function(){var t=parseInt(document.body.getAttribute(ti)||"0",10);return isFinite(t)?t:0},O9=function(){v.useEffect(function(){return document.body.setAttribute(ti,(Gx()+1).toString()),function(){var t=Gx()-1;t<=0?document.body.removeAttribute(ti):document.body.setAttribute(ti,t.toString())}},[])},N9=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;O9();var i=v.useMemo(function(){return I9(o)},[o]);return v.createElement(A9,{styles:T9(i,!e,o,n?"":"!important")})},vm=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return vm=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{vm=!1}var Vo=vm?{passive:!1}:!1,R9=function(t){return t.tagName==="TEXTAREA"},TI=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!R9(t)&&n[e]==="visible")},_9=function(t){return TI(t,"overflowY")},P9=function(t){return TI(t,"overflowX")},$x=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=OI(t,r);if(o){var i=NI(t,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},M9=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},D9=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},OI=function(t,e){return t==="v"?_9(e):P9(e)},NI=function(t,e){return t==="v"?M9(e):D9(e)},k9=function(t,e){return t==="h"&&e==="rtl"?-1:1},j9=function(t,e,n,r,o){var i=k9(t,window.getComputedStyle(e).direction),a=i*r,s=n.target,l=e.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var h=NI(t,s),g=h[0],m=h[1],b=h[2],y=m-b-i*g;(g||y)&&OI(t,s)&&(d+=y,f+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},$s=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Wx=function(t){return[t.deltaX,t.deltaY]},Vx=function(t){return t&&"current"in t?t.current:t},L9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},B9=function(t){return`
|
|
54
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
55
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
56
|
+
`)},F9=0,Ho=[];function G9(t){var e=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(F9++)[0],i=v.useState(AI)[0],a=v.useRef(t);v.useEffect(function(){a.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var m=s9([t.lockRef.current],(t.shards||[]).map(Vx),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var s=v.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=$s(m),w=n.current,C="deltaX"in m?m.deltaX:w[0]-y[0],S="deltaY"in m?m.deltaY:w[1]-y[1],E,T=m.target,I=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in m&&I==="h"&&T.type==="range")return!1;var _=window.getSelection(),P=_&&_.anchorNode,W=P?P===T||P.contains(T):!1;if(W)return!1;var A=$x(I,T);if(!A)return!0;if(A?E=I:(E=I==="v"?"h":"v",A=$x(I,T)),!A)return!1;if(!r.current&&"changedTouches"in m&&(C||S)&&(r.current=E),!E)return!0;var D=r.current||E;return j9(D,b,m,D==="h"?C:S)},[]),l=v.useCallback(function(m){var b=m;if(!(!Ho.length||Ho[Ho.length-1]!==i)){var y="deltaY"in b?Wx(b):$s(b),w=e.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&L9(E.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var C=(a.current.shards||[]).map(Vx).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=C.length>0?s(b,C[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=v.useCallback(function(m,b,y,w){var C={name:m,delta:b,target:y,should:w,shadowParent:$9(y)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(S){return S!==C})},1)},[]),u=v.useCallback(function(m){n.current=$s(m),r.current=void 0},[]),d=v.useCallback(function(m){c(m.type,Wx(m),m.target,s(m,t.lockRef.current))},[]),f=v.useCallback(function(m){c(m.type,$s(m),m.target,s(m,t.lockRef.current))},[]);v.useEffect(function(){return Ho.push(i),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Vo),document.addEventListener("touchmove",l,Vo),document.addEventListener("touchstart",u,Vo),function(){Ho=Ho.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Vo),document.removeEventListener("touchmove",l,Vo),document.removeEventListener("touchstart",u,Vo)}},[]);var h=t.removeScrollBar,g=t.inert;return v.createElement(v.Fragment,null,g?v.createElement(i,{styles:B9(o)}):null,h?v.createElement(N9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function $9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const W9=g9(II,G9);var Ka=v.forwardRef(function(t,e){return v.createElement(wc,Xn({},t,{ref:e,sideCar:W9}))});Ka.classNames=wc.classNames;var V9=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},qo=new WeakMap,Ws=new WeakMap,Vs={},mp=0,RI=function(t){return t&&(t.host||RI(t.parentNode))},H9=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=RI(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},q9=function(t,e,n,r){var o=H9(e,Array.isArray(t)?t:[t]);Vs[n]||(Vs[n]=new WeakMap);var i=Vs[n],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var h=f.getAttribute(r),g=h!==null&&h!=="false",m=(qo.get(f)||0)+1,b=(i.get(f)||0)+1;qo.set(f,m),i.set(f,b),a.push(f),m===1&&g&&Ws.set(f,!0),b===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(e),s.clear(),mp++,function(){a.forEach(function(d){var f=qo.get(d)-1,h=i.get(d)-1;qo.set(d,f),i.set(d,h),f||(Ws.has(d)||d.removeAttribute(r),Ws.delete(d)),h||d.removeAttribute(n)}),mp--,mp||(qo=new WeakMap,qo=new WeakMap,Ws=new WeakMap,Vs={})}},Cc=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=V9(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),q9(r,o,n,"aria-hidden")):function(){return null}},Sc="Dialog",[_I]=xt(Sc),[z9,jn]=_I(Sc),PI=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=t,s=v.useRef(null),l=v.useRef(null),[c,u]=Rt({prop:r,defaultProp:o??!1,onChange:i,caller:Sc});return p.jsx(z9,{scope:e,triggerRef:s,contentRef:l,contentId:nt(),titleId:nt(),descriptionId:nt(),open:c,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),modal:a,children:n})};PI.displayName=Sc;var MI="DialogTrigger",DI=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=jn(MI,n),i=Se(e,o.triggerRef);return p.jsx(fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nb(o.open),...r,ref:i,onClick:oe(t.onClick,o.onOpenToggle)})});DI.displayName=MI;var eb="DialogPortal",[X9,kI]=_I(eb,{forceMount:void 0}),jI=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:o}=t,i=jn(eb,e);return p.jsx(X9,{scope:e,forceMount:n,children:v.Children.map(r,a=>p.jsx(ot,{present:n||i.open,children:p.jsx(Io,{asChild:!0,container:o,children:a})}))})};jI.displayName=eb;var Rl="DialogOverlay",LI=v.forwardRef((t,e)=>{const n=kI(Rl,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=jn(Rl,t.__scopeDialog);return i.modal?p.jsx(ot,{present:r||i.open,children:p.jsx(U9,{...o,ref:e})}):null});LI.displayName=Rl;var Y9=ao("DialogOverlay.RemoveScroll"),U9=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=jn(Rl,n);return p.jsx(Ka,{as:Y9,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(fe.div,{"data-state":nb(o.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),co="DialogContent",BI=v.forwardRef((t,e)=>{const n=kI(co,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=jn(co,t.__scopeDialog);return p.jsx(ot,{present:r||i.open,children:i.modal?p.jsx(Z9,{...o,ref:e}):p.jsx(J9,{...o,ref:e})})});BI.displayName=co;var Z9=v.forwardRef((t,e)=>{const n=jn(co,t.__scopeDialog),r=v.useRef(null),o=Se(e,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Cc(i)},[]),p.jsx(FI,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(t.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:oe(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:oe(t.onFocusOutside,i=>i.preventDefault())})}),J9=v.forwardRef((t,e)=>{const n=jn(co,t.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return p.jsx(FI,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),FI=v.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=t,s=jn(co,n),l=v.useRef(null),c=Se(e,l);return xc(),p.jsxs(p.Fragment,{children:[p.jsx(Ja,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(Eo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":nb(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(K9,{titleId:s.titleId}),p.jsx(eG,{contentRef:l,descriptionId:s.descriptionId})]})]})}),tb="DialogTitle",GI=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=jn(tb,n);return p.jsx(fe.h2,{id:o.titleId,...r,ref:e})});GI.displayName=tb;var $I="DialogDescription",WI=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=jn($I,n);return p.jsx(fe.p,{id:o.descriptionId,...r,ref:e})});WI.displayName=$I;var VI="DialogClose",HI=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=jn(VI,n);return p.jsx(fe.button,{type:"button",...r,ref:e,onClick:oe(t.onClick,()=>o.onOpenChange(!1))})});HI.displayName=VI;function nb(t){return t?"open":"closed"}var qI="DialogTitleWarning",[Bne,zI]=bP(qI,{contentName:co,titleName:tb,docsSlug:"dialog"}),K9=({titleId:t})=>{const e=zI(qI),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
57
57
|
|
|
58
|
-
If you want to hide the \`${
|
|
58
|
+
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
59
59
|
|
|
60
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},w2="DialogDescriptionWarning",C2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Px(w2).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ci=mx,Ox=gx,Nf=vx,Si=yx,Ii=xx,Tx=Cx,_x=Ix,Ei=Ax,jr='[cmdk-group=""]',Su='[cmdk-group-items=""]',S2='[cmdk-group-heading=""]',Mx='[cmdk-item=""]',jb=`${Mx}:not([aria-disabled="true"])`,pd="cmdk-item-select",or="data-value",I2=(e,t,n)=>fk(e,t,n),Dx=p.createContext(void 0),No=()=>p.useContext(Dx),Nx=p.createContext(void 0),kf=()=>p.useContext(Nx),kx=p.createContext(void 0),Fx=p.forwardRef((e,t)=>{let n=ar(()=>{var k,H;return{search:"",value:(H=(k=e.value)!=null?k:e.defaultValue)!=null?H:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ar(()=>new Set),o=ar(()=>new Map),a=ar(()=>new Map),i=ar(()=>new Set),s=Bx(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:g,loop:b,disablePointerSelection:m=!1,vimBindings:h=!0,...v}=e,x=Le(),w=Le(),C=Le(),S=p.useRef(null),A=k2();Fn(()=>{if(u!==void 0){let k=u.trim();n.current.value=k,I.emit()}},[u]),Fn(()=>{A(6,O)},[]);let I=p.useMemo(()=>({subscribe:k=>(i.current.add(k),()=>i.current.delete(k)),snapshot:()=>n.current,setState:(k,H,Y)=>{var z,J,G,q;if(!Object.is(n.current[k],H)){if(n.current[k]=H,k==="search")B(),M(),A(1,T);else if(k==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ae=document.getElementById(C);ae?ae.focus():(z=document.getElementById(x))==null||z.focus()}if(A(7,()=>{var ae;n.current.selectedItemId=(ae=L())==null?void 0:ae.id,I.emit()}),Y||A(5,O),((J=s.current)==null?void 0:J.value)!==void 0){let ae=H??"";(q=(G=s.current).onValueChange)==null||q.call(G,ae);return}}I.emit()}},emit:()=>{i.current.forEach(k=>k())}}),[]),R=p.useMemo(()=>({value:(k,H,Y)=>{var z;H!==((z=a.current.get(k))==null?void 0:z.value)&&(a.current.set(k,{value:H,keywords:Y}),n.current.filtered.items.set(k,P(H,Y)),A(2,()=>{M(),I.emit()}))},item:(k,H)=>(r.current.add(k),H&&(o.current.has(H)?o.current.get(H).add(k):o.current.set(H,new Set([k]))),A(3,()=>{B(),M(),n.current.value||T(),I.emit()}),()=>{a.current.delete(k),r.current.delete(k),n.current.filtered.items.delete(k);let Y=L();A(4,()=>{B(),Y?.getAttribute("id")===k&&T(),I.emit()})}),group:k=>(o.current.has(k)||o.current.set(k,new Set),()=>{a.current.delete(k),o.current.delete(k)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:C,labelId:w,listInnerRef:S}),[]);function P(k,H){var Y,z;let J=(z=(Y=s.current)==null?void 0:Y.filter)!=null?z:I2;return k?J(k,n.current.search,H):0}function M(){if(!n.current.search||s.current.shouldFilter===!1)return;let k=n.current.filtered.items,H=[];n.current.filtered.groups.forEach(z=>{let J=o.current.get(z),G=0;J.forEach(q=>{let ae=k.get(q);G=Math.max(ae,G)}),H.push([z,G])});let Y=S.current;W().sort((z,J)=>{var G,q;let ae=z.getAttribute("id"),re=J.getAttribute("id");return((G=k.get(re))!=null?G:0)-((q=k.get(ae))!=null?q:0)}).forEach(z=>{let J=z.closest(Su);J?J.appendChild(z.parentElement===J?z:z.closest(`${Su} > *`)):Y.appendChild(z.parentElement===Y?z:z.closest(`${Su} > *`))}),H.sort((z,J)=>J[1]-z[1]).forEach(z=>{var J;let G=(J=S.current)==null?void 0:J.querySelector(`${jr}[${or}="${encodeURIComponent(z[0])}"]`);G?.parentElement.appendChild(G)})}function T(){let k=W().find(Y=>Y.getAttribute("aria-disabled")!=="true"),H=k?.getAttribute(or);I.setState("value",H||void 0)}function B(){var k,H,Y,z;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let J=0;for(let G of r.current){let q=(H=(k=a.current.get(G))==null?void 0:k.value)!=null?H:"",ae=(z=(Y=a.current.get(G))==null?void 0:Y.keywords)!=null?z:[],re=P(q,ae);n.current.filtered.items.set(G,re),re>0&&J++}for(let[G,q]of o.current)for(let ae of q)if(n.current.filtered.items.get(ae)>0){n.current.filtered.groups.add(G);break}n.current.filtered.count=J}function O(){var k,H,Y;let z=L();z&&(((k=z.parentElement)==null?void 0:k.firstChild)===z&&((Y=(H=z.closest(jr))==null?void 0:H.querySelector(S2))==null||Y.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function L(){var k;return(k=S.current)==null?void 0:k.querySelector(`${Mx}[aria-selected="true"]`)}function W(){var k;return Array.from(((k=S.current)==null?void 0:k.querySelectorAll(jb))||[])}function j(k){let H=W()[k];H&&I.setState("value",H.getAttribute(or))}function $(k){var H;let Y=L(),z=W(),J=z.findIndex(q=>q===Y),G=z[J+k];(H=s.current)!=null&&H.loop&&(G=J+k<0?z[z.length-1]:J+k===z.length?z[0]:z[J+k]),G&&I.setState("value",G.getAttribute(or))}function N(k){let H=L(),Y=H?.closest(jr),z;for(;Y&&!z;)Y=k>0?D2(Y,jr):N2(Y,jr),z=Y?.querySelector(jb);z?I.setState("value",z.getAttribute(or)):$(k)}let V=()=>j(W().length-1),U=k=>{k.preventDefault(),k.metaKey?V():k.altKey?N(1):$(1)},ee=k=>{k.preventDefault(),k.metaKey?j(0):k.altKey?N(-1):$(-1)};return p.createElement(st.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:k=>{var H;(H=v.onKeyDown)==null||H.call(v,k);let Y=k.nativeEvent.isComposing||k.keyCode===229;if(!(k.defaultPrevented||Y))switch(k.key){case"n":case"j":{h&&k.ctrlKey&&U(k);break}case"ArrowDown":{U(k);break}case"p":case"k":{h&&k.ctrlKey&&ee(k);break}case"ArrowUp":{ee(k);break}case"Home":{k.preventDefault(),j(0);break}case"End":{k.preventDefault(),V();break}case"Enter":{k.preventDefault();let z=L();if(z){let J=new Event(pd);z.dispatchEvent(J)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:B2},c),Ai(e,k=>p.createElement(Nx.Provider,{value:I},p.createElement(Dx.Provider,{value:R},k))))}),E2=p.forwardRef((e,t)=>{var n,r;let o=Le(),a=p.useRef(null),i=p.useContext(kx),s=No(),c=Bx(e),l=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:i?.forceMount;Fn(()=>{if(!l)return s.item(o,i?.id)},[l]);let u=jx(o,a,[e.value,e.children,a],e.keywords),d=kf(),f=vn(A=>A.value&&A.value===u.current),g=vn(A=>l||s.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);p.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(pd,b),()=>A.removeEventListener(pd,b)},[g,e.onSelect,e.disabled]);function b(){var A,I;m(),(I=(A=c.current).onSelect)==null||I.call(A,u.current)}function m(){d.setState("value",u.current,!0)}if(!g)return null;let{disabled:h,value:v,onSelect:x,forceMount:w,keywords:C,...S}=e;return p.createElement(st.div,{ref:Yt(a,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!f,"data-disabled":!!h,"data-selected":!!f,onPointerMove:h||s.getDisablePointerSelection()?void 0:m,onClick:h?void 0:b},e.children)}),A2=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Le(),s=p.useRef(null),c=p.useRef(null),l=Le(),u=No(),d=vn(g=>o||u.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);Fn(()=>u.group(i),[]),jx(i,s,[e.value,e.heading,c]);let f=p.useMemo(()=>({id:i,forceMount:o}),[o]);return p.createElement(st.div,{ref:Yt(s,t),...a,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&p.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Ai(e,g=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},p.createElement(kx.Provider,{value:f},g))))}),R2=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=p.useRef(null),a=vn(i=>!i.search);return!n&&!a?null:p.createElement(st.div,{ref:Yt(o,t),...r,"cmdk-separator":"",role:"separator"})}),P2=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=kf(),i=vn(l=>l.search),s=vn(l=>l.selectedItemId),c=No();return p.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),p.createElement(st.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:l=>{o||a.setState("search",l.target.value),n?.(l.target.value)}})}),O2=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=p.useRef(null),i=p.useRef(null),s=vn(l=>l.selectedItemId),c=No();return p.useEffect(()=>{if(i.current&&a.current){let l=i.current,u=a.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let g=l.offsetHeight;u.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(d),f.unobserve(l)}}},[]),p.createElement(st.div,{ref:Yt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},Ai(e,l=>p.createElement("div",{ref:Yt(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),T2=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return p.createElement(Ci,{open:n,onOpenChange:r},p.createElement(Nf,{container:i},p.createElement(Si,{"cmdk-overlay":"",className:o}),p.createElement(Ii,{"aria-label":e.label,"cmdk-dialog":"",className:a},p.createElement(Fx,{ref:t,...s}))))}),_2=p.forwardRef((e,t)=>vn(n=>n.filtered.count===0)?p.createElement(st.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),M2=p.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return p.createElement(st.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ai(e,i=>p.createElement("div",{"aria-hidden":!0},i)))}),Xn=Object.assign(Fx,{List:O2,Item:E2,Input:P2,Group:A2,Separator:R2,Dialog:T2,Empty:_2,Loading:M2});function D2(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function N2(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Bx(e){let t=p.useRef(e);return Fn(()=>{t.current=e}),t}var Fn=typeof window>"u"?p.useEffect:p.useLayoutEffect;function ar(e){let t=p.useRef();return t.current===void 0&&(t.current=e()),t}function vn(e){let t=kf(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function jx(e,t,n,r=[]){let o=p.useRef(),a=No();return Fn(()=>{var i;let s=(()=>{var l;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(l=u.current.textContent)==null?void 0:l.trim():o.current}})(),c=r.map(l=>l.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(or,s),o.current=s}),o}var k2=()=>{let[e,t]=p.useState(),n=ar(()=>new Map);return Fn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function F2(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ai({asChild:e,children:t},n){return e&&p.isValidElement(t)?p.cloneElement(F2(t),{ref:t.ref},n(t.props.children)):n(t)}var B2={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Gx({...e}){return y.jsx(Ci,{"data-slot":"dialog",...e})}function j2({...e}){return y.jsx(Ox,{"data-slot":"dialog-trigger",...e})}function Lx({...e}){return y.jsx(Nf,{"data-slot":"dialog-portal",...e})}function G2({...e}){return y.jsx(Ei,{"data-slot":"dialog-close",...e})}function Wx({className:e,...t}){return y.jsx(Si,{"data-slot":"dialog-overlay",className:D("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Vx({className:e,children:t,showCloseButton:n=!0,...r}){return y.jsxs(Lx,{"data-slot":"dialog-portal",children:[y.jsx(Wx,{}),y.jsxs(Ii,{"data-slot":"dialog-content",className:D("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...r,children:[t,n&&y.jsxs(Ei,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[y.jsx(ty,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Hx({className:e,...t}){return y.jsx("div",{"data-slot":"dialog-header",className:D("flex flex-col gap-2 text-center sm:text-left",e),...t})}function L2({className:e,...t}){return y.jsx("div",{"data-slot":"dialog-footer",className:D("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function $x({className:e,...t}){return y.jsx(Tx,{"data-slot":"dialog-title",className:D("text-lg leading-none font-semibold",e),...t})}function zx({className:e,...t}){return y.jsx(_x,{"data-slot":"dialog-description",className:D("text-muted-foreground text-sm",e),...t})}function Xx({className:e,...t}){return y.jsx(Xn,{"data-slot":"command",className:D("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function W2({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...a}){return y.jsxs(Gx,{...a,children:[y.jsxs(Hx,{className:"sr-only",children:[y.jsx($x,{children:e}),y.jsx(zx,{children:t})]}),y.jsx(Vx,{className:D("overflow-hidden p-0",r),showCloseButton:o,children:y.jsx(Xx,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function V2({className:e,...t}){return y.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[y.jsx(rE,{className:"size-4 shrink-0 opacity-50"}),y.jsx(Xn.Input,{"data-slot":"command-input",className:D("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function H2({className:e,...t}){return y.jsx(Xn.List,{"data-slot":"command-list",className:D("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function $2({...e}){return y.jsx(Xn.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function z2({className:e,...t}){return y.jsx(Xn.Group,{"data-slot":"command-group",className:D("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function X2({className:e,...t}){return y.jsx(Xn.Separator,{"data-slot":"command-separator",className:D("bg-border -mx-1 h-px",e),...t})}function Y2({className:e,...t}){return y.jsx(Xn.Item,{"data-slot":"command-item",className:D("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Z2({className:e,...t}){return y.jsx("span",{"data-slot":"command-shortcut",className:D("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}const q2=({title:e,className:t,titleClassName:n,header:r="",children:o})=>y.jsxs("div",{className:D("bg-white border border-gray-200 rounded-lg shadow",e?"p-4 mt-4":"p-2 items-center",t),children:[r,!r&&e&&y.jsx("h3",{className:D("text-xl text-black-900 font-semibold",n),children:e}),o]}),U2="dd/MM/yyyy",J2=({date:e,format:t=U2})=>e?y.jsx(y.Fragment,{children:dR(e,t)}):null;function K2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Yx=E.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Ri=()=>{const e=E.useContext(Yx);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};K2(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
60
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Q9="DialogDescriptionWarning",eG=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zI(Q9).contentName}}.`;return v.useEffect(()=>{const o=t.current?.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},Ec=PI,rb=DI,Ic=jI,Ac=LI,Tc=BI,ob=GI,ib=WI,Qa=HI,Xi='[cmdk-group=""]',gp='[cmdk-group-items=""]',tG='[cmdk-group-heading=""]',XI='[cmdk-item=""]',Hx=`${XI}:not([aria-disabled="true"])`,ym="cmdk-item-select",Yo="data-value",nG=(t,e,n)=>H3(t,e,n),YI=v.createContext(void 0),es=()=>v.useContext(YI),UI=v.createContext(void 0),ab=()=>v.useContext(UI),ZI=v.createContext(void 0),JI=v.forwardRef((t,e)=>{let n=Uo(()=>{var G,X;return{search:"",value:(X=(G=t.value)!=null?G:t.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Uo(()=>new Set),o=Uo(()=>new Map),i=Uo(()=>new Map),a=Uo(()=>new Set),s=KI(t),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=t,w=nt(),C=nt(),S=nt(),E=v.useRef(null),T=hG();uo(()=>{if(u!==void 0){let G=u.trim();n.current.value=G,I.emit()}},[u]),uo(()=>{T(6,N)},[]);let I=v.useMemo(()=>({subscribe:G=>(a.current.add(G),()=>a.current.delete(G)),snapshot:()=>n.current,setState:(G,X,Z)=>{var Y,ne,z,K;if(!Object.is(n.current[G],X)){if(n.current[G]=X,G==="search")D(),W(),T(1,A);else if(G==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ae=document.getElementById(S);ae?ae.focus():(Y=document.getElementById(w))==null||Y.focus()}if(T(7,()=>{var ae;n.current.selectedItemId=(ae=F())==null?void 0:ae.id,I.emit()}),Z||T(5,N),((ne=s.current)==null?void 0:ne.value)!==void 0){let ae=X??"";(K=(z=s.current).onValueChange)==null||K.call(z,ae);return}}I.emit()}},emit:()=>{a.current.forEach(G=>G())}}),[]),_=v.useMemo(()=>({value:(G,X,Z)=>{var Y;X!==((Y=i.current.get(G))==null?void 0:Y.value)&&(i.current.set(G,{value:X,keywords:Z}),n.current.filtered.items.set(G,P(X,Z)),T(2,()=>{W(),I.emit()}))},item:(G,X)=>(r.current.add(G),X&&(o.current.has(X)?o.current.get(X).add(G):o.current.set(X,new Set([G]))),T(3,()=>{D(),W(),n.current.value||A(),I.emit()}),()=>{i.current.delete(G),r.current.delete(G),n.current.filtered.items.delete(G);let Z=F();T(4,()=>{D(),Z?.getAttribute("id")===G&&A(),I.emit()})}),group:G=>(o.current.has(G)||o.current.set(G,new Set),()=>{i.current.delete(G),o.current.delete(G)}),filter:()=>s.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:S,labelId:C,listInnerRef:E}),[]);function P(G,X){var Z,Y;let ne=(Y=(Z=s.current)==null?void 0:Z.filter)!=null?Y:nG;return G?ne(G,n.current.search,X):0}function W(){if(!n.current.search||s.current.shouldFilter===!1)return;let G=n.current.filtered.items,X=[];n.current.filtered.groups.forEach(Y=>{let ne=o.current.get(Y),z=0;ne.forEach(K=>{let ae=G.get(K);z=Math.max(ae,z)}),X.push([Y,z])});let Z=E.current;j().sort((Y,ne)=>{var z,K;let ae=Y.getAttribute("id"),ie=ne.getAttribute("id");return((z=G.get(ie))!=null?z:0)-((K=G.get(ae))!=null?K:0)}).forEach(Y=>{let ne=Y.closest(gp);ne?ne.appendChild(Y.parentElement===ne?Y:Y.closest(`${gp} > *`)):Z.appendChild(Y.parentElement===Z?Y:Y.closest(`${gp} > *`))}),X.sort((Y,ne)=>ne[1]-Y[1]).forEach(Y=>{var ne;let z=(ne=E.current)==null?void 0:ne.querySelector(`${Xi}[${Yo}="${encodeURIComponent(Y[0])}"]`);z?.parentElement.appendChild(z)})}function A(){let G=j().find(Z=>Z.getAttribute("aria-disabled")!=="true"),X=G?.getAttribute(Yo);I.setState("value",X||void 0)}function D(){var G,X,Z,Y;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ne=0;for(let z of r.current){let K=(X=(G=i.current.get(z))==null?void 0:G.value)!=null?X:"",ae=(Y=(Z=i.current.get(z))==null?void 0:Z.keywords)!=null?Y:[],ie=P(K,ae);n.current.filtered.items.set(z,ie),ie>0&&ne++}for(let[z,K]of o.current)for(let ae of K)if(n.current.filtered.items.get(ae)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=ne}function N(){var G,X,Z;let Y=F();Y&&(((G=Y.parentElement)==null?void 0:G.firstChild)===Y&&((Z=(X=Y.closest(Xi))==null?void 0:X.querySelector(tG))==null||Z.scrollIntoView({block:"nearest"})),Y.scrollIntoView({block:"nearest"}))}function F(){var G;return(G=E.current)==null?void 0:G.querySelector(`${XI}[aria-selected="true"]`)}function j(){var G;return Array.from(((G=E.current)==null?void 0:G.querySelectorAll(Hx))||[])}function M(G){let X=j()[G];X&&I.setState("value",X.getAttribute(Yo))}function V(G){var X;let Z=F(),Y=j(),ne=Y.findIndex(K=>K===Z),z=Y[ne+G];(X=s.current)!=null&&X.loop&&(z=ne+G<0?Y[Y.length-1]:ne+G===Y.length?Y[0]:Y[ne+G]),z&&I.setState("value",z.getAttribute(Yo))}function k(G){let X=F(),Z=X?.closest(Xi),Y;for(;Z&&!Y;)Z=G>0?dG(Z,Xi):fG(Z,Xi),Y=Z?.querySelector(Hx);Y?I.setState("value",Y.getAttribute(Yo)):V(G)}let H=()=>M(j().length-1),U=G=>{G.preventDefault(),G.metaKey?H():G.altKey?k(1):V(1)},ee=G=>{G.preventDefault(),G.metaKey?M(0):G.altKey?k(-1):V(-1)};return v.createElement(Ut.div,{ref:e,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:G=>{var X;(X=y.onKeyDown)==null||X.call(y,G);let Z=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||Z))switch(G.key){case"n":case"j":{b&&G.ctrlKey&&U(G);break}case"ArrowDown":{U(G);break}case"p":case"k":{b&&G.ctrlKey&&ee(G);break}case"ArrowUp":{ee(G);break}case"Home":{G.preventDefault(),M(0);break}case"End":{G.preventDefault(),H();break}case"Enter":{G.preventDefault();let Y=F();if(Y){let ne=new Event(ym);Y.dispatchEvent(ne)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:mG},l),Oc(t,G=>v.createElement(UI.Provider,{value:I},v.createElement(YI.Provider,{value:_},G))))}),rG=v.forwardRef((t,e)=>{var n,r;let o=nt(),i=v.useRef(null),a=v.useContext(ZI),s=es(),l=KI(t),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;uo(()=>{if(!c)return s.item(o,a?.id)},[c]);let u=QI(o,i,[t.value,t.children,i],t.keywords),d=ab(),f=Br(T=>T.value&&T.value===u.current),h=Br(T=>c||s.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);v.useEffect(()=>{let T=i.current;if(!(!T||t.disabled))return T.addEventListener(ym,g),()=>T.removeEventListener(ym,g)},[h,t.onSelect,t.disabled]);function g(){var T,I;m(),(I=(T=l.current).onSelect)==null||I.call(T,u.current)}function m(){d.setState("value",u.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:w,forceMount:C,keywords:S,...E}=t;return v.createElement(Ut.div,{ref:er(i,e),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!f,"data-disabled":!!b,"data-selected":!!f,onPointerMove:b||s.getDisablePointerSelection()?void 0:m,onClick:b?void 0:g},t.children)}),oG=v.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:o,...i}=t,a=nt(),s=v.useRef(null),l=v.useRef(null),c=nt(),u=es(),d=Br(h=>o||u.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);uo(()=>u.group(a),[]),QI(a,s,[t.value,t.heading,l]);let f=v.useMemo(()=>({id:a,forceMount:o}),[o]);return v.createElement(Ut.div,{ref:er(s,e),...i,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Oc(t,h=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},v.createElement(ZI.Provider,{value:f},h))))}),iG=v.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,o=v.useRef(null),i=Br(a=>!a.search);return!n&&!i?null:v.createElement(Ut.div,{ref:er(o,e),...r,"cmdk-separator":"",role:"separator"})}),aG=v.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,o=t.value!=null,i=ab(),a=Br(c=>c.search),s=Br(c=>c.selectedItemId),l=es();return v.useEffect(()=>{t.value!=null&&i.setState("search",t.value)},[t.value]),v.createElement(Ut.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?t.value:a,onChange:c=>{o||i.setState("search",c.target.value),n?.(c.target.value)}})}),sG=v.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...o}=t,i=v.useRef(null),a=v.useRef(null),s=Br(c=>c.selectedItemId),l=es();return v.useEffect(()=>{if(a.current&&i.current){let c=a.current,u=i.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=c.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(c),()=>{cancelAnimationFrame(d),f.unobserve(c)}}},[]),v.createElement(Ut.div,{ref:er(i,e),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},Oc(t,c=>v.createElement("div",{ref:er(a,l.listInnerRef),"cmdk-list-sizer":""},c)))}),lG=v.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=t;return v.createElement(Ec,{open:n,onOpenChange:r},v.createElement(Ic,{container:a},v.createElement(Ac,{"cmdk-overlay":"",className:o}),v.createElement(Tc,{"aria-label":t.label,"cmdk-dialog":"",className:i},v.createElement(JI,{ref:e,...s}))))}),cG=v.forwardRef((t,e)=>Br(n=>n.filtered.count===0)?v.createElement(Ut.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),uG=v.forwardRef((t,e)=>{let{progress:n,children:r,label:o="Loading...",...i}=t;return v.createElement(Ut.div,{ref:e,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Oc(t,a=>v.createElement("div",{"aria-hidden":!0},a)))}),Ao=Object.assign(JI,{List:sG,Item:rG,Input:aG,Group:oG,Separator:iG,Dialog:lG,Empty:cG,Loading:uG});function dG(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function fG(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function KI(t){let e=v.useRef(t);return uo(()=>{e.current=t}),e}var uo=typeof window>"u"?v.useEffect:v.useLayoutEffect;function Uo(t){let e=v.useRef();return e.current===void 0&&(e.current=t()),e}function Br(t){let e=ab(),n=()=>t(e.snapshot());return v.useSyncExternalStore(e.subscribe,n,n)}function QI(t,e,n,r=[]){let o=v.useRef(),i=es();return uo(()=>{var a;let s=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(t,s,l),(a=e.current)==null||a.setAttribute(Yo,s),o.current=s}),o}var hG=()=>{let[t,e]=v.useState(),n=Uo(()=>new Map);return uo(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,o)=>{n.current.set(r,o),e({})}};function pG(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Oc({asChild:t,children:e},n){return t&&v.isValidElement(e)?v.cloneElement(pG(e),{ref:e.ref},n(e.props.children)):n(e)}var mG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function sb({...t}){return p.jsx(Ec,{"data-slot":"dialog",...t})}function eA({...t}){return p.jsx(rb,{"data-slot":"dialog-trigger",...t})}function tA({...t}){return p.jsx(Ic,{"data-slot":"dialog-portal",...t})}function xm({...t}){return p.jsx(Qa,{"data-slot":"dialog-close",...t})}function nA({className:t,...e}){return p.jsx(Ac,{"data-slot":"dialog-overlay",className:L("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function lb({className:t,children:e,showCloseButton:n=!0,...r}){return p.jsxs(tA,{"data-slot":"dialog-portal",children:[p.jsx(nA,{}),p.jsxs(Tc,{"data-slot":"dialog-content",className:L("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",t),...r,children:[e,n&&p.jsxs(Qa,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx(xg,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function cb({className:t,...e}){return p.jsx("div",{"data-slot":"dialog-header",className:L("flex flex-col gap-2 text-center sm:text-left",t),...e})}function rA({className:t,...e}){return p.jsx("div",{"data-slot":"dialog-footer",className:L("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function ub({className:t,...e}){return p.jsx(ob,{"data-slot":"dialog-title",className:L("text-lg leading-none font-semibold",t),...e})}function db({className:t,...e}){return p.jsx(ib,{"data-slot":"dialog-description",className:L("text-muted-foreground text-sm",t),...e})}function fb({className:t,...e}){return p.jsx(Ao,{"data-slot":"command",className:L("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...e})}function gG({title:t="Command Palette",description:e="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...i}){return p.jsxs(sb,{...i,children:[p.jsxs(cb,{className:"sr-only",children:[p.jsx(ub,{children:t}),p.jsx(db,{children:e})]}),p.jsx(lb,{className:L("overflow-hidden p-0",r),showCloseButton:o,children:p.jsx(fb,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function oA({containerClassName:t,className:e,...n}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:L("flex h-9 items-center gap-2 border-b px-3",t),children:[p.jsx(NM,{className:"size-4 shrink-0 opacity-50"}),p.jsx(Ao.Input,{"data-slot":"command-input",className:L("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...n})]})}function iA({className:t,...e}){return p.jsx(Ao.List,{"data-slot":"command-list",className:L("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...e})}function aA({...t}){return p.jsx(Ao.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function sA({className:t,...e}){return p.jsx(Ao.Group,{"data-slot":"command-group",className:L("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...e})}function bG({className:t,...e}){return p.jsx(Ao.Separator,{"data-slot":"command-separator",className:L("bg-border -mx-1 h-px",t),...e})}function wm({className:t,...e}){return p.jsx(Ao.Item,{"data-slot":"command-item",className:L("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function vG({className:t,...e}){return p.jsx("span",{"data-slot":"command-shortcut",className:L("text-muted-foreground ml-auto text-xs tracking-widest",t),...e})}const yG=({title:t,className:e,titleClassName:n,header:r="",children:o})=>p.jsxs("div",{className:L("bg-white border border-gray-200 rounded-lg shadow",t?"p-4 mt-4":"p-2 items-center",e),children:[r,!r&&t&&p.jsx("h3",{className:L("text-xl text-black-900 font-semibold",n),children:t}),o]}),xG=({onCreate:t,onDelete:e,showCreate:n=!0,className:r})=>p.jsxs("div",{className:L("h-full mt-6 flex gap-2",r),children:[p.jsxs(ci,{children:[p.jsx(An,{condition:n,children:p.jsx(vM,{color:"green",size:20,onClick:t,className:"cursor-pointer h-full"})}),p.jsx(so,{children:p.jsx("div",{className:"size-5"})})]}),p.jsx(xM,{color:"red",size:20,onClick:e,className:"cursor-pointer h-full"})]});var wG="Label",lA=v.forwardRef((t,e)=>p.jsx(Ut.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lA.displayName=wG;var CG=lA;function Ln({className:t,variant:e="default",...n}){return p.jsx(CG,{"data-slot":"label",className:L(gk({variant:e}),t),...n})}function Nc({description:t,className:e}){return p.jsx("p",{className:L("text-gray-500 text-xs mt-1",e),children:t})}const SG=({label:t,name:e,description:n,onCheckedChange:r,...o})=>p.jsxs("article",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(vI,{...o,id:e,onCheckedChange:r}),p.jsx(Ln,{htmlFor:e,children:t})]}),n&&p.jsx(Nc,{description:n})]}),EG=({title:t,description:e,onAction:n,children:r,cancelLabel:o="Cancel",actionLabel:i="Confirm",actionVariant:a="success",open:s,setOpen:l,controlled:c=!1})=>p.jsxs(sb,{...c&&{open:s,onOpenChange:l},children:[r&&p.jsx(eA,{asChild:!0,children:r}),p.jsxs(lb,{children:[p.jsxs(cb,{children:[t&&p.jsx(ub,{children:t}),e&&p.jsx(db,{children:e})]}),p.jsxs(rA,{children:[p.jsx(xm,{asChild:!0,children:p.jsx(nn,{variant:"secondary",children:o})}),p.jsx(xm,{asChild:!0,children:p.jsx(nn,{variant:a,onClick:n,children:i})})]})]})]}),IG=["top","right","bottom","left"],Fr=Math.min,Qt=Math.max,_l=Math.round,Hs=Math.floor,Jn=t=>({x:t,y:t}),AG={left:"right",right:"left",bottom:"top",top:"bottom"},TG={start:"end",end:"start"};function Cm(t,e,n){return Qt(t,Fr(e,n))}function Cr(t,e){return typeof t=="function"?t(e):t}function Sr(t){return t.split("-")[0]}function Ai(t){return t.split("-")[1]}function hb(t){return t==="x"?"y":"x"}function pb(t){return t==="y"?"height":"width"}const OG=new Set(["top","bottom"]);function Zn(t){return OG.has(Sr(t))?"y":"x"}function mb(t){return hb(Zn(t))}function NG(t,e,n){n===void 0&&(n=!1);const r=Ai(t),o=mb(t),i=pb(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Pl(a)),[a,Pl(a)]}function RG(t){const e=Pl(t);return[Sm(t),e,Sm(e)]}function Sm(t){return t.replace(/start|end/g,e=>TG[e])}const qx=["left","right"],zx=["right","left"],_G=["top","bottom"],PG=["bottom","top"];function MG(t,e,n){switch(t){case"top":case"bottom":return n?e?zx:qx:e?qx:zx;case"left":case"right":return e?_G:PG;default:return[]}}function DG(t,e,n,r){const o=Ai(t);let i=MG(Sr(t),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(Sm)))),i}function Pl(t){return t.replace(/left|right|bottom|top/g,e=>AG[e])}function kG(t){return{top:0,right:0,bottom:0,left:0,...t}}function cA(t){return typeof t!="number"?kG(t):{top:t,right:t,bottom:t,left:t}}function Ml(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Xx(t,e,n){let{reference:r,floating:o}=t;const i=Zn(e),a=mb(e),s=pb(a),l=Sr(e),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ai(e)){case"start":h[a]-=f*(n&&c?-1:1);break;case"end":h[a]+=f*(n&&c?-1:1);break}return h}const jG=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:d}=Xx(c,r,l),f=r,h={},g=0;for(let m=0;m<s.length;m++){const{name:b,fn:y}=s[m],{x:w,y:C,data:S,reset:E}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});u=w??u,d=C??d,h={...h,[b]:{...h[b],...S}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):E.rects),{x:u,y:d}=Xx(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}};async function Ta(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Cr(e,t),g=cA(h),b=s[f?d==="floating"?"reference":"floating":d],y=Ml(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},E=Ml(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-E.top+g.top)/S.y,bottom:(E.bottom-y.bottom+g.bottom)/S.y,left:(y.left-E.left+g.left)/S.x,right:(E.right-y.right+g.right)/S.x}}const LG=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=Cr(t,e)||{};if(c==null)return{};const d=cA(u),f={x:n,y:r},h=mb(o),g=pb(h),m=await a.getDimensions(c),b=h==="y",y=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[h]-f[h]-i.floating[g],E=f[h]-i.reference[h],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let I=T?T[C]:0;(!I||!await(a.isElement==null?void 0:a.isElement(T)))&&(I=s.floating[C]||i.floating[g]);const _=S/2-E/2,P=I/2-m[g]/2-1,W=Fr(d[y],P),A=Fr(d[w],P),D=W,N=I-m[g]-A,F=I/2-m[g]/2+_,j=Cm(D,F,N),M=!l.arrow&&Ai(o)!=null&&F!==j&&i.reference[g]/2-(F<D?W:A)-m[g]/2<0,V=M?F<D?F-D:F-N:0;return{[h]:f[h]+V,data:{[h]:j,centerOffset:F-j-V,...M&&{alignmentOffset:V}},reset:M}}}),BG=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Cr(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Sr(o),w=Zn(s),C=Sr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!m?[Pl(s)]:RG(s)),T=g!=="none";!f&&T&&E.push(...DG(s,m,g,S));const I=[s,...E],_=await Ta(e,b),P=[];let W=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(_[y]),d){const F=NG(o,a,S);P.push(_[F[0]],_[F[1]])}if(W=[...W,{placement:o,overflows:P}],!P.every(F=>F<=0)){var A,D;const F=(((A=i.flip)==null?void 0:A.index)||0)+1,j=I[F];if(j&&(!(d==="alignment"?w!==Zn(j):!1)||W.every(k=>Zn(k.placement)===w?k.overflows[0]>0:!0)))return{data:{index:F,overflows:W},reset:{placement:j}};let M=(D=W.filter(V=>V.overflows[0]<=0).sort((V,k)=>V.overflows[1]-k.overflows[1])[0])==null?void 0:D.placement;if(!M)switch(h){case"bestFit":{var N;const V=(N=W.filter(k=>{if(T){const H=Zn(k.placement);return H===w||H==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((k,H)=>k[1]-H[1])[0])==null?void 0:N[0];V&&(M=V);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Yx(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ux(t){return IG.some(e=>t[e]>=0)}const FG=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=Cr(t,e);switch(r){case"referenceHidden":{const i=await Ta(e,{...o,elementContext:"reference"}),a=Yx(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ux(a)}}}case"escaped":{const i=await Ta(e,{...o,altBoundary:!0}),a=Yx(i,n.floating);return{data:{escapedOffsets:a,escaped:Ux(a)}}}default:return{}}}}},uA=new Set(["left","top"]);async function GG(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Sr(n),s=Ai(n),l=Zn(n)==="y",c=uA.has(a)?-1:1,u=i&&l?-1:1,d=Cr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const $G=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=e,l=await GG(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},WG=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=Cr(t,e),c={x:n,y:r},u=await Ta(e,l),d=Zn(Sr(o)),f=hb(d);let h=c[f],g=c[d];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=h+u[b],C=h-u[y];h=Cm(w,h,C)}if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=g+u[b],C=g-u[y];g=Cm(w,g,C)}const m=s.fn({...e,[f]:h,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},VG=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Cr(t,e),u={x:n,y:r},d=Zn(o),f=hb(d);let h=u[f],g=u[d];const m=Cr(s,e),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const C=f==="y"?"height":"width",S=i.reference[f]-i.floating[C]+b.mainAxis,E=i.reference[f]+i.reference[C]-b.mainAxis;h<S?h=S:h>E&&(h=E)}if(c){var y,w;const C=f==="y"?"width":"height",S=uA.has(Sr(o)),E=i.reference[d]-i.floating[C]+(S&&((y=a.offset)==null?void 0:y[d])||0)+(S?0:b.crossAxis),T=i.reference[d]+i.reference[C]+(S?0:((w=a.offset)==null?void 0:w[d])||0)-(S?b.crossAxis:0);g<E?g=E:g>T&&(g=T)}return{[f]:h,[d]:g}}}},HG=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...c}=Cr(t,e),u=await Ta(e,c),d=Sr(o),f=Ai(o),h=Zn(o)==="y",{width:g,height:m}=i.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,b=f==="end"?"top":"bottom");const w=m-u.top-u.bottom,C=g-u.left-u.right,S=Fr(m-u[b],w),E=Fr(g-u[y],C),T=!e.middlewareData.shift;let I=S,_=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(_=C),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(I=w),T&&!f){const W=Qt(u.left,0),A=Qt(u.right,0),D=Qt(u.top,0),N=Qt(u.bottom,0);h?_=g-2*(W!==0||A!==0?W+A:Qt(u.left,u.right)):I=m-2*(D!==0||N!==0?D+N:Qt(u.top,u.bottom))}await l({...e,availableWidth:_,availableHeight:I});const P=await a.getDimensions(s.floating);return g!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function Rc(){return typeof window<"u"}function Ti(t){return dA(t)?(t.nodeName||"").toLowerCase():"#document"}function en(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ar(t){var e;return(e=(dA(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dA(t){return Rc()?t instanceof Node||t instanceof en(t).Node:!1}function Rn(t){return Rc()?t instanceof Element||t instanceof en(t).Element:!1}function tr(t){return Rc()?t instanceof HTMLElement||t instanceof en(t).HTMLElement:!1}function Zx(t){return!Rc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof en(t).ShadowRoot}const qG=new Set(["inline","contents"]);function ts(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=_n(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!qG.has(o)}const zG=new Set(["table","td","th"]);function XG(t){return zG.has(Ti(t))}const YG=[":popover-open",":modal"];function _c(t){return YG.some(e=>{try{return t.matches(e)}catch{return!1}})}const UG=["transform","translate","scale","rotate","perspective"],ZG=["transform","translate","scale","rotate","perspective","filter"],JG=["paint","layout","strict","content"];function gb(t){const e=bb(),n=Rn(t)?_n(t):t;return UG.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ZG.some(r=>(n.willChange||"").includes(r))||JG.some(r=>(n.contain||"").includes(r))}function KG(t){let e=Gr(t);for(;tr(e)&&!pi(e);){if(gb(e))return e;if(_c(e))return null;e=Gr(e)}return null}function bb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QG=new Set(["html","body","#document"]);function pi(t){return QG.has(Ti(t))}function _n(t){return en(t).getComputedStyle(t)}function Pc(t){return Rn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gr(t){if(Ti(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zx(t)&&t.host||ar(t);return Zx(e)?e.host:e}function fA(t){const e=Gr(t);return pi(e)?t.ownerDocument?t.ownerDocument.body:t.body:tr(e)&&ts(e)?e:fA(e)}function Oa(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=fA(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),a=en(o);if(i){const s=Em(a);return e.concat(a,a.visualViewport||[],ts(o)?o:[],s&&n?Oa(s):[])}return e.concat(o,Oa(o,[],n))}function Em(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hA(t){const e=_n(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=tr(t),i=o?t.offsetWidth:n,a=o?t.offsetHeight:r,s=_l(n)!==i||_l(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function vb(t){return Rn(t)?t:t.contextElement}function ni(t){const e=vb(t);if(!tr(e))return Jn(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=hA(e);let a=(i?_l(n.width):n.width)/r,s=(i?_l(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const e$=Jn(0);function pA(t){const e=en(t);return!bb()||!e.visualViewport?e$:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function t$(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==en(t)?!1:e}function fo(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=vb(t);let a=Jn(1);e&&(r?Rn(r)&&(a=ni(r)):a=ni(t));const s=t$(i,n,r)?pA(i):Jn(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=en(i),h=r&&Rn(r)?en(r):r;let g=f,m=Em(g);for(;m&&r&&h!==g;){const b=ni(m),y=m.getBoundingClientRect(),w=_n(m),C=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(m.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=C,c+=S,g=en(m),m=Em(g)}}return Ml({width:u,height:d,x:l,y:c})}function Mc(t,e){const n=Pc(t).scrollLeft;return e?e.left+n:fo(ar(t)).left+n}function mA(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Mc(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function n$(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",a=ar(r),s=e?_c(e.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Jn(1);const u=Jn(0),d=tr(r);if((d||!d&&!i)&&((Ti(r)!=="body"||ts(a))&&(l=Pc(r)),tr(r))){const h=fo(r);c=ni(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=a&&!d&&!i?mA(a,l):Jn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function r$(t){return Array.from(t.getClientRects())}function o$(t){const e=ar(t),n=Pc(t),r=t.ownerDocument.body,o=Qt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Qt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mc(t);const s=-n.scrollTop;return _n(r).direction==="rtl"&&(a+=Qt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Jx=25;function i$(t,e){const n=en(t),r=ar(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=bb();(!u||u&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Mc(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-h);g<=Jx&&(i-=g)}else c<=Jx&&(i+=c);return{width:i,height:a,x:s,y:l}}const a$=new Set(["absolute","fixed"]);function s$(t,e){const n=fo(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=tr(t)?ni(t):Jn(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function Kx(t,e,n){let r;if(e==="viewport")r=i$(t,n);else if(e==="document")r=o$(ar(t));else if(Rn(e))r=s$(e,n);else{const o=pA(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Ml(r)}function gA(t,e){const n=Gr(t);return n===e||!Rn(n)||pi(n)?!1:_n(n).position==="fixed"||gA(n,e)}function l$(t,e){const n=e.get(t);if(n)return n;let r=Oa(t,[],!1).filter(s=>Rn(s)&&Ti(s)!=="body"),o=null;const i=_n(t).position==="fixed";let a=i?Gr(t):t;for(;Rn(a)&&!pi(a);){const s=_n(a),l=gb(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&a$.has(o.position)||ts(a)&&!l&&gA(t,a))?r=r.filter(u=>u!==a):o=s,a=Gr(a)}return e.set(t,r),r}function c$(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const a=[...n==="clippingAncestors"?_c(e)?[]:l$(e,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,u)=>{const d=Kx(e,u,o);return c.top=Qt(d.top,c.top),c.right=Fr(d.right,c.right),c.bottom=Fr(d.bottom,c.bottom),c.left=Qt(d.left,c.left),c},Kx(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function u$(t){const{width:e,height:n}=hA(t);return{width:e,height:n}}function d$(t,e,n){const r=tr(e),o=ar(e),i=n==="fixed",a=fo(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=Jn(0);function c(){l.x=Mc(o)}if(r||!r&&!i)if((Ti(e)!=="body"||ts(o))&&(s=Pc(e)),r){const h=fo(e,!0,i,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?mA(o,s):Jn(0),d=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function bp(t){return _n(t).position==="static"}function Qx(t,e){if(!tr(t)||_n(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ar(t)===n&&(n=n.ownerDocument.body),n}function bA(t,e){const n=en(t);if(_c(t))return n;if(!tr(t)){let o=Gr(t);for(;o&&!pi(o);){if(Rn(o)&&!bp(o))return o;o=Gr(o)}return n}let r=Qx(t,e);for(;r&&XG(r)&&bp(r);)r=Qx(r,e);return r&&pi(r)&&bp(r)&&!gb(r)?n:r||KG(t)||n}const f$=async function(t){const e=this.getOffsetParent||bA,n=this.getDimensions,r=await n(t.floating);return{reference:d$(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function h$(t){return _n(t).direction==="rtl"}const p$={convertOffsetParentRelativeRectToViewportRelativeRect:n$,getDocumentElement:ar,getClippingRect:c$,getOffsetParent:bA,getElementRects:f$,getClientRects:r$,getDimensions:u$,getScale:ni,isElement:Rn,isRTL:h$};function vA(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function m$(t,e){let n=null,r;const o=ar(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||e(),!f||!h)return;const g=Hs(d),m=Hs(o.clientWidth-(u+f)),b=Hs(o.clientHeight-(d+h)),y=Hs(u),C={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Qt(0,Fr(1,l))||1};let S=!0;function E(T){const I=T[0].intersectionRatio;if(I!==l){if(!S)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}I===1&&!vA(c,t.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(t)}return a(!0),i}function yA(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=vb(t),u=o||i?[...c?Oa(c):[],...Oa(e)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&s?m$(c,n):null;let f=-1,h=null;a&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let g,m=l?fo(t):null;l&&b();function b(){const y=fo(t);m&&!vA(m,y)&&n(),m=y,g=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const g$=$G,b$=WG,v$=BG,y$=HG,x$=FG,ew=LG,w$=VG,C$=(t,e,n)=>{const r=new Map,o={platform:p$,...n},i={...o.platform,_c:r};return jG(t,e,{...o,platform:i})};var S$=typeof document<"u",E$=function(){},ul=S$?O.useLayoutEffect:E$;function Dl(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Dl(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!Dl(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function xA(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tw(t,e){const n=xA(t);return Math.round(e*n)/n}function vp(t){const e=v.useRef(t);return ul(()=>{e.current=t}),e}function I$(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,d]=v.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=v.useState(r);Dl(f,r)||h(r);const[g,m]=v.useState(null),[b,y]=v.useState(null),w=v.useCallback(k=>{k!==T.current&&(T.current=k,m(k))},[]),C=v.useCallback(k=>{k!==I.current&&(I.current=k,y(k))},[]),S=i||g,E=a||b,T=v.useRef(null),I=v.useRef(null),_=v.useRef(u),P=l!=null,W=vp(l),A=vp(o),D=vp(c),N=v.useCallback(()=>{if(!T.current||!I.current)return;const k={placement:e,strategy:n,middleware:f};A.current&&(k.platform=A.current),C$(T.current,I.current,k).then(H=>{const U={...H,isPositioned:D.current!==!1};F.current&&!Dl(_.current,U)&&(_.current=U,tc.flushSync(()=>{d(U)}))})},[f,e,n,A,D]);ul(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const F=v.useRef(!1);ul(()=>(F.current=!0,()=>{F.current=!1}),[]),ul(()=>{if(S&&(T.current=S),E&&(I.current=E),S&&E){if(W.current)return W.current(S,E,N);N()}},[S,E,N,W,P]);const j=v.useMemo(()=>({reference:T,floating:I,setReference:w,setFloating:C}),[w,C]),M=v.useMemo(()=>({reference:S,floating:E}),[S,E]),V=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!M.floating)return k;const H=tw(M.floating,u.x),U=tw(M.floating,u.y);return s?{...k,transform:"translate("+H+"px, "+U+"px)",...xA(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,M.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:N,refs:j,elements:M,floatingStyles:V}),[u,N,j,M,V])}const A$=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ew({element:r.current,padding:o}).fn(n):{}:r?ew({element:r,padding:o}).fn(n):{}}}},T$=(t,e)=>({...g$(t),options:[t,e]}),O$=(t,e)=>({...b$(t),options:[t,e]}),N$=(t,e)=>({...w$(t),options:[t,e]}),R$=(t,e)=>({...v$(t),options:[t,e]}),_$=(t,e)=>({...y$(t),options:[t,e]}),P$=(t,e)=>({...x$(t),options:[t,e]}),M$=(t,e)=>({...A$(t),options:[t,e]});var D$="Arrow",wA=v.forwardRef((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return p.jsx(fe.svg,{...i,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});wA.displayName=D$;var k$=wA,yb="Popper",[CA,sr]=xt(yb),[j$,SA]=CA(yb),EA=t=>{const{__scopePopper:e,children:n}=t,[r,o]=v.useState(null);return p.jsx(j$,{scope:e,anchor:r,onAnchorChange:o,children:n})};EA.displayName=yb;var IA="PopperAnchor",AA=v.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,i=SA(IA,n),a=v.useRef(null),s=Se(e,a),l=v.useRef(null);return v.useEffect(()=>{const c=l.current;l.current=r?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:p.jsx(fe.div,{...o,ref:s})});AA.displayName=IA;var xb="PopperContent",[L$,B$]=CA(xb),TA=v.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...m}=t,b=SA(xb,n),[y,w]=v.useState(null),C=Se(e,z=>w(z)),[S,E]=v.useState(null),T=Za(S),I=T?.width??0,_=T?.height??0,P=r+(i!=="center"?"-"+i:""),W=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(c)?c:[c],D=A.length>0,N={padding:W,boundary:A.filter(G$),altBoundary:D},{refs:F,floatingStyles:j,placement:M,isPositioned:V,middlewareData:k}=I$({strategy:"fixed",placement:P,whileElementsMounted:(...z)=>yA(...z,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[T$({mainAxis:o+_,alignmentAxis:a}),l&&O$({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?N$():void 0,...N}),l&&R$({...N}),_$({...N,apply:({elements:z,rects:K,availableWidth:ae,availableHeight:ie})=>{const{width:re,height:q}=K.reference,le=z.floating.style;le.setProperty("--radix-popper-available-width",`${ae}px`),le.setProperty("--radix-popper-available-height",`${ie}px`),le.setProperty("--radix-popper-anchor-width",`${re}px`),le.setProperty("--radix-popper-anchor-height",`${q}px`)}}),S&&M$({element:S,padding:s}),$$({arrowWidth:I,arrowHeight:_}),f&&P$({strategy:"referenceHidden",...N})]}),[H,U]=RA(M),ee=yt(g);lt(()=>{V&&ee?.()},[V,ee]);const G=k.arrow?.x,X=k.arrow?.y,Z=k.arrow?.centerOffset!==0,[Y,ne]=v.useState();return lt(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:V?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(L$,{scope:n,placedSide:H,onArrowChange:E,arrowX:G,arrowY:X,shouldHideArrow:Z,children:p.jsx(fe.div,{"data-side":H,"data-align":U,...m,ref:C,style:{...m.style,animation:V?void 0:"none"}})})})});TA.displayName=xb;var OA="PopperArrow",F$={top:"bottom",right:"left",bottom:"top",left:"right"},NA=v.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,i=B$(OA,r),a=F$[i.placedSide];return p.jsx("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},children:p.jsx(k$,{...o,ref:n,style:{...o.style,display:"block"}})})});NA.displayName=OA;function G$(t){return t!==null}var $$=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,a=o.arrow?.centerOffset!==0,s=a?0:t.arrowWidth,l=a?0:t.arrowHeight,[c,u]=RA(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=a?d:`${f}px`,m=`${-l}px`):c==="top"?(g=a?d:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=a?d:`${h}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=a?d:`${h}px`),{data:{x:g,y:m}}}});function RA(t){const[e,n="center"]=t.split("-");return[e,n]}var Oi=EA,Ni=AA,ns=TA,rs=NA,Dc="Popover",[_A]=xt(Dc,[sr]),os=sr(),[W$,Hr]=_A(Dc),PA=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=t,s=os(e),l=v.useRef(null),[c,u]=v.useState(!1),[d,f]=Rt({prop:r,defaultProp:o??!1,onChange:i,caller:Dc});return p.jsx(Oi,{...s,children:p.jsx(W$,{scope:e,contentId:nt(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:v.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.useCallback(()=>u(!1),[]),modal:a,children:n})})};PA.displayName=Dc;var MA="PopoverAnchor",DA=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=Hr(MA,n),i=os(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return v.useEffect(()=>(a(),()=>s()),[a,s]),p.jsx(Ni,{...i,...r,ref:e})});DA.displayName=MA;var kA="PopoverTrigger",jA=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=Hr(kA,n),i=os(n),a=Se(e,o.triggerRef),s=p.jsx(fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$A(o.open),...r,ref:a,onClick:oe(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:p.jsx(Ni,{asChild:!0,...i,children:s})});jA.displayName=kA;var wb="PopoverPortal",[V$,H$]=_A(wb,{forceMount:void 0}),LA=t=>{const{__scopePopover:e,forceMount:n,children:r,container:o}=t,i=Hr(wb,e);return p.jsx(V$,{scope:e,forceMount:n,children:p.jsx(ot,{present:n||i.open,children:p.jsx(Io,{asChild:!0,container:o,children:r})})})};LA.displayName=wb;var mi="PopoverContent",BA=v.forwardRef((t,e)=>{const n=H$(mi,t.__scopePopover),{forceMount:r=n.forceMount,...o}=t,i=Hr(mi,t.__scopePopover);return p.jsx(ot,{present:r||i.open,children:i.modal?p.jsx(z$,{...o,ref:e}):p.jsx(X$,{...o,ref:e})})});BA.displayName=mi;var q$=ao("PopoverContent.RemoveScroll"),z$=v.forwardRef((t,e)=>{const n=Hr(mi,t.__scopePopover),r=v.useRef(null),o=Se(e,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return Cc(a)},[]),p.jsx(Ka,{as:q$,allowPinchZoom:!0,children:p.jsx(FA,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(t.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:oe(t.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:oe(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),X$=v.forwardRef((t,e)=>{const n=Hr(mi,t.__scopePopover),r=v.useRef(!1),o=v.useRef(!1);return p.jsx(FA,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),FA=v.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=t,f=Hr(mi,n),h=os(n);return xc(),p.jsx(Ja,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(ns,{"data-state":$A(f.open),role:"dialog",id:f.contentId,...h,...d,ref:e,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),GA="PopoverClose",Y$=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=Hr(GA,n);return p.jsx(fe.button,{type:"button",...r,ref:e,onClick:oe(t.onClick,()=>o.onOpenChange(!1))})});Y$.displayName=GA;var U$="PopoverArrow",Z$=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=os(n);return p.jsx(rs,{...o,...r,ref:e})});Z$.displayName=U$;function $A(t){return t?"open":"closed"}var J$=PA,K$=DA,Q$=jA,eW=LA,tW=BA;function Cb({...t}){return p.jsx(J$,{"data-slot":"popover",...t})}function Sb({...t}){return p.jsx(Q$,{"data-slot":"popover-trigger",...t})}function Eb({className:t,align:e="center",sideOffset:n=4,...r}){return p.jsx(eW,{children:p.jsx(tW,{"data-slot":"popover-content",align:e,sideOffset:n,className:L("z-[102] w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})})}function nW({...t}){return p.jsx(K$,{"data-slot":"popover-anchor",...t})}var rW=t=>t.type==="checkbox",ia=t=>t instanceof Date,Ib=t=>t==null;const WA=t=>typeof t=="object";var ho=t=>!Ib(t)&&!Array.isArray(t)&&WA(t)&&!ia(t),oW=t=>ho(t)&&t.target?rW(t.target)?t.target.checked:t.target.value:t,iW=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,aW=(t,e)=>t.has(iW(e)),sW=t=>{const e=t.constructor&&t.constructor.prototype;return ho(e)&&e.hasOwnProperty("isPrototypeOf")},lW=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function VA(t){if(t instanceof Date)return new Date(t);const e=typeof FileList<"u"&&t instanceof FileList;if(lW&&(t instanceof Blob||e))return t;const n=Array.isArray(t);if(!n&&!(ho(t)&&sW(t)))return t;const r=n?[]:Object.create(Object.getPrototypeOf(t));for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=VA(t[o]));return r}var HA=t=>/^\w*$/.test(t),Im=t=>t===void 0,cW=t=>Array.isArray(t)?t.filter(Boolean):[],qA=t=>cW(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Xt=(t,e,n)=>{if(!e||!ho(t))return n;const r=(HA(e)?[e]:qA(e)).reduce((o,i)=>Ib(o)?o:o[i],t);return Im(r)||r===t?Im(t[e])?n:t[e]:r},yp=t=>typeof t=="boolean",qs=t=>typeof t=="function",nw=(t,e,n)=>{let r=-1;const o=HA(e)?[e]:qA(e),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const c=t[s];l=ho(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;t[s]=l,t=t[s]}};const rw={BLUR:"blur",CHANGE:"change"},ow={all:"all"},Ab=O.createContext(null);Ab.displayName="HookFormContext";const is=()=>O.useContext(Ab),uW=t=>{const{children:e,...n}=t;return O.createElement(Ab.Provider,{value:n},e)};var dW=(t,e,n,r=!0)=>{const o={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(o,i,{get:()=>{const a=i;return e._proxyFormState[a]!==ow.all&&(e._proxyFormState[a]=!r||ow.all),n&&(n[a]=!0),t[a]}});return o};const zA=typeof window<"u"?O.useLayoutEffect:O.useEffect;function XA(t){const e=is(),{control:n=e.control,disabled:r,name:o,exact:i}=t||{},[a,s]=O.useState(n._formState),l=O.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zA(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:c=>{!r&&s({...n._formState,...c})}}),[o,r,i]),O.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),O.useMemo(()=>dW(a,n,l.current,!1),[a,n])}var fW=t=>typeof t=="string",iw=(t,e,n,r,o)=>fW(t)?Xt(n,t,o):Array.isArray(t)?t.map(i=>Xt(n,i)):n,aw=t=>Ib(t)||!WA(t);function dl(t,e,n=new WeakSet){if(aw(t)||aw(e))return Object.is(t,e);if(ia(t)&&ia(e))return t.getTime()===e.getTime();const r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);for(const i of r){const a=t[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=e[i];if(ia(a)&&ia(s)||ho(a)&&ho(s)||Array.isArray(a)&&Array.isArray(s)?!dl(a,s,n):!Object.is(a,s))return!1}}return!0}function hW(t){const e=is(),{control:n=e.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=t||{},l=O.useRef(o),c=O.useRef(s),u=O.useRef(void 0),d=O.useRef(n),f=O.useRef(r);c.current=s;const[h,g]=O.useState(()=>{const S=n._getWatch(r,l.current);return c.current?c.current(S):S}),m=O.useCallback(S=>{const E=iw(r,n._names,S||n._formValues,!1,l.current);return c.current?c.current(E):E},[n._formValues,n._names,r]),b=O.useCallback(S=>{if(!i){const E=iw(r,n._names,S||n._formValues,!1,l.current);if(c.current){const T=c.current(E);dl(T,u.current)||(g(T),u.current=T)}else g(E)}},[n._formValues,n._names,i,r]);zA(()=>((d.current!==n||!dl(f.current,r))&&(d.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:S=>{b(S.values)}})),[n,a,r,b]),O.useEffect(()=>n._removeUnmounted());const y=d.current!==n,w=f.current,C=O.useMemo(()=>{if(i)return null;const S=!y&&!dl(w,r);return y||S?m():null},[i,y,r,w,m]);return C!==null?C:h}function pW(t){const e=is(),{name:n,disabled:r,control:o=e.control,shouldUnregister:i,defaultValue:a,exact:s=!0}=t,l=aW(o._names.array,n),c=O.useMemo(()=>Xt(o._formValues,n,Xt(o._defaultValues,n,a)),[o,n,a]),u=hW({control:o,name:n,defaultValue:c,exact:s}),d=XA({control:o,name:n,exact:s}),f=O.useRef(t),h=O.useRef(void 0),g=O.useRef(o.register(n,{...t.rules,value:u,...yp(t.disabled)?{disabled:t.disabled}:{}}));f.current=t;const m=O.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Xt(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!Xt(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Xt(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Xt(d.validatingFields,n)},error:{enumerable:!0,get:()=>Xt(d.errors,n)}}),[d,n]),b=O.useCallback(S=>g.current.onChange({target:{value:oW(S),name:n},type:rw.CHANGE}),[n]),y=O.useCallback(()=>g.current.onBlur({target:{value:Xt(o._formValues,n),name:n},type:rw.BLUR}),[n,o._formValues]),w=O.useCallback(S=>{const E=Xt(o._fields,n);E&&E._f&&S&&(E._f.ref={focus:()=>qs(S.focus)&&S.focus(),select:()=>qs(S.select)&&S.select(),setCustomValidity:T=>qs(S.setCustomValidity)&&S.setCustomValidity(T),reportValidity:()=>qs(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),C=O.useMemo(()=>({name:n,value:u,...yp(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,d.disabled,b,y,w,u]);return O.useEffect(()=>{const S=o._options.shouldUnregister||i,E=h.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...yp(f.current.disabled)?{disabled:f.current.disabled}:{}});const T=(I,_)=>{const P=Xt(o._fields,I);P&&P._f&&(P._f.mount=_)};if(T(n,!0),S){const I=VA(Xt(o._options.defaultValues,n,f.current.defaultValue));nw(o._defaultValues,n,I),Im(Xt(o._formValues,n))&&nw(o._formValues,n,I)}return!l&&o.register(n),h.current=n,()=>{(l?S&&!o._state.action:S)?o.unregister(n):T(n,!1)}},[n,o,l,i]),O.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),O.useMemo(()=>({field:C,formState:d,fieldState:m}),[C,d,m])}const mW=t=>t.render(pW(t)),YA=v.createContext({}),UA=v.createContext({}),kc=()=>{const t=v.useContext(YA),e=v.useContext(UA),{getFieldState:n}=is(),r=XA({name:t.name}),o=n(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},gW=uW,ZA=({...t})=>p.jsx(YA.Provider,{value:{name:t.name},children:p.jsx(mW,{...t})});function JA({className:t,...e}){const n=v.useId();return p.jsx(UA.Provider,{value:{id:n},children:p.jsx("div",{"data-slot":"form-item",className:L("grid gap-2",t),...e})})}function KA({className:t,...e}){const{error:n,formItemId:r}=kc();return p.jsx(Ln,{"data-slot":"form-label","data-error":!!n,className:L("data-[error=true]:text-destructive",t),htmlFor:r,...e})}function Tb({...t}){const{error:e,formItemId:n,formDescriptionId:r,formMessageId:o}=kc();return p.jsx(rr,{"data-slot":"form-control",id:n,"aria-describedby":e?`${r} ${o}`:`${r}`,"aria-invalid":!!e,...t})}function QA({className:t,...e}){const{formDescriptionId:n}=kc();return p.jsx("p",{"data-slot":"form-description",id:n,className:L("text-muted-foreground text-sm",t),...e})}function eT({className:t,...e}){const{error:n,formMessageId:r}=kc(),o=n?String(n?.message??""):e.children;return o?p.jsx("p",{"data-slot":"form-message",id:r,className:L("text-destructive text-sm",t),...e,children:o}):null}const bW=({hasFormControlWrapper:t=!1,children:e,...n})=>t?p.jsx(Tb,{...n,children:e}):p.jsx(rr,{...n,children:e}),Am=({value:t,isDisabled:e,hasAllOption:n,isMultiSelect:r,options:o,allOptionLabel:i,triggerPlaceholder:a,isFormControlWrapper:s,avoidCollisions:l,contentClassName:c,inputPlaceholder:u,emptyMessage:d,containerClassName:f,contentListClassName:h,closeOnSelect:g,label:m,handleSelectItem:b,handleSelectAll:y,onInputChange:w})=>{const[C,S]=O.useState(!1),E=T=>n&&r&&T?.length===o.length?i:r?T?.length&&Array.isArray(T)?T.map(I=>o.find(({value:_})=>_===I)?.label).filter(Boolean).join(", "):a:o.find(({value:I})=>I===T)?.label||a;return p.jsxs("article",{className:f,children:[m&&p.jsx(Ln,{className:"mb-2 block",children:m}),p.jsxs(Cb,{open:C,onOpenChange:S,children:[p.jsx(Sb,{asChild:!0,children:p.jsx(bW,{hasFormControlWrapper:!!s,children:p.jsxs(nn,{variant:"outline",role:"combobox",type:"button",className:L("w-full justify-between",!t&&"text-muted-foreground"),disabled:e,children:[p.jsx("span",{className:"w-full overflow-hidden text-left",children:E(t)}),p.jsx(gM,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})})}),p.jsx(Eb,{avoidCollisions:l,className:L("w-[200px] p-0 full-width-trigger",c),children:p.jsxs(fb,{children:[p.jsx(oA,{containerClassName:"rounded-b-none",className:"border-none! border-b-0!",placeholder:u,onValueChange:w}),p.jsxs(iA,{children:[p.jsx(aA,{children:d}),p.jsxs(sA,{className:L(h),children:[n&&r&&p.jsxs(wm,{value:"all",onSelect:()=>{y(t,o),g&&S(!1)},children:[i,p.jsx(ga,{className:L("ml-auto",t?.length===o.length?"opacity-100":"opacity-0")})]},"all"),o.map(T=>p.jsxs(wm,{value:T.label,onSelect:()=>{b(t,T),g&&S(!1)},children:[T.label,p.jsx(ga,{className:L("ml-auto",r?t?.includes(T.value)?"opacity-100":"opacity-0":T.value===t?"opacity-100":"opacity-0")})]},T.value))]})]})]})})]})]})},vW="dd/MM/yyyy",yW=({date:t,format:e=vW})=>t?p.jsx(p.Fragment,{children:LD(t,e)}):null,xW=({start:t,end:e,onConfirm:n,className:r,triggerButtonClassName:o,label:i,placeholder:a,confirmLabel:s,disabledCondition:l})=>{const[c,u]=O.useState(!1),[d,f]=O.useState({from:t,to:e}),h=()=>{!d.from||!d.to||(n({from:d.from,to:d.to}),u(!1))};return p.jsxs("div",{className:L("grid gap-2",r),children:[p.jsx(Ln,{children:i}),p.jsxs(Cb,{open:c,onOpenChange:u,children:[p.jsx(Sb,{asChild:!0,children:p.jsxs(nn,{id:"date",variant:"outline",className:L("h-auto text-muted-foreground justify-start text-left font-normal",!d&&"text-muted-foreground",o),children:[p.jsx(cM,{className:"mr-2 h-4 w-4"}),d?.from?d.to?p.jsxs(p.Fragment,{children:[Yn(d.from,"LLL dd, y")," - ",Yn(d.to,"LLL dd, y")]}):Yn(d.from,"LLL dd, y"):p.jsx("span",{children:a})]})}),p.jsxs(Eb,{className:"w-auto p-0",align:"start",children:[p.jsx(pE,{mode:"range",defaultMonth:d?.from,selected:d,onSelect:f,numberOfMonths:2,disabled:l,required:!0}),p.jsx("div",{className:"px-3 pb-4 pt-2",children:p.jsx(nn,{variant:"success",size:"sm",onClick:h,className:"w-full",children:s})})]})]})]})};function jc({className:t,type:e,...n}){return p.jsx("input",{type:e,"data-slot":"input",className:L("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...n})}function wW({value:t,onChange:e,className:n,inputClassName:r,name:o,placeholder:i,label:a}){const[s,l]=O.useState(t),c=O.useRef(null),u=O.useRef(e);O.useEffect(()=>{u.current=e},[e]);const d=O.useCallback(h=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{h.length>=3?u.current(h):u.current("")},300)},[]),f=h=>{const g=decodeURIComponent(h);l(g),d(g)};return p.jsxs("search",{className:L("w-full",n),children:[a&&p.jsx(Ln,{htmlFor:o,className:"leading-6 w-full",children:a}),p.jsx(jc,{type:"search",name:o,id:o,"data-test-id":o,placeholder:i,value:s,onChange:({target:h})=>f(h.value),className:L("max-h-9",r),autoFocus:!0})]})}function CW(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const tT=O.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),as=()=>{const t=O.useContext(tT);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};CW(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
61
61
|
[data-state=closed]
|
|
62
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Q2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function eF(){return Ff(/^Mac/)}function tF(){return Ff(/^iPhone/)}function Gb(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function nF(){return Ff(/^iPad/)||eF()&&navigator.maxTouchPoints>1}function Zx(){return tF()||nF()}function Ff(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const rF=24,oF=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Lb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Iu=typeof document<"u"&&window.visualViewport;function Wb(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function qx(e){for(Wb(e)&&(e=e.parentElement);e&&!Wb(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const aF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let sa=0,Eu;function iF(e={}){let{isDisabled:t}=e;oF(()=>{if(!t)return sa++,sa===1&&Zx()&&(Eu=sF()),()=>{sa--,sa===0&&Eu?.()}},[t])}function sF(){let e,t=0,n=d=>{e=qx(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let f=d.changedTouches[0].pageY,g=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((g<=0&&f>t||g>=b&&f<t)&&d.preventDefault(),t=f)},o=d=>{let f=d.target;md(f)&&f!==document.activeElement&&(d.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},a=d=>{let f=d.target;md(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Iu&&(Iu.height<window.innerHeight?requestAnimationFrame(()=>{Vb(f)}):Iu.addEventListener("resize",()=>Vb(f),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Lb(cF(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Lb(Gr(document,"touchstart",n,{passive:!1,capture:!0}),Gr(document,"touchmove",r,{passive:!1,capture:!0}),Gr(document,"touchend",o,{passive:!1,capture:!0}),Gr(document,"focus",a,!0),Gr(window,"scroll",i));return()=>{l(),u(),window.scrollTo(s,c)}}function cF(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Gr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Vb(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=qx(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+rF;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function md(e){return e instanceof HTMLInputElement&&!aF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lF(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uF(...e){return t=>e.forEach(n=>lF(n,t))}function Ux(...e){return p.useCallback(uF(...e),e)}const Jx=new WeakMap;function $e(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&Jx.set(e,r)}function dF(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Jx.get(e);n&&(e.style[t]=n[t])}const je=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function ca(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[je(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[je(t)?5:4]):null)}function fF(e){return 8*(Math.log(e+1)-2)}function Au(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function pF(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const _e={DURATION:.5,EASE:[.32,.72,0,1]},Kx=.4,mF=.25,hF=100,Qx=8,Pn=16,hd=26,Ru="vaul-dragging";function ew(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function gF({defaultProp:e,onChange:t}){const n=E.useState(e),[r]=n,o=E.useRef(r),a=ew(t);return E.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function tw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=gF({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=ew(n),c=E.useCallback(l=>{if(a){const d=typeof l=="function"?l(e):l;d!==e&&s(d)}else o(l)},[a,e,o,s]);return[i,c]}function bF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[u,d]=tw({prop:e,defaultProp:n?.[0],onChange:t}),[f,g]=E.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);E.useEffect(()=>{function I(){g({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const b=E.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),m=E.useMemo(()=>{var I;return(I=n?.findIndex(R=>R===u))!=null?I:null},[n,u]),h=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=E.useMemo(()=>{const I=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var R;return(R=n?.map(P=>{const M=typeof P=="string";let T=0;if(M&&(T=parseInt(P,10)),je(s)){const O=M?T:f?P*I.height:0;return f?s==="bottom"?I.height-O:-I.height+O:O}const B=M?T:f?P*I.width:0;return f?s==="right"?I.width-B:-I.width+B:B}))!=null?R:[]},[n,f,c]),x=E.useMemo(()=>m!==null?v?.[m]:null,[v,m]),w=E.useCallback(I=>{var R;const P=(R=v?.findIndex(M=>M===I))!=null?R:null;i(P),$e(r.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(s)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`}),v&&P!==v.length-1&&a!==void 0&&P!==a&&P<a?$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"0"}):$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),d(n?.[Math.max(P,0)])},[r.current,n,v,a,o,d]);E.useEffect(()=>{if(u||e){var I;const R=(I=n?.findIndex(P=>P===e||P===u))!=null?I:-1;v&&R!==-1&&typeof v[R]=="number"&&w(v[R])}},[u,e,n,v,w]);function C({draggedDistance:I,closeDrawer:R,velocity:P,dismissible:M}){if(a===void 0)return;const T=s==="bottom"||s==="right"?(x??0)-I:(x??0)+I,B=m===a-1,O=m===0,L=I>0;if(B&&$e(o.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),!l&&P>2&&!L){M?R():w(v[0]);return}if(!l&&P>2&&L&&v&&n){w(v[n.length-1]);return}const W=v?.reduce(($,N)=>typeof $!="number"||typeof N!="number"?$:Math.abs(N-T)<Math.abs($-T)?N:$),j=je(s)?window.innerHeight:window.innerWidth;if(P>Kx&&Math.abs(I)<j*.4){const $=L?1:-1;if($>0&&b&&n){w(v[n.length-1]);return}if(O&&$<0&&M&&R(),m===null)return;w(v[m+$]);return}w(W)}function S({draggedDistance:I}){if(x===null)return;const R=s==="bottom"||s==="right"?x-I:x+I;(s==="bottom"||s==="right")&&R<v[v.length-1]||(s==="top"||s==="left")&&R>v[v.length-1]||$e(r.current,{transform:je(s)?`translate3d(0, ${R}px, 0)`:`translate3d(${R}px, 0, 0)`})}function A(I,R){if(!n||typeof m!="number"||!v||a===void 0)return null;const P=m===a-1;if(m>=a&&R)return 0;if(P&&!R)return 1;if(!h&&!P)return null;const T=P?m+1:m-1,B=P?v[T]-v[T-1]:v[T+1]-v[T],O=I/Math.abs(B);return P?1-O:O}return{isLastSnapPoint:b,activeSnapPoint:u,shouldFade:h,getPercentageDragged:A,setActiveSnapPoint:d,activeSnapPointIndex:m,onRelease:C,onDrag:S,snapPointsOffset:v}}const vF=()=>()=>{};function yF(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Ri(),a=E.useRef(null),i=E.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-hd)/window.innerWidth}E.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;pF(r&&!o?Au(document.body,{background:"black"}):vF,Au(c,{transformOrigin:je(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`}));const l=Au(c,{borderRadius:`${Qx}px`,overflow:"hidden",...je(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{l(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},_e.DURATION*1e3)}}},[t,n,i])}let Lr=null;function xF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=E.useState(()=>typeof window<"u"?window.location.href:""),c=E.useRef(0),l=E.useCallback(()=>{if(Gb()&&Lr===null&&e&&!a){Lr={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const g=f-window.innerHeight;g&&c.current>=f&&(document.body.style.top=`${-(c.current+g)}px`)}),300)}},[e]),u=E.useCallback(()=>{if(Gb()&&Lr!==null&&!a){const d=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Lr),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(f,d)}),Lr=null}},[i]);return E.useEffect(()=>{function d(){c.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),E.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),E.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,i,t,n,l,u]),{restorePositionSetting:u}}function wF({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=mF,scrollLockTimeout:l=hF,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:g,setActiveSnapPoint:b,fixed:m,modal:h=!0,onClose:v,nested:x,noBodyStyles:w=!1,direction:C="bottom",defaultOpen:S=!1,disablePreventScroll:A=!0,snapToSequentialPoint:I=!1,preventScrollRestoration:R=!1,repositionInputs:P=!0,onAnimationEnd:M,container:T,autoFocus:B=!1}){var O,L;const[W=!1,j]=tw({defaultProp:S,prop:e,onChange:Z=>{t?.(Z),!Z&&!x&&ot(),setTimeout(()=>{M?.(Z)},_e.DURATION*1e3),Z&&!h&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Z||(document.body.style.pointerEvents="auto")}}),[$,N]=E.useState(!1),[V,U]=E.useState(!1),[ee,k]=E.useState(!1),H=E.useRef(null),Y=E.useRef(null),z=E.useRef(null),J=E.useRef(null),G=E.useRef(null),q=E.useRef(!1),ae=E.useRef(null),re=E.useRef(0),te=E.useRef(!1),F=E.useRef(!S),de=E.useRef(0),_=E.useRef(null),Q=E.useRef(((O=_.current)==null?void 0:O.getBoundingClientRect().height)||0),ge=E.useRef(((L=_.current)==null?void 0:L.getBoundingClientRect().width)||0),xe=E.useRef(0),Te=E.useCallback(Z=>{a&&Z===Fe.length-1&&(Y.current=new Date)},[]),{activeSnapPoint:ye,activeSnapPointIndex:Se,setActiveSnapPoint:tt,onRelease:Ve,snapPointsOffset:Fe,onDrag:Ye,shouldFade:Ze,getPercentageDragged:rt}=bF({snapPoints:a,activeSnapPointProp:g,setActiveSnapPointProp:b,drawerRef:_,fadeFromIndex:f,overlayRef:H,onSnapPointChange:Te,direction:C,container:T,snapToSequentialPoint:I});iF({isDisabled:!W||V||!h||ee||!$||!P||!A});const{restorePositionSetting:ot}=xF({isOpen:W,modal:h,nested:x??!1,hasBeenOpened:$,preventScrollRestoration:R,noBodyStyles:w});function It(){return(window.innerWidth-hd)/window.innerWidth}function Bt(Z){var ce,K;!u&&!a||_.current&&!_.current.contains(Z.target)||(Q.current=((ce=_.current)==null?void 0:ce.getBoundingClientRect().height)||0,ge.current=((K=_.current)==null?void 0:K.getBoundingClientRect().width)||0,U(!0),z.current=new Date,Zx()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),Z.target.setPointerCapture(Z.pointerId),re.current=je(C)?Z.pageY:Z.pageX)}function lt(Z,ce){var K;let ne=Z;const ve=(K=window.getSelection())==null?void 0:K.toString(),me=_.current?ca(_.current,C):null,Be=new Date;if(ne.tagName==="SELECT"||ne.hasAttribute("data-vaul-no-drag")||ne.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(Y.current&&Be.getTime()-Y.current.getTime()<500)return!1;if(me!==null&&(C==="bottom"?me>0:me<0))return!0;if(ve&&ve.length>0)return!1;if(G.current&&Be.getTime()-G.current.getTime()<l&&me===0||ce)return G.current=Be,!1;for(;ne;){if(ne.scrollHeight>ne.clientHeight){if(ne.scrollTop!==0)return G.current=new Date,!1;if(ne.getAttribute("role")==="dialog")return!0}ne=ne.parentNode}return!0}function rn(Z){if(_.current&&V){const ce=C==="bottom"||C==="right"?1:-1,K=(re.current-(je(C)?Z.pageY:Z.pageX))*ce,ne=K>0,ve=a&&!u&&!ne;if(ve&&Se===0)return;const me=Math.abs(K),Be=document.querySelector("[data-vaul-drawer-wrapper]"),dt=C==="bottom"||C==="top"?Q.current:ge.current;let nt=me/dt;const Et=rt(me,ne);if(Et!==null&&(nt=Et),ve&&nt>=1||!q.current&&!lt(Z.target,ne))return;if(_.current.classList.add(Ru),q.current=!0,$e(_.current,{transition:"none"}),$e(H.current,{transition:"none"}),a&&Ye({draggedDistance:K}),ne&&!a){const jt=fF(K),zo=Math.min(jt*-1,0)*ce;$e(_.current,{transform:je(C)?`translate3d(0, ${zo}px, 0)`:`translate3d(${zo}px, 0, 0)`});return}const bt=1-nt;if((Ze||f&&Se===f-1)&&(r?.(Z,nt),$e(H.current,{opacity:`${bt}`,transition:"none"},!0)),Be&&H.current&&i){const jt=Math.min(It()+nt*(1-It()),1),zo=8-nt*8,wp=Math.max(0,14-nt*14);$e(Be,{borderRadius:`${zo}px`,transform:je(C)?`scale(${jt}) translate3d(0, ${wp}px, 0)`:`scale(${jt}) translate3d(${wp}px, 0, 0)`,transition:"none"},!0)}if(!a){const jt=me*ce;$e(_.current,{transform:je(C)?`translate3d(0, ${jt}px, 0)`:`translate3d(${jt}px, 0, 0)`})}}}E.useEffect(()=>{window.requestAnimationFrame(()=>{F.current=!0})},[]),E.useEffect(()=>{var Z;function ce(){if(!_.current||!P)return;const K=document.activeElement;if(md(K)||te.current){var ne;const ve=((ne=window.visualViewport)==null?void 0:ne.height)||0,me=window.innerHeight;let Be=me-ve;const dt=_.current.getBoundingClientRect().height||0,nt=dt>me*.8;xe.current||(xe.current=dt);const Et=_.current.getBoundingClientRect().top;if(Math.abs(de.current-Be)>60&&(te.current=!te.current),a&&a.length>0&&Fe&&Se){const bt=Fe[Se]||0;Be+=bt}if(de.current=Be,dt>ve||te.current){const bt=_.current.getBoundingClientRect().height;let jt=bt;bt>ve&&(jt=ve-(nt?Et:hd)),m?_.current.style.height=`${bt-Math.max(Be,0)}px`:_.current.style.height=`${Math.max(jt,ve-Et)}px`}else Q2()||(_.current.style.height=`${xe.current}px`);a&&a.length>0&&!te.current?_.current.style.bottom="0px":_.current.style.bottom=`${Math.max(Be,0)}px`}}return(Z=window.visualViewport)==null||Z.addEventListener("resize",ce),()=>{var K;return(K=window.visualViewport)==null?void 0:K.removeEventListener("resize",ce)}},[Se,a,Fe]);function ut(Z){on(),v?.(),Z||j(!1),setTimeout(()=>{a&&tt(a[0])},_e.DURATION*1e3)}function Ue(){if(!_.current)return;const Z=document.querySelector("[data-vaul-drawer-wrapper]"),ce=ca(_.current,C);$e(_.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),$e(H.current,{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),i&&ce&&ce>0&&W&&$e(Z,{borderRadius:`${Qx}px`,overflow:"hidden",...je(C)?{transform:`scale(${It()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${It()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`},!0)}function on(){!V||!_.current||(_.current.classList.remove(Ru),q.current=!1,U(!1),J.current=new Date)}function An(Z){if(!V||!_.current)return;_.current.classList.remove(Ru),q.current=!1,U(!1),J.current=new Date;const ce=ca(_.current,C);if(!Z||!lt(Z.target,!1)||!ce||Number.isNaN(ce)||z.current===null)return;const K=J.current.getTime()-z.current.getTime(),ne=re.current-(je(C)?Z.pageY:Z.pageX),ve=Math.abs(ne)/K;if(ve>.05&&(k(!0),setTimeout(()=>{k(!1)},200)),a){Ve({draggedDistance:ne*(C==="bottom"||C==="right"?1:-1),closeDrawer:ut,velocity:ve,dismissible:u}),o?.(Z,!0);return}if(C==="bottom"||C==="right"?ne>0:ne<0){Ue(),o?.(Z,!0);return}if(ve>Kx){ut(),o?.(Z,!1);return}var me;const Be=Math.min((me=_.current.getBoundingClientRect().height)!=null?me:0,window.innerHeight);var dt;const nt=Math.min((dt=_.current.getBoundingClientRect().width)!=null?dt:0,window.innerWidth),Et=C==="left"||C==="right";if(Math.abs(ce)>=(Et?nt:Be)*c){ut(),o?.(Z,!1);return}o?.(Z,!0),Ue()}E.useEffect(()=>(W&&($e(document.documentElement,{scrollBehavior:"auto"}),Y.current=new Date),()=>{dF(document.documentElement,"scrollBehavior")}),[W]);function Mr(Z){const ce=Z?(window.innerWidth-Pn)/window.innerWidth:1,K=Z?-Pn:0;ae.current&&window.clearTimeout(ae.current),$e(_.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(C)?`scale(${ce}) translate3d(0, ${K}px, 0)`:`scale(${ce}) translate3d(${K}px, 0, 0)`}),!Z&&_.current&&(ae.current=setTimeout(()=>{const ne=ca(_.current,C);$e(_.current,{transition:"none",transform:je(C)?`translate3d(0, ${ne}px, 0)`:`translate3d(${ne}px, 0, 0)`})},500))}function qn(Z,ce){if(ce<0)return;const K=(window.innerWidth-Pn)/window.innerWidth,ne=K+ce*(1-K),ve=-Pn+ce*Pn;$e(_.current,{transform:je(C)?`scale(${ne}) translate3d(0, ${ve}px, 0)`:`scale(${ne}) translate3d(${ve}px, 0, 0)`,transition:"none"})}function Dr(Z,ce){const K=je(C)?window.innerHeight:window.innerWidth,ne=ce?(K-Pn)/K:1,ve=ce?-Pn:0;ce&&$e(_.current,{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:je(C)?`scale(${ne}) translate3d(0, ${ve}px, 0)`:`scale(${ne}) translate3d(${ve}px, 0, 0)`})}return E.useEffect(()=>{h||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[h]),E.createElement(Ci,{defaultOpen:S,onOpenChange:Z=>{!u&&!Z||(Z?N(!0):ut(!0),j(Z))},open:W},E.createElement(Yx.Provider,{value:{activeSnapPoint:ye,snapPoints:a,setActiveSnapPoint:tt,drawerRef:_,overlayRef:H,onOpenChange:t,onPress:Bt,onRelease:An,onDrag:rn,dismissible:u,shouldAnimate:F,handleOnly:d,isOpen:W,isDragging:V,shouldFade:Ze,closeDrawer:ut,onNestedDrag:qn,onNestedOpenChange:Mr,onNestedRelease:Dr,keyboardIsOpen:te,modal:h,snapPointsOffset:Fe,activeSnapPointIndex:Se,direction:C,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:w,container:T,autoFocus:B}},n))}const CF=E.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:c}=Ri(),l=Ux(t,n),u=r&&r.length>0;if(!s)return null;const d=E.useCallback(f=>o(f),[o]);return E.createElement(Si,{onMouseUp:d,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":i&&u?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":c?.current?"true":"false",...e})});CF.displayName="Drawer.Overlay";const SF=E.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:g,direction:b,snapPoints:m,container:h,handleOnly:v,shouldAnimate:x,autoFocus:w}=Ri(),[C,S]=E.useState(!1),A=Ux(o,a),I=E.useRef(null),R=E.useRef(null),P=E.useRef(!1),M=m&&m.length>0;yF();const T=(O,L,W=0)=>{if(P.current)return!0;const j=Math.abs(O.y),$=Math.abs(O.x),N=$>j,V=["bottom","right"].includes(L)?1:-1;if(L==="left"||L==="right"){if(!(O.x*V<0)&&$>=0&&$<=W)return N}else if(!(O.y*V<0)&&j>=0&&j<=W)return!N;return P.current=!0,!0};E.useEffect(()=>{M&&window.requestAnimationFrame(()=>{S(!0)})},[]);function B(O){I.current=null,P.current=!1,s(O)}return E.createElement(Ii,{"data-vaul-drawer-direction":b,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":g&&M?"true":"false","data-vaul-custom-container":h?"true":"false","data-vaul-animate":x?.current?"true":"false",...r,ref:A,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:O=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,O),I.current={x:O.pageX,y:O.pageY},i(O))},onOpenAutoFocus:O=>{n?.(O),w||O.preventDefault()},onPointerDownOutside:O=>{if(e?.(O),!f||O.defaultPrevented){O.preventDefault();return}l.current&&(l.current=!1)},onFocusOutside:O=>{if(!f){O.preventDefault();return}},onPointerMove:O=>{if(R.current=O,v||(r.onPointerMove==null||r.onPointerMove.call(r,O),!I.current))return;const L=O.pageY-I.current.y,W=O.pageX-I.current.x,j=O.pointerType==="touch"?10:2;T({x:W,y:L},b,j)?c(O):(Math.abs(W)>j||Math.abs(L)>j)&&(I.current=null)},onPointerUp:O=>{r.onPointerUp==null||r.onPointerUp.call(r,O),I.current=null,P.current=!1,s(O)},onPointerOut:O=>{r.onPointerOut==null||r.onPointerOut.call(r,O),B(R.current)},onContextMenu:O=>{r.onContextMenu==null||r.onContextMenu.call(r,O),R.current&&B(R.current)}})});SF.displayName="Drawer.Content";const IF=250,EF=120,AF=E.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:g}=Ri(),b=E.useRef(null),m=E.useRef(!1);function h(){if(m.current){w();return}window.setTimeout(()=>{v()},EF)}function v(){if(a||e||m.current){w();return}if(w(),!i||i.length===0){l||o();return}if(s===i[i.length-1]&&l){o();return}const S=i.findIndex(I=>I===s);if(S===-1)return;const A=i[S+1];c(A)}function x(){b.current=window.setTimeout(()=>{m.current=!0},IF)}function w(){b.current&&window.clearTimeout(b.current),m.current=!1}return E.createElement("div",{onClick:h,onPointerCancel:w,onPointerDown:C=>{u&&f(C),x()},onPointerMove:C=>{u&&g(C)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},E.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});AF.displayName="Drawer.Handle";const RF={Root:wF};function PF({...e}){return y.jsx(RF.Root,{"data-slot":"drawer",...e})}const OF=["top","right","bottom","left"],yn=Math.min,pt=Math.max,Fa=Math.round,la=Math.floor,zt=e=>({x:e,y:e}),TF={left:"right",right:"left",bottom:"top",top:"bottom"},_F={start:"end",end:"start"};function gd(e,t,n){return pt(e,yn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function Ir(e){return e.split("-")[1]}function Bf(e){return e==="x"?"y":"x"}function jf(e){return e==="y"?"height":"width"}const MF=new Set(["top","bottom"]);function $t(e){return MF.has(pn(e))?"y":"x"}function Gf(e){return Bf($t(e))}function DF(e,t,n){n===void 0&&(n=!1);const r=Ir(e),o=Gf(e),a=jf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ba(i)),[i,Ba(i)]}function NF(e){const t=Ba(e);return[bd(e),t,bd(t)]}function bd(e){return e.replace(/start|end/g,t=>_F[t])}const Hb=["left","right"],$b=["right","left"],kF=["top","bottom"],FF=["bottom","top"];function BF(e,t,n){switch(e){case"top":case"bottom":return n?t?$b:Hb:t?Hb:$b;case"left":case"right":return t?kF:FF;default:return[]}}function jF(e,t,n,r){const o=Ir(e);let a=BF(pn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(bd)))),a}function Ba(e){return e.replace(/left|right|bottom|top/g,t=>TF[t])}function GF(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?GF(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zb(e,t,n){let{reference:r,floating:o}=e;const a=$t(t),i=Gf(t),s=jf(i),c=pn(t),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Ir(t)){case"start":g[i]-=f*(n&&l?-1:1);break;case"end":g[i]+=f*(n&&l?-1:1);break}return g}const LF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zb(l,r,c),f=r,g={},b=0;for(let m=0;m<s.length;m++){const{name:h,fn:v}=s[m],{x,y:w,data:C,reset:S}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});u=x??u,d=w??d,g={...g,[h]:{...g[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=zb(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}};async function fo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=fn(t,e),b=nw(g),h=s[f?d==="floating"?"reference":"floating":d],v=ja(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),x=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ja(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(v.top-S.top+b.top)/C.y,bottom:(S.bottom-v.bottom+b.bottom)/C.y,left:(v.left-S.left+b.left)/C.x,right:(S.right-v.right+b.right)/C.x}}const WF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=fn(e,t)||{};if(l==null)return{};const d=nw(u),f={x:n,y:r},g=Gf(o),b=jf(g),m=await i.getDimensions(l),h=g==="y",v=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[g]-f[g]-a.floating[b],S=f[g]-a.reference[g],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let I=A?A[w]:0;(!I||!await(i.isElement==null?void 0:i.isElement(A)))&&(I=s.floating[w]||a.floating[b]);const R=C/2-S/2,P=I/2-m[b]/2-1,M=yn(d[v],P),T=yn(d[x],P),B=M,O=I-m[b]-T,L=I/2-m[b]/2+R,W=gd(B,L,O),j=!c.arrow&&Ir(o)!=null&&L!==W&&a.reference[b]/2-(L<B?M:T)-m[b]/2<0,$=j?L<B?L-B:L-O:0;return{[g]:f[g]+$,data:{[g]:W,centerOffset:L-W-$,...j&&{alignmentOffset:$}},reset:j}}}),VF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...h}=fn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=pn(o),x=$t(s),w=pn(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=f||(w||!m?[Ba(s)]:NF(s)),A=b!=="none";!f&&A&&S.push(...jF(s,m,b,C));const I=[s,...S],R=await fo(t,h),P=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&P.push(R[v]),d){const L=DF(o,i,C);P.push(R[L[0]],R[L[1]])}if(M=[...M,{placement:o,overflows:P}],!P.every(L=>L<=0)){var T,B;const L=(((T=a.flip)==null?void 0:T.index)||0)+1,W=I[L];if(W&&(!(d==="alignment"?x!==$t(W):!1)||M.every(N=>$t(N.placement)===x?N.overflows[0]>0:!0)))return{data:{index:L,overflows:M},reset:{placement:W}};let j=(B=M.filter($=>$.overflows[0]<=0).sort(($,N)=>$.overflows[1]-N.overflows[1])[0])==null?void 0:B.placement;if(!j)switch(g){case"bestFit":{var O;const $=(O=M.filter(N=>{if(A){const V=$t(N.placement);return V===x||V==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(V=>V>0).reduce((V,U)=>V+U,0)]).sort((N,V)=>N[1]-V[1])[0])==null?void 0:O[0];$&&(j=$);break}case"initialPlacement":j=s;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function Xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yb(e){return OF.some(t=>e[t]>=0)}const HF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const a=await fo(t,{...o,elementContext:"reference"}),i=Xb(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Yb(i)}}}case"escaped":{const a=await fo(t,{...o,altBoundary:!0}),i=Xb(a,n.floating);return{data:{escapedOffsets:i,escaped:Yb(i)}}}default:return{}}}}},rw=new Set(["left","top"]);async function $F(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=pn(n),s=Ir(n),c=$t(n)==="y",l=rw.has(i)?-1:1,u=a&&c?-1:1,d=fn(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*u,y:f*l}:{x:f*l,y:g*u}}const zF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await $F(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},XF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:h=>{let{x:v,y:x}=h;return{x:v,y:x}}},...c}=fn(e,t),l={x:n,y:r},u=await fo(t,c),d=$t(pn(o)),f=Bf(d);let g=l[f],b=l[d];if(a){const h=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=g+u[h],w=g-u[v];g=gd(x,g,w)}if(i){const h=d==="y"?"top":"left",v=d==="y"?"bottom":"right",x=b+u[h],w=b-u[v];b=gd(x,b,w)}const m=s.fn({...t,[f]:g,[d]:b});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},YF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=fn(e,t),u={x:n,y:r},d=$t(o),f=Bf(d);let g=u[f],b=u[d];const m=fn(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=f==="y"?"height":"width",C=a.reference[f]-a.floating[w]+h.mainAxis,S=a.reference[f]+a.reference[w]-h.mainAxis;g<C?g=C:g>S&&(g=S)}if(l){var v,x;const w=f==="y"?"width":"height",C=rw.has(pn(o)),S=a.reference[d]-a.floating[w]+(C&&((v=i.offset)==null?void 0:v[d])||0)+(C?0:h.crossAxis),A=a.reference[d]+a.reference[w]+(C?0:((x=i.offset)==null?void 0:x[d])||0)-(C?h.crossAxis:0);b<S?b=S:b>A&&(b=A)}return{[f]:g,[d]:b}}}},ZF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=fn(e,t),u=await fo(t,l),d=pn(o),f=Ir(o),g=$t(o)==="y",{width:b,height:m}=a.floating;let h,v;d==="top"||d==="bottom"?(h=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,h=f==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=b-u.left-u.right,C=yn(m-u[h],x),S=yn(b-u[v],w),A=!t.middlewareData.shift;let I=C,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),A&&!f){const M=pt(u.left,0),T=pt(u.right,0),B=pt(u.top,0),O=pt(u.bottom,0);g?R=b-2*(M!==0||T!==0?M+T:pt(u.left,u.right)):I=m-2*(B!==0||O!==0?B+O:pt(u.top,u.bottom))}await c({...t,availableWidth:R,availableHeight:I});const P=await i.getDimensions(s.floating);return b!==P.width||m!==P.height?{reset:{rects:!0}}:{}}}};function Pi(){return typeof window<"u"}function Er(e){return ow(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(ow(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ow(e){return Pi()?e instanceof Node||e instanceof mt(e).Node:!1}function _t(e){return Pi()?e instanceof Element||e instanceof mt(e).Element:!1}function Zt(e){return Pi()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function Zb(e){return!Pi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}const qF=new Set(["inline","contents"]);function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qF.has(o)}const UF=new Set(["table","td","th"]);function JF(e){return UF.has(Er(e))}const KF=[":popover-open",":modal"];function Oi(e){return KF.some(t=>{try{return e.matches(t)}catch{return!1}})}const QF=["transform","translate","scale","rotate","perspective"],eB=["transform","translate","scale","rotate","perspective","filter"],tB=["paint","layout","strict","content"];function Lf(e){const t=Wf(),n=_t(e)?Mt(e):e;return QF.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||eB.some(r=>(n.willChange||"").includes(r))||tB.some(r=>(n.contain||"").includes(r))}function nB(e){let t=xn(e);for(;Zt(t)&&!gr(t);){if(Lf(t))return t;if(Oi(t))return null;t=xn(t)}return null}function Wf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rB=new Set(["html","body","#document"]);function gr(e){return rB.has(Er(e))}function Mt(e){return mt(e).getComputedStyle(e)}function Ti(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(Er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zb(e)&&e.host||Qt(e);return Zb(t)?t.host:t}function aw(e){const t=xn(e);return gr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&ko(t)?t:aw(t)}function po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=aw(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=mt(o);if(a){const s=vd(i);return t.concat(i,i.visualViewport||[],ko(o)?o:[],s&&n?po(s):[])}return t.concat(o,po(o,[],n))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iw(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Fa(n)!==a||Fa(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Vf(e){return _t(e)?e:e.contextElement}function cr(e){const t=Vf(e);if(!Zt(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=iw(t);let i=(a?Fa(n.width):n.width)/r,s=(a?Fa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const oB=zt(0);function sw(e){const t=mt(e);return!Wf()||!t.visualViewport?oB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aB(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vf(e);let i=zt(1);t&&(r?_t(r)&&(i=cr(r)):i=cr(e));const s=aB(a,n,r)?sw(a):zt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=mt(a),g=r&&_t(r)?mt(r):r;let b=f,m=vd(b);for(;m&&r&&g!==b;){const h=cr(m),v=m.getBoundingClientRect(),x=Mt(m),w=v.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,C=v.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,l*=h.y,u*=h.x,d*=h.y,c+=w,l+=C,b=mt(m),m=vd(b)}}return ja({width:u,height:d,x:c,y:l})}function _i(e,t){const n=Ti(e).scrollLeft;return t?t.left+n:Bn(Qt(e)).left+n}function cw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_i(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function iB(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Qt(r),s=t?Oi(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zt(1);const u=zt(0),d=Zt(r);if((d||!d&&!a)&&((Er(r)!=="body"||ko(i))&&(c=Ti(r)),Zt(r))){const g=Bn(r);l=cr(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const f=i&&!d&&!a?cw(i,c):zt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function sB(e){return Array.from(e.getClientRects())}function cB(e){const t=Qt(e),n=Ti(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_i(e);const s=-n.scrollTop;return Mt(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const qb=25;function lB(e,t){const n=mt(e),r=Qt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const u=Wf();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=_i(r);if(l<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(r.clientWidth-d.clientWidth-g);b<=qb&&(a-=b)}else l<=qb&&(a+=l);return{width:a,height:i,x:s,y:c}}const uB=new Set(["absolute","fixed"]);function dB(e,t){const n=Bn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Zt(e)?cr(e):zt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function Ub(e,t,n){let r;if(t==="viewport")r=lB(e,n);else if(t==="document")r=cB(Qt(e));else if(_t(t))r=dB(t,n);else{const o=sw(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ja(r)}function lw(e,t){const n=xn(e);return n===t||!_t(n)||gr(n)?!1:Mt(n).position==="fixed"||lw(n,t)}function fB(e,t){const n=t.get(e);if(n)return n;let r=po(e,[],!1).filter(s=>_t(s)&&Er(s)!=="body"),o=null;const a=Mt(e).position==="fixed";let i=a?xn(e):e;for(;_t(i)&&!gr(i);){const s=Mt(i),c=Lf(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&uB.has(o.position)||ko(i)&&!c&&lw(e,i))?r=r.filter(u=>u!==i):o=s,i=xn(i)}return t.set(e,r),r}function pB(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Oi(t)?[]:fB(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,u)=>{const d=Ub(t,u,o);return l.top=pt(d.top,l.top),l.right=yn(d.right,l.right),l.bottom=yn(d.bottom,l.bottom),l.left=pt(d.left,l.left),l},Ub(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mB(e){const{width:t,height:n}=iw(e);return{width:t,height:n}}function hB(e,t,n){const r=Zt(t),o=Qt(t),a=n==="fixed",i=Bn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=zt(0);function l(){c.x=_i(o)}if(r||!r&&!a)if((Er(t)!=="body"||ko(o))&&(s=Ti(t)),r){const g=Bn(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&l();a&&!r&&o&&l();const u=o&&!r&&!a?cw(o,s):zt(0),d=i.left+s.scrollLeft-c.x-u.x,f=i.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Pu(e){return Mt(e).position==="static"}function Jb(e,t){if(!Zt(e)||Mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function uw(e,t){const n=mt(e);if(Oi(e))return n;if(!Zt(e)){let o=xn(e);for(;o&&!gr(o);){if(_t(o)&&!Pu(o))return o;o=xn(o)}return n}let r=Jb(e,t);for(;r&&JF(r)&&Pu(r);)r=Jb(r,t);return r&&gr(r)&&Pu(r)&&!Lf(r)?n:r||nB(e)||n}const gB=async function(e){const t=this.getOffsetParent||uw,n=this.getDimensions,r=await n(e.floating);return{reference:hB(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bB(e){return Mt(e).direction==="rtl"}const vB={convertOffsetParentRelativeRectToViewportRelativeRect:iB,getDocumentElement:Qt,getClippingRect:pB,getOffsetParent:uw,getElementRects:gB,getClientRects:sB,getDimensions:mB,getScale:cr,isElement:_t,isRTL:bB};function dw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yB(e,t){let n=null,r;const o=Qt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=l;if(s||t(),!f||!g)return;const b=la(d),m=la(o.clientWidth-(u+f)),h=la(o.clientHeight-(d+g)),v=la(u),w={rootMargin:-b+"px "+-m+"px "+-h+"px "+-v+"px",threshold:pt(0,yn(1,c))||1};let C=!0;function S(A){const I=A[0].intersectionRatio;if(I!==c){if(!C)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!dw(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return i(!0),a}function fw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Vf(e),u=o||a?[...l?po(l):[],...po(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?yB(l,n):null;let f=-1,g=null;i&&(g=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let b,m=c?Bn(e):null;c&&h();function h(){const v=Bn(e);m&&!dw(m,v)&&n(),m=v,b=requestAnimationFrame(h)}return n(),()=>{var v;u.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),d?.(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const xB=zF,wB=XF,CB=VF,SB=ZF,IB=HF,Kb=WF,EB=YF,AB=(e,t,n)=>{const r=new Map,o={platform:vB,...n},a={...o.platform,_c:r};return LF(e,t,{...o,platform:a})};var RB=typeof document<"u",PB=function(){},ba=RB?E.useLayoutEffect:PB;function Ga(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(!Ga(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 a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ga(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function pw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qb(e,t){const n=pw(e);return Math.round(t*n)/n}function Ou(e){const t=p.useRef(e);return ba(()=>{t.current=e}),t}function OB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=p.useState(r);Ga(f,r)||g(r);const[b,m]=p.useState(null),[h,v]=p.useState(null),x=p.useCallback(N=>{N!==A.current&&(A.current=N,m(N))},[]),w=p.useCallback(N=>{N!==I.current&&(I.current=N,v(N))},[]),C=a||b,S=i||h,A=p.useRef(null),I=p.useRef(null),R=p.useRef(u),P=c!=null,M=Ou(c),T=Ou(o),B=Ou(l),O=p.useCallback(()=>{if(!A.current||!I.current)return;const N={placement:t,strategy:n,middleware:f};T.current&&(N.platform=T.current),AB(A.current,I.current,N).then(V=>{const U={...V,isPositioned:B.current!==!1};L.current&&!Ga(R.current,U)&&(R.current=U,ei.flushSync(()=>{d(U)}))})},[f,t,n,T,B]);ba(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[l]);const L=p.useRef(!1);ba(()=>(L.current=!0,()=>{L.current=!1}),[]),ba(()=>{if(C&&(A.current=C),S&&(I.current=S),C&&S){if(M.current)return M.current(C,S,O);O()}},[C,S,O,M,P]);const W=p.useMemo(()=>({reference:A,floating:I,setReference:x,setFloating:w}),[x,w]),j=p.useMemo(()=>({reference:C,floating:S}),[C,S]),$=p.useMemo(()=>{const N={position:n,left:0,top:0};if(!j.floating)return N;const V=Qb(j.floating,u.x),U=Qb(j.floating,u.y);return s?{...N,transform:"translate("+V+"px, "+U+"px)",...pw(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:U}},[n,s,j.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:O,refs:W,elements:j,floatingStyles:$}),[u,O,W,j,$])}const TB=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?Kb({element:r.current,padding:o}).fn(n):{}:r?Kb({element:r,padding:o}).fn(n):{}}}},_B=(e,t)=>({...xB(e),options:[e,t]}),MB=(e,t)=>({...wB(e),options:[e,t]}),DB=(e,t)=>({...EB(e),options:[e,t]}),NB=(e,t)=>({...CB(e),options:[e,t]}),kB=(e,t)=>({...SB(e),options:[e,t]}),FB=(e,t)=>({...IB(e),options:[e,t]}),BB=(e,t)=>({...TB(e),options:[e,t]});var jB="Arrow",mw=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return y.jsx(oe.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});mw.displayName=jB;var GB=mw,Hf="Popper",[hw,en]=ze(Hf),[LB,gw]=hw(Hf),bw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return y.jsx(LB,{scope:t,anchor:r,onAnchorChange:o,children:n})};bw.displayName=Hf;var vw="PopperAnchor",yw=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=gw(vw,n),i=p.useRef(null),s=pe(t,i),c=p.useRef(null);return p.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&a.onAnchorChange(c.current)}),r?null:y.jsx(oe.div,{...o,ref:s})});yw.displayName=vw;var $f="PopperContent",[WB,VB]=hw($f),xw=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,h=gw($f,n),[v,x]=p.useState(null),w=pe(t,G=>x(G)),[C,S]=p.useState(null),A=_o(C),I=A?.width??0,R=A?.height??0,P=r+(a!=="center"?"-"+a:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(l)?l:[l],B=T.length>0,O={padding:M,boundary:T.filter($B),altBoundary:B},{refs:L,floatingStyles:W,placement:j,isPositioned:$,middlewareData:N}=OB({strategy:"fixed",placement:P,whileElementsMounted:(...G)=>fw(...G,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[_B({mainAxis:o+R,alignmentAxis:i}),c&&MB({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?DB():void 0,...O}),c&&NB({...O}),kB({...O,apply:({elements:G,rects:q,availableWidth:ae,availableHeight:re})=>{const{width:te,height:F}=q.reference,de=G.floating.style;de.setProperty("--radix-popper-available-width",`${ae}px`),de.setProperty("--radix-popper-available-height",`${re}px`),de.setProperty("--radix-popper-anchor-width",`${te}px`),de.setProperty("--radix-popper-anchor-height",`${F}px`)}}),C&&BB({element:C,padding:s}),zB({arrowWidth:I,arrowHeight:R}),f&&FB({strategy:"referenceHidden",...O})]}),[V,U]=Sw(j),ee=qe(b);ke(()=>{$&&ee?.()},[$,ee]);const k=N.arrow?.x,H=N.arrow?.y,Y=N.arrow?.centerOffset!==0,[z,J]=p.useState();return ke(()=>{v&&J(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(WB,{scope:n,placedSide:V,onArrowChange:S,arrowX:k,arrowY:H,shouldHideArrow:Y,children:y.jsx(oe.div,{"data-side":V,"data-align":U,...m,ref:w,style:{...m.style,animation:$?void 0:"none"}})})})});xw.displayName=$f;var ww="PopperArrow",HB={top:"bottom",right:"left",bottom:"top",left:"right"},Cw=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=VB(ww,r),i=HB[a.placedSide];return y.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:y.jsx(GB,{...o,ref:n,style:{...o.style,display:"block"}})})});Cw.displayName=ww;function $B(e){return e!==null}var zB=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,u]=Sw(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+s/2,g=(o.arrow?.y??0)+c/2;let b="",m="";return l==="bottom"?(b=i?d:`${f}px`,m=`${-c}px`):l==="top"?(b=i?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(b=`${-c}px`,m=i?d:`${g}px`):l==="left"&&(b=`${r.floating.width+c}px`,m=i?d:`${g}px`),{data:{x:b,y:m}}}});function Sw(e){const[t,n="center"]=e.split("-");return[t,n]}var Fo=bw,Ar=yw,Bo=xw,jo=Cw,Tu="rovingFocusGroup.onEntryFocus",XB={bubbles:!1,cancelable:!0},Go="RovingFocusGroup",[yd,Iw,YB]=wo(Go),[ZB,Rr]=ze(Go,[YB]),[qB,UB]=ZB(Go),Ew=p.forwardRef((e,t)=>y.jsx(yd.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(yd.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(JB,{...e,ref:t})})}));Ew.displayName=Go;var JB=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=p.useRef(null),g=pe(t,f),b=wn(a),[m,h]=et({prop:i,defaultProp:s??null,onChange:c,caller:Go}),[v,x]=p.useState(!1),w=qe(l),C=Iw(n),S=p.useRef(!1),[A,I]=p.useState(0);return p.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(Tu,w),()=>R.removeEventListener(Tu,w)},[w]),y.jsx(qB,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:m,onItemFocus:p.useCallback(R=>h(R),[h]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>I(R=>R+1),[]),onFocusableItemRemove:p.useCallback(()=>I(R=>R-1),[]),children:y.jsx(oe.div,{tabIndex:v||A===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{S.current=!0}),onFocus:X(e.onFocus,R=>{const P=!S.current;if(R.target===R.currentTarget&&P&&!v){const M=new CustomEvent(Tu,XB);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const T=C().filter(j=>j.focusable),B=T.find(j=>j.active),O=T.find(j=>j.id===m),W=[B,O,...T].filter(Boolean).map(j=>j.ref.current);Pw(W,u)}}S.current=!1}),onBlur:X(e.onBlur,()=>x(!1))})})}),Aw="RovingFocusGroupItem",Rw=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=Le(),l=a||c,u=UB(Aw,n),d=u.currentTabStopId===l,f=Iw(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:m}=u;return p.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),y.jsx(yd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:y.jsx(oe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:X(e.onMouseDown,h=>{r?u.onItemFocus(l):h.preventDefault()}),onFocus:X(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:X(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const v=ej(h,u.orientation,u.dir);if(v!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const C=w.indexOf(h.currentTarget);w=u.loop?tj(w,C+1):w.slice(C+1)}setTimeout(()=>Pw(w))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:m!=null}):i})})});Rw.displayName=Aw;var KB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function QB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ej(e,t,n){const r=QB(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return KB[r]}function Pw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function tj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var zf=Ew,Xf=Rw,xd=["Enter"," "],nj=["ArrowDown","PageUp","Home"],Ow=["ArrowUp","PageDown","End"],rj=[...nj,...Ow],oj={ltr:[...xd,"ArrowRight"],rtl:[...xd,"ArrowLeft"]},aj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Lo="Menu",[mo,ij,sj]=wo(Lo),[Yn,Tw]=ze(Lo,[sj,en,Rr]),Mi=en(),_w=Rr(),[cj,Pr]=Yn(Lo),[lj,Wo]=Yn(Lo),Mw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Mi(t),[c,l]=p.useState(null),u=p.useRef(!1),d=qe(a),f=wn(o);return p.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),y.jsx(Fo,{...s,children:y.jsx(cj,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:y.jsx(lj,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};Mw.displayName=Lo;var uj="MenuAnchor",Yf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mi(n);return y.jsx(Ar,{...o,...r,ref:t})});Yf.displayName=uj;var dj="MenuPortal",[D9,Dw]=Yn(dj,{forceMount:void 0}),Ct="MenuContent",[fj,Zf]=Yn(Ct),Nw=p.forwardRef((e,t)=>{const n=Dw(Ct,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pr(Ct,e.__scopeMenu),i=Wo(Ct,e.__scopeMenu);return y.jsx(mo.Provider,{scope:e.__scopeMenu,children:y.jsx(Xe,{present:r||a.open,children:y.jsx(mo.Slot,{scope:e.__scopeMenu,children:i.modal?y.jsx(pj,{...o,ref:t}):y.jsx(mj,{...o,ref:t})})})})}),pj=p.forwardRef((e,t)=>{const n=Pr(Ct,e.__scopeMenu),r=p.useRef(null),o=pe(t,r);return p.useEffect(()=>{const a=r.current;if(a)return xi(a)},[]),y.jsx(qf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),mj=p.forwardRef((e,t)=>{const n=Pr(Ct,e.__scopeMenu);return y.jsx(qf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),hj=Dn("MenuContent.ScrollLock"),qf=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:g,disableOutsideScroll:b,...m}=e,h=Pr(Ct,n),v=Wo(Ct,n),x=Mi(n),w=_w(n),C=ij(n),[S,A]=p.useState(null),I=p.useRef(null),R=pe(t,I,h.onContentChange),P=p.useRef(0),M=p.useRef(""),T=p.useRef(0),B=p.useRef(null),O=p.useRef("right"),L=p.useRef(0),W=b?Do:p.Fragment,j=b?{as:hj,allowPinchZoom:!0}:void 0,$=V=>{const U=M.current+V,ee=C().filter(G=>!G.disabled),k=document.activeElement,H=ee.find(G=>G.ref.current===k)?.textValue,Y=ee.map(G=>G.textValue),z=Rj(Y,U,H),J=ee.find(G=>G.textValue===z)?.ref.current;(function G(q){M.current=q,window.clearTimeout(P.current),q!==""&&(P.current=window.setTimeout(()=>G(""),1e3))})(U),J&&setTimeout(()=>J.focus())};p.useEffect(()=>()=>window.clearTimeout(P.current),[]),vi();const N=p.useCallback(V=>O.current===B.current?.side&&Oj(V,B.current?.area),[]);return y.jsx(fj,{scope:n,searchRef:M,onItemEnter:p.useCallback(V=>{N(V)&&V.preventDefault()},[N]),onItemLeave:p.useCallback(V=>{N(V)||(I.current?.focus(),A(null))},[N]),onTriggerLeave:p.useCallback(V=>{N(V)&&V.preventDefault()},[N]),pointerGraceTimerRef:T,onPointerGraceIntentChange:p.useCallback(V=>{B.current=V},[]),children:y.jsx(W,{...j,children:y.jsx(Mo,{asChild:!0,trapped:o,onMountAutoFocus:X(a,V=>{V.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:g,children:y.jsx(zf,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:A,onEntryFocus:X(c,V=>{v.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Bo,{role:"menu","aria-orientation":"vertical","data-state":Uw(h.open),"data-radix-menu-content":"",dir:v.dir,...x,...m,ref:R,style:{outline:"none",...m.style},onKeyDown:X(m.onKeyDown,V=>{const ee=V.target.closest("[data-radix-menu-content]")===V.currentTarget,k=V.ctrlKey||V.altKey||V.metaKey,H=V.key.length===1;ee&&(V.key==="Tab"&&V.preventDefault(),!k&&H&&$(V.key));const Y=I.current;if(V.target!==Y||!rj.includes(V.key))return;V.preventDefault();const J=C().filter(G=>!G.disabled).map(G=>G.ref.current);Ow.includes(V.key)&&J.reverse(),Ej(J)}),onBlur:X(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(P.current),M.current="")}),onPointerMove:X(e.onPointerMove,ho(V=>{const U=V.target,ee=L.current!==V.clientX;if(V.currentTarget.contains(U)&&ee){const k=V.clientX>L.current?"right":"left";O.current=k,L.current=V.clientX}}))})})})})})})});Nw.displayName=Ct;var gj="MenuGroup",Uf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{role:"group",...r,ref:t})});Uf.displayName=gj;var bj="MenuLabel",kw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{...r,ref:t})});kw.displayName=bj;var La="MenuItem",ev="menu.itemSelect",Di=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=p.useRef(null),i=Wo(La,e.__scopeMenu),s=Zf(La,e.__scopeMenu),c=pe(t,a),l=p.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(ev,{bubbles:!0,cancelable:!0});d.addEventListener(ev,g=>r?.(g),{once:!0}),Bv(d,f),f.defaultPrevented?l.current=!1:i.onClose()}};return y.jsx(Fw,{...o,ref:c,disabled:n,onClick:X(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),l.current=!0},onPointerUp:X(e.onPointerUp,d=>{l.current||d.currentTarget?.click()}),onKeyDown:X(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||xd.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Di.displayName=La;var Fw=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Zf(La,n),s=_w(n),c=p.useRef(null),l=pe(t,c),[u,d]=p.useState(!1),[f,g]=p.useState("");return p.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[a.children]),y.jsx(mo.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:y.jsx(Xf,{asChild:!0,...s,focusable:!r,children:y.jsx(oe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:X(e.onPointerMove,ho(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(e.onPointerLeave,ho(b=>i.onItemLeave(b))),onFocus:X(e.onFocus,()=>d(!0)),onBlur:X(e.onBlur,()=>d(!1))})})})}),vj="MenuCheckboxItem",Bw=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return y.jsx(Vw,{scope:e.__scopeMenu,checked:n,children:y.jsx(Di,{role:"menuitemcheckbox","aria-checked":Wa(n)?"mixed":n,...o,ref:t,"data-state":Kf(n),onSelect:X(o.onSelect,()=>r?.(Wa(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bw.displayName=vj;var jw="MenuRadioGroup",[yj,xj]=Yn(jw,{value:void 0,onValueChange:()=>{}}),Gw=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=qe(r);return y.jsx(yj,{scope:e.__scopeMenu,value:n,onValueChange:a,children:y.jsx(Uf,{...o,ref:t})})});Gw.displayName=jw;var Lw="MenuRadioItem",Ww=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=xj(Lw,e.__scopeMenu),a=n===o.value;return y.jsx(Vw,{scope:e.__scopeMenu,checked:a,children:y.jsx(Di,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Kf(a),onSelect:X(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ww.displayName=Lw;var Jf="MenuItemIndicator",[Vw,wj]=Yn(Jf,{checked:!1}),Hw=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=wj(Jf,n);return y.jsx(Xe,{present:r||Wa(a.checked)||a.checked===!0,children:y.jsx(oe.span,{...o,ref:t,"data-state":Kf(a.checked)})})});Hw.displayName=Jf;var Cj="MenuSeparator",$w=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$w.displayName=Cj;var Sj="MenuArrow",zw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mi(n);return y.jsx(jo,{...o,...r,ref:t})});zw.displayName=Sj;var Ij="MenuSub",[N9,Xw]=Yn(Ij),qr="MenuSubTrigger",Yw=p.forwardRef((e,t)=>{const n=Pr(qr,e.__scopeMenu),r=Wo(qr,e.__scopeMenu),o=Xw(qr,e.__scopeMenu),a=Zf(qr,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),c(null)}},[s,c]),y.jsx(Yf,{asChild:!0,...l,children:y.jsx(Fw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Uw(n.open),...e,ref:Yt(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:X(e.onPointerMove,ho(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:X(e.onPointerLeave,ho(d=>{u();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,b=g==="right",m=b?-5:5,h=f[b?"left":"right"],v=f[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:f.top},{x:v,y:f.top},{x:v,y:f.bottom},{x:h,y:f.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:X(e.onKeyDown,d=>{const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||oj[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Yw.displayName=qr;var Zw="MenuSubContent",qw=p.forwardRef((e,t)=>{const n=Dw(Ct,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pr(Ct,e.__scopeMenu),i=Wo(Ct,e.__scopeMenu),s=Xw(Zw,e.__scopeMenu),c=p.useRef(null),l=pe(t,c);return y.jsx(mo.Provider,{scope:e.__scopeMenu,children:y.jsx(Xe,{present:r||a.open,children:y.jsx(mo.Slot,{scope:e.__scopeMenu,children:y.jsx(qf,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{i.isUsingKeyboardRef.current&&c.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:X(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:X(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:X(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=aj[i.dir].includes(u.key);d&&f&&(a.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});qw.displayName=Zw;function Uw(e){return e?"open":"closed"}function Wa(e){return e==="indeterminate"}function Kf(e){return Wa(e)?"indeterminate":e?"checked":"unchecked"}function Ej(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Aj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Rj(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Aj(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Pj(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],l=s.x,u=s.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function Oj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Pj(n,t)}function ho(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Tj=Mw,_j=Yf,Mj=Nw,Dj=Uf,Nj=kw,kj=Di,Fj=Bw,Bj=Gw,jj=Ww,Gj=Hw,Lj=$w,Wj=zw,Vj=Yw,Hj=qw,Ni="DropdownMenu",[$j]=ze(Ni,[Tw]),ct=Tw(),[zj,Jw]=$j(Ni),Kw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=ct(t),l=p.useRef(null),[u,d]=et({prop:o,defaultProp:a??!1,onChange:i,caller:Ni});return y.jsx(zj,{scope:t,triggerId:Le(),triggerRef:l,contentId:Le(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:s,children:y.jsx(Tj,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Kw.displayName=Ni;var Qw="DropdownMenuTrigger",Xj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Jw(Qw,n),i=ct(n);return y.jsx(_j,{asChild:!0,...i,children:y.jsx(oe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Yt(t,a.triggerRef),onPointerDown:X(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:X(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Xj.displayName=Qw;var eC="DropdownMenuContent",Yj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Jw(eC,n),a=ct(n),i=p.useRef(!1);return y.jsx(Mj,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:X(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:X(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Yj.displayName=eC;var Zj="DropdownMenuGroup",qj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Dj,{...o,...r,ref:t})});qj.displayName=Zj;var Uj="DropdownMenuLabel",Jj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Nj,{...o,...r,ref:t})});Jj.displayName=Uj;var Kj="DropdownMenuItem",Qj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(kj,{...o,...r,ref:t})});Qj.displayName=Kj;var eG="DropdownMenuCheckboxItem",tG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Fj,{...o,...r,ref:t})});tG.displayName=eG;var nG="DropdownMenuRadioGroup",rG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Bj,{...o,...r,ref:t})});rG.displayName=nG;var oG="DropdownMenuRadioItem",aG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(jj,{...o,...r,ref:t})});aG.displayName=oG;var iG="DropdownMenuItemIndicator",sG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Gj,{...o,...r,ref:t})});sG.displayName=iG;var cG="DropdownMenuSeparator",lG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Lj,{...o,...r,ref:t})});lG.displayName=cG;var uG="DropdownMenuArrow",dG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Wj,{...o,...r,ref:t})});dG.displayName=uG;var fG="DropdownMenuSubTrigger",pG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Vj,{...o,...r,ref:t})});pG.displayName=fG;var mG="DropdownMenuSubContent",hG=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ct(n);return y.jsx(Hj,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hG.displayName=mG;var gG=Kw;function bG({...e}){return y.jsx(gG,{"data-slot":"dropdown-menu",...e})}function vG({className:e,...t}){return y.jsx("div",{"data-slot":"empty",className:D("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function yG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-header",className:D("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const xG=So("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function wG({className:e,variant:t="default",...n}){return y.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:D(xG({variant:t,className:e})),...n})}function CG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-title",className:D("text-lg font-medium tracking-tight",e),...t})}function SG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-description",className:D("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function IG({className:e,...t}){return y.jsx("div",{"data-slot":"empty-content",className:D("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}function tC({message:e,className:t}){return y.jsx("p",{className:D("text-red-500 text-xs mt-2 has-error",t),children:e})}function nC({description:e,className:t}){return y.jsx("p",{className:D("text-gray-500 text-xs mt-1",t),children:e})}var EG=e=>e.type==="checkbox",Ur=e=>e instanceof Date,Qf=e=>e==null;const rC=e=>typeof e=="object";var jn=e=>!Qf(e)&&!Array.isArray(e)&&rC(e)&&!Ur(e),AG=e=>jn(e)&&e.target?EG(e.target)?e.target.checked:e.target.value:e,RG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,PG=(e,t)=>e.has(RG(t)),OG=e=>{const t=e.constructor&&e.constructor.prototype;return jn(t)&&t.hasOwnProperty("isPrototypeOf")},TG=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function oC(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(TG&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(jn(e)&&OG(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=oC(e[o]));return r}var aC=e=>/^\w*$/.test(e),wd=e=>e===void 0,_G=e=>Array.isArray(e)?e.filter(Boolean):[],iC=e=>_G(e.replace(/["|']|\]/g,"").split(/\.|\[/)),at=(e,t,n)=>{if(!t||!jn(e))return n;const r=(aC(t)?[t]:iC(t)).reduce((o,a)=>Qf(o)?o:o[a],e);return wd(r)||r===e?wd(e[t])?n:e[t]:r},_u=e=>typeof e=="boolean",ua=e=>typeof e=="function",tv=(e,t,n)=>{let r=-1;const o=aC(t)?[t]:iC(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=n;if(r!==i){const l=e[s];c=jn(l)||Array.isArray(l)?l:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const nv={BLUR:"blur",CHANGE:"change"},rv={all:"all"},ep=E.createContext(null);ep.displayName="HookFormContext";const ki=()=>E.useContext(ep),MG=e=>{const{children:t,...n}=e;return E.createElement(ep.Provider,{value:n},t)};var DG=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==rv.all&&(t._proxyFormState[i]=!r||rv.all),n&&(n[i]=!0),e[i]}});return o};const sC=typeof window<"u"?E.useLayoutEffect:E.useEffect;function cC(e){const t=ki(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=E.useState(n._formState),c=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sC(()=>n._subscribe({name:o,formState:c.current,exact:a,callback:l=>{!r&&s({...n._formState,...l})}}),[o,r,a]),E.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>DG(i,n,c.current,!1),[i,n])}var NG=e=>typeof e=="string",ov=(e,t,n,r,o)=>NG(e)?at(n,e,o):Array.isArray(e)?e.map(a=>at(n,a)):n,av=e=>Qf(e)||!rC(e);function va(e,t,n=new WeakSet){if(av(e)||av(t))return Object.is(e,t);if(Ur(e)&&Ur(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(Ur(i)&&Ur(s)||jn(i)&&jn(s)||Array.isArray(i)&&Array.isArray(s)?!va(i,s,n):!Object.is(i,s))return!1}}return!0}function kG(e){const t=ki(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=E.useRef(o),l=E.useRef(s),u=E.useRef(void 0),d=E.useRef(n),f=E.useRef(r);l.current=s;const[g,b]=E.useState(()=>{const C=n._getWatch(r,c.current);return l.current?l.current(C):C}),m=E.useCallback(C=>{const S=ov(r,n._names,C||n._formValues,!1,c.current);return l.current?l.current(S):S},[n._formValues,n._names,r]),h=E.useCallback(C=>{if(!a){const S=ov(r,n._names,C||n._formValues,!1,c.current);if(l.current){const A=l.current(S);va(A,u.current)||(b(A),u.current=A)}else b(S)}},[n._formValues,n._names,a,r]);sC(()=>((d.current!==n||!va(f.current,r))&&(d.current=n,f.current=r,h()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:C=>{h(C.values)}})),[n,i,r,h]),E.useEffect(()=>n._removeUnmounted());const v=d.current!==n,x=f.current,w=E.useMemo(()=>{if(a)return null;const C=!v&&!va(x,r);return v||C?m():null},[a,v,r,x,m]);return w!==null?w:g}function FG(e){const t=ki(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,c=PG(o._names.array,n),l=E.useMemo(()=>at(o._formValues,n,at(o._defaultValues,n,i)),[o,n,i]),u=kG({control:o,name:n,defaultValue:l,exact:s}),d=cC({control:o,name:n,exact:s}),f=E.useRef(e),g=E.useRef(void 0),b=E.useRef(o.register(n,{...e.rules,value:u,..._u(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!at(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!at(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!at(d.validatingFields,n)},error:{enumerable:!0,get:()=>at(d.errors,n)}}),[d,n]),h=E.useCallback(C=>b.current.onChange({target:{value:AG(C),name:n},type:nv.CHANGE}),[n]),v=E.useCallback(()=>b.current.onBlur({target:{value:at(o._formValues,n),name:n},type:nv.BLUR}),[n,o._formValues]),x=E.useCallback(C=>{const S=at(o._fields,n);S&&S._f&&C&&(S._f.ref={focus:()=>ua(C.focus)&&C.focus(),select:()=>ua(C.select)&&C.select(),setCustomValidity:A=>ua(C.setCustomValidity)&&C.setCustomValidity(A),reportValidity:()=>ua(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),w=E.useMemo(()=>({name:n,value:u,..._u(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:h,onBlur:v,ref:x}),[n,r,d.disabled,h,v,x,u]);return E.useEffect(()=>{const C=o._options.shouldUnregister||a,S=g.current;S&&S!==n&&!c&&o.unregister(S),o.register(n,{...f.current.rules,..._u(f.current.disabled)?{disabled:f.current.disabled}:{}});const A=(I,R)=>{const P=at(o._fields,I);P&&P._f&&(P._f.mount=R)};if(A(n,!0),C){const I=oC(at(o._options.defaultValues,n,f.current.defaultValue));tv(o._defaultValues,n,I),wd(at(o._formValues,n))&&tv(o._formValues,n,I)}return!c&&o.register(n),g.current=n,()=>{(c?C&&!o._state.action:C)?o.unregister(n):A(n,!1)}},[n,o,c,a]),E.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),E.useMemo(()=>({field:w,formState:d,fieldState:m}),[w,d,m])}const BG=e=>e.render(FG(e));var jG="Label",lC=p.forwardRef((e,t)=>y.jsx(st.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lC.displayName=jG;var GG=lC;function tp({className:e,variant:t="default",...n}){return y.jsx(GG,{"data-slot":"label",className:D(VR({variant:t}),e),...n})}const uC=p.createContext({}),dC=p.createContext({}),Fi=()=>{const e=p.useContext(uC),t=p.useContext(dC),{getFieldState:n}=ki(),r=cC({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},LG=MG,WG=({...e})=>y.jsx(uC.Provider,{value:{name:e.name},children:y.jsx(BG,{...e})});function VG({className:e,...t}){const n=p.useId();return y.jsx(dC.Provider,{value:{id:n},children:y.jsx("div",{"data-slot":"form-item",className:D("grid gap-2",e),...t})})}function HG({className:e,...t}){const{error:n,formItemId:r}=Fi();return y.jsx(tp,{"data-slot":"form-label","data-error":!!n,className:D("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function $G({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=Fi();return y.jsx(Cn,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function zG({className:e,...t}){const{formDescriptionId:n}=Fi();return y.jsx("p",{"data-slot":"form-description",id:n,className:D("text-muted-foreground text-sm",e),...t})}function XG({className:e,...t}){const{error:n,formMessageId:r}=Fi(),o=n?String(n?.message??""):t.children;return o?y.jsx("p",{"data-slot":"form-message",id:r,className:D("text-destructive text-sm",e),...t,children:o}):null}var Mu,Bi="HoverCard",[fC]=ze(Bi,[en]),ji=en(),[YG,np]=fC(Bi),pC=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,c=ji(t),l=p.useRef(0),u=p.useRef(0),d=p.useRef(!1),f=p.useRef(!1),[g,b]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Bi}),m=p.useCallback(()=>{clearTimeout(u.current),l.current=window.setTimeout(()=>b(!0),i)},[i,b]),h=p.useCallback(()=>{clearTimeout(l.current),!d.current&&!f.current&&(u.current=window.setTimeout(()=>b(!1),s))},[s,b]),v=p.useCallback(()=>b(!1),[b]);return p.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(u.current)},[]),y.jsx(YG,{scope:t,open:g,onOpenChange:b,onOpen:m,onClose:h,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:y.jsx(Fo,{...c,children:n})})};pC.displayName=Bi;var mC="HoverCardTrigger",ZG=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=np(mC,n),a=ji(n);return y.jsx(Ar,{asChild:!0,...a,children:y.jsx(oe.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:X(e.onPointerEnter,Ha(o.onOpen)),onPointerLeave:X(e.onPointerLeave,Ha(o.onClose)),onFocus:X(e.onFocus,o.onOpen),onBlur:X(e.onBlur,o.onClose),onTouchStart:X(e.onTouchStart,i=>i.preventDefault())})})});ZG.displayName=mC;var qG="HoverCardPortal",[k9,UG]=fC(qG,{forceMount:void 0}),Va="HoverCardContent",JG=p.forwardRef((e,t)=>{const n=UG(Va,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=np(Va,e.__scopeHoverCard);return y.jsx(Xe,{present:r||a.open,children:y.jsx(KG,{"data-state":a.open?"open":"closed",...o,onPointerEnter:X(e.onPointerEnter,Ha(a.onOpen)),onPointerLeave:X(e.onPointerLeave,Ha(a.onClose)),ref:t})})});JG.displayName=Va;var KG=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,c=np(Va,n),l=ji(n),u=p.useRef(null),d=pe(t,u),[f,g]=p.useState(!1);return p.useEffect(()=>{if(f){const b=document.body;return Mu=b.style.userSelect||b.style.webkitUserSelect,b.style.userSelect="none",b.style.webkitUserSelect="none",()=>{b.style.userSelect=Mu,b.style.webkitUserSelect=Mu}}},[f]),p.useEffect(()=>{if(u.current){const b=()=>{g(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",b),()=>{document.removeEventListener("pointerup",b),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),p.useEffect(()=>{u.current&&tL(u.current).forEach(m=>m.setAttribute("tabindex","-1"))}),y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:X(a,b=>{b.preventDefault()}),onDismiss:c.onDismiss,children:y.jsx(Bo,{...l,...s,onPointerDown:X(s.onPointerDown,b=>{b.currentTarget.contains(b.target)&&g(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),QG="HoverCardArrow",eL=p.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ji(n);return y.jsx(jo,{...o,...r,ref:t})});eL.displayName=QG;function Ha(e){return t=>t.pointerType==="touch"?void 0:e()}function tL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var nL=pC;function rL({...e}){return y.jsx(nL,{"data-slot":"hover-card",...e})}function oL({name:e,className:t,...n}){return y.jsx("i",{className:D(`icon-${e}`,t),...n,children:y.jsxs("span",{className:"for-screenreader-only",children:[e," icon"]})})}function hC({className:e,type:t,...n}){return y.jsx("input",{type:t,"data-slot":"input",className:D("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}var aL=Object.defineProperty,iL=Object.defineProperties,sL=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,iv=(e,t,n)=>t in e?aL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cL=(e,t)=>{for(var n in t||(t={}))gC.call(t,n)&&iv(e,n,t[n]);if($a)for(var n of $a(t))bC.call(t,n)&&iv(e,n,t[n]);return e},lL=(e,t)=>iL(e,sL(t)),uL=(e,t)=>{var n={};for(var r in e)gC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$a)for(var r of $a(e))t.indexOf(r)<0&&bC.call(e,r)&&(n[r]=e[r]);return n};function dL(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function fL(e){let t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var pL=18,vC=40,mL=`${vC}px`,hL=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function gL({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=p.useState(!1),[i,s]=p.useState(!1),[c,l]=p.useState(!1),u=p.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),d=p.useCallback(()=>{let f=e.current,g=t.current;if(!f||!g||c||n==="none")return;let b=f,m=b.getBoundingClientRect().left+b.offsetWidth,h=b.getBoundingClientRect().top+b.offsetHeight/2,v=m-pL,x=h;document.querySelectorAll(hL).length===0&&document.elementFromPoint(v,x)===f||(a(!0),l(!0))},[e,t,c,n]);return p.useEffect(()=>{let f=e.current;if(!f||n==="none")return;function g(){let m=window.innerWidth-f.getBoundingClientRect().right;s(m>=vC)}g();let b=setInterval(g,1e3);return()=>{clearInterval(b)}},[e,n]),p.useEffect(()=>{let f=r||document.activeElement===t.current;if(n==="none"||!f)return;let g=setTimeout(d,0),b=setTimeout(d,2e3),m=setTimeout(d,5e3),h=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(g),clearTimeout(b),clearTimeout(m),clearTimeout(h)}},[t,r,n,d]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:mL}}var bL=p.createContext({}),yC=p.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:c,inputMode:l="numeric",onComplete:u,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:f,containerClassName:g,noScriptCSSFallback:b=vL,render:m,children:h}=n,v=uL(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,w,C,S,A;let[I,R]=p.useState(typeof v.defaultValue=="string"?v.defaultValue:""),P=r??I,M=fL(P),T=p.useCallback(_=>{o?.(_),R(_)},[o]),B=p.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),O=p.useRef(null),L=p.useRef(null),W=p.useRef({value:P,onChange:T,isIOS:typeof window<"u"&&((w=(x=window?.CSS)==null?void 0:x.supports)==null?void 0:w.call(x,"-webkit-touch-callout","none"))}),j=p.useRef({prev:[(C=O.current)==null?void 0:C.selectionStart,(S=O.current)==null?void 0:S.selectionEnd,(A=O.current)==null?void 0:A.selectionDirection]});p.useImperativeHandle(t,()=>O.current,[]),p.useEffect(()=>{let _=O.current,Q=L.current;if(!_||!Q)return;W.current.value!==_.value&&W.current.onChange(_.value),j.current.prev=[_.selectionStart,_.selectionEnd,_.selectionDirection];function ge(){if(document.activeElement!==_){k(null),Y(null);return}let ye=_.selectionStart,Se=_.selectionEnd,tt=_.selectionDirection,Ve=_.maxLength,Fe=_.value,Ye=j.current.prev,Ze=-1,rt=-1,ot;if(Fe.length!==0&&ye!==null&&Se!==null){let rn=ye===Se,ut=ye===Fe.length&&Fe.length<Ve;if(rn&&!ut){let Ue=ye;if(Ue===0)Ze=0,rt=1,ot="forward";else if(Ue===Ve)Ze=Ue-1,rt=Ue,ot="backward";else if(Ve>1&&Fe.length>1){let on=0;if(Ye[0]!==null&&Ye[1]!==null){ot=Ue<Ye[1]?"backward":"forward";let An=Ye[0]===Ye[1]&&Ye[0]<Ve;ot==="backward"&&!An&&(on=-1)}Ze=on+Ue,rt=on+Ue+1}}Ze!==-1&&rt!==-1&&Ze!==rt&&O.current.setSelectionRange(Ze,rt,ot)}let It=Ze!==-1?Ze:ye,Bt=rt!==-1?rt:Se,lt=ot??tt;k(It),Y(Bt),j.current.prev=[It,Bt,lt]}if(document.addEventListener("selectionchange",ge,{capture:!0}),ge(),document.activeElement===_&&U(!0),!document.getElementById("input-otp-style")){let ye=document.createElement("style");if(ye.id="input-otp-style",document.head.appendChild(ye),ye.sheet){let Se="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Wr(ye.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Wr(ye.sheet,`[data-input-otp]:autofill { ${Se} }`),Wr(ye.sheet,`[data-input-otp]:-webkit-autofill { ${Se} }`),Wr(ye.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Wr(ye.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let xe=()=>{Q&&Q.style.setProperty("--root-height",`${_.clientHeight}px`)};xe();let Te=new ResizeObserver(xe);return Te.observe(_),()=>{document.removeEventListener("selectionchange",ge,{capture:!0}),Te.disconnect()}},[]);let[$,N]=p.useState(!1),[V,U]=p.useState(!1),[ee,k]=p.useState(null),[H,Y]=p.useState(null);p.useEffect(()=>{dL(()=>{var _,Q,ge,xe;(_=O.current)==null||_.dispatchEvent(new Event("input"));let Te=(Q=O.current)==null?void 0:Q.selectionStart,ye=(ge=O.current)==null?void 0:ge.selectionEnd,Se=(xe=O.current)==null?void 0:xe.selectionDirection;Te!==null&&ye!==null&&(k(Te),Y(ye),j.current.prev=[Te,ye,Se])})},[P,V]),p.useEffect(()=>{M!==void 0&&P!==M&&M.length<a&&P.length===a&&u?.(P)},[a,u,M,P]);let z=gL({containerRef:L,inputRef:O,pushPasswordManagerStrategy:d,isFocused:V}),J=p.useCallback(_=>{let Q=_.currentTarget.value.slice(0,a);if(Q.length>0&&B&&!B.test(Q)){_.preventDefault();return}typeof M=="string"&&Q.length<M.length&&document.dispatchEvent(new Event("selectionchange")),T(Q)},[a,T,M,B]),G=p.useCallback(()=>{var _;if(O.current){let Q=Math.min(O.current.value.length,a-1),ge=O.current.value.length;(_=O.current)==null||_.setSelectionRange(Q,ge),k(Q),Y(ge)}U(!0)},[a]),q=p.useCallback(_=>{var Q,ge;let xe=O.current;if(!f&&(!W.current.isIOS||!_.clipboardData||!xe))return;let Te=_.clipboardData.getData("text/plain"),ye=f?f(Te):Te;_.preventDefault();let Se=(Q=O.current)==null?void 0:Q.selectionStart,tt=(ge=O.current)==null?void 0:ge.selectionEnd,Ve=(Se!==tt?P.slice(0,Se)+ye+P.slice(tt):P.slice(0,Se)+ye+P.slice(Se)).slice(0,a);if(Ve.length>0&&B&&!B.test(Ve))return;xe.value=Ve,T(Ve);let Fe=Math.min(Ve.length,a-1),Ye=Ve.length;xe.setSelectionRange(Fe,Ye),k(Fe),Y(Ye)},[a,T,B,P]),ae=p.useMemo(()=>({position:"relative",cursor:v.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[v.disabled]),re=p.useMemo(()=>({position:"absolute",inset:0,width:z.willPushPWMBadge?`calc(100% + ${z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:z.willPushPWMBadge?`inset(0 ${z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[z.PWM_BADGE_SPACE_WIDTH,z.willPushPWMBadge,i]),te=p.useMemo(()=>p.createElement("input",lL(cL({autoComplete:v.autoComplete||"one-time-code"},v),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":ee,"data-input-otp-mse":H,inputMode:l,pattern:B?.source,"aria-placeholder":c,style:re,maxLength:a,value:P,ref:O,onPaste:_=>{var Q;q(_),(Q=v.onPaste)==null||Q.call(v,_)},onChange:J,onMouseOver:_=>{var Q;N(!0),(Q=v.onMouseOver)==null||Q.call(v,_)},onMouseLeave:_=>{var Q;N(!1),(Q=v.onMouseLeave)==null||Q.call(v,_)},onFocus:_=>{var Q;G(),(Q=v.onFocus)==null||Q.call(v,_)},onBlur:_=>{var Q;U(!1),(Q=v.onBlur)==null||Q.call(v,_)}})),[J,G,q,l,re,a,H,ee,v,B?.source,P]),F=p.useMemo(()=>({slots:Array.from({length:a}).map((_,Q)=>{var ge;let xe=V&&ee!==null&&H!==null&&(ee===H&&Q===ee||Q>=ee&&Q<H),Te=P[Q]!==void 0?P[Q]:null,ye=P[0]!==void 0?null:(ge=c?.[Q])!=null?ge:null;return{char:Te,placeholderChar:ye,isActive:xe,hasFakeCaret:xe&&Te===null}}),isFocused:V,isHovering:!v.disabled&&$}),[V,$,a,H,ee,v.disabled,P]),de=p.useMemo(()=>m?m(F):p.createElement(bL.Provider,{value:F},h),[h,F,m]);return p.createElement(p.Fragment,null,b!==null&&p.createElement("noscript",null,p.createElement("style",null,b)),p.createElement("div",{ref:L,"data-input-otp-container":!0,style:ae,className:g},de,p.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},te)))});yC.displayName="Input";function Wr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var vL=`
|
|
62
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function SW(){const t=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}function EW(){return Ob(/^Mac/)}function IW(){return Ob(/^iPhone/)}function sw(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function AW(){return Ob(/^iPad/)||EW()&&navigator.maxTouchPoints>1}function nT(){return IW()||AW()}function Ob(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const TW=24,OW=typeof window<"u"?O.useLayoutEffect:O.useEffect;function lw(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const xp=typeof document<"u"&&window.visualViewport;function cw(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function rT(t){for(cw(t)&&(t=t.parentElement);t&&!cw(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const NW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let zs=0,wp;function RW(t={}){let{isDisabled:e}=t;OW(()=>{if(!e)return zs++,zs===1&&nT()&&(wp=_W()),()=>{zs--,zs===0&&wp?.()}},[e])}function _W(){let t,e=0,n=d=>{t=rT(d.target),!(t===document.documentElement&&t===document.body)&&(e=d.changedTouches[0].pageY)},r=d=>{if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}let f=d.changedTouches[0].pageY,h=t.scrollTop,g=t.scrollHeight-t.clientHeight;g!==0&&((h<=0&&f>e||h>=g&&f<e)&&d.preventDefault(),e=f)},o=d=>{let f=d.target;Tm(f)&&f!==document.activeElement&&(d.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=d=>{let f=d.target;Tm(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",xp&&(xp.height<window.innerHeight?requestAnimationFrame(()=>{uw(f)}):xp.addEventListener("resize",()=>uw(f),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=lw(PW(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=lw(Yi(document,"touchstart",n,{passive:!1,capture:!0}),Yi(document,"touchmove",r,{passive:!1,capture:!0}),Yi(document,"touchend",o,{passive:!1,capture:!0}),Yi(document,"focus",i,!0),Yi(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}function PW(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Yi(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function uw(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=rT(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,o=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+TW;i>a&&(n.scrollTop+=o-r)}t=n.parentElement}}function Tm(t){return t instanceof HTMLInputElement&&!NW.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function MW(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function DW(...t){return e=>t.forEach(n=>MW(n,e))}function oT(...t){return v.useCallback(DW(...t),t)}const iT=new WeakMap;function vt(t,e,n=!1){if(!t||!(t instanceof HTMLElement))return;let r={};Object.entries(e).forEach(([o,i])=>{if(o.startsWith("--")){t.style.setProperty(o,i);return}r[o]=t.style[o],t.style[o]=i}),!n&&iT.set(t,r)}function kW(t,e){if(!t||!(t instanceof HTMLElement))return;let n=iT.get(t);n&&(t.style[e]=n[e])}const ft=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function Xs(t,e){if(!t)return null;const n=window.getComputedStyle(t),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[ft(e)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ft(e)?5:4]):null)}function jW(t){return 8*(Math.log(t+1)-2)}function Cp(t,e){if(!t)return()=>{};const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function LW(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}const Ke={DURATION:.5,EASE:[.32,.72,0,1]},aT=.4,BW=.25,FW=100,sT=8,no=16,Om=26,Sp="vaul-dragging";function lT(t){const e=O.useRef(t);return O.useEffect(()=>{e.current=t}),O.useMemo(()=>(...n)=>e.current==null?void 0:e.current.call(e,...n),[])}function GW({defaultProp:t,onChange:e}){const n=O.useState(t),[r]=n,o=O.useRef(r),i=lT(e);return O.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function cT({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,o]=GW({defaultProp:e,onChange:n}),i=t!==void 0,a=i?t:r,s=lT(n),l=O.useCallback(c=>{if(i){const d=typeof c=="function"?c(t):c;d!==t&&s(d)}else o(c)},[i,t,o,s]);return[a,l]}function $W({activeSnapPointProp:t,setActiveSnapPointProp:e,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:l,snapToSequentialPoint:c}){const[u,d]=cT({prop:t,defaultProp:n?.[0],onChange:e}),[f,h]=O.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);O.useEffect(()=>{function I(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const g=O.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),m=O.useMemo(()=>{var I;return(I=n?.findIndex(_=>_===u))!=null?I:null},[n,u]),b=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===u||!n,y=O.useMemo(()=>{const I=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var _;return(_=n?.map(P=>{const W=typeof P=="string";let A=0;if(W&&(A=parseInt(P,10)),ft(s)){const N=W?A:f?P*I.height:0;return f?s==="bottom"?I.height-N:-I.height+N:N}const D=W?A:f?P*I.width:0;return f?s==="right"?I.width-D:-I.width+D:D}))!=null?_:[]},[n,f,l]),w=O.useMemo(()=>m!==null?y?.[m]:null,[y,m]),C=O.useCallback(I=>{var _;const P=(_=y?.findIndex(W=>W===I))!=null?_:null;a(P),vt(r.current,{transition:`transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,transform:ft(s)?`translate3d(0, ${I}px, 0)`:`translate3d(${I}px, 0, 0)`}),y&&P!==y.length-1&&i!==void 0&&P!==i&&P<i?vt(o.current,{transition:`opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,opacity:"0"}):vt(o.current,{transition:`opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,opacity:"1"}),d(n?.[Math.max(P,0)])},[r.current,n,y,i,o,d]);O.useEffect(()=>{if(u||t){var I;const _=(I=n?.findIndex(P=>P===t||P===u))!=null?I:-1;y&&_!==-1&&typeof y[_]=="number"&&C(y[_])}},[u,t,n,y,C]);function S({draggedDistance:I,closeDrawer:_,velocity:P,dismissible:W}){if(i===void 0)return;const A=s==="bottom"||s==="right"?(w??0)-I:(w??0)+I,D=m===i-1,N=m===0,F=I>0;if(D&&vt(o.current,{transition:`opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`}),!c&&P>2&&!F){W?_():C(y[0]);return}if(!c&&P>2&&F&&y&&n){C(y[n.length-1]);return}const j=y?.reduce((V,k)=>typeof V!="number"||typeof k!="number"?V:Math.abs(k-A)<Math.abs(V-A)?k:V),M=ft(s)?window.innerHeight:window.innerWidth;if(P>aT&&Math.abs(I)<M*.4){const V=F?1:-1;if(V>0&&g&&n){C(y[n.length-1]);return}if(N&&V<0&&W&&_(),m===null)return;C(y[m+V]);return}C(j)}function E({draggedDistance:I}){if(w===null)return;const _=s==="bottom"||s==="right"?w-I:w+I;(s==="bottom"||s==="right")&&_<y[y.length-1]||(s==="top"||s==="left")&&_>y[y.length-1]||vt(r.current,{transform:ft(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function T(I,_){if(!n||typeof m!="number"||!y||i===void 0)return null;const P=m===i-1;if(m>=i&&_)return 0;if(P&&!_)return 1;if(!b&&!P)return null;const A=P?m+1:m-1,D=P?y[A]-y[A-1]:y[A+1]-y[A],N=I/Math.abs(D);return P?1-N:N}return{isLastSnapPoint:g,activeSnapPoint:u,shouldFade:b,getPercentageDragged:T,setActiveSnapPoint:d,activeSnapPointIndex:m,onRelease:S,onDrag:E,snapPointsOffset:y}}const WW=()=>()=>{};function VW(){const{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=as(),i=O.useRef(null),a=O.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Om)/window.innerWidth}O.useEffect(()=>{if(e&&n){i.current&&clearTimeout(i.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;LW(r&&!o?Cp(document.body,{background:"black"}):WW,Cp(l,{transformOrigin:ft(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ke.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ke.EASE.join(",")})`}));const c=Cp(l,{borderRadius:`${sT}px`,overflow:"hidden",...ft(t)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{c(),i.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},Ke.DURATION*1e3)}}},[e,n,a])}let Ui=null;function HW({isOpen:t,modal:e,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=O.useState(()=>typeof window<"u"?window.location.href:""),l=O.useRef(0),c=O.useCallback(()=>{if(sw()&&Ui===null&&t&&!i){Ui={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=f-window.innerHeight;h&&l.current>=f&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[t]),u=O.useCallback(()=>{if(sw()&&Ui!==null&&!i){const d=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Ui),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){s(window.location.href);return}window.scrollTo(f,d)}),Ui=null}},[a]);return O.useEffect(()=>{function d(){l.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),O.useEffect(()=>{if(e)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[e,u]),O.useEffect(()=>{n||!r||(t?(!window.matchMedia("(display-mode: standalone)").matches&&c(),e||window.setTimeout(()=>{u()},500)):u())},[t,r,a,e,n,c,u]),{restorePositionSetting:u}}function qW({open:t,onOpenChange:e,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=BW,scrollLockTimeout:c=FW,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:h,setActiveSnapPoint:g,fixed:m,modal:b=!0,onClose:y,nested:w,noBodyStyles:C=!1,direction:S="bottom",defaultOpen:E=!1,disablePreventScroll:T=!0,snapToSequentialPoint:I=!1,preventScrollRestoration:_=!1,repositionInputs:P=!0,onAnimationEnd:W,container:A,autoFocus:D=!1}){var N,F;const[j=!1,M]=cT({defaultProp:E,prop:t,onChange:te=>{e?.(te),!te&&!w&&tt(),setTimeout(()=>{W?.(te)},Ke.DURATION*1e3),te&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),te||(document.body.style.pointerEvents="auto")}}),[V,k]=O.useState(!1),[H,U]=O.useState(!1),[ee,G]=O.useState(!1),X=O.useRef(null),Z=O.useRef(null),Y=O.useRef(null),ne=O.useRef(null),z=O.useRef(null),K=O.useRef(!1),ae=O.useRef(null),ie=O.useRef(0),re=O.useRef(!1),q=O.useRef(!E),le=O.useRef(0),$=O.useRef(null),se=O.useRef(((N=$.current)==null?void 0:N.getBoundingClientRect().height)||0),Ie=O.useRef(((F=$.current)==null?void 0:F.getBoundingClientRect().width)||0),Oe=O.useRef(0),Ve=O.useCallback(te=>{i&&te===Ye.length-1&&(Z.current=new Date)},[]),{activeSnapPoint:Ne,activeSnapPointIndex:_e,setActiveSnapPoint:it,onRelease:Je,snapPointsOffset:Ye,onDrag:$e,shouldFade:Ue,getPercentageDragged:wt}=$W({snapPoints:i,activeSnapPointProp:h,setActiveSnapPointProp:g,drawerRef:$,fadeFromIndex:f,overlayRef:X,onSnapPointChange:Ve,direction:S,container:A,snapToSequentialPoint:I});RW({isDisabled:!j||H||!b||ee||!V||!P||!T});const{restorePositionSetting:tt}=HW({isOpen:j,modal:b,nested:w??!1,hasBeenOpened:V,preventScrollRestoration:_,noBodyStyles:C});function Ct(){return(window.innerWidth-Om)/window.innerWidth}function _t(te){var de,ce;!u&&!i||$.current&&!$.current.contains(te.target)||(se.current=((de=$.current)==null?void 0:de.getBoundingClientRect().height)||0,Ie.current=((ce=$.current)==null?void 0:ce.getBoundingClientRect().width)||0,U(!0),Y.current=new Date,nT()&&window.addEventListener("touchend",()=>K.current=!1,{once:!0}),te.target.setPointerCapture(te.pointerId),ie.current=ft(S)?te.pageY:te.pageX)}function qe(te,de){var ce;let ue=te;const Ae=(ce=window.getSelection())==null?void 0:ce.toString(),ve=$.current?Xs($.current,S):null,ze=new Date;if(ue.tagName==="SELECT"||ue.hasAttribute("data-vaul-no-drag")||ue.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(Z.current&&ze.getTime()-Z.current.getTime()<500)return!1;if(ve!==null&&(S==="bottom"?ve>0:ve<0))return!0;if(Ae&&Ae.length>0)return!1;if(z.current&&ze.getTime()-z.current.getTime()<c&&ve===0||de)return z.current=ze,!1;for(;ue;){if(ue.scrollHeight>ue.clientHeight){if(ue.scrollTop!==0)return z.current=new Date,!1;if(ue.getAttribute("role")==="dialog")return!0}ue=ue.parentNode}return!0}function Vt(te){if($.current&&H){const de=S==="bottom"||S==="right"?1:-1,ce=(ie.current-(ft(S)?te.pageY:te.pageX))*de,ue=ce>0,Ae=i&&!u&&!ue;if(Ae&&_e===0)return;const ve=Math.abs(ce),ze=document.querySelector("[data-vaul-drawer-wrapper]"),mt=S==="bottom"||S==="top"?se.current:Ie.current;let st=ve/mt;const ct=wt(ve,ue);if(ct!==null&&(st=ct),Ae&&st>=1||!K.current&&!qe(te.target,ue))return;if($.current.classList.add(Sp),K.current=!0,vt($.current,{transition:"none"}),vt(X.current,{transition:"none"}),i&&$e({draggedDistance:ce}),ue&&!i){const ut=jW(ce),Or=Math.min(ut*-1,0)*de;vt($.current,{transform:ft(S)?`translate3d(0, ${Or}px, 0)`:`translate3d(${Or}px, 0, 0)`});return}const It=1-st;if((Ue||f&&_e===f-1)&&(r?.(te,st),vt(X.current,{opacity:`${It}`,transition:"none"},!0)),ze&&X.current&&a){const ut=Math.min(Ct()+st*(1-Ct()),1),Or=8-st*8,Do=Math.max(0,14-st*14);vt(ze,{borderRadius:`${Or}px`,transform:ft(S)?`scale(${ut}) translate3d(0, ${Do}px, 0)`:`scale(${ut}) translate3d(${Do}px, 0, 0)`,transition:"none"},!0)}if(!i){const ut=ve*de;vt($.current,{transform:ft(S)?`translate3d(0, ${ut}px, 0)`:`translate3d(${ut}px, 0, 0)`})}}}O.useEffect(()=>{window.requestAnimationFrame(()=>{q.current=!0})},[]),O.useEffect(()=>{var te;function de(){if(!$.current||!P)return;const ce=document.activeElement;if(Tm(ce)||re.current){var ue;const Ae=((ue=window.visualViewport)==null?void 0:ue.height)||0,ve=window.innerHeight;let ze=ve-Ae;const mt=$.current.getBoundingClientRect().height||0,st=mt>ve*.8;Oe.current||(Oe.current=mt);const ct=$.current.getBoundingClientRect().top;if(Math.abs(le.current-ze)>60&&(re.current=!re.current),i&&i.length>0&&Ye&&_e){const It=Ye[_e]||0;ze+=It}if(le.current=ze,mt>Ae||re.current){const It=$.current.getBoundingClientRect().height;let ut=It;It>Ae&&(ut=Ae-(st?ct:Om)),m?$.current.style.height=`${It-Math.max(ze,0)}px`:$.current.style.height=`${Math.max(ut,Ae-ct)}px`}else SW()||($.current.style.height=`${Oe.current}px`);i&&i.length>0&&!re.current?$.current.style.bottom="0px":$.current.style.bottom=`${Math.max(ze,0)}px`}}return(te=window.visualViewport)==null||te.addEventListener("resize",de),()=>{var ce;return(ce=window.visualViewport)==null?void 0:ce.removeEventListener("resize",de)}},[_e,i,Ye]);function St(te){Ft(),y?.(),te||M(!1),setTimeout(()=>{i&&it(i[0])},Ke.DURATION*1e3)}function at(){if(!$.current)return;const te=document.querySelector("[data-vaul-drawer-wrapper]"),de=Xs($.current,S);vt($.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`}),vt(X.current,{transition:`opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,opacity:"1"}),a&&de&&de>0&&j&&vt(te,{borderRadius:`${sT}px`,overflow:"hidden",...ft(S)?{transform:`scale(${Ct()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ct()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ke.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ke.EASE.join(",")})`},!0)}function Ft(){!H||!$.current||($.current.classList.remove(Sp),K.current=!1,U(!1),ne.current=new Date)}function Ht(te){if(!H||!$.current)return;$.current.classList.remove(Sp),K.current=!1,U(!1),ne.current=new Date;const de=Xs($.current,S);if(!te||!qe(te.target,!1)||!de||Number.isNaN(de)||Y.current===null)return;const ce=ne.current.getTime()-Y.current.getTime(),ue=ie.current-(ft(S)?te.pageY:te.pageX),Ae=Math.abs(ue)/ce;if(Ae>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){Je({draggedDistance:ue*(S==="bottom"||S==="right"?1:-1),closeDrawer:St,velocity:Ae,dismissible:u}),o?.(te,!0);return}if(S==="bottom"||S==="right"?ue>0:ue<0){at(),o?.(te,!0);return}if(Ae>aT){St(),o?.(te,!1);return}var ve;const ze=Math.min((ve=$.current.getBoundingClientRect().height)!=null?ve:0,window.innerHeight);var mt;const st=Math.min((mt=$.current.getBoundingClientRect().width)!=null?mt:0,window.innerWidth),ct=S==="left"||S==="right";if(Math.abs(de)>=(ct?st:ze)*l){St(),o?.(te,!1);return}o?.(te,!0),at()}O.useEffect(()=>(j&&(vt(document.documentElement,{scrollBehavior:"auto"}),Z.current=new Date),()=>{kW(document.documentElement,"scrollBehavior")}),[j]);function Gn(te){const de=te?(window.innerWidth-no)/window.innerWidth:1,ce=te?-no:0;ae.current&&window.clearTimeout(ae.current),vt($.current,{transition:`transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,transform:ft(S)?`scale(${de}) translate3d(0, ${ce}px, 0)`:`scale(${de}) translate3d(${ce}px, 0, 0)`}),!te&&$.current&&(ae.current=setTimeout(()=>{const ue=Xs($.current,S);vt($.current,{transition:"none",transform:ft(S)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`})},500))}function Zt(te,de){if(de<0)return;const ce=(window.innerWidth-no)/window.innerWidth,ue=ce+de*(1-ce),Ae=-no+de*no;vt($.current,{transform:ft(S)?`scale(${ue}) translate3d(0, ${Ae}px, 0)`:`scale(${ue}) translate3d(${Ae}px, 0, 0)`,transition:"none"})}function Jt(te,de){const ce=ft(S)?window.innerHeight:window.innerWidth,ue=de?(ce-no)/ce:1,Ae=de?-no:0;de&&vt($.current,{transition:`transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,transform:ft(S)?`scale(${ue}) translate3d(0, ${Ae}px, 0)`:`scale(${ue}) translate3d(${Ae}px, 0, 0)`})}return O.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),O.createElement(Ec,{defaultOpen:E,onOpenChange:te=>{!u&&!te||(te?k(!0):St(!0),M(te))},open:j},O.createElement(tT.Provider,{value:{activeSnapPoint:Ne,snapPoints:i,setActiveSnapPoint:it,drawerRef:$,overlayRef:X,onOpenChange:e,onPress:_t,onRelease:Ht,onDrag:Vt,dismissible:u,shouldAnimate:q,handleOnly:d,isOpen:j,isDragging:H,shouldFade:Ue,closeDrawer:St,onNestedDrag:Zt,onNestedOpenChange:Gn,onNestedRelease:Jt,keyboardIsOpen:re,modal:b,snapPointsOffset:Ye,activeSnapPointIndex:_e,direction:S,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:C,container:A,autoFocus:D}},n))}const uT=O.forwardRef(function({...t},e){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s,shouldAnimate:l}=as(),c=oT(e,n),u=r&&r.length>0;if(!s)return null;const d=O.useCallback(f=>o(f),[o]);return O.createElement(Ac,{onMouseUp:d,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":a&&u?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false","data-vaul-animate":l?.current?"true":"false",...t})});uT.displayName="Drawer.Overlay";const dT=O.forwardRef(function({onPointerDownOutside:t,style:e,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:l,keyboardIsOpen:c,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:h,direction:g,snapPoints:m,container:b,handleOnly:y,shouldAnimate:w,autoFocus:C}=as(),[S,E]=O.useState(!1),T=oT(o,i),I=O.useRef(null),_=O.useRef(null),P=O.useRef(!1),W=m&&m.length>0;VW();const A=(N,F,j=0)=>{if(P.current)return!0;const M=Math.abs(N.y),V=Math.abs(N.x),k=V>M,H=["bottom","right"].includes(F)?1:-1;if(F==="left"||F==="right"){if(!(N.x*H<0)&&V>=0&&V<=j)return k}else if(!(N.y*H<0)&&M>=0&&M<=j)return!k;return P.current=!0,!0};O.useEffect(()=>{W&&window.requestAnimationFrame(()=>{E(!0)})},[]);function D(N){I.current=null,P.current=!1,s(N)}return O.createElement(Tc,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":h&&W?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":w?.current?"true":"false",...r,ref:T,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...e}:e,onPointerDown:N=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,N),I.current={x:N.pageX,y:N.pageY},a(N))},onOpenAutoFocus:N=>{n?.(N),C||N.preventDefault()},onPointerDownOutside:N=>{if(t?.(N),!f||N.defaultPrevented){N.preventDefault();return}c.current&&(c.current=!1)},onFocusOutside:N=>{if(!f){N.preventDefault();return}},onPointerMove:N=>{if(_.current=N,y||(r.onPointerMove==null||r.onPointerMove.call(r,N),!I.current))return;const F=N.pageY-I.current.y,j=N.pageX-I.current.x,M=N.pointerType==="touch"?10:2;A({x:j,y:F},g,M)?l(N):(Math.abs(j)>M||Math.abs(F)>M)&&(I.current=null)},onPointerUp:N=>{r.onPointerUp==null||r.onPointerUp.call(r,N),I.current=null,P.current=!1,s(N)},onPointerOut:N=>{r.onPointerOut==null||r.onPointerOut.call(r,N),D(_.current)},onContextMenu:N=>{r.onContextMenu==null||r.onContextMenu.call(r,N),_.current&&D(_.current)}})});dT.displayName="Drawer.Content";const zW=250,XW=120,YW=O.forwardRef(function({preventCycle:t=!1,children:e,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:c,handleOnly:u,isOpen:d,onPress:f,onDrag:h}=as(),g=O.useRef(null),m=O.useRef(!1);function b(){if(m.current){C();return}window.setTimeout(()=>{y()},XW)}function y(){if(i||t||m.current){C();return}if(C(),!a||a.length===0){c||o();return}if(s===a[a.length-1]&&c){o();return}const E=a.findIndex(I=>I===s);if(E===-1)return;const T=a[E+1];l(T)}function w(){g.current=window.setTimeout(()=>{m.current=!0},zW)}function C(){g.current&&window.clearTimeout(g.current),m.current=!1}return O.createElement("div",{onClick:b,onPointerCancel:C,onPointerDown:S=>{u&&f(S),w()},onPointerMove:S=>{u&&h(S)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},O.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},e))});YW.displayName="Drawer.Handle";function UW(t){const e=as(),{container:n=e.container,...r}=t;return O.createElement(Ic,{container:n,...r})}const qr={Root:qW,Content:dT,Overlay:uT,Trigger:rb,Portal:UW,Close:Qa,Title:ob,Description:ib};function ZW({...t}){return p.jsx(qr.Root,{"data-slot":"drawer",...t})}function JW({...t}){return p.jsx(qr.Trigger,{"data-slot":"drawer-trigger",...t})}function fT({...t}){return p.jsx(qr.Portal,{"data-slot":"drawer-portal",...t})}function KW({...t}){return p.jsx(qr.Close,{"data-slot":"drawer-close",...t})}function hT({className:t,...e}){return p.jsx(qr.Overlay,{"data-slot":"drawer-overlay",className:L("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function QW({className:t,children:e,...n}){return p.jsxs(fT,{"data-slot":"drawer-portal",children:[p.jsx(hT,{}),p.jsxs(qr.Content,{"data-slot":"drawer-content",className:L("group/drawer-content bg-background fixed flex h-auto flex-col rounded-t-[10px] z-100 mt-24","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...n,children:[p.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function eV({className:t,...e}){return p.jsx("div",{"data-slot":"drawer-header",className:L("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",t),...e})}function tV({className:t,...e}){return p.jsx("div",{"data-slot":"drawer-footer",className:L("mt-auto flex flex-col gap-2 p-4",t),...e})}function nV({className:t,...e}){return p.jsx(qr.Title,{"data-slot":"drawer-title",className:L("text-foreground font-semibold",t),...e})}function rV({className:t,...e}){return p.jsx(qr.Description,{"data-slot":"drawer-description",className:L("text-muted-foreground text-sm",t),...e})}var Ep="rovingFocusGroup.onEntryFocus",oV={bubbles:!1,cancelable:!0},ss="RovingFocusGroup",[Nm,pT,iV]=Wa(ss),[aV,Ri]=xt(ss,[iV]),[sV,lV]=aV(ss),mT=v.forwardRef((t,e)=>p.jsx(Nm.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Nm.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(cV,{...t,ref:e})})}));mT.displayName=ss;var cV=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=t,f=v.useRef(null),h=Se(e,f),g=Wr(i),[m,b]=Rt({prop:a,defaultProp:s??null,onChange:l,caller:ss}),[y,w]=v.useState(!1),C=yt(c),S=pT(n),E=v.useRef(!1),[T,I]=v.useState(0);return v.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(Ep,C),()=>_.removeEventListener(Ep,C)},[C]),p.jsx(sV,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:m,onItemFocus:v.useCallback(_=>b(_),[b]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>I(_=>_+1),[]),onFocusableItemRemove:v.useCallback(()=>I(_=>_-1),[]),children:p.jsx(fe.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...t.style},onMouseDown:oe(t.onMouseDown,()=>{E.current=!0}),onFocus:oe(t.onFocus,_=>{const P=!E.current;if(_.target===_.currentTarget&&P&&!y){const W=new CustomEvent(Ep,oV);if(_.currentTarget.dispatchEvent(W),!W.defaultPrevented){const A=S().filter(M=>M.focusable),D=A.find(M=>M.active),N=A.find(M=>M.id===m),j=[D,N,...A].filter(Boolean).map(M=>M.ref.current);vT(j,u)}}E.current=!1}),onBlur:oe(t.onBlur,()=>w(!1))})})}),gT="RovingFocusGroupItem",bT=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=t,l=nt(),c=i||l,u=lV(gT,n),d=u.currentTabStopId===c,f=pT(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:m}=u;return v.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),p.jsx(Nm.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:p.jsx(fe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:e,onMouseDown:oe(t.onMouseDown,b=>{r?u.onItemFocus(c):b.preventDefault()}),onFocus:oe(t.onFocus,()=>u.onItemFocus(c)),onKeyDown:oe(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=fV(b,u.orientation,u.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(b.currentTarget);C=u.loop?hV(C,S+1):C.slice(S+1)}setTimeout(()=>vT(C))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});bT.displayName=gT;var uV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dV(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function fV(t,e,n){const r=dV(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return uV[r]}function vT(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function hV(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Nb=mT,Rb=bT,Rm=["Enter"," "],pV=["ArrowDown","PageUp","Home"],yT=["ArrowUp","PageDown","End"],mV=[...pV,...yT],gV={ltr:[...Rm,"ArrowRight"],rtl:[...Rm,"ArrowLeft"]},bV={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ls="Menu",[Na,vV,yV]=Wa(ls),[To,xT]=xt(ls,[yV,sr,Ri]),cs=sr(),wT=Ri(),[CT,zr]=To(ls),[xV,us]=To(ls),ST=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=t,s=cs(e),[l,c]=v.useState(null),u=v.useRef(!1),d=yt(i),f=Wr(o);return v.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p.jsx(Oi,{...s,children:p.jsx(CT,{scope:e,open:n,onOpenChange:d,content:l,onContentChange:c,children:p.jsx(xV,{scope:e,onClose:v.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:r})})})};ST.displayName=ls;var wV="MenuAnchor",_b=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=cs(n);return p.jsx(Ni,{...o,...r,ref:e})});_b.displayName=wV;var Pb="MenuPortal",[CV,ET]=To(Pb,{forceMount:void 0}),IT=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:o}=t,i=zr(Pb,e);return p.jsx(CV,{scope:e,forceMount:n,children:p.jsx(ot,{present:n||i.open,children:p.jsx(Io,{asChild:!0,container:o,children:r})})})};IT.displayName=Pb;var mn="MenuContent",[SV,Mb]=To(mn),AT=v.forwardRef((t,e)=>{const n=ET(mn,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=zr(mn,t.__scopeMenu),a=us(mn,t.__scopeMenu);return p.jsx(Na.Provider,{scope:t.__scopeMenu,children:p.jsx(ot,{present:r||i.open,children:p.jsx(Na.Slot,{scope:t.__scopeMenu,children:a.modal?p.jsx(EV,{...o,ref:e}):p.jsx(IV,{...o,ref:e})})})})}),EV=v.forwardRef((t,e)=>{const n=zr(mn,t.__scopeMenu),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return Cc(i)},[]),p.jsx(Db,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:oe(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),IV=v.forwardRef((t,e)=>{const n=zr(mn,t.__scopeMenu);return p.jsx(Db,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),AV=ao("MenuContent.ScrollLock"),Db=v.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,...m}=t,b=zr(mn,n),y=us(mn,n),w=cs(n),C=wT(n),S=vV(n),[E,T]=v.useState(null),I=v.useRef(null),_=Se(e,I,b.onContentChange),P=v.useRef(0),W=v.useRef(""),A=v.useRef(0),D=v.useRef(null),N=v.useRef("right"),F=v.useRef(0),j=g?Ka:v.Fragment,M=g?{as:AV,allowPinchZoom:!0}:void 0,V=H=>{const U=W.current+H,ee=S().filter(z=>!z.disabled),G=document.activeElement,X=ee.find(z=>z.ref.current===G)?.textValue,Z=ee.map(z=>z.textValue),Y=BV(Z,U,X),ne=ee.find(z=>z.textValue===Y)?.ref.current;(function z(K){W.current=K,window.clearTimeout(P.current),K!==""&&(P.current=window.setTimeout(()=>z(""),1e3))})(U),ne&&setTimeout(()=>ne.focus())};v.useEffect(()=>()=>window.clearTimeout(P.current),[]),xc();const k=v.useCallback(H=>N.current===D.current?.side&&GV(H,D.current?.area),[]);return p.jsx(SV,{scope:n,searchRef:W,onItemEnter:v.useCallback(H=>{k(H)&&H.preventDefault()},[k]),onItemLeave:v.useCallback(H=>{k(H)||(I.current?.focus(),T(null))},[k]),onTriggerLeave:v.useCallback(H=>{k(H)&&H.preventDefault()},[k]),pointerGraceTimerRef:A,onPointerGraceIntentChange:v.useCallback(H=>{D.current=H},[]),children:p.jsx(j,{...M,children:p.jsx(Ja,{asChild:!0,trapped:o,onMountAutoFocus:oe(i,H=>{H.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:p.jsx(Nb,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:T,onEntryFocus:oe(l,H=>{y.isUsingKeyboardRef.current||H.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(ns,{role:"menu","aria-orientation":"vertical","data-state":VT(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...m,ref:_,style:{outline:"none",...m.style},onKeyDown:oe(m.onKeyDown,H=>{const ee=H.target.closest("[data-radix-menu-content]")===H.currentTarget,G=H.ctrlKey||H.altKey||H.metaKey,X=H.key.length===1;ee&&(H.key==="Tab"&&H.preventDefault(),!G&&X&&V(H.key));const Z=I.current;if(H.target!==Z||!mV.includes(H.key))return;H.preventDefault();const ne=S().filter(z=>!z.disabled).map(z=>z.ref.current);yT.includes(H.key)&&ne.reverse(),jV(ne)}),onBlur:oe(t.onBlur,H=>{H.currentTarget.contains(H.target)||(window.clearTimeout(P.current),W.current="")}),onPointerMove:oe(t.onPointerMove,Ra(H=>{const U=H.target,ee=F.current!==H.clientX;if(H.currentTarget.contains(U)&&ee){const G=H.clientX>F.current?"right":"left";N.current=G,F.current=H.clientX}}))})})})})})})});AT.displayName=mn;var TV="MenuGroup",kb=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return p.jsx(fe.div,{role:"group",...r,ref:e})});kb.displayName=TV;var OV="MenuLabel",TT=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return p.jsx(fe.div,{...r,ref:e})});TT.displayName=OV;var kl="MenuItem",dw="menu.itemSelect",Lc=v.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...o}=t,i=v.useRef(null),a=us(kl,t.__scopeMenu),s=Mb(kl,t.__scopeMenu),l=Se(e,i),c=v.useRef(!1),u=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(dw,{bubbles:!0,cancelable:!0});d.addEventListener(dw,h=>r?.(h),{once:!0}),zC(d,f),f.defaultPrevented?c.current=!1:a.onClose()}};return p.jsx(OT,{...o,ref:l,disabled:n,onClick:oe(t.onClick,u),onPointerDown:d=>{t.onPointerDown?.(d),c.current=!0},onPointerUp:oe(t.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:oe(t.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||Rm.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Lc.displayName=kl;var OT=v.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=t,a=Mb(kl,n),s=wT(n),l=v.useRef(null),c=Se(e,l),[u,d]=v.useState(!1),[f,h]=v.useState("");return v.useEffect(()=>{const g=l.current;g&&h((g.textContent??"").trim())},[i.children]),p.jsx(Na.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:p.jsx(Rb,{asChild:!0,...s,focusable:!r,children:p.jsx(fe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:oe(t.onPointerMove,Ra(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:oe(t.onPointerLeave,Ra(g=>a.onItemLeave(g))),onFocus:oe(t.onFocus,()=>d(!0)),onBlur:oe(t.onBlur,()=>d(!1))})})})}),NV="MenuCheckboxItem",NT=v.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...o}=t;return p.jsx(DT,{scope:t.__scopeMenu,checked:n,children:p.jsx(Lc,{role:"menuitemcheckbox","aria-checked":jl(n)?"mixed":n,...o,ref:e,"data-state":Bb(n),onSelect:oe(o.onSelect,()=>r?.(jl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});NT.displayName=NV;var RT="MenuRadioGroup",[RV,_V]=To(RT,{value:void 0,onValueChange:()=>{}}),_T=v.forwardRef((t,e)=>{const{value:n,onValueChange:r,...o}=t,i=yt(r);return p.jsx(RV,{scope:t.__scopeMenu,value:n,onValueChange:i,children:p.jsx(kb,{...o,ref:e})})});_T.displayName=RT;var PT="MenuRadioItem",MT=v.forwardRef((t,e)=>{const{value:n,...r}=t,o=_V(PT,t.__scopeMenu),i=n===o.value;return p.jsx(DT,{scope:t.__scopeMenu,checked:i,children:p.jsx(Lc,{role:"menuitemradio","aria-checked":i,...r,ref:e,"data-state":Bb(i),onSelect:oe(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});MT.displayName=PT;var jb="MenuItemIndicator",[DT,PV]=To(jb,{checked:!1}),kT=v.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...o}=t,i=PV(jb,n);return p.jsx(ot,{present:r||jl(i.checked)||i.checked===!0,children:p.jsx(fe.span,{...o,ref:e,"data-state":Bb(i.checked)})})});kT.displayName=jb;var MV="MenuSeparator",jT=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return p.jsx(fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});jT.displayName=MV;var DV="MenuArrow",LT=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=cs(n);return p.jsx(rs,{...o,...r,ref:e})});LT.displayName=DV;var Lb="MenuSub",[kV,BT]=To(Lb),FT=t=>{const{__scopeMenu:e,children:n,open:r=!1,onOpenChange:o}=t,i=zr(Lb,e),a=cs(e),[s,l]=v.useState(null),[c,u]=v.useState(null),d=yt(o);return v.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),p.jsx(Oi,{...a,children:p.jsx(CT,{scope:e,open:r,onOpenChange:d,content:c,onContentChange:u,children:p.jsx(kV,{scope:e,contentId:nt(),triggerId:nt(),trigger:s,onTriggerChange:l,children:n})})})};FT.displayName=Lb;var aa="MenuSubTrigger",GT=v.forwardRef((t,e)=>{const n=zr(aa,t.__scopeMenu),r=us(aa,t.__scopeMenu),o=BT(aa,t.__scopeMenu),i=Mb(aa,t.__scopeMenu),a=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:t.__scopeMenu},u=v.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return v.useEffect(()=>u,[u]),v.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),p.jsx(_b,{asChild:!0,...c,children:p.jsx(OT,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":VT(n.open),...t,ref:er(e,o.onTriggerChange),onClick:d=>{t.onClick?.(d),!(t.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:oe(t.onPointerMove,Ra(d=>{i.onItemEnter(d),!d.defaultPrevented&&!t.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:oe(t.onPointerLeave,Ra(d=>{u();const f=n.content?.getBoundingClientRect();if(f){const h=n.content?.dataset.side,g=h==="right",m=g?-5:5,b=f[g?"left":"right"],y=f[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:oe(t.onKeyDown,d=>{const f=i.searchRef.current!=="";t.disabled||f&&d.key===" "||gV[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});GT.displayName=aa;var $T="MenuSubContent",WT=v.forwardRef((t,e)=>{const n=ET(mn,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=zr(mn,t.__scopeMenu),a=us(mn,t.__scopeMenu),s=BT($T,t.__scopeMenu),l=v.useRef(null),c=Se(e,l);return p.jsx(Na.Provider,{scope:t.__scopeMenu,children:p.jsx(ot,{present:r||i.open,children:p.jsx(Na.Slot,{scope:t.__scopeMenu,children:p.jsx(Db,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:oe(t.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:oe(t.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:oe(t.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=bV[a.dir].includes(u.key);d&&f&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});WT.displayName=$T;function VT(t){return t?"open":"closed"}function jl(t){return t==="indeterminate"}function Bb(t){return jl(t)?"indeterminate":t?"checked":"unchecked"}function jV(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function LV(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function BV(t,e,n){const o=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=LV(t,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function FV(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],c=s.x,u=s.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function GV(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return FV(n,e)}function Ra(t){return e=>e.pointerType==="mouse"?t(e):void 0}var $V=ST,WV=_b,VV=IT,HV=AT,qV=kb,zV=TT,XV=Lc,YV=NT,UV=_T,ZV=MT,JV=kT,KV=jT,QV=LT,eH=FT,tH=GT,nH=WT,Bc="DropdownMenu",[rH]=xt(Bc,[xT]),Bt=xT(),[oH,HT]=rH(Bc),qT=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,l=Bt(e),c=v.useRef(null),[u,d]=Rt({prop:o,defaultProp:i??!1,onChange:a,caller:Bc});return p.jsx(oH,{scope:e,triggerId:nt(),triggerRef:c,contentId:nt(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(f=>!f),[d]),modal:s,children:p.jsx($V,{...l,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};qT.displayName=Bc;var zT="DropdownMenuTrigger",XT=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=t,i=HT(zT,n),a=Bt(n);return p.jsx(WV,{asChild:!0,...a,children:p.jsx(fe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:er(e,i.triggerRef),onPointerDown:oe(t.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:oe(t.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});XT.displayName=zT;var iH="DropdownMenuPortal",YT=t=>{const{__scopeDropdownMenu:e,...n}=t,r=Bt(e);return p.jsx(VV,{...r,...n})};YT.displayName=iH;var UT="DropdownMenuContent",ZT=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=HT(UT,n),i=Bt(n),a=v.useRef(!1);return p.jsx(HV,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:e,onCloseAutoFocus:oe(t.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:oe(t.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ZT.displayName=UT;var aH="DropdownMenuGroup",JT=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(qV,{...o,...r,ref:e})});JT.displayName=aH;var sH="DropdownMenuLabel",KT=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(zV,{...o,...r,ref:e})});KT.displayName=sH;var lH="DropdownMenuItem",QT=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(XV,{...o,...r,ref:e})});QT.displayName=lH;var cH="DropdownMenuCheckboxItem",eO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(YV,{...o,...r,ref:e})});eO.displayName=cH;var uH="DropdownMenuRadioGroup",tO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(UV,{...o,...r,ref:e})});tO.displayName=uH;var dH="DropdownMenuRadioItem",nO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(ZV,{...o,...r,ref:e})});nO.displayName=dH;var fH="DropdownMenuItemIndicator",rO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(JV,{...o,...r,ref:e})});rO.displayName=fH;var hH="DropdownMenuSeparator",oO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(KV,{...o,...r,ref:e})});oO.displayName=hH;var pH="DropdownMenuArrow",mH=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(QV,{...o,...r,ref:e})});mH.displayName=pH;var gH=t=>{const{__scopeDropdownMenu:e,children:n,open:r,onOpenChange:o,defaultOpen:i}=t,a=Bt(e),[s,l]=Rt({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(eH,{...a,open:s,onOpenChange:l,children:n})},bH="DropdownMenuSubTrigger",iO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(tH,{...o,...r,ref:e})});iO.displayName=bH;var vH="DropdownMenuSubContent",aO=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Bt(n);return p.jsx(nH,{...o,...r,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});aO.displayName=vH;var yH=qT,xH=XT,sO=YT,wH=ZT,CH=JT,SH=KT,EH=QT,IH=eO,AH=tO,TH=nO,lO=rO,OH=oO,NH=gH,RH=iO,_H=aO;function cO({...t}){return p.jsx(yH,{"data-slot":"dropdown-menu",...t})}function PH({...t}){return p.jsx(sO,{"data-slot":"dropdown-menu-portal",...t})}function uO({...t}){return p.jsx(xH,{"data-slot":"dropdown-menu-trigger",...t})}function dO({className:t,sideOffset:e=4,...n}){return p.jsx(sO,{children:p.jsx(wH,{"data-slot":"dropdown-menu-content",sideOffset:e,className:L("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function MH({...t}){return p.jsx(CH,{"data-slot":"dropdown-menu-group",...t})}function DH({className:t,inset:e,variant:n="default",...r}){return p.jsx(EH,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":n,className:L("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function _m({className:t,children:e,checked:n,...r}){return p.jsxs(IH,{"data-slot":"dropdown-menu-checkbox-item",className:L("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:n,...r,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(lO,{children:p.jsx(ga,{className:"size-4"})})}),e]})}function kH({...t}){return p.jsx(AH,{"data-slot":"dropdown-menu-radio-group",...t})}function jH({className:t,children:e,...n}){return p.jsxs(TH,{"data-slot":"dropdown-menu-radio-item",className:L("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(lO,{children:p.jsx(dS,{className:"size-2 fill-current"})})}),e]})}function LH({className:t,inset:e,...n}){return p.jsx(SH,{"data-slot":"dropdown-menu-label","data-inset":e,className:L("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...n})}function BH({className:t,...e}){return p.jsx(OH,{"data-slot":"dropdown-menu-separator",className:L("bg-border -mx-1 my-1 h-px",t),...e})}function FH({className:t,...e}){return p.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:L("text-muted-foreground ml-auto text-xs tracking-widest",t),...e})}function GH({...t}){return p.jsx(NH,{"data-slot":"dropdown-menu-sub",...t})}function $H({className:t,inset:e,children:n,...r}){return p.jsxs(RH,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:L("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[n,p.jsx(ic,{className:"ml-auto size-4"})]})}function WH({className:t,...e}){return p.jsx(_H,{"data-slot":"dropdown-menu-sub-content",className:L("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...e})}function VH({className:t,...e}){return p.jsx("div",{"data-slot":"empty",className:L("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",t),...e})}function HH({className:t,...e}){return p.jsx("div",{"data-slot":"empty-header",className:L("flex max-w-sm flex-col items-center gap-2 text-center",t),...e})}const qH=Ii("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function zH({className:t,variant:e="default",...n}){return p.jsx("div",{"data-slot":"empty-icon","data-variant":e,className:L(qH({variant:e,className:t})),...n})}function XH({className:t,...e}){return p.jsx("div",{"data-slot":"empty-title",className:L("text-lg font-medium tracking-tight",t),...e})}function YH({className:t,...e}){return p.jsx("div",{"data-slot":"empty-description",className:L("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",t),...e})}function UH({className:t,...e}){return p.jsx("div",{"data-slot":"empty-content",className:L("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",t),...e})}function fO({message:t,className:e}){return p.jsx("p",{className:L("text-red-500 text-xs mt-2 has-error",e),children:t})}var hO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ZH="VisuallyHidden",pO=v.forwardRef((t,e)=>p.jsx(fe.span,{...t,ref:e,style:{...hO,...t.style}}));pO.displayName=ZH;var JH=pO,[Fc]=xt("Tooltip",[sr]),Gc=sr(),mO="TooltipProvider",KH=700,Pm="tooltip.open",[QH,Fb]=Fc(mO),gO=t=>{const{__scopeTooltip:e,delayDuration:n=KH,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=t,a=v.useRef(!0),s=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(QH,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};gO.displayName=mO;var _a="Tooltip",[eq,ds]=Fc(_a),bO=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=t,l=Fb(_a,t.__scopeTooltip),c=Gc(e),[u,d]=v.useState(null),f=nt(),h=v.useRef(0),g=a??l.disableHoverableContent,m=s??l.delayDuration,b=v.useRef(!1),[y,w]=Rt({prop:r,defaultProp:o??!1,onChange:I=>{I?(l.onOpen(),document.dispatchEvent(new CustomEvent(Pm))):l.onClose(),i?.(I)},caller:_a}),C=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),E=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),T=v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},m)},[m,w]);return v.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Oi,{...c,children:p.jsx(eq,{scope:e,contentId:f,open:y,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:v.useCallback(()=>{g?E():(window.clearTimeout(h.current),h.current=0)},[E,g]),onOpen:S,onClose:E,disableHoverableContent:g,children:n})})};bO.displayName=_a;var Mm="TooltipTrigger",vO=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=ds(Mm,n),i=Fb(Mm,n),a=Gc(n),s=v.useRef(null),l=Se(e,s,o.onTriggerChange),c=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>c.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(Ni,{asChild:!0,...a,children:p.jsx(fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:oe(t.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:oe(t.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:oe(t.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:oe(t.onFocus,()=>{c.current||o.onOpen()}),onBlur:oe(t.onBlur,o.onClose),onClick:oe(t.onClick,o.onClose)})})});vO.displayName=Mm;var Gb="TooltipPortal",[tq,nq]=Fc(Gb,{forceMount:void 0}),yO=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:o}=t,i=ds(Gb,e);return p.jsx(tq,{scope:e,forceMount:n,children:p.jsx(ot,{present:n||i.open,children:p.jsx(Io,{asChild:!0,container:o,children:r})})})};yO.displayName=Gb;var gi="TooltipContent",xO=v.forwardRef((t,e)=>{const n=nq(gi,t.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=t,a=ds(gi,t.__scopeTooltip);return p.jsx(ot,{present:r||a.open,children:a.disableHoverableContent?p.jsx(wO,{side:o,...i,ref:e}):p.jsx(rq,{side:o,...i,ref:e})})}),rq=v.forwardRef((t,e)=>{const n=ds(gi,t.__scopeTooltip),r=Fb(gi,t.__scopeTooltip),o=v.useRef(null),i=Se(e,o),[a,s]=v.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),h=v.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},w=sq(y,b.getBoundingClientRect()),C=lq(y,w),S=cq(m.getBoundingClientRect()),E=dq([...C,...S]);s(E),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&u){const g=b=>h(b,u),m=b=>h(b,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[l,u,h,f]),v.useEffect(()=>{if(a){const g=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},w=l?.contains(b)||u?.contains(b),C=!uq(y,a);w?f():C&&(f(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,f]),p.jsx(wO,{...t,ref:i})}),[oq,iq]=Fc(_a,{isInside:!1}),aq=xP("TooltipContent"),wO=v.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=t,l=ds(gi,n),c=Gc(n),{onClose:u}=l;return v.useEffect(()=>(document.addEventListener(Pm,u),()=>document.removeEventListener(Pm,u)),[u]),v.useEffect(()=>{if(l.trigger){const d=f=>{f.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),p.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(ns,{"data-state":l.stateAttribute,...c,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(aq,{children:r}),p.jsx(oq,{scope:n,isInside:!0,children:p.jsx(JH,{id:l.contentId,role:"tooltip",children:o||r})})]})})});xO.displayName=gi;var CO="TooltipArrow",SO=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=Gc(n);return iq(CO,n).isInside?null:p.jsx(rs,{...o,...r,ref:e})});SO.displayName=CO;function sq(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function lq(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function cq(t){const{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}function uq(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],c=s.x,u=s.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function dq(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),fq(e)}function fq(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const o=t[r];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const o=t[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var hq=gO,pq=bO,mq=vO,EO=yO,IO=xO,gq=SO;function $b({delayDuration:t=0,...e}){return p.jsx(hq,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function Wb({...t}){return p.jsx($b,{children:p.jsx(pq,{"data-slot":"tooltip",...t})})}function Vb({...t}){return p.jsx(mq,{"data-slot":"tooltip-trigger",...t})}function $c({className:t,sideOffset:e=0,children:n,...r}){return p.jsx(EO,{children:p.jsxs(IO,{"data-slot":"tooltip-content",sideOffset:e,className:L("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...r,children:[n,p.jsx(gq,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const AO=v.forwardRef(({children:t,...e},n)=>p.jsx(EO,{children:p.jsx($c,{ref:n,...e,children:t})}));AO.displayName=IO.displayName;const TO=({trigger:t,content:e,asChild:n=!0,wrapTrigger:r=!0,triggerClassName:o="",contentClassName:i="max-w-sm",disableContent:a=!1,isPortal:s=!1})=>a?t:p.jsxs(Wb,{children:[p.jsx(Vb,{asChild:n,children:r?p.jsx("div",{className:L("truncate",o),children:t}):t}),s?p.jsx(AO,{className:i,children:e}):p.jsx($c,{className:i,children:e})]}),bq=({name:t,label:e,triggerPlaceholder:n,inputPlaceholder:r,options:o=[],description:i,isMultiSelect:a=!1,emptyMessage:s,containerClassName:l,contentClassName:c,contentListClassName:u,avoidCollisions:d=!0,hasClearButton:f=!0,hasAllOption:h=!1,allOptionLabel:g="All",closeOnSelect:m=!1,onInputChange:b,isDisabled:y=!1,tooltipContent:w})=>{const{control:C,setValue:S}=is(),E=(I,_)=>{(Array.isArray(I)?I:[I])?.length===_.length?S(t,[],{shouldValidate:!0}):S(t,_.map(({value:W})=>W),{shouldValidate:!0})},T=(I,_)=>{if(a){const P=Array.isArray(I)?I:[I];P.includes(_.value)?S(t,P.filter(W=>W!==_.value),{shouldValidate:!0}):S(t,[...P,_.value],{shouldValidate:!0})}else S(t,_.value,{shouldValidate:!0})};return p.jsx(ZA,{control:C,name:t,render:({field:I})=>p.jsxs(JA,{className:L("flex flex-col",l),children:[e&&p.jsxs(KA,{className:L({"flex items-center gap-2":f&&I.value||!!w}),children:[e,f&&(Array.isArray(I.value)?I.value.length>0:I.value)&&p.jsx(xg,{className:"cursor-pointer",onClick:_=>{_.preventDefault(),S(t,a?[]:"",{shouldValidate:!0})},size:"16",color:"red"}),w&&p.jsx(TO,{triggerClassName:"order-last",content:w,contentClassName:"max-w-96",trigger:p.jsx(EM,{size:16,className:"cursor-pointer text-segmentify-gray-500"})})]}),a?p.jsx(Am,{value:I.value,onInputChange:b,handleSelectItem:T,handleSelectAll:E,closeOnSelect:m,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:c,contentListClassName:u,isDisabled:y,isMultiSelect:!0,hasAllOption:h,allOptionLabel:g,avoidCollisions:d,isFormControlWrapper:!0}):p.jsx(Am,{value:I.value,onInputChange:b,handleSelectItem:T,closeOnSelect:m,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:c,contentListClassName:u,isDisabled:y,avoidCollisions:d,isFormControlWrapper:!0}),i&&p.jsx(QA,{children:i}),p.jsx(eT,{})]})})};var Ip,Wc="HoverCard",[OO]=xt(Wc,[sr]),Vc=sr(),[vq,Hc]=OO(Wc),NO=t=>{const{__scopeHoverCard:e,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:s=300}=t,l=Vc(e),c=v.useRef(0),u=v.useRef(0),d=v.useRef(!1),f=v.useRef(!1),[h,g]=Rt({prop:r,defaultProp:o??!1,onChange:i,caller:Wc}),m=v.useCallback(()=>{clearTimeout(u.current),c.current=window.setTimeout(()=>g(!0),a)},[a,g]),b=v.useCallback(()=>{clearTimeout(c.current),!d.current&&!f.current&&(u.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=v.useCallback(()=>g(!1),[g]);return v.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(u.current)},[]),p.jsx(vq,{scope:e,open:h,onOpenChange:g,onOpen:m,onClose:b,onDismiss:y,hasSelectionRef:d,isPointerDownOnContentRef:f,children:p.jsx(Oi,{...l,children:n})})};NO.displayName=Wc;var RO="HoverCardTrigger",_O=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=Hc(RO,n),i=Vc(n);return p.jsx(Ni,{asChild:!0,...i,children:p.jsx(fe.a,{"data-state":o.open?"open":"closed",...r,ref:e,onPointerEnter:oe(t.onPointerEnter,Bl(o.onOpen)),onPointerLeave:oe(t.onPointerLeave,Bl(o.onClose)),onFocus:oe(t.onFocus,o.onOpen),onBlur:oe(t.onBlur,o.onClose),onTouchStart:oe(t.onTouchStart,a=>a.preventDefault())})})});_O.displayName=RO;var Hb="HoverCardPortal",[yq,xq]=OO(Hb,{forceMount:void 0}),PO=t=>{const{__scopeHoverCard:e,forceMount:n,children:r,container:o}=t,i=Hc(Hb,e);return p.jsx(yq,{scope:e,forceMount:n,children:p.jsx(ot,{present:n||i.open,children:p.jsx(Io,{asChild:!0,container:o,children:r})})})};PO.displayName=Hb;var Ll="HoverCardContent",MO=v.forwardRef((t,e)=>{const n=xq(Ll,t.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=t,i=Hc(Ll,t.__scopeHoverCard);return p.jsx(ot,{present:r||i.open,children:p.jsx(wq,{"data-state":i.open?"open":"closed",...o,onPointerEnter:oe(t.onPointerEnter,Bl(i.onOpen)),onPointerLeave:oe(t.onPointerLeave,Bl(i.onClose)),ref:e})})});MO.displayName=Ll;var wq=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=t,l=Hc(Ll,n),c=Vc(n),u=v.useRef(null),d=Se(e,u),[f,h]=v.useState(!1);return v.useEffect(()=>{if(f){const g=document.body;return Ip=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=Ip,g.style.webkitUserSelect=Ip}}},[f]),v.useEffect(()=>{if(u.current){const g=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),v.useEffect(()=>{u.current&&Eq(u.current).forEach(m=>m.setAttribute("tabindex","-1"))}),p.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:oe(i,g=>{g.preventDefault()}),onDismiss:l.onDismiss,children:p.jsx(ns,{...c,...s,onPointerDown:oe(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Cq="HoverCardArrow",Sq=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=Vc(n);return p.jsx(rs,{...o,...r,ref:e})});Sq.displayName=Cq;function Bl(t){return e=>e.pointerType==="touch"?void 0:t()}function Eq(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)e.push(n.currentNode);return e}var Iq=NO,Aq=_O,Tq=PO,Oq=MO;function Nq({...t}){return p.jsx(Iq,{"data-slot":"hover-card",...t})}function Rq({...t}){return p.jsx(Aq,{"data-slot":"hover-card-trigger",...t})}function _q({className:t,align:e="center",sideOffset:n=4,...r}){return p.jsx(Tq,{"data-slot":"hover-card-portal",children:p.jsx(Oq,{"data-slot":"hover-card-content",align:e,sideOffset:n,className:L("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...r})})}function Pq({name:t,className:e,...n}){return p.jsx("i",{className:L(`icon-${t}`,e),...n,children:p.jsxs("span",{className:"for-screenreader-only",children:[t," icon"]})})}const Mq=O.forwardRef(({name:t,label:e,labelVariant:n,type:r,value:o,onChange:i,description:a="",placeholder:s,className:l,inputClassName:c,isReadOnly:u=!1,hasRequiredIndicator:d=!1,...f},h)=>p.jsxs("article",{className:l,children:[e&&p.jsxs(Ln,{variant:n,className:"mb-2",children:[e,d&&p.jsx("span",{children:"*"})]}),p.jsx(jc,{ref:h,"data-test-id":t,placeholder:s,value:o,type:r,onChange:i,className:L({"pointer-events-none opacity-30":u},c),...f}),a&&p.jsx(Nc,{description:a})]}));var Dq=Object.defineProperty,kq=Object.defineProperties,jq=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,DO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,fw=(t,e,n)=>e in t?Dq(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lq=(t,e)=>{for(var n in e||(e={}))DO.call(e,n)&&fw(t,n,e[n]);if(Fl)for(var n of Fl(e))kO.call(e,n)&&fw(t,n,e[n]);return t},Bq=(t,e)=>kq(t,jq(e)),Fq=(t,e)=>{var n={};for(var r in t)DO.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fl)for(var r of Fl(t))e.indexOf(r)<0&&kO.call(t,r)&&(n[r]=t[r]);return n};function Gq(t){let e=setTimeout(t,0),n=setTimeout(t,10),r=setTimeout(t,50);return[e,n,r]}function $q(t){let e=v.useRef();return v.useEffect(()=>{e.current=t}),e.current}var Wq=18,jO=40,Vq=`${jO}px`,Hq=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function qq({containerRef:t,inputRef:e,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=v.useState(!1),[a,s]=v.useState(!1),[l,c]=v.useState(!1),u=v.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),d=v.useCallback(()=>{let f=t.current,h=e.current;if(!f||!h||l||n==="none")return;let g=f,m=g.getBoundingClientRect().left+g.offsetWidth,b=g.getBoundingClientRect().top+g.offsetHeight/2,y=m-Wq,w=b;document.querySelectorAll(Hq).length===0&&document.elementFromPoint(y,w)===f||(i(!0),c(!0))},[t,e,l,n]);return v.useEffect(()=>{let f=t.current;if(!f||n==="none")return;function h(){let m=window.innerWidth-f.getBoundingClientRect().right;s(m>=jO)}h();let g=setInterval(h,1e3);return()=>{clearInterval(g)}},[t,n]),v.useEffect(()=>{let f=r||document.activeElement===e.current;if(n==="none"||!f)return;let h=setTimeout(d,0),g=setTimeout(d,2e3),m=setTimeout(d,5e3),b=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(h),clearTimeout(g),clearTimeout(m),clearTimeout(b)}},[e,r,n,d]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:Vq}}var zq=v.createContext({}),LO=v.forwardRef((t,e)=>{var n=t,{value:r,onChange:o,maxLength:i,textAlign:a="left",pattern:s,placeholder:l,inputMode:c="numeric",onComplete:u,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:f,containerClassName:h,noScriptCSSFallback:g=Xq,render:m,children:b}=n,y=Fq(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,C,S,E,T;let[I,_]=v.useState(typeof y.defaultValue=="string"?y.defaultValue:""),P=r??I,W=$q(P),A=v.useCallback($=>{o?.($),_($)},[o]),D=v.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),N=v.useRef(null),F=v.useRef(null),j=v.useRef({value:P,onChange:A,isIOS:typeof window<"u"&&((C=(w=window?.CSS)==null?void 0:w.supports)==null?void 0:C.call(w,"-webkit-touch-callout","none"))}),M=v.useRef({prev:[(S=N.current)==null?void 0:S.selectionStart,(E=N.current)==null?void 0:E.selectionEnd,(T=N.current)==null?void 0:T.selectionDirection]});v.useImperativeHandle(e,()=>N.current,[]),v.useEffect(()=>{let $=N.current,se=F.current;if(!$||!se)return;j.current.value!==$.value&&j.current.onChange($.value),M.current.prev=[$.selectionStart,$.selectionEnd,$.selectionDirection];function Ie(){if(document.activeElement!==$){G(null),Z(null);return}let Ne=$.selectionStart,_e=$.selectionEnd,it=$.selectionDirection,Je=$.maxLength,Ye=$.value,$e=M.current.prev,Ue=-1,wt=-1,tt;if(Ye.length!==0&&Ne!==null&&_e!==null){let Vt=Ne===_e,St=Ne===Ye.length&&Ye.length<Je;if(Vt&&!St){let at=Ne;if(at===0)Ue=0,wt=1,tt="forward";else if(at===Je)Ue=at-1,wt=at,tt="backward";else if(Je>1&&Ye.length>1){let Ft=0;if($e[0]!==null&&$e[1]!==null){tt=at<$e[1]?"backward":"forward";let Ht=$e[0]===$e[1]&&$e[0]<Je;tt==="backward"&&!Ht&&(Ft=-1)}Ue=Ft+at,wt=Ft+at+1}}Ue!==-1&&wt!==-1&&Ue!==wt&&N.current.setSelectionRange(Ue,wt,tt)}let Ct=Ue!==-1?Ue:Ne,_t=wt!==-1?wt:_e,qe=tt??it;G(Ct),Z(_t),M.current.prev=[Ct,_t,qe]}if(document.addEventListener("selectionchange",Ie,{capture:!0}),Ie(),document.activeElement===$&&U(!0),!document.getElementById("input-otp-style")){let Ne=document.createElement("style");if(Ne.id="input-otp-style",document.head.appendChild(Ne),Ne.sheet){let _e="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Zi(Ne.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Zi(Ne.sheet,`[data-input-otp]:autofill { ${_e} }`),Zi(Ne.sheet,`[data-input-otp]:-webkit-autofill { ${_e} }`),Zi(Ne.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Zi(Ne.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Oe=()=>{se&&se.style.setProperty("--root-height",`${$.clientHeight}px`)};Oe();let Ve=new ResizeObserver(Oe);return Ve.observe($),()=>{document.removeEventListener("selectionchange",Ie,{capture:!0}),Ve.disconnect()}},[]);let[V,k]=v.useState(!1),[H,U]=v.useState(!1),[ee,G]=v.useState(null),[X,Z]=v.useState(null);v.useEffect(()=>{Gq(()=>{var $,se,Ie,Oe;($=N.current)==null||$.dispatchEvent(new Event("input"));let Ve=(se=N.current)==null?void 0:se.selectionStart,Ne=(Ie=N.current)==null?void 0:Ie.selectionEnd,_e=(Oe=N.current)==null?void 0:Oe.selectionDirection;Ve!==null&&Ne!==null&&(G(Ve),Z(Ne),M.current.prev=[Ve,Ne,_e])})},[P,H]),v.useEffect(()=>{W!==void 0&&P!==W&&W.length<i&&P.length===i&&u?.(P)},[i,u,W,P]);let Y=qq({containerRef:F,inputRef:N,pushPasswordManagerStrategy:d,isFocused:H}),ne=v.useCallback($=>{let se=$.currentTarget.value.slice(0,i);if(se.length>0&&D&&!D.test(se)){$.preventDefault();return}typeof W=="string"&&se.length<W.length&&document.dispatchEvent(new Event("selectionchange")),A(se)},[i,A,W,D]),z=v.useCallback(()=>{var $;if(N.current){let se=Math.min(N.current.value.length,i-1),Ie=N.current.value.length;($=N.current)==null||$.setSelectionRange(se,Ie),G(se),Z(Ie)}U(!0)},[i]),K=v.useCallback($=>{var se,Ie;let Oe=N.current;if(!f&&(!j.current.isIOS||!$.clipboardData||!Oe))return;let Ve=$.clipboardData.getData("text/plain"),Ne=f?f(Ve):Ve;$.preventDefault();let _e=(se=N.current)==null?void 0:se.selectionStart,it=(Ie=N.current)==null?void 0:Ie.selectionEnd,Je=(_e!==it?P.slice(0,_e)+Ne+P.slice(it):P.slice(0,_e)+Ne+P.slice(_e)).slice(0,i);if(Je.length>0&&D&&!D.test(Je))return;Oe.value=Je,A(Je);let Ye=Math.min(Je.length,i-1),$e=Je.length;Oe.setSelectionRange(Ye,$e),G(Ye),Z($e)},[i,A,D,P]),ae=v.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),ie=v.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,a]),re=v.useMemo(()=>v.createElement("input",Bq(Lq({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":ee,"data-input-otp-mse":X,inputMode:c,pattern:D?.source,"aria-placeholder":l,style:ie,maxLength:i,value:P,ref:N,onPaste:$=>{var se;K($),(se=y.onPaste)==null||se.call(y,$)},onChange:ne,onMouseOver:$=>{var se;k(!0),(se=y.onMouseOver)==null||se.call(y,$)},onMouseLeave:$=>{var se;k(!1),(se=y.onMouseLeave)==null||se.call(y,$)},onFocus:$=>{var se;z(),(se=y.onFocus)==null||se.call(y,$)},onBlur:$=>{var se;U(!1),(se=y.onBlur)==null||se.call(y,$)}})),[ne,z,K,c,ie,i,X,ee,y,D?.source,P]),q=v.useMemo(()=>({slots:Array.from({length:i}).map(($,se)=>{var Ie;let Oe=H&&ee!==null&&X!==null&&(ee===X&&se===ee||se>=ee&&se<X),Ve=P[se]!==void 0?P[se]:null,Ne=P[0]!==void 0?null:(Ie=l?.[se])!=null?Ie:null;return{char:Ve,placeholderChar:Ne,isActive:Oe,hasFakeCaret:Oe&&Ve===null}}),isFocused:H,isHovering:!y.disabled&&V}),[H,V,i,X,ee,y.disabled,P]),le=v.useMemo(()=>m?m(q):v.createElement(zq.Provider,{value:q},b),[b,q,m]);return v.createElement(v.Fragment,null,g!==null&&v.createElement("noscript",null,v.createElement("style",null,g)),v.createElement("div",{ref:F,"data-input-otp-container":!0,style:ae,className:h},le,v.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},re)))});LO.displayName="Input";function Zi(t,e){try{t.insertRule(e)}catch{console.error("input-otp could not insert CSS rule:",e)}}var Xq=`
|
|
63
63
|
[data-input-otp] {
|
|
64
64
|
--nojs-bg: white !important;
|
|
65
65
|
--nojs-fg: black !important;
|
|
@@ -78,9 +78,57 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
78
78
|
--nojs-bg: black !important;
|
|
79
79
|
--nojs-fg: white !important;
|
|
80
80
|
}
|
|
81
|
-
}`;function yL({ref:e,className:t,containerClassName:n,...r}){return y.jsx(yC,{ref:e,"data-slot":"input-otp",containerClassName:D("flex items-center gap-2 has-disabled:opacity-50",n),className:D("disabled:cursor-not-allowed",t),...r})}function xL({className:e,...t}){return y.jsx("kbd",{"data-slot":"kbd",className:D("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}function wL({className:e,...t}){return y.jsx("kbd",{"data-slot":"kbd-group",className:D("inline-flex items-center gap-1",e),...t})}function CL({title:e="Load more",className:t}){return y.jsx("section",{className:t,children:y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(ey,{className:"size-8 animate-spin text-primary"}),e]})})}function SL({className:e,size:t="default",...n}){return y.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[y.jsx("select",{"data-slot":"native-select","data-size":t,className:D("border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n}),y.jsx(Zd,{className:"text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function IL({...e}){return y.jsx("option",{"data-slot":"native-select-option",...e})}function EL({className:e,...t}){return y.jsx("optgroup",{"data-slot":"native-select-optgroup",className:D(e),...t})}function AL({className:e,...t}){return y.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:D("mx-auto flex w-full justify-center",e),...t})}var Gi="Popover",[xC]=ze(Gi,[en]),Vo=en(),[RL,Zn]=xC(Gi),wC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Vo(t),c=p.useRef(null),[l,u]=p.useState(!1),[d,f]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Gi});return y.jsx(Fo,{...s,children:y.jsx(RL,{scope:t,contentId:Le(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(g=>!g),[f]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:i,children:n})})};wC.displayName=Gi;var CC="PopoverAnchor",PL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(CC,n),a=Vo(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return p.useEffect(()=>(i(),()=>s()),[i,s]),y.jsx(Ar,{...a,...r,ref:t})});PL.displayName=CC;var SC="PopoverTrigger",OL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(SC,n),a=Vo(n),i=pe(t,o.triggerRef),s=y.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":AC(o.open),...r,ref:i,onClick:X(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Ar,{asChild:!0,...a,children:s})});OL.displayName=SC;var TL="PopoverPortal",[F9,_L]=xC(TL,{forceMount:void 0}),br="PopoverContent",ML=p.forwardRef((e,t)=>{const n=_L(br,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Zn(br,e.__scopePopover);return y.jsx(Xe,{present:r||a.open,children:a.modal?y.jsx(NL,{...o,ref:t}):y.jsx(kL,{...o,ref:t})})});ML.displayName=br;var DL=Dn("PopoverContent.RemoveScroll"),NL=p.forwardRef((e,t)=>{const n=Zn(br,e.__scopePopover),r=p.useRef(null),o=pe(t,r),a=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return xi(i)},[]),y.jsx(Do,{as:DL,allowPinchZoom:!0,children:y.jsx(IC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:X(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),kL=p.forwardRef((e,t)=>{const n=Zn(br,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return y.jsx(IC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),IC=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Zn(br,n),g=Vo(n);return vi(),y.jsx(Mo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(Bo,{"data-state":AC(f.open),role:"dialog",id:f.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),EC="PopoverClose",FL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Zn(EC,n);return y.jsx(oe.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});FL.displayName=EC;var BL="PopoverArrow",jL=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Vo(n);return y.jsx(jo,{...o,...r,ref:t})});jL.displayName=BL;function AC(e){return e?"open":"closed"}var GL=wC;function LL({...e}){return y.jsx(GL,{"data-slot":"popover",...e})}var rp="Radio",[WL,RC]=ze(rp),[VL,HL]=WL(rp),PC=p.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:l,...u}=e,[d,f]=p.useState(null),g=pe(t,h=>f(h)),b=p.useRef(!1),m=d?l||!!d.closest("form"):!0;return y.jsxs(VL,{scope:n,checked:o,disabled:i,children:[y.jsx(oe.button,{type:"button",role:"radio","aria-checked":o,"data-state":MC(o),"data-disabled":i?"":void 0,disabled:i,value:s,...u,ref:g,onClick:X(e.onClick,h=>{o||c?.(),m&&(b.current=h.isPropagationStopped(),b.current||h.stopPropagation())})}),m&&y.jsx(_C,{control:d,bubbles:!b.current,name:r,value:s,checked:o,required:a,disabled:i,form:l,style:{transform:"translateX(-100%)"}})]})});PC.displayName=rp;var OC="RadioIndicator",TC=p.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=HL(OC,n);return y.jsx(Xe,{present:r||a.checked,children:y.jsx(oe.span,{"data-state":MC(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});TC.displayName=OC;var $L="RadioBubbleInput",_C=p.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=p.useRef(null),s=pe(i,a),c=To(n),l=_o(t);return p.useEffect(()=>{const u=i.current;if(!u)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&g){const b=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(b)}},[c,n,r]),y.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_C.displayName=$L;function MC(e){return e?"checked":"unchecked"}var zL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Li="RadioGroup",[XL]=ze(Li,[Rr,RC]),DC=Rr(),NC=RC(),[YL,ZL]=XL(Li),kC=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:d,...f}=e,g=DC(n),b=wn(l),[m,h]=et({prop:a,defaultProp:o??null,onChange:d,caller:Li});return y.jsx(YL,{scope:n,name:r,required:i,disabled:s,value:m,onValueChange:h,children:y.jsx(zf,{asChild:!0,...g,orientation:c,dir:b,loop:u,children:y.jsx(oe.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...f,ref:t})})})});kC.displayName=Li;var FC="RadioGroupItem",qL=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=ZL(FC,n),i=a.disabled||r,s=DC(n),c=NC(n),l=p.useRef(null),u=pe(t,l),d=a.value===o.value,f=p.useRef(!1);return p.useEffect(()=>{const g=m=>{zL.includes(m.key)&&(f.current=!0)},b=()=>f.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),y.jsx(Xf,{asChild:!0,...s,focusable:!i,active:d,children:y.jsx(PC,{disabled:i,required:a.required,checked:d,...c,...o,name:a.name,ref:u,onCheck:()=>a.onValueChange(o.value),onKeyDown:X(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:X(o.onFocus,()=>{f.current&&l.current?.click()})})})});qL.displayName=FC;var UL="RadioGroupIndicator",JL=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=NC(n);return y.jsx(TC,{...o,...r,ref:t})});JL.displayName=UL;var KL=kC;function QL({className:e,...t}){return y.jsx(KL,{"data-slot":"radio-group",className:D("grid gap-3",e),...t})}function go(e,[t,n]){return Math.min(n,Math.max(t,e))}function eW(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var op="ScrollArea",[BC]=ze(op),[tW,St]=BC(op),jC=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,c]=p.useState(null),[l,u]=p.useState(null),[d,f]=p.useState(null),[g,b]=p.useState(null),[m,h]=p.useState(null),[v,x]=p.useState(0),[w,C]=p.useState(0),[S,A]=p.useState(!1),[I,R]=p.useState(!1),P=pe(t,T=>c(T)),M=wn(o);return y.jsx(tW,{scope:n,type:r,dir:M,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:S,onScrollbarXEnabledChange:A,scrollbarY:m,onScrollbarYChange:h,scrollbarYEnabled:I,onScrollbarYEnabledChange:R,onCornerWidthChange:x,onCornerHeightChange:C,children:y.jsx(oe.div,{dir:M,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});jC.displayName=op;var GC="ScrollAreaViewport",LC=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=St(GC,n),s=p.useRef(null),c=pe(t,s,i.onViewportChange);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),y.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:y.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});LC.displayName=GC;var tn="ScrollAreaScrollbar",WC=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return p.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?y.jsx(nW,{...r,ref:t,forceMount:n}):o.type==="scroll"?y.jsx(rW,{...r,ref:t,forceMount:n}):o.type==="auto"?y.jsx(VC,{...r,ref:t,forceMount:n}):o.type==="always"?y.jsx(ap,{...r,ref:t}):null});WC.displayName=tn;var nW=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const l=()=>{window.clearTimeout(c),i(!0)},u=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),y.jsx(Xe,{present:n||a,children:y.jsx(VC,{"data-state":a?"visible":"hidden",...r,ref:t})})}),rW=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=St(tn,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Vi(()=>c("SCROLL_END"),100),[s,c]=eW("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,c]),p.useEffect(()=>{const l=o.viewport,u=a?"scrollLeft":"scrollTop";if(l){let d=l[u];const f=()=>{const g=l[u];d!==g&&(c("SCROLL"),i()),d=g};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,c,i]),y.jsx(Xe,{present:n||s!=="hidden",children:y.jsx(ap,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:X(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:X(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),VC=p.forwardRef((e,t)=>{const n=St(tn,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=p.useState(!1),s=e.orientation==="horizontal",c=Vi(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?l:u)}},10);return vr(n.viewport,c),vr(n.content,c),y.jsx(Xe,{present:r||a,children:y.jsx(ap,{"data-state":a?"visible":"hidden",...o,ref:t})})}),ap=p.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=St(tn,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[s,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=YC(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,g){return lW(f,i.current,s,g)}return n==="horizontal"?y.jsx(oW,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,g=sv(f,s,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?y.jsx(aW,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,g=sv(f,s);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),oW=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=St(tn,e.__scopeScrollArea),[i,s]=p.useState(),c=p.useRef(null),l=pe(t,c,a.onScrollbarXChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),y.jsx($C,{"data-orientation":"horizontal",...o,ref:l,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wi(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),qC(f,d)&&u.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Xa(i.paddingLeft),paddingEnd:Xa(i.paddingRight)}})}})}),aW=p.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=St(tn,e.__scopeScrollArea),[i,s]=p.useState(),c=p.useRef(null),l=pe(t,c,a.onScrollbarYChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),y.jsx($C,{"data-orientation":"vertical",...o,ref:l,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wi(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),qC(f,d)&&u.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Xa(i.paddingTop),paddingEnd:Xa(i.paddingBottom)}})}})}),[iW,HC]=BC(tn),$C=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,g=St(tn,n),[b,m]=p.useState(null),h=pe(t,P=>m(P)),v=p.useRef(null),x=p.useRef(""),w=g.viewport,C=r.content-r.viewport,S=qe(u),A=qe(c),I=Vi(d,10);function R(P){if(v.current){const M=P.clientX-v.current.left,T=P.clientY-v.current.top;l({x:M,y:T})}}return p.useEffect(()=>{const P=M=>{const T=M.target;b?.contains(T)&&S(M,C)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[w,b,C,S]),p.useEffect(A,[r,A]),vr(b,I),vr(g.content,I),y.jsx(iW,{scope:n,scrollbar:b,hasThumb:o,onThumbChange:qe(a),onThumbPointerUp:qe(i),onThumbPositionChange:A,onThumbPointerDown:qe(s),children:y.jsx(oe.div,{...f,ref:h,style:{position:"absolute",...f.style},onPointerDown:X(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),v.current=b.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),R(P))}),onPointerMove:X(e.onPointerMove,R),onPointerUp:X(e.onPointerUp,P=>{const M=P.target;M.hasPointerCapture(P.pointerId)&&M.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=x.current,g.viewport&&(g.viewport.style.scrollBehavior=""),v.current=null})})})}),za="ScrollAreaThumb",zC=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=HC(za,e.__scopeScrollArea);return y.jsx(Xe,{present:n||o.hasThumb,children:y.jsx(sW,{ref:t,...r})})}),sW=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=St(za,n),i=HC(za,n),{onThumbPositionChange:s}=i,c=pe(t,d=>i.onThumbChange(d)),l=p.useRef(void 0),u=Vi(()=>{l.current&&(l.current(),l.current=void 0)},100);return p.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(u(),!l.current){const g=uW(d,s);l.current=g,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,u,s]),y.jsx(oe.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:X(e.onPointerDownCapture,d=>{const g=d.target.getBoundingClientRect(),b=d.clientX-g.left,m=d.clientY-g.top;i.onThumbPointerDown({x:b,y:m})}),onPointerUp:X(e.onPointerUp,i.onThumbPointerUp)})});zC.displayName=za;var ip="ScrollAreaCorner",XC=p.forwardRef((e,t)=>{const n=St(ip,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?y.jsx(cW,{...e,ref:t}):null});XC.displayName=ip;var cW=p.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=St(ip,n),[a,i]=p.useState(0),[s,c]=p.useState(0),l=!!(a&&s);return vr(o.scrollbarX,()=>{const u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),c(u)}),vr(o.scrollbarY,()=>{const u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),i(u)}),l?y.jsx(oe.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Xa(e){return e?parseInt(e,10):0}function YC(e,t){const n=e/t;return isNaN(n)?0:n}function Wi(e){const t=YC(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lW(e,t,n,r="ltr"){const o=Wi(n),a=o/2,i=t||a,s=o-i,c=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return ZC([c,l],d)(e)}function sv(e,t,n="ltr"){const r=Wi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,c=n==="ltr"?[0,i]:[i*-1,0],l=go(e,c);return ZC([0,i],[0,s])(l)}function ZC(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function qC(e,t){return e>0&&e<t}var uW=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Vi(e,t){const n=qe(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function vr(e,t){const n=qe(t);ke(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var dW=jC,fW=LC,pW=XC;function mW({className:e,children:t,...n}){return y.jsxs(dW,{"data-slot":"scroll-area",className:D("relative",e),...n,children:[y.jsx(fW,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),y.jsx(hW,{}),y.jsx(pW,{})]})}function hW({className:e,orientation:t="vertical",...n}){return y.jsx(WC,{"data-slot":"scroll-area-scrollbar",orientation:t,className:D("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:y.jsx(zC,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var UC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gW="VisuallyHidden",JC=p.forwardRef((e,t)=>y.jsx(oe.span,{...e,ref:t,style:{...UC,...e.style}}));JC.displayName=gW;var bW=JC,vW=[" ","Enter","ArrowUp","ArrowDown"],yW=[" ","Enter"],Gn="Select",[Hi,$i,xW]=wo(Gn),[Or]=ze(Gn,[xW,en]),zi=en(),[wW,In]=Or(Gn),[CW,SW]=Or(Gn),KC=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:g,form:b}=e,m=zi(t),[h,v]=p.useState(null),[x,w]=p.useState(null),[C,S]=p.useState(!1),A=wn(l),[I,R]=et({prop:r,defaultProp:o??!1,onChange:a,caller:Gn}),[P,M]=et({prop:i,defaultProp:s,onChange:c,caller:Gn}),T=p.useRef(null),B=h?b||!!h.closest("form"):!0,[O,L]=p.useState(new Set),W=Array.from(O).map(j=>j.props.value).join(";");return y.jsx(Fo,{...m,children:y.jsxs(wW,{required:g,scope:t,trigger:h,onTriggerChange:v,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:Le(),value:P,onValueChange:M,open:I,onOpenChange:R,dir:A,triggerPointerDownPosRef:T,disabled:f,children:[y.jsx(Hi.Provider,{scope:t,children:y.jsx(CW,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(j=>{L($=>new Set($).add(j))},[]),onNativeOptionRemove:p.useCallback(j=>{L($=>{const N=new Set($);return N.delete(j),N})},[]),children:n})}),B?y.jsxs(lS,{"aria-hidden":!0,required:g,tabIndex:-1,name:u,autoComplete:d,value:P,onChange:j=>M(j.target.value),disabled:f,form:b,children:[P===void 0?y.jsx("option",{value:""}):null,Array.from(O)]},W):null]})})};KC.displayName=Gn;var QC="SelectTrigger",IW=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=zi(n),i=In(QC,n),s=i.disabled||r,c=pe(t,i.onTriggerChange),l=$i(n),u=p.useRef("touch"),[d,f,g]=dS(m=>{const h=l().filter(w=>!w.disabled),v=h.find(w=>w.value===i.value),x=fS(h,m,v);x!==void 0&&i.onValueChange(x.value)}),b=m=>{s||(i.onOpenChange(!0),g()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Ar,{asChild:!0,...a,children:y.jsx(oe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":uS(i.value)?"":void 0,...o,ref:c,onClick:X(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&b(m)}),onPointerDown:X(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(b(m),m.preventDefault())}),onKeyDown:X(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(h&&m.key===" ")&&vW.includes(m.key)&&(b(),m.preventDefault())})})})});IW.displayName=QC;var eS="SelectValue",EW=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=In(eS,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=pe(t,c.onValueNodeChange);return ke(()=>{l(u)},[l,u]),y.jsx(oe.span,{...s,ref:d,style:{pointerEvents:"none"},children:uS(c.value)?y.jsx(y.Fragment,{children:i}):a})});EW.displayName=eS;var AW="SelectIcon",RW=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return y.jsx(oe.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});RW.displayName=AW;var Ln="SelectContent",PW=p.forwardRef((e,t)=>{const n=In(Ln,e.__scopeSelect),[r,o]=p.useState();if(ke(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?ei.createPortal(y.jsx(tS,{scope:e.__scopeSelect,children:y.jsx(Hi.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),a):null}return y.jsx(nS,{...e,ref:t})});PW.displayName=Ln;var Rt=10,[tS,En]=Or(Ln),OW="SelectContentImpl",TW=Dn("SelectContent.RemoveScroll"),nS=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:h,...v}=e,x=In(Ln,n),[w,C]=p.useState(null),[S,A]=p.useState(null),I=pe(t,G=>C(G)),[R,P]=p.useState(null),[M,T]=p.useState(null),B=$i(n),[O,L]=p.useState(!1),W=p.useRef(!1);p.useEffect(()=>{if(w)return xi(w)},[w]),vi();const j=p.useCallback(G=>{const[q,...ae]=B().map(F=>F.ref.current),[re]=ae.slice(-1),te=document.activeElement;for(const F of G)if(F===te||(F?.scrollIntoView({block:"nearest"}),F===q&&S&&(S.scrollTop=0),F===re&&S&&(S.scrollTop=S.scrollHeight),F?.focus(),document.activeElement!==te))return},[B,S]),$=p.useCallback(()=>j([R,w]),[j,R,w]);p.useEffect(()=>{O&&$()},[O,$]);const{onOpenChange:N,triggerPointerDownPosRef:V}=x;p.useEffect(()=>{if(w){let G={x:0,y:0};const q=re=>{G={x:Math.abs(Math.round(re.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(re.pageY)-(V.current?.y??0))}},ae=re=>{G.x<=10&&G.y<=10?re.preventDefault():w.contains(re.target)||N(!1),document.removeEventListener("pointermove",q),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",ae,{capture:!0})}}},[w,N,V]),p.useEffect(()=>{const G=()=>N(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[N]);const[U,ee]=dS(G=>{const q=B().filter(te=>!te.disabled),ae=q.find(te=>te.ref.current===document.activeElement),re=fS(q,G,ae);re&&setTimeout(()=>re.ref.current.focus())}),k=p.useCallback((G,q,ae)=>{const re=!W.current&&!ae;(x.value!==void 0&&x.value===q||re)&&(P(G),re&&(W.current=!0))},[x.value]),H=p.useCallback(()=>w?.focus(),[w]),Y=p.useCallback((G,q,ae)=>{const re=!W.current&&!ae;(x.value!==void 0&&x.value===q||re)&&T(G)},[x.value]),z=r==="popper"?Cd:rS,J=z===Cd?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:g,sticky:b,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(tS,{scope:n,content:w,viewport:S,onViewportChange:A,itemRefCallback:k,selectedItem:R,onItemLeave:H,itemTextRefCallback:Y,focusSelectedItem:$,selectedItemText:M,position:r,isPositioned:O,searchRef:U,children:y.jsx(Do,{as:TW,allowPinchZoom:!0,children:y.jsx(Mo,{asChild:!0,trapped:x.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:X(o,G=>{x.trigger?.focus({preventScroll:!0}),G.preventDefault()}),children:y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(z,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:G=>G.preventDefault(),...v,...J,onPlaced:()=>L(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:X(v.onKeyDown,G=>{const q=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!q&&G.key.length===1&&ee(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let re=B().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(G.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const te=G.target,F=re.indexOf(te);re=re.slice(F+1)}setTimeout(()=>j(re)),G.preventDefault()}})})})})})})});nS.displayName=OW;var _W="SelectItemAlignedPosition",rS=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=In(Ln,n),i=En(Ln,n),[s,c]=p.useState(null),[l,u]=p.useState(null),d=pe(t,I=>u(I)),f=$i(n),g=p.useRef(!1),b=p.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:v,focusSelectedItem:x}=i,w=p.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&m&&h&&v){const I=a.trigger.getBoundingClientRect(),R=l.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),M=v.getBoundingClientRect();if(a.dir!=="rtl"){const te=M.left-R.left,F=P.left-te,de=I.left-F,_=I.width+de,Q=Math.max(_,R.width),ge=window.innerWidth-Rt,xe=go(F,[Rt,Math.max(Rt,ge-Q)]);s.style.minWidth=_+"px",s.style.left=xe+"px"}else{const te=R.right-M.right,F=window.innerWidth-P.right-te,de=window.innerWidth-I.right-F,_=I.width+de,Q=Math.max(_,R.width),ge=window.innerWidth-Rt,xe=go(F,[Rt,Math.max(Rt,ge-Q)]);s.style.minWidth=_+"px",s.style.right=xe+"px"}const T=f(),B=window.innerHeight-Rt*2,O=m.scrollHeight,L=window.getComputedStyle(l),W=parseInt(L.borderTopWidth,10),j=parseInt(L.paddingTop,10),$=parseInt(L.borderBottomWidth,10),N=parseInt(L.paddingBottom,10),V=W+j+O+N+$,U=Math.min(h.offsetHeight*5,V),ee=window.getComputedStyle(m),k=parseInt(ee.paddingTop,10),H=parseInt(ee.paddingBottom,10),Y=I.top+I.height/2-Rt,z=B-Y,J=h.offsetHeight/2,G=h.offsetTop+J,q=W+j+G,ae=V-q;if(q<=Y){const te=T.length>0&&h===T[T.length-1].ref.current;s.style.bottom="0px";const F=l.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(z,J+(te?H:0)+F+$),_=q+de;s.style.height=_+"px"}else{const te=T.length>0&&h===T[0].ref.current;s.style.top="0px";const de=Math.max(Y,W+m.offsetTop+(te?k:0)+J)+ae;s.style.height=de+"px",m.scrollTop=q-Y+m.offsetTop}s.style.margin=`${Rt}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=B+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[f,a.trigger,a.valueNode,s,l,m,h,v,a.dir,r]);ke(()=>w(),[w]);const[C,S]=p.useState();ke(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const A=p.useCallback(I=>{I&&b.current===!0&&(w(),x?.(),b.current=!1)},[w,x]);return y.jsx(DW,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:y.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:y.jsx(oe.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rS.displayName=_W;var MW="SelectPopperPosition",Cd=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rt,...a}=e,i=zi(n);return y.jsx(Bo,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cd.displayName=MW;var[DW,sp]=Or(Ln,{}),Sd="SelectViewport",NW=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=En(Sd,n),i=sp(Sd,n),s=pe(t,a.onViewportChange),c=p.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),y.jsx(Hi.Slot,{scope:n,children:y.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f?.current&&d){const g=Math.abs(c.current-u.scrollTop);if(g>0){const b=window.innerHeight-Rt*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),v=Math.max(m,h);if(v<b){const x=v+g,w=Math.min(b,x),C=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});NW.displayName=Sd;var oS="SelectGroup",[kW,FW]=Or(oS),BW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Le();return y.jsx(kW,{scope:n,id:o,children:y.jsx(oe.div,{role:"group","aria-labelledby":o,...r,ref:t})})});BW.displayName=oS;var aS="SelectLabel",jW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=FW(aS,n);return y.jsx(oe.div,{id:o.id,...r,ref:t})});jW.displayName=aS;var Ya="SelectItem",[GW,iS]=Or(Ya),LW=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=In(Ya,n),c=En(Ya,n),l=s.value===r,[u,d]=p.useState(a??""),[f,g]=p.useState(!1),b=pe(t,x=>c.itemRefCallback?.(x,r,o)),m=Le(),h=p.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(GW,{scope:n,value:r,disabled:o,textId:m,isSelected:l,onItemTextChange:p.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Hi.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:y.jsx(oe.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:X(i.onFocus,()=>g(!0)),onBlur:X(i.onBlur,()=>g(!1)),onClick:X(i.onClick,()=>{h.current!=="mouse"&&v()}),onPointerUp:X(i.onPointerUp,()=>{h.current==="mouse"&&v()}),onPointerDown:X(i.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:X(i.onPointerMove,x=>{h.current=x.pointerType,o?c.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:X(i.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(yW.includes(x.key)&&v(),x.key===" "&&x.preventDefault())})})})})});LW.displayName=Ya;var Jr="SelectItemText",WW=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=In(Jr,n),s=En(Jr,n),c=iS(Jr,n),l=SW(Jr,n),[u,d]=p.useState(null),f=pe(t,v=>d(v),c.onItemTextChange,v=>s.itemTextRefCallback?.(v,c.value,c.disabled)),g=u?.textContent,b=p.useMemo(()=>y.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=l;return ke(()=>(m(b),()=>h(b)),[m,h,b]),y.jsxs(y.Fragment,{children:[y.jsx(oe.span,{id:c.textId,...a,ref:f}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ei.createPortal(a.children,i.valueNode):null]})});WW.displayName=Jr;var sS="SelectItemIndicator",VW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return iS(sS,n).isSelected?y.jsx(oe.span,{"aria-hidden":!0,...r,ref:t}):null});VW.displayName=sS;var Id="SelectScrollUpButton",HW=p.forwardRef((e,t)=>{const n=En(Id,e.__scopeSelect),r=sp(Id,e.__scopeSelect),[o,a]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?y.jsx(cS,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});HW.displayName=Id;var Ed="SelectScrollDownButton",$W=p.forwardRef((e,t)=>{const n=En(Ed,e.__scopeSelect),r=sp(Ed,e.__scopeSelect),[o,a]=p.useState(!1),i=pe(t,r.onScrollButtonChange);return ke(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<l;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?y.jsx(cS,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});$W.displayName=Ed;var cS=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=En("SelectScrollButton",n),i=p.useRef(null),s=$i(n),c=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),ke(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(oe.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{c()})})}),zW="SelectSeparator",XW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(oe.div,{"aria-hidden":!0,...r,ref:t})});XW.displayName=zW;var Ad="SelectArrow",YW=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zi(n),a=In(Ad,n),i=En(Ad,n);return a.open&&i.position==="popper"?y.jsx(jo,{...o,...r,ref:t}):null});YW.displayName=Ad;var ZW="SelectBubbleInput",lS=p.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=p.useRef(null),a=pe(r,o),i=To(t);return p.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[i,t]),y.jsx(oe.select,{...n,style:{...UC,...n.style},ref:a,defaultValue:t})});lS.displayName=ZW;function uS(e){return e===""||e===void 0}function dS(e){const t=qe(e),n=p.useRef(""),r=p.useRef(0),o=p.useCallback(i=>{const s=n.current+i;t(s),(function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function fS(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=qW(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function qW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UW=KC;function JW({...e}){return y.jsx(UW,{"data-slot":"select",...e})}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function KW(e,t){if(Wn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pS(e){var t=KW(e,"string");return Wn(t)=="symbol"?t:t+""}function Kr(e,t,n){return(t=pS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(r){Kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QW(e){if(Array.isArray(e))return e}function eV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Rd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mS(e,t){if(e){if(typeof e=="string")return Rd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rd(e,t):void 0}}function tV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lr(e){return cV(e)||lV(e)||mS(e)||uV()}function dV(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fV(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var pV=(function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fV(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=dV(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ke="-ms-",qa="-moz-",we="-webkit-",bS="comm",cp="rule",lp="decl",mV="@import",vS="@keyframes",hV="@layer",gV=Math.abs,Xi=String.fromCharCode,bV=Object.assign;function vV(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function yS(e){return e.trim()}function yV(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function Pd(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function bo(e,t,n){return e.slice(t,n)}function Lt(e){return e.length}function up(e){return e.length}function da(e,t){return t.push(e),e}function xV(e,t){return e.map(t).join("")}var Yi=1,yr=1,xS=0,it=0,Ge=0,Tr="";function Zi(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yi,column:yr,length:i,return:""}}function Vr(e,t){return bV(Zi("",null,null,"",null,null,0),e,{length:-e.length},t)}function wV(){return Ge}function CV(){return Ge=it>0?Je(Tr,--it):0,yr--,Ge===10&&(yr=1,Yi--),Ge}function ht(){return Ge=it<xS?Je(Tr,it++):0,yr++,Ge===10&&(yr=1,Yi++),Ge}function Xt(){return Je(Tr,it)}function ya(){return it}function Ho(e,t){return bo(Tr,e,t)}function vo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wS(e){return Yi=yr=1,xS=Lt(Tr=e),it=0,[]}function CS(e){return Tr="",e}function xa(e){return yS(Ho(it-1,Od(e===91?e+2:e===40?e+1:e)))}function SV(e){for(;(Ge=Xt())&&Ge<33;)ht();return vo(e)>2||vo(Ge)>3?"":" "}function IV(e,t){for(;--t&&ht()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return Ho(e,ya()+(t<6&&Xt()==32&&ht()==32))}function Od(e){for(;ht();)switch(Ge){case e:return it;case 34:case 39:e!==34&&e!==39&&Od(Ge);break;case 40:e===41&&Od(e);break;case 92:ht();break}return it}function EV(e,t){for(;ht()&&e+Ge!==57;)if(e+Ge===84&&Xt()===47)break;return"/*"+Ho(t,it-1)+"*"+Xi(e===47?e:ht())}function AV(e){for(;!vo(Xt());)ht();return Ho(e,it)}function RV(e){return CS(wa("",null,null,null,[""],e=wS(e),0,[0],e))}function wa(e,t,n,r,o,a,i,s,c){for(var l=0,u=0,d=i,f=0,g=0,b=0,m=1,h=1,v=1,x=0,w="",C=o,S=a,A=r,I=w;h;)switch(b=x,x=ht()){case 40:if(b!=108&&Je(I,d-1)==58){Pd(I+=Ce(xa(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:I+=xa(x);break;case 9:case 10:case 13:case 32:I+=SV(b);break;case 92:I+=IV(ya()-1,7);continue;case 47:switch(Xt()){case 42:case 47:da(PV(EV(ht(),ya()),t,n),c);break;default:I+="/"}break;case 123*m:s[l++]=Lt(I)*v;case 125*m:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+u:v==-1&&(I=Ce(I,/\f/g,"")),g>0&&Lt(I)-d&&da(g>32?dv(I+";",r,n,d-1):dv(Ce(I," ","")+";",r,n,d-2),c);break;case 59:I+=";";default:if(da(A=uv(I,t,n,l,u,o,s,w,C=[],S=[],d),a),x===123)if(u===0)wa(I,t,A,A,C,a,d,s,S);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:wa(e,A,A,r&&da(uv(e,A,A,0,0,o,s,w,o,C=[],d),S),o,S,d,s,r?C:S);break;default:wa(I,A,A,A,[""],S,0,s,S)}}l=u=g=0,m=v=1,w=I="",d=i;break;case 58:d=1+Lt(I),g=b;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&CV()==125)continue}switch(I+=Xi(x),x*m){case 38:v=u>0?1:(I+="\f",-1);break;case 44:s[l++]=(Lt(I)-1)*v,v=1;break;case 64:Xt()===45&&(I+=xa(ht())),f=Xt(),u=d=Lt(w=I+=AV(ya())),x++;break;case 45:b===45&&Lt(I)==2&&(m=0)}}return a}function uv(e,t,n,r,o,a,i,s,c,l,u){for(var d=o-1,f=o===0?a:[""],g=up(f),b=0,m=0,h=0;b<r;++b)for(var v=0,x=bo(e,d+1,d=gV(m=i[b])),w=e;v<g;++v)(w=yS(m>0?f[v]+" "+x:Ce(x,/&\f/g,f[v])))&&(c[h++]=w);return Zi(e,t,n,o===0?cp:s,c,l,u)}function PV(e,t,n){return Zi(e,t,n,bS,Xi(wV()),bo(e,2,-2),0)}function dv(e,t,n,r){return Zi(e,t,n,lp,bo(e,0,r),bo(e,r+1,-1),r)}function ur(e,t){for(var n="",r=up(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function OV(e,t,n,r){switch(e.type){case hV:if(e.children.length)break;case mV:case lp:return e.return=e.return||e.value;case bS:return"";case vS:return e.return=e.value+"{"+ur(e.children,r)+"}";case cp:e.value=e.props.join(",")}return Lt(n=ur(e.children,r))?e.return=e.value+"{"+n+"}":""}function TV(e){var t=up(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function _V(e){return function(t){t.root||(t=t.return)&&e(t)}}function MV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var DV=function(t,n,r){for(var o=0,a=0;o=a,a=Xt(),o===38&&a===12&&(n[r]=1),!vo(a);)ht();return Ho(t,it)},NV=function(t,n){var r=-1,o=44;do switch(vo(o)){case 0:o===38&&Xt()===12&&(n[r]=1),t[r]+=DV(it-1,n,r);break;case 2:t[r]+=xa(o);break;case 4:if(o===44){t[++r]=Xt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xi(o)}while(o=ht());return t},kV=function(t,n){return CS(NV(wS(t),n))},fv=new WeakMap,FV=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!fv.get(r))&&!o){fv.set(t,!0);for(var a=[],i=kV(n,a),s=r.props,c=0,l=0;c<i.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,s[u]):s[u]+" "+i[c]}}},BV=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function SS(e,t){switch(vV(e,t)){case 5103:return we+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+qa+e+Ke+e+e;case 6828:case 4268:return we+e+Ke+e+e;case 6165:return we+e+Ke+"flex-"+e+e;case 5187:return we+e+Ce(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return we+e+Ke+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return we+e+Ke+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+Ke+Ce(e,"shrink","negative")+e;case 5292:return we+e+Ke+Ce(e,"basis","preferred-size")+e;case 6060:return we+"box-"+Ce(e,"-grow","")+we+e+Ke+Ce(e,"grow","positive")+e;case 4554:return we+Ce(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,we+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+qa+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pd(e,"stretch")?SS(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Lt(e)-3-(~Pd(e,"!important")&&10))){case 107:return Ce(e,":",":"+we)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(Je(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+Ke+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+Ke+e+e}return e}var jV=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lp:t.return=SS(t.value,t.length);break;case vS:return ur([Vr(t,{value:Ce(t.value,"@","@"+we)})],o);case cp:if(t.length)return xV(t.props,function(a){switch(yV(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ur([Vr(t,{props:[Ce(a,/:(read-\w+)/,":"+qa+"$1")]})],o);case"::placeholder":return ur([Vr(t,{props:[Ce(a,/:(plac\w+)/,":"+we+"input-$1")]}),Vr(t,{props:[Ce(a,/:(plac\w+)/,":"+qa+"$1")]}),Vr(t,{props:[Ce(a,/:(plac\w+)/,Ke+"input-$1")]})],o)}return""})}},GV=[jV],LV=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||GV,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),v=1;v<h.length;v++)a[h[v]]=!0;s.push(m)});var c,l=[FV,BV];{var u,d=[OV,_V(function(m){u.insert(m)})],f=TV(l.concat(o,d)),g=function(h){return ur(RV(h),f)};c=function(h,v,x,w){u=x,g(h?h+"{"+v.styles+"}":v.styles),w&&(b.inserted[v.name]=!0)}}var b={key:n,sheet:new pV({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return b.sheet.hydrate(s),b},Du,pv;function WV(){if(pv)return Du;pv=1;var e=WN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function i(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(b,m,h){if(typeof m!="string"){if(f){var v=d(m);v&&v!==f&&g(b,v,h)}var x=c(m);l&&(x=x.concat(l(m)));for(var w=i(b),C=i(m),S=0;S<x.length;++S){var A=x[S];if(!n[A]&&!(h&&h[A])&&!(C&&C[A])&&!(w&&w[A])){var I=u(m,A);try{s(b,A,I)}catch{}}}}return b}return Du=g,Du}WV();var VV=!0;function HV(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var IS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||VV===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},$V=function(t,n,r){IS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function zV(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},YV=/[A-Z]|^ms/g,ZV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ES=function(t){return t.charCodeAt(1)===45},mv=function(t){return t!=null&&typeof t!="boolean"},Nu=MV(function(e){return ES(e)?e:e.replace(YV,"-$&").toLowerCase()}),hv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZV,function(r,o,a){return Wt={name:o,styles:a,next:Wt},o})}return XV[t]!==1&&!ES(t)&&typeof n=="number"&&n!==0?n+"px":n};function yo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Wt={name:o.name,styles:o.styles,next:Wt},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Wt={name:i.name,styles:i.styles,next:Wt},i=i.next;var s=a.styles+";";return s}return qV(e,t,n)}case"function":{if(e!==void 0){var c=Wt,l=n(e);return Wt=c,yo(e,t,l)}break}}var u=n;return u}function qV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yo(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;mv(s)&&(r+=Nu(a)+":"+hv(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var c=0;c<i.length;c++)mv(i[c])&&(r+=Nu(a)+":"+hv(a,i[c])+";");else{var l=yo(e,t,i);switch(a){case"animation":case"animationName":{r+=Nu(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var gv=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function AS(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Wt=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=yo(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=yo(n,t,e[s]),r){var c=a;o+=c[s]}gv.lastIndex=0;for(var l="",u;(u=gv.exec(o))!==null;)l+="-"+u[1];var d=zV(o)+l;return{name:d,styles:o,next:Wt}}var UV=function(t){return t()},JV=p.useInsertionEffect?p.useInsertionEffect:!1,KV=JV||UV,RS=p.createContext(typeof HTMLElement<"u"?LV({key:"css"}):null);RS.Provider;var QV=function(t){return E.forwardRef(function(n,r){var o=E.useContext(RS);return t(n,o,r)})},eH=p.createContext({}),dp={}.hasOwnProperty,Td="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tH=function(t,n){var r={};for(var o in n)dp.call(n,o)&&(r[o]=n[o]);return r[Td]=t,r},nH=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return IS(n,r,o),KV(function(){return $V(n,r,o)}),null},rH=QV(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Td],a=[r],i="";typeof e.className=="string"?i=HV(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=AS(a,void 0,p.useContext(eH));i+=t.key+"-"+s.name;var c={};for(var l in e)dp.call(e,l)&&l!=="css"&&l!==Td&&(c[l]=e[l]);return c.className=i,n&&(c.ref=n),p.createElement(p.Fragment,null,p.createElement(nH,{cache:t,serialized:s,isStringTag:typeof o=="string"}),p.createElement(o,c))}),oH=rH,ue=function(t,n){var r=arguments;if(n==null||!dp.call(n,"css"))return p.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=oH,a[1]=tH(t,n);for(var i=2;i<o;i++)a[i]=r[i];return p.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ue||(ue={}));function fp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return AS(t)}function aH(){var e=fp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function iH(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _d=E.useLayoutEffect,sH=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ua=function(){};function cH(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function lH(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(cH(e,i)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Ja=function(t){return vH(t)?t.filter(Boolean):Wn(t)==="object"&&t!==null?[t]:[]},PS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=nn(t,sH);return fe({},n)},Ne=function(t,n,r){var o=t.cx,a=t.getStyles,i=t.getClassNames,s=t.className;return{css:a(n,t),className:o(r??{},i(n,t),s)}};function qi(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function uH(e){return qi(e)?window.innerHeight:e.clientHeight}function OS(e){return qi(e)?window.pageYOffset:e.scrollTop}function Ka(e,t){if(qi(e)){window.scrollTo(0,t);return}e.scrollTop=t}function dH(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function fH(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ua,o=OS(e),a=t-o,i=10,s=0;function c(){s+=i;var l=fH(s,o,a,n);Ka(e,l),s<n?window.requestAnimationFrame(c):r(e)}c()}function bv(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ka(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ka(e,Math.max(t.offsetTop-o,0))}function pH(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function vv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function mH(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var TS=!1,hH={get passive(){return TS=!0}},pa=typeof window<"u"?window:{};pa.addEventListener&&pa.removeEventListener&&(pa.addEventListener("p",Ua,hH),pa.removeEventListener("p",Ua,!1));var gH=TS;function bH(e){return e!=null}function vH(e){return Array.isArray(e)}function Qr(e,t,n){return e?t:n}var yH=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=Object.entries(t).filter(function(i){var s=un(i,1),c=s[0];return!r.includes(c)});return a.reduce(function(i,s){var c=un(s,2),l=c[0],u=c[1];return i[l]=u,i},{})},xH=["children","innerProps"],wH=["children","innerProps"];function CH(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,c=dH(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),g=f.bottom,b=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect(),v=h.top,x=i?window.innerHeight:uH(c),w=OS(c),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),A=v-S,I=x-m,R=A+w,P=d-w-m,M=g-x+w+C,T=w+m-S,B=160;switch(o){case"auto":case"bottom":if(I>=b)return{placement:"bottom",maxHeight:t};if(P>=b&&!i)return a&&fa(c,M,B),{placement:"bottom",maxHeight:t};if(!i&&P>=r||i&&I>=r){a&&fa(c,M,B);var O=i?I-C:P-C;return{placement:"bottom",maxHeight:O}}if(o==="auto"||i){var L=t,W=i?A:R;return W>=r&&(L=Math.min(W-C-s,t)),{placement:"top",maxHeight:L}}if(o==="bottom")return a&&Ka(c,M),{placement:"bottom",maxHeight:t};break;case"top":if(A>=b)return{placement:"top",maxHeight:t};if(R>=b&&!i)return a&&fa(c,T,B),{placement:"top",maxHeight:t};if(!i&&R>=r||i&&A>=r){var j=t;return(!i&&R>=r||i&&A>=r)&&(j=i?A-S:R-S),a&&fa(c,T,B),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}function SH(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var _S=function(t){return t==="auto"?"bottom":t},IH=function(t,n){var r,o=t.placement,a=t.theme,i=a.borderRadius,s=a.spacing,c=a.colors;return fe((r={label:"menu"},Kr(r,SH(o),"100%"),Kr(r,"position","absolute"),Kr(r,"width","100%"),Kr(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},MS=E.createContext(null),EH=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,c=t.theme,l=E.useContext(MS)||{},u=l.setPortalPlacement,d=E.useRef(null),f=E.useState(o),g=un(f,2),b=g[0],m=g[1],h=E.useState(null),v=un(h,2),x=v[0],w=v[1],C=c.spacing.controlHeight;return _d(function(){var S=d.current;if(S){var A=i==="fixed",I=s&&!A,R=CH({maxHeight:o,menuEl:S,minHeight:r,placement:a,shouldScroll:I,isFixedPosition:A,controlHeight:C});m(R.maxHeight),w(R.placement),u?.(R.placement)}},[o,a,i,s,r,u,C]),n({ref:d,placerProps:fe(fe({},t),{},{placement:x||_S(a),maxHeight:b})})},AH=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return ue("div",he({},Ne(t,"menu",{menu:!0}),{ref:r},o),n)},RH=AH,PH=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return fe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},OH=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,a=t.isMulti;return ue("div",he({},Ne(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},r),n)},DS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,a=r.colors;return fe({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},TH=DS,_H=DS,MH=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,a=nn(t,xH);return ue("div",he({},Ne(fe(fe({},a),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},DH=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,a=nn(t,wH);return ue("div",he({},Ne(fe(fe({},a),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},NH=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},kH=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,a=t.innerProps,i=t.menuPlacement,s=t.menuPosition,c=E.useRef(null),l=E.useRef(null),u=E.useState(_S(i)),d=un(u,2),f=d[0],g=d[1],b=E.useMemo(function(){return{setPortalPlacement:g}},[]),m=E.useState(null),h=un(m,2),v=h[0],x=h[1],w=E.useCallback(function(){if(o){var I=pH(o),R=s==="fixed"?0:window.pageYOffset,P=I[f]+R;(P!==v?.offset||I.left!==v?.rect.left||I.width!==v?.rect.width)&&x({offset:P,rect:I})}},[o,s,f,v?.offset,v?.rect.left,v?.rect.width]);_d(function(){w()},[w]);var C=E.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),o&&c.current&&(l.current=fw(o,c.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);_d(function(){C()},[C]);var S=E.useCallback(function(I){c.current=I,C()},[C]);if(!n&&s!=="fixed"||!v)return null;var A=ue("div",he({ref:S},Ne(fe(fe({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),r);return ue(MS.Provider,{value:b},n?Gd.createPortal(A,n):A)},FH=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},BH=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,a=t.isRtl;return ue("div",he({},Ne(t,"container",{"--is-disabled":o,"--is-rtl":a}),r),n)},jH=function(t,n){var r=t.theme.spacing,o=t.isMulti,a=t.hasValue,i=t.selectProps.controlShouldRenderValue;return fe({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},GH=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,a=t.hasValue;return ue("div",he({},Ne(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),r),n)},LH=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},WH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"indicatorsContainer",{indicators:!0}),r),n)},yv,VH=["size"],HH=["innerProps","isRtl","size"];function $H(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var zH=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:$H},NS=function(t){var n=t.size,r=nn(t,VH);return ue("svg",he({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zH},r))},pp=function(t){return ue(NS,he({size:20},t),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},kS=function(t){return ue(NS,he({size:20},t),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},FS=function(t,n){var r=t.isFocused,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return fe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:a*2,":hover":{color:r?i.neutral80:i.neutral40}})},XH=FS,YH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ue(kS,null))},ZH=FS,qH=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ue(pp,null))},UH=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return fe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:a*2,marginTop:a*2})},JH=function(t){var n=t.innerProps;return ue("span",he({},n,Ne(t,"indicatorSeparator",{"indicator-separator":!0})))},KH=aH(yv||(yv=iH([`
|
|
81
|
+
}`;function Yq({ref:t,className:e,containerClassName:n,...r}){return p.jsx(LO,{ref:t,"data-slot":"input-otp",containerClassName:L("flex items-center gap-2 has-disabled:opacity-50",n),className:L("disabled:cursor-not-allowed",e),...r})}function Uq({className:t,...e}){return p.jsx("kbd",{"data-slot":"kbd",className:L("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",t),...e})}function Zq({className:t,...e}){return p.jsx("kbd",{"data-slot":"kbd-group",className:L("inline-flex items-center gap-1",t),...e})}function Jq({label:t,options:e=[],value:n=[],onChange:r,toggleAllLabel:o="all",optionSuffix:i="options",translateOptions:a=!0,containerClassName:s,contentClassName:l,triggerClassName:c,showSelectedItemLabels:u=!0,showErrorPlaceholder:d=!1,error:f=""}){const[h,g]=O.useState(!1),[m,b]=O.useState(n),y=O.useRef(null),w=T=>{typeof r=="function"&&r(T)},C=T=>{let I=[...m||[]];m?.includes(T)?I=I.filter(_=>_!==T):I.push(T),b(I),w(I)},S=()=>{let T=[];m?.length!==e?.length&&(T=e?.map(I=>I.value)||[]),b(T),w(T)};O.useEffect(()=>{b(n)},[n]);const E=()=>{const T=e?.filter(I=>m?.includes(I.value));return T?.map((I,_)=>p.jsxs(O.Fragment,{children:[I.label,_<T.length-1&&", "]},I.value))};return p.jsxs("article",{className:L("flex flex-col w-full",s),children:[p.jsx(Ln,{variant:"default",className:L("mb-2 truncate w-full text-left",d?"text-red-500":"text-black-950"),children:t}),p.jsxs(cO,{open:h,onOpenChange:T=>{!T&&y.current&&y.current.blur()},children:[p.jsx(uO,{asChild:!0,children:p.jsxs(nn,{className:L("min-w-44 w-full lg:w-auto capitalize h-10 justify-between",c),variant:"outline",size:"sm",onClick:()=>g(T=>!T),children:[p.jsxs(ci,{children:[p.jsx(An,{condition:u&&m?.length>0,children:p.jsx("p",{className:"truncate w-full text-left",children:E()})}),p.jsx(An,{condition:m?.length===e?.length,children:p.jsx("p",{className:"truncate w-full text-left",children:i})}),p.jsx(so,{children:p.jsx("p",{className:"truncate w-full text-left",children:`counted.${i}`})})]}),h?p.jsx(uS,{size:"16"}):p.jsx(wi,{size:"16"})]})}),p.jsxs(dO,{className:L("new-design-multi-select-dropdown",l),onPointerDownOutside:()=>g(!1),children:[p.jsx(_m,{checked:m?.length===e?.length,onCheckedChange:S,children:o}),e.map(T=>p.jsx(_m,{checked:m?.includes(T.value),onCheckedChange:()=>C(T.value),children:p.jsxs(ci,{children:[p.jsx(An,{condition:a,children:T.label}),p.jsx(so,{children:T.label})]})},T.value))]})]}),f&&p.jsx(fO,{message:f})]})}function Kq({className:t,size:e="default",...n}){return p.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[p.jsx("select",{"data-slot":"native-select","data-size":e,className:L("border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...n}),p.jsx(wi,{className:"text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function Qq({...t}){return p.jsx("option",{"data-slot":"native-select-option",...t})}function ez({className:t,...e}){return p.jsx("optgroup",{"data-slot":"native-select-optgroup",className:L(t),...e})}function tz({className:t,...e}){return p.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:L("mx-auto flex w-full justify-center",t),...e})}function nz({className:t,...e}){return p.jsx("ul",{"data-slot":"pagination-content",className:L("flex flex-row items-center gap-1",t),...e})}function rz({...t}){return p.jsx("li",{"data-slot":"pagination-item",...t})}function qb({className:t,isActive:e,size:n="icon",...r}){return p.jsx("a",{"aria-current":e?"page":void 0,"data-slot":"pagination-link","data-active":e,className:L(xl({variant:e?"paginationInactive":"paginationActive",size:n}),t),...r})}function oz({className:t,...e}){return p.jsxs(qb,{"aria-label":"Go to previous page",className:L("gap-1 px-2.5 sm:pl-2.5",t),...e,size:"default",children:[p.jsx(cS,{}),p.jsx("span",{className:"hidden sm:block",children:"Previous"})]})}function iz({className:t,...e}){return p.jsxs(qb,{"aria-label":"Go to next page",className:L("gap-1 px-2.5 sm:pr-2.5",t),...e,size:"default",children:[p.jsx("span",{className:"hidden sm:block",children:"Next"}),p.jsx(ic,{})]})}function az({className:t,...e}){return p.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:L("flex size-9 items-center justify-center",t),...e,children:[p.jsx(fS,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]})}var zb="Radio",[sz,BO]=xt(zb),[lz,cz]=sz(zb),FO=v.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=t,[d,f]=v.useState(null),h=Se(e,b=>f(b)),g=v.useRef(!1),m=d?c||!!d.closest("form"):!0;return p.jsxs(lz,{scope:n,checked:o,disabled:a,children:[p.jsx(fe.button,{type:"button",role:"radio","aria-checked":o,"data-state":VO(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:h,onClick:oe(t.onClick,b=>{o||l?.(),m&&(g.current=b.isPropagationStopped(),g.current||b.stopPropagation())})}),m&&p.jsx(WO,{control:d,bubbles:!g.current,name:r,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});FO.displayName=zb;var GO="RadioIndicator",$O=v.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=cz(GO,n);return p.jsx(ot,{present:r||i.checked,children:p.jsx(fe.span,{"data-state":VO(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e})})});$O.displayName=GO;var uz="RadioBubbleInput",WO=v.forwardRef(({__scopeRadio:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=Ua(n),c=Za(e);return v.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&h){const g=new Event("click",{bubbles:r});h.call(u,n),u.dispatchEvent(g)}},[l,n,r]),p.jsx(fe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});WO.displayName=uz;function VO(t){return t?"checked":"unchecked"}var dz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],qc="RadioGroup",[fz]=xt(qc,[Ri,BO]),HO=Ri(),qO=BO(),[hz,pz]=fz(qc),zO=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=t,h=HO(n),g=Wr(c),[m,b]=Rt({prop:i,defaultProp:o??null,onChange:d,caller:qc});return p.jsx(hz,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:b,children:p.jsx(Nb,{asChild:!0,...h,orientation:l,dir:g,loop:u,children:p.jsx(fe.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...f,ref:e})})})});zO.displayName=qc;var XO="RadioGroupItem",YO=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...o}=t,i=pz(XO,n),a=i.disabled||r,s=HO(n),l=qO(n),c=v.useRef(null),u=Se(e,c),d=i.value===o.value,f=v.useRef(!1);return v.useEffect(()=>{const h=m=>{dz.includes(m.key)&&(f.current=!0)},g=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}},[]),p.jsx(Rb,{asChild:!0,...s,focusable:!a,active:d,children:p.jsx(FO,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:oe(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:oe(o.onFocus,()=>{f.current&&c.current?.click()})})})});YO.displayName=XO;var mz="RadioGroupIndicator",UO=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=qO(n);return p.jsx($O,{...o,...r,ref:e})});UO.displayName=mz;var gz=zO,bz=YO,vz=UO;function yz({className:t,...e}){return p.jsx(gz,{"data-slot":"radio-group",className:L("grid gap-3",t),...e})}function xz({className:t,...e}){return p.jsx(bz,{"data-slot":"radio-group-item",className:L("p-0! aspect-square h-4 w-4 rounded-full border border-solid border-primary text-primary bg-transparent hover:bg-transparent ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-none",t),...e,children:p.jsx(vz,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:p.jsx(dS,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function Pa(t,[e,n]){return Math.min(n,Math.max(e,t))}function wz(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var Xb="ScrollArea",[ZO]=xt(Xb),[Cz,bn]=ZO(Xb),JO=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=t,[s,l]=v.useState(null),[c,u]=v.useState(null),[d,f]=v.useState(null),[h,g]=v.useState(null),[m,b]=v.useState(null),[y,w]=v.useState(0),[C,S]=v.useState(0),[E,T]=v.useState(!1),[I,_]=v.useState(!1),P=Se(e,A=>l(A)),W=Wr(o);return p.jsx(Cz,{scope:n,type:r,dir:W,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:m,onScrollbarYChange:b,scrollbarYEnabled:I,onScrollbarYEnabledChange:_,onCornerWidthChange:w,onCornerHeightChange:S,children:p.jsx(fe.div,{dir:W,...a,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})});JO.displayName=Xb;var KO="ScrollAreaViewport",QO=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=t,a=bn(KO,n),s=v.useRef(null),l=Se(e,s,a.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(fe.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});QO.displayName=KO;var lr="ScrollAreaScrollbar",eN=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=bn(lr,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?p.jsx(Sz,{...r,ref:e,forceMount:n}):o.type==="scroll"?p.jsx(Ez,{...r,ref:e,forceMount:n}):o.type==="auto"?p.jsx(tN,{...r,ref:e,forceMount:n}):o.type==="always"?p.jsx(Yb,{...r,ref:e}):null});eN.displayName=lr;var Sz=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=bn(lr,t.__scopeScrollArea),[i,a]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(ot,{present:n||i,children:p.jsx(tN,{"data-state":i?"visible":"hidden",...r,ref:e})})}),Ez=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=bn(lr,t.__scopeScrollArea),i=t.orientation==="horizontal",a=Xc(()=>l("SCROLL_END"),100),[s,l]=wz("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),v.useEffect(()=>{const c=o.viewport,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const h=c[u];d!==h&&(l("SCROLL"),a()),d=h};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),p.jsx(ot,{present:n||s!=="hidden",children:p.jsx(Yb,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:oe(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:oe(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),tN=v.forwardRef((t,e)=>{const n=bn(lr,t.__scopeScrollArea),{forceMount:r,...o}=t,[i,a]=v.useState(!1),s=t.orientation==="horizontal",l=Xc(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?c:u)}},10);return bi(n.viewport,l),bi(n.content,l),p.jsx(ot,{present:r||i,children:p.jsx(Yb,{"data-state":i?"visible":"hidden",...o,ref:e})})}),Yb=v.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,o=bn(lr,t.__scopeScrollArea),i=v.useRef(null),a=v.useRef(0),[s,l]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=aN(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,h){return Rz(f,a.current,s,h)}return n==="horizontal"?p.jsx(Iz,{...u,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,h=hw(f,s,o.dir);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?p.jsx(Az,{...u,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,h=hw(f,s);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),Iz=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=bn(lr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),c=Se(e,l,i.onScrollbarXChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),p.jsx(rN,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":zc(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.x),onDragScroll:u=>t.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;t.onWheelScroll(f),lN(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:$l(a.paddingLeft),paddingEnd:$l(a.paddingRight)}})}})}),Az=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=bn(lr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),c=Se(e,l,i.onScrollbarYChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),p.jsx(rN,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":zc(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.y),onDragScroll:u=>t.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;t.onWheelScroll(f),lN(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:$l(a.paddingTop),paddingEnd:$l(a.paddingBottom)}})}})}),[Tz,nN]=ZO(lr),rN=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=t,h=bn(lr,n),[g,m]=v.useState(null),b=Se(e,P=>m(P)),y=v.useRef(null),w=v.useRef(""),C=h.viewport,S=r.content-r.viewport,E=yt(u),T=yt(l),I=Xc(d,10);function _(P){if(y.current){const W=P.clientX-y.current.left,A=P.clientY-y.current.top;c({x:W,y:A})}}return v.useEffect(()=>{const P=W=>{const A=W.target;g?.contains(A)&&E(W,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[C,g,S,E]),v.useEffect(T,[r,T]),bi(g,I),bi(h.content,I),p.jsx(Tz,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:yt(i),onThumbPointerUp:yt(a),onThumbPositionChange:T,onThumbPointerDown:yt(s),children:p.jsx(fe.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:oe(t.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),y.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(P))}),onPointerMove:oe(t.onPointerMove,_),onPointerUp:oe(t.onPointerUp,P=>{const W=P.target;W.hasPointerCapture(P.pointerId)&&W.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=w.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null})})})}),Gl="ScrollAreaThumb",oN=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=nN(Gl,t.__scopeScrollArea);return p.jsx(ot,{present:n||o.hasThumb,children:p.jsx(Oz,{ref:e,...r})})}),Oz=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...o}=t,i=bn(Gl,n),a=nN(Gl,n),{onThumbPositionChange:s}=a,l=Se(e,d=>a.onThumbChange(d)),c=v.useRef(void 0),u=Xc(()=>{c.current&&(c.current(),c.current=void 0)},100);return v.useEffect(()=>{const d=i.viewport;if(d){const f=()=>{if(u(),!c.current){const h=_z(d,s);c.current=h,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,u,s]),p.jsx(fe.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:oe(t.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),g=d.clientX-h.left,m=d.clientY-h.top;a.onThumbPointerDown({x:g,y:m})}),onPointerUp:oe(t.onPointerUp,a.onThumbPointerUp)})});oN.displayName=Gl;var Ub="ScrollAreaCorner",iN=v.forwardRef((t,e)=>{const n=bn(Ub,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(Nz,{...t,ref:e}):null});iN.displayName=Ub;var Nz=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,o=bn(Ub,n),[i,a]=v.useState(0),[s,l]=v.useState(0),c=!!(i&&s);return bi(o.scrollbarX,()=>{const u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),l(u)}),bi(o.scrollbarY,()=>{const u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),a(u)}),c?p.jsx(fe.div,{...r,ref:e,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function $l(t){return t?parseInt(t,10):0}function aN(t,e){const n=t/e;return isNaN(n)?0:n}function zc(t){const e=aN(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function Rz(t,e,n,r="ltr"){const o=zc(n),i=o/2,a=e||i,s=o-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return sN([l,c],d)(t)}function hw(t,e,n="ltr"){const r=zc(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,a=e.content-e.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],c=Pa(t,l);return sN([0,a],[0,s])(c)}function sN(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function lN(t,e){return t>0&&t<e}var _z=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function o(){const i={left:t.scrollLeft,top:t.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&e(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Xc(t,e){const n=yt(t),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function bi(t,e){const n=yt(e);lt(()=>{let r=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(t),()=>{window.cancelAnimationFrame(r),o.unobserve(t)}}},[t,n])}var Pz=JO,Mz=QO,Dz=iN;function kz({className:t,children:e,...n}){return p.jsxs(Pz,{"data-slot":"scroll-area",className:L("relative",t),...n,children:[p.jsx(Mz,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),p.jsx(cN,{}),p.jsx(Dz,{})]})}function cN({className:t,orientation:e="vertical",...n}){return p.jsx(eN,{"data-slot":"scroll-area-scrollbar",orientation:e,className:L("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",t),...n,children:p.jsx(oN,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var jz=[" ","Enter","ArrowUp","ArrowDown"],Lz=[" ","Enter"],po="Select",[Yc,Uc,Bz]=Wa(po),[_i]=xt(po,[Bz,sr]),Zc=sr(),[Fz,Xr]=_i(po),[Gz,$z]=_i(po),uN=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:h,form:g}=t,m=Zc(e),[b,y]=v.useState(null),[w,C]=v.useState(null),[S,E]=v.useState(!1),T=Wr(c),[I,_]=Rt({prop:r,defaultProp:o??!1,onChange:i,caller:po}),[P,W]=Rt({prop:a,defaultProp:s,onChange:l,caller:po}),A=v.useRef(null),D=b?g||!!b.closest("form"):!0,[N,F]=v.useState(new Set),j=Array.from(N).map(M=>M.props.value).join(";");return p.jsx(Oi,{...m,children:p.jsxs(Fz,{required:h,scope:e,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:nt(),value:P,onValueChange:W,open:I,onOpenChange:_,dir:T,triggerPointerDownPosRef:A,disabled:f,children:[p.jsx(Yc.Provider,{scope:e,children:p.jsx(Gz,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{F(V=>new Set(V).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{F(V=>{const k=new Set(V);return k.delete(M),k})},[]),children:n})}),D?p.jsxs(kN,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:P,onChange:M=>W(M.target.value),disabled:f,form:g,children:[P===void 0?p.jsx("option",{value:""}):null,Array.from(N)]},j):null]})})};uN.displayName=po;var dN="SelectTrigger",fN=v.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...o}=t,i=Zc(n),a=Xr(dN,n),s=a.disabled||r,l=Se(e,a.onTriggerChange),c=Uc(n),u=v.useRef("touch"),[d,f,h]=LN(m=>{const b=c().filter(C=>!C.disabled),y=b.find(C=>C.value===a.value),w=BN(b,m,y);w!==void 0&&a.onValueChange(w.value)}),g=m=>{s||(a.onOpenChange(!0),h()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Ni,{asChild:!0,...i,children:p.jsx(fe.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":jN(a.value)?"":void 0,...o,ref:l,onClick:oe(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&g(m)}),onPointerDown:oe(o.onPointerDown,m=>{u.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:oe(o.onKeyDown,m=>{const b=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(b&&m.key===" ")&&jz.includes(m.key)&&(g(),m.preventDefault())})})})});fN.displayName=dN;var hN="SelectValue",pN=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=t,l=Xr(hN,n),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=Se(e,l.onValueNodeChange);return lt(()=>{c(u)},[c,u]),p.jsx(fe.span,{...s,ref:d,style:{pointerEvents:"none"},children:jN(l.value)?p.jsx(p.Fragment,{children:a}):i})});pN.displayName=hN;var Wz="SelectIcon",mN=v.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...o}=t;return p.jsx(fe.span,{"aria-hidden":!0,...o,ref:e,children:r||"▼"})});mN.displayName=Wz;var Vz="SelectPortal",gN=t=>p.jsx(Io,{asChild:!0,...t});gN.displayName=Vz;var mo="SelectContent",bN=v.forwardRef((t,e)=>{const n=Xr(mo,t.__scopeSelect),[r,o]=v.useState();if(lt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?tc.createPortal(p.jsx(vN,{scope:t.__scopeSelect,children:p.jsx(Yc.Slot,{scope:t.__scopeSelect,children:p.jsx("div",{children:t.children})})}),i):null}return p.jsx(yN,{...t,ref:e})});bN.displayName=mo;var wn=10,[vN,Yr]=_i(mo),Hz="SelectContentImpl",qz=ao("SelectContent.RemoveScroll"),yN=v.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b,...y}=t,w=Xr(mo,n),[C,S]=v.useState(null),[E,T]=v.useState(null),I=Se(e,z=>S(z)),[_,P]=v.useState(null),[W,A]=v.useState(null),D=Uc(n),[N,F]=v.useState(!1),j=v.useRef(!1);v.useEffect(()=>{if(C)return Cc(C)},[C]),xc();const M=v.useCallback(z=>{const[K,...ae]=D().map(q=>q.ref.current),[ie]=ae.slice(-1),re=document.activeElement;for(const q of z)if(q===re||(q?.scrollIntoView({block:"nearest"}),q===K&&E&&(E.scrollTop=0),q===ie&&E&&(E.scrollTop=E.scrollHeight),q?.focus(),document.activeElement!==re))return},[D,E]),V=v.useCallback(()=>M([_,C]),[M,_,C]);v.useEffect(()=>{N&&V()},[N,V]);const{onOpenChange:k,triggerPointerDownPosRef:H}=w;v.useEffect(()=>{if(C){let z={x:0,y:0};const K=ie=>{z={x:Math.abs(Math.round(ie.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(ie.pageY)-(H.current?.y??0))}},ae=ie=>{z.x<=10&&z.y<=10?ie.preventDefault():C.contains(ie.target)||k(!1),document.removeEventListener("pointermove",K),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ae,{capture:!0})}}},[C,k,H]),v.useEffect(()=>{const z=()=>k(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[k]);const[U,ee]=LN(z=>{const K=D().filter(re=>!re.disabled),ae=K.find(re=>re.ref.current===document.activeElement),ie=BN(K,z,ae);ie&&setTimeout(()=>ie.ref.current.focus())}),G=v.useCallback((z,K,ae)=>{const ie=!j.current&&!ae;(w.value!==void 0&&w.value===K||ie)&&(P(z),ie&&(j.current=!0))},[w.value]),X=v.useCallback(()=>C?.focus(),[C]),Z=v.useCallback((z,K,ae)=>{const ie=!j.current&&!ae;(w.value!==void 0&&w.value===K||ie)&&A(z)},[w.value]),Y=r==="popper"?Dm:xN,ne=Y===Dm?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b}:{};return p.jsx(vN,{scope:n,content:C,viewport:E,onViewportChange:T,itemRefCallback:G,selectedItem:_,onItemLeave:X,itemTextRefCallback:Z,focusSelectedItem:V,selectedItemText:W,position:r,isPositioned:N,searchRef:U,children:p.jsx(Ka,{as:qz,allowPinchZoom:!0,children:p.jsx(Ja,{asChild:!0,trapped:w.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:oe(o,z=>{w.trigger?.focus({preventScroll:!0}),z.preventDefault()}),children:p.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:p.jsx(Y,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:z=>z.preventDefault(),...y,...ne,onPlaced:()=>F(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:oe(y.onKeyDown,z=>{const K=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!K&&z.key.length===1&&ee(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let ie=D().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(z.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const re=z.target,q=ie.indexOf(re);ie=ie.slice(q+1)}setTimeout(()=>M(ie)),z.preventDefault()}})})})})})})});yN.displayName=Hz;var zz="SelectItemAlignedPosition",xN=v.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...o}=t,i=Xr(mo,n),a=Yr(mo,n),[s,l]=v.useState(null),[c,u]=v.useState(null),d=Se(e,I=>u(I)),f=Uc(n),h=v.useRef(!1),g=v.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=a,C=v.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&b&&y){const I=i.trigger.getBoundingClientRect(),_=c.getBoundingClientRect(),P=i.valueNode.getBoundingClientRect(),W=y.getBoundingClientRect();if(i.dir!=="rtl"){const re=W.left-_.left,q=P.left-re,le=I.left-q,$=I.width+le,se=Math.max($,_.width),Ie=window.innerWidth-wn,Oe=Pa(q,[wn,Math.max(wn,Ie-se)]);s.style.minWidth=$+"px",s.style.left=Oe+"px"}else{const re=_.right-W.right,q=window.innerWidth-P.right-re,le=window.innerWidth-I.right-q,$=I.width+le,se=Math.max($,_.width),Ie=window.innerWidth-wn,Oe=Pa(q,[wn,Math.max(wn,Ie-se)]);s.style.minWidth=$+"px",s.style.right=Oe+"px"}const A=f(),D=window.innerHeight-wn*2,N=m.scrollHeight,F=window.getComputedStyle(c),j=parseInt(F.borderTopWidth,10),M=parseInt(F.paddingTop,10),V=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),H=j+M+N+k+V,U=Math.min(b.offsetHeight*5,H),ee=window.getComputedStyle(m),G=parseInt(ee.paddingTop,10),X=parseInt(ee.paddingBottom,10),Z=I.top+I.height/2-wn,Y=D-Z,ne=b.offsetHeight/2,z=b.offsetTop+ne,K=j+M+z,ae=H-K;if(K<=Z){const re=A.length>0&&b===A[A.length-1].ref.current;s.style.bottom="0px";const q=c.clientHeight-m.offsetTop-m.offsetHeight,le=Math.max(Y,ne+(re?X:0)+q+V),$=K+le;s.style.height=$+"px"}else{const re=A.length>0&&b===A[0].ref.current;s.style.top="0px";const le=Math.max(Z,j+m.offsetTop+(re?G:0)+ne)+ae;s.style.height=le+"px",m.scrollTop=K-Z+m.offsetTop}s.style.margin=`${wn}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=D+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[f,i.trigger,i.valueNode,s,c,m,b,y,i.dir,r]);lt(()=>C(),[C]);const[S,E]=v.useState();lt(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=v.useCallback(I=>{I&&g.current===!0&&(C(),w?.(),g.current=!1)},[C,w]);return p.jsx(Yz,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:T,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(fe.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});xN.displayName=zz;var Xz="SelectPopperPosition",Dm=v.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=wn,...i}=t,a=Zc(n);return p.jsx(ns,{...a,...i,ref:e,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Dm.displayName=Xz;var[Yz,Zb]=_i(mo,{}),km="SelectViewport",wN=v.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...o}=t,i=Yr(km,n),a=Zb(km,n),s=Se(e,i.onViewportChange),l=v.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Yc.Slot,{scope:n,children:p.jsx(fe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:oe(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=a;if(f?.current&&d){const h=Math.abs(l.current-u.scrollTop);if(h>0){const g=window.innerHeight-wn*2,m=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),y=Math.max(m,b);if(y<g){const w=y+h,C=Math.min(g,w),S=w-C;d.style.height=C+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});wN.displayName=km;var CN="SelectGroup",[Uz,Zz]=_i(CN),SN=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=nt();return p.jsx(Uz,{scope:n,id:o,children:p.jsx(fe.div,{role:"group","aria-labelledby":o,...r,ref:e})})});SN.displayName=CN;var EN="SelectLabel",IN=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=Zz(EN,n);return p.jsx(fe.div,{id:o.id,...r,ref:e})});IN.displayName=EN;var Wl="SelectItem",[Jz,AN]=_i(Wl),TN=v.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=t,s=Xr(Wl,n),l=Yr(Wl,n),c=s.value===r,[u,d]=v.useState(i??""),[f,h]=v.useState(!1),g=Se(e,w=>l.itemRefCallback?.(w,r,o)),m=nt(),b=v.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Jz,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:v.useCallback(w=>{d(C=>C||(w?.textContent??"").trim())},[]),children:p.jsx(Yc.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(fe.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:oe(a.onFocus,()=>h(!0)),onBlur:oe(a.onBlur,()=>h(!1)),onClick:oe(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:oe(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:oe(a.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:oe(a.onPointerMove,w=>{b.current=w.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:oe(a.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:oe(a.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(Lz.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});TN.displayName=Wl;var sa="SelectItemText",ON=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,...i}=t,a=Xr(sa,n),s=Yr(sa,n),l=AN(sa,n),c=$z(sa,n),[u,d]=v.useState(null),f=Se(e,y=>d(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),h=u?.textContent,g=v.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=c;return lt(()=>(m(g),()=>b(g)),[m,b,g]),p.jsxs(p.Fragment,{children:[p.jsx(fe.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?tc.createPortal(i.children,a.valueNode):null]})});ON.displayName=sa;var NN="SelectItemIndicator",RN=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return AN(NN,n).isSelected?p.jsx(fe.span,{"aria-hidden":!0,...r,ref:e}):null});RN.displayName=NN;var jm="SelectScrollUpButton",_N=v.forwardRef((t,e)=>{const n=Yr(jm,t.__scopeSelect),r=Zb(jm,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return lt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?p.jsx(MN,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});_N.displayName=jm;var Lm="SelectScrollDownButton",PN=v.forwardRef((t,e)=>{const n=Yr(Lm,t.__scopeSelect),r=Zb(Lm,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return lt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?p.jsx(MN,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});PN.displayName=Lm;var MN=v.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=t,i=Yr("SelectScrollButton",n),a=v.useRef(null),s=Uc(n),l=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),lt(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),p.jsx(fe.div,{"aria-hidden":!0,...o,ref:e,style:{flexShrink:0,...o.style},onPointerDown:oe(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:oe(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:oe(o.onPointerLeave,()=>{l()})})}),Kz="SelectSeparator",DN=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return p.jsx(fe.div,{"aria-hidden":!0,...r,ref:e})});DN.displayName=Kz;var Bm="SelectArrow",Qz=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=Zc(n),i=Xr(Bm,n),a=Yr(Bm,n);return i.open&&a.position==="popper"?p.jsx(rs,{...o,...r,ref:e}):null});Qz.displayName=Bm;var e6="SelectBubbleInput",kN=v.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(r,o),a=Ua(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&u){const d=new Event("change",{bubbles:!0});u.call(s,e),s.dispatchEvent(d)}},[a,e]),p.jsx(fe.select,{...n,style:{...hO,...n.style},ref:i,defaultValue:e})});kN.displayName=e6;function jN(t){return t===""||t===void 0}function LN(t){const e=yt(t),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(a=>{const s=n.current+a;e(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[e]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function BN(t,e,n){const o=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=t6(t,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function t6(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var n6=uN,r6=fN,o6=pN,i6=mN,a6=gN,s6=bN,l6=wN,c6=SN,u6=IN,d6=TN,f6=ON,h6=RN,p6=_N,m6=PN,g6=DN;function FN({...t}){return p.jsx(n6,{"data-slot":"select",...t})}function b6({...t}){return p.jsx(c6,{"data-slot":"select-group",...t})}function GN({...t}){return p.jsx(o6,{"data-slot":"select-value",...t})}function $N({className:t,size:e="default",children:n,...r}){return p.jsxs(r6,{"data-slot":"select-trigger","data-size":e,className:L("flex h-10 w-full items-center justify-between rounded-md border-solid border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground hover:bg-background focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[n,p.jsx(i6,{asChild:!0,children:p.jsx(wi,{className:"size-4 opacity-50"})})]})}function WN({className:t,children:e,position:n="item-aligned",align:r="center",...o}){return p.jsx(a6,{children:p.jsxs(s6,{"data-slot":"select-content",className:L("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,align:r,...o,children:[p.jsx(HN,{}),p.jsx(l6,{className:L("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:e}),p.jsx(qN,{})]})})}function v6({className:t,...e}){return p.jsx(u6,{"data-slot":"select-label",className:L("text-muted-foreground px-2 py-1.5 text-xs",t),...e})}function VN({className:t,children:e,...n}){return p.jsxs(d6,{"data-slot":"select-item",className:L("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...n,children:[p.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(h6,{children:p.jsx(ga,{className:"size-4"})})}),p.jsx(f6,{children:e})]})}function y6({className:t,...e}){return p.jsx(g6,{"data-slot":"select-separator",className:L("bg-border pointer-events-none -mx-1 my-1 h-px",t),...e})}function HN({className:t,...e}){return p.jsx(p6,{"data-slot":"select-scroll-up-button",className:L("flex cursor-default items-center justify-center py-1",t),...e,children:p.jsx(uS,{className:"size-4"})})}function qN({className:t,...e}){return p.jsx(m6,{"data-slot":"select-scroll-down-button",className:L("flex cursor-default items-center justify-center py-1",t),...e,children:p.jsx(wi,{className:"size-4"})})}const x6=({hasFormControlWrapper:t=!1,children:e})=>t?p.jsx(Tb,{children:e}):e,w6=({options:t,placeholder:e,hasFormControlWrapper:n=!1,selectContentClassName:r,onChange:o,value:i,label:a,triggerClassName:s,containerClassName:l,...c})=>p.jsxs("article",{className:l,children:[p.jsx(Ln,{className:"mb-2 block",children:a}),p.jsxs(FN,{onValueChange:o,value:i,...c,children:[p.jsx(x6,{hasFormControlWrapper:n,children:p.jsx($N,{className:s,children:p.jsx(GN,{placeholder:e})})}),p.jsx(WN,{className:r,children:t.map(u=>p.jsx(VN,{value:u.value,children:u.label},u.value))})]})]});var C6="Separator",pw="horizontal",S6=["horizontal","vertical"],zN=v.forwardRef((t,e)=>{const{decorative:n,orientation:r=pw,...o}=t,i=E6(r)?r:pw,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return p.jsx(Ut.div,{"data-orientation":i,...s,...o,ref:e})});zN.displayName=C6;function E6(t){return S6.includes(t)}var I6=zN;function XN({className:t,orientation:e="horizontal",decorative:n=!0,...r}){return p.jsx(I6,{"data-slot":"separator",decorative:n,orientation:e,className:L("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...r})}function go(t){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(t)}function A6(t,e){if(go(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function YN(t){var e=A6(t,"string");return go(e)=="symbol"?e:e+""}function la(t,e,n){return(e=YN(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mw(Object(n),!0).forEach(function(r){la(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T6(t){if(Array.isArray(t))return t}function O6(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Fm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function UN(t,e){if(t){if(typeof t=="string")return Fm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fm(t,e):void 0}}function N6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xr(t,e){return T6(t)||O6(t,e)||UN(t,e)||N6()}function cr(t,e){if(t==null)return{};var n,r,o=w3(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var R6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ZN(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,o=r===void 0?!1:r,i=t.defaultValue,a=i===void 0?null:i,s=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,g=cr(t,R6),m=O.useState(s!==void 0?s:n),b=xr(m,2),y=b[0],w=b[1],C=O.useState(l!==void 0?l:o),S=xr(C,2),E=S[0],T=S[1],I=O.useState(h!==void 0?h:a),_=xr(I,2),P=_[0],W=_[1],A=O.useCallback(function(k,H){typeof c=="function"&&c(k,H),W(k)},[c]),D=O.useCallback(function(k,H){var U;typeof u=="function"&&(U=u(k,H)),w(U!==void 0?U:k)},[u]),N=O.useCallback(function(){typeof f=="function"&&f(),T(!0)},[f]),F=O.useCallback(function(){typeof d=="function"&&d(),T(!1)},[d]),j=s!==void 0?s:y,M=l!==void 0?l:E,V=h!==void 0?h:P;return Ce(Ce({},g),{},{inputValue:j,menuIsOpen:M,onChange:A,onInputChange:D,onMenuClose:F,onMenuOpen:N,value:V})}function _6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,YN(r.key),r)}}function P6(t,e,n){return e&&gw(t.prototype,e),n&&gw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function M6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pm(t,e)}function Vl(t){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vl(t)}function JN(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JN=function(){return!!t})()}function D6(t,e){if(e&&(go(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C3(t)}function k6(t){var e=JN();return function(){var n,r=Vl(t);if(e){var o=Vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D6(this,n)}}function j6(t){if(Array.isArray(t))return Fm(t)}function L6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function B6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ri(t){return j6(t)||L6(t)||UN(t)||B6()}function F6(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function G6(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var $6=(function(){function t(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(G6(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=F6(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},t})(),kt="-ms-",Hl="-moz-",De="-webkit-",KN="comm",Jb="rule",Kb="decl",W6="@import",QN="@keyframes",V6="@layer",H6=Math.abs,Jc=String.fromCharCode,q6=Object.assign;function z6(t,e){return Ot(t,0)^45?(((e<<2^Ot(t,0))<<2^Ot(t,1))<<2^Ot(t,2))<<2^Ot(t,3):0}function eR(t){return t.trim()}function X6(t,e){return(t=e.exec(t))?t[0]:t}function ke(t,e,n){return t.replace(e,n)}function Gm(t,e){return t.indexOf(e)}function Ot(t,e){return t.charCodeAt(e)|0}function Ma(t,e,n){return t.slice(e,n)}function qn(t){return t.length}function Qb(t){return t.length}function Ys(t,e){return e.push(t),t}function Y6(t,e){return t.map(e).join("")}var Kc=1,vi=1,tR=0,Yt=0,ht=0,Pi="";function Qc(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:Kc,column:vi,length:a,return:""}}function Ji(t,e){return q6(Qc("",null,null,"",null,null,0),t,{length:-t.length},e)}function U6(){return ht}function Z6(){return ht=Yt>0?Ot(Pi,--Yt):0,vi--,ht===10&&(vi=1,Kc--),ht}function tn(){return ht=Yt<tR?Ot(Pi,Yt++):0,vi++,ht===10&&(vi=1,Kc++),ht}function Kn(){return Ot(Pi,Yt)}function fl(){return Yt}function fs(t,e){return Ma(Pi,t,e)}function Da(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function nR(t){return Kc=vi=1,tR=qn(Pi=t),Yt=0,[]}function rR(t){return Pi="",t}function hl(t){return eR(fs(Yt-1,$m(t===91?t+2:t===40?t+1:t)))}function J6(t){for(;(ht=Kn())&&ht<33;)tn();return Da(t)>2||Da(ht)>3?"":" "}function K6(t,e){for(;--e&&tn()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return fs(t,fl()+(e<6&&Kn()==32&&tn()==32))}function $m(t){for(;tn();)switch(ht){case t:return Yt;case 34:case 39:t!==34&&t!==39&&$m(ht);break;case 40:t===41&&$m(t);break;case 92:tn();break}return Yt}function Q6(t,e){for(;tn()&&t+ht!==57;)if(t+ht===84&&Kn()===47)break;return"/*"+fs(e,Yt-1)+"*"+Jc(t===47?t:tn())}function e8(t){for(;!Da(Kn());)tn();return fs(t,Yt)}function t8(t){return rR(pl("",null,null,null,[""],t=nR(t),0,[0],t))}function pl(t,e,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,g=0,m=1,b=1,y=1,w=0,C="",S=o,E=i,T=r,I=C;b;)switch(g=w,w=tn()){case 40:if(g!=108&&Ot(I,d-1)==58){Gm(I+=ke(hl(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:I+=hl(w);break;case 9:case 10:case 13:case 32:I+=J6(g);break;case 92:I+=K6(fl()-1,7);continue;case 47:switch(Kn()){case 42:case 47:Ys(n8(Q6(tn(),fl()),e,n),l);break;default:I+="/"}break;case 123*m:s[c++]=qn(I)*y;case 125*m:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+u:y==-1&&(I=ke(I,/\f/g,"")),h>0&&qn(I)-d&&Ys(h>32?vw(I+";",r,n,d-1):vw(ke(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(Ys(T=bw(I,e,n,c,u,o,s,C,S=[],E=[],d),i),w===123)if(u===0)pl(I,e,T,T,S,i,d,s,E);else switch(f===99&&Ot(I,3)===110?100:f){case 100:case 108:case 109:case 115:pl(t,T,T,r&&Ys(bw(t,T,T,0,0,o,s,C,o,S=[],d),E),o,E,d,s,r?S:E);break;default:pl(I,T,T,T,[""],E,0,s,E)}}c=u=h=0,m=y=1,C=I="",d=a;break;case 58:d=1+qn(I),h=g;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Z6()==125)continue}switch(I+=Jc(w),w*m){case 38:y=u>0?1:(I+="\f",-1);break;case 44:s[c++]=(qn(I)-1)*y,y=1;break;case 64:Kn()===45&&(I+=hl(tn())),f=Kn(),u=d=qn(C=I+=e8(fl())),w++;break;case 45:g===45&&qn(I)==2&&(m=0)}}return i}function bw(t,e,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Qb(f),g=0,m=0,b=0;g<r;++g)for(var y=0,w=Ma(t,d+1,d=H6(m=a[g])),C=t;y<h;++y)(C=eR(m>0?f[y]+" "+w:ke(w,/&\f/g,f[y])))&&(l[b++]=C);return Qc(t,e,n,o===0?Jb:s,l,c,u)}function n8(t,e,n){return Qc(t,e,n,KN,Jc(U6()),Ma(t,2,-2),0)}function vw(t,e,n,r){return Qc(t,e,n,Kb,Ma(t,0,r),Ma(t,r+1,-1),r)}function oi(t,e){for(var n="",r=Qb(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function r8(t,e,n,r){switch(t.type){case V6:if(t.children.length)break;case W6:case Kb:return t.return=t.return||t.value;case KN:return"";case QN:return t.return=t.value+"{"+oi(t.children,r)+"}";case Jb:t.value=t.props.join(",")}return qn(n=oi(t.children,r))?t.return=t.value+"{"+n+"}":""}function o8(t){var e=Qb(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function i8(t){return function(e){e.root||(e=e.return)&&t(e)}}function a8(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var s8=function(e,n,r){for(var o=0,i=0;o=i,i=Kn(),o===38&&i===12&&(n[r]=1),!Da(i);)tn();return fs(e,Yt)},l8=function(e,n){var r=-1,o=44;do switch(Da(o)){case 0:o===38&&Kn()===12&&(n[r]=1),e[r]+=s8(Yt-1,n,r);break;case 2:e[r]+=hl(o);break;case 4:if(o===44){e[++r]=Kn()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Jc(o)}while(o=tn());return e},c8=function(e,n){return rR(l8(nR(e),n))},yw=new WeakMap,u8=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!yw.get(r))&&!o){yw.set(e,!0);for(var i=[],a=c8(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)e.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},d8=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function oR(t,e){switch(z6(t,e)){case 5103:return De+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return De+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return De+t+Hl+t+kt+t+t;case 6828:case 4268:return De+t+kt+t+t;case 6165:return De+t+kt+"flex-"+t+t;case 5187:return De+t+ke(t,/(\w+).+(:[^]+)/,De+"box-$1$2"+kt+"flex-$1$2")+t;case 5443:return De+t+kt+"flex-item-"+ke(t,/flex-|-self/,"")+t;case 4675:return De+t+kt+"flex-line-pack"+ke(t,/align-content|flex-|-self/,"")+t;case 5548:return De+t+kt+ke(t,"shrink","negative")+t;case 5292:return De+t+kt+ke(t,"basis","preferred-size")+t;case 6060:return De+"box-"+ke(t,"-grow","")+De+t+kt+ke(t,"grow","positive")+t;case 4554:return De+ke(t,/([^-])(transform)/g,"$1"+De+"$2")+t;case 6187:return ke(ke(ke(t,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),t,"")+t;case 5495:case 3959:return ke(t,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return ke(ke(t,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+t+t;case 4095:case 3583:case 4068:case 2532:return ke(t,/(.+)-inline(.+)/,De+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qn(t)-1-e>6)switch(Ot(t,e+1)){case 109:if(Ot(t,e+4)!==45)break;case 102:return ke(t,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+Hl+(Ot(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Gm(t,"stretch")?oR(ke(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ot(t,e+1)!==115)break;case 6444:switch(Ot(t,qn(t)-3-(~Gm(t,"!important")&&10))){case 107:return ke(t,":",":"+De)+t;case 101:return ke(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Ot(t,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+kt+"$2box$3")+t}break;case 5936:switch(Ot(t,e+11)){case 114:return De+t+kt+ke(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return De+t+kt+ke(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return De+t+kt+ke(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return De+t+kt+t+t}return t}var f8=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case Kb:e.return=oR(e.value,e.length);break;case QN:return oi([Ji(e,{value:ke(e.value,"@","@"+De)})],o);case Jb:if(e.length)return Y6(e.props,function(i){switch(X6(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oi([Ji(e,{props:[ke(i,/:(read-\w+)/,":"+Hl+"$1")]})],o);case"::placeholder":return oi([Ji(e,{props:[ke(i,/:(plac\w+)/,":"+De+"input-$1")]}),Ji(e,{props:[ke(i,/:(plac\w+)/,":"+Hl+"$1")]}),Ji(e,{props:[ke(i,/:(plac\w+)/,kt+"input-$1")]})],o)}return""})}},h8=[f8],p8=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||h8,i={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(m)});var l,c=[u8,d8];{var u,d=[r8,i8(function(m){u.insert(m)})],f=o8(c.concat(o,d)),h=function(b){return oi(t8(b),f)};l=function(b,y,w,C){u=w,h(b?b+"{"+y.styles+"}":y.styles),C&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new $6({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(s),g},Ap,xw;function m8(){if(xw)return Ap;xw=1;var t=x3(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[t.ForwardRef]=r,i[t.Memo]=o;function a(g){return t.isMemo(g)?o:i[g.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,m,b){if(typeof m!="string"){if(f){var y=d(m);y&&y!==f&&h(g,y,b)}var w=l(m);c&&(w=w.concat(c(m)));for(var C=a(g),S=a(m),E=0;E<w.length;++E){var T=w[E];if(!n[T]&&!(b&&b[T])&&!(S&&S[T])&&!(C&&C[T])){var I=u(m,T);try{s(g,T,I)}catch{}}}}return g}return Ap=h,Ap}m8();var g8=!0;function b8(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(r+=o+" ")}),r}var iR=function(e,n,r){var o=e.key+"-"+n.name;(r===!1||g8===!1)&&e.registered[o]===void 0&&(e.registered[o]=n.styles)},v8=function(e,n,r){iR(e,n,r);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function y8(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var x8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w8=/[A-Z]|^ms/g,C8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,aR=function(e){return e.charCodeAt(1)===45},ww=function(e){return e!=null&&typeof e!="boolean"},Tp=a8(function(t){return aR(t)?t:t.replace(w8,"-$&").toLowerCase()}),Cw=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(C8,function(r,o,i){return zn={name:o,styles:i,next:zn},o})}return x8[e]!==1&&!aR(e)&&typeof n=="number"&&n!==0?n+"px":n};function ka(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return zn={name:o.name,styles:o.styles,next:zn},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)zn={name:a.name,styles:a.styles,next:zn},a=a.next;var s=i.styles+";";return s}return S8(t,e,n)}case"function":{if(t!==void 0){var l=zn,c=n(t);return zn=l,ka(t,e,c)}break}}var u=n;return u}function S8(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ka(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;ww(s)&&(r+=Tp(i)+":"+Cw(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var l=0;l<a.length;l++)ww(a[l])&&(r+=Tp(i)+":"+Cw(i,a[l])+";");else{var c=ka(t,e,a);switch(i){case"animation":case"animationName":{r+=Tp(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var Sw=/label:\s*([^\s;{]+)\s*(;|$)/g,zn;function sR(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";zn=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=ka(n,e,i);else{var a=i;o+=a[0]}for(var s=1;s<t.length;s++)if(o+=ka(n,e,t[s]),r){var l=i;o+=l[s]}Sw.lastIndex=0;for(var c="",u;(u=Sw.exec(o))!==null;)c+="-"+u[1];var d=y8(o)+c;return{name:d,styles:o,next:zn}}var E8=function(e){return e()},I8=v.useInsertionEffect?v.useInsertionEffect:!1,A8=I8||E8,lR=v.createContext(typeof HTMLElement<"u"?p8({key:"css"}):null);lR.Provider;var T8=function(e){return O.forwardRef(function(n,r){var o=O.useContext(lR);return e(n,o,r)})},O8=v.createContext({}),ev={}.hasOwnProperty,Wm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",N8=function(e,n){var r={};for(var o in n)ev.call(n,o)&&(r[o]=n[o]);return r[Wm]=e,r},R8=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return iR(n,r,o),A8(function(){return v8(n,r,o)}),null},_8=T8(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var o=t[Wm],i=[r],a="";typeof t.className=="string"?a=b8(e.registered,i,t.className):t.className!=null&&(a=t.className+" ");var s=sR(i,void 0,v.useContext(O8));a+=e.key+"-"+s.name;var l={};for(var c in t)ev.call(t,c)&&c!=="css"&&c!==Wm&&(l[c]=t[c]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(R8,{cache:e,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),P8=_8,we=function(e,n){var r=arguments;if(n==null||!ev.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=P8,i[1]=N8(e,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(we||(we={}));function tv(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return sR(e)}function M8(){var t=tv.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function D8(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Vm=O.useLayoutEffect,k8=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ql=function(){};function j8(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function L8(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&i.push("".concat(j8(t,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var zl=function(e){return z8(e)?e.filter(Boolean):go(e)==="object"&&e!==null?[e]:[]},cR=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=cr(e,k8);return Ce({},n)},rt=function(e,n,r){var o=e.cx,i=e.getStyles,a=e.getClassNames,s=e.className;return{css:i(n,e),className:o(r??{},a(n,e),s)}};function eu(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function B8(t){return eu(t)?window.innerHeight:t.clientHeight}function uR(t){return eu(t)?window.pageYOffset:t.scrollTop}function Xl(t,e){if(eu(t)){window.scrollTo(0,e);return}t.scrollTop=e}function F8(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}function G8(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function Us(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ql,o=uR(t),i=e-o,a=10,s=0;function l(){s+=a;var c=G8(s,o,i,n);Xl(t,c),s<n?window.requestAnimationFrame(l):r(t)}l()}function Ew(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?Xl(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&Xl(t,Math.max(e.offsetTop-o,0))}function $8(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Iw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function W8(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dR=!1,V8={get passive(){return dR=!0}},Zs=typeof window<"u"?window:{};Zs.addEventListener&&Zs.removeEventListener&&(Zs.addEventListener("p",ql,V8),Zs.removeEventListener("p",ql,!1));var H8=dR;function q8(t){return t!=null}function z8(t){return Array.isArray(t)}function ca(t,e,n){return t?e:n}var X8=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(e).filter(function(a){var s=xr(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=xr(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},Y8=["children","innerProps"],U8=["children","innerProps"];function Z8(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.controlHeight,l=F8(n),c={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,w=a?window.innerHeight:B8(l),C=uR(l),S=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),T=y-E,I=w-m,_=T+C,P=d-C-m,W=h-w+C+S,A=C+m-E,D=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:e};if(P>=g&&!a)return i&&Us(l,W,D),{placement:"bottom",maxHeight:e};if(!a&&P>=r||a&&I>=r){i&&Us(l,W,D);var N=a?I-S:P-S;return{placement:"bottom",maxHeight:N}}if(o==="auto"||a){var F=e,j=a?T:_;return j>=r&&(F=Math.min(j-S-s,e)),{placement:"top",maxHeight:F}}if(o==="bottom")return i&&Xl(l,W),{placement:"bottom",maxHeight:e};break;case"top":if(T>=g)return{placement:"top",maxHeight:e};if(_>=g&&!a)return i&&Us(l,A,D),{placement:"top",maxHeight:e};if(!a&&_>=r||a&&T>=r){var M=e;return(!a&&_>=r||a&&T>=r)&&(M=a?T-E:_-E),i&&Us(l,A,D),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function J8(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var fR=function(e){return e==="auto"?"bottom":e},K8=function(e,n){var r,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return Ce((r={label:"menu"},la(r,J8(o),"100%"),la(r,"position","absolute"),la(r,"width","100%"),la(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},hR=O.createContext(null),Q8=function(e){var n=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=O.useContext(hR)||{},u=c.setPortalPlacement,d=O.useRef(null),f=O.useState(o),h=xr(f,2),g=h[0],m=h[1],b=O.useState(null),y=xr(b,2),w=y[0],C=y[1],S=l.spacing.controlHeight;return Vm(function(){var E=d.current;if(E){var T=a==="fixed",I=s&&!T,_=Z8({maxHeight:o,menuEl:E,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:T,controlHeight:S});m(_.maxHeight),C(_.placement),u?.(_.placement)}},[o,i,a,s,r,u,S]),n({ref:d,placerProps:Ce(Ce({},e),{},{placement:w||fR(i),maxHeight:g})})},eX=function(e){var n=e.children,r=e.innerRef,o=e.innerProps;return we("div",Ee({},rt(e,"menu",{menu:!0}),{ref:r},o),n)},tX=eX,nX=function(e,n){var r=e.maxHeight,o=e.theme.spacing.baseUnit;return Ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},rX=function(e){var n=e.children,r=e.innerProps,o=e.innerRef,i=e.isMulti;return we("div",Ee({},rt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},pR=function(e,n){var r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ce({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},oX=pR,iX=pR,aX=function(e){var n=e.children,r=n===void 0?"No options":n,o=e.innerProps,i=cr(e,Y8);return we("div",Ee({},rt(Ce(Ce({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},sX=function(e){var n=e.children,r=n===void 0?"Loading...":n,o=e.innerProps,i=cr(e,U8);return we("div",Ee({},rt(Ce(Ce({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},lX=function(e){var n=e.rect,r=e.offset,o=e.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},cX=function(e){var n=e.appendTo,r=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=O.useRef(null),c=O.useRef(null),u=O.useState(fR(a)),d=xr(u,2),f=d[0],h=d[1],g=O.useMemo(function(){return{setPortalPlacement:h}},[]),m=O.useState(null),b=xr(m,2),y=b[0],w=b[1],C=O.useCallback(function(){if(o){var I=$8(o),_=s==="fixed"?0:window.pageYOffset,P=I[f]+_;(P!==y?.offset||I.left!==y?.rect.left||I.width!==y?.rect.width)&&w({offset:P,rect:I})}},[o,s,f,y?.offset,y?.rect.left,y?.rect.width]);Vm(function(){C()},[C]);var S=O.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=yA(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);Vm(function(){S()},[S]);var E=O.useCallback(function(I){l.current=I,S()},[S]);if(!n&&s!=="fixed"||!y)return null;var T=we("div",Ee({ref:E},rt(Ce(Ce({},e),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),r);return we(hR.Provider,{value:g},n?dg.createPortal(T,n):T)},uX=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},dX=function(e){var n=e.children,r=e.innerProps,o=e.isDisabled,i=e.isRtl;return we("div",Ee({},rt(e,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},fX=function(e,n){var r=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Ce({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},hX=function(e){var n=e.children,r=e.innerProps,o=e.isMulti,i=e.hasValue;return we("div",Ee({},rt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},pX=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},mX=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},rt(e,"indicatorsContainer",{indicators:!0}),r),n)},Aw,gX=["size"],bX=["innerProps","isRtl","size"];function vX(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var yX=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:vX},mR=function(e){var n=e.size,r=cr(e,gX);return we("svg",Ee({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yX},r))},nv=function(e){return we(mR,Ee({size:20},e),we("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gR=function(e){return we(mR,Ee({size:20},e),we("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bR=function(e,n){var r=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},xX=bR,wX=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},rt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||we(gR,null))},CX=bR,SX=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},rt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||we(nv,null))},EX=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},IX=function(e){var n=e.innerProps;return we("span",Ee({},n,rt(e,"indicatorSeparator",{"indicator-separator":!0})))},AX=M8(Aw||(Aw=D8([`
|
|
84
84
|
0%, 80%, 100% { opacity: 0; }
|
|
85
85
|
40% { opacity: 1; }
|
|
86
|
-
`]))),QH=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,i=a.colors,s=a.spacing.baseUnit;return fe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2})},ku=function(t){var n=t.delay,r=t.offset;return ue("span",{css:fp({animation:"".concat(KH," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},e4=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,i=nn(t,HH);return ue("div",he({},Ne(fe(fe({},i),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ue(ku,{delay:0,offset:r}),ue(ku,{delay:160,offset:!0}),ue(ku,{delay:320,offset:!r}))},t4=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,i=a.colors,s=a.borderRadius,c=a.spacing;return fe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},n4=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return ue("div",he({ref:a},Ne(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),i,{"aria-disabled":r||void 0}),n)},r4=n4,o4=["data"],a4=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},i4=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.getClassNames,i=t.Heading,s=t.headingProps,c=t.innerProps,l=t.label,u=t.theme,d=t.selectProps;return ue("div",he({},Ne(t,"group",{group:!0}),c),ue(i,he({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:a,cx:r}),l),ue("div",null,n))},s4=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return fe({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},c4=function(t){var n=PS(t);n.data;var r=nn(n,o4);return ue("div",he({},Ne(t,"groupHeading",{"group-heading":!0}),r))},l4=i4,u4=["innerRef","isDisabled","isHidden","inputClassName"],d4=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,i=a.spacing,s=a.colors;return fe(fe({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},f4),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},BS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},f4={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":fe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},BS)},p4=function(t){return fe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},BS)},m4=function(t){var n=t.cx,r=t.value,o=PS(t),a=o.innerRef,i=o.isDisabled,s=o.isHidden,c=o.inputClassName,l=nn(o,u4);return ue("div",he({},Ne(t,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",he({className:n({input:!0},c),ref:a,style:p4(s),disabled:i},l)))},h4=m4,g4=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors;return fe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},b4=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,i=t.cropWithEllipsis;return fe({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},v4=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors,s=t.isFocused;return fe({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},jS=function(t){var n=t.children,r=t.innerProps;return ue("div",r,n)},y4=jS,x4=jS;function w4(e){var t=e.children,n=e.innerProps;return ue("div",he({role:"button"},n),t||ue(pp,{size:14}))}var C4=function(t){var n=t.children,r=t.components,o=t.data,a=t.innerProps,i=t.isDisabled,s=t.removeProps,c=t.selectProps,l=r.Container,u=r.Label,d=r.Remove;return ue(l,{data:o,innerProps:fe(fe({},Ne(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:c},ue(u,{data:o,innerProps:fe({},Ne(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),ue(d,{data:o,innerProps:fe(fe({},Ne(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},S4=C4,I4=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.theme,s=i.spacing,c=i.colors;return fe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?c.primary:o?c.primary25:"transparent",color:r?c.neutral20:a?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?c.primary:c.primary50}})},E4=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.innerRef,s=t.innerProps;return ue("div",he({},Ne(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":r},s),n)},A4=E4,R4=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return fe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},P4=function(t){var n=t.children,r=t.innerProps;return ue("div",he({},Ne(t,"placeholder",{placeholder:!0}),r),n)},O4=P4,T4=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,i=o.colors;return fe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},_4=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return ue("div",he({},Ne(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},M4=_4,D4={ClearIndicator:qH,Control:r4,DropdownIndicator:YH,DownChevron:kS,CrossIcon:pp,Group:l4,GroupHeading:c4,IndicatorsContainer:WH,IndicatorSeparator:JH,Input:h4,LoadingIndicator:e4,Menu:RH,MenuList:OH,MenuPortal:kH,LoadingMessage:DH,NoOptionsMessage:MH,MultiValue:S4,MultiValueContainer:y4,MultiValueLabel:x4,MultiValueRemove:w4,Option:A4,Placeholder:O4,SelectContainer:BH,SingleValue:M4,ValueContainer:GH},N4=function(t){return fe(fe({},D4),t.components)},xv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function k4(e,t){return!!(e===t||xv(e)&&xv(t))}function F4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!k4(e[n],t[n]))return!1;return!0}function B4(e,t){t===void 0&&(t=F4);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}function j4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var G4=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:j4},L4=function(t){return ue("span",he({css:G4},t))},wv=L4,W4={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,a=t.context,i=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,a=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,a=t.label,i=a===void 0?"":a,s=t.selectValue,c=t.isDisabled,l=t.isSelected,u=t.isAppleDevice,d=function(m,h){return m&&m.length?"".concat(m.indexOf(h)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(i," focused, ").concat(d(s,r),".");if(n==="menu"&&u){var f=c?" disabled":"",g="".concat(l?" selected":"").concat(f);return"".concat(i).concat(g,", ").concat(d(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},V4=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,i=t.isFocused,s=t.selectValue,c=t.selectProps,l=t.id,u=t.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,g=c.inputValue,b=c.isMulti,m=c.isOptionDisabled,h=c.isSearchable,v=c.menuIsOpen,x=c.options,w=c.screenReaderStatus,C=c.tabSelectsValue,S=c.isLoading,A=c["aria-label"],I=c["aria-live"],R=E.useMemo(function(){return fe(fe({},W4),d||{})},[d]),P=E.useMemo(function(){var W="";if(n&&R.onChange){var j=n.option,$=n.options,N=n.removedValue,V=n.removedValues,U=n.value,ee=function(q){return Array.isArray(q)?null:q},k=N||j||ee(U),H=k?f(k):"",Y=$||V||void 0,z=Y?Y.map(f):[],J=fe({isDisabled:k&&m(k,s),label:H,labels:z},n);W=R.onChange(J)}return W},[n,R,m,s,f]),M=E.useMemo(function(){var W="",j=r||o,$=!!(r&&s&&s.includes(r));if(j&&R.onFocus){var N={focused:j,label:f(j),isDisabled:m(j,s),isSelected:$,options:a,context:j===r?"menu":"value",selectValue:s,isAppleDevice:u};W=R.onFocus(N)}return W},[r,o,f,m,R,a,s,u]),T=E.useMemo(function(){var W="";if(v&&x.length&&!S&&R.onFilter){var j=w({count:a.length});W=R.onFilter({inputValue:g,resultsMessage:j})}return W},[a,g,v,R,x,w,S]),B=n?.action==="initial-input-focus",O=E.useMemo(function(){var W="";if(R.guidance){var j=o?"value":v?"menu":"input";W=R.guidance({"aria-label":A,context:j,isDisabled:r&&m(r,s),isMulti:b,isSearchable:h,tabSelectsValue:C,isInitialFocus:B})}return W},[A,r,o,b,m,h,v,R,s,C,B]),L=ue(E.Fragment,null,ue("span",{id:"aria-selection"},P),ue("span",{id:"aria-focused"},M),ue("span",{id:"aria-results"},T),ue("span",{id:"aria-guidance"},O));return ue(E.Fragment,null,ue(wv,{id:l},B&&L),ue(wv,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!B&&L))},H4=V4,Md=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],$4=new RegExp("["+Md.map(function(e){return e.letters}).join("")+"]","g"),GS={};for(var Fu=0;Fu<Md.length;Fu++)for(var Bu=Md[Fu],ju=0;ju<Bu.letters.length;ju++)GS[Bu.letters[ju]]=Bu.base;var LS=function(t){return t.replace($4,function(n){return GS[n]})},z4=B4(LS),Cv=function(t){return t.replace(/^\s+|\s+$/g,"")},X4=function(t){return"".concat(t.label," ").concat(t.value)},Y4=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=fe({ignoreCase:!0,ignoreAccents:!0,stringify:X4,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,i=o.ignoreAccents,s=o.stringify,c=o.trim,l=o.matchFrom,u=c?Cv(r):r,d=c?Cv(s(n)):s(n);return a&&(u=u.toLowerCase(),d=d.toLowerCase()),i&&(u=z4(u),d=LS(d)),l==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},Z4=["innerRef"];function q4(e){var t=e.innerRef,n=nn(e,Z4),r=yH(n,"onExited","in","enter","exit","appear");return ue("input",he({ref:t},r,{css:fp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var U4=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function J4(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=E.useRef(!1),s=E.useRef(!1),c=E.useRef(0),l=E.useRef(null),u=E.useCallback(function(h,v){if(l.current!==null){var x=l.current,w=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,A=l.current,I=v>0,R=C-S-w,P=!1;R>v&&i.current&&(r&&r(h),i.current=!1),I&&s.current&&(a&&a(h),s.current=!1),I&&v>R?(n&&!i.current&&n(h),A.scrollTop=C,P=!0,i.current=!0):!I&&-v>w&&(o&&!s.current&&o(h),A.scrollTop=0,P=!0,s.current=!0),P&&U4(h)}},[n,r,o,a]),d=E.useCallback(function(h){u(h,h.deltaY)},[u]),f=E.useCallback(function(h){c.current=h.changedTouches[0].clientY},[]),g=E.useCallback(function(h){var v=c.current-h.changedTouches[0].clientY;u(h,v)},[u]),b=E.useCallback(function(h){if(h){var v=gH?{passive:!1}:!1;h.addEventListener("wheel",d,v),h.addEventListener("touchstart",f,v),h.addEventListener("touchmove",g,v)}},[g,f,d]),m=E.useCallback(function(h){h&&(h.removeEventListener("wheel",d,!1),h.removeEventListener("touchstart",f,!1),h.removeEventListener("touchmove",g,!1))},[g,f,d]);return E.useEffect(function(){if(t){var h=l.current;return b(h),function(){m(h)}}},[t,b,m]),function(h){l.current=h}}var Sv=["boxSizing","height","overflow","paddingRight","position"],Iv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ev(e){e.cancelable&&e.preventDefault()}function Av(e){e.stopPropagation()}function Rv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ov=!!(typeof window<"u"&&window.document&&window.document.createElement),Hr=0,nr={capture:!1,passive:!1};function K4(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=E.useRef({}),a=E.useRef(null),i=E.useCallback(function(c){if(Ov){var l=document.body,u=l&&l.style;if(r&&Sv.forEach(function(b){var m=u&&u[b];o.current[b]=m}),r&&Hr<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(Iv).forEach(function(b){var m=Iv[b];u&&(u[b]=m)}),u&&(u.paddingRight="".concat(g,"px"))}l&&Pv()&&(l.addEventListener("touchmove",Ev,nr),c&&(c.addEventListener("touchstart",Rv,nr),c.addEventListener("touchmove",Av,nr))),Hr+=1}},[r]),s=E.useCallback(function(c){if(Ov){var l=document.body,u=l&&l.style;Hr=Math.max(Hr-1,0),r&&Hr<1&&Sv.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),l&&Pv()&&(l.removeEventListener("touchmove",Ev,nr),c&&(c.removeEventListener("touchstart",Rv,nr),c.removeEventListener("touchmove",Av,nr)))}},[r]);return E.useEffect(function(){if(t){var c=a.current;return i(c),function(){s(c)}}},[t,i,s]),function(c){a.current=c}}function Q4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var e3=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},t3=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Q4};function n3(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,l=J4({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:c}),u=K4({isEnabled:n}),d=function(g){l(g),u(g)};return ue(E.Fragment,null,n&&ue("div",{onClick:e3,css:t3}),t(d))}function r3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var o3=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:r3},a3=function(t){var n=t.name,r=t.onFocus;return ue("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:o3,value:"",onChange:function(){}})},i3=a3;function mp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function s3(){return mp(/^iPhone/i)}function WS(){return mp(/^Mac/i)}function c3(){return mp(/^iPad/i)||WS()&&navigator.maxTouchPoints>1}function l3(){return s3()||c3()}function u3(){return WS()||l3()}var d3=function(t){return t.label},VS=function(t){return t.label},HS=function(t){return t.value},f3=function(t){return!!t.isDisabled},p3={clearIndicator:ZH,container:FH,control:t4,dropdownIndicator:XH,group:a4,groupHeading:s4,indicatorsContainer:LH,indicatorSeparator:UH,input:d4,loadingIndicator:QH,loadingMessage:_H,menu:IH,menuList:PH,menuPortal:NH,multiValue:g4,multiValueLabel:b4,multiValueRemove:v4,noOptionsMessage:TH,option:I4,placeholder:R4,singleValue:T4,valueContainer:jH},m3={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},h3=4,$S=4,g3=38,b3=$S*2,v3={baseUnit:$S,controlHeight:g3,menuGutter:b3},Gu={borderRadius:h3,colors:m3,spacing:v3},y3={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vv(),captureMenuScroll:!vv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Y4(),formatGroupLabel:d3,getOptionLabel:VS,getOptionValue:HS,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:f3,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!mH(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Tv(e,t,n,r){var o=YS(e,t,n),a=ZS(e,t,n),i=XS(e,t),s=Qa(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:r}}function Ca(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,s){return Tv(e,i,t,s)}).filter(function(i){return Mv(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Tv(e,n,t,r);return Mv(e,a)?a:void 0}).filter(bH)}function zS(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,lr(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function _v(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,lr(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function x3(e,t){return zS(Ca(e,t))}function Mv(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!US(e)||!a)&&qS(e,{label:i,value:s,data:o},r)}function w3(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function C3(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Lu=function(t,n){var r,o=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return o||null},XS=function(t,n){return t.getOptionLabel(n)},Qa=function(t,n){return t.getOptionValue(n)};function YS(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZS(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Qa(e,t);return n.some(function(o){return Qa(e,o)===r})}function qS(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var US=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},S3=1,hp=(function(e){aV(n,e);var t=sV(n);function n(r){var o;if(rV(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(c){o.controlRef=c},o.focusedOptionRef=null,o.getFocusedOptionRef=function(c){o.focusedOptionRef=c},o.menuListRef=null,o.getMenuListRef=function(c){o.menuListRef=c},o.inputRef=null,o.getInputRef=function(c){o.inputRef=c},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(c,l){var u=o.props,d=u.onChange,f=u.name;l.name=f,o.ariaOnChange(c,l),d(c,l)},o.setValue=function(c,l,u){var d=o.props,f=d.closeMenuOnSelect,g=d.isMulti,b=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(c,{action:l,option:u})},o.selectOption=function(c){var l=o.props,u=l.blurInputOnSelect,d=l.isMulti,f=l.name,g=o.state.selectValue,b=d&&o.isOptionSelected(c,g),m=o.isOptionDisabled(c,g);if(b){var h=o.getOptionValue(c);o.setValue(g.filter(function(v){return o.getOptionValue(v)!==h}),"deselect-option",c)}else if(!m)d?o.setValue([].concat(lr(g),[c]),"select-option",c):o.setValue(c,"select-option");else{o.ariaOnChange(c,{action:"select-option",option:c,name:f});return}u&&o.blurInput()},o.removeValue=function(c){var l=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(c),f=u.filter(function(b){return o.getOptionValue(b)!==d}),g=Qr(l,f,f[0]||null);o.onChange(g,{action:"remove-value",removedValue:c}),o.focusInput()},o.clearValue=function(){var c=o.state.selectValue;o.onChange(Qr(o.props.isMulti,[],null),{action:"clear",removedValues:c})},o.popValue=function(){var c=o.props.isMulti,l=o.state.selectValue,u=l[l.length-1],d=l.slice(0,l.length-1),f=Qr(c,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(c){return Lu(o.state.focusableOptionsWithIds,c)},o.getFocusableOptionsWithIds=function(){return _v(Ca(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return lH.apply(void 0,[o.props.classNamePrefix].concat(l))},o.getOptionLabel=function(c){return XS(o.props,c)},o.getOptionValue=function(c){return Qa(o.props,c)},o.getStyles=function(c,l){var u=o.props.unstyled,d=p3[c](l,u);d.boxSizing="border-box";var f=o.props.styles[c];return f?f(d,l):d},o.getClassNames=function(c,l){var u,d;return(u=(d=o.props.classNames)[c])===null||u===void 0?void 0:u.call(d,l)},o.getElementId=function(c){return"".concat(o.state.instancePrefix,"-").concat(c)},o.getComponents=function(){return N4(o.props)},o.buildCategorizedOptions=function(){return Ca(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return zS(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(c,l){o.setState({ariaSelection:fe({value:c},l)})},o.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(c){o.blockOptionHover=!1},o.onControlMouseDown=function(c){if(!c.defaultPrevented){var l=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&o.onMenuClose():l&&o.openMenu("first"):(l&&(o.openAfterFocus=!0),o.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},o.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!o.props.isDisabled){var l=o.props,u=l.isMulti,d=l.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),c.preventDefault()}},o.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(o.clearValue(),c.preventDefault(),o.openAfterFocus=!1,c.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(c){typeof o.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&qi(c.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(c)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(c){var l=c.touches,u=l&&l.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(c){var l=c.touches,u=l&&l.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||f>g}},o.onTouchEnd=function(c){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(c.target)&&o.menuListRef&&!o.menuListRef.contains(c.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(c){o.userIsDragging||o.onControlMouseDown(c)},o.onClearIndicatorTouchEnd=function(c){o.userIsDragging||o.onClearIndicatorMouseDown(c)},o.onDropdownIndicatorTouchEnd=function(c){o.userIsDragging||o.onDropdownIndicatorMouseDown(c)},o.handleInputChange=function(c){var l=o.props.inputValue,u=c.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:l}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(c){o.props.onFocus&&o.props.onFocus(c),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(c){var l=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(c),o.onInputChange("",{action:"input-blur",prevInputValue:l}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(c){if(!(o.blockOptionHover||o.state.focusedOption===c)){var l=o.getFocusableOptions(),u=l.indexOf(c);o.setState({focusedOption:c,focusedOptionId:u>-1?o.getFocusedOptionId(c):null})}},o.shouldHideSelectedOptions=function(){return US(o.props)},o.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),o.focus()},o.onKeyDown=function(c){var l=o.props,u=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,g=l.inputValue,b=l.isClearable,m=l.isDisabled,h=l.menuIsOpen,v=l.onKeyDown,x=l.tabSelectsValue,w=l.openMenuOnFocus,C=o.state,S=C.focusedOption,A=C.focusedValue,I=C.selectValue;if(!m&&!(typeof v=="function"&&(v(c),c.defaultPrevented))){switch(o.blockOptionHover=!0,c.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(A)o.removeValue(A);else{if(!d)return;u?o.popValue():b&&o.clearValue()}break;case"Tab":if(o.isComposing||c.shiftKey||!h||!x||!S||w&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(c.keyCode===229)break;if(h){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":h?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):b&&f&&o.clearValue();break;case" ":if(g)return;if(!h){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":h?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":h?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!h)return;o.focusOption("pageup");break;case"PageDown":if(!h)return;o.focusOption("pagedown");break;case"Home":if(!h)return;o.focusOption("first");break;case"End":if(!h)return;o.focusOption("last");break;default:return}c.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++S3),o.state.selectValue=Ja(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),s=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=i[s],o.state.focusedOptionId=Lu(a,i[s])}return o}return oV(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bv(this.menuListRef,this.focusedOptionRef),u3()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isDisabled,s=a.menuIsOpen,c=this.state.isFocused;(c&&!i&&o.isDisabled||c&&s&&!o.menuIsOpen)&&this.focusInput(),c&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,i=this.state,s=i.selectValue,c=i.isFocused,l=this.buildFocusableOptions(),u=o==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[u],focusedOptionId:this.getFocusedOptionId(l[u])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,i=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=i.indexOf(s);s||(c=-1);var l=i.length-1,u=-1;if(i.length){switch(o){case"previous":c===0?u=0:c===-1?u=l:u=c-1;break;case"next":c>-1&&c<l&&(u=c+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,l=s.indexOf(i);i||(l=-1),o==="up"?c=l>0?l-1:s.length-1:o==="down"?c=(l+1)%s.length:o==="pageup"?(c=l-a,c<0&&(c=0)):o==="pagedown"?(c=l+a,c>s.length-1&&(c=s.length-1)):o==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Gu):fe(fe({},Gu),this.props.theme):Gu}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,i=this.getStyles,s=this.getClassNames,c=this.getValue,l=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,b=d.options,m=this.hasValue();return{clearValue:o,cx:a,getStyles:i,getClassNames:s,getValue:c,hasValue:m,isMulti:f,isRtl:g,options:b,selectOption:l,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,i=o.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(o,a){return YS(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return ZS(this.props,o,a)}},{key:"filterOption",value:function(o,a){return qS(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:i,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,i=o.isSearchable,s=o.inputId,c=o.inputValue,l=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,g=this.getComponents(),b=g.Input,m=this.state,h=m.inputIsHidden,v=m.ariaSelection,x=this.commonProps,w=s||this.getElementId("input"),C=fe(fe(fe({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?v?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?p.createElement(b,he({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:a,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:u,type:"text",value:c},C)):p.createElement(q4,he({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ua,onFocus:this.onInputFocus,disabled:a,tabIndex:l,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),i=a.MultiValue,s=a.MultiValueContainer,c=a.MultiValueLabel,l=a.MultiValueRemove,u=a.SingleValue,d=a.Placeholder,f=this.commonProps,g=this.props,b=g.controlShouldRenderValue,m=g.isDisabled,h=g.isMulti,v=g.inputValue,x=g.placeholder,w=this.state,C=w.selectValue,S=w.focusedValue,A=w.isFocused;if(!this.hasValue()||!b)return v?null:p.createElement(d,he({},f,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),x);if(h)return C.map(function(R,P){var M=R===S,T="".concat(o.getOptionLabel(R),"-").concat(o.getOptionValue(R));return p.createElement(i,he({},f,{components:{Container:s,Label:c,Remove:l},isFocused:M,isDisabled:m,key:T,index:P,removeProps:{onClick:function(){return o.removeValue(R)},onTouchEnd:function(){return o.removeValue(R)},onMouseDown:function(O){O.preventDefault()}},data:R}),o.formatOptionLabel(R,"value"))});if(v)return null;var I=C[0];return p.createElement(u,he({},f,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,i=this.commonProps,s=this.props,c=s.isDisabled,l=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!a||c||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,i=this.commonProps,s=this.props,c=s.isDisabled,l=s.isLoading,u=this.state.isFocused;if(!a||!l)return null;var d={"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:d,isDisabled:c,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,i=o.IndicatorSeparator;if(!a||!i)return null;var s=this.commonProps,c=this.props.isDisabled,l=this.state.isFocused;return p.createElement(i,he({},s,{isDisabled:c,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var i=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,he({},i,{innerProps:l,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),i=a.Group,s=a.GroupHeading,c=a.Menu,l=a.MenuList,u=a.MenuPortal,d=a.LoadingMessage,f=a.NoOptionsMessage,g=a.Option,b=this.commonProps,m=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,x=h.inputValue,w=h.isLoading,C=h.loadingMessage,S=h.minMenuHeight,A=h.maxMenuHeight,I=h.menuIsOpen,R=h.menuPlacement,P=h.menuPosition,M=h.menuPortalTarget,T=h.menuShouldBlockScroll,B=h.menuShouldScrollIntoView,O=h.noOptionsMessage,L=h.onMenuScrollToTop,W=h.onMenuScrollToBottom;if(!I)return null;var j=function(H,Y){var z=H.type,J=H.data,G=H.isDisabled,q=H.isSelected,ae=H.label,re=H.value,te=m===J,F=G?void 0:function(){return o.onOptionHover(J)},de=G?void 0:function(){return o.selectOption(J)},_="".concat(o.getElementId("option"),"-").concat(Y),Q={id:_,onClick:de,onMouseMove:F,onMouseOver:F,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:q};return p.createElement(g,he({},b,{innerProps:Q,data:J,isDisabled:G,isSelected:q,key:_,label:ae,type:z,value:re,isFocused:te,innerRef:te?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(H.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(k){if(k.type==="group"){var H=k.data,Y=k.options,z=k.index,J="".concat(o.getElementId("group"),"-").concat(z),G="".concat(J,"-heading");return p.createElement(i,he({},b,{key:J,data:H,options:Y,Heading:s,headingProps:{id:G,data:k.data},label:o.formatGroupLabel(k.data)}),k.options.map(function(q){return j(q,"".concat(z,"-").concat(q.index))}))}else if(k.type==="option")return j(k,"".concat(k.index))});else if(w){var N=C({inputValue:x});if(N===null)return null;$=p.createElement(d,b,N)}else{var V=O({inputValue:x});if(V===null)return null;$=p.createElement(f,b,V)}var U={minMenuHeight:S,maxMenuHeight:A,menuPlacement:R,menuPosition:P,menuShouldScrollIntoView:B},ee=p.createElement(EH,he({},b,U),function(k){var H=k.ref,Y=k.placerProps,z=Y.placement,J=Y.maxHeight;return p.createElement(c,he({},b,U,{innerRef:H,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:z}),p.createElement(n3,{captureEnabled:v,onTopArrive:L,onBottomArrive:W,lockEnabled:T},function(G){return p.createElement(l,he({},b,{innerRef:function(ae){o.getMenuListRef(ae),G(ae)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:J,focusedOption:m}),$)}))});return M||P==="fixed"?p.createElement(u,he({},b,{appendTo:M,controlElement:this.controlRef,menuPlacement:R,menuPosition:P}),ee):ee}},{key:"renderFormField",value:function(){var o=this,a=this.props,i=a.delimiter,s=a.isDisabled,c=a.isMulti,l=a.name,u=a.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return p.createElement(i3,{name:l,onFocus:this.onValueInputFocus});if(!(!l||s))if(c)if(i){var f=d.map(function(m){return o.getOptionValue(m)}).join(i);return p.createElement("input",{name:l,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(m,h){return p.createElement("input",{key:"i-".concat(h),name:l,type:"hidden",value:o.getOptionValue(m)})}):p.createElement("input",{name:l,type:"hidden",value:""});return p.createElement("div",null,g)}else{var b=d[0]?this.getOptionValue(d[0]):"";return p.createElement("input",{name:l,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,i=a.ariaSelection,s=a.focusedOption,c=a.focusedValue,l=a.isFocused,u=a.selectValue,d=this.getFocusableOptions();return p.createElement(H4,he({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:s,focusedValue:c,isFocused:l,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,i=o.IndicatorsContainer,s=o.SelectContainer,c=o.ValueContainer,l=this.props,u=l.className,d=l.id,f=l.isDisabled,g=l.menuIsOpen,b=this.state.isFocused,m=this.commonProps=this.getCommonProps();return p.createElement(s,he({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),p.createElement(a,he({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:g}),p.createElement(c,he({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(i,he({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s=a.clearFocusValueOnUpdate,c=a.inputIsHiddenAfterUpdate,l=a.ariaSelection,u=a.isFocused,d=a.prevWasFocused,f=a.instancePrefix,g=o.options,b=o.value,m=o.menuIsOpen,h=o.inputValue,v=o.isMulti,x=Ja(b),w={};if(i&&(b!==i.value||g!==i.options||m!==i.menuIsOpen||h!==i.inputValue)){var C=m?x3(o,x):[],S=m?_v(Ca(o,x),"".concat(f,"-option")):[],A=s?w3(a,x):null,I=C3(a,C),R=Lu(S,I);w={selectValue:x,focusedOption:I,focusedOptionId:R,focusableOptionsWithIds:S,focusedValue:A,clearFocusValueOnUpdate:!1}}var P=c!=null&&o!==i?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},M=l,T=u&&d;return u&&!T&&(M={value:Qr(v,x,x[0]||null),options:x,action:"initial-input-focus"},T=!d),l?.action==="initial-input-focus"&&(M=null),fe(fe(fe({},w),P),{},{prevProps:o,ariaSelection:M,prevWasFocused:T})}}]),n})(E.Component);hp.defaultProps=y3;var I3=E.forwardRef(function(e,t){var n=hS(e);return p.createElement(hp,he({ref:t},n))}),E3=I3,A3=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Dv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),a=String(r.getOptionValue(n)).toLowerCase(),i=String(r.getOptionLabel(n)).toLowerCase();return a===o||i===o},Wu={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,o){return!(!t||n.some(function(a){return Dv(t,a,o)})||r.some(function(a){return Dv(t,a,o)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function R3(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,o=r===void 0?"last":r,a=e.formatCreateLabel,i=a===void 0?Wu.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?Wu.isValidNewOption:s,l=e.getNewOptionData,u=l===void 0?Wu.getNewOptionData:l,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,b=e.onChange,m=nn(e,A3),h=m.getOptionValue,v=h===void 0?HS:h,x=m.getOptionLabel,w=x===void 0?VS:x,C=m.inputValue,S=m.isLoading,A=m.isMulti,I=m.value,R=m.name,P=E.useMemo(function(){return c(C,Ja(I),g,{getOptionValue:v,getOptionLabel:w})?u(C,i(C)):void 0},[i,u,w,v,C,c,g,I]),M=E.useMemo(function(){return(n||!S)&&P?o==="first"?[P].concat(lr(g)):[].concat(lr(g),[P]):g},[n,o,S,P,g]),T=E.useCallback(function(B,O){if(O.action!=="select-option")return b(B,O);var L=Array.isArray(B)?B:[B];if(L[L.length-1]===P){if(d)d(C);else{var W=u(C,C),j={action:"create-option",name:R,option:W};b(Qr(A,[].concat(lr(Ja(I)),[W]),W),j)}return}b(B,O)},[u,C,A,R,P,d,b,I]);return fe(fe({},m),{},{options:M,onChange:T})}var P3=E.forwardRef(function(e,t){var n=hS(e),r=R3(n);return p.createElement(hp,he({ref:t},r))}),O3=P3;function T3({label:e="",options:t=[],name:n="",value:r,onChange:o,onInputChange:a,placeholder:i="",isClearable:s=!1,isSearchable:c=!1,isMulti:l=!1,isDisabled:u=!1,error:d="",onError:f,description:g="",className:b,selectClassName:m,labelVariant:h="default",...v}){return E.useEffect(()=>{f&&f(d)},[f,d]),y.jsx("label",{className:D("field-select new-design-field-select w-full",b),children:y.jsxs("div",{children:[y.jsx(Xr,{children:y.jsx(ir,{condition:!!e,children:y.jsx(tp,{className:"mb-2",variant:h,children:e})})}),y.jsxs("div",{children:[y.jsxs(Xr,{children:[y.jsx(ir,{condition:s,children:y.jsx("div",{className:D(m,"select-wrapper text-sm w-full border border-input rounded-md border-solid"),children:y.jsx(O3,{value:r,onChange:o,onInputChange:a,options:t,name:n,isClearable:s,isSearchable:c,isMulti:l,placeholder:i,isDisabled:u,...v})})}),y.jsx(ff,{children:y.jsx("div",{className:D("select-wrapper border border-input rounded-md new-design-select-wrapper text-sm",m),children:y.jsx(E3,{"data-test-id":n,isSearchable:c,isClearable:s,name:n,options:t,value:r,onChange:o,onInputChange:a,isMulti:l,isDisabled:u,placeholder:i,...v})})})]}),y.jsx(Xr,{children:y.jsx(ir,{condition:!!g,children:y.jsx(nC,{description:g})})}),y.jsx(Xr,{children:y.jsx(ir,{condition:!!d&&!f,children:y.jsx(tC,{message:d})})})]})]})})}var _3="Separator",Nv="horizontal",M3=["horizontal","vertical"],JS=p.forwardRef((e,t)=>{const{decorative:n,orientation:r=Nv,...o}=e,a=D3(r)?r:Nv,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return y.jsx(st.div,{"data-orientation":a,...s,...o,ref:t})});JS.displayName=_3;function D3(e){return M3.includes(e)}var N3=JS;function KS({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return y.jsx(N3,{"data-slot":"separator",decorative:n,orientation:t,className:D("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function QS({...e}){return y.jsx(Ci,{"data-slot":"sheet",...e})}function k3({...e}){return y.jsx(Ox,{"data-slot":"sheet-trigger",...e})}function F3({...e}){return y.jsx(Ei,{"data-slot":"sheet-close",...e})}function B3({...e}){return y.jsx(Nf,{"data-slot":"sheet-portal",...e})}function j3({className:e,...t}){return y.jsx(Si,{"data-slot":"sheet-overlay",className:D("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function eI({className:e,children:t,side:n="right",...r}){return y.jsxs(B3,{children:[y.jsx(j3,{}),y.jsxs(Ii,{"data-slot":"sheet-content",className:D("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,y.jsxs(Ei,{"data-testid":"sheet-close-icon",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[y.jsx(ty,{className:"size-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tI({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-header",className:D("flex flex-col gap-1.5 p-4",e),...t})}function G3({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-footer",className:D("mt-auto flex flex-col gap-2 p-4",e),...t})}function nI({className:e,...t}){return y.jsx(Tx,{"data-slot":"sheet-title",className:D("text-foreground font-semibold",e),...t})}function rI({className:e,...t}){return y.jsx(_x,{"data-slot":"sheet-description",className:D("text-muted-foreground text-sm",e),...t})}const Vu=768;function L3(){const[e,t]=p.useState(void 0);return p.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Vu-1}px)`),r=()=>{t(window.innerWidth<Vu)};return n.addEventListener("change",r),t(window.innerWidth<Vu),()=>n.removeEventListener("change",r)},[]),!!e}function Dd({className:e,...t}){return y.jsx("div",{"data-slot":"skeleton",className:D("bg-accent animate-pulse rounded-md shrink-0",e),...t})}var[Ui]=ze("Tooltip",[en]),Ji=en(),oI="TooltipProvider",W3=700,Nd="tooltip.open",[V3,gp]=Ui(oI),aI=e=>{const{__scopeTooltip:t,delayDuration:n=W3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=p.useRef(!0),s=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),y.jsx(V3,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};aI.displayName=oI;var xo="Tooltip",[H3,$o]=Ui(xo),iI=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=gp(xo,e.__scopeTooltip),l=Ji(t),[u,d]=p.useState(null),f=Le(),g=p.useRef(0),b=i??c.disableHoverableContent,m=s??c.delayDuration,h=p.useRef(!1),[v,x]=et({prop:r,defaultProp:o??!1,onChange:I=>{I?(c.onOpen(),document.dispatchEvent(new CustomEvent(Nd))):c.onClose(),a?.(I)},caller:xo}),w=p.useMemo(()=>v?h.current?"delayed-open":"instant-open":"closed",[v]),C=p.useCallback(()=>{window.clearTimeout(g.current),g.current=0,h.current=!1,x(!0)},[x]),S=p.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),A=p.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{h.current=!0,x(!0),g.current=0},m)},[m,x]);return p.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),y.jsx(Fo,{...l,children:y.jsx(H3,{scope:t,contentId:f,open:v,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:p.useCallback(()=>{b?S():(window.clearTimeout(g.current),g.current=0)},[S,b]),onOpen:C,onClose:S,disableHoverableContent:b,children:n})})};iI.displayName=xo;var kd="TooltipTrigger",sI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$o(kd,n),a=gp(kd,n),i=Ji(n),s=p.useRef(null),c=pe(t,s,o.onTriggerChange),l=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>l.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Ar,{asChild:!0,...i,children:y.jsx(oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:X(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});sI.displayName=kd;var bp="TooltipPortal",[$3,z3]=Ui(bp,{forceMount:void 0}),cI=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=$o(bp,t);return y.jsx($3,{scope:t,forceMount:n,children:y.jsx(Xe,{present:n||a.open,children:y.jsx(Tf,{asChild:!0,container:o,children:r})})})};cI.displayName=bp;var xr="TooltipContent",lI=p.forwardRef((e,t)=>{const n=z3(xr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=$o(xr,e.__scopeTooltip);return y.jsx(Xe,{present:r||i.open,children:i.disableHoverableContent?y.jsx(uI,{side:o,...a,ref:t}):y.jsx(X3,{side:o,...a,ref:t})})}),X3=p.forwardRef((e,t)=>{const n=$o(xr,e.__scopeTooltip),r=gp(xr,e.__scopeTooltip),o=p.useRef(null),a=pe(t,o),[i,s]=p.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,f=p.useCallback(()=>{s(null),d(!1)},[d]),g=p.useCallback((b,m)=>{const h=b.currentTarget,v={x:b.clientX,y:b.clientY},x=U3(v,h.getBoundingClientRect()),w=J3(v,x),C=K3(m.getBoundingClientRect()),S=e$([...w,...C]);s(S),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(c&&u){const b=h=>g(h,u),m=h=>g(h,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",m)}}},[c,u,g,f]),p.useEffect(()=>{if(i){const b=m=>{const h=m.target,v={x:m.clientX,y:m.clientY},x=c?.contains(h)||u?.contains(h),w=!Q3(v,i);x?f():w&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,l,f]),y.jsx(uI,{...e,ref:a})}),[Y3,Z3]=Ui(xo,{isInside:!1}),q3=o1("TooltipContent"),uI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=$o(xr,n),l=Ji(n),{onClose:u}=c;return p.useEffect(()=>(document.addEventListener(Nd,u),()=>document.removeEventListener(Nd,u)),[u]),p.useEffect(()=>{if(c.trigger){const d=f=>{f.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),y.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(Bo,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(q3,{children:r}),y.jsx(Y3,{scope:n,isInside:!0,children:y.jsx(bW,{id:c.contentId,role:"tooltip",children:o||r})})]})})});lI.displayName=xr;var dI="TooltipArrow",fI=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ji(n);return Z3(dI,n).isInside?null:y.jsx(jo,{...o,...r,ref:t})});fI.displayName=dI;function U3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function J3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function K3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Q3(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],c=t[i],l=s.x,u=s.y,d=c.x,f=c.y;u>r!=f>r&&n<(d-l)*(r-u)/(f-u)+l&&(o=!o)}return o}function e$(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),t$(t)}function t$(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var n$=aI,r$=iI,o$=sI,a$=cI,i$=lI,s$=fI;function vp({delayDuration:e=0,...t}){return y.jsx(n$,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pI({...e}){return y.jsx(vp,{children:y.jsx(r$,{"data-slot":"tooltip",...e})})}function mI({...e}){return y.jsx(o$,{"data-slot":"tooltip-trigger",...e})}function hI({className:e,sideOffset:t=0,children:n,...r}){return y.jsx(a$,{children:y.jsxs(i$,{"data-slot":"tooltip-content",sideOffset:t,className:D("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,y.jsx(s$,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const gI=p.createContext(null);function Ki(){const e=p.useContext(gI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const c$="sidebar_state",l$=3600*24*7,u$="16rem",d$="18rem",f$="3rem",p$="b";function m$({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i}){const s=L3(),[c,l]=p.useState(!1),[u,d]=p.useState(e),f=t??u,g=p.useCallback(v=>{const x=typeof v=="function"?v(f):v;n?n(x):d(x),document.cookie=`${c$}=${x}; path=/; max-age=${l$}`},[n,f]),b=p.useCallback(()=>s?l(v=>!v):g(v=>!v),[s,g,l]);p.useEffect(()=>{const v=x=>{x.key===p$&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const m=f?"expanded":"collapsed",h=p.useMemo(()=>({state:m,open:f,setOpen:g,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:b}),[m,f,g,s,c,l,b]);return y.jsx(gI.Provider,{value:h,children:y.jsx(vp,{delayDuration:0,children:y.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":u$,"--sidebar-width-icon":f$,...o},className:D("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:a})})})}function h$({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:i,state:s,openMobile:c,setOpenMobile:l}=Ki();return n==="none"?y.jsx("div",{"data-slot":"sidebar",className:D("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):i?y.jsx(QS,{open:c,onOpenChange:l,...a,children:y.jsxs(eI,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":d$},side:e,children:[y.jsxs(tI,{className:"sr-only",children:[y.jsx(nI,{children:"Sidebar"}),y.jsx(rI,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):y.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[y.jsx("div",{"data-slot":"sidebar-gap",className:D("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),y.jsx("div",{"data-slot":"sidebar-container",className:D("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:y.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function g$({className:e,onClick:t,...n}){const{toggleSidebar:r}=Ki();return y.jsxs(Io,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[y.jsx(tE,{}),y.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function b$({className:e,...t}){const{toggleSidebar:n}=Ki();return y.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function v$({className:e,...t}){return y.jsx("main",{"data-slot":"sidebar-inset",className:D("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function y$({className:e,...t}){return y.jsx(hC,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("bg-background h-8 w-full shadow-none",e),...t})}function x$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t})}function w$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t})}function C$({className:e,...t}){return y.jsx(KS,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("bg-sidebar-border mx-2 w-auto",e),...t})}function S$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function I$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col p-2",e),...t})}function E$({className:e,asChild:t=!1,...n}){const r=t?Cn:"div";return y.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function A$({className:e,asChild:t=!1,...n}){const r=t?Cn:"button";return y.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function R$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("w-full text-sm",e),...t})}function P$({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t})}function O$({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t})}const T$=So("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function _$({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i}){const s=e?Cn:"button",{isMobile:c,state:l}=Ki(),u=y.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(T$({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),y.jsxs(pI,{children:[y.jsx(mI,{asChild:!0,children:u}),y.jsx(hI,{side:"right",align:"center",hidden:l!=="collapsed"||c,...o})]})):u}function M$({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Cn:"button";return y.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function D$({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function N$({className:e,showIcon:t=!1,...n}){const[r,o]=p.useState("80%");return p.useEffect(()=>{o(`${Math.floor(Math.random()*40)+50}%`)},[]),y.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&y.jsx(Dd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),y.jsx(Dd,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function k$({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function F$({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("group/menu-sub-item relative",e),...t})}function B$({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Cn:"a";return y.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}var bI=["PageUp","PageDown"],vI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yI={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},_r="Slider",[Fd,j$,G$]=wo(_r),[xI]=ze(_r,[G$]),[L$,Qi]=xI(_r),wI=p.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:g=!1,form:b,...m}=e,h=p.useRef(new Set),v=p.useRef(0),w=i==="horizontal"?W$:V$,[C=[],S]=et({prop:u,defaultProp:l,onChange:T=>{[...h.current][v.current]?.focus(),d(T)}}),A=p.useRef(C);function I(T){const B=Y$(C,T);M(T,B)}function R(T){M(T,v.current)}function P(){const T=A.current[v.current];C[v.current]!==T&&f(C)}function M(T,B,{commit:O}={commit:!1}){const L=J$(a),W=K$(Math.round((T-r)/a)*a+r,L),j=go(W,[r,o]);S(($=[])=>{const N=z$($,j,B);if(U$(N,c*a)){v.current=N.indexOf(j);const V=String(N)!==String($);return V&&O&&f(N),V?N:$}else return $})}return y.jsx(L$,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:v,thumbs:h.current,values:C,orientation:i,form:b,children:y.jsx(Fd.Provider,{scope:e.__scopeSlider,children:y.jsx(Fd.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:X(m.onPointerDown,()=>{s||(A.current=C)}),min:r,max:o,inverted:g,onSlideStart:s?void 0:I,onSlideMove:s?void 0:R,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&M(r,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,C.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:B})=>{if(!s){const W=bI.includes(T.key)||T.shiftKey&&vI.includes(T.key)?10:1,j=v.current,$=C[j],N=a*W*B;M($+N,j,{commit:!0})}}})})})})});wI.displayName=_r;var[CI,SI]=xI(_r,{startEdge:"left",endEdge:"right",size:"width",direction:1}),W$=p.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=p.useState(null),g=pe(t,w=>f(w)),b=p.useRef(void 0),m=wn(o),h=m==="ltr",v=h&&!a||!h&&a;function x(w){const C=b.current||d.getBoundingClientRect(),S=[0,C.width],I=yp(S,v?[n,r]:[r,n]);return b.current=C,I(w-C.left)}return y.jsx(CI,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:y.jsx(II,{dir:m,"data-orientation":"horizontal",...u,ref:g,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=x(w.clientX);i?.(C)},onSlideMove:w=>{const C=x(w.clientX);s?.(C)},onSlideEnd:()=>{b.current=void 0,c?.()},onStepKeyDown:w=>{const S=yI[v?"from-left":"from-right"].includes(w.key);l?.({event:w,direction:S?-1:1})}})})}),V$=p.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=p.useRef(null),d=pe(t,u),f=p.useRef(void 0),g=!o;function b(m){const h=f.current||u.current.getBoundingClientRect(),v=[0,h.height],w=yp(v,g?[r,n]:[n,r]);return f.current=h,w(m-h.top)}return y.jsx(CI,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:y.jsx(II,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=b(m.clientY);a?.(h)},onSlideMove:m=>{const h=b(m.clientY);i?.(h)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{const v=yI[g?"from-bottom":"from-top"].includes(m.key);c?.({event:m,direction:v?-1:1})}})})}),II=p.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=Qi(_r,n);return y.jsx(oe.span,{...l,ref:t,onKeyDown:X(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):bI.concat(vI).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:X(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:X(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:X(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),a(d))})})}),EI="SliderTrack",AI=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qi(EI,n);return y.jsx(oe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});AI.displayName=EI;var Bd="SliderRange",RI=p.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qi(Bd,n),a=SI(Bd,n),i=p.useRef(null),s=pe(t,i),c=o.values.length,l=o.values.map(f=>TI(f,o.min,o.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return y.jsx(oe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})});RI.displayName=Bd;var jd="SliderThumb",PI=p.forwardRef((e,t)=>{const n=j$(e.__scopeSlider),[r,o]=p.useState(null),a=pe(t,s=>o(s)),i=p.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return y.jsx(H$,{...e,ref:a,index:i})}),H$=p.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=Qi(jd,n),s=SI(jd,n),[c,l]=p.useState(null),u=pe(t,x=>l(x)),d=c?i.form||!!c.closest("form"):!0,f=_o(c),g=i.values[r],b=g===void 0?0:TI(g,i.min,i.max),m=X$(r,i.values.length),h=f?.[s.size],v=h?Z$(h,b,s.direction):0;return p.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${b}% + ${v}px)`},children:[y.jsx(Fd.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(oe.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":g,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:u,style:g===void 0?{display:"none"}:e.style,onFocus:X(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&y.jsx(OI,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:g},r)]})});PI.displayName=jd;var $$="RadioBubbleInput",OI=p.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=p.useRef(null),a=pe(o,r),i=To(t);return p.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[i,t]),y.jsx(oe.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});OI.displayName=$$;function z$(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function TI(e,t,n){const a=100/(n-t)*(e-t);return go(a,[0,100])}function X$(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Y$(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Z$(e,t,n){const r=e/2,a=yp([0,50],[0,r]);return(r-a(t)*n)*n}function q$(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function U$(e,t){if(t>0){const n=q$(e);return Math.min(...n)>=t}return!0}function yp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function J$(e){return(String(e).split(".")[1]||"").length}function K$(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Q$=wI,e9=AI,t9=RI,n9=PI;function r9({className:e,defaultValue:t,value:n,min:r=0,max:o=100,...a}){const i=p.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,o],[n,t,r,o]);return y.jsxs(Q$,{"data-slot":"slider",defaultValue:t,value:n,min:r,max:o,className:D("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...a,children:[y.jsx(e9,{"data-slot":"slider-track",className:D("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:y.jsx(t9,{"data-slot":"slider-range",className:D("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:i.length},(s,c)=>y.jsx(n9,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},c))]})}function o9({title:e,containerClassName:t,className:n,...r}){return y.jsx("section",{className:D(t),children:y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(ey,{role:"status","aria-label":"Loading",className:D("size-4 animate-spin",n),...r}),e&&y.jsx("span",{children:e})]})})}var es="Switch",[a9]=ze(es),[i9,s9]=a9(es),_I=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:u,...d}=e,[f,g]=p.useState(null),b=pe(t,w=>g(w)),m=p.useRef(!1),h=f?u||!!f.closest("form"):!0,[v,x]=et({prop:o,defaultProp:a??!1,onChange:l,caller:es});return y.jsxs(i9,{scope:n,checked:v,disabled:s,children:[y.jsx(oe.button,{type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":kI(v),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:b,onClick:X(e.onClick,w=>{x(C=>!C),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(NI,{control:f,bubbles:!m.current,name:r,value:c,checked:v,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});_I.displayName=es;var MI="SwitchThumb",DI=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=s9(MI,n);return y.jsx(oe.span,{"data-state":kI(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});DI.displayName=MI;var c9="SwitchBubbleInput",NI=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=p.useRef(null),s=pe(i,a),c=To(n),l=_o(t);return p.useEffect(()=>{const u=i.current;if(!u)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&g){const b=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(b)}},[c,n,r]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});NI.displayName=c9;function kI(e){return e?"checked":"unchecked"}var l9=_I,u9=DI;function d9({className:e,...t}){return y.jsx(l9,{"data-slot":"switch",className:D("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:y.jsx(u9,{"data-slot":"switch-thumb",className:D("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var ts="Tabs",[f9]=ze(ts,[Rr]),FI=Rr(),[p9,xp]=f9(ts),BI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...l}=e,u=wn(s),[d,f]=et({prop:r,onChange:o,defaultProp:a??"",caller:ts});return y.jsx(p9,{scope:n,baseId:Le(),value:d,onValueChange:f,orientation:i,dir:u,activationMode:c,children:y.jsx(oe.div,{dir:u,"data-orientation":i,...l,ref:t})})});BI.displayName=ts;var jI="TabsList",GI=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=xp(jI,n),i=FI(n);return y.jsx(zf,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:y.jsx(oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});GI.displayName=jI;var LI="TabsTrigger",WI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=xp(LI,n),s=FI(n),c=$I(i.baseId,r),l=zI(i.baseId,r),u=r===i.value;return y.jsx(Xf,{asChild:!0,...s,focusable:!o,active:u,children:y.jsx(oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:X(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:X(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:X(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(r)})})})});WI.displayName=LI;var VI="TabsContent",HI=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=xp(VI,n),c=$I(s.baseId,r),l=zI(s.baseId,r),u=r===s.value,d=p.useRef(u);return p.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),y.jsx(Xe,{present:o||u,children:({present:f})=>y.jsx(oe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});HI.displayName=VI;function $I(e,t){return`${e}-trigger-${t}`}function zI(e,t){return`${e}-content-${t}`}var m9=BI,h9=GI,g9=WI,b9=HI;function v9({className:e,...t}){return y.jsx(m9,{"data-slot":"tabs",className:D("flex flex-col gap-2",e),...t})}function y9({className:e,...t}){return y.jsx(h9,{"data-slot":"tabs-list",className:D("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function x9({className:e,...t}){return y.jsx(g9,{"data-slot":"tabs-trigger",className:D("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function w9({className:e,...t}){return y.jsx(b9,{"data-slot":"tabs-content",className:D("flex-1 outline-none",e),...t})}function C9({className:e,...t}){return y.jsx("div",{"data-slot":"table-container",className:"overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:D("data-grid min-w-full text-left text-sm font-light text-surface dark:text-white",e),...t})})}function S9({className:e,disableHover:t=!1,...n}){return y.jsx("thead",{"data-slot":"table-header",className:D("border-b border-neutral-200 font-medium bg-zinc-700 text-white",!t&&"hover:bg-zinc-700 hover:text-white",e),...n})}function I9({className:e,...t}){return y.jsx("th",{"data-slot":"table-head",className:D("p-2 whitespace-nowrap",e),...t})}function E9({className:e,...t}){return y.jsx("tbody",{"data-slot":"table-body",className:D("border-b bg-white [&_tr:last-child]:border-0",e),...t})}function A9({className:e,...t}){return y.jsx("tr",{className:D("border-b border-neutral-200",e),...t})}function R9({className:e,disableHover:t=!1,...n}){return y.jsx("tr",{"data-slot":"table-row",className:D("border-b border-neutral-200",!t&&"hover:bg-neutral-300",e),...n})}function P9({className:e,...t}){return y.jsx("td",{"data-slot":"table-cell",className:D("whitespace-nowrap p-2",e),...t})}function O9({className:e,...t}){return y.jsx("caption",{"data-slot":"table-caption",className:D("mt-4 text-sm text-muted-foreground",e),...t})}function T9({className:e,...t}){return y.jsx("tfoot",{"data-slot":"table-footer",className:D("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})}const XI=p.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:"overflow-x-auto","data-slot":"table-container",children:y.jsx("table",{ref:n,"data-slot":"table",className:D("data-grid min-w-full text-left text-sm font-light text-surface dark:text-white border-collapse",e),...t})}));XI.displayName="TableWhatsApp";const YI=p.forwardRef(({className:e,disableHover:t=!1,...n},r)=>y.jsx("thead",{ref:r,"data-slot":"table-header",className:D("text-black-250",!t&&void 0,e),...n}));YI.displayName="TableHeaderWhatsApp";const ZI=p.forwardRef(({className:e,column:t,...n},r)=>y.jsx("th",{ref:r,"data-slot":"table-head",className:D("p-2 font-normal",t?.columnDef?.whiteSpace||"whitespace-nowrap",t?.columnDef?.sticky&&"sticky z-10 before:content-[''] before:absolute before:top-0 before:bottom-0 before:w-[1px] before:h-full before:bg-gray-250",t?.columnDef?.stickyLeft&&"left-0 before:right-0",t?.columnDef?.stickyRight&&"right-0 before:left-0",t?.columnDef?.textColor&&t?.columnDef?.textColor,e),...n,children:n.children}));ZI.displayName="TableHeadWhatsApp";const qI=p.forwardRef(({className:e,column:t,children:n,...r},o)=>y.jsx("td",{ref:o,"data-slot":"table-cell",className:D("whitespace-nowrap px-2 py-4 relative",t?.columnDef?.sticky&&"sticky z-10 before:content-[''] before:absolute before:top-0 before:bottom-0 before:w-[1px] before:h-full before:bg-gray-250",t?.columnDef?.stickyLeft&&"left-0 before:right-0",t?.columnDef?.stickyRight&&"right-0 before:left-0",t?.columnDef?.borderRight&&"border-0 border-r border-gray-250 border-solid",t?.columnDef?.cellBgColorClass?t?.columnDef?.cellBgColorClass:"bg-white",e),...r,children:n}));qI.displayName="TableCellWhatsApp";const UI=p.forwardRef(({className:e,...t},n)=>y.jsx("tbody",{ref:n,"data-slot":"table-body",className:D("border-b bg-white [&_tr:last-child]:border-0",e),...t}));UI.displayName="TableBodyWhatsApp";const JI=p.forwardRef(({className:e,...t},n)=>y.jsx("tr",{ref:n,"data-slot":"table-head-row",className:D("border-0 border-b border-solid border-gray-250",e),...t}));JI.displayName="TableHeadRowWhatsApp";const KI=p.forwardRef(({className:e,disableHover:t=!1,...n},r)=>y.jsx("tr",{ref:r,"data-slot":"table-row",className:D("border-0 border-b border-solid border-gray-250",!t&&void 0,e),...n}));KI.displayName="TableRowWhatsApp";const QI=p.forwardRef(({className:e,...t},n)=>y.jsx("caption",{ref:n,"data-slot":"table-caption",className:D("mt-4 text-sm text-muted-foreground",e),...t}));QI.displayName="TableCaptionWhatsApp";const e1=p.forwardRef(({className:e,...t},n)=>y.jsx("tfoot",{ref:n,"data-slot":"table-footer",className:D("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));e1.displayName="TableFooterWhatsApp";function _9({className:e,...t}){return y.jsx("textarea",{"data-slot":"textarea",className:D("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}exports.Accordion=fR;exports.AccordionContent=hR;exports.AccordionItem=pR;exports.AccordionTrigger=mR;exports.AspectRatio=AR;exports.Avatar=WR;exports.Badge=$R;exports.Breadcrumb=zR;exports.Button=Io;exports.Calendar=wO;exports.Card=SO;exports.CardAction=RO;exports.CardContent=PO;exports.CardDescription=AO;exports.CardFooter=OO;exports.CardHeader=IO;exports.CardTitle=EO;exports.Carousel=uT;exports.CarouselContent=dT;exports.CarouselItem=fT;exports.CarouselNext=mT;exports.CarouselPrevious=pT;exports.Case=ir;exports.ChartContainer=zN;exports.ChartLegend=ZN;exports.ChartLegendContent=qN;exports.ChartStyle=X0;exports.ChartTooltip=XN;exports.ChartTooltipContent=YN;exports.Checkbox=ek;exports.Collapsible=tk;exports.CollapsibleContent=rk;exports.CollapsibleTrigger=nk;exports.Command=Xx;exports.CommandDialog=W2;exports.CommandEmpty=$2;exports.CommandGroup=z2;exports.CommandInput=V2;exports.CommandItem=Y2;exports.CommandList=H2;exports.CommandSeparator=X2;exports.CommandShortcut=Z2;exports.ComponentSwitch=Xr;exports.ContentWrapper=q2;exports.Default=ff;exports.Dialog=Gx;exports.DialogClose=G2;exports.DialogContent=Vx;exports.DialogDescription=zx;exports.DialogFooter=L2;exports.DialogHeader=Hx;exports.DialogOverlay=Wx;exports.DialogPortal=Lx;exports.DialogTitle=$x;exports.DialogTrigger=j2;exports.Drawer=PF;exports.DropdownMenu=bG;exports.Empty=vG;exports.EmptyContent=IG;exports.EmptyDescription=SG;exports.EmptyHeader=yG;exports.EmptyMedia=wG;exports.EmptyTitle=CG;exports.ErrorMessage=tC;exports.FieldDescription=nC;exports.Form=LG;exports.FormControl=$G;exports.FormDescription=zG;exports.FormField=WG;exports.FormItem=VG;exports.FormLabel=HG;exports.FormMessage=XG;exports.FormattedDate=J2;exports.HoverCard=rL;exports.Icon=oL;exports.Input=hC;exports.InputOTP=yL;exports.Kbd=xL;exports.KbdGroup=wL;exports.Label=tp;exports.LoadMore=CL;exports.NativeSelect=SL;exports.NativeSelectOptGroup=EL;exports.NativeSelectOption=IL;exports.Pagination=AL;exports.Popover=LL;exports.RadioGroup=QL;exports.ScrollArea=mW;exports.Select=JW;exports.SelectMulti=T3;exports.Separator=KS;exports.Sheet=QS;exports.SheetClose=F3;exports.SheetContent=eI;exports.SheetDescription=rI;exports.SheetFooter=G3;exports.SheetHeader=tI;exports.SheetTitle=nI;exports.SheetTrigger=k3;exports.Sidebar=h$;exports.SidebarContent=S$;exports.SidebarFooter=w$;exports.SidebarGroup=I$;exports.SidebarGroupAction=A$;exports.SidebarGroupContent=R$;exports.SidebarGroupLabel=E$;exports.SidebarHeader=x$;exports.SidebarInput=y$;exports.SidebarInset=v$;exports.SidebarMenu=P$;exports.SidebarMenuAction=M$;exports.SidebarMenuBadge=D$;exports.SidebarMenuButton=_$;exports.SidebarMenuItem=O$;exports.SidebarMenuSkeleton=N$;exports.SidebarMenuSub=k$;exports.SidebarMenuSubButton=B$;exports.SidebarMenuSubItem=F$;exports.SidebarProvider=m$;exports.SidebarRail=b$;exports.SidebarSeparator=C$;exports.SidebarTrigger=g$;exports.Skeleton=Dd;exports.Slider=r9;exports.Spinner=o9;exports.Switch=d9;exports.Table=C9;exports.TableBody=E9;exports.TableCaption=O9;exports.TableCell=P9;exports.TableFooter=T9;exports.TableHead=I9;exports.TableHeadRow=A9;exports.TableHeader=S9;exports.TableRow=R9;exports.TableWhatsApp=XI;exports.TableWhatsAppBody=UI;exports.TableWhatsAppCaption=QI;exports.TableWhatsAppCell=qI;exports.TableWhatsAppFooter=e1;exports.TableWhatsAppHead=ZI;exports.TableWhatsAppHeadRow=JI;exports.TableWhatsAppHeader=YI;exports.TableWhatsAppRow=KI;exports.Tabs=v9;exports.TabsContent=w9;exports.TabsList=y9;exports.TabsTrigger=x9;exports.Textarea=_9;exports.Tooltip=pI;exports.TooltipContent=hI;exports.TooltipProvider=vp;exports.TooltipTrigger=mI;exports.cn=D;
|
|
86
|
+
`]))),TX=function(e,n){var r=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return Ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},Op=function(e){var n=e.delay,r=e.offset;return we("span",{css:tv({animation:"".concat(AX," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},OX=function(e){var n=e.innerProps,r=e.isRtl,o=e.size,i=o===void 0?4:o,a=cr(e,bX);return we("div",Ee({},rt(Ce(Ce({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),we(Op,{delay:0,offset:r}),we(Op,{delay:160,offset:!0}),we(Op,{delay:320,offset:!r}))},NX=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return Ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},RX=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return we("div",Ee({ref:i},rt(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},_X=RX,PX=["data"],MX=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},DX=function(e){var n=e.children,r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return we("div",Ee({},rt(e,"group",{group:!0}),l),we(a,Ee({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:i,cx:r}),c),we("div",null,n))},kX=function(e,n){var r=e.theme,o=r.colors,i=r.spacing;return Ce({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},jX=function(e){var n=cR(e);n.data;var r=cr(n,PX);return we("div",Ee({},rt(e,"groupHeading",{"group-heading":!0}),r))},LX=DX,BX=["innerRef","isDisabled","isHidden","inputClassName"],FX=function(e,n){var r=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return Ce(Ce({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},GX),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},vR={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},GX={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vR)},$X=function(e){return Ce({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},vR)},WX=function(e){var n=e.cx,r=e.value,o=cR(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,c=cr(o,BX);return we("div",Ee({},rt(e,"input",{"input-container":!0}),{"data-value":r||""}),we("input",Ee({className:n({input:!0},l),ref:i,style:$X(s),disabled:a},c)))},VX=WX,HX=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},qX=function(e,n){var r=e.theme,o=r.borderRadius,i=r.colors,a=e.cropWithEllipsis;return Ce({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},zX=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=e.isFocused;return Ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yR=function(e){var n=e.children,r=e.innerProps;return we("div",r,n)},XX=yR,YX=yR;function UX(t){var e=t.children,n=t.innerProps;return we("div",Ee({role:"button"},n),e||we(nv,{size:14}))}var ZX=function(e){var n=e.children,r=e.components,o=e.data,i=e.innerProps,a=e.isDisabled,s=e.removeProps,l=e.selectProps,c=r.Container,u=r.Label,d=r.Remove;return we(c,{data:o,innerProps:Ce(Ce({},rt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},we(u,{data:o,innerProps:Ce({},rt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),we(d,{data:o,innerProps:Ce(Ce({},rt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},JX=ZX,KX=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return Ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},QX=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return we("div",Ee({},rt(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},e7=QX,t7=function(e,n){var r=e.theme,o=r.spacing,i=r.colors;return Ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},n7=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},rt(e,"placeholder",{placeholder:!0}),r),n)},r7=n7,o7=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return Ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},i7=function(e){var n=e.children,r=e.isDisabled,o=e.innerProps;return we("div",Ee({},rt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},a7=i7,s7={ClearIndicator:SX,Control:_X,DropdownIndicator:wX,DownChevron:gR,CrossIcon:nv,Group:LX,GroupHeading:jX,IndicatorsContainer:mX,IndicatorSeparator:IX,Input:VX,LoadingIndicator:OX,Menu:tX,MenuList:rX,MenuPortal:cX,LoadingMessage:sX,NoOptionsMessage:aX,MultiValue:JX,MultiValueContainer:XX,MultiValueLabel:YX,MultiValueRemove:UX,Option:e7,Placeholder:r7,SelectContainer:dX,SingleValue:a7,ValueContainer:hX},l7=function(e){return Ce(Ce({},s7),e.components)},Tw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function c7(t,e){return!!(t===e||Tw(t)&&Tw(e))}function u7(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!c7(t[n],e[n]))return!1;return!0}function d7(t,e){e===void 0&&(e=u7);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&e(o,n.lastArgs))return n.lastResult;var a=t.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}function f7(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var h7=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:f7},p7=function(e){return we("span",Ee({css:h7},e))},Ow=p7,m7={guidance:function(e){var n=e.isSearchable,r=e.isMulti,o=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,r=e.label,o=r===void 0?"":r,i=e.labels,a=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,o=e.options,i=e.label,a=i===void 0?"":i,s=e.selectValue,l=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,d=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,r),".");if(n==="menu"&&u){var f=l?" disabled":"",h="".concat(c?" selected":"").concat(f);return"".concat(a).concat(h,", ").concat(d(o,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},g7=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,w=l.options,C=l.screenReaderStatus,S=l.tabSelectsValue,E=l.isLoading,T=l["aria-label"],I=l["aria-live"],_=O.useMemo(function(){return Ce(Ce({},m7),d||{})},[d]),P=O.useMemo(function(){var j="";if(n&&_.onChange){var M=n.option,V=n.options,k=n.removedValue,H=n.removedValues,U=n.value,ee=function(K){return Array.isArray(K)?null:K},G=k||M||ee(U),X=G?f(G):"",Z=V||H||void 0,Y=Z?Z.map(f):[],ne=Ce({isDisabled:G&&m(G,s),label:X,labels:Y},n);j=_.onChange(ne)}return j},[n,_,m,s,f]),W=O.useMemo(function(){var j="",M=r||o,V=!!(r&&s&&s.includes(r));if(M&&_.onFocus){var k={focused:M,label:f(M),isDisabled:m(M,s),isSelected:V,options:i,context:M===r?"menu":"value",selectValue:s,isAppleDevice:u};j=_.onFocus(k)}return j},[r,o,f,m,_,i,s,u]),A=O.useMemo(function(){var j="";if(y&&w.length&&!E&&_.onFilter){var M=C({count:i.length});j=_.onFilter({inputValue:h,resultsMessage:M})}return j},[i,h,y,_,w,C,E]),D=n?.action==="initial-input-focus",N=O.useMemo(function(){var j="";if(_.guidance){var M=o?"value":y?"menu":"input";j=_.guidance({"aria-label":T,context:M,isDisabled:r&&m(r,s),isMulti:g,isSearchable:b,tabSelectsValue:S,isInitialFocus:D})}return j},[T,r,o,g,m,b,y,_,s,S,D]),F=we(O.Fragment,null,we("span",{id:"aria-selection"},P),we("span",{id:"aria-focused"},W),we("span",{id:"aria-results"},A),we("span",{id:"aria-guidance"},N));return we(O.Fragment,null,we(Ow,{id:c},D&&F),we(Ow,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!D&&F))},b7=g7,Hm=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],v7=new RegExp("["+Hm.map(function(t){return t.letters}).join("")+"]","g"),xR={};for(var Np=0;Np<Hm.length;Np++)for(var Rp=Hm[Np],_p=0;_p<Rp.letters.length;_p++)xR[Rp.letters[_p]]=Rp.base;var wR=function(e){return e.replace(v7,function(n){return xR[n]})},y7=d7(wR),Nw=function(e){return e.replace(/^\s+|\s+$/g,"")},x7=function(e){return"".concat(e.label," ").concat(e.value)},w7=function(e){return function(n,r){if(n.data.__isNew__)return!0;var o=Ce({ignoreCase:!0,ignoreAccents:!0,stringify:x7,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,c=o.matchFrom,u=l?Nw(r):r,d=l?Nw(s(n)):s(n);return i&&(u=u.toLowerCase(),d=d.toLowerCase()),a&&(u=y7(u),d=wR(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},C7=["innerRef"];function S7(t){var e=t.innerRef,n=cr(t,C7),r=X8(n,"onExited","in","enter","exit","appear");return we("input",Ee({ref:e},r,{css:tv({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var E7=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function I7(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,a=O.useRef(!1),s=O.useRef(!1),l=O.useRef(0),c=O.useRef(null),u=O.useCallback(function(b,y){if(c.current!==null){var w=c.current,C=w.scrollTop,S=w.scrollHeight,E=w.clientHeight,T=c.current,I=y>0,_=S-E-C,P=!1;_>y&&a.current&&(r&&r(b),a.current=!1),I&&s.current&&(i&&i(b),s.current=!1),I&&y>_?(n&&!a.current&&n(b),T.scrollTop=S,P=!0,a.current=!0):!I&&-y>C&&(o&&!s.current&&o(b),T.scrollTop=0,P=!0,s.current=!0),P&&E7(b)}},[n,r,o,i]),d=O.useCallback(function(b){u(b,b.deltaY)},[u]),f=O.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),h=O.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;u(b,y)},[u]),g=O.useCallback(function(b){if(b){var y=H8?{passive:!1}:!1;b.addEventListener("wheel",d,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",h,y)}},[h,f,d]),m=O.useCallback(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",h,!1))},[h,f,d]);return O.useEffect(function(){if(e){var b=c.current;return g(b),function(){m(b)}}},[e,g,m]),function(b){c.current=b}}var Rw=["boxSizing","height","overflow","paddingRight","position"],_w={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Pw(t){t.cancelable&&t.preventDefault()}function Mw(t){t.stopPropagation()}function Dw(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function kw(){return"ontouchstart"in window||navigator.maxTouchPoints}var jw=!!(typeof window<"u"&&window.document&&window.document.createElement),Ki=0,zo={capture:!1,passive:!1};function A7(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,o=O.useRef({}),i=O.useRef(null),a=O.useCallback(function(l){if(jw){var c=document.body,u=c&&c.style;if(r&&Rw.forEach(function(g){var m=u&&u[g];o.current[g]=m}),r&&Ki<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(_w).forEach(function(g){var m=_w[g];u&&(u[g]=m)}),u&&(u.paddingRight="".concat(h,"px"))}c&&kw()&&(c.addEventListener("touchmove",Pw,zo),l&&(l.addEventListener("touchstart",Dw,zo),l.addEventListener("touchmove",Mw,zo))),Ki+=1}},[r]),s=O.useCallback(function(l){if(jw){var c=document.body,u=c&&c.style;Ki=Math.max(Ki-1,0),r&&Ki<1&&Rw.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&kw()&&(c.removeEventListener("touchmove",Pw,zo),l&&(l.removeEventListener("touchstart",Dw,zo),l.removeEventListener("touchmove",Mw,zo)))}},[r]);return O.useEffect(function(){if(e){var l=i.current;return a(l),function(){s(l)}}},[e,a,s]),function(l){i.current=l}}function T7(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var O7=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},N7=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:T7};function R7(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,o=r===void 0?!0:r,i=t.onBottomArrive,a=t.onBottomLeave,s=t.onTopArrive,l=t.onTopLeave,c=I7({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=A7({isEnabled:n}),d=function(h){c(h),u(h)};return we(O.Fragment,null,n&&we("div",{onClick:O7,css:N7}),e(d))}function _7(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var P7=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:_7},M7=function(e){var n=e.name,r=e.onFocus;return we("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:P7,value:"",onChange:function(){}})},D7=M7;function rv(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function k7(){return rv(/^iPhone/i)}function CR(){return rv(/^Mac/i)}function j7(){return rv(/^iPad/i)||CR()&&navigator.maxTouchPoints>1}function L7(){return k7()||j7()}function B7(){return CR()||L7()}var F7=function(e){return e.label},SR=function(e){return e.label},ER=function(e){return e.value},G7=function(e){return!!e.isDisabled},$7={clearIndicator:CX,container:uX,control:NX,dropdownIndicator:xX,group:MX,groupHeading:kX,indicatorsContainer:pX,indicatorSeparator:EX,input:FX,loadingIndicator:TX,loadingMessage:iX,menu:K8,menuList:nX,menuPortal:lX,multiValue:HX,multiValueLabel:qX,multiValueRemove:zX,noOptionsMessage:oX,option:KX,placeholder:t7,singleValue:o7,valueContainer:fX},W7={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},V7=4,IR=4,H7=38,q7=IR*2,z7={baseUnit:IR,controlHeight:H7,menuGutter:q7},Pp={borderRadius:V7,colors:W7,spacing:z7},X7={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Iw(),captureMenuScroll:!Iw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:w7(),formatGroupLabel:F7,getOptionLabel:SR,getOptionValue:ER,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:G7,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!W8(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Lw(t,e,n,r){var o=OR(t,e,n),i=NR(t,e,n),a=TR(t,e),s=Yl(t,e);return{type:"option",data:e,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function ml(t,e){return t.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return Lw(t,a,e,s)}).filter(function(a){return Fw(t,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Lw(t,n,e,r);return Fw(t,i)?i:void 0}).filter(q8)}function AR(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,ri(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function Bw(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,ri(r.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function Y7(t,e){return AR(ml(t,e))}function Fw(t,e){var n=t.inputValue,r=n===void 0?"":n,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!_R(t)||!i)&&RR(t,{label:a,value:s,data:o},r)}function U7(t,e){var n=t.focusedValue,r=t.selectValue,o=r.indexOf(n);if(o>-1){var i=e.indexOf(n);if(i>-1)return n;if(o<e.length)return e[o]}return null}function Z7(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var Mp=function(e,n){var r,o=(r=e.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},TR=function(e,n){return e.getOptionLabel(n)},Yl=function(e,n){return e.getOptionValue(n)};function OR(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function NR(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=Yl(t,e);return n.some(function(o){return Yl(t,o)===r})}function RR(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var _R=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},J7=1,ov=(function(t){M6(n,t);var e=k6(n);function n(r){var o;if(_6(this,n),o=e.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(o.setState({inputIsHiddenAfterUpdate:!h}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,h=o.state.selectValue,g=d&&o.isOptionSelected(l,h),m=o.isOptionDisabled(l,h);if(g){var b=o.getOptionValue(l);o.setValue(h.filter(function(y){return o.getOptionValue(y)!==b}),"deselect-option",l)}else if(!m)d?o.setValue([].concat(ri(h),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(g){return o.getOptionValue(g)!==d}),h=ca(c,f,f[0]||null);o.onChange(h,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(ca(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=ca(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return Mp(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Bw(ml(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return L8.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return TR(o.props,l)},o.getOptionValue=function(l){return Yl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=$7[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return l7(o.props)},o.buildCategorizedOptions=function(){return ml(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return AR(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:Ce({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&eu(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),h=5;o.userIsDragging=d>h||f>h}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return _R(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,h=c.inputValue,g=c.isClearable,m=c.isDisabled,b=c.menuIsOpen,y=c.onKeyDown,w=c.tabSelectsValue,C=c.openMenuOnFocus,S=o.state,E=S.focusedOption,T=S.focusedValue,I=S.selectValue;if(!m&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;o.focusValue("previous");break;case"ArrowRight":if(!u||h)return;o.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(T)o.removeValue(T);else{if(!d)return;u?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!b||!w||!E||C&&o.isOptionSelected(E,I))return;o.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(b){if(!E||o.isComposing)return;o.selectOption(E);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:h}),o.onMenuClose()):g&&f&&o.clearValue();break;case" ":if(h)return;if(!b){o.openMenu("first");break}if(!E)return;o.selectOption(E);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++J7),o.state.selectValue=zl(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=Mp(i,a[s])}return o}return P6(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ew(this.menuListRef,this.focusedOptionRef),B7()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ew(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,u=-1;if(a.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),o==="up"?l=c>0?c-1:s.length-1:o==="down"?l=(c+1)%s.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Pp):Ce(Ce({},Pp),this.props.theme):Pp}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:h,options:g,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return OR(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return NR(this.props,o,i)}},{key:"filterOption",value:function(o,i){return RR(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,h=this.getComponents(),g=h.Input,m=this.state,b=m.inputIsHidden,y=m.ariaSelection,w=this.commonProps,C=s||this.getElementId("input"),S=Ce(Ce(Ce({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?y?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?v.createElement(g,Ee({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:i,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},S)):v.createElement(S7,Ee({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ql,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,d=i.Placeholder,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,b=h.isMulti,y=h.inputValue,w=h.placeholder,C=this.state,S=C.selectValue,E=C.focusedValue,T=C.isFocused;if(!this.hasValue()||!g)return y?null:v.createElement(d,Ee({},f,{key:"placeholder",isDisabled:m,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),w);if(b)return S.map(function(_,P){var W=_===E,A="".concat(o.getOptionLabel(_),"-").concat(o.getOptionValue(_));return v.createElement(a,Ee({},f,{components:{Container:s,Label:l,Remove:c},isFocused:W,isDisabled:m,key:A,index:P,removeProps:{onClick:function(){return o.removeValue(_)},onTouchEnd:function(){return o.removeValue(_)},onMouseDown:function(N){N.preventDefault()}},data:_}),o.formatOptionLabel(_,"value"))});if(y)return null;var I=S[0];return v.createElement(u,Ee({},f,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return v.createElement(a,Ee({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,h=i.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,w=b.inputValue,C=b.isLoading,S=b.loadingMessage,E=b.minMenuHeight,T=b.maxMenuHeight,I=b.menuIsOpen,_=b.menuPlacement,P=b.menuPosition,W=b.menuPortalTarget,A=b.menuShouldBlockScroll,D=b.menuShouldScrollIntoView,N=b.noOptionsMessage,F=b.onMenuScrollToTop,j=b.onMenuScrollToBottom;if(!I)return null;var M=function(X,Z){var Y=X.type,ne=X.data,z=X.isDisabled,K=X.isSelected,ae=X.label,ie=X.value,re=m===ne,q=z?void 0:function(){return o.onOptionHover(ne)},le=z?void 0:function(){return o.selectOption(ne)},$="".concat(o.getElementId("option"),"-").concat(Z),se={id:$,onClick:le,onMouseMove:q,onMouseOver:q,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:K};return v.createElement(h,Ee({},g,{innerProps:se,data:ne,isDisabled:z,isSelected:K,key:$,label:ae,type:Y,value:ie,isFocused:re,innerRef:re?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(X.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var X=G.data,Z=G.options,Y=G.index,ne="".concat(o.getElementId("group"),"-").concat(Y),z="".concat(ne,"-heading");return v.createElement(a,Ee({},g,{key:ne,data:X,options:Z,Heading:s,headingProps:{id:z,data:G.data},label:o.formatGroupLabel(G.data)}),G.options.map(function(K){return M(K,"".concat(Y,"-").concat(K.index))}))}else if(G.type==="option")return M(G,"".concat(G.index))});else if(C){var k=S({inputValue:w});if(k===null)return null;V=v.createElement(d,g,k)}else{var H=N({inputValue:w});if(H===null)return null;V=v.createElement(f,g,H)}var U={minMenuHeight:E,maxMenuHeight:T,menuPlacement:_,menuPosition:P,menuShouldScrollIntoView:D},ee=v.createElement(Q8,Ee({},g,U),function(G){var X=G.ref,Z=G.placerProps,Y=Z.placement,ne=Z.maxHeight;return v.createElement(l,Ee({},g,U,{innerRef:X,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:C,placement:Y}),v.createElement(R7,{captureEnabled:y,onTopArrive:F,onBottomArrive:j,lockEnabled:A},function(z){return v.createElement(c,Ee({},g,{innerRef:function(ae){o.getMenuListRef(ae),z(ae)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:C,maxHeight:ne,focusedOption:m}),V)}))});return W||P==="fixed"?v.createElement(u,Ee({},g,{appendTo:W,controlElement:this.controlRef,menuPlacement:_,menuPosition:P}),ee):ee}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return v.createElement(D7,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=d.map(function(m){return o.getOptionValue(m)}).join(a);return v.createElement("input",{name:c,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,b){return v.createElement("input",{key:"i-".concat(b),name:c,type:"hidden",value:o.getOptionValue(m)})}):v.createElement("input",{name:c,type:"hidden",value:""});return v.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return v.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,d=this.getFocusableOptions();return v.createElement(b7,Ee({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,h=c.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return v.createElement(s,Ee({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),v.createElement(i,Ee({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),v.createElement(l,Ee({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(a,Ee({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,h=o.options,g=o.value,m=o.menuIsOpen,b=o.inputValue,y=o.isMulti,w=zl(g),C={};if(a&&(g!==a.value||h!==a.options||m!==a.menuIsOpen||b!==a.inputValue)){var S=m?Y7(o,w):[],E=m?Bw(ml(o,w),"".concat(f,"-option")):[],T=s?U7(i,w):null,I=Z7(i,S),_=Mp(E,I);C={selectValue:w,focusedOption:I,focusedOptionId:_,focusableOptionsWithIds:E,focusedValue:T,clearFocusValueOnUpdate:!1}}var P=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},W=c,A=u&&d;return u&&!A&&(W={value:ca(y,w,w[0]||null),options:w,action:"initial-input-focus"},A=!d),c?.action==="initial-input-focus"&&(W=null),Ce(Ce(Ce({},C),P),{},{prevProps:o,ariaSelection:W,prevWasFocused:A})}}]),n})(O.Component);ov.defaultProps=X7;var K7=O.forwardRef(function(t,e){var n=ZN(t);return v.createElement(ov,Ee({ref:e},n))}),Q7=K7,eY=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Gw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(e).toLowerCase(),i=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return i===o||a===o},Dp={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,n,r,o){return!(!e||n.some(function(i){return Gw(e,i,o)})||r.some(function(i){return Gw(e,i,o)}))},getNewOptionData:function(e,n){return{label:n,value:e,__isNew__:!0}}};function tY(t){var e=t.allowCreateWhileLoading,n=e===void 0?!1:e,r=t.createOptionPosition,o=r===void 0?"last":r,i=t.formatCreateLabel,a=i===void 0?Dp.formatCreateLabel:i,s=t.isValidNewOption,l=s===void 0?Dp.isValidNewOption:s,c=t.getNewOptionData,u=c===void 0?Dp.getNewOptionData:c,d=t.onCreateOption,f=t.options,h=f===void 0?[]:f,g=t.onChange,m=cr(t,eY),b=m.getOptionValue,y=b===void 0?ER:b,w=m.getOptionLabel,C=w===void 0?SR:w,S=m.inputValue,E=m.isLoading,T=m.isMulti,I=m.value,_=m.name,P=O.useMemo(function(){return l(S,zl(I),h,{getOptionValue:y,getOptionLabel:C})?u(S,a(S)):void 0},[a,u,C,y,S,l,h,I]),W=O.useMemo(function(){return(n||!E)&&P?o==="first"?[P].concat(ri(h)):[].concat(ri(h),[P]):h},[n,o,E,P,h]),A=O.useCallback(function(D,N){if(N.action!=="select-option")return g(D,N);var F=Array.isArray(D)?D:[D];if(F[F.length-1]===P){if(d)d(S);else{var j=u(S,S),M={action:"create-option",name:_,option:j};g(ca(T,[].concat(ri(zl(I)),[j]),j),M)}return}g(D,N)},[u,S,T,_,P,d,g,I]);return Ce(Ce({},m),{},{options:W,onChange:A})}var nY=O.forwardRef(function(t,e){var n=ZN(t),r=tY(n);return v.createElement(ov,Ee({ref:e},r))}),rY=nY;const oY={control:({isFocused:t,isDisabled:e})=>L("min-h-10! w-full rounded-md! bg-segmentify-200 px-0! text-sm border border-border!",t&&!e&&to({variant:"isControlFocused"}),e&&to({variant:"isDisabled"})),option:({isFocused:t,isSelected:e,isDisabled:n})=>L(to({variant:"default"}),e&&to({variant:"isSelected"}),!e&&t&&to({variant:"isFocused"}),n&&to({variant:"isDisabled"})),multiValue:()=>L(to({variant:"multiSelected"})),multiValueLabel:()=>"text-primary!",multiValueRemove:()=>"text-primary!",placeholder:()=>"text-segmentify-600"};function iY({label:t,name:e,options:n,value:r,onChange:o,onInputChange:i,placeholder:a,isClearable:s=!0,isSearchable:l=!0,isMulti:c=!0,isDisabled:u,description:d,className:f,isCreatable:h}){const g={"data-test-id":e,name:e,options:n,value:r,onChange:o,onInputChange:i,isClearable:s,isSearchable:l,isMulti:c,isDisabled:u,placeholder:a,classNames:oY};return p.jsxs("article",{children:[t&&p.jsx(Ln,{className:"mb-2 block",children:t}),p.jsx("div",{className:L("field-select w-full select-wrapper rounded-md! text-sm",f),children:h?p.jsx(rY,{...g}):p.jsx(Q7,{...g})}),d&&p.jsx(Nc,{description:d})]})}function PR({...t}){return p.jsx(Ec,{"data-slot":"sheet",...t})}function aY({...t}){return p.jsx(rb,{"data-slot":"sheet-trigger",...t})}function sY({...t}){return p.jsx(Qa,{"data-slot":"sheet-close",...t})}function lY({...t}){return p.jsx(Ic,{"data-slot":"sheet-portal",...t})}function cY({className:t,...e}){return p.jsx(Ac,{"data-slot":"sheet-overlay",className:L("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function MR({className:t,children:e,side:n="right",...r}){return p.jsxs(lY,{children:[p.jsx(cY,{}),p.jsxs(Tc,{"data-slot":"sheet-content",className:L("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,p.jsxs(Qa,{"data-testid":"sheet-close-icon",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[p.jsx(xg,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function DR({className:t,...e}){return p.jsx("div",{"data-slot":"sheet-header",className:L("flex flex-col gap-1.5 p-4",t),...e})}function uY({className:t,...e}){return p.jsx("div",{"data-slot":"sheet-footer",className:L("mt-auto flex flex-col gap-2 p-4",t),...e})}function kR({className:t,...e}){return p.jsx(ob,{"data-slot":"sheet-title",className:L("text-foreground font-semibold",t),...e})}function jR({className:t,...e}){return p.jsx(ib,{"data-slot":"sheet-description",className:L("text-muted-foreground text-sm",t),...e})}const kp=768;function dY(){const[t,e]=v.useState();return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${kp-1}px)`),r=()=>{e(window.innerWidth<kp)};return n.addEventListener("change",r),e(window.innerWidth<kp),()=>n.removeEventListener("change",r)},[]),!!t}function qm({className:t,...e}){return p.jsx("div",{"data-slot":"skeleton",className:L("bg-accent animate-pulse rounded-md shrink-0",t),...e})}const LR=v.createContext(null);function tu(){const t=v.useContext(LR);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const fY="sidebar_state",hY=3600*24*7,pY="16rem",mY="18rem",gY="3rem",bY="b";function vY({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:o,children:i,...a}){const s=dY(),[l,c]=v.useState(!1),[u,d]=v.useState(t),f=e??u,h=v.useCallback(y=>{const w=typeof y=="function"?y(f):y;n?n(w):d(w),document.cookie=`${fY}=${w}; path=/; max-age=${hY}`},[n,f]),g=v.useCallback(()=>s?c(y=>!y):h(y=>!y),[s,h,c]);v.useEffect(()=>{const y=w=>{w.key===bY&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),g())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[g]);const m=f?"expanded":"collapsed",b=v.useMemo(()=>({state:m,open:f,setOpen:h,isMobile:s,openMobile:l,setOpenMobile:c,toggleSidebar:g}),[m,f,h,s,l,c,g]);return p.jsx(LR.Provider,{value:b,children:p.jsx($b,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":pY,"--sidebar-width-icon":gY,...o},className:L("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:i})})})}function yY({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:o,...i}){const{isMobile:a,state:s,openMobile:l,setOpenMobile:c}=tu();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:L("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...i,children:o}):a?p.jsx(PR,{open:l,onOpenChange:c,...i,children:p.jsxs(MR,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":mY},side:t,children:[p.jsxs(DR,{className:"sr-only",children:[p.jsx(kR,{children:"Sidebar"}),p.jsx(jR,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[p.jsx("div",{"data-slot":"sidebar-gap",className:L("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),p.jsx("div",{"data-slot":"sidebar-container",className:L("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function xY({className:t,onClick:e,...n}){const{toggleSidebar:r}=tu();return p.jsxs(nn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:L("size-7",t),onClick:o=>{e?.(o),r()},...n,children:[p.jsx(TM,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function wY({className:t,...e}){const{toggleSidebar:n}=tu();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:L("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...e})}function CY({className:t,...e}){return p.jsx("main",{"data-slot":"sidebar-inset",className:L("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),...e})}function SY({className:t,...e}){return p.jsx(jc,{"data-slot":"sidebar-input","data-sidebar":"input",className:L("bg-background h-8 w-full shadow-none",t),...e})}function EY({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:L("flex flex-col gap-2 p-2",t),...e})}function IY({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:L("flex flex-col gap-2 p-2",t),...e})}function AY({className:t,...e}){return p.jsx(XN,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:L("bg-sidebar-border mx-2 w-auto",t),...e})}function TY({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:L("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...e})}function OY({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:L("relative flex w-full min-w-0 flex-col p-2",t),...e})}function NY({className:t,asChild:e=!1,...n}){const r=e?rr:"div";return p.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:L("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...n})}function RY({className:t,asChild:e=!1,...n}){const r=e?rr:"button";return p.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:L("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",t),...n})}function _Y({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:L("w-full text-sm",t),...e})}function PY({className:t,...e}){return p.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:L("flex w-full min-w-0 flex-col gap-1",t),...e})}function MY({className:t,...e}){return p.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:L("group/menu-item relative",t),...e})}const DY=Ii("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function kY({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a}){const s=t?rr:"button",{isMobile:l,state:c}=tu(),u=p.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":e,className:L(DY({variant:n,size:r}),i),...a});return o?(typeof o=="string"&&(o={children:o}),p.jsxs(Wb,{children:[p.jsx(Vb,{asChild:!0,children:u}),p.jsx($c,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):u}function jY({className:t,asChild:e=!1,showOnHover:n=!1,...r}){const o=e?rr:"button";return p.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:L("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),...r})}function LY({className:t,...e}){return p.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:L("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...e})}function BY({className:t,showIcon:e=!1,...n}){const[r,o]=v.useState("80%");return v.useEffect(()=>{o(`${Math.floor(Math.random()*40)+50}%`)},[]),p.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:L("flex h-8 items-center gap-2 rounded-md px-2",t),...n,children:[e&&p.jsx(qm,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),p.jsx(qm,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function FY({className:t,...e}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:L("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...e})}function GY({className:t,...e}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:L("group/menu-sub-item relative",t),...e})}function $Y({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...o}){const i=t?rr:"a";return p.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":e,"data-active":n,className:L("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}var BR=["PageUp","PageDown"],FR=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GR={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Mi="Slider",[zm,WY,VY]=Wa(Mi),[$R]=xt(Mi,[VY]),[HY,nu]=$R(Mi),WR=v.forwardRef((t,e)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:h=!1,form:g,...m}=t,b=v.useRef(new Set),y=v.useRef(0),C=a==="horizontal"?qY:zY,[S=[],E]=Rt({prop:u,defaultProp:c,onChange:A=>{[...b.current][y.current]?.focus(),d(A)}}),T=v.useRef(S);function I(A){const D=JY(S,A);W(A,D)}function _(A){W(A,y.current)}function P(){const A=T.current[y.current];S[y.current]!==A&&f(S)}function W(A,D,{commit:N}={commit:!1}){const F=tU(i),j=nU(Math.round((A-r)/i)*i+r,F),M=Pa(j,[r,o]);E((V=[])=>{const k=UY(V,M,D);if(eU(k,l*i)){y.current=k.indexOf(M);const H=String(k)!==String(V);return H&&N&&f(k),H?k:V}else return V})}return p.jsx(HY,{scope:t.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:S,orientation:a,form:g,children:p.jsx(zm.Provider,{scope:t.__scopeSlider,children:p.jsx(zm.Slot,{scope:t.__scopeSlider,children:p.jsx(C,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:e,onPointerDown:oe(m.onPointerDown,()=>{s||(T.current=S)}),min:r,max:o,inverted:h,onSlideStart:s?void 0:I,onSlideMove:s?void 0:_,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&W(r,0,{commit:!0}),onEndKeyDown:()=>!s&&W(o,S.length-1,{commit:!0}),onStepKeyDown:({event:A,direction:D})=>{if(!s){const j=BR.includes(A.key)||A.shiftKey&&FR.includes(A.key)?10:1,M=y.current,V=S[M],k=i*j*D;W(V+k,M,{commit:!0})}}})})})})});WR.displayName=Mi;var[VR,HR]=$R(Mi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),qY=v.forwardRef((t,e)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=t,[d,f]=v.useState(null),h=Se(e,C=>f(C)),g=v.useRef(void 0),m=Wr(o),b=m==="ltr",y=b&&!i||!b&&i;function w(C){const S=g.current||d.getBoundingClientRect(),E=[0,S.width],I=iv(E,y?[n,r]:[r,n]);return g.current=S,I(C-S.left)}return p.jsx(VR,{scope:t.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:p.jsx(qR,{dir:m,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const S=w(C.clientX);a?.(S)},onSlideMove:C=>{const S=w(C.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:C=>{const E=GR[y?"from-left":"from-right"].includes(C.key);c?.({event:C,direction:E?-1:1})}})})}),zY=v.forwardRef((t,e)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=t,u=v.useRef(null),d=Se(e,u),f=v.useRef(void 0),h=!o;function g(m){const b=f.current||u.current.getBoundingClientRect(),y=[0,b.height],C=iv(y,h?[r,n]:[n,r]);return f.current=b,C(m-b.top)}return p.jsx(VR,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(qR,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const b=g(m.clientY);i?.(b)},onSlideMove:m=>{const b=g(m.clientY);a?.(b)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{const y=GR[h?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:y?-1:1})}})})}),qR=v.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=t,u=nu(Mi,n);return p.jsx(fe.span,{...c,ref:e,onKeyDown:oe(t.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):BR.concat(FR).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:oe(t.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:oe(t.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:oe(t.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),zR="SliderTrack",XR=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=nu(zR,n);return p.jsx(fe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:e})});XR.displayName=zR;var Xm="SliderRange",YR=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=nu(Xm,n),i=HR(Xm,n),a=v.useRef(null),s=Se(e,a),l=o.values.length,c=o.values.map(f=>JR(f,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return p.jsx(fe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...t.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});YR.displayName=Xm;var Ym="SliderThumb",UR=v.forwardRef((t,e)=>{const n=WY(t.__scopeSlider),[r,o]=v.useState(null),i=Se(e,s=>o(s)),a=v.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return p.jsx(XY,{...t,ref:i,index:a})}),XY=v.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:o,...i}=t,a=nu(Ym,n),s=HR(Ym,n),[l,c]=v.useState(null),u=Se(e,w=>c(w)),d=l?a.form||!!l.closest("form"):!0,f=Za(l),h=a.values[r],g=h===void 0?0:JR(h,a.min,a.max),m=ZY(r,a.values.length),b=f?.[s.size],y=b?KY(b,g,s.direction):0;return v.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[p.jsx(zm.ItemSlot,{scope:t.__scopeSlider,children:p.jsx(fe.span,{role:"slider","aria-label":t["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":h,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:u,style:h===void 0?{display:"none"}:t.style,onFocus:oe(t.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),d&&p.jsx(ZR,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:h},r)]})});UR.displayName=Ym;var YY="RadioBubbleInput",ZR=v.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(o,r),a=Ua(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&u){const d=new Event("input",{bubbles:!0});u.call(s,e),s.dispatchEvent(d)}},[a,e]),p.jsx(fe.input,{style:{display:"none"},...n,ref:i,defaultValue:e})});ZR.displayName=YY;function UY(t=[],e,n){const r=[...t];return r[n]=e,r.sort((o,i)=>o-i)}function JR(t,e,n){const i=100/(n-e)*(t-e);return Pa(i,[0,100])}function ZY(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function JY(t,e){if(t.length===1)return 0;const n=t.map(o=>Math.abs(o-e)),r=Math.min(...n);return n.indexOf(r)}function KY(t,e,n){const r=t/2,i=iv([0,50],[0,r]);return(r-i(e)*n)*n}function QY(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function eU(t,e){if(e>0){const n=QY(t);return Math.min(...n)>=e}return!0}function iv(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function tU(t){return(String(t).split(".")[1]||"").length}function nU(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var rU=WR,oU=XR,iU=YR,aU=UR;function sU({className:t,defaultValue:e,value:n,min:r=0,max:o=100,...i}){const a=v.useMemo(()=>Array.isArray(n)?n:Array.isArray(e)?e:[r,o],[n,e,r,o]);return p.jsxs(rU,{"data-slot":"slider",defaultValue:e,value:n,min:r,max:o,className:L("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",t),...i,children:[p.jsx(oU,{"data-slot":"slider-track",className:L("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:p.jsx(iU,{"data-slot":"slider-range",className:L("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(s,l)=>p.jsx(aU,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},l))]})}function lU({title:t,containerClassName:e,className:n,...r}){return p.jsx("section",{className:L(e),children:p.jsxs("div",{className:"flex gap-1 items-center",children:[p.jsx(hS,{role:"status","aria-label":"Loading",className:L("size-4 animate-spin",n),...r}),t&&p.jsx("span",{children:t})]})})}var ru="Switch",[cU]=xt(ru),[uU,dU]=cU(ru),KR=v.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=t,[f,h]=v.useState(null),g=Se(e,C=>h(C)),m=v.useRef(!1),b=f?u||!!f.closest("form"):!0,[y,w]=Rt({prop:o,defaultProp:i??!1,onChange:c,caller:ru});return p.jsxs(uU,{scope:n,checked:y,disabled:s,children:[p.jsx(fe.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":n_(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:oe(t.onClick,C=>{w(S=>!S),b&&(m.current=C.isPropagationStopped(),m.current||C.stopPropagation())})}),b&&p.jsx(t_,{control:f,bubbles:!m.current,name:r,value:l,checked:y,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});KR.displayName=ru;var QR="SwitchThumb",e_=v.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,o=dU(QR,n);return p.jsx(fe.span,{"data-state":n_(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:e})});e_.displayName=QR;var fU="SwitchBubbleInput",t_=v.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=Ua(n),c=Za(e);return v.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&h){const g=new Event("click",{bubbles:r});h.call(u,n),u.dispatchEvent(g)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});t_.displayName=fU;function n_(t){return t?"checked":"unchecked"}var hU=KR,pU=e_;function mU({className:t,...e}){return p.jsx(hU,{"data-slot":"switch",className:L("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(pU,{"data-slot":"switch-thumb",className:L("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var ou="Tabs",[gU]=xt(ou,[Ri]),r_=Ri(),[bU,av]=gU(ou),o_=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=t,u=Wr(s),[d,f]=Rt({prop:r,onChange:o,defaultProp:i??"",caller:ou});return p.jsx(bU,{scope:n,baseId:nt(),value:d,onValueChange:f,orientation:a,dir:u,activationMode:l,children:p.jsx(fe.div,{dir:u,"data-orientation":a,...c,ref:e})})});o_.displayName=ou;var i_="TabsList",a_=v.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...o}=t,i=av(i_,n),a=r_(n);return p.jsx(Nb,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(fe.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:e})})});a_.displayName=i_;var s_="TabsTrigger",l_=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=t,a=av(s_,n),s=r_(n),l=d_(a.baseId,r),c=f_(a.baseId,r),u=r===a.value;return p.jsx(Rb,{asChild:!0,...s,focusable:!o,active:u,children:p.jsx(fe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:e,onMouseDown:oe(t.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:oe(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:oe(t.onFocus,()=>{const d=a.activationMode!=="manual";!u&&!o&&d&&a.onValueChange(r)})})})});l_.displayName=s_;var c_="TabsContent",u_=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=t,s=av(c_,n),l=d_(s.baseId,r),c=f_(s.baseId,r),u=r===s.value,d=v.useRef(u);return v.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),p.jsx(ot,{present:o||u,children:({present:f})=>p.jsx(fe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});u_.displayName=c_;function d_(t,e){return`${t}-trigger-${e}`}function f_(t,e){return`${t}-content-${e}`}var vU=o_,yU=a_,xU=l_,wU=u_;function CU({className:t,...e}){return p.jsx(vU,{"data-slot":"tabs",className:L("flex flex-col gap-2",t),...e})}function SU({className:t,...e}){return p.jsx(yU,{"data-slot":"tabs-list",className:L("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...e})}function EU({className:t,...e}){return p.jsx(xU,{"data-slot":"tabs-trigger",className:L("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function IU({className:t,...e}){return p.jsx(wU,{"data-slot":"tabs-content",className:L("flex-1 outline-none",t),...e})}function AU({className:t,...e}){return p.jsx("div",{"data-slot":"table-container",className:"overflow-x-auto",children:p.jsx("table",{"data-slot":"table",className:L("data-grid min-w-full text-left text-sm font-light text-surface dark:text-white",t),...e})})}function TU({className:t,disableHover:e=!1,...n}){return p.jsx("thead",{"data-slot":"table-header",className:L("border-b border-neutral-200 font-medium bg-zinc-700 text-white",!e&&"hover:bg-zinc-700 hover:text-white",t),...n})}function OU({className:t,...e}){return p.jsx("th",{"data-slot":"table-head",className:L("p-2 whitespace-nowrap",t),...e})}function NU({className:t,...e}){return p.jsx("tbody",{"data-slot":"table-body",className:L("border-b bg-white [&_tr:last-child]:border-0",t),...e})}function RU({className:t,...e}){return p.jsx("tr",{className:L("border-b border-neutral-200",t),...e})}function _U({className:t,disableHover:e=!1,...n}){return p.jsx("tr",{"data-slot":"table-row",className:L("border-b border-neutral-200",!e&&"hover:bg-neutral-300",t),...n})}function PU({className:t,...e}){return p.jsx("td",{"data-slot":"table-cell",className:L("whitespace-nowrap p-2",t),...e})}function MU({className:t,...e}){return p.jsx("caption",{"data-slot":"table-caption",className:L("mt-4 text-sm text-muted-foreground",t),...e})}function DU({className:t,...e}){return p.jsx("tfoot",{"data-slot":"table-footer",className:L("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e})}function h_({className:t,...e}){return p.jsx("textarea",{"data-slot":"textarea",className:L("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...e})}const kU=({textAreaClassName:t,value:e,onChange:n,label:r,...o})=>p.jsxs("article",{children:[r&&p.jsx(Ln,{className:"mb-2 block",children:r}),p.jsx(h_,{className:L("w-full",t),value:e,onChange:n,...o})]});var p_=typeof global=="object"&&global&&global.Object===Object&&global,jU=typeof self=="object"&&self&&self.Object===Object&&self,ur=p_||jU||Function("return this")(),$r=ur.Symbol,m_=Object.prototype,LU=m_.hasOwnProperty,BU=m_.toString,Qi=$r?$r.toStringTag:void 0;function FU(t){var e=LU.call(t,Qi),n=t[Qi];try{t[Qi]=void 0;var r=!0}catch{}var o=BU.call(t);return r&&(e?t[Qi]=n:delete t[Qi]),o}var GU=Object.prototype,$U=GU.toString;function WU(t){return $U.call(t)}var VU="[object Null]",HU="[object Undefined]",$w=$r?$r.toStringTag:void 0;function Di(t){return t==null?t===void 0?HU:VU:$w&&$w in Object(t)?FU(t):WU(t)}function Er(t){return t!=null&&typeof t=="object"}var bo=Array.isArray;function Ur(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function g_(t){return t}var qU="[object AsyncFunction]",zU="[object Function]",XU="[object GeneratorFunction]",YU="[object Proxy]";function sv(t){if(!Ur(t))return!1;var e=Di(t);return e==zU||e==XU||e==qU||e==YU}var jp=ur["__core-js_shared__"],Ww=(function(){var t=/[^.]+$/.exec(jp&&jp.keys&&jp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function UU(t){return!!Ww&&Ww in t}var ZU=Function.prototype,JU=ZU.toString;function Oo(t){if(t!=null){try{return JU.call(t)}catch{}try{return t+""}catch{}}return""}var KU=/[\\^$.*+?()[\]{}|]/g,QU=/^\[object .+?Constructor\]$/,eZ=Function.prototype,tZ=Object.prototype,nZ=eZ.toString,rZ=tZ.hasOwnProperty,oZ=RegExp("^"+nZ.call(rZ).replace(KU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iZ(t){if(!Ur(t)||UU(t))return!1;var e=sv(t)?oZ:QU;return e.test(Oo(t))}function aZ(t,e){return t?.[e]}function No(t,e){var n=aZ(t,e);return iZ(n)?n:void 0}var Um=No(ur,"WeakMap"),Vw=Object.create,sZ=(function(){function t(){}return function(e){if(!Ur(e))return{};if(Vw)return Vw(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function lZ(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function cZ(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var uZ=800,dZ=16,fZ=Date.now;function hZ(t){var e=0,n=0;return function(){var r=fZ(),o=dZ-(r-n);if(n=r,o>0){if(++e>=uZ)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function pZ(t){return function(){return t}}var Ul=(function(){try{var t=No(Object,"defineProperty");return t({},"",{}),t}catch{}})(),mZ=Ul?function(t,e){return Ul(t,"toString",{configurable:!0,enumerable:!1,value:pZ(e),writable:!0})}:g_,gZ=hZ(mZ);function bZ(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var vZ=9007199254740991,yZ=/^(?:0|[1-9]\d*)$/;function b_(t,e){var n=typeof t;return e=e??vZ,!!e&&(n=="number"||n!="symbol"&&yZ.test(t))&&t>-1&&t%1==0&&t<e}function lv(t,e,n){e=="__proto__"&&Ul?Ul(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function hs(t,e){return t===e||t!==t&&e!==e}var xZ=Object.prototype,wZ=xZ.hasOwnProperty;function v_(t,e,n){var r=t[e];(!(wZ.call(t,e)&&hs(r,n))||n===void 0&&!(e in t))&&lv(t,e,n)}function CZ(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=void 0;l===void 0&&(l=t[s]),o?lv(n,s,l):v_(n,s,l)}return n}var Hw=Math.max;function SZ(t,e,n){return e=Hw(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Hw(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),lZ(t,this,s)}}function EZ(t,e){return gZ(SZ(t,e,g_),t+"")}var IZ=9007199254740991;function y_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=IZ}function iu(t){return t!=null&&y_(t.length)&&!sv(t)}function AZ(t,e,n){if(!Ur(n))return!1;var r=typeof e;return(r=="number"?iu(n)&&b_(e,n.length):r=="string"&&e in n)?hs(n[e],t):!1}function TZ(t){return EZ(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,a&&AZ(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var s=n[r];s&&t(e,s,r,i)}return e})}var OZ=Object.prototype;function cv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||OZ;return t===n}function NZ(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var RZ="[object Arguments]";function qw(t){return Er(t)&&Di(t)==RZ}var x_=Object.prototype,_Z=x_.hasOwnProperty,PZ=x_.propertyIsEnumerable,Zm=qw((function(){return arguments})())?qw:function(t){return Er(t)&&_Z.call(t,"callee")&&!PZ.call(t,"callee")};function MZ(){return!1}var w_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zw=w_&&typeof module=="object"&&module&&!module.nodeType&&module,DZ=zw&&zw.exports===w_,Xw=DZ?ur.Buffer:void 0,kZ=Xw?Xw.isBuffer:void 0,ja=kZ||MZ,jZ="[object Arguments]",LZ="[object Array]",BZ="[object Boolean]",FZ="[object Date]",GZ="[object Error]",$Z="[object Function]",WZ="[object Map]",VZ="[object Number]",HZ="[object Object]",qZ="[object RegExp]",zZ="[object Set]",XZ="[object String]",YZ="[object WeakMap]",UZ="[object ArrayBuffer]",ZZ="[object DataView]",JZ="[object Float32Array]",KZ="[object Float64Array]",QZ="[object Int8Array]",eJ="[object Int16Array]",tJ="[object Int32Array]",nJ="[object Uint8Array]",rJ="[object Uint8ClampedArray]",oJ="[object Uint16Array]",iJ="[object Uint32Array]",Ze={};Ze[JZ]=Ze[KZ]=Ze[QZ]=Ze[eJ]=Ze[tJ]=Ze[nJ]=Ze[rJ]=Ze[oJ]=Ze[iJ]=!0;Ze[jZ]=Ze[LZ]=Ze[UZ]=Ze[BZ]=Ze[ZZ]=Ze[FZ]=Ze[GZ]=Ze[$Z]=Ze[WZ]=Ze[VZ]=Ze[HZ]=Ze[qZ]=Ze[zZ]=Ze[XZ]=Ze[YZ]=!1;function aJ(t){return Er(t)&&y_(t.length)&&!!Ze[Di(t)]}function uv(t){return function(e){return t(e)}}var C_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=C_&&typeof module=="object"&&module&&!module.nodeType&&module,sJ=pa&&pa.exports===C_,Lp=sJ&&p_.process,yi=(function(){try{var t=pa&&pa.require&&pa.require("util").types;return t||Lp&&Lp.binding&&Lp.binding("util")}catch{}})(),Yw=yi&&yi.isTypedArray,dv=Yw?uv(Yw):aJ,lJ=Object.prototype,cJ=lJ.hasOwnProperty;function S_(t,e){var n=bo(t),r=!n&&Zm(t),o=!n&&!r&&ja(t),i=!n&&!r&&!o&&dv(t),a=n||r||o||i,s=a?NZ(t.length,String):[],l=s.length;for(var c in t)(e||cJ.call(t,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||b_(c,l)))&&s.push(c);return s}function E_(t,e){return function(n){return t(e(n))}}var uJ=E_(Object.keys,Object),dJ=Object.prototype,fJ=dJ.hasOwnProperty;function hJ(t){if(!cv(t))return uJ(t);var e=[];for(var n in Object(t))fJ.call(t,n)&&n!="constructor"&&e.push(n);return e}function pJ(t){return iu(t)?S_(t):hJ(t)}function mJ(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var gJ=Object.prototype,bJ=gJ.hasOwnProperty;function vJ(t){if(!Ur(t))return mJ(t);var e=cv(t),n=[];for(var r in t)r=="constructor"&&(e||!bJ.call(t,r))||n.push(r);return n}function I_(t){return iu(t)?S_(t,!0):vJ(t)}var La=No(Object,"create");function yJ(){this.__data__=La?La(null):{},this.size=0}function xJ(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var wJ="__lodash_hash_undefined__",CJ=Object.prototype,SJ=CJ.hasOwnProperty;function EJ(t){var e=this.__data__;if(La){var n=e[t];return n===wJ?void 0:n}return SJ.call(e,t)?e[t]:void 0}var IJ=Object.prototype,AJ=IJ.hasOwnProperty;function TJ(t){var e=this.__data__;return La?e[t]!==void 0:AJ.call(e,t)}var OJ="__lodash_hash_undefined__";function NJ(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=La&&e===void 0?OJ:e,this}function vo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}vo.prototype.clear=yJ;vo.prototype.delete=xJ;vo.prototype.get=EJ;vo.prototype.has=TJ;vo.prototype.set=NJ;function RJ(){this.__data__=[],this.size=0}function au(t,e){for(var n=t.length;n--;)if(hs(t[n][0],e))return n;return-1}var _J=Array.prototype,PJ=_J.splice;function MJ(t){var e=this.__data__,n=au(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():PJ.call(e,n,1),--this.size,!0}function DJ(t){var e=this.__data__,n=au(e,t);return n<0?void 0:e[n][1]}function kJ(t){return au(this.__data__,t)>-1}function jJ(t,e){var n=this.__data__,r=au(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ar(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ar.prototype.clear=RJ;Ar.prototype.delete=MJ;Ar.prototype.get=DJ;Ar.prototype.has=kJ;Ar.prototype.set=jJ;var Ba=No(ur,"Map");function LJ(){this.size=0,this.__data__={hash:new vo,map:new(Ba||Ar),string:new vo}}function BJ(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function su(t,e){var n=t.__data__;return BJ(e)?n[typeof e=="string"?"string":"hash"]:n.map}function FJ(t){var e=su(this,t).delete(t);return this.size-=e?1:0,e}function GJ(t){return su(this,t).get(t)}function $J(t){return su(this,t).has(t)}function WJ(t,e){var n=su(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ro(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ro.prototype.clear=LJ;Ro.prototype.delete=FJ;Ro.prototype.get=GJ;Ro.prototype.has=$J;Ro.prototype.set=WJ;function VJ(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var A_=E_(Object.getPrototypeOf,Object),HJ="[object Object]",qJ=Function.prototype,zJ=Object.prototype,T_=qJ.toString,XJ=zJ.hasOwnProperty,YJ=T_.call(Object);function UJ(t){if(!Er(t)||Di(t)!=HJ)return!1;var e=A_(t);if(e===null)return!0;var n=XJ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&T_.call(n)==YJ}function ZJ(){this.__data__=new Ar,this.size=0}function JJ(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function KJ(t){return this.__data__.get(t)}function QJ(t){return this.__data__.has(t)}var eK=200;function tK(t,e){var n=this.__data__;if(n instanceof Ar){var r=n.__data__;if(!Ba||r.length<eK-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ro(r)}return n.set(t,e),this.size=n.size,this}function Qn(t){var e=this.__data__=new Ar(t);this.size=e.size}Qn.prototype.clear=ZJ;Qn.prototype.delete=JJ;Qn.prototype.get=KJ;Qn.prototype.has=QJ;Qn.prototype.set=tK;var O_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uw=O_&&typeof module=="object"&&module&&!module.nodeType&&module,nK=Uw&&Uw.exports===O_,Zw=nK?ur.Buffer:void 0,Jw=Zw?Zw.allocUnsafe:void 0;function N_(t,e){if(e)return t.slice();var n=t.length,r=Jw?Jw(n):new t.constructor(n);return t.copy(r),r}function rK(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function oK(){return[]}var iK=Object.prototype,aK=iK.propertyIsEnumerable,Kw=Object.getOwnPropertySymbols,sK=Kw?function(t){return t==null?[]:(t=Object(t),rK(Kw(t),function(e){return aK.call(t,e)}))}:oK;function lK(t,e,n){var r=e(t);return bo(t)?r:VJ(r,n(t))}function Jm(t){return lK(t,pJ,sK)}var Km=No(ur,"DataView"),Qm=No(ur,"Promise"),eg=No(ur,"Set"),Qw="[object Map]",cK="[object Object]",eC="[object Promise]",tC="[object Set]",nC="[object WeakMap]",rC="[object DataView]",uK=Oo(Km),dK=Oo(Ba),fK=Oo(Qm),hK=Oo(eg),pK=Oo(Um),Sn=Di;(Km&&Sn(new Km(new ArrayBuffer(1)))!=rC||Ba&&Sn(new Ba)!=Qw||Qm&&Sn(Qm.resolve())!=eC||eg&&Sn(new eg)!=tC||Um&&Sn(new Um)!=nC)&&(Sn=function(t){var e=Di(t),n=e==cK?t.constructor:void 0,r=n?Oo(n):"";if(r)switch(r){case uK:return rC;case dK:return Qw;case fK:return eC;case hK:return tC;case pK:return nC}return e});var mK=Object.prototype,gK=mK.hasOwnProperty;function bK(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&gK.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Zl=ur.Uint8Array;function fv(t){var e=new t.constructor(t.byteLength);return new Zl(e).set(new Zl(t)),e}function vK(t,e){var n=fv(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var yK=/\w*$/;function xK(t){var e=new t.constructor(t.source,yK.exec(t));return e.lastIndex=t.lastIndex,e}var oC=$r?$r.prototype:void 0,iC=oC?oC.valueOf:void 0;function wK(t){return iC?Object(iC.call(t)):{}}function R_(t,e){var n=e?fv(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var CK="[object Boolean]",SK="[object Date]",EK="[object Map]",IK="[object Number]",AK="[object RegExp]",TK="[object Set]",OK="[object String]",NK="[object Symbol]",RK="[object ArrayBuffer]",_K="[object DataView]",PK="[object Float32Array]",MK="[object Float64Array]",DK="[object Int8Array]",kK="[object Int16Array]",jK="[object Int32Array]",LK="[object Uint8Array]",BK="[object Uint8ClampedArray]",FK="[object Uint16Array]",GK="[object Uint32Array]";function $K(t,e,n){var r=t.constructor;switch(e){case RK:return fv(t);case CK:case SK:return new r(+t);case _K:return vK(t);case PK:case MK:case DK:case kK:case jK:case LK:case BK:case FK:case GK:return R_(t,n);case EK:return new r;case IK:case OK:return new r(t);case AK:return xK(t);case TK:return new r;case NK:return wK(t)}}function __(t){return typeof t.constructor=="function"&&!cv(t)?sZ(A_(t)):{}}var WK="[object Map]";function VK(t){return Er(t)&&Sn(t)==WK}var aC=yi&&yi.isMap,HK=aC?uv(aC):VK,qK="[object Set]";function zK(t){return Er(t)&&Sn(t)==qK}var sC=yi&&yi.isSet,XK=sC?uv(sC):zK,YK=1,P_="[object Arguments]",UK="[object Array]",ZK="[object Boolean]",JK="[object Date]",KK="[object Error]",M_="[object Function]",QK="[object GeneratorFunction]",eQ="[object Map]",tQ="[object Number]",D_="[object Object]",nQ="[object RegExp]",rQ="[object Set]",oQ="[object String]",iQ="[object Symbol]",aQ="[object WeakMap]",sQ="[object ArrayBuffer]",lQ="[object DataView]",cQ="[object Float32Array]",uQ="[object Float64Array]",dQ="[object Int8Array]",fQ="[object Int16Array]",hQ="[object Int32Array]",pQ="[object Uint8Array]",mQ="[object Uint8ClampedArray]",gQ="[object Uint16Array]",bQ="[object Uint32Array]",Xe={};Xe[P_]=Xe[UK]=Xe[sQ]=Xe[lQ]=Xe[ZK]=Xe[JK]=Xe[cQ]=Xe[uQ]=Xe[dQ]=Xe[fQ]=Xe[hQ]=Xe[eQ]=Xe[tQ]=Xe[D_]=Xe[nQ]=Xe[rQ]=Xe[oQ]=Xe[iQ]=Xe[pQ]=Xe[mQ]=Xe[gQ]=Xe[bQ]=!0;Xe[KK]=Xe[M_]=Xe[aQ]=!1;function gl(t,e,n,r,o,i){var a,s=e&YK;if(a!==void 0)return a;if(!Ur(t))return t;var l=bo(t);if(l)a=bK(t);else{var c=Sn(t),u=c==M_||c==QK;if(ja(t))return N_(t,s);if(c==D_||c==P_||u&&!o)a=u?{}:__(t);else{if(!Xe[c])return o?t:{};a=$K(t,c,s)}}i||(i=new Qn);var d=i.get(t);if(d)return d;i.set(t,a),XK(t)?t.forEach(function(g){a.add(gl(g,e,n,g,t,i))}):HK(t)&&t.forEach(function(g,m){a.set(m,gl(g,e,n,m,t,i))});var f=Jm,h=l?void 0:f(t);return bZ(h||t,function(g,m){h&&(m=g,g=t[m]),v_(a,m,gl(g,e,n,m,t,i))}),a}var vQ=1,yQ=4;function ii(t){return gl(t,vQ|yQ)}var xQ="__lodash_hash_undefined__";function wQ(t){return this.__data__.set(t,xQ),this}function CQ(t){return this.__data__.has(t)}function Jl(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ro;++e<n;)this.add(t[e])}Jl.prototype.add=Jl.prototype.push=wQ;Jl.prototype.has=CQ;function SQ(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function EQ(t,e){return t.has(e)}var IQ=1,AQ=2;function k_(t,e,n,r,o,i){var a=n&IQ,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(t),u=i.get(e);if(c&&u)return c==e&&u==t;var d=-1,f=!0,h=n&AQ?new Jl:void 0;for(i.set(t,e),i.set(e,t);++d<s;){var g=t[d],m=e[d];if(r)var b=a?r(m,g,d,e,t,i):r(g,m,d,t,e,i);if(b!==void 0){if(b)continue;f=!1;break}if(h){if(!SQ(e,function(y,w){if(!EQ(h,w)&&(g===y||o(g,y,n,r,i)))return h.push(w)})){f=!1;break}}else if(!(g===m||o(g,m,n,r,i))){f=!1;break}}return i.delete(t),i.delete(e),f}function TQ(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function OQ(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var NQ=1,RQ=2,_Q="[object Boolean]",PQ="[object Date]",MQ="[object Error]",DQ="[object Map]",kQ="[object Number]",jQ="[object RegExp]",LQ="[object Set]",BQ="[object String]",FQ="[object Symbol]",GQ="[object ArrayBuffer]",$Q="[object DataView]",lC=$r?$r.prototype:void 0,Bp=lC?lC.valueOf:void 0;function WQ(t,e,n,r,o,i,a){switch(n){case $Q:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case GQ:return!(t.byteLength!=e.byteLength||!i(new Zl(t),new Zl(e)));case _Q:case PQ:case kQ:return hs(+t,+e);case MQ:return t.name==e.name&&t.message==e.message;case jQ:case BQ:return t==e+"";case DQ:var s=TQ;case LQ:var l=r&NQ;if(s||(s=OQ),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=RQ,a.set(t,e);var u=k_(s(t),s(e),r,o,i,a);return a.delete(t),u;case FQ:if(Bp)return Bp.call(t)==Bp.call(e)}return!1}var VQ=1,HQ=Object.prototype,qQ=HQ.hasOwnProperty;function zQ(t,e,n,r,o,i){var a=n&VQ,s=Jm(t),l=s.length,c=Jm(e),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in e:qQ.call(e,f)))return!1}var h=i.get(t),g=i.get(e);if(h&&g)return h==e&&g==t;var m=!0;i.set(t,e),i.set(e,t);for(var b=a;++d<l;){f=s[d];var y=t[f],w=e[f];if(r)var C=a?r(w,y,f,e,t,i):r(y,w,f,t,e,i);if(!(C===void 0?y===w||o(y,w,n,r,i):C)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var S=t.constructor,E=e.constructor;S!=E&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(m=!1)}return i.delete(t),i.delete(e),m}var XQ=1,cC="[object Arguments]",uC="[object Array]",Js="[object Object]",YQ=Object.prototype,dC=YQ.hasOwnProperty;function UQ(t,e,n,r,o,i){var a=bo(t),s=bo(e),l=a?uC:Sn(t),c=s?uC:Sn(e);l=l==cC?Js:l,c=c==cC?Js:c;var u=l==Js,d=c==Js,f=l==c;if(f&&ja(t)){if(!ja(e))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Qn),a||dv(t)?k_(t,e,n,r,o,i):WQ(t,e,l,n,r,o,i);if(!(n&XQ)){var h=u&&dC.call(t,"__wrapped__"),g=d&&dC.call(e,"__wrapped__");if(h||g){var m=h?t.value():t,b=g?e.value():e;return i||(i=new Qn),o(m,b,n,r,i)}}return f?(i||(i=new Qn),zQ(t,e,n,r,o,i)):!1}function j_(t,e,n,r,o){return t===e?!0:t==null||e==null||!Er(t)&&!Er(e)?t!==t&&e!==e:UQ(t,e,n,r,j_,o)}function ZQ(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return e}}var JQ=ZQ();function tg(t,e,n){(n!==void 0&&!hs(t[e],n)||n===void 0&&!(e in t))&&lv(t,e,n)}function KQ(t){return Er(t)&&iu(t)}function ng(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function QQ(t){return CZ(t,I_(t))}function eee(t,e,n,r,o,i,a){var s=ng(t,n),l=ng(e,n),c=a.get(l);if(c){tg(t,n,c);return}var u=i?i(s,l,n+"",t,e,a):void 0,d=u===void 0;if(d){var f=bo(l),h=!f&&ja(l),g=!f&&!h&&dv(l);u=l,f||h||g?bo(s)?u=s:KQ(s)?u=cZ(s):h?(d=!1,u=N_(l,!0)):g?(d=!1,u=R_(l,!0)):u=[]:UJ(l)||Zm(l)?(u=s,Zm(s)?u=QQ(s):(!Ur(s)||sv(s))&&(u=__(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),tg(t,n,u)}function L_(t,e,n,r,o){t!==e&&JQ(e,function(i,a){if(o||(o=new Qn),Ur(i))eee(t,e,a,n,L_,r,o);else{var s=r?r(ng(t,a),i,a+"",t,e,o):void 0;s===void 0&&(s=i),tg(t,a,s)}},I_)}function hv(t,e){return j_(t,e)}var jr=TZ(function(t,e,n){L_(t,e,n)}),be=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(be||{});class nr{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const o=be.TYPE&be.ATTRIBUTE;this.scope=r.scope!=null?r.scope&be.LEVEL|o:be.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class ai extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const B_=class rg{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const o=this.query(n);if(o==null)throw new ai(`Unable to create ${n} blot`);const i=o,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(e,a,r);return rg.blots.set(s.domNode,s),s}find(e,n=!1){return rg.find(e,n)}query(e,n=be.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&be.LEVEL&be.BLOCK?r=this.types.block:e&be.LEVEL&be.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(o=>(r=this.classes[o],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&be.LEVEL&r.scope&&n&be.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,o="attrName"in n;if(!r&&!o)throw new ai("Invalid definition");if(r&&n.blotName==="abstract")throw new ai("Cannot register abstract class");const i=r?n.blotName:o?n.attrName:void 0;return this.types[i]=n,o?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(a=>a.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(this.tags[a]==null||n.className==null)&&(this.tags[a]=n)}))),n})}};B_.blots=new WeakMap;let xi=B_;function fC(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class tee extends nr{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){fC(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(fC(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const Bn=tee;function Fp(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class nee extends nr{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[Fp(this.keyName)]=n,!0):!1}remove(e){e.style[Fp(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[Fp(this.keyName)];return this.canAdd(e,n)?n:""}}const Zr=nee;class ree{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=xi.find(this.domNode);if(e==null)return;const n=nr.keys(this.domNode),r=Bn.keys(this.domNode),o=Zr.keys(this.domNode);n.concat(r).concat(o).forEach(i=>{const a=e.scroll.query(i,be.ATTRIBUTE);a instanceof nr&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const lu=ree,F_=class{constructor(e,n){this.scroll=e,this.domNode=n,xi.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new ai("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),xi.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,o){const i=this.isolate(e,n);if(this.scroll.query(r,be.BLOT)!=null&&o)i.wrap(r,o);else if(this.scroll.query(r,be.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(r,o)}}insertAt(e,n,r){const o=r==null?this.scroll.create("text",n):this.scroll.create(n,r),i=this.split(e);this.parent.insertBefore(o,i||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new ai(`Cannot wrap ${e}`);return r.appendChild(this),r}};F_.blotName="abstract";let G_=F_;const $_=class extends G_{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};$_.scope=be.INLINE_BLOT;let oee=$_;const Lt=oee;class iee{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),o=0;for(;r;){if(r===e)return o;o+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let o=r();for(;o;){const i=o.length();if(e<i||n&&e===i&&(o.next==null||o.next.length()!==0))return[o,e];e-=i,o=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[o,i]=this.find(e);let a=e-i;const s=this.iterator(o);let l=s();for(;l&&a<e+n;){const c=l.length();e>a?r(l,e-a,Math.min(n,a+c-e)):r(l,0,Math.min(c,e+n-a)),a+=c,l=s()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let o=r();for(;o;)n=e(n,o),o=r();return n}}function hC(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(be.INLINE);return Array.from(t.childNodes).forEach(o=>{r.domNode.appendChild(o)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const W_=class Mr extends G_{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Mr.uiClass&&this.uiNode.classList.add(Mr.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new iee,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=hC(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof ai)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,o,i)=>{r.deleteAt(o,i)})}descendant(e,n=0){const[r,o]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,o]:r instanceof Mr?r.descendant(e,o):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let o=[],i=r;return this.children.forEachAt(n,r,(a,s,l)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof Mr&&(o=o.concat(a.descendants(e,s,i))),i-=l}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===be.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof Mr?n.unwrap():n.remove())})}formatAt(e,n,r,o){this.children.forEachAt(e,n,(i,a,s)=>{i.formatAt(a,s,r,o)})}insertAt(e,n,r){const[o,i]=this.children.find(e);if(o)o.insertAt(i,n,r);else{const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,o]=this.children.find(e,n),i=[[this,e]];return r instanceof Mr?i.concat(r.path(o,n)):(r!=null&&i.push([r,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof Mr&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(o,i,a)=>{const s=o.split(i,n);s!=null&&r.appendChild(s)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],o=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),o.push(...i.removedNodes))}),o.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const s=hC(i,this.scroll);(s.next!==a||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,a||void 0))}),this.enforceAllowedChildren()}};W_.uiClass="";let aee=W_;const Nn=aee;function see(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const Zo=class Jo extends Nn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Jo.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new lu(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Jo||(r=r.wrap(Jo.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,be.INLINE);if(r==null)return;r instanceof nr?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.formats()[r]!=null||this.scroll.query(r,be.ATTRIBUTE)?this.isolate(e,n).format(r,o):super.formatAt(e,n,r,o)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Jo&&r.prev===this&&see(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof Jo&&this.attributes.move(r),r}};Zo.allowedChildren=[Zo,Lt],Zo.blotName="inline",Zo.scope=be.INLINE_BLOT,Zo.tagName="SPAN";let lee=Zo;const pv=lee,Ko=class og extends Nn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(og.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new lu(this.domNode)}format(e,n){const r=this.scroll.query(e,be.BLOCK);r!=null&&(r instanceof nr?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(og.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.scroll.query(r,be.BLOCK)!=null?this.format(r,o):super.formatAt(e,n,r,o)}insertAt(e,n,r){if(r==null||this.scroll.query(n,be.INLINE)!=null)super.insertAt(e,n,r);else{const o=this.split(e);if(o!=null){const i=this.scroll.create(n,r);o.parent.insertBefore(i,o)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Ko.blotName="block",Ko.scope=be.BLOCK_BLOT,Ko.tagName="P",Ko.allowedChildren=[pv,Ko,Lt];let cee=Ko;const Fa=cee,ig=class extends Nn{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,o){super.formatAt(e,n,r,o),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};ig.blotName="container",ig.scope=be.BLOCK_BLOT;let uee=ig;const cu=uee;class dee extends Lt{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,o){e===0&&n===this.length()?this.format(r,o):super.formatAt(e,n,r,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const on=dee,fee={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},hee=100,Qo=class extends Nn{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,fee),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=be.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,o){this.update(),super.formatAt(e,n,r,o)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),c&&i(l.parent))},a=l=>{r.has(l.domNode)&&(l instanceof Nn&&l.children.forEach(a),r.delete(l.domNode),l.optimize(n))};let s=e;for(let l=0;s.length>0;l+=1){if(l>=hee)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(c=>{const u=this.find(c.target,!0);u!=null&&(u.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(d=>{const f=this.find(d,!1);i(f,!1),f instanceof Nn&&f.children.forEach(h=>{i(h,!1)})})):c.type==="attributes"&&i(u.prev)),i(u))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),o=s.slice();o.length>0;)e.push(o.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(o=>{const i=this.find(o.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(o),null):(r.set(i.domNode,[o]),i)}).forEach(o=>{o!=null&&o!==this&&r.has(o.domNode)&&o.update(r.get(o.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};Qo.blotName="scroll",Qo.defaultChild=Fa,Qo.allowedChildren=[Fa,cu],Qo.scope=be.BLOCK_BLOT,Qo.tagName="DIV";let pee=Qo;const mv=pee,ag=class V_ extends Lt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof V_&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ag.blotName="text",ag.scope=be.INLINE_BLOT;let mee=ag;const Kl=mee,gee=Object.freeze(Object.defineProperty({__proto__:null,Attributor:nr,AttributorStore:lu,BlockBlot:Fa,ClassAttributor:Bn,ContainerBlot:cu,EmbedBlot:on,InlineBlot:pv,LeafBlot:Lt,ParentBlot:Nn,Registry:xi,Scope:be,ScrollBlot:mv,StyleAttributor:Zr,TextBlot:Kl},Symbol.toStringTag,{value:"Module"}));var Ks={exports:{}},Gp,pC;function bee(){if(pC)return Gp;pC=1;var t=-1,e=1,n=0;function r(A,D,N,F,j){if(A===D)return A?[[n,A]]:[];if(N!=null){var M=P(A,D,N);if(M)return M}var V=s(A,D),k=A.substring(0,V);A=A.substring(V),D=D.substring(V),V=c(A,D);var H=A.substring(A.length-V);A=A.substring(0,A.length-V),D=D.substring(0,D.length-V);var U=o(A,D);return k&&U.unshift([n,k]),H&&U.push([n,H]),w(U,j),F&&d(U),U}function o(A,D){var N;if(!A)return[[e,D]];if(!D)return[[t,A]];var F=A.length>D.length?A:D,j=A.length>D.length?D:A,M=F.indexOf(j);if(M!==-1)return N=[[e,F.substring(0,M)],[n,j],[e,F.substring(M+j.length)]],A.length>D.length&&(N[0][0]=N[2][0]=t),N;if(j.length===1)return[[t,A],[e,D]];var V=u(A,D);if(V){var k=V[0],H=V[1],U=V[2],ee=V[3],G=V[4],X=r(k,U),Z=r(H,ee);return X.concat([[n,G]],Z)}return i(A,D)}function i(A,D){for(var N=A.length,F=D.length,j=Math.ceil((N+F)/2),M=j,V=2*j,k=new Array(V),H=new Array(V),U=0;U<V;U++)k[U]=-1,H[U]=-1;k[M+1]=0,H[M+1]=0;for(var ee=N-F,G=ee%2!==0,X=0,Z=0,Y=0,ne=0,z=0;z<j;z++){for(var K=-z+X;K<=z-Z;K+=2){var ae=M+K,ie;K===-z||K!==z&&k[ae-1]<k[ae+1]?ie=k[ae+1]:ie=k[ae-1]+1;for(var re=ie-K;ie<N&&re<F&&A.charAt(ie)===D.charAt(re);)ie++,re++;if(k[ae]=ie,ie>N)Z+=2;else if(re>F)X+=2;else if(G){var q=M+ee-K;if(q>=0&&q<V&&H[q]!==-1){var le=N-H[q];if(ie>=le)return a(A,D,ie,re)}}}for(var $=-z+Y;$<=z-ne;$+=2){var q=M+$,le;$===-z||$!==z&&H[q-1]<H[q+1]?le=H[q+1]:le=H[q-1]+1;for(var se=le-$;le<N&&se<F&&A.charAt(N-le-1)===D.charAt(F-se-1);)le++,se++;if(H[q]=le,le>N)ne+=2;else if(se>F)Y+=2;else if(!G){var ae=M+ee-$;if(ae>=0&&ae<V&&k[ae]!==-1){var ie=k[ae],re=M+ie-ae;if(le=N-le,ie>=le)return a(A,D,ie,re)}}}}return[[t,A],[e,D]]}function a(A,D,N,F){var j=A.substring(0,N),M=D.substring(0,F),V=A.substring(N),k=D.substring(F),H=r(j,M),U=r(V,k);return H.concat(U)}function s(A,D){if(!A||!D||A.charAt(0)!==D.charAt(0))return 0;for(var N=0,F=Math.min(A.length,D.length),j=F,M=0;N<j;)A.substring(M,j)==D.substring(M,j)?(N=j,M=N):F=j,j=Math.floor((F-N)/2+N);return C(A.charCodeAt(j-1))&&j--,j}function l(A,D){var N=A.length,F=D.length;if(N==0||F==0)return 0;N>F?A=A.substring(N-F):N<F&&(D=D.substring(0,N));var j=Math.min(N,F);if(A==D)return j;for(var M=0,V=1;;){var k=A.substring(j-V),H=D.indexOf(k);if(H==-1)return M;V+=H,(H==0||A.substring(j-V)==D.substring(0,V))&&(M=V,V++)}}function c(A,D){if(!A||!D||A.slice(-1)!==D.slice(-1))return 0;for(var N=0,F=Math.min(A.length,D.length),j=F,M=0;N<j;)A.substring(A.length-j,A.length-M)==D.substring(D.length-j,D.length-M)?(N=j,M=N):F=j,j=Math.floor((F-N)/2+N);return S(A.charCodeAt(A.length-j))&&j--,j}function u(A,D){var N=A.length>D.length?A:D,F=A.length>D.length?D:A;if(N.length<4||F.length*2<N.length)return null;function j(Z,Y,ne){for(var z=Z.substring(ne,ne+Math.floor(Z.length/4)),K=-1,ae="",ie,re,q,le;(K=Y.indexOf(z,K+1))!==-1;){var $=s(Z.substring(ne),Y.substring(K)),se=c(Z.substring(0,ne),Y.substring(0,K));ae.length<se+$&&(ae=Y.substring(K-se,K)+Y.substring(K,K+$),ie=Z.substring(0,ne-se),re=Z.substring(ne+$),q=Y.substring(0,K-se),le=Y.substring(K+$))}return ae.length*2>=Z.length?[ie,re,q,le,ae]:null}var M=j(N,F,Math.ceil(N.length/4)),V=j(N,F,Math.ceil(N.length/2)),k;if(!M&&!V)return null;V?M?k=M[4].length>V[4].length?M:V:k=V:k=M;var H,U,ee,G;A.length>D.length?(H=k[0],U=k[1],ee=k[2],G=k[3]):(ee=k[0],G=k[1],H=k[2],U=k[3]);var X=k[4];return[H,U,ee,G,X]}function d(A){for(var D=!1,N=[],F=0,j=null,M=0,V=0,k=0,H=0,U=0;M<A.length;)A[M][0]==n?(N[F++]=M,V=H,k=U,H=0,U=0,j=A[M][1]):(A[M][0]==e?H+=A[M][1].length:U+=A[M][1].length,j&&j.length<=Math.max(V,k)&&j.length<=Math.max(H,U)&&(A.splice(N[F-1],0,[t,j]),A[N[F-1]+1][0]=e,F--,F--,M=F>0?N[F-1]:-1,V=0,k=0,H=0,U=0,j=null,D=!0)),M++;for(D&&w(A),y(A),M=1;M<A.length;){if(A[M-1][0]==t&&A[M][0]==e){var ee=A[M-1][1],G=A[M][1],X=l(ee,G),Z=l(G,ee);X>=Z?(X>=ee.length/2||X>=G.length/2)&&(A.splice(M,0,[n,G.substring(0,X)]),A[M-1][1]=ee.substring(0,ee.length-X),A[M+1][1]=G.substring(X),M++):(Z>=ee.length/2||Z>=G.length/2)&&(A.splice(M,0,[n,ee.substring(0,Z)]),A[M-1][0]=e,A[M-1][1]=G.substring(0,G.length-Z),A[M+1][0]=t,A[M+1][1]=ee.substring(Z),M++),M++}M++}}var f=/[^a-zA-Z0-9]/,h=/\s/,g=/[\r\n]/,m=/\n\r?\n$/,b=/^\r?\n\r?\n/;function y(A){function D(Z,Y){if(!Z||!Y)return 6;var ne=Z.charAt(Z.length-1),z=Y.charAt(0),K=ne.match(f),ae=z.match(f),ie=K&&ne.match(h),re=ae&&z.match(h),q=ie&&ne.match(g),le=re&&z.match(g),$=q&&Z.match(m),se=le&&Y.match(b);return $||se?5:q||le?4:K&&!ie&&re?3:ie||re?2:K||ae?1:0}for(var N=1;N<A.length-1;){if(A[N-1][0]==n&&A[N+1][0]==n){var F=A[N-1][1],j=A[N][1],M=A[N+1][1],V=c(F,j);if(V){var k=j.substring(j.length-V);F=F.substring(0,F.length-V),j=k+j.substring(0,j.length-V),M=k+M}for(var H=F,U=j,ee=M,G=D(F,j)+D(j,M);j.charAt(0)===M.charAt(0);){F+=j.charAt(0),j=j.substring(1)+M.charAt(0),M=M.substring(1);var X=D(F,j)+D(j,M);X>=G&&(G=X,H=F,U=j,ee=M)}A[N-1][1]!=H&&(H?A[N-1][1]=H:(A.splice(N-1,1),N--),A[N][1]=U,ee?A[N+1][1]=ee:(A.splice(N+1,1),N--))}N++}}function w(A,D){A.push([n,""]);for(var N=0,F=0,j=0,M="",V="",k;N<A.length;){if(N<A.length-1&&!A[N][1]){A.splice(N,1);continue}switch(A[N][0]){case e:j++,V+=A[N][1],N++;break;case t:F++,M+=A[N][1],N++;break;case n:var H=N-j-F-1;if(D){if(H>=0&&T(A[H][1])){var U=A[H][1].slice(-1);if(A[H][1]=A[H][1].slice(0,-1),M=U+M,V=U+V,!A[H][1]){A.splice(H,1),N--;var ee=H-1;A[ee]&&A[ee][0]===e&&(j++,V=A[ee][1]+V,ee--),A[ee]&&A[ee][0]===t&&(F++,M=A[ee][1]+M,ee--),H=ee}}if(E(A[N][1])){var U=A[N][1].charAt(0);A[N][1]=A[N][1].slice(1),M+=U,V+=U}}if(N<A.length-1&&!A[N][1]){A.splice(N,1);break}if(M.length>0||V.length>0){M.length>0&&V.length>0&&(k=s(V,M),k!==0&&(H>=0?A[H][1]+=V.substring(0,k):(A.splice(0,0,[n,V.substring(0,k)]),N++),V=V.substring(k),M=M.substring(k)),k=c(V,M),k!==0&&(A[N][1]=V.substring(V.length-k)+A[N][1],V=V.substring(0,V.length-k),M=M.substring(0,M.length-k)));var G=j+F;M.length===0&&V.length===0?(A.splice(N-G,G),N=N-G):M.length===0?(A.splice(N-G,G,[e,V]),N=N-G+1):V.length===0?(A.splice(N-G,G,[t,M]),N=N-G+1):(A.splice(N-G,G,[t,M],[e,V]),N=N-G+2)}N!==0&&A[N-1][0]===n?(A[N-1][1]+=A[N][1],A.splice(N,1)):N++,j=0,F=0,M="",V="";break}}A[A.length-1][1]===""&&A.pop();var X=!1;for(N=1;N<A.length-1;)A[N-1][0]===n&&A[N+1][0]===n&&(A[N][1].substring(A[N][1].length-A[N-1][1].length)===A[N-1][1]?(A[N][1]=A[N-1][1]+A[N][1].substring(0,A[N][1].length-A[N-1][1].length),A[N+1][1]=A[N-1][1]+A[N+1][1],A.splice(N-1,1),X=!0):A[N][1].substring(0,A[N+1][1].length)==A[N+1][1]&&(A[N-1][1]+=A[N+1][1],A[N][1]=A[N][1].substring(A[N+1][1].length)+A[N+1][1],A.splice(N+1,1),X=!0)),N++;X&&w(A,D)}function C(A){return A>=55296&&A<=56319}function S(A){return A>=56320&&A<=57343}function E(A){return S(A.charCodeAt(0))}function T(A){return C(A.charCodeAt(A.length-1))}function I(A){for(var D=[],N=0;N<A.length;N++)A[N][1].length>0&&D.push(A[N]);return D}function _(A,D,N,F){return T(A)||E(F)?null:I([[n,A],[t,D],[e,N],[n,F]])}function P(A,D,N){var F=typeof N=="number"?{index:N,length:0}:N.oldRange,j=typeof N=="number"?null:N.newRange,M=A.length,V=D.length;if(F.length===0&&(j===null||j.length===0)){var k=F.index,H=A.slice(0,k),U=A.slice(k),ee=j?j.index:null;e:{var G=k+V-M;if(ee!==null&&ee!==G||G<0||G>V)break e;var X=D.slice(0,G),Z=D.slice(G);if(Z!==U)break e;var Y=Math.min(k,G),ne=H.slice(0,Y),z=X.slice(0,Y);if(ne!==z)break e;var K=H.slice(Y),ae=X.slice(Y);return _(ne,K,ae,U)}e:{if(ee!==null&&ee!==k)break e;var ie=k,X=D.slice(0,ie),Z=D.slice(ie);if(X!==H)break e;var re=Math.min(M-ie,V-ie),q=U.slice(U.length-re),le=Z.slice(Z.length-re);if(q!==le)break e;var K=U.slice(0,U.length-re),ae=Z.slice(0,Z.length-re);return _(H,K,ae,q)}}if(F.length>0&&j&&j.length===0)e:{var ne=A.slice(0,F.index),q=A.slice(F.index+F.length),Y=ne.length,re=q.length;if(V<Y+re)break e;var z=D.slice(0,Y),le=D.slice(V-re);if(ne!==z||q!==le)break e;var K=A.slice(Y,M-re),ae=D.slice(Y,V-re);return _(ne,K,ae,q)}return null}function W(A,D,N,F){return r(A,D,N,F,!0)}return W.INSERT=e,W.DELETE=t,W.EQUAL=n,Gp=W,Gp}var ua={exports:{}};ua.exports;var mC;function H_(){return mC||(mC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object GeneratorFunction]",f="[object Map]",h="[object Number]",g="[object Object]",m="[object Promise]",b="[object RegExp]",y="[object Set]",w="[object String]",C="[object Symbol]",S="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",_="[object Float64Array]",P="[object Int8Array]",W="[object Int16Array]",A="[object Int32Array]",D="[object Uint8Array]",N="[object Uint8ClampedArray]",F="[object Uint16Array]",j="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,k=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[i]=U[a]=U[E]=U[T]=U[s]=U[l]=U[I]=U[_]=U[P]=U[W]=U[A]=U[f]=U[h]=U[g]=U[b]=U[y]=U[w]=U[C]=U[D]=U[N]=U[F]=U[j]=!0,U[c]=U[u]=U[S]=!1;var ee=typeof hn=="object"&&hn&&hn.Object===Object&&hn,G=typeof self=="object"&&self&&self.Object===Object&&self,X=ee||G||Function("return this")(),Z=e&&!e.nodeType&&e,Y=Z&&!0&&t&&!t.nodeType&&t,ne=Y&&Y.exports===Z;function z(x,R){return x.set(R[0],R[1]),x}function K(x,R){return x.add(R),x}function ae(x,R){for(var B=-1,J=x?x.length:0;++B<J&&R(x[B],B,x)!==!1;);return x}function ie(x,R){for(var B=-1,J=R.length,Te=x.length;++B<J;)x[Te+B]=R[B];return x}function re(x,R,B,J){for(var Te=-1,ye=x?x.length:0;++Te<ye;)B=R(B,x[Te],Te,x);return B}function q(x,R){for(var B=-1,J=Array(x);++B<x;)J[B]=R(B);return J}function le(x,R){return x?.[R]}function $(x){var R=!1;if(x!=null&&typeof x.toString!="function")try{R=!!(x+"")}catch{}return R}function se(x){var R=-1,B=Array(x.size);return x.forEach(function(J,Te){B[++R]=[Te,J]}),B}function Ie(x,R){return function(B){return x(R(B))}}function Oe(x){var R=-1,B=Array(x.size);return x.forEach(function(J){B[++R]=J}),B}var Ve=Array.prototype,Ne=Function.prototype,_e=Object.prototype,it=X["__core-js_shared__"],Je=(function(){var x=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),Ye=Ne.toString,$e=_e.hasOwnProperty,Ue=_e.toString,wt=RegExp("^"+Ye.call($e).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=ne?X.Buffer:void 0,Ct=X.Symbol,_t=X.Uint8Array,qe=Ie(Object.getPrototypeOf,Object),Vt=Object.create,St=_e.propertyIsEnumerable,at=Ve.splice,Ft=Object.getOwnPropertySymbols,Ht=tt?tt.isBuffer:void 0,Gn=Ie(Object.keys,Object),Zt=vn(X,"DataView"),Jt=vn(X,"Map"),te=vn(X,"Promise"),de=vn(X,"Set"),ce=vn(X,"WeakMap"),ue=vn(Object,"create"),Ae=Gt(Zt),ve=Gt(Jt),ze=Gt(te),mt=Gt(de),st=Gt(ce),ct=Ct?Ct.prototype:void 0,It=ct?ct.valueOf:void 0;function ut(x){var R=-1,B=x?x.length:0;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function Or(){this.__data__=ue?ue(null):{}}function Do(x){return this.has(x)&&delete this.__data__[x]}function hu(x){var R=this.__data__;if(ue){var B=R[x];return B===r?void 0:B}return $e.call(R,x)?R[x]:void 0}function vs(x){var R=this.__data__;return ue?R[x]!==void 0:$e.call(R,x)}function ji(x,R){var B=this.__data__;return B[x]=ue&&R===void 0?r:R,this}ut.prototype.clear=Or,ut.prototype.delete=Do,ut.prototype.get=hu,ut.prototype.has=vs,ut.prototype.set=ji;function At(x){var R=-1,B=x?x.length:0;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function pu(){this.__data__=[]}function mu(x){var R=this.__data__,B=jo(R,x);if(B<0)return!1;var J=R.length-1;return B==J?R.pop():at.call(R,B,1),!0}function gu(x){var R=this.__data__,B=jo(R,x);return B<0?void 0:R[B][1]}function bu(x){return jo(this.__data__,x)>-1}function vu(x,R){var B=this.__data__,J=jo(B,x);return J<0?B.push([x,R]):B[J][1]=R,this}At.prototype.clear=pu,At.prototype.delete=mu,At.prototype.get=gu,At.prototype.has=bu,At.prototype.set=vu;function Pt(x){var R=-1,B=x?x.length:0;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function yu(){this.__data__={hash:new ut,map:new(Jt||At),string:new ut}}function xu(x){return Kr(this,x).delete(x)}function wu(x){return Kr(this,x).get(x)}function Cu(x){return Kr(this,x).has(x)}function Su(x,R){return Kr(this,x).set(x,R),this}Pt.prototype.clear=yu,Pt.prototype.delete=xu,Pt.prototype.get=wu,Pt.prototype.has=Cu,Pt.prototype.set=Su;function qt(x){this.__data__=new At(x)}function Eu(){this.__data__=new At}function Iu(x){return this.__data__.delete(x)}function Au(x){return this.__data__.get(x)}function Tu(x){return this.__data__.has(x)}function Ou(x,R){var B=this.__data__;if(B instanceof At){var J=B.__data__;if(!Jt||J.length<n-1)return J.push([x,R]),this;B=this.__data__=new Pt(J)}return B.set(x,R),this}qt.prototype.clear=Eu,qt.prototype.delete=Iu,qt.prototype.get=Au,qt.prototype.has=Tu,qt.prototype.set=Ou;function ko(x,R){var B=Gi(x)||Bo(x)?q(x.length,String):[],J=B.length,Te=!!J;for(var ye in x)$e.call(x,ye)&&!(Te&&(ye=="length"||Wu(ye,J)))&&B.push(ye);return B}function ys(x,R,B){var J=x[R];(!($e.call(x,R)&&Es(J,B))||B===void 0&&!(R in x))&&(x[R]=B)}function jo(x,R){for(var B=x.length;B--;)if(Es(x[B][0],R))return B;return-1}function $n(x,R){return x&&Fi(R,Wi(R),x)}function Li(x,R,B,J,Te,ye,Me){var Pe;if(J&&(Pe=ye?J(x,Te,ye,Me):J(x)),Pe!==void 0)return Pe;if(!Vn(x))return x;var dt=Gi(x);if(dt){if(Pe=Gu(x),!R)return Lu(x,Pe)}else{var je=hr(x),Mt=je==u||je==d;if(Is(x))return Lo(x,R);if(je==g||je==i||Mt&&!ye){if($(x))return ye?x:{};if(Pe=Wn(Mt?{}:x),!R)return Bu(x,$n(Pe,x))}else{if(!U[je])return ye?x:{};Pe=$u(x,je,Li,R)}}Me||(Me=new qt);var zt=Me.get(x);if(zt)return zt;if(Me.set(x,Pe),!dt)var gt=B?Fu(x):Wi(x);return ae(gt||x,function(Dt,Tt){gt&&(Tt=Dt,Dt=x[Tt]),ys(Pe,Tt,Li(Dt,R,B,J,Tt,x,Me))}),Pe}function Nu(x){return Vn(x)?Vt(x):{}}function Ru(x,R,B){var J=R(x);return Gi(x)?J:ie(J,B(x))}function _u(x){return Ue.call(x)}function Pu(x){if(!Vn(x)||Hu(x))return!1;var R=$i(x)||$(x)?wt:k;return R.test(Gt(x))}function Mu(x){if(!Cs(x))return Gn(x);var R=[];for(var B in Object(x))$e.call(x,B)&&B!="constructor"&&R.push(B);return R}function Lo(x,R){if(R)return x.slice();var B=new x.constructor(x.length);return x.copy(B),B}function Bi(x){var R=new x.constructor(x.byteLength);return new _t(R).set(new _t(x)),R}function Jr(x,R){var B=R?Bi(x.buffer):x.buffer;return new x.constructor(B,x.byteOffset,x.byteLength)}function xs(x,R,B){var J=R?B(se(x),!0):se(x);return re(J,z,new x.constructor)}function ws(x){var R=new x.constructor(x.source,V.exec(x));return R.lastIndex=x.lastIndex,R}function Du(x,R,B){var J=R?B(Oe(x),!0):Oe(x);return re(J,K,new x.constructor)}function ku(x){return It?Object(It.call(x)):{}}function ju(x,R){var B=R?Bi(x.buffer):x.buffer;return new x.constructor(B,x.byteOffset,x.length)}function Lu(x,R){var B=-1,J=x.length;for(R||(R=Array(J));++B<J;)R[B]=x[B];return R}function Fi(x,R,B,J){B||(B={});for(var Te=-1,ye=R.length;++Te<ye;){var Me=R[Te],Pe=void 0;ys(B,Me,Pe===void 0?x[Me]:Pe)}return B}function Bu(x,R){return Fi(x,fr(x),R)}function Fu(x){return Ru(x,Wi,fr)}function Kr(x,R){var B=x.__data__;return Vu(R)?B[typeof R=="string"?"string":"hash"]:B.map}function vn(x,R){var B=le(x,R);return Pu(B)?B:void 0}var fr=Ft?Ie(Ft,Object):zu,hr=_u;(Zt&&hr(new Zt(new ArrayBuffer(1)))!=T||Jt&&hr(new Jt)!=f||te&&hr(te.resolve())!=m||de&&hr(new de)!=y||ce&&hr(new ce)!=S)&&(hr=function(x){var R=Ue.call(x),B=R==g?x.constructor:void 0,J=B?Gt(B):void 0;if(J)switch(J){case Ae:return T;case ve:return f;case ze:return m;case mt:return y;case st:return S}return R});function Gu(x){var R=x.length,B=x.constructor(R);return R&&typeof x[0]=="string"&&$e.call(x,"index")&&(B.index=x.index,B.input=x.input),B}function Wn(x){return typeof x.constructor=="function"&&!Cs(x)?Nu(qe(x)):{}}function $u(x,R,B,J){var Te=x.constructor;switch(R){case E:return Bi(x);case s:case l:return new Te(+x);case T:return Jr(x,J);case I:case _:case P:case W:case A:case D:case N:case F:case j:return ju(x,J);case f:return xs(x,J,B);case h:case w:return new Te(x);case b:return ws(x);case y:return Du(x,J,B);case C:return ku(x)}}function Wu(x,R){return R=R??o,!!R&&(typeof x=="number"||H.test(x))&&x>-1&&x%1==0&&x<R}function Vu(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function Hu(x){return!!Je&&Je in x}function Cs(x){var R=x&&x.constructor,B=typeof R=="function"&&R.prototype||_e;return x===B}function Gt(x){if(x!=null){try{return Ye.call(x)}catch{}try{return x+""}catch{}}return""}function Ss(x){return Li(x,!0,!0)}function Es(x,R){return x===R||x!==x&&R!==R}function Bo(x){return qu(x)&&$e.call(x,"callee")&&(!St.call(x,"callee")||Ue.call(x)==i)}var Gi=Array.isArray;function Fo(x){return x!=null&&As(x.length)&&!$i(x)}function qu(x){return Ts(x)&&Fo(x)}var Is=Ht||Xu;function $i(x){var R=Vn(x)?Ue.call(x):"";return R==u||R==d}function As(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=o}function Vn(x){var R=typeof x;return!!x&&(R=="object"||R=="function")}function Ts(x){return!!x&&typeof x=="object"}function Wi(x){return Fo(x)?ko(x):Mu(x)}function zu(){return[]}function Xu(){return!1}t.exports=Ss})(ua,ua.exports)),ua.exports}var da={exports:{}};da.exports;var gC;function q_(){return gC||(gC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",m="[object Map]",b="[object Number]",y="[object Null]",w="[object Object]",C="[object Promise]",S="[object Proxy]",E="[object RegExp]",T="[object Set]",I="[object String]",_="[object Symbol]",P="[object Undefined]",W="[object WeakMap]",A="[object ArrayBuffer]",D="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",j="[object Int8Array]",M="[object Int16Array]",V="[object Int32Array]",k="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,Y={};Y[N]=Y[F]=Y[j]=Y[M]=Y[V]=Y[k]=Y[H]=Y[U]=Y[ee]=!0,Y[s]=Y[l]=Y[A]=Y[u]=Y[D]=Y[d]=Y[f]=Y[h]=Y[m]=Y[b]=Y[w]=Y[E]=Y[T]=Y[I]=Y[W]=!1;var ne=typeof hn=="object"&&hn&&hn.Object===Object&&hn,z=typeof self=="object"&&self&&self.Object===Object&&self,K=ne||z||Function("return this")(),ae=e&&!e.nodeType&&e,ie=ae&&!0&&t&&!t.nodeType&&t,re=ie&&ie.exports===ae,q=re&&ne.process,le=(function(){try{return q&&q.binding&&q.binding("util")}catch{}})(),$=le&&le.isTypedArray;function se(x,R){for(var B=-1,J=x==null?0:x.length,Te=0,ye=[];++B<J;){var Me=x[B];R(Me,B,x)&&(ye[Te++]=Me)}return ye}function Ie(x,R){for(var B=-1,J=R.length,Te=x.length;++B<J;)x[Te+B]=R[B];return x}function Oe(x,R){for(var B=-1,J=x==null?0:x.length;++B<J;)if(R(x[B],B,x))return!0;return!1}function Ve(x,R){for(var B=-1,J=Array(x);++B<x;)J[B]=R(B);return J}function Ne(x){return function(R){return x(R)}}function _e(x,R){return x.has(R)}function it(x,R){return x?.[R]}function Je(x){var R=-1,B=Array(x.size);return x.forEach(function(J,Te){B[++R]=[Te,J]}),B}function Ye(x,R){return function(B){return x(R(B))}}function $e(x){var R=-1,B=Array(x.size);return x.forEach(function(J){B[++R]=J}),B}var Ue=Array.prototype,wt=Function.prototype,tt=Object.prototype,Ct=K["__core-js_shared__"],_t=wt.toString,qe=tt.hasOwnProperty,Vt=(function(){var x=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),St=tt.toString,at=RegExp("^"+_t.call(qe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=re?K.Buffer:void 0,Ht=K.Symbol,Gn=K.Uint8Array,Zt=tt.propertyIsEnumerable,Jt=Ue.splice,te=Ht?Ht.toStringTag:void 0,de=Object.getOwnPropertySymbols,ce=Ft?Ft.isBuffer:void 0,ue=Ye(Object.keys,Object),Ae=fr(K,"DataView"),ve=fr(K,"Map"),ze=fr(K,"Promise"),mt=fr(K,"Set"),st=fr(K,"WeakMap"),ct=fr(Object,"create"),It=Gt(Ae),ut=Gt(ve),Or=Gt(ze),Do=Gt(mt),hu=Gt(st),vs=Ht?Ht.prototype:void 0,ji=vs?vs.valueOf:void 0;function At(x){var R=-1,B=x==null?0:x.length;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function pu(){this.__data__=ct?ct(null):{},this.size=0}function mu(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}function gu(x){var R=this.__data__;if(ct){var B=R[x];return B===r?void 0:B}return qe.call(R,x)?R[x]:void 0}function bu(x){var R=this.__data__;return ct?R[x]!==void 0:qe.call(R,x)}function vu(x,R){var B=this.__data__;return this.size+=this.has(x)?0:1,B[x]=ct&&R===void 0?r:R,this}At.prototype.clear=pu,At.prototype.delete=mu,At.prototype.get=gu,At.prototype.has=bu,At.prototype.set=vu;function Pt(x){var R=-1,B=x==null?0:x.length;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function yu(){this.__data__=[],this.size=0}function xu(x){var R=this.__data__,B=Lo(R,x);if(B<0)return!1;var J=R.length-1;return B==J?R.pop():Jt.call(R,B,1),--this.size,!0}function wu(x){var R=this.__data__,B=Lo(R,x);return B<0?void 0:R[B][1]}function Cu(x){return Lo(this.__data__,x)>-1}function Su(x,R){var B=this.__data__,J=Lo(B,x);return J<0?(++this.size,B.push([x,R])):B[J][1]=R,this}Pt.prototype.clear=yu,Pt.prototype.delete=xu,Pt.prototype.get=wu,Pt.prototype.has=Cu,Pt.prototype.set=Su;function qt(x){var R=-1,B=x==null?0:x.length;for(this.clear();++R<B;){var J=x[R];this.set(J[0],J[1])}}function Eu(){this.size=0,this.__data__={hash:new At,map:new(ve||Pt),string:new At}}function Iu(x){var R=vn(this,x).delete(x);return this.size-=R?1:0,R}function Au(x){return vn(this,x).get(x)}function Tu(x){return vn(this,x).has(x)}function Ou(x,R){var B=vn(this,x),J=B.size;return B.set(x,R),this.size+=B.size==J?0:1,this}qt.prototype.clear=Eu,qt.prototype.delete=Iu,qt.prototype.get=Au,qt.prototype.has=Tu,qt.prototype.set=Ou;function ko(x){var R=-1,B=x==null?0:x.length;for(this.__data__=new qt;++R<B;)this.add(x[R])}function ys(x){return this.__data__.set(x,r),this}function jo(x){return this.__data__.has(x)}ko.prototype.add=ko.prototype.push=ys,ko.prototype.has=jo;function $n(x){var R=this.__data__=new Pt(x);this.size=R.size}function Li(){this.__data__=new Pt,this.size=0}function Nu(x){var R=this.__data__,B=R.delete(x);return this.size=R.size,B}function Ru(x){return this.__data__.get(x)}function _u(x){return this.__data__.has(x)}function Pu(x,R){var B=this.__data__;if(B instanceof Pt){var J=B.__data__;if(!ve||J.length<n-1)return J.push([x,R]),this.size=++B.size,this;B=this.__data__=new qt(J)}return B.set(x,R),this.size=B.size,this}$n.prototype.clear=Li,$n.prototype.delete=Nu,$n.prototype.get=Ru,$n.prototype.has=_u,$n.prototype.set=Pu;function Mu(x,R){var B=Bo(x),J=!B&&Es(x),Te=!B&&!J&&Fo(x),ye=!B&&!J&&!Te&&Ts(x),Me=B||J||Te||ye,Pe=Me?Ve(x.length,String):[],dt=Pe.length;for(var je in x)qe.call(x,je)&&!(Me&&(je=="length"||Te&&(je=="offset"||je=="parent")||ye&&(je=="buffer"||je=="byteLength"||je=="byteOffset")||$u(je,dt)))&&Pe.push(je);return Pe}function Lo(x,R){for(var B=x.length;B--;)if(Ss(x[B][0],R))return B;return-1}function Bi(x,R,B){var J=R(x);return Bo(x)?J:Ie(J,B(x))}function Jr(x){return x==null?x===void 0?P:y:te&&te in Object(x)?hr(x):Cs(x)}function xs(x){return Vn(x)&&Jr(x)==s}function ws(x,R,B,J,Te){return x===R?!0:x==null||R==null||!Vn(x)&&!Vn(R)?x!==x&&R!==R:Du(x,R,B,J,ws,Te)}function Du(x,R,B,J,Te,ye){var Me=Bo(x),Pe=Bo(R),dt=Me?l:Wn(x),je=Pe?l:Wn(R);dt=dt==s?w:dt,je=je==s?w:je;var Mt=dt==w,zt=je==w,gt=dt==je;if(gt&&Fo(x)){if(!Fo(R))return!1;Me=!0,Mt=!1}if(gt&&!Mt)return ye||(ye=new $n),Me||Ts(x)?Fi(x,R,B,J,Te,ye):Bu(x,R,dt,B,J,Te,ye);if(!(B&o)){var Dt=Mt&&qe.call(x,"__wrapped__"),Tt=zt&&qe.call(R,"__wrapped__");if(Dt||Tt){var Nr=Dt?x.value():x,pr=Tt?R.value():R;return ye||(ye=new $n),Te(Nr,pr,B,J,ye)}}return gt?(ye||(ye=new $n),Fu(x,R,B,J,Te,ye)):!1}function ku(x){if(!As(x)||Vu(x))return!1;var R=Is(x)?at:X;return R.test(Gt(x))}function ju(x){return Vn(x)&&$i(x.length)&&!!Y[Jr(x)]}function Lu(x){if(!Hu(x))return ue(x);var R=[];for(var B in Object(x))qe.call(x,B)&&B!="constructor"&&R.push(B);return R}function Fi(x,R,B,J,Te,ye){var Me=B&o,Pe=x.length,dt=R.length;if(Pe!=dt&&!(Me&&dt>Pe))return!1;var je=ye.get(x);if(je&&ye.get(R))return je==R;var Mt=-1,zt=!0,gt=B&i?new ko:void 0;for(ye.set(x,R),ye.set(R,x);++Mt<Pe;){var Dt=x[Mt],Tt=R[Mt];if(J)var Nr=Me?J(Tt,Dt,Mt,R,x,ye):J(Dt,Tt,Mt,x,R,ye);if(Nr!==void 0){if(Nr)continue;zt=!1;break}if(gt){if(!Oe(R,function(pr,Qr){if(!_e(gt,Qr)&&(Dt===pr||Te(Dt,pr,B,J,ye)))return gt.push(Qr)})){zt=!1;break}}else if(!(Dt===Tt||Te(Dt,Tt,B,J,ye))){zt=!1;break}}return ye.delete(x),ye.delete(R),zt}function Bu(x,R,B,J,Te,ye,Me){switch(B){case D:if(x.byteLength!=R.byteLength||x.byteOffset!=R.byteOffset)return!1;x=x.buffer,R=R.buffer;case A:return!(x.byteLength!=R.byteLength||!ye(new Gn(x),new Gn(R)));case u:case d:case b:return Ss(+x,+R);case f:return x.name==R.name&&x.message==R.message;case E:case I:return x==R+"";case m:var Pe=Je;case T:var dt=J&o;if(Pe||(Pe=$e),x.size!=R.size&&!dt)return!1;var je=Me.get(x);if(je)return je==R;J|=i,Me.set(x,R);var Mt=Fi(Pe(x),Pe(R),J,Te,ye,Me);return Me.delete(x),Mt;case _:if(ji)return ji.call(x)==ji.call(R)}return!1}function Fu(x,R,B,J,Te,ye){var Me=B&o,Pe=Kr(x),dt=Pe.length,je=Kr(R),Mt=je.length;if(dt!=Mt&&!Me)return!1;for(var zt=dt;zt--;){var gt=Pe[zt];if(!(Me?gt in R:qe.call(R,gt)))return!1}var Dt=ye.get(x);if(Dt&&ye.get(R))return Dt==R;var Tt=!0;ye.set(x,R),ye.set(R,x);for(var Nr=Me;++zt<dt;){gt=Pe[zt];var pr=x[gt],Qr=R[gt];if(J)var Tv=Me?J(Qr,pr,gt,R,x,ye):J(pr,Qr,gt,x,R,ye);if(!(Tv===void 0?pr===Qr||Te(pr,Qr,B,J,ye):Tv)){Tt=!1;break}Nr||(Nr=gt=="constructor")}if(Tt&&!Nr){var Os=x.constructor,Ns=R.constructor;Os!=Ns&&"constructor"in x&&"constructor"in R&&!(typeof Os=="function"&&Os instanceof Os&&typeof Ns=="function"&&Ns instanceof Ns)&&(Tt=!1)}return ye.delete(x),ye.delete(R),Tt}function Kr(x){return Bi(x,Wi,Gu)}function vn(x,R){var B=x.__data__;return Wu(R)?B[typeof R=="string"?"string":"hash"]:B.map}function fr(x,R){var B=it(x,R);return ku(B)?B:void 0}function hr(x){var R=qe.call(x,te),B=x[te];try{x[te]=void 0;var J=!0}catch{}var Te=St.call(x);return J&&(R?x[te]=B:delete x[te]),Te}var Gu=de?function(x){return x==null?[]:(x=Object(x),se(de(x),function(R){return Zt.call(x,R)}))}:zu,Wn=Jr;(Ae&&Wn(new Ae(new ArrayBuffer(1)))!=D||ve&&Wn(new ve)!=m||ze&&Wn(ze.resolve())!=C||mt&&Wn(new mt)!=T||st&&Wn(new st)!=W)&&(Wn=function(x){var R=Jr(x),B=R==w?x.constructor:void 0,J=B?Gt(B):"";if(J)switch(J){case It:return D;case ut:return m;case Or:return C;case Do:return T;case hu:return W}return R});function $u(x,R){return R=R??a,!!R&&(typeof x=="number"||Z.test(x))&&x>-1&&x%1==0&&x<R}function Wu(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function Vu(x){return!!Vt&&Vt in x}function Hu(x){var R=x&&x.constructor,B=typeof R=="function"&&R.prototype||tt;return x===B}function Cs(x){return St.call(x)}function Gt(x){if(x!=null){try{return _t.call(x)}catch{}try{return x+""}catch{}}return""}function Ss(x,R){return x===R||x!==x&&R!==R}var Es=xs((function(){return arguments})())?xs:function(x){return Vn(x)&&qe.call(x,"callee")&&!Zt.call(x,"callee")},Bo=Array.isArray;function Gi(x){return x!=null&&$i(x.length)&&!Is(x)}var Fo=ce||Xu;function qu(x,R){return ws(x,R)}function Is(x){if(!As(x))return!1;var R=Jr(x);return R==h||R==g||R==c||R==S}function $i(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function As(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}function Vn(x){return x!=null&&typeof x=="object"}var Ts=$?Ne($):ju;function Wi(x){return Gi(x)?Mu(x):Lu(x)}function zu(){return[]}function Xu(){return!1}t.exports=qu})(da,da.exports)),da.exports}var Qs={},bC;function vee(){if(bC)return Qs;bC=1,Object.defineProperty(Qs,"__esModule",{value:!0});const t=H_(),e=q_();var n;return(function(r){function o(l={},c={},u=!1){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});let d=t(c);u||(d=Object.keys(d).reduce((f,h)=>(d[h]!=null&&(f[h]=d[h]),f),{}));for(const f in l)l[f]!==void 0&&c[f]===void 0&&(d[f]=l[f]);return Object.keys(d).length>0?d:void 0}r.compose=o;function i(l={},c={}){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});const u=Object.keys(l).concat(Object.keys(c)).reduce((d,f)=>(e(l[f],c[f])||(d[f]=c[f]===void 0?null:c[f]),d),{});return Object.keys(u).length>0?u:void 0}r.diff=i;function a(l={},c={}){l=l||{};const u=Object.keys(c).reduce((d,f)=>(c[f]!==l[f]&&l[f]!==void 0&&(d[f]=c[f]),d),{});return Object.keys(l).reduce((d,f)=>(l[f]!==c[f]&&c[f]===void 0&&(d[f]=null),d),u)}r.invert=a;function s(l,c,u=!1){if(typeof l!="object")return c;if(typeof c!="object")return;if(!u)return c;const d=Object.keys(c).reduce((f,h)=>(l[h]===void 0&&(f[h]=c[h]),f),{});return Object.keys(d).length>0?d:void 0}r.transform=s})(n||(n={})),Qs.default=n,Qs}var el={},vC;function z_(){if(vC)return el;vC=1,Object.defineProperty(el,"__esModule",{value:!0});var t;return(function(e){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=n})(t||(t={})),el.default=t,el}var tl={},yC;function yee(){if(yC)return tl;yC=1,Object.defineProperty(tl,"__esModule",{value:!0});const t=z_();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=t.default.length(o);if(r>=a-i?(r=a-i,this.index+=1,this.offset=0):this.offset+=r,typeof o.delete=="number")return{delete:r};{const s={};return o.attributes&&(s.attributes=o.attributes),typeof o.retain=="number"?s.retain=r:typeof o.retain=="object"&&o.retain!==null?s.retain=o.retain:typeof o.insert=="string"?s.insert=o.insert.substr(i,r):s.insert=o.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=o,[i].concat(a)}}else return[]}}return tl.default=e,tl}var xC;function xee(){return xC||(xC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=bee(),r=H_(),o=q_(),i=vee();e.AttributeMap=i.default;const a=z_();e.Op=a.default;const s=yee();e.OpIterator=s.default;const l="\0",c=(d,f)=>{if(typeof d!="object"||d===null)throw new Error(`cannot retain a ${typeof d}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const h=Object.keys(d)[0];if(!h||h!==Object.keys(f)[0])throw new Error(`embed types not matched: ${h} != ${Object.keys(f)[0]}`);return[h,d[h],f[h]]};class u{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,h){this.handlers[f]=h}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const h=this.handlers[f];if(!h)throw new Error(`no handlers for embed type "${f}"`);return h}insert(f,h){const g={};return typeof f=="string"&&f.length===0?this:(g.insert=f,h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(g.attributes=h),this.push(g))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,h){if(typeof f=="number"&&f<=0)return this;const g={retain:f};return h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(g.attributes=h),this.push(g)}push(f){let h=this.ops.length,g=this.ops[h-1];if(f=r(f),typeof g=="object"){if(typeof f.delete=="number"&&typeof g.delete=="number")return this.ops[h-1]={delete:g.delete+f.delete},this;if(typeof g.delete=="number"&&f.insert!=null&&(h-=1,g=this.ops[h-1],typeof g!="object"))return this.ops.unshift(f),this;if(o(f.attributes,g.attributes)){if(typeof f.insert=="string"&&typeof g.insert=="string")return this.ops[h-1]={insert:g.insert+f.insert},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof g.retain=="number")return this.ops[h-1]={retain:g.retain+f.retain},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this}}return h===this.ops.length?this.ops.push(f):this.ops.splice(h,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const h=[],g=[];return this.forEach(m=>{(f(m)?h:g).push(m)}),[h,g]}reduce(f,h){return this.ops.reduce(f,h)}changeLength(){return this.reduce((f,h)=>h.insert?f+a.default.length(h):h.delete?f-h.delete:f,0)}length(){return this.reduce((f,h)=>f+a.default.length(h),0)}slice(f=0,h=1/0){const g=[],m=new s.default(this.ops);let b=0;for(;b<h&&m.hasNext();){let y;b<f?y=m.next(f-b):(y=m.next(h-b),g.push(y)),b+=a.default.length(y)}return new u(g)}compose(f){const h=new s.default(this.ops),g=new s.default(f.ops),m=[],b=g.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let w=b.retain;for(;h.peekType()==="insert"&&h.peekLength()<=w;)w-=h.peekLength(),m.push(h.next());b.retain-w>0&&g.next(b.retain-w)}const y=new u(m);for(;h.hasNext()||g.hasNext();)if(g.peekType()==="insert")y.push(g.next());else if(h.peekType()==="delete")y.push(h.next());else{const w=Math.min(h.peekLength(),g.peekLength()),C=h.next(w),S=g.next(w);if(S.retain){const E={};if(typeof C.retain=="number")E.retain=typeof S.retain=="number"?w:S.retain;else if(typeof S.retain=="number")C.retain==null?E.insert=C.insert:E.retain=C.retain;else{const I=C.retain==null?"insert":"retain",[_,P,W]=c(C[I],S.retain),A=u.getHandler(_);E[I]={[_]:A.compose(P,W,I==="retain")}}const T=i.default.compose(C.attributes,S.attributes,typeof C.retain=="number");if(T&&(E.attributes=T),y.push(E),!g.hasNext()&&o(y.ops[y.ops.length-1],E)){const I=new u(h.rest());return y.concat(I).chop()}}else typeof S.delete=="number"&&(typeof C.retain=="number"||typeof C.retain=="object"&&C.retain!==null)&&y.push(S)}return y.chop()}concat(f){const h=new u(this.ops.slice());return f.ops.length>0&&(h.push(f.ops[0]),h.ops=h.ops.concat(f.ops.slice(1))),h}diff(f,h){if(this.ops===f.ops)return new u;const g=[this,f].map(C=>C.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:l;const E=C===f?"on":"with";throw new Error("diff() called "+E+" non-document")}).join("")),m=new u,b=n(g[0],g[1],h,!0),y=new s.default(this.ops),w=new s.default(f.ops);return b.forEach(C=>{let S=C[1].length;for(;S>0;){let E=0;switch(C[0]){case n.INSERT:E=Math.min(w.peekLength(),S),m.push(w.next(E));break;case n.DELETE:E=Math.min(S,y.peekLength()),y.next(E),m.delete(E);break;case n.EQUAL:E=Math.min(y.peekLength(),w.peekLength(),S);const T=y.next(E),I=w.next(E);o(T.insert,I.insert)?m.retain(E,i.default.diff(T.attributes,I.attributes)):m.push(I).delete(E);break}S-=E}}),m.chop()}eachLine(f,h=`
|
|
87
|
+
`){const g=new s.default(this.ops);let m=new u,b=0;for(;g.hasNext();){if(g.peekType()!=="insert")return;const y=g.peek(),w=a.default.length(y)-g.peekLength(),C=typeof y.insert=="string"?y.insert.indexOf(h,w)-w:-1;if(C<0)m.push(g.next());else if(C>0)m.push(g.next(C));else{if(f(m,g.next(1).attributes||{},b)===!1)return;b+=1,m=new u}}m.length()>0&&f(m,{},b)}invert(f){const h=new u;return this.reduce((g,m)=>{if(m.insert)h.delete(a.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return h.retain(m.retain),g+m.retain;if(m.delete||typeof m.retain=="number"){const b=m.delete||m.retain;return f.slice(g,g+b).forEach(w=>{m.delete?h.push(w):m.retain&&m.attributes&&h.retain(a.default.length(w),i.default.invert(m.attributes,w.attributes))}),g+b}else if(typeof m.retain=="object"&&m.retain!==null){const b=f.slice(g,g+1),y=new s.default(b.ops).next(),[w,C,S]=c(m.retain,y.insert),E=u.getHandler(w);return h.retain({[w]:E.invert(C,S)},i.default.invert(m.attributes,y.attributes)),g+1}}return g},0),h.chop()}transform(f,h=!1){if(h=!!h,typeof f=="number")return this.transformPosition(f,h);const g=f,m=new s.default(this.ops),b=new s.default(g.ops),y=new u;for(;m.hasNext()||b.hasNext();)if(m.peekType()==="insert"&&(h||b.peekType()!=="insert"))y.retain(a.default.length(m.next()));else if(b.peekType()==="insert")y.push(b.next());else{const w=Math.min(m.peekLength(),b.peekLength()),C=m.next(w),S=b.next(w);if(C.delete)continue;if(S.delete)y.push(S);else{const E=C.retain,T=S.retain;let I=typeof T=="object"&&T!==null?T:w;if(typeof E=="object"&&E!==null&&typeof T=="object"&&T!==null){const _=Object.keys(E)[0];if(_===Object.keys(T)[0]){const P=u.getHandler(_);P&&(I={[_]:P.transform(E[_],T[_],h)})}}y.retain(I,i.default.transform(C.attributes,S.attributes,h))}}return y.chop()}transformPosition(f,h=!1){h=!!h;const g=new s.default(this.ops);let m=0;for(;g.hasNext()&&m<=f;){const b=g.peekLength(),y=g.peekType();if(g.next(),y==="delete"){f-=Math.min(b,f-m);continue}else y==="insert"&&(m<f||!h)&&(f+=b);m+=b}return f}}u.Op=a.default,u.OpIterator=s.default,u.AttributeMap=i.default,u.handlers={},e.default=u,t.exports=u,t.exports.default=u})(Ks,Ks.exports)),Ks.exports}var pn=xee();const ge=gn(pn);class Fn extends on{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Fn.blotName="break";Fn.tagName="BR";let Pn=class extends Kl{};const wee={"&":"&","<":"<",">":">",'"':""","'":"'"};function uu(t){return t.replace(/[&<>"']/g,e=>wee[e])}class $t extends pv{static allowedChildren=[$t,Fn,on,Pn];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,n){const r=$t.order.indexOf(e),o=$t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}formatAt(e,n,r,o){if($t.compare(this.statics.blotName,r)<0&&this.scroll.query(r,be.BLOT)){const i=this.isolate(e,n);o&&i.wrap(r,o)}else super.formatAt(e,n,r,o)}optimize(e){if(super.optimize(e),this.parent instanceof $t&&$t.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}const wC=1;class Nt extends Fa{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=X_(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,r,o){n<=0||(this.scroll.query(r,be.BLOCK)?e+n===this.length()&&this.format(r,o):super.formatAt(e,Math.min(n,this.length()-e-1),r,o),this.cache={})}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r),this.cache={};return}if(n.length===0)return;const o=n.split(`
|
|
88
|
+
`),i=o.shift();i.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let a=this;o.reduce((s,l)=>(a=a.split(s,!0),a.insertAt(0,l),l.length),e+i.length)}insertBefore(e,n){const{head:r}=this.children;super.insertBefore(e,n),r instanceof Fn&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+wC),this.cache.length}moveChildren(e,n){super.moveChildren(e,n),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(e===0||e>=this.length()-wC)){const o=this.clone();return e===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const r=super.split(e,n);return this.cache={},r}}Nt.blotName="block";Nt.tagName="P";Nt.defaultChild=Fn;Nt.allowedChildren=[Fn,$t,on,Pn];class fn extends on{attach(){super.attach(),this.attributes=new lu(this.domNode)}delta(){return new ge().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,n){const r=this.scroll.query(e,be.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(e,n,r,o){this.format(r,o)}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r);return}const o=n.split(`
|
|
89
|
+
`),i=o.pop(),a=o.map(l=>{const c=this.scroll.create(Nt.blotName);return c.insertAt(0,l),c}),s=this.split(e);a.forEach(l=>{this.parent.insertBefore(l,s)}),i&&this.parent.insertBefore(this.scroll.create("text",i),s)}}fn.scope=be.BLOCK_BLOT;function X_(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(Lt).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),un(r,{},e)),new ge).insert(`
|
|
90
|
+
`,un(t))}function un(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return t==null||("formats"in t&&typeof t.formats=="function"&&(e={...e,...t.formats()},n&&delete e["code-token"]),t.parent==null||t.parent.statics.blotName==="scroll"||t.parent.statics.scope!==t.statics.scope)?e:un(t.parent,e,n)}class En extends on{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,n,r){super(e,n),this.selection=r,this.textNode=document.createTextNode(En.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,n){if(this.savedLength!==0){super.format(e,n);return}let r=this,o=0;for(;r!=null&&r.statics.scope!==be.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=En.CONTENTS.length,r.optimize(),r.formatAt(o,En.CONTENTS.length,e,n),this.savedLength=0)}index(e,n){return e===this.textNode?0:super.index(e,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof Pn?this.prev:null,r=n?n.length():0,o=this.next instanceof Pn?this.next:null,i=o?o.text:"",{textNode:a}=this,s=a.data.split(En.CONTENTS).join("");a.data=En.CONTENTS;let l;if(n)l=n,(s||o)&&(n.insertAt(n.length(),s+i),o&&o.remove());else if(o)l=o,o.insertAt(0,s);else{const c=document.createTextNode(s);l=this.scroll.create(c),this.parent.insertBefore(l,this)}if(this.remove(),e){const c=(f,h)=>n&&f===n.domNode?h:f===a?r+h-1:o&&f===o.domNode?r+s.length+h:null,u=c(e.start.node,e.start.offset),d=c(e.end.node,e.end.offset);if(u!==null&&d!==null)return{startNode:l.domNode,startOffset:u,endNode:l.domNode,endOffset:d}}return null}update(e,n){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(e){super.optimize(e);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=En.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}}var $p={exports:{}},CC;function Cee(){return CC||(CC=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new o(u,d||l,f),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)e.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,g=new Array(h);f<h;f++)g[f]=d[f].fn;return g},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,h,g){var m=n?n+c:c;if(!this._events[m])return!1;var b=this._events[m],y=arguments.length,w,C;if(b.fn){switch(b.once&&this.removeListener(c,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,u),!0;case 3:return b.fn.call(b.context,u,d),!0;case 4:return b.fn.call(b.context,u,d,f),!0;case 5:return b.fn.call(b.context,u,d,f,h),!0;case 6:return b.fn.call(b.context,u,d,f,h,g),!0}for(C=1,w=new Array(y-1);C<y;C++)w[C-1]=arguments[C];b.fn.apply(b.context,w)}else{var S=b.length,E;for(C=0;C<S;C++)switch(b[C].once&&this.removeListener(c,b[C].fn,void 0,!0),y){case 1:b[C].fn.call(b[C].context);break;case 2:b[C].fn.call(b[C].context,u);break;case 3:b[C].fn.call(b[C].context,u,d);break;case 4:b[C].fn.call(b[C].context,u,d,f);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];b[C].fn.apply(b[C].context,w)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!f||g.once)&&(!d||g.context===d)&&a(this,h);else{for(var m=0,b=[],y=g.length;m<y;m++)(g[m].fn!==u||f&&!g[m].once||d&&g[m].context!==d)&&b.push(g[m]);b.length?this._events[h]=b.length===1?b[0]:b:a(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s})($p)),$p.exports}var See=Cee();const Eee=gn(See),sg=new WeakMap,lg=["error","warn","log","info"];let cg="warn";function Y_(t){if(cg&&lg.indexOf(t)<=lg.indexOf(cg)){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t](...n)}}function Tr(t){return lg.reduce((e,n)=>(e[n]=Y_.bind(console,n,t),e),{})}Tr.level=t=>{cg=t};Y_.level=Tr.level;const Wp=Tr("quill:events"),Iee=["selectionchange","mousedown","mouseup","click"];Iee.forEach(t=>{document.addEventListener(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(o=>{const i=sg.get(o);i&&i.emitter&&i.emitter.handleDOM(...n)})})});class me extends Eee{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",Wp.error)}emit(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Wp.log.call(Wp,...n),super.emit(...n)}handleDOM(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(this.domListeners[e.type]||[]).forEach(i=>{let{node:a,handler:s}=i;(e.target===a||a.contains(e.target))&&s(e,...r)})}listenDOM(e,n,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:n,handler:r})}}const Vp=Tr("quill:selection");class yo{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=n}}class Aee{constructor(e,n){this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new yo(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,me.sources.USER),1)}),this.emitter.on(me.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(me.events.SCROLL_UPDATE,(o,i)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=i.some(s=>s.type==="characterData"||s.type==="childList"||s.type==="attributes"&&s.target===this.root);this.update(a?me.sources.SILENT:o)}catch{}})}),this.emitter.on(me.events.SCROLL_OPTIMIZE,(r,o)=>{if(o.range){const{startNode:i,startOffset:a,endNode:s,endOffset:l}=o.range;this.setNativeRange(i,a,s,l),this.update(me.sources.SILENT)}}),this.update(me.sources.SILENT)}handleComposition(){this.emitter.on(me.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(me.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(me.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,n){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,be.BLOCK))){if(r.start.node!==this.cursor.textNode){const o=this.scroll.find(r.start.node,!1);if(o==null)return;if(o instanceof Lt){const i=o.split(r.start.offset);o.parent.insertBefore(this.cursor,i)}else o.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),n=Math.min(e+n,r-1)-e;let o,[i,a]=this.scroll.leaf(e);if(i==null)return null;if(n>0&&a===i.length()){const[u]=this.scroll.leaf(e+1);if(u){const[d]=this.scroll.line(e),[f]=this.scroll.line(e+1);d===f&&(i=u,a=0)}}[o,a]=i.position(a,!0);const s=document.createRange();if(n>0)return s.setStart(o,a),[i,a]=this.scroll.leaf(e+n),i==null?null:([o,a]=i.position(a,!0),s.setEnd(o,a),s.getBoundingClientRect());let l="left",c;if(o instanceof Text){if(!o.data.length)return null;a<o.data.length?(s.setStart(o,a),s.setEnd(o,a+1)):(s.setStart(o,a-1),s.setEnd(o,a),l="right"),c=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;c=i.domNode.getBoundingClientRect(),a>0&&(l="right")}return{bottom:c.top+c.height,height:c.height,left:c[l],right:c[l],top:c.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const n=e.getRangeAt(0);if(n==null)return null;const r=this.normalizeNative(n);return Vp.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Hp(this.root,document.activeElement)}normalizedToRange(e){const n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);const r=n.map(a=>{const[s,l]=a,c=this.scroll.find(s,!0),u=c.offset(this.scroll);return l===0?u:c instanceof Lt?u+c.index(s,l):u+c.length()}),o=Math.min(Math.max(...r),this.scroll.length()-1),i=Math.min(o,...r);return new yo(i,o-i)}normalizeNative(e){if(!Hp(this.root,e.startContainer)||!e.collapsed&&!Hp(this.root,e.endContainer))return null;const n={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[n.start,n.end].forEach(r=>{let{node:o,offset:i}=r;for(;!(o instanceof Text)&&o.childNodes.length>0;)if(o.childNodes.length>i)o=o.childNodes[i],i=0;else if(o.childNodes.length===i)o=o.lastChild,o instanceof Text?i=o.data.length:o.childNodes.length>0?i=o.childNodes.length:i=o.childNodes.length+1;else break;r.node=o,r.offset=i}),n}rangeToNative(e){const n=this.scroll.length(),r=(o,i)=>{o=Math.min(n-1,o);const[a,s]=this.scroll.leaf(o);return a?a.position(s,i):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Vp.info("setNativeRange",e,n,r,o),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(s==null||i||e!==s.startContainer||n!==s.startOffset||r!==s.endContainer||o!==s.endOffset){e instanceof Element&&e.tagName==="BR"&&(n=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(o=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(e,n),l.setEnd(r,o),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me.sources.API;if(typeof n=="string"&&(r=n,n=!1),Vp.info("setRange",e),e!=null){const o=this.rangeToNative(e);this.setNativeRange(...o,n)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me.sources.USER;const n=this.lastRange,[r,o]=this.getRange();if(this.lastRange=r,this.lastNative=o,this.lastRange!=null&&(this.savedRange=this.lastRange),!hv(n,this.lastRange)){if(!this.composing&&o!=null&&o.native.collapsed&&o.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const i=[me.events.SELECTION_CHANGE,ii(this.lastRange),ii(n),e];this.emitter.emit(me.events.EDITOR_CHANGE,...i),e!==me.sources.SILENT&&this.emitter.emit(...i)}}}function Hp(t,e){try{e.parentNode}catch{return!1}return t.contains(e)}const Tee=/^[ -~]*$/;class Oee{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const r=SC(e),o=new ge;return Ree(r.ops.slice()).reduce((a,s)=>{const l=pn.Op.length(s);let c=s.attributes||{},u=!1,d=!1;if(s.insert!=null){if(o.retain(l),typeof s.insert=="string"){const g=s.insert;d=!g.endsWith(`
|
|
91
|
+
`)&&(n<=a||!!this.scroll.descendant(fn,a)[0]),this.scroll.insertAt(a,g);const[m,b]=this.scroll.line(a);let y=jr({},un(m));if(m instanceof Nt){const[w]=m.descendant(Lt,b);w&&(y=jr(y,un(w)))}c=pn.AttributeMap.diff(y,c)||{}}else if(typeof s.insert=="object"){const g=Object.keys(s.insert)[0];if(g==null)return a;const m=this.scroll.query(g,be.INLINE)!=null;if(m)(n<=a||this.scroll.descendant(fn,a)[0])&&(d=!0);else if(a>0){const[b,y]=this.scroll.descendant(Lt,a-1);b instanceof Pn?b.value()[y]!==`
|
|
92
|
+
`&&(u=!0):b instanceof on&&b.statics.scope===be.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(a,g,s.insert[g]),m){const[b]=this.scroll.descendant(Lt,a);if(b){const y=jr({},un(b));c=pn.AttributeMap.diff(y,c)||{}}}}n+=l}else if(o.push(s),s.retain!==null&&typeof s.retain=="object"){const g=Object.keys(s.retain)[0];if(g==null)return a;this.scroll.updateEmbedAt(a,g,s.retain[g])}Object.keys(c).forEach(g=>{this.scroll.formatAt(a,l,g,c[g])});const f=u?1:0,h=d?1:0;return n+=f+h,o.retain(f),o.delete(h),a+l+f+h},0),o.reduce((a,s)=>typeof s.delete=="number"?(this.scroll.deleteAt(a,s.delete),a):a+pn.Op.length(s),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,n){return this.scroll.deleteAt(e,n),this.update(new ge().retain(e).delete(n))}formatLine(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(i=>{this.scroll.lines(e,Math.max(n,1)).forEach(a=>{a.format(i,r[i])})}),this.scroll.optimize();const o=new ge().retain(e).retain(n,ii(r));return this.update(o)}formatText(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(i=>{this.scroll.formatAt(e,n,i,r[i])});const o=new ge().retain(e).retain(n,ii(r));return this.update(o)}getContents(e,n){return this.delta.slice(e,e+n)}getDelta(){return this.scroll.lines().reduce((e,n)=>e.concat(n.delta()),new ge)}getFormat(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],o=[];n===0?this.scroll.path(e).forEach(s=>{const[l]=s;l instanceof Nt?r.push(l):l instanceof Lt&&o.push(l)}):(r=this.scroll.lines(e,n),o=this.scroll.descendants(Lt,e,n));const[i,a]=[r,o].map(s=>{const l=s.shift();if(l==null)return{};let c=un(l);for(;Object.keys(c).length>0;){const u=s.shift();if(u==null)return c;c=Nee(un(u),c)}return c});return{...i,...a}}getHTML(e,n){const[r,o]=this.scroll.line(e);if(r){const i=r.length();return r.length()>=o+n&&!(o===0&&n===i)?Ga(r,o,n,!0):Ga(this.scroll,e,n,!0)}return""}getText(e,n){return this.getContents(e,n).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,n){const r=SC(n),o=new ge().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(o)}insertEmbed(e,n,r){return this.scroll.insertAt(e,n,r),this.update(new ge().retain(e).insert({[n]:r}))}insertText(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,`
|
|
93
|
+
`).replace(/\r/g,`
|
|
94
|
+
`),this.scroll.insertAt(e,n),Object.keys(r).forEach(o=>{this.scroll.formatAt(e,n.length,o,r[o])}),this.update(new ge().retain(e).insert(n,ii(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if(e?.statics.blotName!==Nt.blotName)return!1;const n=e;return n.children.length>1?!1:n.children.head instanceof Fn}removeFormat(e,n){const r=this.getText(e,n),[o,i]=this.scroll.line(e+n);let a=0,s=new ge;o!=null&&(a=o.length()-i,s=o.delta().slice(i,i+a-1).insert(`
|
|
95
|
+
`));const c=this.getContents(e,n+a).diff(new ge().insert(r).concat(s)),u=new ge().retain(e).concat(c);return this.applyDelta(u)}update(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const o=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(Tee)&&this.scroll.find(n[0].target)){const i=this.scroll.find(n[0].target),a=un(i),s=i.offset(this.scroll),l=n[0].oldValue.replace(En.CONTENTS,""),c=new ge().insert(l),u=new ge().insert(i.value()),d=r&&{oldRange:EC(r.oldRange,-s),newRange:EC(r.newRange,-s)};e=new ge().retain(s).concat(c.diff(u,d)).reduce((h,g)=>g.insert?h.insert(g.insert,a):h.push(g),new ge),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!hv(o.compose(e),this.delta))&&(e=o.diff(this.delta,r));return e}}function ei(t,e,n){if(t.length===0){const[h]=qp(n.pop());return e<=0?`</li></${h}>`:`</li></${h}>${ei([],e-1,n)}`}const[{child:r,offset:o,length:i,indent:a,type:s},...l]=t,[c,u]=qp(s);if(a>e)return n.push(s),a===e+1?`<${c}><li${u}>${Ga(r,o,i)}${ei(l,a,n)}`:`<${c}><li>${ei(t,e+1,n)}`;const d=n[n.length-1];if(a===e&&s===d)return`</li><li${u}>${Ga(r,o,i)}${ei(l,a,n)}`;const[f]=qp(n.pop());return`</li></${f}>${ei(t,e-1,n)}`}function Ga(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in t&&typeof t.html=="function")return t.html(e,n);if(t instanceof Pn)return uu(t.value().slice(e,e+n)).replaceAll(" "," ");if(t instanceof Nn){if(t.statics.blotName==="list-container"){const c=[];return t.children.forEachAt(e,n,(u,d,f)=>{const h="formats"in u&&typeof u.formats=="function"?u.formats():{};c.push({child:u,offset:d,length:f,indent:h.indent||0,type:h.list})}),ei(c,-1,[])}const o=[];if(t.children.forEachAt(e,n,(c,u,d)=>{o.push(Ga(c,u,d))}),r||t.statics.blotName==="list")return o.join("");const{outerHTML:i,innerHTML:a}=t.domNode,[s,l]=i.split(`>${a}<`);return s==="<table"?`<table style="border: 1px solid #000;">${o.join("")}<${l}`:`${s}>${o.join("")}<${l}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function Nee(t,e){return Object.keys(e).reduce((n,r)=>{if(t[r]==null)return n;const o=e[r];return o===t[r]?n[r]=o:Array.isArray(o)?o.indexOf(t[r])<0?n[r]=o.concat([t[r]]):n[r]=o:n[r]=[o,t[r]],n},{})}function qp(t){const e=t==="ordered"?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function SC(t){return t.reduce((e,n)=>{if(typeof n.insert=="string"){const r=n.insert.replace(/\r\n/g,`
|
|
96
|
+
`).replace(/\r/g,`
|
|
97
|
+
`);return e.insert(r,n.attributes)}return e.push(n)},new ge)}function EC(t,e){let{index:n,length:r}=t;return new yo(n+e,r)}function Ree(t){const e=[];return t.forEach(n=>{typeof n.insert=="string"?n.insert.split(`
|
|
98
|
+
`).forEach((o,i)=>{i&&e.push({insert:`
|
|
99
|
+
`,attributes:n.attributes}),o&&e.push({insert:o,attributes:n.attributes})}):e.push(n)}),e}class dr{static DEFAULTS={};constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=n}}const nl="\uFEFF";class gv extends on{constructor(e,n){super(e,n),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(nl),this.rightGuard=document.createTextNode(nl),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,n)}restore(e){let n=null,r;const o=e.data.split(nl).join("");if(e===this.leftGuard)if(this.prev instanceof Pn){const i=this.prev.length();this.prev.insertAt(i,o),n={startNode:this.prev.domNode,startOffset:i+o.length}}else r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this),n={startNode:r,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof Pn?(this.next.insertAt(0,o),n={startNode:this.next.domNode,startOffset:o.length}):(r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this.next),n={startNode:r,startOffset:o.length}));return e.data=nl,n}update(e,n){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const o=this.restore(r.target);o&&(n.range=o)}})}}class _ee{isComposing=!1;constructor(e,n){this.scroll=e,this.emitter=n,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const n=e.target instanceof Node?this.scroll.find(e.target,!0):null;n&&!(n instanceof gv)&&(this.emitter.emit(me.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(me.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(me.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(me.events.COMPOSITION_END,e),this.isComposing=!1}}class ki{static DEFAULTS={modules:{}};static themes={default:ki};modules={};constructor(e,n){this.quill=e,this.options=n}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const n=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new n(this.quill,this.options.modules[e]||{}),this.modules[e]}}const Pee=t=>t.parentElement||t.getRootNode().host||null,Mee=t=>{const e=t.getBoundingClientRect(),n="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,r="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*n,bottom:e.top+t.clientHeight*r,left:e.left}},rl=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},IC=(t,e,n,r,o,i)=>t<n&&e>r?0:t<n?-(n-t+o):e>r?e-t>r-n?t+o-n:e-r+i:0,Dee=(t,e)=>{const n=t.ownerDocument;let r=e,o=t;for(;o;){const i=o===n.body,a=i?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:Mee(o),s=getComputedStyle(o),l=IC(r.left,r.right,a.left,a.right,rl(s.scrollPaddingLeft),rl(s.scrollPaddingRight)),c=IC(r.top,r.bottom,a.top,a.bottom,rl(s.scrollPaddingTop),rl(s.scrollPaddingBottom));if(l||c)if(i)n.defaultView?.scrollBy(l,c);else{const{scrollLeft:u,scrollTop:d}=o;c&&(o.scrollTop+=c),l&&(o.scrollLeft+=l);const f=o.scrollLeft-u,h=o.scrollTop-d;r={left:r.left-f,top:r.top-h,right:r.right-f,bottom:r.bottom-h}}o=i||s.position==="fixed"?null:Pee(o)}},kee=100,jee=["block","break","cursor","inline","scroll","text"],Lee=(t,e,n)=>{const r=new xi;return jee.forEach(o=>{const i=e.query(o);i&&r.register(i)}),t.forEach(o=>{let i=e.query(o);i||n.error(`Cannot register "${o}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;i;)if(r.register(i),i="blotName"in i?i.requiredContainer??null:null,a+=1,a>kee){n.error(`Cycle detected in registering blot requiredContainer: "${o}"`);break}}),r},si=Tr("quill"),ol=new xi;Nn.uiClass="ql-ui";class Q{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ol,theme:"default"};static events=me.events;static sources=me.sources;static version="2.0.3";static imports={delta:ge,parchment:gee,"core/module":dr,"core/theme":ki};static debug(e){e===!0&&(e="log"),Tr.level(e)}static find(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return sg.get(e)||ol.find(e,n)}static import(e){return this.imports[e]==null&&si.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],n=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,n):Object.keys(e).forEach(o=>{this.register(o,e[o],n)})}else{const e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&si.warn(`Overwriting ${e} with`,n),this.imports[e]=n,(e.startsWith("blots/")||e.startsWith("formats/"))&&n&&typeof n!="boolean"&&n.blotName!=="abstract"&&ol.register(n),typeof n.register=="function"&&n.register(ol)}}constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Bee(e,n),this.container=this.options.container,this.container==null){si.error("Invalid Quill container",e);return}this.options.debug&&Q.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",sg.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new me;const o=mv.blotName,i=this.options.registry.query(o);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${o}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Oee(this.scroll),this.selection=new Aee(this.scroll,this.emitter),this.composition=new _ee(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(me.events.EDITOR_CHANGE,a=>{a===me.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(me.events.SCROLL_UPDATE,(a,s)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),u=l&&c?{oldRange:l,newRange:c}:void 0;xn.call(this,()=>this.editor.update(null,s,u),a)}),this.emitter.on(me.events.SCROLL_EMBED_UPDATE,(a,s)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),u=l&&c?{oldRange:l,newRange:c}:void 0;xn.call(this,()=>{const d=new ge().retain(a.offset(this)).retain({[a.statics.blotName]:s});return this.editor.update(d,[],u)},Q.sources.USER)}),r){const a=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
|
|
100
|
+
`});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,n),e}blur(){this.selection.setRange(null)}deleteText(e,n,r){return[e,n,,r]=br(e,n,r),xn.call(this,()=>this.editor.deleteText(e,n),r,e,-1*n)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const n=e();return this.allowReadOnlyEdits=!1,n}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me.sources.API;return xn.call(this,()=>{const o=this.getSelection(!0);let i=new ge;if(o==null)return i;if(this.scroll.query(e,be.BLOCK))i=this.editor.formatLine(o.index,o.length,{[e]:n});else{if(o.length===0)return this.selection.format(e,n),i;i=this.editor.formatText(o.index,o.length,{[e]:n})}return this.setSelection(o,me.sources.SILENT),i},r)}formatLine(e,n,r,o,i){let a;return[e,n,a,i]=br(e,n,r,o,i),xn.call(this,()=>this.editor.formatLine(e,n,a),i,e,0)}formatText(e,n,r,o,i){let a;return[e,n,a,i]=br(e,n,r,o,i),xn.call(this,()=>this.editor.formatText(e,n,a),i,e,0)}getBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,n):r=this.selection.getBounds(e.index,e.length),!r)return null;const o=this.container.getBoundingClientRect();return{bottom:r.bottom-o.top,height:r.height,left:r.left-o.left,right:r.right-o.left,top:r.top-o.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,n]=br(e,n),this.editor.getContents(e,n)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,n):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,n)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(n=n??this.getLength()-e),[e,n]=br(e,n),this.editor.getHTML(e,n)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(n=n??this.getLength()-e),[e,n]=br(e,n),this.editor.getText(e,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Q.sources.API;return xn.call(this,()=>this.editor.insertEmbed(e,n,r),o,e)}insertText(e,n,r,o,i){let a;return[e,,a,i]=br(e,0,r,o,i),xn.call(this,()=>this.editor.insertText(e,n,a),i,e,n.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,n,r){return[e,n,,r]=br(e,n,r),xn.call(this,()=>this.editor.removeFormat(e,n),r,e)}scrollRectIntoView(e){Dee(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,n=e&&this.selection.getBounds(e.index,e.length);n&&this.scrollRectIntoView(n)}setContents(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:me.sources.API;return xn.call(this,()=>{e=new ge(e);const r=this.getLength(),o=this.editor.deleteText(0,r),i=this.editor.insertContents(0,e),a=this.editor.deleteText(this.getLength()-1,1);return o.compose(i).compose(a)},n)}setSelection(e,n,r){e==null?this.selection.setRange(null,n||Q.sources.API):([e,n,,r]=br(e,n,r),this.selection.setRange(new yo(Math.max(0,e),n),r),r!==me.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:me.sources.API;const r=new ge().insert(e);return this.setContents(r,n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me.sources.USER;const n=this.scroll.update(e);return this.selection.update(e),n}updateContents(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:me.sources.API;return xn.call(this,()=>(e=new ge(e),this.editor.applyDelta(e)),n,!0)}}function AC(t){return typeof t=="string"?document.querySelector(t):t}function zp(t){return Object.entries(t??{}).reduce((e,n)=>{let[r,o]=n;return{...e,[r]:o===!0?{}:o}},{})}function TC(t){return Object.fromEntries(Object.entries(t).filter(e=>e[1]!==void 0))}function Bee(t,e){const n=AC(t);if(!n)throw new Error("Invalid Quill container");const o=!e.theme||e.theme===Q.DEFAULTS.theme?ki:Q.import(`themes/${e.theme}`);if(!o)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:i,...a}=Q.DEFAULTS,{modules:s,...l}=o.DEFAULTS;let c=zp(e.modules);c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const u=jr({},zp(i),zp(s),c),d={...a,...TC(l),...TC(e)};let f=e.registry;return f?e.formats&&si.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?Lee(e.formats,d.registry,si):d.registry,{...d,registry:f,container:n,theme:o,modules:Object.entries(u).reduce((h,g)=>{let[m,b]=g;if(!b)return h;const y=Q.import(`modules/${m}`);return y==null?(si.error(`Cannot load ${m} module. Are you sure you registered it?`),h):{...h,[m]:jr({},y.DEFAULTS||{},b)}},{}),bounds:AC(d.bounds)}}function xn(t,e,n,r){if(!this.isEnabled()&&e===me.sources.USER&&!this.allowReadOnlyEdits)return new ge;let o=n==null?null:this.getSelection();const i=this.editor.delta,a=t();if(o!=null&&(n===!0&&(n=o.index),r==null?o=OC(o,a,e):r!==0&&(o=OC(o,n,r,e)),this.setSelection(o,me.sources.SILENT)),a.length()>0){const s=[me.events.TEXT_CHANGE,a,i,e];this.emitter.emit(me.events.EDITOR_CHANGE,...s),e!==me.sources.SILENT&&this.emitter.emit(...s)}return a}function br(t,e,n,r,o){let i={};return typeof t.index=="number"&&typeof t.length=="number"?typeof e!="number"?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):typeof e!="number"&&(o=r,r=n,n=e,e=0),typeof n=="object"?(i=n,o=r):typeof n=="string"&&(r!=null?i[n]=r:o=n),o=o||me.sources.API,[t,e,i,o]}function OC(t,e,n,r){const o=typeof n=="number"?n:0;if(t==null)return null;let i,a;return e&&typeof e.transformPosition=="function"?[i,a]=[t.index,t.index+t.length].map(s=>e.transformPosition(s,r!==me.sources.USER)):[i,a]=[t.index,t.index+t.length].map(s=>s<e||s===e&&r===me.sources.USER?s:o>=0?s+o:Math.max(e,s+o)),new yo(i,a-i)}class _o extends cu{}function NC(t){return t instanceof Nt||t instanceof fn}function RC(t){return typeof t.updateContent=="function"}class Fee extends mv{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Nt;static allowedChildren=[Nt,fn,_o];constructor(e,n,r){let{emitter:o}=r;super(e,n),this.emitter=o,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",i=>this.handleDragStart(i))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(me.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(me.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,n){this.emitter.emit(me.events.SCROLL_EMBED_UPDATE,e,n)}deleteAt(e,n){const[r,o]=this.line(e),[i]=this.line(e+n);if(super.deleteAt(e,n),i!=null&&r!==i&&o>0){if(r instanceof fn||i instanceof fn){this.optimize();return}const a=i.children.head instanceof Fn?null:i.children.head;r.moveChildren(i,a),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,n,r,o){super.formatAt(e,n,r,o),this.optimize()}insertAt(e,n,r){if(e>=this.length())if(r==null||this.scroll.query(n,be.BLOCK)==null){const o=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(o),r==null&&n.endsWith(`
|
|
101
|
+
`)?o.insertAt(0,n.slice(0,-1),r):o.insertAt(0,n,r)}else{const o=this.scroll.create(n,r);this.appendChild(o)}else super.insertAt(e,n,r);this.optimize()}insertBefore(e,n){if(e.statics.scope===be.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,n)}else super.insertBefore(e,n)}insertContents(e,n){const r=this.deltaToRenderBlocks(n.concat(new ge().insert(`
|
|
102
|
+
`))),o=r.pop();if(o==null)return;this.batchStart();const i=r.shift();if(i){const l=i.type==="block"&&(i.delta.length()===0||!this.descendant(fn,e)[0]&&e<this.length()),c=i.type==="block"?i.delta:new ge().insert({[i.key]:i.value});Xp(this,e,c);const u=i.type==="block"?1:0,d=e+c.length()+u;l&&this.insertAt(d-1,`
|
|
103
|
+
`);const f=un(this.line(e)[0]),h=pn.AttributeMap.diff(f,i.attributes)||{};Object.keys(h).forEach(g=>{this.formatAt(d-1,1,g,h[g])}),e=d}let[a,s]=this.children.find(e);if(r.length&&(a&&(a=a.split(s),s=0),r.forEach(l=>{if(l.type==="block"){const c=this.createBlock(l.attributes,a||void 0);Xp(c,0,l.delta)}else{const c=this.create(l.key,l.value);this.insertBefore(c,a||void 0),Object.keys(l.attributes).forEach(u=>{c.format(u,l.attributes[u])})}})),o.type==="block"&&o.delta.length()){const l=a?a.offset(a.scroll)+s:this.length();Xp(this,l,o.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const n=this.path(e).pop();if(!n)return[null,-1];const[r,o]=n;return r instanceof Lt?[r,o]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(NC,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(o,i,a)=>{let s=[],l=a;return o.children.forEachAt(i,a,(c,u,d)=>{NC(c)?s.push(c):c instanceof cu&&(s=s.concat(r(c,u,l))),l-=d}),s};return r(this,e,n)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,n),e.length>0&&this.emitter.emit(me.events.SCROLL_OPTIMIZE,e,n))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let n=me.sources.USER;typeof e=="string"&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:o}=r;const i=this.find(o,!0);return i&&!RC(i)}),e.length>0&&this.emitter.emit(me.events.SCROLL_BEFORE_UPDATE,n,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(me.events.SCROLL_UPDATE,n,e)}updateEmbedAt(e,n,r){const[o]=this.descendant(i=>i instanceof fn,e);o&&o.statics.blotName===n&&RC(o)&&o.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const n=[];let r=new ge;return e.forEach(o=>{const i=o?.insert;if(i)if(typeof i=="string"){const a=i.split(`
|
|
104
|
+
`);a.slice(0,-1).forEach(l=>{r.insert(l,o.attributes),n.push({type:"block",delta:r,attributes:o.attributes??{}}),r=new ge});const s=a[a.length-1];s&&r.insert(s,o.attributes)}else{const a=Object.keys(i)[0];if(!a)return;this.query(a,be.INLINE)?r.push(o):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new ge,n.push({type:"blockEmbed",key:a,value:i[a],attributes:o.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(e,n){let r;const o={};Object.entries(e).forEach(s=>{let[l,c]=s;this.query(l,be.BLOCK&be.BLOT)!=null?r=l:o[l]=c});const i=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(i,n||void 0);const a=i.length();return Object.entries(o).forEach(s=>{let[l,c]=s;i.formatAt(0,a,l,c)}),i}}function Xp(t,e,n){n.reduce((r,o)=>{const i=pn.Op.length(o);let a=o.attributes||{};if(o.insert!=null){if(typeof o.insert=="string"){const s=o.insert;t.insertAt(r,s);const[l]=t.descendant(Lt,r),c=un(l);a=pn.AttributeMap.diff(c,a)||{}}else if(typeof o.insert=="object"){const s=Object.keys(o.insert)[0];if(s==null)return r;if(t.insertAt(r,s,o.insert[s]),t.scroll.query(s,be.INLINE)!=null){const[c]=t.descendant(Lt,r),u=un(c);a=pn.AttributeMap.diff(u,a)||{}}}}return Object.keys(a).forEach(s=>{t.formatAt(r,i,s,a[s])}),r+i},e)}const bv={scope:be.BLOCK,whitelist:["right","center","justify"]},Gee=new nr("align","align",bv),U_=new Bn("align","ql-align",bv),Z_=new Zr("align","text-align",bv);class J_ extends Zr{value(e){let n=super.value(e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(o=>`00${parseInt(o,10).toString(16)}`.slice(-2)).join("")}`):n}}const $ee=new Bn("color","ql-color",{scope:be.INLINE}),vv=new J_("color","color",{scope:be.INLINE}),Wee=new Bn("background","ql-bg",{scope:be.INLINE}),yv=new J_("background","background-color",{scope:be.INLINE});class Po extends _o{static create(e){const n=super.create(e);return n.setAttribute("spellcheck","false"),n}code(e,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
|
|
105
|
+
`).slice(e,e+n)}html(e,n){return`<pre>
|
|
106
|
+
${uu(this.code(e,n))}
|
|
107
|
+
</pre>`}}class Wt extends Nt{static TAB=" ";static register(){Q.register(Po)}}class xv extends $t{}xv.blotName="code";xv.tagName="CODE";Wt.blotName="code-block";Wt.className="ql-code-block";Wt.tagName="DIV";Po.blotName="code-block-container";Po.className="ql-code-block-container";Po.tagName="DIV";Po.allowedChildren=[Wt];Wt.allowedChildren=[Pn,Fn,En];Wt.requiredContainer=Po;const wv={scope:be.BLOCK,whitelist:["rtl"]},K_=new nr("direction","dir",wv),Q_=new Bn("direction","ql-direction",wv),eP=new Zr("direction","direction",wv),tP={scope:be.INLINE,whitelist:["serif","monospace"]},nP=new Bn("font","ql-font",tP);class Vee extends Zr{value(e){return super.value(e).replace(/["']/g,"")}}const rP=new Vee("font","font-family",tP),oP=new Bn("size","ql-size",{scope:be.INLINE,whitelist:["small","large","huge"]}),iP=new Zr("size","font-size",{scope:be.INLINE,whitelist:["10px","18px","32px"]}),Hee=Tr("quill:keyboard"),qee=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class du extends dr{static match(e,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==e[r]&&n[r]!==null)?!1:n.key===e.key||n.key===e.which}constructor(e,n){super(e,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=Xee(e);if(o==null){Hee.warn("Attempted to add invalid keyboard binding",o);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(o.key)?o.key:[o.key]).forEach(a=>{const s={...o,key:a,...n,...r};this.bindings[s.key]=this.bindings[s.key]||[],this.bindings[s.key].push(s)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const o=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(y=>du.match(e,y));if(o.length===0)return;const i=Q.find(e.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[s,l]=this.quill.getLine(a.index),[c,u]=this.quill.getLeaf(a.index),[d,f]=a.length===0?[c,u]:this.quill.getLeaf(a.index+a.length),h=c instanceof Kl?c.value().slice(0,u):"",g=d instanceof Kl?d.value().slice(f):"",m={collapsed:a.length===0,empty:a.length===0&&s.length()<=1,format:this.quill.getFormat(a),line:s,offset:l,prefix:h,suffix:g,event:e};o.some(y=>{if(y.collapsed!=null&&y.collapsed!==m.collapsed||y.empty!=null&&y.empty!==m.empty||y.offset!=null&&y.offset!==m.offset)return!1;if(Array.isArray(y.format)){if(y.format.every(w=>m.format[w]==null))return!1}else if(typeof y.format=="object"&&!Object.keys(y.format).every(w=>y.format[w]===!0?m.format[w]!=null:y.format[w]===!1?m.format[w]==null:hv(y.format[w],m.format[w])))return!1;return y.prefix!=null&&!y.prefix.test(m.prefix)||y.suffix!=null&&!y.suffix.test(m.suffix)?!1:y.handler.call(this,a,m,y)!==!0})&&e.preventDefault()})}handleBackspace(e,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let o={};const[i]=this.quill.getLine(e.index);let a=new ge().retain(e.index-r).delete(r);if(n.offset===0){const[s]=this.quill.getLine(e.index-1);if(s&&!(s.statics.blotName==="block"&&s.length()<=1)){const c=i.formats(),u=this.quill.getFormat(e.index-1,1);if(o=pn.AttributeMap.diff(c,u)||{},Object.keys(o).length>0){const d=new ge().retain(e.index+i.length()-2).retain(1,o);a=a.compose(d)}}}this.quill.updateContents(a,Q.sources.USER),this.quill.focus()}handleDelete(e,n){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let o={};const[i]=this.quill.getLine(e.index);let a=new ge().retain(e.index).delete(r);if(n.offset>=i.length()-1){const[s]=this.quill.getLine(e.index+1);if(s){const l=i.formats(),c=this.quill.getFormat(e.index,1);o=pn.AttributeMap.diff(l,c)||{},Object.keys(o).length>0&&(a=a.retain(s.length()-1).retain(1,o))}}this.quill.updateContents(a,Q.sources.USER),this.quill.focus()}handleDeleteRange(e){Cv({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,n){const r=Object.keys(n.format).reduce((i,a)=>(this.quill.scroll.query(a,be.BLOCK)&&!Array.isArray(n.format[a])&&(i[a]=n.format[a]),i),{}),o=new ge().retain(e.index).delete(e.length).insert(`
|
|
108
|
+
`,r);this.quill.updateContents(o,Q.sources.USER),this.quill.setSelection(e.index+1,Q.sources.SILENT),this.quill.focus()}}const zee={bindings:{bold:Yp("bold"),italic:Yp("italic"),underline:Yp("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",Q.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",Q.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){e.format.indent!=null?this.quill.format("indent","-1",Q.sources.USER):e.format.list!=null&&this.quill.format("list",!1,Q.sources.USER)}},"indent code-block":_C(!0),"outdent code-block":_C(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Q.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const n=new ge().retain(t.index).delete(t.length).insert(" ");return this.quill.updateContents(n,Q.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Q.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Q.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const n={list:!1};e.format.indent&&(n.indent=!1),this.quill.formatLine(t.index,t.length,n,Q.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,n]=this.quill.getLine(t.index),r={...e.formats(),list:"checked"},o=new ge().retain(t.index).insert(`
|
|
109
|
+
`,r).retain(e.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,Q.sources.USER),this.quill.setSelection(t.index+1,Q.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[n,r]=this.quill.getLine(t.index),o=new ge().retain(t.index).insert(`
|
|
110
|
+
`,e.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(o,Q.sources.USER),this.quill.setSelection(t.index+1,Q.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[n,r,o,i]=e.getTable(t),a=Yee(n,r,o,i);if(a==null)return;let s=n.offset();if(a<0){const l=new ge().retain(s).insert(`
|
|
111
|
+
`);this.quill.updateContents(l,Q.sources.USER),this.quill.setSelection(t.index+1,t.length,Q.sources.SILENT)}else if(a>0){s+=n.length();const l=new ge().retain(s).insert(`
|
|
112
|
+
`);this.quill.updateContents(l,Q.sources.USER),this.quill.setSelection(s,Q.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:n,line:r}=e,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,Q.sources.USER):this.quill.setSelection(o+r.length(),Q.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=e.prefix,[r,o]=this.quill.getLine(t.index);if(o>n)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(t.index," ",Q.sources.USER),this.quill.history.cutoff();const a=new ge().retain(t.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:i});return this.quill.updateContents(a,Q.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,Q.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,n]=this.quill.getLine(t.index);let r=2,o=e;for(;o!=null&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,r-=1,r<=0){const i=new ge().retain(t.index+e.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,Q.sources.USER),this.quill.setSelection(t.index-1,Q.sources.SILENT),!1}return!0}},"embed left":il("ArrowLeft",!1),"embed left shift":il("ArrowLeft",!0),"embed right":il("ArrowRight",!1),"embed right shift":il("ArrowRight",!0),"table down":PC(!1),"table up":PC(!0)}};du.DEFAULTS=zee;function _C(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,n){let{event:r}=n;const o=this.quill.scroll.query("code-block"),{TAB:i}=o;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,i,Q.sources.USER),this.quill.setSelection(e.index+i.length,Q.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:l}=e;a.forEach((c,u)=>{t?(c.insertAt(0,i),u===0?s+=i.length:l+=i.length):c.domNode.textContent.startsWith(i)&&(c.deleteAt(0,i.length),u===0?s-=i.length:l-=i.length)}),this.quill.update(Q.sources.USER),this.quill.setSelection(s,l,Q.sources.SILENT)}}}function il(t,e){return{key:t,shiftKey:e,altKey:null,[t==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:o}=r;t==="ArrowRight"&&(o+=r.length+1);const[i]=this.quill.getLeaf(o);return i instanceof on?(t==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,Q.sources.USER):this.quill.setSelection(r.index-1,Q.sources.USER):e?this.quill.setSelection(r.index,r.length+1,Q.sources.USER):this.quill.setSelection(r.index+r.length+1,Q.sources.USER),!1):!0}}}function Yp(t){return{key:t[0],shortKey:!0,handler(e,n){this.quill.format(t,!n.format[t],Q.sources.USER)}}}function PC(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,n){const r=t?"prev":"next",o=n.line,i=o.parent[r];if(i!=null){if(i.statics.blotName==="table-row"){let a=i.children.head,s=o;for(;s.prev!=null;)s=s.prev,a=a.next;const l=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(l,0,Q.sources.USER)}}else{const a=o.table()[r];a!=null&&(t?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,Q.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,Q.sources.USER))}return!1}}}function Xee(t){if(typeof t=="string"||typeof t=="number")t={key:t};else if(typeof t=="object")t=ii(t);else return null;return t.shortKey&&(t[qee]=t.shortKey,delete t.shortKey),t}function Cv(t){let{quill:e,range:n}=t;const r=e.getLines(n);let o={};if(r.length>1){const i=r[0].formats(),a=r[r.length-1].formats();o=pn.AttributeMap.diff(a,i)||{}}e.deleteText(n,Q.sources.USER),Object.keys(o).length>0&&e.formatLine(n.index,1,o,Q.sources.USER),e.setSelection(n.index,Q.sources.SILENT)}function Yee(t,e,n,r){return e.prev==null&&e.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const Uee=/font-weight:\s*normal/,Zee=["P","OL","UL"],MC=t=>t&&Zee.includes(t.tagName),Jee=t=>{Array.from(t.querySelectorAll("br")).filter(e=>MC(e.previousElementSibling)&&MC(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})},Kee=t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(Uee)).forEach(e=>{const n=t.createDocumentFragment();n.append(...e.childNodes),e.parentNode?.replaceChild(n,e)})};function Qee(t){t.querySelector('[id^="docs-internal-guid-"]')&&(Kee(t),Jee(t))}const ete=/\bmso-list:[^;]*ignore/i,tte=/\bmso-list:[^;]*\bl(\d+)/i,nte=/\bmso-list:[^;]*\blevel(\d+)/i,rte=(t,e)=>{const n=t.getAttribute("style"),r=n?.match(tte);if(!r)return null;const o=Number(r[1]),i=n?.match(nte),a=i?Number(i[1]):1,s=new RegExp(`@list l${o}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(s),c=l&&l[1]==="bullet"?"bullet":"ordered";return{id:o,indent:a,type:c,element:t}},ote=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),n=[],r=[];e.forEach(a=>{(a.getAttribute("style")||"").match(ete)?n.push(a):r.push(a)}),n.forEach(a=>a.parentNode?.removeChild(a));const o=t.documentElement.innerHTML,i=r.map(a=>rte(a,o)).filter(a=>a);for(;i.length;){const a=[];let s=i.shift();for(;s;)a.push(s),s=i.length&&i[0]?.element===s.element.nextElementSibling&&i[0].id===s.id?i.shift():null;const l=document.createElement("ul");a.forEach(d=>{const f=document.createElement("li");f.setAttribute("data-list",d.type),d.indent>1&&f.setAttribute("class",`ql-indent-${d.indent-1}`),f.innerHTML=d.element.innerHTML,l.appendChild(f)});const c=a[0]?.element,{parentNode:u}=c??{};c&&u?.replaceChild(l,c),a.slice(1).forEach(d=>{let{element:f}=d;u?.removeChild(f)})}};function ite(t){t.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&ote(t)}const ate=[ite,Qee],ste=t=>{t.documentElement&&ate.forEach(e=>{e(t)})},lte=Tr("quill:clipboard"),cte=[[Node.TEXT_NODE,Cte],[Node.TEXT_NODE,kC],["br",mte],[Node.ELEMENT_NODE,kC],[Node.ELEMENT_NODE,pte],[Node.ELEMENT_NODE,hte],[Node.ELEMENT_NODE,xte],["li",vte],["ol, ul",yte],["pre",gte],["tr",wte],["b",Up("bold")],["i",Up("italic")],["strike",Up("strike")],["style",bte]],ute=[Gee,K_].reduce((t,e)=>(t[e.keyName]=e,t),{}),DC=[Z_,yv,vv,eP,rP,iP].reduce((t,e)=>(t[e.keyName]=e,t),{});class dte extends dr{static DEFAULTS={matchers:[]};constructor(e,n){super(e,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],cte.concat(this.options.matchers??[]).forEach(r=>{let[o,i]=r;this.addMatcher(o,i)})}addMatcher(e,n){this.matchers.push([e,n])}convert(e){let{html:n,text:r}=e,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o[Wt.blotName])return new ge().insert(r||"",{[Wt.blotName]:o[Wt.blotName]});if(!n)return new ge().insert(r||"",o);const i=this.convertHTML(n);return ps(i,`
|
|
113
|
+
`)&&(i.ops[i.ops.length-1].attributes==null||o.table)?i.compose(new ge().retain(i.length()-1).delete(1)):i}normalizeHTML(e){ste(e)}convertHTML(e){const n=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(n);const r=n.body,o=new WeakMap,[i,a]=this.prepareMatching(r,o);return Sv(this.quill.scroll,r,i,a,o)}dangerouslyPasteHTML(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q.sources.API;if(typeof e=="string"){const o=this.convert({html:e,text:""});this.quill.setContents(o,n),this.quill.setSelection(0,Q.sources.SILENT)}else{const o=this.convert({html:n,text:""});this.quill.updateContents(new ge().retain(e).concat(o),r),this.quill.setSelection(e+o.length(),Q.sources.SILENT)}}onCaptureCopy(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:o,text:i}=this.onCopy(r,n);e.clipboardData?.setData("text/plain",i),e.clipboardData?.setData("text/html",o),n&&Cv({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
|
|
114
|
+
`)}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=e.clipboardData?.getData("text/html");let o=e.clipboardData?.getData("text/plain");if(!r&&!o){const a=e.clipboardData?.getData("text/uri-list");a&&(o=this.normalizeURIList(a))}const i=Array.from(e.clipboardData?.files||[]);if(!r&&i.length>0){this.quill.uploader.upload(n,i);return}if(r&&i.length>0){const a=new DOMParser().parseFromString(r,"text/html");if(a.body.childElementCount===1&&a.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(n,i);return}}this.onPaste(n,{html:r,text:o})}onCopy(e){const n=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:n}}onPaste(e,n){let{text:r,html:o}=n;const i=this.quill.getFormat(e.index),a=this.convert({text:r,html:o},i);lte.log("onPaste",a,{text:r,html:o});const s=new ge().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(s,Q.sources.USER),this.quill.setSelection(s.length()-e.length,Q.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,n){const r=[],o=[];return this.matchers.forEach(i=>{const[a,s]=i;switch(a){case Node.TEXT_NODE:o.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(e.querySelectorAll(a)).forEach(l=>{n.has(l)?n.get(l)?.push(s):n.set(l,[s])});break}}),[r,o]}}function Mo(t,e,n,r){return r.query(e)?t.reduce((o,i)=>{if(!i.insert)return o;if(i.attributes&&i.attributes[e])return o.push(i);const a=n?{[e]:n}:{};return o.insert(i.insert,{...a,...i.attributes})},new ge):t}function ps(t,e){let n="";for(let r=t.ops.length-1;r>=0&&n.length<e.length;--r){const o=t.ops[r];if(typeof o.insert!="string")break;n=o.insert+n}return n.slice(-1*e.length)===e}function Dr(t,e){if(!(t instanceof Element))return!1;const n=e.query(t);return n&&n.prototype instanceof on?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}function fte(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Dr(t.previousElementSibling,e)&&!Dr(t.nextElementSibling,e)}const al=new WeakMap;function aP(t){return t==null?!1:(al.has(t)||(t.tagName==="PRE"?al.set(t,!0):al.set(t,aP(t.parentNode))),al.get(t))}function Sv(t,e,n,r,o){return e.nodeType===e.TEXT_NODE?r.reduce((i,a)=>a(e,i,t),new ge):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,a)=>{let s=Sv(t,a,n,r,o);return a.nodeType===e.ELEMENT_NODE&&(s=n.reduce((l,c)=>c(a,l,t),s),s=(o.get(a)||[]).reduce((l,c)=>c(a,l,t),s)),i.concat(s)},new ge):new ge}function Up(t){return(e,n,r)=>Mo(n,t,!0,r)}function hte(t,e,n){const r=nr.keys(t),o=Bn.keys(t),i=Zr.keys(t),a={};return r.concat(o).concat(i).forEach(s=>{let l=n.query(s,be.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(t),a[l.attrName])||(l=ute[s],l!=null&&(l.attrName===s||l.keyName===s)&&(a[l.attrName]=l.value(t)||void 0),l=DC[s],l!=null&&(l.attrName===s||l.keyName===s)&&(l=DC[s],a[l.attrName]=l.value(t)||void 0))}),Object.entries(a).reduce((s,l)=>{let[c,u]=l;return Mo(s,c,u,n)},e)}function pte(t,e,n){const r=n.query(t);if(r==null)return e;if(r.prototype instanceof on){const o={},i=r.value(t);if(i!=null)return o[r.blotName]=i,new ge().insert(o,r.formats(t,n))}else if(r.prototype instanceof Fa&&!ps(e,`
|
|
115
|
+
`)&&e.insert(`
|
|
116
|
+
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Mo(e,r.blotName,r.formats(t,n),n);return e}function mte(t,e){return ps(e,`
|
|
117
|
+
`)||e.insert(`
|
|
118
|
+
`),e}function gte(t,e,n){const r=n.query("code-block"),o=r&&"formats"in r&&typeof r.formats=="function"?r.formats(t,n):!0;return Mo(e,"code-block",o,n)}function bte(){return new ge}function vte(t,e,n){const r=n.query(t);if(r==null||r.blotName!=="list"||!ps(e,`
|
|
119
|
+
`))return e;let o=-1,i=t.parentNode;for(;i!=null;)["OL","UL"].includes(i.tagName)&&(o+=1),i=i.parentNode;return o<=0?e:e.reduce((a,s)=>s.insert?s.attributes&&typeof s.attributes.indent=="number"?a.push(s):a.insert(s.insert,{indent:o,...s.attributes||{}}):a,new ge)}function yte(t,e,n){const r=t;let o=r.tagName==="OL"?"ordered":"bullet";const i=r.getAttribute("data-checked");return i&&(o=i==="true"?"checked":"unchecked"),Mo(e,"list",o,n)}function kC(t,e,n){if(!ps(e,`
|
|
120
|
+
`)){if(Dr(t,n)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert(`
|
|
121
|
+
`);if(e.length()>0&&t.nextSibling){let r=t.nextSibling;for(;r!=null;){if(Dr(r,n))return e.insert(`
|
|
122
|
+
`);const o=n.query(r);if(o&&o.prototype instanceof fn)return e.insert(`
|
|
123
|
+
`);r=r.firstChild}}}return e}function xte(t,e,n){const r={},o=t.style||{};return o.fontStyle==="italic"&&(r.italic=!0),o.textDecoration==="underline"&&(r.underline=!0),o.textDecoration==="line-through"&&(r.strike=!0),(o.fontWeight?.startsWith("bold")||parseInt(o.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((i,a)=>{let[s,l]=a;return Mo(i,s,l,n)},e),parseFloat(o.textIndent||0)>0?new ge().insert(" ").concat(e):e}function wte(t,e,n){const r=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;if(r!=null){const i=Array.from(r.querySelectorAll("tr")).indexOf(t)+1;return Mo(e,"table",i,n)}return e}function Cte(t,e,n){let r=t.data;if(t.parentElement?.tagName==="O:P")return e.insert(r.trim());if(!aP(t)){if(r.trim().length===0&&r.includes(`
|
|
124
|
+
`)&&!fte(t,n))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(t.previousSibling==null&&t.parentElement!=null&&Dr(t.parentElement,n)||t.previousSibling instanceof Element&&Dr(t.previousSibling,n))&&(r=r.replace(/^ /,"")),(t.nextSibling==null&&t.parentElement!=null&&Dr(t.parentElement,n)||t.nextSibling instanceof Element&&Dr(t.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Ste extends dr{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,n){super(e,n),this.quill.on(Q.events.EDITOR_CHANGE,(r,o,i,a)=>{r===Q.events.SELECTION_CHANGE?o&&a!==Q.sources.SILENT&&(this.currentRange=o):r===Q.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===Q.sources.USER?this.record(o,i):this.transform(o)),this.currentRange=ug(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(e,n){if(this.stack[e].length===0)return;const r=this.stack[e].pop();if(!r)return;const o=this.quill.getContents(),i=r.delta.invert(o);this.stack[n].push({delta:i,range:ug(r.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,Q.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,n){if(e.ops.length===0)return;this.stack.redo=[];let r=e.invert(n),o=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(r=r.compose(a.delta),o=a.range)}else this.lastRecorded=i;r.length()!==0&&(this.stack.undo.push({delta:r,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){jC(this.stack.undo,e),jC(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,Q.sources.USER);else{const n=Ite(this.quill.scroll,e.delta);this.quill.setSelection(n,Q.sources.USER)}}}function jC(t,e){let n=e;for(let r=t.length-1;r>=0;r-=1){const o=t[r];t[r]={delta:n.transform(o.delta,!0),range:o.range&&ug(o.range,n)},n=o.delta.transform(n),t[r].delta.length()===0&&t.splice(r,1)}}function Ete(t,e){const n=e.ops[e.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
|
|
125
|
+
`):n.attributes!=null?Object.keys(n.attributes).some(r=>t.query(r,be.BLOCK)!=null):!1}function Ite(t,e){const n=e.reduce((o,i)=>o+(i.delete||0),0);let r=e.length()-n;return Ete(t,e)&&(r-=1),r}function ug(t,e){if(!t)return t;const n=e.transformPosition(t.index),r=e.transformPosition(t.index+t.length);return{index:n,length:r-n}}class sP extends dr{constructor(e,n){super(e,n),e.root.addEventListener("drop",r=>{r.preventDefault();let o=null;if(document.caretRangeFromPoint)o=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);o=document.createRange(),o.setStart(a.offsetNode,a.offset),o.setEnd(a.offsetNode,a.offset)}const i=o&&e.selection.normalizeNative(o);if(i){const a=e.selection.normalizedToRange(i);r.dataTransfer?.files&&this.upload(a,r.dataTransfer.files)}})}upload(e,n){const r=[];Array.from(n).forEach(o=>{o&&this.options.mimetypes?.includes(o.type)&&r.push(o)}),r.length>0&&this.options.handler.call(this,e,r)}}sP.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const n=e.map(r=>new Promise(o=>{const i=new FileReader;i.onload=()=>{o(i.result)},i.readAsDataURL(r)}));Promise.all(n).then(r=>{const o=r.reduce((i,a)=>i.insert({image:a}),new ge().retain(t.index).delete(t.length));this.quill.updateContents(o,me.sources.USER),this.quill.setSelection(t.index+r.length,me.sources.SILENT)})}};const Ate=["insertText","insertReplacementText"];class Tte extends dr{constructor(e,n){super(e,n),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(Q.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Cv({range:e,quill:this.quill})}replaceText(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(n){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new ge().retain(e.index).insert(n,r),Q.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+n.length,0,Q.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!Ate.includes(e.inputType))return;const n=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=Ote(e);if(r==null)return;const o=this.quill.selection.normalizeNative(n),i=o?this.quill.selection.normalizedToRange(o):null;i&&this.replaceText(i,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Ote(t){return typeof t.data=="string"?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}const Nte=/Mac/i.test(navigator.platform),Rte=100,_te=t=>!!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||Nte&&t.key==="a"&&t.ctrlKey===!0);class Pte extends dr{isListening=!1;selectionChangeDeadline=0;constructor(e,n){super(e,n),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,n){let{line:r,event:o}=n;if(!(r instanceof Nn)||!r.uiNode)return!0;const i=getComputedStyle(r.domNode).direction==="rtl";return i&&o.key!=="ArrowRight"||!i&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(o.shiftKey?1:0),Q.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&_te(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Rte,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const n=e.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const r=this.quill.scroll.find(n.startContainer);if(!(r instanceof Nn)||!r.uiNode)return;const o=document.createRange();o.setStartAfter(r.uiNode),o.setEndAfter(r.uiNode),e.removeAllRanges(),e.addRange(o)}}Q.register({"blots/block":Nt,"blots/block/embed":fn,"blots/break":Fn,"blots/container":_o,"blots/cursor":En,"blots/embed":gv,"blots/inline":$t,"blots/scroll":Fee,"blots/text":Pn,"modules/clipboard":dte,"modules/history":Ste,"modules/keyboard":du,"modules/uploader":sP,"modules/input":Tte,"modules/uiNode":Pte});class Mte extends Bn{add(e,n){let r=0;if(n==="+1"||n==="-1"){const o=this.value(e)||0;r=n==="+1"?o+1:o-1}else typeof n=="number"&&(r=n);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,n){return super.canAdd(e,n)||super.canAdd(e,parseInt(n,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Dte=new Mte("indent","ql-indent",{scope:be.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class kte extends Nt{static blotName="blockquote";static tagName="blockquote"}class jte extends Nt{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}class ms extends _o{}ms.blotName="list-container";ms.tagName="OL";class gs extends Nt{static create(e){const n=super.create();return n.setAttribute("data-list",e),n}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Q.register(ms)}constructor(e,n){super(e,n);const r=n.ownerDocument.createElement("span"),o=i=>{if(!e.isEnabled())return;const a=this.statics.formats(n,e);a==="checked"?(this.format("list","unchecked"),i.preventDefault()):a==="unchecked"&&(this.format("list","checked"),i.preventDefault())};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),this.attachUI(r)}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(e,n)}}gs.blotName="list";gs.tagName="LI";ms.allowedChildren=[gs];gs.requiredContainer=ms;class Ev extends $t{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class Lte extends Ev{static blotName="italic";static tagName=["EM","I"]}class Ql extends $t{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const n=super.create(e);return n.setAttribute("href",this.sanitize(e)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(e){return e.getAttribute("href")}static sanitize(e){return lP(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,n){e!==this.statics.blotName||!n?super.format(e,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}function lP(t,e){const n=document.createElement("a");n.href=t;const r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}class Bte extends $t{static blotName="script";static tagName=["SUB","SUP"];static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}class Fte extends Ev{static blotName="strike";static tagName=["S","STRIKE"]}class Gte extends $t{static blotName="underline";static tagName="U"}class $te extends gv{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(e);return typeof e=="string"&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}const LC=["alt","height","width"];class Wte extends on{static blotName="image";static tagName="IMG";static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("src",this.sanitize(e)),n}static formats(e){return LC.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return lP(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,n){LC.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}}const BC=["height","width"];class Vte extends fn{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const n=super.create(e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(e)),n}static formats(e){return BC.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static sanitize(e){return Ql.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,n){BC.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}const fa=new Bn("code-token","hljs",{scope:be.INLINE});class Ir extends $t{static formats(e,n){for(;e!=null&&e!==n.domNode;){if(e.classList&&e.classList.contains(Wt.className))return super.formats(e,n);e=e.parentNode}}constructor(e,n,r){super(e,n,r),fa.add(this.domNode,r)}format(e,n){e!==Ir.blotName?super.format(e,n):n?fa.add(this.domNode,n):(fa.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),fa.value(this.domNode)||this.unwrap()}}Ir.blotName="code-token";Ir.className="ql-token";class dn extends Wt{static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("data-language",e),n}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(e,n)}replaceWith(e,n){return this.formatAt(0,this.length(),Ir.blotName,!1),super.replaceWith(e,n)}}class ma extends Po{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,n){e===dn.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,n)}))}formatAt(e,n,r,o){r===dn.blotName&&(this.forceNext=!0),super.formatAt(e,n,r,o)}highlight(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const o=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
|
|
126
|
+
`)}
|
|
127
|
+
`,i=dn.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==o){if(o.trim().length>0||this.cachedText==null){const a=this.children.reduce((l,c)=>l.concat(X_(c,!1)),new ge),s=e(o,i);a.diff(s).reduce((l,c)=>{let{retain:u,attributes:d}=c;return u?(d&&Object.keys(d).forEach(f=>{[dn.blotName,Ir.blotName].includes(f)&&this.formatAt(l,u,f,d[f])}),l+u):l},0)}this.cachedText=o,this.forceNext=!1}}html(e,n){const[r]=this.children.find(e);return`<pre data-language="${r?dn.formats(r.domNode):"plain"}">
|
|
128
|
+
${uu(this.code(e,n))}
|
|
129
|
+
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=dn.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}ma.allowedChildren=[dn];dn.requiredContainer=ma;dn.allowedChildren=[Ir,En,Pn,Fn];const Hte=(t,e,n)=>{if(typeof t.versionString=="string"){const r=t.versionString.split(".")[0];if(parseInt(r,10)>=11)return t.highlight(n,{language:e}).value}return t.highlight(e,n).value};class cP extends dr{static register(){Q.register(Ir,!0),Q.register(dn,!0),Q.register(ma,!0)}constructor(e,n){if(super(e,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,o)=>{let{key:i}=o;return r[i]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Q.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof ma))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:o,label:i}=r;const a=n.ownerDocument.createElement("option");a.textContent=i,a.setAttribute("value",o),n.appendChild(a)}),n.addEventListener("change",()=>{e.format(dn.blotName,n.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(n),e.children.head&&(n.value=dn.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(Q.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Q.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(ma):[e]).forEach(i=>{i.highlight(this.highlightBlot,n)}),this.quill.update(Q.sources.SILENT),r!=null&&this.quill.setSelection(r,Q.sources.SILENT)}highlightBlot(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return uu(e).split(`
|
|
130
|
+
`).reduce((o,i,a)=>(a!==0&&o.insert(`
|
|
131
|
+
`,{[Wt.blotName]:n}),o.insert(i)),new ge);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Wt.className),r.innerHTML=Hte(this.options.hljs,n,e),Sv(this.quill.scroll,r,[(o,i)=>{const a=fa.value(o);return a?i.compose(new ge().retain(i.length(),{[Ir.blotName]:a})):i}],[(o,i)=>o.data.split(`
|
|
132
|
+
`).reduce((a,s,l)=>(l!==0&&a.insert(`
|
|
133
|
+
`,{[Wt.blotName]:n}),a.insert(s)),i)],new WeakMap)}}cP.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class In extends Nt{static blotName="table";static tagName="TD";static create(e){const n=super.create();return e?n.setAttribute("data-row",e):n.setAttribute("data-row",Iv()),n}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,n){e===In.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(e,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class xo extends _o{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return e.table===n.table&&e.table===r.table&&e.table===o.table}return!1}optimize(e){super.optimize(e),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),o=n.next.formats();if(r.table!==o.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Lr extends _o{static blotName="table-body";static tagName="TBODY"}class ec extends _o{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(xo),n=e.reduce((r,o)=>Math.max(o.children.length,r),0);e.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let o;r.children.head!=null&&(o=In.formats(r.children.head.domNode));const i=this.scroll.create(In.blotName,o);r.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(n=>n.children.at(e))}deleteColumn(e){const[n]=this.descendant(Lr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e);o?.remove()})}insertColumn(e){const[n]=this.descendant(Lr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e),i=In.formats(r.children.head.domNode),a=this.scroll.create(In.blotName,i);r.insertBefore(a,o)})}insertRow(e){const[n]=this.descendant(Lr);if(n==null||n.children.head==null)return;const r=Iv(),o=this.scroll.create(xo.blotName);n.children.head.children.forEach(()=>{const a=this.scroll.create(In.blotName,r);o.appendChild(a)});const i=n.children.at(e);n.insertBefore(o,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(n=>n)}}ec.allowedChildren=[Lr];Lr.requiredContainer=ec;Lr.allowedChildren=[xo];xo.requiredContainer=Lr;xo.allowedChildren=[In];In.requiredContainer=xo;function Iv(){return`row-${Math.random().toString(36).slice(2,6)}`}class qte extends dr{static register(){Q.register(In),Q.register(xo),Q.register(Lr),Q.register(ec)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(ec).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,n]=this.getTable();n!=null&&(e.deleteColumn(n.cellOffset()),this.quill.update(Q.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Q.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const n=e.offset();e.remove(),this.quill.update(Q.sources.USER),this.quill.setSelection(n,Q.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(e.index);if(n==null||n.statics.blotName!==In.blotName)return[null,null,null,-1];const o=n.parent;return[o.parent.parent,o,n,r]}insertColumn(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=i.cellOffset();r.insertColumn(a+e),this.quill.update(Q.sources.USER);let s=o.rowOffset();e===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,Q.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=o.rowOffset();r.insertRow(a+e),this.quill.update(Q.sources.USER),e>0?this.quill.setSelection(n,Q.sources.SILENT):this.quill.setSelection(n.index+o.children.length,n.length,Q.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,n){const r=this.quill.getSelection();if(r==null)return;const o=new Array(e).fill(0).reduce(i=>{const a=new Array(n).fill(`
|
|
134
|
+
`).join("");return i.insert(a,{table:Iv()})},new ge().retain(r.index));this.quill.updateContents(o,Q.sources.USER),this.quill.setSelection(r.index,Q.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Q.events.SCROLL_OPTIMIZE,e=>{e.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(Q.events.TEXT_CHANGE,(r,o,i)=>{i===Q.sources.USER&&this.balanceTables()}),!0):!1)})}}const FC=Tr("quill:toolbar");class Av extends dr{constructor(e,n){if(super(e,n),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),zte(r,this.options.container),e.container?.parentNode?.insertBefore(r,e.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){FC.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const o=this.options.handlers?.[r];o&&this.addHandler(r,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(Q.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(e,n){this.handlers[e]=n}attach(e){let n=Array.from(e.classList).find(o=>o.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){FC.warn("ignoring attaching to nonexistent format",n,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,o=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const s=e.options[e.selectedIndex];s.hasAttribute("selected")?i=!1:i=s.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),o.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof on){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new ge().retain(a.index).delete(a.length).insert({[n]:i}),Q.sources.USER)}else this.quill.format(n,i,Q.sources.USER);this.update(a)}),this.controls.push([n,e])}update(e){const n=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[o,i]=r;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(n[o]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(n[o])){let s=n[o];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${s}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=n[o],s=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{const a=n[o]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}}Av.DEFAULTS={};function GC(t,e,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${e}: ${n}`)):r.setAttribute("aria-label",e),t.appendChild(r)}function zte(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(o=>{if(typeof o=="string")GC(r,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?Xte(r,i,a):GC(r,i,a)}}),t.appendChild(r)})}function Xte(t,e,n){const r=document.createElement("select");r.classList.add(`ql-${e}`),n.forEach(o=>{const i=document.createElement("option");o!==!1?i.setAttribute("value",String(o)):i.setAttribute("selected","selected"),r.appendChild(i)}),t.appendChild(r)}Av.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(t!=null)if(t.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(n=>{this.quill.scroll.query(n,be.INLINE)!=null&&this.quill.format(n,!1,Q.sources.USER)})}else this.quill.removeFormat(t.index,t.length,Q.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();t==="rtl"&&e==null?this.quill.format("align","right",Q.sources.USER):!t&&e==="right"&&this.quill.format("align",!1,Q.sources.USER),this.quill.format("direction",t,Q.sources.USER)},indent(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0,10);if(t==="+1"||t==="-1"){let o=t==="+1"?1:-1;n.direction==="rtl"&&(o*=-1),this.quill.format("indent",r+o,Q.sources.USER)}},link(t){t===!0&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Q.sources.USER)},list(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e);t==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,Q.sources.USER):this.quill.format("list","unchecked",Q.sources.USER):this.quill.format("list",t,Q.sources.USER)}}};const Yte='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Ute='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Zte='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Jte='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Kte='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Qte='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',ene='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',tne='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',$C='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',nne='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',rne='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',one='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',ine='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',ane='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',sne='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',lne='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',cne='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',une='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',dne='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',fne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',hne='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',pne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',mne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',gne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',bne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',vne='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',yne='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',xne='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',wne='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',Cne='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',Sne='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',Ene='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',Ine='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',$a={align:{"":Yte,center:Ute,right:Zte,justify:Jte},background:Kte,blockquote:Qte,bold:ene,clean:tne,code:$C,"code-block":$C,color:nne,direction:{"":rne,rtl:one},formula:ine,header:{1:ane,2:sne,3:lne,4:cne,5:une,6:dne},italic:fne,image:hne,indent:{"+1":pne,"-1":mne},link:gne,list:{bullet:bne,check:vne,ordered:yne},script:{sub:xne,super:wne},strike:Cne,table:Sne,underline:Ene,video:Ine},Ane='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let WC=0;function VC(t,e){t.setAttribute(e,`${t.getAttribute(e)!=="true"}`)}class fu{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),VC(this.label,"aria-expanded"),VC(this.options,"aria-hidden")}buildItem(e){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&n.setAttribute("data-value",r),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",o=>{switch(o.key){case"Enter":this.selectItem(n,!0),o.preventDefault();break;case"Escape":this.escape(),o.preventDefault();break}}),n}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=Ane,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${WC}`,WC+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);e.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r?.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class uP extends fu{constructor(e,n){super(e),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const n=super.buildItem(e);return n.style.backgroundColor=e.getAttribute("value")||"",n}selectItem(e,n){super.selectItem(e,n);const r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=o:r.style.fill=o)}}class dP extends fu{constructor(e,n){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,n){super.selectItem(e,n);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Tne=t=>{const{overflowY:e}=getComputedStyle(t,null);return e!=="visible"&&e!=="clip"};class fP{constructor(e,n){this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Tne(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const n=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const o=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>o.right&&(a=o.right-i.right,this.root.style.left=`${n+a}px`),i.left<o.left&&(a=o.left-i.left,this.root.style.left=`${n+a}px`),i.bottom>o.bottom){const s=i.bottom-i.top,l=e.bottom-e.top+s;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const One=[!1,"center","right","justify"],Nne=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Rne=[!1,"serif","monospace"],_ne=["1","2","3",!1],Pne=["small",!1,"large","huge"];class bs extends ki{constructor(e,n){super(e,n);const r=o=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(o.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(o.target)||i.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const n=super.addModule(e);return e==="toolbar"&&this.extendToolbar(n),n}buildButtons(e,n){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")r.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")r.innerHTML=n[i];else{const a=r.value||"";a!=null&&n[i][a]&&(r.innerHTML=n[i][a])}})})}buildPickers(e,n){this.pickers=Array.from(e).map(o=>{if(o.classList.contains("ql-align")&&(o.querySelector("option")==null&&ea(o,One),typeof n.align=="object"))return new dP(o,n.align);if(o.classList.contains("ql-background")||o.classList.contains("ql-color")){const i=o.classList.contains("ql-background")?"background":"color";return o.querySelector("option")==null&&ea(o,Nne,i==="background"?"#ffffff":"#000000"),new uP(o,n[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?ea(o,Rne):o.classList.contains("ql-header")?ea(o,_ne):o.classList.contains("ql-size")&&ea(o,Pne)),new fu(o)});const r=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(me.events.EDITOR_CHANGE,r)}}bs.DEFAULTS=jr({},ki.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");t==null&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class hP extends fP{constructor(e,n){super(e,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,me.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,me.sources.USER)),this.quill.root.scrollTop=n;break}case"video":e=Mne(e);case"formula":{if(!e)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,me.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",me.sources.USER),this.quill.setSelection(r+2,me.sources.USER)}break}}this.textbox.value="",this.hide()}}function Mne(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}function ea(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const o=document.createElement("option");r===n?o.setAttribute("selected","selected"):o.setAttribute("value",String(r)),t.appendChild(o)})}const Dne=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class kne extends hP{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,n){super(e,n),this.quill.on(me.events.EDITOR_CHANGE,(r,o,i,a)=>{if(r===me.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===me.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(o.index,o.length);if(s.length===1){const l=this.quill.getBounds(o);l!=null&&this.position(l)}else{const l=s[s.length-1],c=this.quill.getIndex(l),u=Math.min(l.length()-1,o.index+o.length-c),d=this.quill.getBounds(new yo(c,u));d!=null&&this.position(d)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(me.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const n=this.quill.getBounds(e);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(e){const n=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}class pP extends bs{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Dne),super(e,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new kne(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),$a),this.buildPickers(e.container.querySelectorAll("select"),$a))}}pP.DEFAULTS=jr({},bs.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Q.sources.USER)}}}}});const jne=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Lne extends hP{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,me.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(me.events.SELECTION_CHANGE,(e,n,r)=>{if(e!=null){if(e.length===0&&r===me.sources.USER){const[o,i]=this.quill.scroll.descendant(Ql,e.index);if(o!=null){this.linkRange=new yo(e.index-i,o.length());const a=Ql.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const s=this.quill.getBounds(this.linkRange);s!=null&&this.position(s);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class mP extends bs{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=jne),super(e,n),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),$a),this.buildPickers(e.container.querySelectorAll("select"),$a),this.tooltip=new Lne(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{e.handlers.link.call(e,!r.format.link)}))}}mP.DEFAULTS=jr({},bs.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const e=this.quill.getSelection();if(e==null||e.length===0)return;let n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,Q.sources.USER)}}}}});Q.register({"attributors/attribute/direction":K_,"attributors/class/align":U_,"attributors/class/background":Wee,"attributors/class/color":$ee,"attributors/class/direction":Q_,"attributors/class/font":nP,"attributors/class/size":oP,"attributors/style/align":Z_,"attributors/style/background":yv,"attributors/style/color":vv,"attributors/style/direction":eP,"attributors/style/font":rP,"attributors/style/size":iP},!0);Q.register({"formats/align":U_,"formats/direction":Q_,"formats/indent":Dte,"formats/background":yv,"formats/color":vv,"formats/font":nP,"formats/size":oP,"formats/blockquote":kte,"formats/code-block":Wt,"formats/header":jte,"formats/list":gs,"formats/bold":Ev,"formats/code":xv,"formats/italic":Lte,"formats/link":Ql,"formats/script":Bte,"formats/strike":Fte,"formats/underline":Gte,"formats/formula":$te,"formats/image":Wte,"formats/video":Vte,"modules/syntax":cP,"modules/table":qte,"modules/toolbar":Av,"themes/bubble":pP,"themes/snow":mP,"ui/icons":$a,"ui/picker":fu,"ui/icon-picker":dP,"ui/color-picker":uP,"ui/tooltip":fP},!0);const gP=O.forwardRef(({readOnly:t,defaultValue:e,onTextChange:n,onSelectionChange:r,theme:o="snow"},i)=>{const a=O.useRef(null),s=O.useRef(e),l=O.useRef(n),c=O.useRef(r),u=O.useRef(null);return O.useLayoutEffect(()=>{l.current=n,c.current=r}),O.useEffect(()=>{i&&typeof i=="object"&&i.current&&i.current.enable(!t)},[i,t]),O.useEffect(()=>{const d=a.current;if(!d)return;const f=d.appendChild(d.ownerDocument.createElement("div")),h=new Q(f,{theme:o});return u.current=h,i&&typeof i=="object"&&(i.current=h),s.current&&h.setContents(s.current),h.on(Q.events.TEXT_CHANGE,()=>{const g=h.getSemanticHTML();l.current?.(g)}),h.on(Q.events.SELECTION_CHANGE,(g,m,b)=>{c.current?.(g,m,b)}),()=>{u.current=null,i&&typeof i=="object"&&(i.current=null),d.innerHTML=""}},[i,o]),p.jsx("div",{ref:a})});gP.displayName="QuillEditor";exports.Accordion=BD;exports.AccordionContent=$D;exports.AccordionItem=FD;exports.AccordionTrigger=GD;exports.AspectRatio=KD;exports.Avatar=hk;exports.AvatarFallback=mk;exports.AvatarImage=pk;exports.Badge=YS;exports.BaseButton=yk;exports.Breadcrumb=xk;exports.BreadcrumbEllipsis=Ak;exports.BreadcrumbItem=Ck;exports.BreadcrumbLink=Sk;exports.BreadcrumbList=wk;exports.BreadcrumbPage=Ek;exports.BreadcrumbSeparator=Ik;exports.Button=nn;exports.Calendar=pE;exports.CalendarDayButton=mE;exports.CampaignTitle=nL;exports.Card=rL;exports.CardAction=sL;exports.CardContent=lL;exports.CardDescription=aL;exports.CardFooter=cL;exports.CardHeader=oL;exports.CardTitle=iL;exports.Carousel=HL;exports.CarouselContent=qL;exports.CarouselItem=zL;exports.CarouselNext=YL;exports.CarouselPrevious=XL;exports.Case=An;exports.ChartContainer=E3;exports.ChartLegend=T3;exports.ChartLegendContent=O3;exports.ChartStyle=cI;exports.ChartTooltip=I3;exports.ChartTooltipContent=A3;exports.Checkbox=vI;exports.CheckboxField=SG;exports.Collapsible=M3;exports.CollapsibleContent=k3;exports.CollapsibleTrigger=D3;exports.ComboboxField=Am;exports.Command=fb;exports.CommandDialog=gG;exports.CommandEmpty=aA;exports.CommandGroup=sA;exports.CommandInput=oA;exports.CommandItem=wm;exports.CommandList=iA;exports.CommandSeparator=bG;exports.CommandShortcut=vG;exports.ComponentSwitch=ci;exports.ConfirmationDialog=EG;exports.ContentWrapper=yG;exports.CreatableActionIcons=xG;exports.DateRangePicker=xW;exports.DebouncedInput=wW;exports.Default=so;exports.Dialog=sb;exports.DialogClose=xm;exports.DialogContent=lb;exports.DialogDescription=db;exports.DialogFooter=rA;exports.DialogHeader=cb;exports.DialogOverlay=nA;exports.DialogPortal=tA;exports.DialogTitle=ub;exports.DialogTrigger=eA;exports.Drawer=ZW;exports.DrawerClose=KW;exports.DrawerContent=QW;exports.DrawerDescription=rV;exports.DrawerFooter=tV;exports.DrawerHeader=eV;exports.DrawerOverlay=hT;exports.DrawerPortal=fT;exports.DrawerTitle=nV;exports.DrawerTrigger=JW;exports.DropdownMenu=cO;exports.DropdownMenuCheckboxItem=_m;exports.DropdownMenuContent=dO;exports.DropdownMenuGroup=MH;exports.DropdownMenuItem=DH;exports.DropdownMenuLabel=LH;exports.DropdownMenuPortal=PH;exports.DropdownMenuRadioGroup=kH;exports.DropdownMenuRadioItem=jH;exports.DropdownMenuSeparator=BH;exports.DropdownMenuShortcut=FH;exports.DropdownMenuSub=GH;exports.DropdownMenuSubContent=WH;exports.DropdownMenuSubTrigger=$H;exports.DropdownMenuTrigger=uO;exports.Empty=VH;exports.EmptyContent=UH;exports.EmptyDescription=YH;exports.EmptyHeader=HH;exports.EmptyMedia=zH;exports.EmptyTitle=XH;exports.ErrorMessage=fO;exports.FieldDescription=Nc;exports.Form=gW;exports.FormCombobox=bq;exports.FormControl=Tb;exports.FormDescription=QA;exports.FormField=ZA;exports.FormItem=JA;exports.FormLabel=KA;exports.FormMessage=eT;exports.FormattedDate=yW;exports.HoverCard=Nq;exports.HoverCardContent=_q;exports.HoverCardTrigger=Rq;exports.Icon=Pq;exports.Input=jc;exports.InputField=Mq;exports.InputOTP=Yq;exports.Kbd=Uq;exports.KbdGroup=Zq;exports.Label=Ln;exports.MultiSelectDropdown=Jq;exports.NativeSelect=Kq;exports.NativeSelectOptGroup=ez;exports.NativeSelectOption=Qq;exports.Pagination=tz;exports.PaginationContent=nz;exports.PaginationEllipsis=az;exports.PaginationItem=rz;exports.PaginationLink=qb;exports.PaginationNext=iz;exports.PaginationPrevious=oz;exports.Popover=Cb;exports.PopoverAnchor=nW;exports.PopoverContent=Eb;exports.PopoverTrigger=Sb;exports.QuillEditor=gP;exports.RadioGroup=yz;exports.RadioGroupItem=xz;exports.ScrollArea=kz;exports.ScrollBar=cN;exports.Select=FN;exports.SelectContent=WN;exports.SelectField=w6;exports.SelectGroup=b6;exports.SelectItem=VN;exports.SelectLabel=v6;exports.SelectMultiField=iY;exports.SelectScrollDownButton=qN;exports.SelectScrollUpButton=HN;exports.SelectSeparator=y6;exports.SelectTrigger=$N;exports.SelectValue=GN;exports.Separator=XN;exports.Sheet=PR;exports.SheetClose=sY;exports.SheetContent=MR;exports.SheetDescription=jR;exports.SheetFooter=uY;exports.SheetHeader=DR;exports.SheetTitle=kR;exports.SheetTrigger=aY;exports.Sidebar=yY;exports.SidebarContent=TY;exports.SidebarFooter=IY;exports.SidebarGroup=OY;exports.SidebarGroupAction=RY;exports.SidebarGroupContent=_Y;exports.SidebarGroupLabel=NY;exports.SidebarHeader=EY;exports.SidebarInput=SY;exports.SidebarInset=CY;exports.SidebarMenu=PY;exports.SidebarMenuAction=jY;exports.SidebarMenuBadge=LY;exports.SidebarMenuButton=kY;exports.SidebarMenuItem=MY;exports.SidebarMenuSkeleton=BY;exports.SidebarMenuSub=FY;exports.SidebarMenuSubButton=$Y;exports.SidebarMenuSubItem=GY;exports.SidebarProvider=vY;exports.SidebarRail=wY;exports.SidebarSeparator=AY;exports.SidebarTrigger=xY;exports.Skeleton=qm;exports.Slider=sU;exports.Spinner=lU;exports.Switch=mU;exports.Table=AU;exports.TableBody=NU;exports.TableCaption=MU;exports.TableCell=PU;exports.TableFooter=DU;exports.TableHead=OU;exports.TableHeadRow=RU;exports.TableHeader=TU;exports.TableRow=_U;exports.Tabs=CU;exports.TabsContent=IU;exports.TabsList=SU;exports.TabsTrigger=EU;exports.TextAreaField=kU;exports.Textarea=h_;exports.Tooltip=Wb;exports.TooltipContent=$c;exports.TooltipField=TO;exports.TooltipProvider=$b;exports.TooltipTrigger=Vb;exports.cn=L;
|