@rovula/ui 0.1.8 → 0.1.10
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/cjs/bundle.css +0 -10
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +4 -0
- package/dist/cjs/types/components/Form/ValidationHintList.d.ts +4 -1
- package/dist/cjs/types/components/InputFilter/InputFilter.stories.d.ts +4 -0
- package/dist/cjs/types/components/MaskedTextInput/MaskedTextInput.d.ts +4 -0
- package/dist/cjs/types/components/MaskedTextInput/MaskedTextInput.stories.d.ts +8 -0
- package/dist/cjs/types/components/PasswordInput/PasswordInput.stories.d.ts +4 -0
- package/dist/cjs/types/components/Search/Search.stories.d.ts +4 -0
- package/dist/cjs/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/cjs/types/components/TextArea/TextArea.stories.d.ts +4 -0
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +8 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +20 -0
- package/dist/components/Form/ValidationHintList.js +9 -9
- package/dist/components/OtpInput/OtpInput.js +1 -1
- package/dist/components/TextArea/TextArea.js +32 -3
- package/dist/components/TextArea/TextArea.stories.js +29 -0
- package/dist/components/TextInput/TextInput.js +38 -2
- package/dist/components/TextInput/TextInput.stories.js +28 -0
- package/dist/esm/bundle.css +0 -10
- package/dist/esm/bundle.js +2 -2
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +4 -0
- package/dist/esm/types/components/Form/ValidationHintList.d.ts +4 -1
- package/dist/esm/types/components/InputFilter/InputFilter.stories.d.ts +4 -0
- package/dist/esm/types/components/MaskedTextInput/MaskedTextInput.d.ts +4 -0
- package/dist/esm/types/components/MaskedTextInput/MaskedTextInput.stories.d.ts +8 -0
- package/dist/esm/types/components/PasswordInput/PasswordInput.stories.d.ts +4 -0
- package/dist/esm/types/components/Search/Search.stories.d.ts +4 -0
- package/dist/esm/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/esm/types/components/TextArea/TextArea.stories.d.ts +4 -0
- package/dist/esm/types/components/TextInput/TextInput.d.ts +8 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +20 -0
- package/dist/index.d.ts +24 -1
- package/dist/src/theme/global.css +0 -13
- package/package.json +1 -1
- package/src/components/Form/ValidationHintList.tsx +24 -11
- package/src/components/OtpInput/OtpInput.tsx +22 -9
- package/src/components/TextArea/TextArea.stories.tsx +108 -0
- package/src/components/TextArea/TextArea.tsx +52 -1
- package/src/components/TextInput/TextInput.stories.tsx +120 -5
- package/src/components/TextInput/TextInput.tsx +65 -0
package/dist/cjs/bundle.js
CHANGED
|
@@ -9244,7 +9244,7 @@
|
|
|
9244
9244
|
*
|
|
9245
9245
|
* This source code is licensed under the ISC license.
|
|
9246
9246
|
* See the LICENSE file in the root directory of this source tree.
|
|
9247
|
-
*/const xme=__("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var _me=Object.freeze({__proto__:null,default:xme});const Mme=e.forwardRef(((r,n)=>{var{id:a,label:o,size:l="md",rounded:i="normal",variant:s="outline",type:c="text",iconMode:d="solid",helperText:u,errorMessage:h,warningMessage:p,status:f,fullwidth:v=!0,disabled:m=!1,error:y=!1,warning:g=!1,required:k=!0,isFloatingLabel:b=!0,keepCloseIconOnValue:w=!1,keepFooterSpace:x=!0,hasClearIcon:_=!0,hasSearchIcon:M=!1,startIcon:j,endIcon:O,labelClassName:E,onClickStartIcon:z,onClickEndIcon:C,renderStartIcon:P,renderEndIcon:R,classes:A}=r,L=o_(r,["id","label","size","rounded","variant","type","iconMode","helperText","errorMessage","warningMessage","status","fullwidth","disabled","error","warning","required","isFloatingLabel","keepCloseIconOnValue","keepFooterSpace","hasClearIcon","hasSearchIcon","startIcon","endIcon","labelClassName","onClickStartIcon","onClickEndIcon","renderStartIcon","renderEndIcon","classes"]);const I=e.useRef(null),V=a||`${c}-${o}-input`,H=!!j||!!P,S=!!O||!!R,Z=f||(y||h?"error":g||p?"warning":"default"),N="error"===Z,q="warning"===Z,D="error"===Z?h:"warning"===Z?p:u,B=u_({size:l,rounded:i,variant:s,fullwidth:v,disabled:m,error:N,warning:q,hasSearchIcon:"flat"===d&&H||M,hasClearIcon:"flat"===d&&S||_,leftSectionIcon:"solid"===d&&H,rightSectionIcon:"solid"===d&&S}),F=h_({size:l,disabled:m,error:N,hasSearchIcon:"flat"===d&&H||M,hasLeftSectionIcon:"solid"===d&&H,isFloatingLabel:b}),T=p_({size:l,error:N,warning:q,disabled:m}),W=v_({size:l}),U=m_({size:l}),G=y_({size:l}),$=g_({size:l}),Y=k_({size:l,rounded:i,error:N,warning:q,position:"start"}),K=k_({size:l,rounded:i,error:N,warning:q,position:"end"});e.useImperativeHandle(n,(()=>null==I?void 0:I.current));const X=e.useCallback((()=>{I.current&&(I.current.value="",L.onChange&&(new Event("input",{bubbles:!0}),L.onChange({target:{value:""}})))}),[L.onChange]),Q=e.useCallback((()=>{m||(null==z||z(),I.current&&I.current.focus())}),[m,z]),J=e.useCallback((()=>{m||(null==C||C(),I.current&&I.current.focus())}),[m,C]),ee=e.useMemo((()=>{if(H)return P?t.jsx("div",{className:s_(U,"flex",null==A?void 0:A.iconSearchWrapper),children:P()}):"flat"===d?t.jsx("div",{className:s_(U,null==A?void 0:A.iconSearchWrapper),children:t.jsx("div",{className:s_(G,null==A?void 0:A.icon),onClick:Q,children:j})}):t.jsx("div",{className:s_(Y,null==A?void 0:A.startIconWrapper),onClick:Q,children:j})}),[H,j,d,U,Y,G,P,Q]),te=e.useMemo((()=>{if(S)return R?t.jsx("div",{className:s_(W,"flex",null==A?void 0:A.iconWrapper),children:R()}):"flat"===d?t.jsx("div",{className:s_(W,"flex",null==A?void 0:A.iconWrapper),children:t.jsx("div",{className:s_(G,null==A?void 0:A.icon),onClick:J,children:O})}):t.jsx("div",{className:s_(K,null==A?void 0:A.endIconWrapper),onClick:J,children:O})}),[S,O,d,W,K,G,R,J]);return t.jsxs("div",{className:"inline-flex flex-col "+(v?"w-full":""),children:[t.jsxs("div",{className:"relative",children:[t.jsx("input",Object.assign({},L,{placeholder:" ",ref:I,type:c,id:V,disabled:m,className:s_(B,L.className)})),M&&!H&&t.jsx("div",{className:s_(U,null==A?void 0:A.iconSearchWrapper),children:t.jsx(zne,{className:s_($,null==A?void 0:A.icon)})}),ee,_&&!S&&t.jsx("div",{className:s_(W,null==A?void 0:A.iconWrapper),style:{display:w&&L.value?"flex":void 0},children:t.jsx(QH,{className:s_(G,null==A?void 0:A.icon),onMouseDown:X})}),te,t.jsxs("label",{htmlFor:V,className:s_(F),children:[o," ",k&&t.jsx("span",{className:s_("text-input-error",{"text-input-disable-text":m}),children:"*"})]})]}),(D||x)&&t.jsxs("span",{className:T,children:[D&&t.jsx("span",{className:"h-full shrink-0",children:t.jsx(OV,{width:14,height:14,className:s_("fill-none stroke-current",N?"text-input-error":q?"text-warning":"text-input-filled-text")})}),x&&!D&&t.jsx("span",{className:"block min-h-[14px]","aria-hidden":!0}),D||""]})]})})),jme={0:{pattern:/[0-9]/,placeholder:"0"},9:{pattern:/[0-9\s]/,placeholder:"9"},"#":{pattern:/[0-9\s+\-]/,placeholder:"#"},L:{pattern:/[a-zA-Z]/,placeholder:"L"},"?":{pattern:/[a-zA-Z\s]/,placeholder:"?"},"&":{pattern:/[^\s]/,placeholder:"&"},C:{pattern:/./,placeholder:"C"},A:{pattern:/[a-zA-Z0-9]/,placeholder:"A"},a:{pattern:/[a-zA-Z0-9\s]/,placeholder:"a"}},Ome=(e,t,r="_",n=!0,a=!0)=>{let o="",l=0;for(let i=0;i<t.length;i++){const s=t[i];if(s.isLiteral)o+=s.placeholder;else{let t=!1;for(;l<e.length;){const r=e[l];l++;if(s.validator?s.validator(r):s.pattern.test(r)){o+=r,t=!0;break}}if(!t&&a&&n)o+=r;else if(!t)break}}return o},Eme=(e,t)=>{let r="";for(let n=0;n<e.length&&n<t.length;n++){const a=t[n],o=e[n];a.isLiteral||(r+=o)}return r},zme=e.forwardRef(((r,n)=>{var{mask:a,maskChar:o="_",showMask:l=!0,guide:i=!0,keepCharPositions:s=!1,rules:c,onMaskedChange:d,onChange:u,value:h,defaultValue:p}=r,f=o_(r,["mask","maskChar","showMask","guide","keepCharPositions","rules","onMaskedChange","onChange","value","defaultValue"]);const v=e.useRef(null),[m,y]=e.useState(""),[g,k]=e.useState(""),b=e.useMemo((()=>a?((e,t)=>{const r=Object.assign(Object.assign({},jme),t),n=[];let a=0;for(;a<e.length;){const t=e[a];if("\\"===t&&a+1<e.length){const t=e[a+1];n.push({pattern:new RegExp(`^${t}$`),placeholder:t,isLiteral:!0}),a+=2}else if(r[t]){const e=r[t];"function"==typeof e?n.push({pattern:/./,placeholder:t,validator:e}):e instanceof RegExp?n.push({pattern:e,placeholder:t}):n.push({pattern:e.pattern,placeholder:e.placeholder}),a++}else n.push({pattern:new RegExp(`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),placeholder:t,isLiteral:!0}),a++}return n})(a,c):null),[a,c]);e.useEffect((()=>{const e=h||p||"";if(b&&e){const t=Ome(e,b,o,l,i),r=Eme(t,b);y(t),k(r)}else y(e),k(e)}),[b,o,l,i,h,p]),e.useImperativeHandle(n,(()=>null==v?void 0:v.current));const w=e.useCallback((e=>{const t=e.target.value;if(!b)return y(t),k(t),null==u||u(e),void(null==d||d(t,t));const r=Ome(t,b,o,l,i),n=Eme(r,b);y(r),k(n);const a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:r})});null==u||u(a),null==d||d(r,n),setTimeout((()=>{if(v.current){const e=n.replace(/[_\s]/g,"").length,t=((e,t,r)=>{let n=0,a=0;for(let o=0;o<r.length&&o<e.length;o++){const l=r[o];if(e[o],l.isLiteral)a=o+1;else if(n++,a=o+1,n>=t)break}return a})(r,e,b);v.current.setSelectionRange(t,t)}}),0)}),[b,o,l,i,u,d]),x=e.useCallback((e=>{var t,r,n;if(!b)return void(null===(t=f.onKeyDown)||void 0===t||t.call(f,e));const{key:a,ctrlKey:o,metaKey:l}=e,i=e.target.selectionStart||0;if("Backspace"===a||"Delete"===a||"ArrowLeft"===a||"ArrowRight"===a||"Home"===a||"End"===a||"Tab"===a||a.length>1||o||l)return void(null===(r=f.onKeyDown)||void 0===r||r.call(f,e));let s=i;for(;s<b.length&&b[s].isLiteral;)s++;if(s<b.length){const t=b[s];if(!(t.validator?t.validator(a):t.pattern.test(a)))return void e.preventDefault()}null===(n=f.onKeyDown)||void 0===n||n.call(f,e)}),[b,f]);return t.jsx(Mme,Object.assign({},f,{ref:v,value:m,onChange:w,onKeyDown:x,className:s_(f.className)}))}));zme.displayName="MaskedTextInput";const Cme=r.cva(["text-inherit"],{variants:{color:{primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary",success:"text-success",info:"text-info",warning:"text-warning",error:"text-error",inherit:"text-inherit"},size:{sm:"size-4",md:"size-6",lg:"size-8",inherit:""}},defaultVariants:{size:"inherit",color:"inherit"}}),Pme={sm:16,md:24,lg:32},Rme=r=>{var{name:n,type:a="heroicons",color:o="inherit",variant:l="solid",size:i="md",className:s}=r,c=o_(r,["name","type","color","variant","size","className"]);const[d,u]=e.useState(null);if(e.useEffect((()=>{if("lucide"===a)return void Promise.resolve().then((function(){return zZe})).then((({default:e})=>{const t=e[n];t?t().then((e=>{u((()=>e.default))})):console.warn(`Lucide icon "${n}" not found.`)}));const e=((e,t,r)=>{var n,a;return null===(a=null===(n=Xx[e])||void 0===n?void 0:n[t])||void 0===a?void 0:a[r]})(a,n,l);e?u((()=>e)):console.warn(`Icon "${n}" from "${a}" not found.`)}),[n,a,l]),"lucide"===a){if(!d)return t.jsx("span",{className:s_(Cme({color:o,size:i}),s)});const e="inherit"===i?24:Pme[i];return t.jsx(d,Object.assign({},c,{size:e,strokeWidth:e<=16?1.5:2,absoluteStrokeWidth:!0,shapeRendering:"geometricPrecision",className:s_(Cme({color:o,size:i}),"stroke-current",s)}))}return d?t.jsx(d,Object.assign({className:s_(Cme({color:o,size:i}),s)},c)):t.jsx("svg",Object.assign({className:s_(Cme({color:o,size:i}),s)},c))},Ame=e.forwardRef(((r,n)=>{var a,{showToggle:o=!0,hasClearIcon:l=!1,hideIcon:i,showIcon:s,endIcon:c,renderEndIcon:d,onClickEndIcon:u}=r,h=o_(r,["showToggle","hasClearIcon","hideIcon","showIcon","endIcon","renderEndIcon","onClickEndIcon"]);const p=e.useRef(null),[f,v]=e.useState(!1);e.useImperativeHandle(n,(()=>null==p?void 0:p.current));const m=f?null!=s?s:t.jsx(Rme,{name:"eye",type:"lucide",size:"inherit",className:"size-full","aria-label":"Hide password"}):null!=i?i:t.jsx(Rme,{name:"eye-closed",type:"lucide",size:"inherit",className:"size-full","aria-label":"Show password"});return t.jsx(Mme,Object.assign({iconMode:"flat"},h,{ref:p,type:f?"text":"password",hasClearIcon:l,endIcon:o?m:c,renderEndIcon:d,onClickEndIcon:o?()=>{var e;h.disabled||(v((e=>!e)),null===(e=p.current)||void 0===e||e.focus(),null==u||u())}:u,autoComplete:null!==(a=h.autoComplete)&&void 0!==a?a:"current-password"}))}));Ame.displayName="PasswordInput";const Lme=e.forwardRef(((r,n)=>{var a,{value:o,defaultValue:l,min:i,max:s,step:c=1,precision:d,hideControls:u=!1,allowDecimal:h=!0,allowNegative:p=!0,formatDisplay:f=!1,thousandSeparator:v=",",decimalSeparator:m=".",prefix:y="",suffix:g="",disabled:k=!1,onChange:b,onValueChange:w,className:x,size:_="md"}=r,M=o_(r,["value","defaultValue","min","max","step","precision","hideControls","allowDecimal","allowNegative","formatDisplay","thousandSeparator","decimalSeparator","prefix","suffix","disabled","onChange","onValueChange","className","size"]);const j=e.useRef(null),[O,E]=e.useState((null!==(a=null!=o?o:l)&&void 0!==a?a:"").toString()),[z,C]=e.useState(!1);e.useImperativeHandle(n,(()=>null==j?void 0:j.current));const P=e.useCallback((e=>{let t=e;return y&&(t=t.replace(y,"")),g&&(t=t.replace(g,"")),v&&(t=t.split(v).join("")),"."!==m&&(t=t.replace(m,".")),t.trim()}),[y,g,v,m]),R=e.useCallback((e=>{if(!f||""===e||"-"===e)return e;const t=parseFloat(e);if(isNaN(t))return e;let r=t.toString();void 0!==d&&(r=t.toFixed(d));const n=r.split(".");let a=n[0];const o=n[1];return v&&(a=a.replace(/\B(?=(\d{3})+(?!\d))/g,v)),r=o?`${a}${m}${o}`:a,y&&(r=`${y}${r}`),g&&(r=`${r}${g}`),r}),[f,d,v,m,y,g]),A=e.useCallback((e=>{if(""===e||"-"===e)return e;let t=parseFloat(e);return isNaN(t)?O:(void 0!==i&&t<i&&(t=i),void 0!==s&&t>s&&(t=s),void 0!==d&&(t=parseFloat(t.toFixed(d))),t.toString())}),[i,s,d,O]),L=e.useCallback((e=>{let t=e.target.value;if(f&&(t=P(t)),""===t)return E(""),null==b||b(void 0),void(null==w||w(""));if(p&&"-"===t)return E("-"),void(null==w||w("-"));if(!(h?p?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/:p?/^-?\d*$/:/^\d*$/).test(t))return;E(t),null==w||w(t);const r=parseFloat(t);isNaN(r)||null==b||b(r)}),[h,p,f,P,b,w]),I=e.useCallback((e=>{var t;C(!0),null===(t=M.onFocus)||void 0===t||t.call(M,e)}),[M]),V=e.useCallback((e=>{var t;C(!1);const r=A(O);E(r);const n=parseFloat(r);isNaN(n)||null==b||b(n),null===(t=M.onBlur)||void 0===t||t.call(M,e)}),[O,A,b,M]),H=e.useCallback((e=>{if(k)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(O)||0)+c;void 0!==s&&t>s&&(t=s);const r=A(t.toString());E(r),null==b||b(parseFloat(r)),null==w||w(r)}),[O,c,s,k,A,b,w]),S=e.useCallback((e=>{if(k)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(O)||0)-c;void 0!==i&&t<i&&(t=i);const r=A(t.toString());E(r),null==b||b(parseFloat(r)),null==w||w(r)}),[O,c,i,k,A,b,w]),Z=e.useCallback((e=>{var t;switch(e.key){case"ArrowUp":H(e);break;case"ArrowDown":S(e);break;case"Enter":e.currentTarget.blur()}null===(t=M.onKeyDown)||void 0===t||t.call(M,e)}),[H,S,M]);e.useEffect((()=>{void 0!==o&&E(o.toString())}),[o]);const N=e.useMemo((()=>z||!f?O:R(O)),[z,f,O,R]),q={sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6"}[_],D={sm:"absolute top-0.5",md:"absolute top-1",lg:"absolute top-1"}[_];return t.jsx(Mme,Object.assign({},M,{ref:j,type:"text",inputMode:"decimal",value:N,onChange:L,onFocus:I,onBlur:V,onKeyDown:Z,disabled:k,size:_,hasClearIcon:!1,endIcon:u?null:t.jsxs("div",{className:s_("flex flex-col","flat"===M.iconMode&&D),children:[t.jsx("button",{type:"button",onClick:H,disabled:k||void 0!==s&&parseFloat(O)>=s,className:s_(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:t.jsx(bn,{className:q})}),t.jsx("button",{type:"button",onClick:S,disabled:k||void 0!==i&&parseFloat(O)<=i,className:s_(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:t.jsx(hn,{className:q})})]}),className:s_(x)}))}));Lme.displayName="NumberInput";const Ime=r.cva(["peer block w-full bg-transparent outline-none placeholder:text-transparent resize-y ui-scrollbar","text-input-filled-text caret-primary"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitle4",lg:"p-4 typography-subtitle1"},rounded:{none:"rounded-none",normal:"rounded-md",full:"rounded-full"},variant:{flat:"",outline:["ring-1 ring-inset ring-input-default-stroke","hover:ring-input-active-stroke","focus:ring-1 focus:ring-inset focus:ring-input-active-stroke"],underline:"border-b-2 border-input-default-stroke transition-colors hover:border-input-active-stroke focus:border-input-stroke"},fullwidth:{true:"w-full"},disabled:{true:["bg-input-disable-bg text-input-disable-text ring-input-disable-stroke placeholder:text-input-disable-text","hover:ring-input-disable-stroke","cursor-not-allowed"]},error:{true:"ring-input-error focus:ring-input-error"},hasClearIcon:{true:""},isFloatingLabel:{true:"",false:"placeholder:text-input-placeholder"}},compoundVariants:[{variant:"underline",className:"rounded-none"},{hasClearIcon:!0,size:"sm",className:"focus:pe-6"},{hasClearIcon:!0,size:"md",className:"focus:pe-8"},{hasClearIcon:!0,size:"lg",className:"focus:pe-10"}],defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hasClearIcon:!1,isFloatingLabel:!0}}),Vme=r.cva(["absolute block duration-450 transition-all px-[2px] text-input-default-text","peer-focus:text-input-filled-text peer-focus:bg-input-label-bg"],{variants:{size:{sm:[],md:[],lg:[]},disabled:{true:"text-input-default-text placeholder:text-input-default-text"},error:{true:"ring-error"},isFloatingLabel:{false:"hidden peer-placeholder-shown:block peer-focus:bg-transparent"}},compoundVariants:[{isFloatingLabel:!0,size:"sm",className:["left-3 -top-1.5 typography-label2 bg-input-label-bg","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"]},{isFloatingLabel:!0,size:"md",className:["left-3 -top-1.5 typography-label1 bg-input-label-bg","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{isFloatingLabel:!0,size:"lg",className:["left-4 -top-1.5 typography-label1 bg-input-label-bg","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{isFloatingLabel:!1,size:"sm",className:["left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1"]},{isFloatingLabel:!1,size:"md",className:["left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4"]},{isFloatingLabel:!1,size:"lg",className:["left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1"]}],defaultVariants:{size:"md",disabled:!1,error:!1,isFloatingLabel:!0}}),Hme=r.cva(["absolute inset-y-0 right-0 items-start justify-center hidden peer-focus:flex"],{variants:{size:{sm:"mr-2 pt-2",md:"mr-3 pt-2",lg:"mr-4 pt-4"}},defaultVariants:{size:"md"}}),Sme=r.cva(["cursor-pointer z-50 fill-input-active-stroke hover:fill-input-default-text"],{variants:{size:{sm:"size-3",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),Zme=r.cva(["typography-small1 flex flex-row items-center gap-1"],{variants:{size:{sm:"mt-1",md:"mt-[6px]",lg:"mt-[6px]"},disabled:{true:"text-input-disable-text"},error:{true:"text-input-error",false:"text-input-filled-text"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),Nme=e.forwardRef(((r,n)=>{var{id:a,label:o,size:l="md",rounded:i="normal",variant:s="outline",helperText:c,errorMessage:d,fullwidth:u=!0,disabled:h=!1,error:p=!1,required:f=!0,isFloatingLabel:v=!0,keepCloseIconOnValue:m=!1,hasClearIcon:y=!0,labelClassName:g,className:k}=r,b=o_(r,["id","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","required","isFloatingLabel","keepCloseIconOnValue","hasClearIcon","labelClassName","className"]);const w=e.useRef(null),x=a||`textarea-${null!=o?o:""}`;e.useImperativeHandle(n,(()=>null==w?void 0:w.current));const _=e.useMemo((()=>"inline-flex flex-col "+(u?"w-full":"")),[u]),M=Ime({size:l,rounded:i,variant:s,fullwidth:u,disabled:h,error:p,hasClearIcon:y,isFloatingLabel:v});return t.jsxs("div",{className:_,children:[t.jsxs("div",{className:"relative",children:[t.jsx("textarea",Object.assign({},b,{id:x,ref:w,disabled:h,placeholder:v?" ":b.placeholder,className:s_(M,k)})),y&&t.jsx("div",{className:Hme({size:l}),style:{display:m&&b.value?"flex":void 0},children:t.jsx(Wd,{type:"button",className:Sme({size:l}),onMouseDown:e=>{if(e.preventDefault(),w.current){const e=w.current.value;w.current.value="",b.onChange&&""!==e&&b.onChange({target:{value:""}}),w.current.focus()}}})}),o&&t.jsxs("label",{htmlFor:x,className:s_(Vme({size:l,disabled:h,error:p,isFloatingLabel:v}),g),children:[o," ",f&&t.jsx("span",{className:s_("text-error",{"text-input-disable-text":h}),children:"*"})]})]}),(d||c)&&t.jsx("span",{className:Zme({size:l,disabled:h,error:p}),children:d||c})]})})),qme=r.cva(["text-common-black"],{variants:{color:{primary:"text-primary",secondary:"text-secondary",success:"text-success",tertiary:"text-tertiary",info:"text-info",warning:"text-warning",error:"text-error"}}}),Dme={subtitile1:"subtitle1",subtitile2:"subtitle2",subtitile3:"subtitle3",subtitile4:"subtitle4",subtitile5:"subtitle5",subtitile6:"subtitle6"},Bme=e.forwardRef(((e,r)=>{var n,{variant:a="body1",tag:o="p",children:l,className:i="",color:s,style:c}=e,d=o_(e,["variant","tag","children","className","color","style"]);const u=null!==(n=Dme[a])&&void 0!==n?n:a;return t.jsx(o,Object.assign({ref:r,className:s_(`typography-${u}`,qme({color:s}),i),style:c},d,{children:l}))})),Fme=r.cva(["box-border flex items-center justify-center"],{variants:{variant:{solid:["bg-action-button-solid-default border-action-button-solid-default text-action-button-solid-default fill-action-button-solid-default","hover:bg-action-button-solid-hover hover:border-action-button-solid-hover hover:text-action-button-solid-hover hover:fill-action-button-solid-hover","active:bg-action-button-solid-pressed active:border-action-button-solid-pressed active:text-action-button-solid-pressed active:fill-action-button-solid-pressed"],outline:["ring-1 ring-inset","bg-action-button-outline-default text-action-button-outline-default fill-action-button-outline-default ring-[var(--action-button-outline-default-border)]","hover:bg-action-button-outline-hover hover:text-action-button-outline-hover hover:fill-action-button-outline-hover hover:ring-[var(--action-button-outline-hover-border)]","active:bg-action-button-outline-pressed active:text-action-button-outline-pressed active:fill-action-button-outline-pressed active:ring-[var(--action-button-outline-pressed-border)]"],icon:["bg-action-button-icon-default border-action-button-icon-default text-action-button-icon-default fill-action-button-icon-default","hover:bg-action-button-icon-hover hover:border-action-button-icon-hover hover:text-action-button-icon-hover hover:fill-action-button-icon-hover","active:bg-action-button-icon-pressed active:border-action-button-icon-pressed active:text-action-button-icon-pressed active:fill-action-button-icon-pressed"]},size:{xxs:"",xs:"",sm:"",md:"",lg:""},shape:{round:"",capsule:""},disabled:{false:""},active:{false:""}},compoundVariants:[{variant:"solid",active:!0,className:["bg-action-button-solid-active border-action-button-solid-active text-action-button-solid-active fill-action-button-solid-active","hover:bg-action-button-solid-active-hover hover:border-action-button-solid-active-hover hover:text-action-button-solid-active-hover hover:fill-action-button-solid-active-hover","active:bg-action-button-solid-active-pressed active:border-action-button-solid-active-pressed active:text-action-button-solid-active-pressed active:fill-action-button-solid-active-pressed"]},{variant:"outline",active:!0,className:["bg-action-button-outline-active text-action-button-outline-active fill-action-button-outline-active ring-[var(--action-button-outline-active-border)]","hover:bg-action-button-outline-active-hover hover:text-action-button-outline-active-hover hover:fill-action-button-outline-active-hover hover:ring-[var(--action-button-outline-active-hover-border)]","active:bg-action-button-outline-active-pressed active:text-action-button-outline-active-pressed active:fill-action-button-outline-active-pressed active:ring-[var(--action-button-outline-active-pressed-border)]"]},{variant:"icon",active:!0,className:["bg-action-button-icon-active border-action-button-icon-active text-action-button-icon-active fill-action-button-icon-active","hover:bg-action-button-icon-active-hover hover:border-action-button-icon-active-hover hover:text-action-button-icon-active-hover hover:fill-action-button-icon-active-hover","active:bg-action-button-icon-active-pressed active:border-action-button-icon-active-pressed active:text-action-button-icon-active-pressed active:fill-action-button-icon-active-pressed"]},{size:"lg",variant:["solid","outline"],className:"px-[12px] py-[12px] [&_svg]:size-[32px]"},{size:"md",variant:["solid","outline"],className:"px-[8px] py-[8px] [&_svg]:size-[22px]"},{size:"sm",variant:["solid","outline"],className:"px-[4px] py-[4px] [&_svg]:size-[22px]"},{size:"xs",variant:["solid","outline"],className:"px-[2px] py-[2px] [&_svg]:size-[14px]"},{size:"lg",variant:"icon",className:"px-[12px] py-[12px] [&_svg]:size-[32px]"},{size:"md",variant:"icon",className:"px-[8px] py-[8px] [&_svg]:size-[22px]"},{size:"sm",variant:"icon",className:"px-[4px] py-[4px] [&_svg]:size-[22px]"},{size:"xxs",variant:"icon",className:"px-[1px] py-[1px] [&_svg]:size-[10px]"},{size:"xs",variant:"icon",className:"px-[2px] py-[2px] [&_svg]:size-[14px]"},{size:"lg",shape:"round",className:"rounded-[var(--function-button-l-round)]"},{size:"md",shape:"round",className:"rounded-[var(--function-button-m-round)]"},{size:"sm",shape:"round",className:"rounded-[var(--function-button-s-round)]"},{size:"xs",shape:"round",className:"rounded-[var(--function-button-xs-round)]"},{size:"xxs",shape:"round",className:"rounded-[var(--function-button-xxs-round)]"},{size:"lg",shape:"capsule",className:"rounded-[var(--function-button-l-capsule)]"},{size:"md",shape:"capsule",className:"rounded-[var(--function-button-m-capsule)]"},{size:"sm",shape:"capsule",className:"rounded-[var(--function-button-s-capsule)]"},{size:"xxs",shape:"capsule",className:"rounded-[var(--function-button-xxs-capsule)]"},{size:"xs",shape:"capsule",className:"rounded-[var(--function-button-xs-capsule)]"},{variant:"solid",disabled:!0,className:["pointer-events-none","bg-action-button-solid-disabled border-action-button-solid-disabled text-action-button-solid-disabled fill-action-button-solid-disabled"]},{variant:"outline",disabled:!0,className:["pointer-events-none","bg-action-button-outline-disabled text-action-button-outline-disabled fill-action-button-outline-disabled ring-[var(--action-button-outline-disabled-border)]"]},{variant:"icon",disabled:!0,className:["pointer-events-none","bg-action-button-icon-disabled border-action-button-icon-disabled text-action-button-icon-disabled fill-action-button-icon-disabled"]}],defaultVariants:{size:"md",variant:"solid",shape:"round",disabled:!1,active:!1}}),Tme=e.forwardRef(((e,r)=>{var{children:n,disabled:a,active:o,className:l,size:i,shape:s,variant:c}=e,d=o_(e,["children","disabled","active","className","size","shape","variant"]);const u=Fme({size:i,shape:s,variant:c,active:o,disabled:a});return t.jsx("button",Object.assign({},d,{ref:r,type:"button","aria-disabled":a||void 0,disabled:a,tabIndex:a?-1:0,className:s_(".action-button",u,l),children:n}))}));function Wme(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ume(...e){return t=>{let r=!1;const n=e.map((e=>{const n=Wme(e,t);return r||"function"!=typeof n||(r=!0),n}));if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Wme(e[t],null)}}}}var Gme=l.forwardRef(((e,r)=>{const{children:n,...a}=e,o=l.Children.toArray(n),i=o.find(Kme);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t));return t.jsx($me,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return t.jsx($me,{...a,ref:r,children:n})}));Gme.displayName="Slot";var $me=l.forwardRef(((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return l.cloneElement(r,{...Xme(n,r.props),ref:t?Ume(t,e):e})}return l.Children.count(r)>1?l.Children.only(null):null}));$me.displayName="SlotClone";var Yme=({children:e})=>t.jsx(t.Fragment,{children:e});function Kme(e){return l.isValidElement(e)&&e.type===Yme}function Xme(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{o(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}var Qme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?Gme:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Jme=Boolean(globalThis?.document)?l.useLayoutEffect:()=>{},eye=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(Qme.div,{...o,ref:r}),c):null}));eye.displayName="Portal";var tye=eye;r.cva(["absolute inset-y-0 right-0 flex items-center justify-center"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}});const rye=r.cva(["transition-all"],{variants:{disabled:{true:"fill-input-text-disabled",false:"fill-inherit"},isFocus:{true:"fill-input-text-active rotate-180",false:""}},defaultVariants:{disabled:!1,isFocus:!1}}),nye=r.cva([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[68px]"}},defaultVariants:{size:"md"}}),aye=e.forwardRef((({items:r,selectedValues:n=[],onSelect:a,className:o,style:l,isAbove:i=!1},s)=>t.jsx("div",{ref:s,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-g-contrast-high","border border-modal-surface",o),style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},l),children:r.map(((r,o)=>{var l;if("separator"===r.type)return t.jsx(lye,{},`separator-${o}`);if("label"===r.type)return t.jsx(iye,{children:r.label},`label-${o}`);if("custom"===r.type)return t.jsx(e.Fragment,{children:r.render()},`custom-${o}`);const i=r.item,s=i.type||"default";let c=!1;return c=("checkbox"===s||"radio"===s)&&null!==(l=i.checked)&&void 0!==l?l:n.includes(i.value),t.jsx(oye,{option:i,visualType:s,isChecked:c,onSelect:()=>{var e;null==a||a(i.value,i),null===(e=i.onClick)||void 0===e||e.call(i)}},i.value)}))})));aye.displayName="Menu";const oye=e.forwardRef((({option:e,visualType:r,isChecked:n,onSelect:a,className:o},l)=>t.jsxs("div",{ref:l,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]",{"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5":n,"pointer-events-none opacity-50":e.disabled,"text-red-500":e.danger},o),onMouseDown:e.disabled?void 0:a,children:["checkbox"===r&&n?t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(Rme,{type:"heroicons",name:"check",className:"size-4"})}):"radio"===r&&n?t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(Rme,{type:"heroicons",name:"circle",className:"h-2 w-2 fill-current"})}):null,e.icon&&t.jsx("span",{className:"flex-shrink-0",children:e.icon}),e.label]})));oye.displayName="MenuItem";const lye=e.forwardRef((({className:e},r)=>t.jsx("div",{ref:r,className:s_("-mx-2 my-2 h-px bg-[var(--dropdown-menu-seperator-bg)]",e)})));lye.displayName="MenuSeparator";const iye=e.forwardRef((({children:e,className:r},n)=>t.jsx("div",{ref:n,className:s_("px-3 py-2 typography-small4 text-text-g-contrast-medium",r),children:e})));iye.displayName="MenuLabel";const sye=e.forwardRef(((r,n)=>{var{id:a,options:o=[],value:l,label:i,size:s="md",rounded:c="normal",variant:d="outline",defaultMenuItemType:u="checkbox",helperText:h,errorMessage:p,fullwidth:f=!0,disabled:v=!1,error:m=!1,filterMode:y=!1,required:g=!0,modal:k=!1,onChangeText:b,onSelect:w,renderOptions:x,optionContainerClassName:_,optionItemClassName:M,optionNotFoundItemClassName:j,segmentedInput:O=!0}=r,E=o_(r,["id","options","value","label","size","rounded","variant","defaultMenuItemType","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","modal","onChangeText","onSelect","renderOptions","optionContainerClassName","optionItemClassName","optionNotFoundItemClassName","segmentedInput"]);const z=a||`${i}-select`,[C,P]=e.useState(!1),[R,A]=e.useState(null),[L,I]=e.useState(""),V=e.useRef(""),H=e.useRef(null),S=e.useRef(null),[Z,N]=e.useState({}),[q,D]=e.useState(!1),[B,F]=e.useState(!1);e.useImperativeHandle(n,(()=>null==S?void 0:S.current)),e.useEffect((()=>{var e;A(l),I(null!==(e=null==l?void 0:l.label)&&void 0!==e?e:"")}),[l]),e.useEffect((()=>{let e=S.current;for(;e;){if("dialog"===e.getAttribute("role"))return void F(!0);e=e.parentElement}F(!1)}),[]);const T=e.useCallback((e=>{null==b||b(e),I(e.target.value),e.target.value||X(e)}),[b]),W=e.useCallback((e=>{A(e),I(e.label),null==w||w(e),P(!1)}),[w]),U=e.useMemo((()=>o.filter((e=>{var t;return!y||(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(null==L?void 0:L.toLowerCase()))}))),[o,y,L]),G=!B&&k,$=e.useCallback((()=>{if(S.current&&H.current){const e=S.current.getBoundingClientRect(),t=H.current.offsetHeight,r=window.innerHeight-e.bottom,n=e.top,a=r<t&&n>r;D(a),N(G?{position:"absolute",top:a?e.top-t+"px":`${e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:9999}:{position:"absolute",top:a?`-${t}px`:"100%",left:"0",width:"100%",zIndex:9999})}}),[k,B,G]);e.useEffect((()=>(C&&($(),window.addEventListener("resize",$)),()=>{window.removeEventListener("resize",$)})),[C,$]);const Y=()=>{if(x)return x({optionsFiltered:U,selectedOption:R,onClick:W,style:Z,dropdownRef:H});let r;return r=U.map((r=>r.renderLabel?{type:"custom",render:()=>t.jsx(e.Fragment,{children:r.renderLabel({value:r.value,label:r.label,handleOnClick:()=>W(r),className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]",{"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5":(null==R?void 0:R.value)===r.value},M)})},r.value)}:{type:"item",item:{type:u,value:r.value,label:r.label}})),0===r.length&&r.push({type:"custom",render:()=>t.jsx("div",{className:s_("px-4 py-14 text-center text-input-text",j),children:"Not found"},"not-found")}),t.jsx(aye,{ref:H,items:r,selectedValues:(null==R?void 0:R.value)?[R.value]:[],onSelect:e=>{const t=U.find((t=>t.value===e));t&&W(t)},className:s_("absolute mt-1 w-full max-h-60 overflow-y-auto",!G&&(q?"bottom-full mb-1":"top-full mt-1"),_),style:Z})},K=e.useCallback((e=>{var t;P(!0),null===(t=null==E?void 0:E.onFocus)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onFocus]),X=e.useCallback((e=>{const t=U.find((t=>{var r,n;return t.value===(null===(r=e.target)||void 0===r?void 0:r.value)||t.label===(null===(n=e.target)||void 0===n?void 0:n.value)}));let r=t||{value:"",label:""};!!!t&&L&&(r={value:"",label:""}),"Enter"!==V.current&&(A(r),I(r.label),null==w||w(r))}),[U,L]),Q=e.useCallback((e=>{var t;setTimeout((()=>P(!1)),200),X(e),null===(t=null==E?void 0:E.onBlur)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onBlur,X]),J=e.useCallback((e=>{var t;V.current=e.code,null===(t=null==E?void 0:E.onKeyDown)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onKeyDown]);return t.jsxs("div",{className:"relative "+(f?"w-full":""),children:[t.jsx(Mme,Object.assign({hasClearIcon:!1,endIcon:t.jsx(hn,{className:rye({isFocus:C})})},E,{ref:S,readOnly:!y,value:L,onChange:T,label:i,placeholder:" ",type:"text",autoComplete:"off",rounded:c,variant:d,helperText:h,errorMessage:p,fullwidth:f,error:m,required:g,id:z,disabled:v,size:s,className:O?nye({size:s}):void 0,onFocus:K,onBlur:Q,onKeyDown:J})),C&&(G?t.jsx(tye,{container:document.body,children:Y()}):Y())]})}));function cye(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function dye(...e){return l.useCallback(cye(...e),e)}function uye(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;n=[...n,a];const s=r=>{const{scope:n,children:a,...s}=r,c=n?.[e]?.[i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})};return s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e]?.[i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},hye(a,...r)]}function hye(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}function pye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function fye(e){const t=l.useRef(e);return l.useEffect((()=>{t.current=e})),l.useMemo((()=>(...e)=>t.current?.(...e)),[])}function vye({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=function({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,a=l.useRef(n),o=fye(t);return l.useEffect((()=>{a.current!==n&&(o(n),a.current=n)}),[n,a,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,i=o?e:n,s=fye(r);return[i,l.useCallback((t=>{if(o){const r="function"==typeof t?t(e):t;r!==e&&s(r)}else a(t)}),[o,e,a,s])]}function mye(e){const t=l.useRef({value:e,previous:e});return l.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function yye(e){const[t,r]=l.useState(void 0);return Jme((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let a,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;r({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}var gye=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=kye(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=kye(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=kye(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=kye(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function kye(e){return e?.animationName||"none"}gye.displayName="Presence";var bye=l.forwardRef(((e,r)=>{const{children:n,...a}=e,o=l.Children.toArray(n),i=o.find(_ye);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t));return t.jsx(wye,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return t.jsx(wye,{...a,ref:r,children:n})}));bye.displayName="Slot";var wye=l.forwardRef(((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return l.cloneElement(r,{...Mye(n,r.props),ref:t?cye(t,e):e})}return l.Children.count(r)>1?l.Children.only(null):null}));wye.displayName="SlotClone";var xye=({children:e})=>t.jsx(t.Fragment,{children:e});function _ye(e){return l.isValidElement(e)&&e.type===xye}function Mye(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{o(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}var jye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Oye="Checkbox",[Eye,zye]=uye(Oye),[Cye,Pye]=Eye(Oye),Rye=l.forwardRef(((e,r)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:i,required:s,disabled:c,value:d="on",onCheckedChange:u,form:h,...p}=e,[f,v]=l.useState(null),m=dye(r,(e=>v(e))),y=l.useRef(!1),g=!f||(h||!!f.closest("form")),[k=!1,b]=vye({prop:o,defaultProp:i,onChange:u}),w=l.useRef(k);return l.useEffect((()=>{const e=f?.form;if(e){const t=()=>b(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,b]),t.jsxs(Cye,{scope:n,state:k,disabled:c,children:[t.jsx(jye.button,{type:"button",role:"checkbox","aria-checked":Vye(k)?"mixed":k,"aria-required":s,"data-state":Hye(k),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:m,onKeyDown:pye(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:pye(e.onClick,(e=>{b((e=>!!Vye(e)||!e)),g&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),g&&t.jsx(Iye,{control:f,bubbles:!y.current,name:a,value:d,checked:k,required:s,disabled:c,form:h,style:{transform:"translateX(-100%)"},defaultChecked:!Vye(i)&&i})]})}));Rye.displayName=Oye;var Aye="CheckboxIndicator",Lye=l.forwardRef(((e,r)=>{const{__scopeCheckbox:n,forceMount:a,...o}=e,l=Pye(Aye,n);return t.jsx(gye,{present:a||Vye(l.state)||!0===l.state,children:t.jsx(jye.span,{"data-state":Hye(l.state),"data-disabled":l.disabled?"":void 0,...o,ref:r,style:{pointerEvents:"none",...e.style}})})}));Lye.displayName=Aye;var Iye=e=>{const{control:r,checked:n,bubbles:a=!0,defaultChecked:o,...i}=e,s=l.useRef(null),c=mye(n),d=yye(r);l.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&r){const t=new Event("click",{bubbles:a});e.indeterminate=Vye(n),r.call(e,!Vye(n)&&n),e.dispatchEvent(t)}}),[c,n,a]);const u=l.useRef(!Vye(n)&&n);return t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...i,tabIndex:-1,ref:s,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Vye(e){return"indeterminate"===e}function Hye(e){return Vye(e)?"indeterminate":e?"checked":"unchecked"}var Sye=Rye,Zye=Lye;const Nye=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(Sye,Object.assign({ref:r,className:s_("peer size-4 shrink-0 cursor-pointer rounded-[var(--spacing-spacing-xxs,2px)] border border-function-default-solid ring-offset-bg-bg1","hover:border-function-default-hover","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-input-active-stroke focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:border-state-disable-outline disabled:text-state-disable-outline","disabled:data-[state=checked]:border-state-disable-solid disabled:data-[state=checked]:bg-state-disable-solid","disabled:data-[state=indeterminate]:border-state-disable-solid disabled:data-[state=indeterminate]:bg-state-disable-solid",{"data-[state=checked]:border-function-active-solid data-[state=checked]:bg-function-active-solid data-[state=checked]:text-function-active-icon data-[state=indeterminate]:border-function-active-solid data-[state=indeterminate]:bg-function-active-solid data-[state=indeterminate]:text-function-active-icon":!a.disabled,"hover:data-[state=checked]:border-function-active-hover hover:data-[state=checked]:bg-function-active-hover hover:data-[state=indeterminate]:border-function-active-hover hover:data-[state=indeterminate]:bg-function-active-hover":!a.disabled},n)},a,{children:t.jsxs(Zye,{className:s_("flex size-[14px] items-center justify-center text-current","[&[data-state=checked]_.checkbox-check-icon]:block","[&[data-state=indeterminate]_.checkbox-minus-icon]:block"),children:[t.jsx(tn,{className:"checkbox-check-icon hidden size-[14px]"}),t.jsx(Ri,{className:"checkbox-minus-icon hidden size-[14px]"})]})}))}));Nye.displayName=Sye.displayName;var qye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Dye=l.forwardRef(((e,r)=>t.jsx(qye.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Dye.displayName="Label";var Bye=Dye;const Fye=r.cva(["block cursor-pointer duration-450 transition-all px-[2px] text-input-default-text peer-focus:text-input-text-active"],{variants:{size:{sm:"typography-small1",md:"typography-subtitle2",lg:"typography-subtitle1"},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled peer-disabled:cursor-not-allowed"},error:{true:"ring-error"},isFloatable:{true:"absolute peer-focus:text-input-text-active peer-focus:bg-input-label-background",false:""}},compoundVariants:[{size:"sm",isFloatable:!0,className:["left-3 -top-1.5 typography-label2 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"]},{size:"md",isFloatable:!0,className:["left-3 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{size:"lg",isFloatable:!0,className:["left-4 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]}],defaultVariants:{size:"md",disabled:!1,error:!1,isFloatable:!1}}),Tye=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(Bye,Object.assign({ref:r,className:s_(Fye({size:a.size,disabled:a.disabled,error:a.error,isFloatable:a.isFloatable}),n)},a))}));Tye.displayName=Bye.displayName;const Wye=r.cva(["border-0 outline-none","p-1 flex w-auto h-fit box-border","peer text-input-filled-text placeholder:text-input-default-text bg-transparent caret-primary"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitle4",lg:"p-4 typography-subtitle1"},rounded:{none:"rounded-none",normal:"rounded-xl",full:"rounded-full"},variant:{flat:"",outline:["ring-1 ring-inset ring-input-default-stroke","hover:ring-input-active-stroke hover:text-input-filled-text","focus:ring-1 focus:ring-inset focus:ring-input-active-stroke focus:text-input-filled-text active:text-input-filled-text"],underline:"border-b-2 border-input-default-stroke transition-colors hover:border-input-active-stroke focus:border-input-default-stroke"},hiddenPlaceholder:{true:"placeholder:text-transparent"},fullwidth:{true:"w-full"},disabled:{true:["text-input-disable-text ring-input-disable-stroke bg-input-disable-bg placeholder:text-input-disable-text","hover:text-input-disable-text hover:ring-input-disable-stroke hover:bg-input-disable-bg hover:placeholder:text-input-disable-text","active:text-input-disable-text active:ring-input-disable-stroke active:bg-input-disable-bg active:placeholder:text-input-disable-text"]},error:{true:"ring-input-error focus:ring-input-error"}},defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hiddenPlaceholder:!0}}),Uye=e.forwardRef(((e,r)=>{var{className:n,type:a="text",size:o="md",variant:l="outline",rounded:i="normal",fullwidth:s=!1,disabled:c=!1,error:d=!1,required:u=!1,hiddenPlaceholder:h=!1}=e,p=o_(e,["className","type","size","variant","rounded","fullwidth","disabled","error","required","hiddenPlaceholder"]);return t.jsx("input",Object.assign({type:a,className:s_(Wye({size:o,variant:l,fullwidth:s,error:d,hiddenPlaceholder:h,disabled:c,rounded:i}),n),ref:r,disabled:c},p))}));Uye.displayName="Input";var Gye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),$ye="Avatar",[Yye,Kye]=uye($ye),[Xye,Qye]=Yye($ye),Jye=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,...a}=e,[o,i]=l.useState("idle");return t.jsx(Xye,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:t.jsx(Gye.span,{...a,ref:r})})}));Jye.displayName=$ye;var ege="AvatarImage",tge=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:o=()=>{},...i}=e,s=Qye(ege,n),c=function(e,t){const[r,n]=l.useState("idle");return Jme((()=>{if(!e)return void n("error");let r=!0;const a=new window.Image,o=e=>()=>{r&&n(e)};return n("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{r=!1}}),[e,t]),r}(a,i.referrerPolicy),d=fye((e=>{o(e),s.onImageLoadingStatusChange(e)}));return Jme((()=>{"idle"!==c&&d(c)}),[c,d]),"loaded"===c?t.jsx(Gye.img,{...i,ref:r,src:a}):null}));tge.displayName=ege;var rge="AvatarFallback",nge=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,delayMs:a,...o}=e,i=Qye(rge,n),[s,c]=l.useState(void 0===a);return l.useEffect((()=>{if(void 0!==a){const e=window.setTimeout((()=>c(!0)),a);return()=>window.clearTimeout(e)}}),[a]),s&&"loaded"!==i.imageLoadingStatus?t.jsx(Gye.span,{...o,ref:r}):null}));nge.displayName=rge;var age=Jye,oge=tge,lge=nge;const ige=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(age,Object.assign({ref:r,className:s_("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},a))}));ige.displayName=age.displayName;const sge=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(oge,Object.assign({ref:r,className:s_("aspect-square h-full w-full",n)},a))}));sge.displayName=oge.displayName;const cge=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(lge,Object.assign({ref:r,className:s_("flex h-full w-full items-center justify-center rounded-full bg-inherit text-inherit",n)},a))}));cge.displayName=lge.displayName;const dge=r.cva(["flex items-center justify-center bg-grey2-700 text-common-black typography-subtitle2 truncate"],{variants:{size:{xxs:"w-[24px] h-[24px] typography-subtitle3",xs:"w-[32px] h-[32px]",sm:"w-[40px] h-[40px]",md:"w-[48px] h-[48px]",lg:"w-[64px] h-[64px]"},rounded:{normal:"rounded",full:"rounded-full",none:"rounded-none"}},defaultVariants:{size:"md",rounded:"normal"}}),uge=e=>{var t,r,n;if(!e.length)return"-";const a=e.split(" ");return`${null==e?void 0:e.charAt(0)}${null!==(n=null!==(r=null===(t=null==a?void 0:a[1])||void 0===t?void 0:t.charAt(0))&&void 0!==r?r:null==e?void 0:e.charAt(1))&&void 0!==n?n:""}`},hge=e.createContext(void 0),pge=()=>{const t=e.useContext(hge);if(!t)throw new Error("useCollapsible must be used within a CollapsibleProvider");return t},fge=({size:r,children:n,isExpandControlled:a,onToggle:o})=>{const[l,i]=e.useState(!1);return e.useEffect((()=>{void 0!==a&&i(a)}),[a]),t.jsx(hge.Provider,{value:{size:r,isExpand:l,toggle:()=>{i((e=>!e)),o&&o(!l)},setIsExpand:i},children:n})},vge=r.cva(["flex flex-1 bg-secondary-default hover:bg-secondary-hover text-state-secondary-text-solid","focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75"],{variants:{size:{sm:"py-2 px-3",md:"py-3 px-4",lg:"py-4 px-5"}},defaultVariants:{size:"md"}}),mge=r.cva(["transition-all flex content-center justify-center "],{variants:{size:{sm:"size-5",md:"size-6",lg:"size-7"},isExpand:{true:"rotate-180"}},defaultVariants:{size:"md",isExpand:!1}}),yge=r.cva(["flex flex-1 border-t border-t-secondary","transition ease-in-out delay-150 duration-300"],{variants:{size:{sm:"py-2 px-3",md:"py-3 px-4",lg:"py-4 px-5"}},defaultVariants:{size:"md"}}),gge=r.cva(["flex flex-col border border-secondary rounded overflow-hidden"]),kge=e.forwardRef((({children:e,className:r,hideExpandIcon:n=!1},a)=>{const{toggle:o,isExpand:l,size:i}=pge(),s=vge({size:i}),c=mge({isExpand:l,size:i});return t.jsxs("button",{onClick:o,className:s_(s,r),ref:a,children:[t.jsx("span",{className:"flex flex-1",children:e}),!n&&t.jsx("span",{className:s_(c),children:t.jsx(hn,{className:s_("size-full")})})]})}));kge.displayName="CollapsibleButton";const bge=e.forwardRef((({children:r,className:n},a)=>{const{isExpand:o,size:l}=pge(),i=yge({size:l}),[s,c]=e.useState("0px"),d=e.useRef(null);return e.useEffect((()=>{d.current&&c(o?`${d.current.scrollHeight}px`:"0px")}),[o,r]),t.jsx("div",{ref:a,className:s_("overflow-hidden transition-all ease-in-out"),style:{height:s},children:t.jsx("div",{ref:d,className:s_(i,n),children:r})})}));bge.displayName="CollapsiblePanel";const wge=e.forwardRef((({children:e,isExpand:r,size:n,className:a,onToggle:o},l)=>{const i=gge();return t.jsx(fge,{size:n,isExpandControlled:r,onToggle:o,children:t.jsx("div",{ref:l,className:s_(i,a),children:e})})}));var xge,_ge,Mge;wge.displayName="Collapsible",wge.Button=kge,wge.Panel=bge,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"}(xge||(xge={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(_ge||(_ge={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(Mge||(Mge={}));const jge=6048e5,Oge=Symbol.for("constructDateFrom");function Ege(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Oge in e?e[Oge](t):e instanceof Date?new e.constructor(t):new Date(t)}function zge(e,t){return Ege(t||e,e)}function Cge(e,t,r){const n=zge(e,r?.in);return isNaN(t)?Ege(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Pge(e,t,r){const n=zge(e,r?.in);if(isNaN(t))return Ege(e,NaN);if(!t)return n;const a=n.getDate(),o=Ege(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return a>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}let Rge={};function Age(){return Rge}function Lge(e,t){const r=Age(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zge(e,t?.in),o=a.getDay(),l=(o<n?7:0)+o-n;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function Ige(e,t){return Lge(e,{...t,weekStartsOn:1})}function Vge(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=Ege(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=Ige(a),l=Ege(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const i=Ige(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function Hge(e){const t=zge(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Sge(e,...t){const r=Ege.bind(null,t.find((e=>"object"==typeof e)));return t.map(r)}function Zge(e,t){const r=zge(e,t?.in);return r.setHours(0,0,0,0),r}function Nge(e,t,r){const[n,a]=Sge(0,e,t),o=Zge(n),l=Zge(a),i=+o-Hge(o),s=+l-Hge(l);return Math.round((i-s)/864e5)}function qge(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Dge(e,t){const r=zge(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Bge(e,t){const r=Age(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zge(e,t?.in),o=a.getDay(),l=6+(o<n?-7:0)-(o-n);return a.setDate(a.getDate()+l),a.setHours(23,59,59,999),a}const Fge={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"}};function Tge(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Wge={date:Tge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tge({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Tge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Uge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gge(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const $ge={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gge({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gge({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gge({values:{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"]},defaultWidth:"wide"}),day:Gge({values:{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"]},defaultWidth:"wide"}),dayPeriod:Gge({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function Yge(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,(e=>e.test(l))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,(e=>e.test(l)));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(l.length)}}}const Kge={ordinalNumber:(Xge={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Xge.matchPattern);if(!r)return null;const n=r[0],a=e.match(Xge.parsePattern);if(!a)return null;let o=Xge.valueCallback?Xge.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Yge({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:Yge({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};var Xge;const Qge={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=Fge[e];return n="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Wge,formatRelative:(e,t,r,n)=>Uge[e],localize:$ge,match:Kge,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jge(e,t){const r=zge(e,t?.in),n=+Ige(r)-+function(e,t){const r=Vge(e,t),n=Ege(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ige(n)}(r);return Math.round(n/jge)+1}function eke(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=Age(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=Ege(t?.in||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=Lge(l,t),s=Ege(t?.in||e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=Lge(s,t);return+r>=+i?n+1:+r>=+c?n:n-1}function tke(e,t){const r=zge(e,t?.in),n=+Lge(r,t)-+function(e,t){const r=Age(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=eke(e,t),o=Ege(t?.in||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),Lge(o,t)}(r,t);return Math.round(n/jge)+1}function rke(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const nke={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return rke("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):rke(r+1,2)},d:(e,t)=>rke(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>rke(e.getHours()%12||12,t.length),H:(e,t)=>rke(e.getHours(),t.length),m:(e,t)=>rke(e.getMinutes(),t.length),s:(e,t)=>rke(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return rke(Math.trunc(n*Math.pow(10,r-3)),t.length)}},ake="midnight",oke="noon",lke="morning",ike="afternoon",ske="evening",cke="night",dke={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return nke.y(e,t)},Y:function(e,t,r,n){const a=eke(e,n),o=a>0?a:1-a;if("YY"===t){return rke(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):rke(o,t.length)},R:function(e,t){return rke(Vge(e),t.length)},u:function(e,t){return rke(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return rke(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return rke(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return nke.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return rke(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=tke(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):rke(a,t.length)},I:function(e,t,r){const n=Jge(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):rke(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):nke.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=zge(e,t?.in);return Nge(r,Dge(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):rke(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rke(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rke(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return rke(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(a=12===n?oke:0===n?ake:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(a=n>=17?ske:n>=12?ike:n>=4?lke:cke,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return nke.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):nke.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):rke(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):rke(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):nke.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):nke.s(e,t)},S:function(e,t){return nke.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return hke(n);case"XXXX":case"XX":return pke(n);default:return pke(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return hke(n);case"xxxx":case"xx":return pke(n);default:return pke(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uke(n,":");default:return"GMT"+pke(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uke(n,":");default:return"GMT"+pke(n,":")}},t:function(e,t,r){return rke(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return rke(+e,t.length)}};function uke(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return 0===o?r+String(a):r+String(a)+t+rke(o,2)}function hke(e,t){if(e%60==0){return(e>0?"-":"+")+rke(Math.abs(e)/60,2)}return pke(e,t)}function pke(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+rke(Math.trunc(n/60),2)+t+rke(n%60,2)}const fke=(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"})}},vke=(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"})}},mke={p:vke,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return fke(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",fke(n,t)).replace("{{time}}",vke(a,t))}},yke=/^D+$/,gke=/^Y+$/,kke=["D","DD","YY","YYYY"];const bke=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wke=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xke=/^'([^]*?)'?$/,_ke=/''/g,Mke=/[a-zA-Z]/;function jke(e,t,r){const n=Age(),a=r?.locale??n.locale??Qge,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zge(e,r?.in);if(!function(e){return!(!qge(e)&&"number"!=typeof e||isNaN(+zge(e)))}(i))throw new RangeError("Invalid time value");let s=t.match(wke).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,mke[t])(e,a.formatLong)}return e})).join("").match(bke).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Oke(e)};if(dke[t])return{isToken:!0,value:e};if(t.match(Mke))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(s=a.localize.preprocessor(i,s));const c={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return s.map((n=>{if(!n.isToken)return n.value;const o=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return gke.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return yke.test(e)}(o))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),kke.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,dke[o[0]])(i,o,a.localize,c)})).join("")}function Oke(e){const t=e.match(xke);return t?t[1].replace(_ke,"'"):e}function Eke(e,t,r){const n=zge(e,r?.in),a=n.getFullYear(),o=n.getDate(),l=Ege(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const i=function(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=r.getMonth(),o=Ege(r,0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}(l);return n.setMonth(t,Math.min(o,i)),n}function zke(e,t){const r=t.startOfMonth(e),n=r.getDay();return 1===n?r:0===n?t.addDays(r,-6):t.addDays(r,-1*(n-1))}class Cke{constructor(e,t){this.Date=Date,this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Cge(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Pge(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,r){return Cge(e,7*t,r)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,r){return Pge(e,12*t,r)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Nge(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t){const[r,n]=Sge(0,e,t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(e,t),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const r=zke(e,t),n=function(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,a=t.addDays(e,1-n),o=t.addDays(a,34);return e.getMonth()===o.getMonth()?5:4}(e,t);return t.addDays(r,7*n-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return Bge(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const r=zge(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):Bge(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const r=zge(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}(e),this.format=(e,t)=>this.overrides?.format?this.overrides.format(e,t,this.options):jke(e,t,this.options),this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Jge(e),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):tke(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+zge(e)>+zge(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+zge(e)<+zge(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):qge(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[r,n]=Sge(0,e,t);return+Zge(r)==+Zge(n)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[r,n]=Sge(0,e,t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t){const[r,n]=Sge(0,e,t);return r.getFullYear()===n.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=Ege.bind(null,e));const t=zge(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),Ege(n,r||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=Ege.bind(null,e));const t=zge(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),Ege(n,r||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Eke(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,r){const n=zge(e,r?.in);return isNaN(+n)?Ege(e,NaN):(n.setFullYear(t),n)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):zke(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Zge(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Ige(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const r=zge(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Lge(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Dge(e),this.options={locale:Qge,...e},this.overrides=t}}const Pke=new Cke;const Rke=e.createContext(void 0);function Ake(){const t=e.useContext(Rke);if(void 0===t)throw new Error("useDayPicker() must be used within a custom component.");return t}var Lke=Object.freeze({__proto__:null,Button:function(t){return e.createElement("button",{...t})},CaptionLabel:function(t){return e.createElement("span",{...t})},Chevron:function(t){const{size:r=24,orientation:n="left",className:a}=t;return e.createElement("svg",{className:a,width:r,height:r,viewBox:"0 0 24 24"},"up"===n&&e.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&e.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&e.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&e.createElement("polygon",{points:"8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5"}))},Day:function(t){const{day:r,modifiers:n,...a}=t;return e.createElement("td",{...a})},DayButton:function(t){const{day:r,modifiers:n,...a}=t,o=e.useRef(null);return e.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),e.createElement("button",{ref:o,...a})},Dropdown:function(t){const{options:r,className:n,components:a,classNames:o,...l}=t,i=[o[xge.Dropdown],n].join(" "),s=r?.find((({value:e})=>e===l.value));return e.createElement("span",{"data-disabled":l.disabled,className:o[xge.DropdownRoot]},e.createElement(a.Select,{className:i,...l},r?.map((({value:t,label:r,disabled:n})=>e.createElement(a.Option,{key:t,value:t,disabled:n},r)))),e.createElement("span",{className:o[xge.CaptionLabel],"aria-hidden":!0},s?.label,e.createElement(a.Chevron,{orientation:"down",size:18,className:o[xge.Chevron]})))},DropdownNav:function(t){return e.createElement("div",{...t})},Footer:function(t){return e.createElement("div",{...t})},Month:function(t){const{calendarMonth:r,displayIndex:n,...a}=t;return e.createElement("div",{...a},t.children)},MonthCaption:function(t){const{calendarMonth:r,displayIndex:n,...a}=t;return e.createElement("div",{...a})},MonthGrid:function(t){return e.createElement("table",{...t})},Months:function(t){return e.createElement("div",{...t})},MonthsDropdown:function(t){const{components:r}=Ake();return e.createElement(r.Dropdown,{...t})},Nav:function(t){const{onPreviousClick:r,onNextClick:n,previousMonth:a,nextMonth:o,...l}=t,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:d}}=Ake();return e.createElement("nav",{...l},e.createElement(i.PreviousMonthButton,{type:"button",className:s[xge.PreviousMonthButton],tabIndex:a?void 0:-1,disabled:!a||void 0,"aria-label":c(a),onClick:t.onPreviousClick},e.createElement(i.Chevron,{disabled:!a||void 0,className:s[xge.Chevron],orientation:"left"})),e.createElement(i.NextMonthButton,{type:"button",className:s[xge.NextMonthButton],tabIndex:o?void 0:-1,disabled:!o||void 0,"aria-label":d(o),onClick:t.onNextClick},e.createElement(i.Chevron,{disabled:!o||void 0,orientation:"right",className:s[xge.Chevron]})))},NextMonthButton:function(t){const{components:r}=Ake();return e.createElement(r.Button,{...t})},Option:function(t){return e.createElement("option",{...t})},PreviousMonthButton:function(t){const{components:r}=Ake();return e.createElement(r.Button,{...t})},Root:function(t){return e.createElement("div",{...t})},Select:function(t){return e.createElement("select",{...t})},Week:function(t){const{week:r,...n}=t;return e.createElement("tr",{...n})},WeekNumber:function(t){const{week:r,...n}=t;return e.createElement("th",{...n})},WeekNumberHeader:function(t){return e.createElement("th",{...t})},Weekday:function(t){return e.createElement("th",{...t})},Weekdays:function(t){return e.createElement("thead",{"aria-hidden":!0},e.createElement("tr",{...t}))},Weeks:function(t){return e.createElement("tbody",{...t})},YearsDropdown:function(t){const{components:r}=Ake();return e.createElement(r.Dropdown,{...t})}});function Ike(e){return{...Lke,...e}}function Vke(){const e={};for(const t in xge)e[xge[t]]=`rdp-${xge[t]}`;for(const t in _ge)e[_ge[t]]=`rdp-${_ge[t]}`;for(const t in Mge)e[Mge[t]]=`rdp-${Mge[t]}`;return e}function Hke(e,t,r){return(r??new Cke(t)).format(e,"LLLL y")}const Ske=Hke;function Zke(e){return e.toString()}const Nke=Zke;var qke=Object.freeze({__proto__:null,formatCaption:Hke,formatDay:function(e,t,r){return(r??new Cke(t)).format(e,"d")},formatMonthCaption:Ske,formatMonthDropdown:function(e,t){return t.localize?.month(e)},formatWeekNumber:function(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`},formatWeekNumberHeader:function(){return""},formatWeekdayName:function(e,t,r){return(r??new Cke(t)).format(e,"cccccc")},formatYearCaption:Nke,formatYearDropdown:Zke});const Dke={},Bke={};function Fke(e,t){try{const r=(Dke[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in Bke?Bke[r]:Wke(r,r.split(":"))}catch{if(e in Bke)return Bke[e];const t=e?.match(Tke);return t?Wke(e,t.slice(1)):NaN}}const Tke=/([+-]\d\d):?(\d\d)?/;function Wke(e,t){const r=+t[0],n=+(t[1]||0);return Bke[e]=r>0?60*r+n:60*r-n}class Uke extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Fke(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Yke(this),$ke(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Uke(...t,e):new Uke(Date.now(),e)}withTimeZone(e){return new Uke(+this,e)}getTimezoneOffset(){return-Fke(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),$ke(this),+this}[Symbol.for("constructDateFrom")](e){return new Uke(+new Date(e),this.timeZone)}}const Gke=/^(get|set)(?!UTC)/;function $ke(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Yke(e){const t=Fke(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),a=n- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=n-t;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const i=Fke(e.timeZone,e),s=-new Date(+e).getTimezoneOffset()-i-l;if(i!==t&&s){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const t=i-Fke(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Gke.test(e))return;const t=e.replace(Gke,"$1UTC");Uke.prototype[t]&&(e.startsWith("get")?Uke.prototype[e]=function(){return this.internal[t]()}:(Uke.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,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()),Yke(e),+this},Uke.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$ke(this),+this}))}));class Kke extends Uke{static tz(e,...t){return t.length?new Kke(...t,e):new Kke(Date.now(),e)}toISOString(){const[e,t,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${a=this.timeZone,o=this,new Intl.DateTimeFormat("en-GB",{timeZone:a,timeZoneName:"long"}).format(o).slice(12)})`;var a,o}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new Kke(+this,e)}[Symbol.for("constructDateFrom")](e){return new Kke(+new Date(e),this.timeZone)}}function Xke(e,t,r){return(r??new Cke(t)).format(e,"LLLL y")}const Qke=Xke;function Jke(e,t,r,n){let a=(n??new Cke(r)).format(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a}const ebe=Jke;var tbe=Object.freeze({__proto__:null,labelCaption:Qke,labelDay:ebe,labelDayButton:Jke,labelGrid:Xke,labelGridcell:function(e,t,r,n){let a=(n??new Cke(r)).format(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelMonthDropdown:function(e){return"Choose the Month"},labelNav:function(){return""},labelNext:function(e){return"Go to the Next Month"},labelPrevious:function(e){return"Go to the Previous Month"},labelWeekNumber:function(e,t){return`Week ${e}`},labelWeekNumberHeader:function(e){return"Week Number"},labelWeekday:function(e,t,r){return(r??new Cke(t)).format(e,"cccc")},labelYearDropdown:function(e){return"Choose the Year"}});function rbe(e,t){const{month:r,defaultMonth:n,today:a=(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date),numberOfMonths:o=1,endMonth:l,startMonth:i}=e;let s=r||n||a;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:u}=t;if(l&&c(l,s)<0){s=d(l,-1*(o-1))}return i&&c(s,i)<0&&(s=i),u(s)}class nbe{constructor(e,t,r=Pke){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!r.isSameMonth(e,t)),this.dateLib=r}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class abe{constructor(e,t){this.date=e,this.weeks=t}}class obe{constructor(e,t){this.days=t,this.weekNumber=e}}function lbe(t,r){const[n,a]=e.useState(t);return[void 0===r?n:r,a]}function ibe(t,r){const[n,a]=function(e,t){let{startMonth:r,endMonth:n}=e;const{startOfYear:a,startOfDay:o,startOfMonth:l,endOfMonth:i,addYears:s,endOfYear:c}=t,{fromYear:d,toYear:u,fromMonth:h,toMonth:p}=e;!r&&h&&(r=h),!r&&d&&(r=new Date(d,0,1)),!n&&p&&(n=p),!n&&u&&(n=new Date(u,11,31));const f=e.captionLayout?.startsWith("dropdown");r?r=l(r):d?r=new Date(d,0,1):!r&&f&&(r=a(s(e.today??(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date),-100)));n?n=i(n):u?n=new Date(u,11,31):!n&&f&&(n=c(e.today??(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date)));return[r?o(r):r,n?o(n):n]}(t,r),{startOfMonth:o,endOfMonth:l}=r,i=rbe(t,r),[s,c]=lbe(i,t.month?o(t.month):void 0);e.useEffect((()=>{const e=rbe(t,r);c(e)}),[t.timeZone]);const d=function(e,t,r,n){const{numberOfMonths:a=1}=r,o=[];for(let r=0;r<a;r++){const a=n.addMonths(e,r);if(t&&a>t)break;o.push(a)}return o}(s,a,t,r),u=function(e,t,r,n){const a=e[0],o=e[e.length-1],{ISOWeek:l,fixedWeeks:i,broadcastCalendar:s}=r??{},{addDays:c,differenceInCalendarDays:d,differenceInCalendarMonths:u,endOfBroadcastWeek:h,endOfISOWeek:p,endOfMonth:f,endOfWeek:v,isAfter:m,startOfBroadcastWeek:y,startOfISOWeek:g,startOfWeek:k}=n,b=s?y(a,n):l?g(a):k(a),w=d(s?h(o,n):l?p(f(o)):v(f(o)),b),x=u(o,a)+1,_=[];for(let e=0;e<=w;e++){const r=c(b,e);if(t&&m(r,t))break;_.push(r)}const M=(s?35:42)*x;if(i&&_.length<M){const e=M-_.length;for(let t=0;t<e;t++){const e=c(_[_.length-1],1);_.push(e)}}return _}(d,t.endMonth?l(t.endMonth):void 0,t,r),h=function(e,t,r,n){const{addDays:a,endOfBroadcastWeek:o,endOfISOWeek:l,endOfMonth:i,endOfWeek:s,getISOWeek:c,getWeek:d,startOfBroadcastWeek:u,startOfISOWeek:h,startOfWeek:p}=n,f=e.reduce(((e,f)=>{const v=r.broadcastCalendar?u(f,n):r.ISOWeek?h(f):p(f),m=r.broadcastCalendar?o(f,n):r.ISOWeek?l(i(f)):s(i(f)),y=t.filter((e=>e>=v&&e<=m)),g=r.broadcastCalendar?35:42;if(r.fixedWeeks&&y.length<g){const e=t.filter((e=>{const t=g-y.length;return e>m&&e<=a(m,t)}));y.push(...e)}const k=y.reduce(((e,t)=>{const a=r.ISOWeek?c(t):d(t),o=e.find((e=>e.weekNumber===a)),l=new nbe(t,f,n);return o?o.days.push(l):e.push(new obe(a,[l])),e}),[]),b=new abe(f,k);return e.push(b),e}),[]);return r.reverseMonths?f.reverse():f}(d,u,t,r),p=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(h),f=h.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]);const v=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:o}=r,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:s}=n,c=a?o??1:1,d=l(e);return t&&s(d,t)<=0?void 0:i(d,-c)}(s,n,t,r),m=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:o=1}=r,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:s}=n,c=a?o:1,d=l(e);return t&&s(t,e)<o?void 0:i(d,c)}(s,a,t,r),{disableNavigation:y,onMonthChange:g}=t,k=e=>{if(y)return;let t=o(e);n&&t<o(n)&&(t=o(n)),a&&t>o(a)&&(t=o(a)),c(t),g?.(t)};return{months:h,weeks:p,days:f,navStart:n,navEnd:a,previousMonth:v,nextMonth:m,goToMonth:k,goToDay:e=>{(e=>p.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||k(e.date)}}}function sbe(e,t,r=!1,n=Pke){let{from:a,to:o}=e;const{differenceInCalendarDays:l,isSameDay:i}=n;if(a&&o){l(o,a)<0&&([a,o]=[o,a]);return l(t,a)>=(r?1:0)&&l(o,t)>=(r?1:0)}return!r&&o?i(o,t):!(r||!a)&&i(a,t)}function cbe(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function dbe(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function ube(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function hbe(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function pbe(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function fbe(e,t){return Array.isArray(e)&&e.every(t.isDate)}function vbe(e,t,r=Pke){const n=Array.isArray(t)?t:[t],{isSameDay:a,differenceInCalendarDays:o,isAfter:l}=r;return n.some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return a(e,t);if(fbe(t,r))return t.includes(e);if(dbe(t))return sbe(t,e,!1,r);if(pbe(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(cbe(t)){const r=o(t.before,e)>0,n=o(t.after,e)<0;return l(t.before,t.after)?n&&r:r||n}return ube(t)?o(e,t.after)>0:hbe(t)?o(t.before,e)>0:"function"==typeof t&&t(e)}))}function mbe(e,t,r,n,a,o,l,i=0){if(i>365)return;const s=function(e,t,r,n,a,o,l){const{ISOWeek:i,broadcastCalendar:s}=o,{addDays:c,addMonths:d,addWeeks:u,addYears:h,endOfBroadcastWeek:p,endOfISOWeek:f,endOfWeek:v,max:m,min:y,startOfBroadcastWeek:g,startOfISOWeek:k,startOfWeek:b}=l;let w={day:c,week:u,month:d,year:h,startOfWeek:e=>s?g(e,l):i?k(e):b(e),endOfWeek:e=>s?p(e,l):i?f(e):v(e)}[e](r,"after"===t?1:-1);return"before"===t&&n?w=m([n,w]):"after"===t&&a&&(w=y([a,w])),w}(e,t,r.date,n,a,o,l),c=Boolean(o.disabled&&vbe(s,o.disabled,l)),d=Boolean(o.hidden&&vbe(s,o.hidden,l)),u=new nbe(s,s,l);return c||d?mbe(e,t,u,n,a,o,l,i+1):u}function ybe(t,r,n,a,o){const{autoFocus:l}=t,[i,s]=e.useState(),c=function(e,t,r,n){let a,o=0,l=!1;for(;o<e.length&&!l;){const i=e[o],s=t(i);s[_ge.disabled]||s[_ge.hidden]||s[_ge.outside]||(s[_ge.focused]||n?.isEqualTo(i)||r(i.date)||s[_ge.today])&&(a=i,l=!0),o++}return a||(a=e.find((e=>{const r=t(e);return!r[_ge.disabled]&&!r[_ge.hidden]&&!r[_ge.outside]}))),a}(r.days,n,a||(()=>!1),i),[d,u]=e.useState(l?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{s(d),u(void 0)},moveFocus:(e,n)=>{if(!d)return;const a=mbe(e,n,d,r.navStart,r.navEnd,t,o);a&&(r.goToDay(a),u(a))}}}function gbe(e,t,r=Pke){return sbe(e,t.from,!1,r)||sbe(e,t.to,!1,r)||sbe(t,e.from,!1,r)||sbe(t,e.to,!1,r)}function kbe(e,t,r=Pke){const n=Array.isArray(t)?t:[t],a=n.filter((e=>"function"!=typeof e)).some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return sbe(e,t,!1,r);if(fbe(t,r))return t.some((t=>sbe(e,t,!1,r)));if(dbe(t))return!(!t.from||!t.to)&&gbe(e,{from:t.from,to:t.to},r);if(pbe(t))return function(e,t,r=Pke){const n=Array.isArray(t)?t:[t];let a=e.from;const o=r.differenceInCalendarDays(e.to,e.from),l=Math.min(o,6);for(let e=0;e<=l;e++){if(n.includes(a.getDay()))return!0;a=r.addDays(a,1)}return!1}(e,t.dayOfWeek,r);if(cbe(t)){return r.isAfter(t.before,t.after)?gbe(e,{from:r.addDays(t.after,1),to:r.addDays(t.before,-1)},r):vbe(e.from,t,r)||vbe(e.to,t,r)}return!(!ube(t)&&!hbe(t))&&(vbe(e.from,t,r)||vbe(e.to,t,r))}));if(a)return!0;const o=n.filter((e=>"function"==typeof e));if(o.length){let t=e.from;const n=r.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=n;e++){if(o.some((e=>e(t))))return!0;t=r.addDays(t,1)}}return!1}function bbe(e,t){const{disabled:r,excludeDisabled:n,selected:a,required:o,onSelect:l}=e,[i,s]=lbe(a,l?a:void 0),c=l?a:i;return{selected:c,select:(a,i,d)=>{const{min:u,max:h}=e,p=a?function(e,t,r=0,n=0,a=!1,o=Pke){const{from:l,to:i}=t||{},{isSameDay:s,isAfter:c,isBefore:d}=o;let u;if(l||i){if(l&&!i)u=s(l,e)?a?{from:l,to:void 0}:void 0:d(e,l)?{from:e,to:l}:{from:l,to:e};else if(l&&i)if(s(l,e)&&s(i,e))u=a?{from:l,to:i}:void 0;else if(s(l,e))u={from:l,to:r>0?void 0:e};else if(s(i,e))u={from:e,to:r>0?void 0:e};else if(d(e,l))u={from:e,to:i};else if(c(e,l))u={from:l,to:e};else{if(!c(e,i))throw new Error("Invalid range");u={from:l,to:e}}}else u={from:e,to:r>0?void 0:e};if(u?.from&&u?.to){const t=o.differenceInCalendarDays(u.to,u.from);(n>0&&t>n||r>1&&t<r)&&(u={from:e,to:void 0})}return u}(a,c,u,h,o,t):void 0;return n&&r&&p?.from&&p.to&&kbe({from:p.from,to:p.to},r,t)&&(p.from=a,p.to=void 0),l||s(p),l?.(p,a,i,d),p},isSelected:e=>c&&sbe(c,e,!1,t)}}function wbe(e,t){const r=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=lbe(r,a?r:void 0),i=a?r:o,{isSameDay:s}=t;return{selected:i,select:(e,t,r)=>{let o=e;return!n&&i&&i&&s(e,i)&&(o=void 0),a||l(o),a?.(o,e,t,r),o},isSelected:e=>!!i&&s(i,e)}}(e,t),n=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=lbe(r,a?r:void 0),i=a?r:o,{isSameDay:s}=t,c=e=>i?.some((t=>s(t,e)))??!1,{min:d,max:u}=e;return{selected:i,select:(e,t,r)=>{let o=[...i??[]];if(c(e)){if(i?.length===d)return;if(n&&1===i?.length)return;o=i?.filter((t=>!s(t,e)))}else o=i?.length===u?[e]:[...o,e];return a||l(o),a?.(o,e,t,r),o},isSelected:c}}(e,t),a=bbe(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return a;default:return}}function xbe(t){const{components:r,formatters:n,labels:a,dateLib:o,locale:l,classNames:i}=e.useMemo((()=>{const e={...Qge,...t.locale};return{dateLib:new Cke({locale:e,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens},t.dateLib),components:Ike(t.components),formatters:(r=t.formatters,r?.formatMonthCaption&&!r.formatCaption&&(r.formatCaption=r.formatMonthCaption),r?.formatYearCaption&&!r.formatYearDropdown&&(r.formatYearDropdown=r.formatYearCaption),{...qke,...r}),labels:{...tbe,...t.labels},locale:e,classNames:{...Vke(),...t.classNames}};var r}),[t.classNames,t.components,t.dateLib,t.firstWeekContainsDate,t.formatters,t.labels,t.locale,t.useAdditionalDayOfYearTokens,t.useAdditionalWeekYearTokens,t.weekStartsOn,t.broadcastCalendar]),{captionLayout:s,mode:c,onDayBlur:d,onDayClick:u,onDayFocus:h,onDayKeyDown:p,onDayMouseEnter:f,onDayMouseLeave:v,onNextClick:m,onPrevClick:y,showWeekNumber:g,styles:k}=t,{formatCaption:b,formatDay:w,formatMonthDropdown:x,formatWeekNumber:_,formatWeekNumberHeader:M,formatWeekdayName:j,formatYearDropdown:O}=n,E=ibe(t,o),{days:z,months:C,navStart:P,navEnd:R,previousMonth:A,nextMonth:L,goToMonth:I}=E,V=function(e,t,r){const{disabled:n,hidden:a,modifiers:o,showOutsideDays:l,broadcastCalendar:i,today:s}=t,{isSameDay:c,isSameMonth:d,startOfMonth:u,isBefore:h,endOfMonth:p,isAfter:f}=r,v=t.startMonth&&u(t.startMonth),m=t.endMonth&&p(t.endMonth),y={[_ge.focused]:[],[_ge.outside]:[],[_ge.disabled]:[],[_ge.hidden]:[],[_ge.today]:[]},g={};for(const u of e){const{date:e,displayMonth:p}=u,k=Boolean(p&&!d(e,p)),b=Boolean(v&&h(e,v)),w=Boolean(m&&f(e,m)),x=Boolean(n&&vbe(e,n,r)),_=Boolean(a&&vbe(e,a,r))||b||w||!i&&!l&&k||i&&!1===l&&k,M=c(e,s??(t.timeZone?Kke.tz(t.timeZone):r.Date?new r.Date:new Date));k&&y.outside.push(u),x&&y.disabled.push(u),_&&y.hidden.push(u),M&&y.today.push(u),o&&Object.keys(o).forEach((t=>{const n=o?.[t];n&&vbe(e,n,r)&&(g[t]?g[t].push(u):g[t]=[u])}))}return e=>{const t={[_ge.focused]:!1,[_ge.disabled]:!1,[_ge.hidden]:!1,[_ge.outside]:!1,[_ge.today]:!1},r={};for(const r in y){const n=y[r];t[r]=n.some((t=>t===e))}for(const t in g)r[t]=g[t].some((t=>t===e));return{...t,...r}}}(z,t,o),{isSelected:H,select:S,selected:Z}=wbe(t,o)??{},{blur:N,focused:q,isFocusTarget:D,moveFocus:B,setFocused:F}=ybe(t,E,V,H??(()=>!1),o),{labelDayButton:T,labelGridcell:W,labelGrid:U,labelMonthDropdown:G,labelNav:$,labelWeekday:Y,labelWeekNumber:K,labelWeekNumberHeader:X,labelYearDropdown:Q}=a,J=e.useMemo((()=>function(e,t,r){const n=r?Kke.tz(r):e.Date?new e.Date:new Date,a=t?e.startOfISOWeek(n):e.startOfWeek(n),o=[];for(let t=0;t<7;t++){const r=e.addDays(a,t);o.push(r)}return o}(o,t.ISOWeek,t.timeZone)),[o,t.ISOWeek,t.timeZone]),ee=void 0!==c||void 0!==u,te=e.useCallback((()=>{A&&(I(A),y?.(A))}),[A,I,y]),re=e.useCallback((()=>{L&&(I(L),m?.(L))}),[I,L,m]),ne=e.useCallback(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),F(e),S?.(e.date,t,r),u?.(e.date,t,r)}),[S,u,F]),ae=e.useCallback(((e,t)=>r=>{F(e),h?.(e.date,t,r)}),[h,F]),oe=e.useCallback(((e,t)=>r=>{N(),d?.(e.date,t,r)}),[N,d]),le=e.useCallback(((e,r)=>n=>{const a={ArrowLeft:["day","rtl"===t.dir?"after":"before"],ArrowRight:["day","rtl"===t.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(a[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=a[n.key];B(e,t)}p?.(e.date,r,n)}),[B,p,t.dir]),ie=e.useCallback(((e,t)=>r=>{f?.(e.date,t,r)}),[f]),se=e.useCallback(((e,t)=>r=>{v?.(e.date,t,r)}),[v]),ce=e.useCallback((e=>t=>{const r=Number(t.target.value),n=o.setMonth(o.startOfMonth(e),r);I(n)}),[o,I]),de=e.useCallback((e=>t=>{const r=Number(t.target.value),n=o.setYear(o.startOfMonth(e),r);I(n)}),[o,I]),{className:ue,style:he}=e.useMemo((()=>({className:[i[xge.Root],t.className].filter(Boolean).join(" "),style:{...k?.[xge.Root],...t.style}})),[i,t.className,t.style,k]),pe=function(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};return Object.entries(e).forEach((([e,r])=>{e.startsWith("data-")&&(t[e]=r)})),t}(t),fe={dayPickerProps:t,selected:Z,select:S,isSelected:H,months:C,nextMonth:L,previousMonth:A,goToMonth:I,getModifiers:V,components:r,classNames:i,styles:k,labels:a,formatters:n};return e.createElement(Rke.Provider,{value:fe},e.createElement(r.Root,{className:ue,style:he,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...pe},e.createElement(r.Months,{className:i[xge.Months],style:k?.[xge.Months]},!t.hideNavigation&&e.createElement(r.Nav,{className:i[xge.Nav],style:k?.[xge.Nav],"aria-label":$(),onPreviousClick:te,onNextClick:re,previousMonth:A,nextMonth:L}),C.map(((a,d)=>{const u=function(e,t,r,n,a){if(!t)return;if(!r)return;const{addMonths:o,startOfMonth:l}=a,i=e.getFullYear(),s=[];let c=t;for(;s.length<12;)s.push(c.getMonth()),c=o(c,1);const d=s.sort(((e,t)=>e-t)).map((e=>{const o=n.formatMonthDropdown(e,a.options.locale??Qge),s=a.Date?new a.Date(i,e):new Date(i,e);return{value:e,label:o,disabled:t&&s<l(t)||r&&s>l(r)||!1}}));return d}(a.date,P,R,n,o),h=function(e,t,r,n){if(!e)return;if(!t)return;const{startOfYear:a,endOfYear:o,addYears:l,isBefore:i,isSameYear:s}=n,c=a(e),d=o(t),u=[];let h=c;for(;i(h,d)||s(h,d);)u.push(h.getFullYear()),h=l(h,1);return u.map((e=>({value:e,label:r.formatYearDropdown(e),disabled:!1})))}(P,R,n,o);return e.createElement(r.Month,{className:i[xge.Month],style:k?.[xge.Month],key:d,displayIndex:d,calendarMonth:a},e.createElement(r.MonthCaption,{className:i[xge.MonthCaption],style:k?.[xge.MonthCaption],calendarMonth:a,displayIndex:d},s?.startsWith("dropdown")?e.createElement(r.DropdownNav,{className:i[xge.Dropdowns],style:k?.[xge.Dropdowns]},"dropdown"===s||"dropdown-months"===s?e.createElement(r.MonthsDropdown,{className:i[xge.MonthsDropdown],"aria-label":G(),classNames:i,components:r,disabled:Boolean(t.disableNavigation),onChange:ce(a.date),options:u,style:k?.[xge.Dropdown],value:a.date.getMonth()}):e.createElement("span",{role:"status","aria-live":"polite"},x(a.date.getMonth(),l)),"dropdown"===s||"dropdown-years"===s?e.createElement(r.YearsDropdown,{className:i[xge.YearsDropdown],"aria-label":Q(o.options),classNames:i,components:r,disabled:Boolean(t.disableNavigation),onChange:de(a.date),options:h,style:k?.[xge.Dropdown],value:a.date.getFullYear()}):e.createElement("span",{role:"status","aria-live":"polite"},O(a.date.getFullYear()))):e.createElement(r.CaptionLabel,{className:i[xge.CaptionLabel],role:"status","aria-live":"polite"},b(a.date,o.options,o))),e.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===c||"range"===c,"aria-label":U(a.date,o.options,o)||void 0,className:i[xge.MonthGrid],style:k?.[xge.MonthGrid]},!t.hideWeekdays&&e.createElement(r.Weekdays,{className:i[xge.Weekdays],style:k?.[xge.Weekdays]},g&&e.createElement(r.WeekNumberHeader,{"aria-label":X(o.options),className:i[xge.WeekNumberHeader],style:k?.[xge.WeekNumberHeader],scope:"col"},M()),J.map(((t,n)=>e.createElement(r.Weekday,{"aria-label":Y(t,o.options,o),className:i[xge.Weekday],key:n,style:k?.[xge.Weekday],scope:"col"},j(t,o.options,o))))),e.createElement(r.Weeks,{className:i[xge.Weeks],style:k?.[xge.Weeks]},a.weeks.map(((n,a)=>e.createElement(r.Week,{className:i[xge.Week],key:n.weekNumber,style:k?.[xge.Week],week:n},g&&e.createElement(r.WeekNumber,{week:n,style:k?.[xge.WeekNumber],"aria-label":K(n.weekNumber,{locale:l}),className:i[xge.WeekNumber],scope:"row",role:"rowheader"},_(n.weekNumber)),n.days.map((n=>{const{date:a}=n,l=V(n);if(l[_ge.focused]=!l.hidden&&Boolean(q?.isEqualTo(n)),l[Mge.selected]=!l.disabled&&(H?.(a)||l.selected),dbe(Z)){const{from:e,to:t}=Z;l[Mge.range_start]=Boolean(e&&t&&o.isSameDay(a,e)),l[Mge.range_end]=Boolean(e&&t&&o.isSameDay(a,t)),l[Mge.range_middle]=sbe(Z,a,!0,o)}const s=function(e,t={},r={}){let n={...t?.[xge.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{n={...n,...r?.[e]}})),n}(l,k,t.modifiersStyles),c=function(e,t,r={}){const n=Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[n])=>(r[n]?e.push(r[n]):t[_ge[n]]?e.push(t[_ge[n]]):t[Mge[n]]&&e.push(t[Mge[n]]),e)),[t[xge.Day]]);return n}(l,i,t.modifiersClassNames),d=ee||l.hidden?void 0:W(a,l,o.options,o);return e.createElement(r.Day,{key:`${o.format(a,"yyyy-MM-dd")}_${o.format(n.displayMonth,"yyyy-MM")}`,day:n,modifiers:l,className:c.join(" "),style:s,role:"gridcell","aria-selected":l.selected||void 0,"aria-label":d,"data-day":o.format(a,"yyyy-MM-dd"),"data-month":n.outside?o.format(a,"yyyy-MM"):void 0,"data-selected":l.selected||void 0,"data-disabled":l.disabled||void 0,"data-hidden":l.hidden||void 0,"data-outside":n.outside||void 0,"data-focused":l.focused||void 0,"data-today":l.today||void 0},!l.hidden&&ee?e.createElement(r.DayButton,{className:i[xge.DayButton],style:k?.[xge.DayButton],type:"button",day:n,modifiers:l,disabled:l.disabled||void 0,tabIndex:D(n)?0:-1,"aria-label":T(a,l,o.options,o),onClick:ne(n,l),onBlur:oe(n,l),onFocus:ae(n,l),onKeyDown:le(n,l),onMouseEnter:ie(n,l),onMouseLeave:se(n,l)},w(a,o.options,o)):!l.hidden&&w(n.date,o.options,o))}))))))))}))),t.footer&&e.createElement(r.Footer,{className:i[xge.Footer],style:k?.[xge.Footer],role:"status","aria-live":"polite"},t.footer)))}function _be(e){var{className:r,classNames:n,showOutsideDays:a=!0}=e,o=o_(e,["className","classNames","showOutsideDays"]);const l=Vke();return t.jsx(xbe,Object.assign({showOutsideDays:a,captionLayout:"dropdown-years"},o,{className:s_("bg-bg-bg1 text-common-black border-bg-bg1",r),classNames:Object.assign(Object.assign(Object.assign({},l),{day_button:s_(l.day_button,"size-9"),day:"typography-subtitle1 ",today:"text-bold text-common-black [&_button]:rounded-full [&_button]:!border-primary [&_button]:!border [&_button]:!border-solid",selected:"bg-primary !text-state-primary-text-solid rounded-full ",weekdays:"text-gray-400",month_caption:s_(l.month_caption,"h-[54px]"),outside:"text-gray-400",nav:s_(l.nav,"gap-6 absolute flex right-0"),chevron:"fill-primary",root:s_(l.root,"px-6 py-4"),caption_label:s_(l.caption_label,"gap-2 flex items-center"),months:"flex flex-col relative",disabled:"[&_button]:rounded-full [&_button]:!text-input-disable-text"}),n),styles:{caption_label:{zIndex:1,position:"relative",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",border:0},dropdown:{zIndex:2,opacity:0,WebkitAppearance:"none",MozAppearance:"none",appearance:"none",position:"absolute",insetBlockStart:0,insetBlockEnd:0,insetInlineStart:0,width:"100%",margin:0,padding:0,cursor:"inherit",border:"none",lineHeight:"inherit"},dropdowns:{position:"relative",display:"inline-flex",alignItems:"center",gap:4},dropdown_root:{position:"relative",display:"inline-flex",alignItems:"center"}}}))}_be.displayName="Calendar";var Mbe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function jbe(e,t=globalThis?.document){const r=fye(e);l.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}var Obe,Ebe="dismissableLayer.update",zbe="dismissableLayer.pointerDownOutside",Cbe="dismissableLayer.focusOutside",Pbe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rbe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(Pbe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){Lbe(zbe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){Lbe(Cbe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Obe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Abe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Obe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Abe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(Ebe,e),()=>document.removeEventListener(Ebe,e)}),[]),t.jsx(Mbe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));Rbe.displayName="DismissableLayer";function Abe(){const e=new CustomEvent(Ebe);document.dispatchEvent(e)}function Lbe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(Pbe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(Mbe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var Ibe=0;function Vbe(){l.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hbe()),document.body.insertAdjacentElement("beforeend",e[1]??Hbe()),Ibe++,()=>{1===Ibe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Ibe--}}),[])}function Hbe(){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 Sbe="focusScope.autoFocusOnMount",Zbe="focusScope.autoFocusOnUnmount",Nbe={bubbles:!1,cancelable:!0},qbe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Tbe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Tbe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Tbe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){Wbe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(Sbe,Nbe);c.addEventListener(Sbe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Tbe(n,{select:t}),document.activeElement!==r)return}((e=Dbe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Tbe(c))}return()=>{c.removeEventListener(Sbe,u),setTimeout((()=>{const e=new CustomEvent(Zbe,Nbe);c.addEventListener(Zbe,h),c.dispatchEvent(e),e.defaultPrevented||Tbe(t??document.body,{select:!0}),c.removeEventListener(Zbe,h),Wbe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=Dbe(e),r=Bbe(t,e),n=Bbe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&Tbe(o,{select:!0})):(e.preventDefault(),n&&Tbe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(Mbe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function Dbe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bbe(e,t){for(const r of e)if(!Fbe(r,{upTo:t}))return r}function Fbe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Tbe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}qbe.displayName="FocusScope";var Wbe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ube(e,t),e.unshift(t)},remove(t){e=Ube(e,t),e[0]?.resume()}}}();function Ube(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Gbe=l["useId".toString()]||(()=>{}),$be=0;function Ybe(e){const[t,r]=l.useState(Gbe());return Jme((()=>{e||r((e=>e??String($be++)))}),[e]),e||(t?`radix-${t}`:"")}const Kbe=["top","right","bottom","left"],Xbe=Math.min,Qbe=Math.max,Jbe=Math.round,ewe=Math.floor,twe=e=>({x:e,y:e}),rwe={left:"right",right:"left",bottom:"top",top:"bottom"},nwe={start:"end",end:"start"};function awe(e,t,r){return Qbe(e,Xbe(t,r))}function owe(e,t){return"function"==typeof e?e(t):e}function lwe(e){return e.split("-")[0]}function iwe(e){return e.split("-")[1]}function swe(e){return"x"===e?"y":"x"}function cwe(e){return"y"===e?"height":"width"}function dwe(e){return["top","bottom"].includes(lwe(e))?"y":"x"}function uwe(e){return swe(dwe(e))}function hwe(e){return e.replace(/start|end/g,(e=>nwe[e]))}function pwe(e){return e.replace(/left|right|bottom|top/g,(e=>rwe[e]))}function fwe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vwe(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function mwe(e,t,r){let{reference:n,floating:a}=e;const o=dwe(t),l=uwe(t),i=cwe(l),s=lwe(t),c="y"===o,d=n.x+n.width/2-a.width/2,u=n.y+n.height/2-a.height/2,h=n[i]/2-a[i]/2;let p;switch(s){case"top":p={x:d,y:n.y-a.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:u};break;case"left":p={x:n.x-a.width,y:u};break;default:p={x:n.x,y:n.y}}switch(iwe(t)){case"start":p[l]-=h*(r&&c?-1:1);break;case"end":p[l]+=h*(r&&c?-1:1)}return p}async function ywe(e,t){var r;void 0===t&&(t={});const{x:n,y:a,platform:o,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=owe(t,e),f=fwe(p),v=i[h?"floating"===u?"reference":"floating":u],m=vwe(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:s})),y="floating"===u?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,g=await(null==o.getOffsetParent?void 0:o.getOffsetParent(i.floating)),k=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},b=vwe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-b.top+f.top)/k.y,bottom:(b.bottom-m.bottom+f.bottom)/k.y,left:(m.left-b.left+f.left)/k.x,right:(b.right-m.right+f.right)/k.x}}function gwe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kwe(e){return Kbe.some((t=>e[t]>=0))}function bwe(){return"undefined"!=typeof window}function wwe(e){return Mwe(e)?(e.nodeName||"").toLowerCase():"#document"}function xwe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _we(e){var t;return null==(t=(Mwe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Mwe(e){return!!bwe()&&(e instanceof Node||e instanceof xwe(e).Node)}function jwe(e){return!!bwe()&&(e instanceof Element||e instanceof xwe(e).Element)}function Owe(e){return!!bwe()&&(e instanceof HTMLElement||e instanceof xwe(e).HTMLElement)}function Ewe(e){return!(!bwe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xwe(e).ShadowRoot)}function zwe(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Iwe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Cwe(e){return["table","td","th"].includes(wwe(e))}function Pwe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Rwe(e){const t=Awe(),r=jwe(e)?Iwe(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Awe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lwe(e){return["html","body","#document"].includes(wwe(e))}function Iwe(e){return xwe(e).getComputedStyle(e)}function Vwe(e){return jwe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hwe(e){if("html"===wwe(e))return e;const t=e.assignedSlot||e.parentNode||Ewe(e)&&e.host||_we(e);return Ewe(t)?t.host:t}function Swe(e){const t=Hwe(e);return Lwe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Owe(t)&&zwe(t)?t:Swe(t)}function Zwe(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=Swe(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),l=xwe(a);if(o){const e=Nwe(l);return t.concat(l,l.visualViewport||[],zwe(a)?a:[],e&&r?Zwe(e):[])}return t.concat(a,Zwe(a,[],r))}function Nwe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qwe(e){const t=Iwe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Owe(e),o=a?e.offsetWidth:r,l=a?e.offsetHeight:n,i=Jbe(r)!==o||Jbe(n)!==l;return i&&(r=o,n=l),{width:r,height:n,$:i}}function Dwe(e){return jwe(e)?e:e.contextElement}function Bwe(e){const t=Dwe(e);if(!Owe(t))return twe(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=qwe(t);let l=(o?Jbe(r.width):r.width)/n,i=(o?Jbe(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const Fwe=twe(0);function Twe(e){const t=xwe(e);return Awe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fwe}function Wwe(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=Dwe(e);let l=twe(1);t&&(n?jwe(n)&&(l=Bwe(n)):l=Bwe(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==xwe(e))&&t}(o,r,n)?Twe(o):twe(0);let s=(a.left+i.x)/l.x,c=(a.top+i.y)/l.y,d=a.width/l.x,u=a.height/l.y;if(o){const e=xwe(o),t=n&&jwe(n)?xwe(n):n;let r=e,a=Nwe(r);for(;a&&n&&t!==r;){const e=Bwe(a),t=a.getBoundingClientRect(),n=Iwe(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=o,c+=l,r=xwe(a),a=Nwe(r)}}return vwe({width:d,height:u,x:s,y:c})}function Uwe(e,t){const r=Vwe(e).scrollLeft;return t?t.left+r:Wwe(_we(e)).left+r}function Gwe(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Uwe(e,n)),y:n.top+t.scrollTop}}function $we(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=xwe(e),n=_we(e),a=r.visualViewport;let o=n.clientWidth,l=n.clientHeight,i=0,s=0;if(a){o=a.width,l=a.height;const e=Awe();(!e||e&&"fixed"===t)&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:l,x:i,y:s}}(e,r);else if("document"===t)n=function(e){const t=_we(e),r=Vwe(e),n=e.ownerDocument.body,a=Qbe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Qbe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Uwe(e);const i=-r.scrollTop;return"rtl"===Iwe(n).direction&&(l+=Qbe(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:i}}(_we(e));else if(jwe(t))n=function(e,t){const r=Wwe(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=Owe(e)?Bwe(e):twe(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:n*o.y}}(t,r);else{const r=Twe(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return vwe(n)}function Ywe(e,t){const r=Hwe(e);return!(r===t||!jwe(r)||Lwe(r))&&("fixed"===Iwe(r).position||Ywe(r,t))}function Kwe(e,t,r){const n=Owe(t),a=_we(t),o="fixed"===r,l=Wwe(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const s=twe(0);if(n||!n&&!o)if(("body"!==wwe(t)||zwe(a))&&(i=Vwe(t)),n){const e=Wwe(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=Uwe(a));const c=!a||n||o?twe(0):Gwe(a,i);return{x:l.left+i.scrollLeft-s.x-c.x,y:l.top+i.scrollTop-s.y-c.y,width:l.width,height:l.height}}function Xwe(e){return"static"===Iwe(e).position}function Qwe(e,t){if(!Owe(e)||"fixed"===Iwe(e).position)return null;if(t)return t(e);let r=e.offsetParent;return _we(e)===r&&(r=r.ownerDocument.body),r}function Jwe(e,t){const r=xwe(e);if(Pwe(e))return r;if(!Owe(e)){let t=Hwe(e);for(;t&&!Lwe(t);){if(jwe(t)&&!Xwe(t))return t;t=Hwe(t)}return r}let n=Qwe(e,t);for(;n&&Cwe(n)&&Xwe(n);)n=Qwe(n,t);return n&&Lwe(n)&&Xwe(n)&&!Rwe(n)?r:n||function(e){let t=Hwe(e);for(;Owe(t)&&!Lwe(t);){if(Rwe(t))return t;if(Pwe(t))return null;t=Hwe(t)}return null}(e)||r}const exe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o="fixed"===a,l=_we(n),i=!!t&&Pwe(t.floating);if(n===l||i&&o)return r;let s={scrollLeft:0,scrollTop:0},c=twe(1);const d=twe(0),u=Owe(n);if((u||!u&&!o)&&(("body"!==wwe(n)||zwe(l))&&(s=Vwe(n)),Owe(n))){const e=Wwe(n);c=Bwe(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const h=!l||u||o?twe(0):Gwe(l,s,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-s.scrollTop*c.y+d.y+h.y}},getDocumentElement:_we,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[..."clippingAncestors"===r?Pwe(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Zwe(e,[],!1).filter((e=>jwe(e)&&"body"!==wwe(e))),a=null;const o="fixed"===Iwe(e).position;let l=o?Hwe(e):e;for(;jwe(l)&&!Lwe(l);){const t=Iwe(l),r=Rwe(l);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||zwe(l)&&!r&&Ywe(e,l))?n=n.filter((e=>e!==l)):a=t,l=Hwe(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],i=o.reduce(((e,r)=>{const n=$we(t,r,a);return e.top=Qbe(n.top,e.top),e.right=Xbe(n.right,e.right),e.bottom=Xbe(n.bottom,e.bottom),e.left=Qbe(n.left,e.left),e}),$we(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Jwe,getElementRects:async function(e){const t=this.getOffsetParent||Jwe,r=this.getDimensions,n=await r(e.floating);return{reference:Kwe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=qwe(e);return{width:t,height:r}},getScale:Bwe,isElement:jwe,isRTL:function(e){return"rtl"===Iwe(e).direction}};function txe(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=n,c=Dwe(e),d=a||o?[...c?Zwe(c):[],...Zwe(t)]:[];d.forEach((e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)}));const u=c&&i?function(e,t){let r,n=null;const a=_we(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),o();const{left:c,top:d,width:u,height:h}=e.getBoundingClientRect();if(i||t(),!u||!h)return;const p={rootMargin:-ewe(d)+"px "+-ewe(a.clientWidth-(c+u))+"px "+-ewe(a.clientHeight-(d+h))+"px "+-ewe(c)+"px",threshold:Qbe(0,Xbe(1,s))||1};let f=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!f)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),1e3)}f=!1}try{n=new IntersectionObserver(v,{...p,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),o}(c,r):null;let h,p=-1,f=null;l&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!s&&f.observe(c),f.observe(t));let v=s?Wwe(e):null;return s&&function t(){const n=Wwe(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,h=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach((e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(h)}}const rxe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:l,middlewareData:i}=t,s=await async function(e,t){const{placement:r,platform:n,elements:a}=e,o=await(null==n.isRTL?void 0:n.isRTL(a.floating)),l=lwe(r),i=iwe(r),s="y"===dwe(r),c=["left","top"].includes(l)?-1:1,d=o&&s?-1:1,u=owe(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof f&&(p="end"===i?-1*f:f),s?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return l===(null==(r=i.offset)?void 0:r.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:l}}}}},nxe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=owe(e,t),c={x:r,y:n},d=await ywe(t,s),u=dwe(lwe(a)),h=swe(u);let p=c[h],f=c[u];if(o){const e="y"===h?"bottom":"right";p=awe(p+d["y"===h?"top":"left"],p,p-d[e])}if(l){const e="y"===u?"bottom":"right";f=awe(f+d["y"===u?"top":"left"],f,f-d[e])}const v=i.fn({...t,[h]:p,[u]:f});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:o,[u]:l}}}}}},axe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:l,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...m}=owe(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const y=lwe(a),g=dwe(i),k=lwe(i)===i,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=h||(k||!v?[pwe(i)]:function(e){const t=pwe(e);return[hwe(e),t,hwe(t)]}(i)),x="none"!==f;!h&&x&&w.push(...function(e,t,r,n){const a=iwe(e);let o=function(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:l;default:return[]}}(lwe(e),"start"===r,n);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(hwe)))),o}(i,v,f,b));const _=[i,...w],M=await ywe(t,m),j=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(d&&j.push(M[y]),u){const e=function(e,t,r){void 0===r&&(r=!1);const n=iwe(e),a=uwe(e),o=cwe(a);let l="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=pwe(l)),[l,pwe(l)]}(a,l,b);j.push(M[e[0]],M[e[1]])}if(O=[...O,{placement:a,overflows:j}],!j.every((e=>e<=0))){var E,z;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let r=null==(z=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:z.placement;if(!r)switch(p){case"bestFit":{var C;const e=null==(C=O.filter((e=>{if(x){const t=dwe(e.placement);return t===g||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=i}if(a!==r)return{reset:{placement:r}}}return{}}}},oxe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:o,platform:l,elements:i}=t,{apply:s=()=>{},...c}=owe(e,t),d=await ywe(t,c),u=lwe(a),h=iwe(a),p="y"===dwe(a),{width:f,height:v}=o.floating;let m,y;"top"===u||"bottom"===u?(m=u,y=h===(await(null==l.isRTL?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m="end"===h?"top":"bottom");const g=v-d.top-d.bottom,k=f-d.left-d.right,b=Xbe(v-d[m],g),w=Xbe(f-d[y],k),x=!t.middlewareData.shift;let _=b,M=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=k),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(_=g),x&&!h){const e=Qbe(d.left,0),t=Qbe(d.right,0),r=Qbe(d.top,0),n=Qbe(d.bottom,0);p?M=f-2*(0!==e||0!==t?e+t:Qbe(d.left,d.right)):_=v-2*(0!==r||0!==n?r+n:Qbe(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:_});const j=await l.getDimensions(i.floating);return f!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}},lxe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=owe(e,t);switch(n){case"referenceHidden":{const e=gwe(await ywe(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:kwe(e)}}}case"escaped":{const e=gwe(await ywe(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:kwe(e)}}}default:return{}}}}},ixe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:l,elements:i,middlewareData:s}=t,{element:c,padding:d=0}=owe(e,t)||{};if(null==c)return{};const u=fwe(d),h={x:r,y:n},p=uwe(a),f=cwe(p),v=await l.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",k=m?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[p]-h[p]-o.floating[f],w=h[p]-o.reference[p],x=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let _=x?x[k]:0;_&&await(null==l.isElement?void 0:l.isElement(x))||(_=i.floating[k]||o.floating[f]);const M=b/2-w/2,j=_/2-v[f]/2-1,O=Xbe(u[y],j),E=Xbe(u[g],j),z=O,C=_-v[f]-E,P=_/2-v[f]/2+M,R=awe(z,P,C),A=!s.arrow&&null!=iwe(a)&&P!==R&&o.reference[f]/2-(P<z?O:E)-v[f]/2<0,L=A?P<z?P-z:P-C:0;return{[p]:h[p]+L,data:{[p]:R,centerOffset:P-R-L,...A&&{alignmentOffset:L}},reset:A}}}),sxe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:l}=t,{offset:i=0,mainAxis:s=!0,crossAxis:c=!0}=owe(e,t),d={x:r,y:n},u=dwe(a),h=swe(u);let p=d[h],f=d[u];const v=owe(i,t),m="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+m.mainAxis,r=o.reference[h]+o.reference[e]-m.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var y,g;const e="y"===h?"width":"height",t=["top","left"].includes(lwe(a)),r=o.reference[u]-o.floating[e]+(t&&(null==(y=l.offset)?void 0:y[u])||0)+(t?0:m.crossAxis),n=o.reference[u]+o.reference[e]+(t?0:(null==(g=l.offset)?void 0:g[u])||0)-(t?m.crossAxis:0);f<r?f=r:f>n&&(f=n)}return{[h]:p,[u]:f}}}},cxe=(e,t,r)=>{const n=new Map,a={platform:exe,...r},o={...a.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:l}=r,i=o.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:u}=mwe(c,n,s),h=n,p={},f=0;for(let r=0;r<i.length;r++){const{name:o,fn:v}=i[r],{x:m,y:y,data:g,reset:k}=await v({x:d,y:u,initialPlacement:n,placement:h,strategy:a,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=y?y:u,p={...p,[o]:{...p[o],...g}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(h=k.placement),k.rects&&(c=!0===k.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:d,y:u}=mwe(c,h,s))),r=-1)}return{x:d,y:u,placement:h,strategy:a,middlewareData:p}})(e,t,{...a,platform:o})};var dxe="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function uxe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!uxe(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){const r=a[n];if(("_owner"!==r||!e.$$typeof)&&!uxe(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function hxe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pxe(e,t){const r=hxe(e);return Math.round(t*r)/r}function fxe(e){const t=l.useRef(e);return dxe((()=>{t.current=e})),t}function vxe(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=l.useState(n);uxe(f,n)||v(n);const[m,y]=l.useState(null),[g,k]=l.useState(null),b=l.useCallback((e=>{e!==M.current&&(M.current=e,y(e))}),[]),w=l.useCallback((e=>{e!==j.current&&(j.current=e,k(e))}),[]),x=o||m,_=s||g,M=l.useRef(null),j=l.useRef(null),O=l.useRef(h),E=null!=d,z=fxe(d),C=fxe(a),P=fxe(u),R=l.useCallback((()=>{if(!M.current||!j.current)return;const e={placement:t,strategy:r,middleware:f};C.current&&(e.platform=C.current),cxe(M.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!uxe(O.current,t)&&(O.current=t,i.flushSync((()=>{p(t)})))}))}),[f,t,r,C,P]);dxe((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=l.useRef(!1);dxe((()=>(A.current=!0,()=>{A.current=!1})),[]),dxe((()=>{if(x&&(M.current=x),_&&(j.current=_),x&&_){if(z.current)return z.current(x,_,R);R()}}),[x,_,R,z,E]);const L=l.useMemo((()=>({reference:M,floating:j,setReference:b,setFloating:w})),[b,w]),I=l.useMemo((()=>({reference:x,floating:_})),[x,_]),V=l.useMemo((()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=pxe(I.floating,h.x),n=pxe(I.floating,h.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...hxe(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,c,I.floating,h.x,h.y]);return l.useMemo((()=>({...h,update:R,refs:L,elements:I,floatingStyles:V})),[h,R,L,I,V])}const mxe=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(a=r,{}.hasOwnProperty.call(a,"current"))?null!=r.current?ixe({element:r.current,padding:n}).fn(t):{}:r?ixe({element:r,padding:n}).fn(t):{};var a}}),yxe=(e,t)=>({...rxe(e),options:[e,t]}),gxe=(e,t)=>({...nxe(e),options:[e,t]}),kxe=(e,t)=>({...sxe(e),options:[e,t]}),bxe=(e,t)=>({...axe(e),options:[e,t]}),wxe=(e,t)=>({...oxe(e),options:[e,t]}),xxe=(e,t)=>({...lxe(e),options:[e,t]}),_xe=(e,t)=>({...mxe(e),options:[e,t]});var Mxe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(Mbe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Mxe.displayName="Arrow";var jxe=Mxe;function Oxe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var Exe="Popper",[zxe,Cxe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},Oxe(a,...r)]}(Exe),[Pxe,Rxe]=zxe(Exe),Axe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(Pxe,{scope:r,anchor:a,onAnchorChange:o,children:n})};Axe.displayName=Exe;var Lxe="PopperAnchor",Ixe=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=Rxe(Lxe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(Mbe.div,{...o,ref:c})}));Ixe.displayName=Lxe;var Vxe="PopperContent",[Hxe,Sxe]=zxe(Vxe),Zxe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=Rxe(Vxe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(Bxe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),Fxe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=Txe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(Hxe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(Mbe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));Zxe.displayName=Vxe;var Nxe="PopperArrow",qxe={top:"bottom",right:"left",bottom:"top",left:"right"},Dxe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=Sxe(Nxe,n),l=qxe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(jxe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function Bxe(e){return null!==e}Dxe.displayName=Nxe;var Fxe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=Txe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function Txe(e){const[t,r="center"]=e.split("-");return[t,r]}var Wxe=Axe,Uxe=Ixe,Gxe=Zxe,$xe=Dxe,Yxe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(Mbe.div,{...o,ref:r}),c):null}));Yxe.displayName="Portal";var Kxe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=Xxe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=Xxe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=Xxe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=Xxe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function Xxe(e){return e?.animationName||"none"}Kxe.displayName="Presence";var Qxe=new WeakMap,Jxe=new WeakMap,e_e={},t_e=0,r_e=function(e){return e&&(e.host||r_e(e.parentNode))},n_e=function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=r_e(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);e_e[r]||(e_e[r]=new WeakMap);var o=e_e[r],l=[],i=new Set,s=new Set(a),c=function(e){e&&!i.has(e)&&(i.add(e),c(e.parentNode))};a.forEach(c);var d=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(i.has(e))d(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(Qxe.get(e)||0)+1,c=(o.get(e)||0)+1;Qxe.set(e,s),o.set(e,c),l.push(e),1===s&&a&&Jxe.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return d(t),i.clear(),t_e++,function(){l.forEach((function(e){var t=Qxe.get(e)-1,a=o.get(e)-1;Qxe.set(e,t),o.set(e,a),t||(Jxe.has(e)||e.removeAttribute(n),Jxe.delete(e)),a||e.removeAttribute(r)})),--t_e||(Qxe=new WeakMap,Qxe=new WeakMap,Jxe=new WeakMap,e_e={})}},a_e=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),n_e(n,a,r,"aria-hidden")):function(){return null}},o_e="right-scroll-bar-position",l_e="width-before-scroll-bar";function i_e(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s_e="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,c_e=new WeakMap;function d_e(t,r){var n,a,o,l=(n=null,a=function(e){return t.forEach((function(t){return i_e(t,e)}))},(o=e.useState((function(){return{value:n,callback:a,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=a,o.facade);return s_e((function(){var e=c_e.get(l);if(e){var r=new Set(e),n=new Set(t),a=l.current;r.forEach((function(e){n.has(e)||i_e(e,null)})),n.forEach((function(e){r.has(e)||i_e(e,a)}))}c_e.set(l,t)}),[t]),l}function u_e(e){return e}var h_e=function(e){var t=e.sideCar,r=o_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,a_({},r))};h_e.isSideCarExport=!0;var p_e=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=u_e);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},l=function(){return Promise.resolve().then(o)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}};return a}(null);return t.options=a_({async:!0,ssr:!1},e),t}(),f_e=function(){},v_e=l.forwardRef((function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:f_e,onWheelCapture:f_e,onTouchMoveCapture:f_e}),a=n[0],o=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,p=e.sideCar,f=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,k=e.gapMode,b=o_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=d_e([r,t]),_=a_(a_({},b),a);return l.createElement(l.Fragment,null,u&&l.createElement(w,{sideCar:p_e,removeScrollBar:d,shards:h,noIsolation:f,inert:v,setCallbacks:o,allowPinchZoom:!!m,lockRef:r,gapMode:k}),i?l.cloneElement(l.Children.only(s),a_(a_({},_),{ref:x})):l.createElement(g,a_({},_,{className:c,ref:x}),s))}));v_e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v_e.classNames={fullWidth:l_e,zeroRight:o_e};function m_e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var y_e=function(){var e=0,t=null;return{add:function(r){0==e&&(t=m_e())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g_e=function(){var e=function(){var e=y_e();return function(t,r){l.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},k_e={left:0,top:0,right:0,gap:0},b_e=function(e){return parseInt(e||"",10)||0},w_e=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k_e;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[b_e(r),b_e(n),b_e(a)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},x_e=g_e(),__e="data-scroll-locked",M_e=function(e,t,r,n){var a=e.left,o=e.top,l=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(__e,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o_e," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(l_e," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(o_e," .").concat(o_e," {\n right: 0 ").concat(n,";\n }\n \n .").concat(l_e," .").concat(l_e," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(__e,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},j_e=function(){var e=parseInt(document.body.getAttribute(__e)||"0",10);return isFinite(e)?e:0},O_e=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;l.useEffect((function(){return document.body.setAttribute(__e,(j_e()+1).toString()),function(){var e=j_e()-1;e<=0?document.body.removeAttribute(__e):document.body.setAttribute(__e,e.toString())}}),[]);var o=l.useMemo((function(){return w_e(a)}),[a]);return l.createElement(x_e,{styles:M_e(o,!t,a,r?"":"!important")})},E_e=!1;if("undefined"!=typeof window)try{var z_e=Object.defineProperty({},"passive",{get:function(){return E_e=!0,!0}});window.addEventListener("test",z_e,z_e),window.removeEventListener("test",z_e,z_e)}catch(e){E_e=!1}var C_e=!!E_e&&{passive:!1},P_e=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},R_e=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),A_e(e,n)){var a=L_e(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},A_e=function(e,t){return"v"===e?function(e){return P_e(e,"overflowY")}(t):function(e){return P_e(e,"overflowX")}(t)},L_e=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},I_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V_e=function(e){return[e.deltaX,e.deltaY]},H_e=function(e){return e&&"current"in e?e.current:e},S_e=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Z_e=0,N_e=[];function q_e(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var D_e,B_e=(D_e=function(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),a=l.useState(Z_e++)[0],o=l.useState(g_e)[0],i=l.useRef(e);l.useEffect((function(){i.current=e}),[e]),l.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(H_e),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=I_e(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],d=e.target,u=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=R_e(u,d);if(!h)return!0;if(h?a=u:(a="v"===u?"h":"v",h=R_e(u,d)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var p=n.current||a;return function(e,t,r,n,a){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),l=o*n,i=r.target,s=t.contains(i),c=!1,d=l>0,u=0,h=0;do{var p=L_e(e,i),f=p[0],v=p[1]-p[2]-o*f;(f||v)&&A_e(e,i)&&(u+=v,h+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return d&&(Math.abs(u)<1||!a)?c=!0:d||!(Math.abs(h)<1)&&a||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=l.useCallback((function(e){var r=e;if(N_e.length&&N_e[N_e.length-1]===o){var n="deltaY"in r?V_e(r):I_e(r),a=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(a&&a.should)r.cancelable&&r.preventDefault();else if(!a){var l=(i.current.shards||[]).map(H_e).filter(Boolean).filter((function(e){return e.contains(r.target)}));(l.length>0?s(r,l[0]):!i.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),d=l.useCallback((function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:q_e(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=l.useCallback((function(e){r.current=I_e(e),n.current=void 0}),[]),h=l.useCallback((function(t){d(t.type,V_e(t),t.target,s(t,e.lockRef.current))}),[]),p=l.useCallback((function(t){d(t.type,I_e(t),t.target,s(t,e.lockRef.current))}),[]);l.useEffect((function(){return N_e.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,C_e),document.addEventListener("touchmove",c,C_e),document.addEventListener("touchstart",u,C_e),function(){N_e=N_e.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,C_e),document.removeEventListener("touchmove",c,C_e),document.removeEventListener("touchstart",u,C_e)}}),[]);var f=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(o,{styles:S_e(a)}):null,f?l.createElement(O_e,{gapMode:e.gapMode}):null)},p_e.useMedium(D_e),h_e),F_e=l.forwardRef((function(e,t){return l.createElement(v_e,a_({},e,{ref:t,sideCar:B_e}))}));F_e.classNames=v_e.classNames;var T_e="Popover",[W_e,U_e]=uye(T_e,[Cxe]),G_e=Cxe(),[$_e,Y_e]=W_e(T_e),K_e=e=>{const{__scopePopover:r,children:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,c=G_e(r),d=l.useRef(null),[u,h]=l.useState(!1),[p=!1,f]=vye({prop:a,defaultProp:o,onChange:i});return t.jsx(Wxe,{...c,children:t.jsx($_e,{scope:r,contentId:Ybe(),triggerRef:d,open:p,onOpenChange:f,onOpenToggle:l.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback((()=>h(!0)),[]),onCustomAnchorRemove:l.useCallback((()=>h(!1)),[]),modal:s,children:n})})};K_e.displayName=T_e;var X_e="PopoverAnchor";l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(X_e,n),i=G_e(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=o;return l.useEffect((()=>(s(),()=>c())),[s,c]),t.jsx(Uxe,{...i,...a,ref:r})})).displayName=X_e;var Q_e="PopoverTrigger",J_e=l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(Q_e,n),l=G_e(n),i=dye(r,o.triggerRef),s=t.jsx(Mbe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dMe(o.open),...a,ref:i,onClick:pye(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:t.jsx(Uxe,{asChild:!0,...l,children:s})}));J_e.displayName=Q_e;var eMe="PopoverPortal",[tMe,rMe]=W_e(eMe,{forceMount:void 0}),nMe=e=>{const{__scopePopover:r,forceMount:n,children:a,container:o}=e,l=Y_e(eMe,r);return t.jsx(tMe,{scope:r,forceMount:n,children:t.jsx(Kxe,{present:n||l.open,children:t.jsx(Yxe,{asChild:!0,container:o,children:a})})})};nMe.displayName=eMe;var aMe="PopoverContent",oMe=l.forwardRef(((e,r)=>{const n=rMe(aMe,e.__scopePopover),{forceMount:a=n.forceMount,...o}=e,l=Y_e(aMe,e.__scopePopover);return t.jsx(Kxe,{present:a||l.open,children:l.modal?t.jsx(lMe,{...o,ref:r}):t.jsx(iMe,{...o,ref:r})})}));oMe.displayName=aMe;var lMe=l.forwardRef(((e,r)=>{const n=Y_e(aMe,e.__scopePopover),a=l.useRef(null),o=dye(r,a),i=l.useRef(!1);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(F_e,{as:bye,allowPinchZoom:!0,children:t.jsx(sMe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()})),onPointerDownOutside:pye(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;i.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),iMe=l.forwardRef(((e,r)=>{const n=Y_e(aMe,e.__scopePopover),a=l.useRef(!1),o=l.useRef(!1);return t.jsx(sMe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const r=t.target,l=n.triggerRef.current?.contains(r);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),sMe=l.forwardRef(((e,r)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...h}=e,p=Y_e(aMe,n),f=G_e(n);return Vbe(),t.jsx(qbe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:t.jsx(Rbe,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:t.jsx(Gxe,{"data-state":dMe(p.open),role:"dialog",id:p.contentId,...f,...h,ref:r,style:{...h.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)"}})})})})),cMe="PopoverClose";l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(cMe,n);return t.jsx(Mbe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=cMe;function dMe(e){return e?"open":"closed"}l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=G_e(n);return t.jsx($xe,{...o,...a,ref:r})})).displayName="PopoverArrow";var uMe=nMe,hMe=oMe;const pMe=K_e,fMe=J_e,vMe=l.forwardRef(((e,r)=>{var{className:n,align:a="center",sideOffset:o=4}=e,l=o_(e,["className","align","sideOffset"]);return t.jsx(uMe,{children:t.jsx(hMe,Object.assign({ref:r,align:a,sideOffset:o,className:s_("z-50 min-w-72 rounded-md border bg-bg-bg1 border-none overflow-hidden p-0 text-common-black 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",n)},l))})}));vMe.displayName=hMe.displayName;const mMe={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"}};function yMe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const gMe={date:yMe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yMe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:yMe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function bMe(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const wMe={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:bMe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:bMe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:bMe({values:{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"]},defaultWidth:"wide"}),day:bMe({values:{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"]},defaultWidth:"wide"}),dayPeriod:bMe({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function xMe(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,(e=>e.test(l))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,(e=>e.test(l)));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(l.length)}}}const _Me={ordinalNumber:function(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xMe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:xMe({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},MMe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=mMe[e];return n="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:gMe,formatRelative:(e,t,r,n)=>kMe[e],localize:wMe,match:_Me,options:{weekStartsOn:0,firstWeekContainsDate:1}};let jMe={};function OMe(){return jMe}const EMe=6048e5;function zMe(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function CMe(e){const t=zMe(e);return t.setHours(0,0,0,0),t}function PMe(e){const t=zMe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function RMe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function AMe(e){const t=zMe(e),r=function(e,t){const r=CMe(e),n=CMe(t),a=+r-PMe(r),o=+n-PMe(n);return Math.round((a-o)/864e5)}(t,function(e){const t=zMe(e),r=RMe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t));return r+1}function LMe(e,t){const r=OMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zMe(e),o=a.getDay(),l=(o<n?7:0)+o-n;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function IMe(e){return LMe(e,{weekStartsOn:1})}function VMe(e){const t=zMe(e),r=t.getFullYear(),n=RMe(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=IMe(n),o=RMe(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=IMe(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function HMe(e){const t=zMe(e),r=+IMe(t)-+function(e){const t=VMe(e),r=RMe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),IMe(r)}(t);return Math.round(r/EMe)+1}function SMe(e,t){const r=zMe(e),n=r.getFullYear(),a=OMe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=RMe(e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=LMe(l,t),s=RMe(e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=LMe(s,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function ZMe(e,t){const r=zMe(e),n=+LMe(r,t)-+function(e,t){const r=OMe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=SMe(e,t),o=RMe(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),LMe(o,t)}(r,t);return Math.round(n/EMe)+1}function NMe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const qMe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return NMe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):NMe(r+1,2)},d:(e,t)=>NMe(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>NMe(e.getHours()%12||12,t.length),H:(e,t)=>NMe(e.getHours(),t.length),m:(e,t)=>NMe(e.getMinutes(),t.length),s:(e,t)=>NMe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return NMe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},DMe="midnight",BMe="noon",FMe="morning",TMe="afternoon",WMe="evening",UMe="night",GMe={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return qMe.y(e,t)},Y:function(e,t,r,n){const a=SMe(e,n),o=a>0?a:1-a;if("YY"===t){return NMe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):NMe(o,t.length)},R:function(e,t){return NMe(VMe(e),t.length)},u:function(e,t){return NMe(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return NMe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return NMe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return qMe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return NMe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=ZMe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):NMe(a,t.length)},I:function(e,t,r){const n=HMe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):NMe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):qMe.d(e,t)},D:function(e,t,r){const n=AMe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):NMe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return NMe(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return NMe(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return NMe(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(a=12===n?BMe:0===n?DMe:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(a=n>=17?WMe:n>=12?TMe:n>=4?FMe:UMe,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return qMe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):qMe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):NMe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):NMe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):qMe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):qMe.s(e,t)},S:function(e,t){return qMe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return YMe(n);case"XXXX":case"XX":return KMe(n);default:return KMe(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return YMe(n);case"xxxx":case"xx":return KMe(n);default:return KMe(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$Me(n,":");default:return"GMT"+KMe(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$Me(n,":");default:return"GMT"+KMe(n,":")}},t:function(e,t,r){return NMe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return NMe(e.getTime(),t.length)}};function $Me(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return 0===o?r+String(a):r+String(a)+t+NMe(o,2)}function YMe(e,t){if(e%60==0){return(e>0?"-":"+")+NMe(Math.abs(e)/60,2)}return KMe(e,t)}function KMe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+NMe(Math.trunc(n/60),2)+t+NMe(n%60,2)}const XMe=(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"})}},QMe=(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"})}},JMe={p:QMe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return XMe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",XMe(n,t)).replace("{{time}}",QMe(a,t))}},eje=/^D+$/,tje=/^Y+$/,rje=["D","DD","YY","YYYY"];function nje(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const r=zMe(e);return!isNaN(Number(r))}const aje=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oje=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lje=/^'([^]*?)'?$/,ije=/''/g,sje=/[a-zA-Z]/;function cje(e,t,r){const n=OMe(),a=n.locale??MMe,o=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zMe(e);if(!nje(i))throw new RangeError("Invalid time value");let s=t.match(oje).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,JMe[t])(e,a.formatLong)}return e})).join("").match(aje).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:dje(e)};if(GMe[t])return{isToken:!0,value:e};if(t.match(sje))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(s=a.localize.preprocessor(i,s));const c={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return s.map((r=>{if(!r.isToken)return r.value;const n=r.value;(function(e){return tje.test(e)}(n)||function(e){return eje.test(e)}(n))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),rje.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,GMe[n[0]])(i,n,a.localize,c)})).join("")}function dje(e){const t=e.match(lje);return t?t[1].replace(ije,"'"):e}const uje=(e,t,r)=>Array.from(e).filter((e=>t.test(e))).slice(0,r),hje=e.forwardRef((({value:r,onChange:n,onBlur:a,onComplete:o,length:l=6,disabled:i=!1,invalid:s=!1,autoFocus:c=!1,inputMode:d="numeric",charPattern:u=/^\d$/,className:h,inputClassName:p},f)=>{const v=e.useRef([]),m=e.useRef(null),y=e.useMemo((()=>{const e=r||"";return Array.from({length:l},((t,r)=>e[r]||""))}),[l,r]);e.useImperativeHandle(f,(()=>v.current[0]),[]);const g=e=>{const t=e.join("");n(t),o&&e.every((e=>""!==e))&&o(t)},k=e=>{var t,r;const n=Math.max(0,Math.min(l-1,e));null===(t=v.current[n])||void 0===t||t.focus(),null===(r=v.current[n])||void 0===r||r.select()};return t.jsx("div",{className:s_("flex items-center gap-3",h),ref:m,children:y.map(((e,r)=>t.jsx("input",{ref:e=>{v.current[r]=e},type:"text",inputMode:d,autoComplete:0===r?"one-time-code":"off",value:e,maxLength:1,disabled:i,autoFocus:c&&0===r,"aria-invalid":s||void 0,className:s_("h-14 w-[46px] rounded-[8px] border bg-transparent text-center text-2xl font-semibold text-text-white outline-none transition-all duration-200","border-input-default-stroke focus:border-input-active-stroke","disabled:cursor-not-allowed disabled:opacity-50",s&&"border-input-error focus:border-input-error",p),onFocus:e=>{e.target.select()},onBlur:e=>{var t;const r=e.relatedTarget;r&&(null===(t=m.current)||void 0===t?void 0:t.contains(r))||null==a||a()},onChange:e=>((e,t)=>{if(i)return;if(!t){const t=[...y];return t[e]="",void g(t)}const r=uje(t,u,l);if(!r.length)return;const n=[...y];let a=e;r.forEach((e=>{a<l&&(n[a]=e,a+=1)})),g(n),k(a<l?a:l-1)})(r,e.target.value),onPaste:e=>((e,t)=>{if(t.preventDefault(),i)return;const r=t.clipboardData.getData("text"),n=uje(r,u,l-e);if(!n.length)return;const a=[...y];n.forEach(((t,r)=>{a[e+r]=t})),g(a);const o=Math.min(e+n.length,l-1);k(o)})(r,e),onKeyDown:e=>((e,t)=>{if(!i){if("ArrowLeft"===t.key)return t.preventDefault(),void k(e-1);if("ArrowRight"===t.key)return t.preventDefault(),void k(e+1);if("Backspace"===t.key){if(y[e]){t.preventDefault();const r=[...y];return r[e]="",void g(r)}if(e>0){t.preventDefault();const r=[...y];r[e-1]="",g(r),k(e-1)}}}})(r,e)},r)))})}));hje.displayName="OtpInput";const pje=e.forwardRef(((e,r)=>{var{id:n,label:a,required:o=!1,helperText:l,error:i=!1,errorMessage:s,keepFooterSpace:c=!0,labelClassName:d,messageClassName:u,className:h}=e,p=o_(e,["id","label","required","helperText","error","errorMessage","keepFooterSpace","labelClassName","messageClassName","className"]);const f=Boolean(i||s),v=f?s:l;return t.jsxs("div",{className:s_("inline-flex w-full flex-col gap-2",h),children:[a&&t.jsxs("label",{htmlFor:n,className:s_("typography-overline text-input-default-text",f&&"text-input-error",d),children:[a,o&&t.jsx("span",{className:"ml-1 text-input-error",children:"*"})]}),t.jsx(hje,Object.assign({},p,{ref:r,invalid:f})),(v||c)&&t.jsx("div",{className:s_("typography-small2 min-h-[18px]",f?"text-input-error":"text-text-g-contrast-medium",u),role:f?"alert":void 0,children:v||" "})]})}));pje.displayName="OtpInputGroup";const fje=l.forwardRef(((e,r)=>{var{rootClassName:n,className:a,rootRef:o}=e,l=o_(e,["rootClassName","className","rootRef"]);return t.jsx("div",{className:s_("relative h-full w-full overflow-auto",n),ref:o,children:t.jsx("table",Object.assign({ref:r,className:s_("w-full caption-bottom text-sm border-collapse",a)},l))})}));fje.displayName="Table";const vje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("thead",Object.assign({ref:r,className:s_("[&_tr]:border-b bg-secondary-80",n)},a))}));vje.displayName="TableHeader";const mje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tbody",Object.assign({ref:r,className:s_("[&_tr:last-child]:border-0",n)},a))}));mje.displayName="TableBody";const yje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tfoot",Object.assign({ref:r,className:s_("border-t bg-transparent-grey2-8 font-medium [&>tr]:last:border-b-0",n)},a))}));yje.displayName="TableFooter";const gje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tr",Object.assign({ref:r,className:s_("border-b transition-colors hover:bg-transparent-grey2-8 data-[state=selected]:bg-grey-20",n)},a))}));gje.displayName="TableRow";const kje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("th",Object.assign({ref:r,className:s_(" h-12 py-3 px-6 text-left align-middle typography-body2 text-text-g-contrast-low [&:has([role=checkbox])]:pr-4 [&:has([role=checkbox])]:w-4",n)},a))}));kje.displayName="TableHead";const bje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("td",Object.assign({ref:r,className:s_(" py-3 px-6 text-left align-middle typography-body3 text-text-g-contrast-low [&:has([role=checkbox])]:pr-4 [&:has([role=checkbox])]:w-4",n)},a))}));bje.displayName="TableCell";const wje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("caption",Object.assign({ref:r,className:s_("mt-4 text-sm text-text-g-contrast-medium",n)},a))}));
|
|
9247
|
+
*/const xme=__("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var _me=Object.freeze({__proto__:null,default:xme});const Mme=e.forwardRef(((r,n)=>{var{id:a,label:o,size:l="md",rounded:i="normal",variant:s="outline",type:c="text",iconMode:d="solid",helperText:u,errorMessage:h,warningMessage:p,status:f,fullwidth:v=!0,disabled:m=!1,error:y=!1,warning:g=!1,required:k=!0,isFloatingLabel:b=!0,keepCloseIconOnValue:w=!1,keepFooterSpace:x=!0,hasClearIcon:_=!0,hasSearchIcon:M=!1,startIcon:j,endIcon:O,labelClassName:E,onClickStartIcon:z,onClickEndIcon:C,renderStartIcon:P,renderEndIcon:R,classes:A,normalize:L,format:I,trimOnCommit:V,normalizeOnCommit:H}=r,S=o_(r,["id","label","size","rounded","variant","type","iconMode","helperText","errorMessage","warningMessage","status","fullwidth","disabled","error","warning","required","isFloatingLabel","keepCloseIconOnValue","keepFooterSpace","hasClearIcon","hasSearchIcon","startIcon","endIcon","labelClassName","onClickStartIcon","onClickEndIcon","renderStartIcon","renderEndIcon","classes","normalize","format","trimOnCommit","normalizeOnCommit"]);const Z=e.useRef(null),N=a||`${c}-${o}-input`,q=!!j||!!P,D=!!O||!!R,B=f||(y||h?"error":g||p?"warning":"default"),F="error"===B,T="warning"===B,W="error"===B?h:"warning"===B?p:u,U=u_({size:l,rounded:i,variant:s,fullwidth:v,disabled:m,error:F,warning:T,hasSearchIcon:"flat"===d&&q||M,hasClearIcon:"flat"===d&&D||_,leftSectionIcon:"solid"===d&&q,rightSectionIcon:"solid"===d&&D}),G=h_({size:l,disabled:m,error:F,hasSearchIcon:"flat"===d&&q||M,hasLeftSectionIcon:"solid"===d&&q,isFloatingLabel:b}),$=p_({size:l,error:F,warning:T,disabled:m}),Y=v_({size:l}),K=m_({size:l}),X=y_({size:l}),Q=g_({size:l}),J=k_({size:l,rounded:i,error:F,warning:T,position:"start"}),ee=k_({size:l,rounded:i,error:F,warning:T,position:"end"});e.useImperativeHandle(n,(()=>null==Z?void 0:Z.current));const te=e.useCallback((e=>{var t;L&&(e.target.value=L(e.target.value)),null===(t=S.onChange)||void 0===t||t.call(S,e)}),[L,S.onChange]),re=e.useCallback((e=>{var t;const r=e.currentTarget;let n=r.value;V&&(n=n.trim()),H&&(n=H(n)),n!==r.value&&(r.value=n,null===(t=S.onChange)||void 0===t||t.call(S,Object.assign(Object.assign({},e),{target:r})))}),[V,H,S.onChange]),ne=e.useCallback((e=>{var t;(V||H)&&re(e),null===(t=S.onBlur)||void 0===t||t.call(S,e)}),[V,H,re,S.onBlur]),ae=e.useCallback((e=>{var t;(V||H)&&"Enter"===e.key&&re(e),null===(t=S.onKeyDown)||void 0===t||t.call(S,e)}),[V,H,re,S.onKeyDown]),oe=I&&"string"==typeof S.value?I(S.value):S.value,le=e.useCallback((()=>{Z.current&&(Z.current.value="",S.onChange&&(new Event("input",{bubbles:!0}),S.onChange({target:{value:""}})))}),[S.onChange]),ie=e.useCallback((()=>{m||(null==z||z(),Z.current&&Z.current.focus())}),[m,z]),se=e.useCallback((()=>{m||(null==C||C(),Z.current&&Z.current.focus())}),[m,C]),ce=e.useMemo((()=>{if(q)return P?t.jsx("div",{className:s_(K,"flex",null==A?void 0:A.iconSearchWrapper),children:P()}):"flat"===d?t.jsx("div",{className:s_(K,null==A?void 0:A.iconSearchWrapper),children:t.jsx("div",{className:s_(X,null==A?void 0:A.icon),onClick:ie,children:j})}):t.jsx("div",{className:s_(J,null==A?void 0:A.startIconWrapper),onClick:ie,children:j})}),[q,j,d,K,J,X,P,ie]),de=e.useMemo((()=>{if(D)return R?t.jsx("div",{className:s_(Y,"flex",null==A?void 0:A.iconWrapper),children:R()}):"flat"===d?t.jsx("div",{className:s_(Y,"flex",null==A?void 0:A.iconWrapper),children:t.jsx("div",{className:s_(X,null==A?void 0:A.icon),onClick:se,children:O})}):t.jsx("div",{className:s_(ee,null==A?void 0:A.endIconWrapper),onClick:se,children:O})}),[D,O,d,Y,ee,X,R,se]);return t.jsxs("div",{className:"inline-flex flex-col "+(v?"w-full":""),children:[t.jsxs("div",{className:"relative",children:[t.jsx("input",Object.assign({},S,{placeholder:" ",ref:Z,type:c,id:N,disabled:m,value:oe,className:s_(U,S.className),onChange:L?te:S.onChange,onBlur:V||H?ne:S.onBlur,onKeyDown:V||H?ae:S.onKeyDown})),M&&!q&&t.jsx("div",{className:s_(K,null==A?void 0:A.iconSearchWrapper),children:t.jsx(zne,{className:s_(Q,null==A?void 0:A.icon)})}),ce,_&&!D&&t.jsx("div",{className:s_(Y,null==A?void 0:A.iconWrapper),style:{display:w&&S.value?"flex":void 0},children:t.jsx(QH,{className:s_(X,null==A?void 0:A.icon),onMouseDown:le})}),de,t.jsxs("label",{htmlFor:N,className:s_(G),children:[o," ",k&&t.jsx("span",{className:s_("text-input-error",{"text-input-disable-text":m}),children:"*"})]})]}),(W||x)&&t.jsxs("span",{className:$,children:[W&&t.jsx("span",{className:"h-full shrink-0",children:t.jsx(OV,{width:14,height:14,className:s_("fill-none stroke-current",F?"text-input-error":T?"text-warning":"text-input-filled-text")})}),x&&!W&&t.jsx("span",{className:"block min-h-[14px]","aria-hidden":!0}),W||""]})]})})),jme={0:{pattern:/[0-9]/,placeholder:"0"},9:{pattern:/[0-9\s]/,placeholder:"9"},"#":{pattern:/[0-9\s+\-]/,placeholder:"#"},L:{pattern:/[a-zA-Z]/,placeholder:"L"},"?":{pattern:/[a-zA-Z\s]/,placeholder:"?"},"&":{pattern:/[^\s]/,placeholder:"&"},C:{pattern:/./,placeholder:"C"},A:{pattern:/[a-zA-Z0-9]/,placeholder:"A"},a:{pattern:/[a-zA-Z0-9\s]/,placeholder:"a"}},Ome=(e,t,r="_",n=!0,a=!0)=>{let o="",l=0;for(let i=0;i<t.length;i++){const s=t[i];if(s.isLiteral)o+=s.placeholder;else{let t=!1;for(;l<e.length;){const r=e[l];l++;if(s.validator?s.validator(r):s.pattern.test(r)){o+=r,t=!0;break}}if(!t&&a&&n)o+=r;else if(!t)break}}return o},Eme=(e,t)=>{let r="";for(let n=0;n<e.length&&n<t.length;n++){const a=t[n],o=e[n];a.isLiteral||(r+=o)}return r},zme=e.forwardRef(((r,n)=>{var{mask:a,maskChar:o="_",showMask:l=!0,guide:i=!0,keepCharPositions:s=!1,rules:c,onMaskedChange:d,onChange:u,value:h,defaultValue:p}=r,f=o_(r,["mask","maskChar","showMask","guide","keepCharPositions","rules","onMaskedChange","onChange","value","defaultValue"]);const v=e.useRef(null),[m,y]=e.useState(""),[g,k]=e.useState(""),b=e.useMemo((()=>a?((e,t)=>{const r=Object.assign(Object.assign({},jme),t),n=[];let a=0;for(;a<e.length;){const t=e[a];if("\\"===t&&a+1<e.length){const t=e[a+1];n.push({pattern:new RegExp(`^${t}$`),placeholder:t,isLiteral:!0}),a+=2}else if(r[t]){const e=r[t];"function"==typeof e?n.push({pattern:/./,placeholder:t,validator:e}):e instanceof RegExp?n.push({pattern:e,placeholder:t}):n.push({pattern:e.pattern,placeholder:e.placeholder}),a++}else n.push({pattern:new RegExp(`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),placeholder:t,isLiteral:!0}),a++}return n})(a,c):null),[a,c]);e.useEffect((()=>{const e=h||p||"";if(b&&e){const t=Ome(e,b,o,l,i),r=Eme(t,b);y(t),k(r)}else y(e),k(e)}),[b,o,l,i,h,p]),e.useImperativeHandle(n,(()=>null==v?void 0:v.current));const w=e.useCallback((e=>{const t=e.target.value;if(!b)return y(t),k(t),null==u||u(e),void(null==d||d(t,t));const r=Ome(t,b,o,l,i),n=Eme(r,b);y(r),k(n);const a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:r})});null==u||u(a),null==d||d(r,n),setTimeout((()=>{if(v.current){const e=n.replace(/[_\s]/g,"").length,t=((e,t,r)=>{let n=0,a=0;for(let o=0;o<r.length&&o<e.length;o++){const l=r[o];if(e[o],l.isLiteral)a=o+1;else if(n++,a=o+1,n>=t)break}return a})(r,e,b);v.current.setSelectionRange(t,t)}}),0)}),[b,o,l,i,u,d]),x=e.useCallback((e=>{var t,r,n;if(!b)return void(null===(t=f.onKeyDown)||void 0===t||t.call(f,e));const{key:a,ctrlKey:o,metaKey:l}=e,i=e.target.selectionStart||0;if("Backspace"===a||"Delete"===a||"ArrowLeft"===a||"ArrowRight"===a||"Home"===a||"End"===a||"Tab"===a||a.length>1||o||l)return void(null===(r=f.onKeyDown)||void 0===r||r.call(f,e));let s=i;for(;s<b.length&&b[s].isLiteral;)s++;if(s<b.length){const t=b[s];if(!(t.validator?t.validator(a):t.pattern.test(a)))return void e.preventDefault()}null===(n=f.onKeyDown)||void 0===n||n.call(f,e)}),[b,f]);return t.jsx(Mme,Object.assign({},f,{ref:v,value:m,onChange:w,onKeyDown:x,className:s_(f.className)}))}));zme.displayName="MaskedTextInput";const Cme=r.cva(["text-inherit"],{variants:{color:{primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary",success:"text-success",info:"text-info",warning:"text-warning",error:"text-error",inherit:"text-inherit"},size:{sm:"size-4",md:"size-6",lg:"size-8",inherit:""}},defaultVariants:{size:"inherit",color:"inherit"}}),Pme={sm:16,md:24,lg:32},Rme=r=>{var{name:n,type:a="heroicons",color:o="inherit",variant:l="solid",size:i="md",className:s}=r,c=o_(r,["name","type","color","variant","size","className"]);const[d,u]=e.useState(null);if(e.useEffect((()=>{if("lucide"===a)return void Promise.resolve().then((function(){return zZe})).then((({default:e})=>{const t=e[n];t?t().then((e=>{u((()=>e.default))})):console.warn(`Lucide icon "${n}" not found.`)}));const e=((e,t,r)=>{var n,a;return null===(a=null===(n=Xx[e])||void 0===n?void 0:n[t])||void 0===a?void 0:a[r]})(a,n,l);e?u((()=>e)):console.warn(`Icon "${n}" from "${a}" not found.`)}),[n,a,l]),"lucide"===a){if(!d)return t.jsx("span",{className:s_(Cme({color:o,size:i}),s)});const e="inherit"===i?24:Pme[i];return t.jsx(d,Object.assign({},c,{size:e,strokeWidth:e<=16?1.5:2,absoluteStrokeWidth:!0,shapeRendering:"geometricPrecision",className:s_(Cme({color:o,size:i}),"stroke-current",s)}))}return d?t.jsx(d,Object.assign({className:s_(Cme({color:o,size:i}),s)},c)):t.jsx("svg",Object.assign({className:s_(Cme({color:o,size:i}),s)},c))},Ame=e.forwardRef(((r,n)=>{var a,{showToggle:o=!0,hasClearIcon:l=!1,hideIcon:i,showIcon:s,endIcon:c,renderEndIcon:d,onClickEndIcon:u}=r,h=o_(r,["showToggle","hasClearIcon","hideIcon","showIcon","endIcon","renderEndIcon","onClickEndIcon"]);const p=e.useRef(null),[f,v]=e.useState(!1);e.useImperativeHandle(n,(()=>null==p?void 0:p.current));const m=f?null!=s?s:t.jsx(Rme,{name:"eye",type:"lucide",size:"inherit",className:"size-full","aria-label":"Hide password"}):null!=i?i:t.jsx(Rme,{name:"eye-closed",type:"lucide",size:"inherit",className:"size-full","aria-label":"Show password"});return t.jsx(Mme,Object.assign({iconMode:"flat"},h,{ref:p,type:f?"text":"password",hasClearIcon:l,endIcon:o?m:c,renderEndIcon:d,onClickEndIcon:o?()=>{var e;h.disabled||(v((e=>!e)),null===(e=p.current)||void 0===e||e.focus(),null==u||u())}:u,autoComplete:null!==(a=h.autoComplete)&&void 0!==a?a:"current-password"}))}));Ame.displayName="PasswordInput";const Lme=e.forwardRef(((r,n)=>{var a,{value:o,defaultValue:l,min:i,max:s,step:c=1,precision:d,hideControls:u=!1,allowDecimal:h=!0,allowNegative:p=!0,formatDisplay:f=!1,thousandSeparator:v=",",decimalSeparator:m=".",prefix:y="",suffix:g="",disabled:k=!1,onChange:b,onValueChange:w,className:x,size:_="md"}=r,M=o_(r,["value","defaultValue","min","max","step","precision","hideControls","allowDecimal","allowNegative","formatDisplay","thousandSeparator","decimalSeparator","prefix","suffix","disabled","onChange","onValueChange","className","size"]);const j=e.useRef(null),[O,E]=e.useState((null!==(a=null!=o?o:l)&&void 0!==a?a:"").toString()),[z,C]=e.useState(!1);e.useImperativeHandle(n,(()=>null==j?void 0:j.current));const P=e.useCallback((e=>{let t=e;return y&&(t=t.replace(y,"")),g&&(t=t.replace(g,"")),v&&(t=t.split(v).join("")),"."!==m&&(t=t.replace(m,".")),t.trim()}),[y,g,v,m]),R=e.useCallback((e=>{if(!f||""===e||"-"===e)return e;const t=parseFloat(e);if(isNaN(t))return e;let r=t.toString();void 0!==d&&(r=t.toFixed(d));const n=r.split(".");let a=n[0];const o=n[1];return v&&(a=a.replace(/\B(?=(\d{3})+(?!\d))/g,v)),r=o?`${a}${m}${o}`:a,y&&(r=`${y}${r}`),g&&(r=`${r}${g}`),r}),[f,d,v,m,y,g]),A=e.useCallback((e=>{if(""===e||"-"===e)return e;let t=parseFloat(e);return isNaN(t)?O:(void 0!==i&&t<i&&(t=i),void 0!==s&&t>s&&(t=s),void 0!==d&&(t=parseFloat(t.toFixed(d))),t.toString())}),[i,s,d,O]),L=e.useCallback((e=>{let t=e.target.value;if(f&&(t=P(t)),""===t)return E(""),null==b||b(void 0),void(null==w||w(""));if(p&&"-"===t)return E("-"),void(null==w||w("-"));if(!(h?p?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/:p?/^-?\d*$/:/^\d*$/).test(t))return;E(t),null==w||w(t);const r=parseFloat(t);isNaN(r)||null==b||b(r)}),[h,p,f,P,b,w]),I=e.useCallback((e=>{var t;C(!0),null===(t=M.onFocus)||void 0===t||t.call(M,e)}),[M]),V=e.useCallback((e=>{var t;C(!1);const r=A(O);E(r);const n=parseFloat(r);isNaN(n)||null==b||b(n),null===(t=M.onBlur)||void 0===t||t.call(M,e)}),[O,A,b,M]),H=e.useCallback((e=>{if(k)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(O)||0)+c;void 0!==s&&t>s&&(t=s);const r=A(t.toString());E(r),null==b||b(parseFloat(r)),null==w||w(r)}),[O,c,s,k,A,b,w]),S=e.useCallback((e=>{if(k)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(O)||0)-c;void 0!==i&&t<i&&(t=i);const r=A(t.toString());E(r),null==b||b(parseFloat(r)),null==w||w(r)}),[O,c,i,k,A,b,w]),Z=e.useCallback((e=>{var t;switch(e.key){case"ArrowUp":H(e);break;case"ArrowDown":S(e);break;case"Enter":e.currentTarget.blur()}null===(t=M.onKeyDown)||void 0===t||t.call(M,e)}),[H,S,M]);e.useEffect((()=>{void 0!==o&&E(o.toString())}),[o]);const N=e.useMemo((()=>z||!f?O:R(O)),[z,f,O,R]),q={sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6"}[_],D={sm:"absolute top-0.5",md:"absolute top-1",lg:"absolute top-1"}[_];return t.jsx(Mme,Object.assign({},M,{ref:j,type:"text",inputMode:"decimal",value:N,onChange:L,onFocus:I,onBlur:V,onKeyDown:Z,disabled:k,size:_,hasClearIcon:!1,endIcon:u?null:t.jsxs("div",{className:s_("flex flex-col","flat"===M.iconMode&&D),children:[t.jsx("button",{type:"button",onClick:H,disabled:k||void 0!==s&&parseFloat(O)>=s,className:s_(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:t.jsx(bn,{className:q})}),t.jsx("button",{type:"button",onClick:S,disabled:k||void 0!==i&&parseFloat(O)<=i,className:s_(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:t.jsx(hn,{className:q})})]}),className:s_(x)}))}));Lme.displayName="NumberInput";const Ime=r.cva(["peer block w-full bg-transparent outline-none placeholder:text-transparent resize-y ui-scrollbar","text-input-filled-text caret-primary"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitle4",lg:"p-4 typography-subtitle1"},rounded:{none:"rounded-none",normal:"rounded-md",full:"rounded-full"},variant:{flat:"",outline:["ring-1 ring-inset ring-input-default-stroke","hover:ring-input-active-stroke","focus:ring-1 focus:ring-inset focus:ring-input-active-stroke"],underline:"border-b-2 border-input-default-stroke transition-colors hover:border-input-active-stroke focus:border-input-stroke"},fullwidth:{true:"w-full"},disabled:{true:["bg-input-disable-bg text-input-disable-text ring-input-disable-stroke placeholder:text-input-disable-text","hover:ring-input-disable-stroke","cursor-not-allowed"]},error:{true:"ring-input-error focus:ring-input-error"},hasClearIcon:{true:""},isFloatingLabel:{true:"",false:"placeholder:text-input-placeholder"}},compoundVariants:[{variant:"underline",className:"rounded-none"},{hasClearIcon:!0,size:"sm",className:"focus:pe-6"},{hasClearIcon:!0,size:"md",className:"focus:pe-8"},{hasClearIcon:!0,size:"lg",className:"focus:pe-10"}],defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hasClearIcon:!1,isFloatingLabel:!0}}),Vme=r.cva(["absolute block duration-450 transition-all px-[2px] text-input-default-text","peer-focus:text-input-filled-text peer-focus:bg-input-label-bg"],{variants:{size:{sm:[],md:[],lg:[]},disabled:{true:"text-input-default-text placeholder:text-input-default-text"},error:{true:"ring-error"},isFloatingLabel:{false:"hidden peer-placeholder-shown:block peer-focus:bg-transparent"}},compoundVariants:[{isFloatingLabel:!0,size:"sm",className:["left-3 -top-1.5 typography-label2 bg-input-label-bg","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"]},{isFloatingLabel:!0,size:"md",className:["left-3 -top-1.5 typography-label1 bg-input-label-bg","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{isFloatingLabel:!0,size:"lg",className:["left-4 -top-1.5 typography-label1 bg-input-label-bg","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{isFloatingLabel:!1,size:"sm",className:["left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1"]},{isFloatingLabel:!1,size:"md",className:["left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4"]},{isFloatingLabel:!1,size:"lg",className:["left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1"]}],defaultVariants:{size:"md",disabled:!1,error:!1,isFloatingLabel:!0}}),Hme=r.cva(["absolute inset-y-0 right-0 items-start justify-center hidden peer-focus:flex"],{variants:{size:{sm:"mr-2 pt-2",md:"mr-3 pt-2",lg:"mr-4 pt-4"}},defaultVariants:{size:"md"}}),Sme=r.cva(["cursor-pointer z-50 fill-input-active-stroke hover:fill-input-default-text"],{variants:{size:{sm:"size-3",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),Zme=r.cva(["typography-small1 flex flex-row items-center gap-1"],{variants:{size:{sm:"mt-1",md:"mt-[6px]",lg:"mt-[6px]"},disabled:{true:"text-input-disable-text"},error:{true:"text-input-error",false:"text-input-filled-text"}},defaultVariants:{size:"md",disabled:!1,error:!1}}),Nme=e.forwardRef(((r,n)=>{var{id:a,label:o,size:l="md",rounded:i="normal",variant:s="outline",helperText:c,errorMessage:d,fullwidth:u=!0,disabled:h=!1,error:p=!1,required:f=!0,isFloatingLabel:v=!0,keepCloseIconOnValue:m=!1,hasClearIcon:y=!0,labelClassName:g,className:k,normalize:b,format:w,trimOnCommit:x,normalizeOnCommit:_}=r,M=o_(r,["id","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","required","isFloatingLabel","keepCloseIconOnValue","hasClearIcon","labelClassName","className","normalize","format","trimOnCommit","normalizeOnCommit"]);const j=e.useRef(null),O=a||`textarea-${null!=o?o:""}`;e.useImperativeHandle(n,(()=>null==j?void 0:j.current));const E=e.useCallback((e=>{var t;b&&(e.target.value=b(e.target.value)),null===(t=M.onChange)||void 0===t||t.call(M,e)}),[b,M.onChange]),z=e.useCallback((e=>{var t;const r=e.currentTarget;let n=r.value;x&&(n=n.trim()),_&&(n=_(n)),n!==r.value&&(r.value=n,null===(t=M.onChange)||void 0===t||t.call(M,Object.assign(Object.assign({},e),{target:r})))}),[x,_,M.onChange]),C=e.useCallback((e=>{var t;(x||_)&&z(e),null===(t=M.onBlur)||void 0===t||t.call(M,e)}),[x,_,z,M.onBlur]),P=w&&"string"==typeof M.value?w(M.value):M.value,R=e.useMemo((()=>"inline-flex flex-col "+(u?"w-full":"")),[u]),A=Ime({size:l,rounded:i,variant:s,fullwidth:u,disabled:h,error:p,hasClearIcon:y,isFloatingLabel:v});return t.jsxs("div",{className:R,children:[t.jsxs("div",{className:"relative",children:[t.jsx("textarea",Object.assign({},M,{id:O,ref:j,disabled:h,placeholder:v?" ":M.placeholder,className:s_(A,k),value:P,onChange:b?E:M.onChange,onBlur:x||_?C:M.onBlur})),y&&t.jsx("div",{className:Hme({size:l}),style:{display:m&&M.value?"flex":void 0},children:t.jsx(Wd,{type:"button",className:Sme({size:l}),onMouseDown:e=>{if(e.preventDefault(),j.current){const e=j.current.value;j.current.value="",M.onChange&&""!==e&&M.onChange({target:{value:""}}),j.current.focus()}}})}),o&&t.jsxs("label",{htmlFor:O,className:s_(Vme({size:l,disabled:h,error:p,isFloatingLabel:v}),g),children:[o," ",f&&t.jsx("span",{className:s_("text-error",{"text-input-disable-text":h}),children:"*"})]})]}),(d||c)&&t.jsx("span",{className:Zme({size:l,disabled:h,error:p}),children:d||c})]})})),qme=r.cva(["text-common-black"],{variants:{color:{primary:"text-primary",secondary:"text-secondary",success:"text-success",tertiary:"text-tertiary",info:"text-info",warning:"text-warning",error:"text-error"}}}),Dme={subtitile1:"subtitle1",subtitile2:"subtitle2",subtitile3:"subtitle3",subtitile4:"subtitle4",subtitile5:"subtitle5",subtitile6:"subtitle6"},Bme=e.forwardRef(((e,r)=>{var n,{variant:a="body1",tag:o="p",children:l,className:i="",color:s,style:c}=e,d=o_(e,["variant","tag","children","className","color","style"]);const u=null!==(n=Dme[a])&&void 0!==n?n:a;return t.jsx(o,Object.assign({ref:r,className:s_(`typography-${u}`,qme({color:s}),i),style:c},d,{children:l}))})),Fme=r.cva(["box-border flex items-center justify-center"],{variants:{variant:{solid:["bg-action-button-solid-default border-action-button-solid-default text-action-button-solid-default fill-action-button-solid-default","hover:bg-action-button-solid-hover hover:border-action-button-solid-hover hover:text-action-button-solid-hover hover:fill-action-button-solid-hover","active:bg-action-button-solid-pressed active:border-action-button-solid-pressed active:text-action-button-solid-pressed active:fill-action-button-solid-pressed"],outline:["ring-1 ring-inset","bg-action-button-outline-default text-action-button-outline-default fill-action-button-outline-default ring-[var(--action-button-outline-default-border)]","hover:bg-action-button-outline-hover hover:text-action-button-outline-hover hover:fill-action-button-outline-hover hover:ring-[var(--action-button-outline-hover-border)]","active:bg-action-button-outline-pressed active:text-action-button-outline-pressed active:fill-action-button-outline-pressed active:ring-[var(--action-button-outline-pressed-border)]"],icon:["bg-action-button-icon-default border-action-button-icon-default text-action-button-icon-default fill-action-button-icon-default","hover:bg-action-button-icon-hover hover:border-action-button-icon-hover hover:text-action-button-icon-hover hover:fill-action-button-icon-hover","active:bg-action-button-icon-pressed active:border-action-button-icon-pressed active:text-action-button-icon-pressed active:fill-action-button-icon-pressed"]},size:{xxs:"",xs:"",sm:"",md:"",lg:""},shape:{round:"",capsule:""},disabled:{false:""},active:{false:""}},compoundVariants:[{variant:"solid",active:!0,className:["bg-action-button-solid-active border-action-button-solid-active text-action-button-solid-active fill-action-button-solid-active","hover:bg-action-button-solid-active-hover hover:border-action-button-solid-active-hover hover:text-action-button-solid-active-hover hover:fill-action-button-solid-active-hover","active:bg-action-button-solid-active-pressed active:border-action-button-solid-active-pressed active:text-action-button-solid-active-pressed active:fill-action-button-solid-active-pressed"]},{variant:"outline",active:!0,className:["bg-action-button-outline-active text-action-button-outline-active fill-action-button-outline-active ring-[var(--action-button-outline-active-border)]","hover:bg-action-button-outline-active-hover hover:text-action-button-outline-active-hover hover:fill-action-button-outline-active-hover hover:ring-[var(--action-button-outline-active-hover-border)]","active:bg-action-button-outline-active-pressed active:text-action-button-outline-active-pressed active:fill-action-button-outline-active-pressed active:ring-[var(--action-button-outline-active-pressed-border)]"]},{variant:"icon",active:!0,className:["bg-action-button-icon-active border-action-button-icon-active text-action-button-icon-active fill-action-button-icon-active","hover:bg-action-button-icon-active-hover hover:border-action-button-icon-active-hover hover:text-action-button-icon-active-hover hover:fill-action-button-icon-active-hover","active:bg-action-button-icon-active-pressed active:border-action-button-icon-active-pressed active:text-action-button-icon-active-pressed active:fill-action-button-icon-active-pressed"]},{size:"lg",variant:["solid","outline"],className:"px-[12px] py-[12px] [&_svg]:size-[32px]"},{size:"md",variant:["solid","outline"],className:"px-[8px] py-[8px] [&_svg]:size-[22px]"},{size:"sm",variant:["solid","outline"],className:"px-[4px] py-[4px] [&_svg]:size-[22px]"},{size:"xs",variant:["solid","outline"],className:"px-[2px] py-[2px] [&_svg]:size-[14px]"},{size:"lg",variant:"icon",className:"px-[12px] py-[12px] [&_svg]:size-[32px]"},{size:"md",variant:"icon",className:"px-[8px] py-[8px] [&_svg]:size-[22px]"},{size:"sm",variant:"icon",className:"px-[4px] py-[4px] [&_svg]:size-[22px]"},{size:"xxs",variant:"icon",className:"px-[1px] py-[1px] [&_svg]:size-[10px]"},{size:"xs",variant:"icon",className:"px-[2px] py-[2px] [&_svg]:size-[14px]"},{size:"lg",shape:"round",className:"rounded-[var(--function-button-l-round)]"},{size:"md",shape:"round",className:"rounded-[var(--function-button-m-round)]"},{size:"sm",shape:"round",className:"rounded-[var(--function-button-s-round)]"},{size:"xs",shape:"round",className:"rounded-[var(--function-button-xs-round)]"},{size:"xxs",shape:"round",className:"rounded-[var(--function-button-xxs-round)]"},{size:"lg",shape:"capsule",className:"rounded-[var(--function-button-l-capsule)]"},{size:"md",shape:"capsule",className:"rounded-[var(--function-button-m-capsule)]"},{size:"sm",shape:"capsule",className:"rounded-[var(--function-button-s-capsule)]"},{size:"xxs",shape:"capsule",className:"rounded-[var(--function-button-xxs-capsule)]"},{size:"xs",shape:"capsule",className:"rounded-[var(--function-button-xs-capsule)]"},{variant:"solid",disabled:!0,className:["pointer-events-none","bg-action-button-solid-disabled border-action-button-solid-disabled text-action-button-solid-disabled fill-action-button-solid-disabled"]},{variant:"outline",disabled:!0,className:["pointer-events-none","bg-action-button-outline-disabled text-action-button-outline-disabled fill-action-button-outline-disabled ring-[var(--action-button-outline-disabled-border)]"]},{variant:"icon",disabled:!0,className:["pointer-events-none","bg-action-button-icon-disabled border-action-button-icon-disabled text-action-button-icon-disabled fill-action-button-icon-disabled"]}],defaultVariants:{size:"md",variant:"solid",shape:"round",disabled:!1,active:!1}}),Tme=e.forwardRef(((e,r)=>{var{children:n,disabled:a,active:o,className:l,size:i,shape:s,variant:c}=e,d=o_(e,["children","disabled","active","className","size","shape","variant"]);const u=Fme({size:i,shape:s,variant:c,active:o,disabled:a});return t.jsx("button",Object.assign({},d,{ref:r,type:"button","aria-disabled":a||void 0,disabled:a,tabIndex:a?-1:0,className:s_(".action-button",u,l),children:n}))}));function Wme(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ume(...e){return t=>{let r=!1;const n=e.map((e=>{const n=Wme(e,t);return r||"function"!=typeof n||(r=!0),n}));if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Wme(e[t],null)}}}}var Gme=l.forwardRef(((e,r)=>{const{children:n,...a}=e,o=l.Children.toArray(n),i=o.find(Kme);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t));return t.jsx($me,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return t.jsx($me,{...a,ref:r,children:n})}));Gme.displayName="Slot";var $me=l.forwardRef(((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return l.cloneElement(r,{...Xme(n,r.props),ref:t?Ume(t,e):e})}return l.Children.count(r)>1?l.Children.only(null):null}));$me.displayName="SlotClone";var Yme=({children:e})=>t.jsx(t.Fragment,{children:e});function Kme(e){return l.isValidElement(e)&&e.type===Yme}function Xme(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{o(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}var Qme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?Gme:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Jme=Boolean(globalThis?.document)?l.useLayoutEffect:()=>{},eye=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(Qme.div,{...o,ref:r}),c):null}));eye.displayName="Portal";var tye=eye;r.cva(["absolute inset-y-0 right-0 flex items-center justify-center"],{variants:{size:{sm:"mr-2",md:"mr-3",lg:"mr-4"}},defaultVariants:{size:"md"}});const rye=r.cva(["transition-all"],{variants:{disabled:{true:"fill-input-text-disabled",false:"fill-inherit"},isFocus:{true:"fill-input-text-active rotate-180",false:""}},defaultVariants:{disabled:!1,isFocus:!1}}),nye=r.cva([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[68px]"}},defaultVariants:{size:"md"}}),aye=e.forwardRef((({items:r,selectedValues:n=[],onSelect:a,className:o,style:l,isAbove:i=!1},s)=>t.jsx("div",{ref:s,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-g-contrast-high","border border-modal-surface",o),style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},l),children:r.map(((r,o)=>{var l;if("separator"===r.type)return t.jsx(lye,{},`separator-${o}`);if("label"===r.type)return t.jsx(iye,{children:r.label},`label-${o}`);if("custom"===r.type)return t.jsx(e.Fragment,{children:r.render()},`custom-${o}`);const i=r.item,s=i.type||"default";let c=!1;return c=("checkbox"===s||"radio"===s)&&null!==(l=i.checked)&&void 0!==l?l:n.includes(i.value),t.jsx(oye,{option:i,visualType:s,isChecked:c,onSelect:()=>{var e;null==a||a(i.value,i),null===(e=i.onClick)||void 0===e||e.call(i)}},i.value)}))})));aye.displayName="Menu";const oye=e.forwardRef((({option:e,visualType:r,isChecked:n,onSelect:a,className:o},l)=>t.jsxs("div",{ref:l,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]",{"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5":n,"pointer-events-none opacity-50":e.disabled,"text-red-500":e.danger},o),onMouseDown:e.disabled?void 0:a,children:["checkbox"===r&&n?t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(Rme,{type:"heroicons",name:"check",className:"size-4"})}):"radio"===r&&n?t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(Rme,{type:"heroicons",name:"circle",className:"h-2 w-2 fill-current"})}):null,e.icon&&t.jsx("span",{className:"flex-shrink-0",children:e.icon}),e.label]})));oye.displayName="MenuItem";const lye=e.forwardRef((({className:e},r)=>t.jsx("div",{ref:r,className:s_("-mx-2 my-2 h-px bg-[var(--dropdown-menu-seperator-bg)]",e)})));lye.displayName="MenuSeparator";const iye=e.forwardRef((({children:e,className:r},n)=>t.jsx("div",{ref:n,className:s_("px-3 py-2 typography-small4 text-text-g-contrast-medium",r),children:e})));iye.displayName="MenuLabel";const sye=e.forwardRef(((r,n)=>{var{id:a,options:o=[],value:l,label:i,size:s="md",rounded:c="normal",variant:d="outline",defaultMenuItemType:u="checkbox",helperText:h,errorMessage:p,fullwidth:f=!0,disabled:v=!1,error:m=!1,filterMode:y=!1,required:g=!0,modal:k=!1,onChangeText:b,onSelect:w,renderOptions:x,optionContainerClassName:_,optionItemClassName:M,optionNotFoundItemClassName:j,segmentedInput:O=!0}=r,E=o_(r,["id","options","value","label","size","rounded","variant","defaultMenuItemType","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","modal","onChangeText","onSelect","renderOptions","optionContainerClassName","optionItemClassName","optionNotFoundItemClassName","segmentedInput"]);const z=a||`${i}-select`,[C,P]=e.useState(!1),[R,A]=e.useState(null),[L,I]=e.useState(""),V=e.useRef(""),H=e.useRef(null),S=e.useRef(null),[Z,N]=e.useState({}),[q,D]=e.useState(!1),[B,F]=e.useState(!1);e.useImperativeHandle(n,(()=>null==S?void 0:S.current)),e.useEffect((()=>{var e;A(l),I(null!==(e=null==l?void 0:l.label)&&void 0!==e?e:"")}),[l]),e.useEffect((()=>{let e=S.current;for(;e;){if("dialog"===e.getAttribute("role"))return void F(!0);e=e.parentElement}F(!1)}),[]);const T=e.useCallback((e=>{null==b||b(e),I(e.target.value),e.target.value||X(e)}),[b]),W=e.useCallback((e=>{A(e),I(e.label),null==w||w(e),P(!1)}),[w]),U=e.useMemo((()=>o.filter((e=>{var t;return!y||(null===(t=e.label)||void 0===t?void 0:t.toLowerCase().includes(null==L?void 0:L.toLowerCase()))}))),[o,y,L]),G=!B&&k,$=e.useCallback((()=>{if(S.current&&H.current){const e=S.current.getBoundingClientRect(),t=H.current.offsetHeight,r=window.innerHeight-e.bottom,n=e.top,a=r<t&&n>r;D(a),N(G?{position:"absolute",top:a?e.top-t+"px":`${e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:9999}:{position:"absolute",top:a?`-${t}px`:"100%",left:"0",width:"100%",zIndex:9999})}}),[k,B,G]);e.useEffect((()=>(C&&($(),window.addEventListener("resize",$)),()=>{window.removeEventListener("resize",$)})),[C,$]);const Y=()=>{if(x)return x({optionsFiltered:U,selectedOption:R,onClick:W,style:Z,dropdownRef:H});let r;return r=U.map((r=>r.renderLabel?{type:"custom",render:()=>t.jsx(e.Fragment,{children:r.renderLabel({value:r.value,label:r.label,handleOnClick:()=>W(r),className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]",{"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5":(null==R?void 0:R.value)===r.value},M)})},r.value)}:{type:"item",item:{type:u,value:r.value,label:r.label}})),0===r.length&&r.push({type:"custom",render:()=>t.jsx("div",{className:s_("px-4 py-14 text-center text-input-text",j),children:"Not found"},"not-found")}),t.jsx(aye,{ref:H,items:r,selectedValues:(null==R?void 0:R.value)?[R.value]:[],onSelect:e=>{const t=U.find((t=>t.value===e));t&&W(t)},className:s_("absolute mt-1 w-full max-h-60 overflow-y-auto",!G&&(q?"bottom-full mb-1":"top-full mt-1"),_),style:Z})},K=e.useCallback((e=>{var t;P(!0),null===(t=null==E?void 0:E.onFocus)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onFocus]),X=e.useCallback((e=>{const t=U.find((t=>{var r,n;return t.value===(null===(r=e.target)||void 0===r?void 0:r.value)||t.label===(null===(n=e.target)||void 0===n?void 0:n.value)}));let r=t||{value:"",label:""};!!!t&&L&&(r={value:"",label:""}),"Enter"!==V.current&&(A(r),I(r.label),null==w||w(r))}),[U,L]),Q=e.useCallback((e=>{var t;setTimeout((()=>P(!1)),200),X(e),null===(t=null==E?void 0:E.onBlur)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onBlur,X]),J=e.useCallback((e=>{var t;V.current=e.code,null===(t=null==E?void 0:E.onKeyDown)||void 0===t||t.call(E,e)}),[null==E?void 0:E.onKeyDown]);return t.jsxs("div",{className:"relative "+(f?"w-full":""),children:[t.jsx(Mme,Object.assign({hasClearIcon:!1,endIcon:t.jsx(hn,{className:rye({isFocus:C})})},E,{ref:S,readOnly:!y,value:L,onChange:T,label:i,placeholder:" ",type:"text",autoComplete:"off",rounded:c,variant:d,helperText:h,errorMessage:p,fullwidth:f,error:m,required:g,id:z,disabled:v,size:s,className:O?nye({size:s}):void 0,onFocus:K,onBlur:Q,onKeyDown:J})),C&&(G?t.jsx(tye,{container:document.body,children:Y()}):Y())]})}));function cye(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function dye(...e){return l.useCallback(cye(...e),e)}function uye(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;n=[...n,a];const s=r=>{const{scope:n,children:a,...s}=r,c=n?.[e]?.[i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})};return s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e]?.[i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},hye(a,...r)]}function hye(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}function pye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function fye(e){const t=l.useRef(e);return l.useEffect((()=>{t.current=e})),l.useMemo((()=>(...e)=>t.current?.(...e)),[])}function vye({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=function({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,a=l.useRef(n),o=fye(t);return l.useEffect((()=>{a.current!==n&&(o(n),a.current=n)}),[n,a,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,i=o?e:n,s=fye(r);return[i,l.useCallback((t=>{if(o){const r="function"==typeof t?t(e):t;r!==e&&s(r)}else a(t)}),[o,e,a,s])]}function mye(e){const t=l.useRef({value:e,previous:e});return l.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function yye(e){const[t,r]=l.useState(void 0);return Jme((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let a,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;r({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}var gye=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=kye(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=kye(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=kye(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=kye(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function kye(e){return e?.animationName||"none"}gye.displayName="Presence";var bye=l.forwardRef(((e,r)=>{const{children:n,...a}=e,o=l.Children.toArray(n),i=o.find(_ye);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t));return t.jsx(wye,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return t.jsx(wye,{...a,ref:r,children:n})}));bye.displayName="Slot";var wye=l.forwardRef(((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r);return l.cloneElement(r,{...Mye(n,r.props),ref:t?cye(t,e):e})}return l.Children.count(r)>1?l.Children.only(null):null}));wye.displayName="SlotClone";var xye=({children:e})=>t.jsx(t.Fragment,{children:e});function _ye(e){return l.isValidElement(e)&&e.type===xye}function Mye(e,t){const r={...t};for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{o(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}var jye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Oye="Checkbox",[Eye,zye]=uye(Oye),[Cye,Pye]=Eye(Oye),Rye=l.forwardRef(((e,r)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:i,required:s,disabled:c,value:d="on",onCheckedChange:u,form:h,...p}=e,[f,v]=l.useState(null),m=dye(r,(e=>v(e))),y=l.useRef(!1),g=!f||(h||!!f.closest("form")),[k=!1,b]=vye({prop:o,defaultProp:i,onChange:u}),w=l.useRef(k);return l.useEffect((()=>{const e=f?.form;if(e){const t=()=>b(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,b]),t.jsxs(Cye,{scope:n,state:k,disabled:c,children:[t.jsx(jye.button,{type:"button",role:"checkbox","aria-checked":Vye(k)?"mixed":k,"aria-required":s,"data-state":Hye(k),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:m,onKeyDown:pye(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:pye(e.onClick,(e=>{b((e=>!!Vye(e)||!e)),g&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),g&&t.jsx(Iye,{control:f,bubbles:!y.current,name:a,value:d,checked:k,required:s,disabled:c,form:h,style:{transform:"translateX(-100%)"},defaultChecked:!Vye(i)&&i})]})}));Rye.displayName=Oye;var Aye="CheckboxIndicator",Lye=l.forwardRef(((e,r)=>{const{__scopeCheckbox:n,forceMount:a,...o}=e,l=Pye(Aye,n);return t.jsx(gye,{present:a||Vye(l.state)||!0===l.state,children:t.jsx(jye.span,{"data-state":Hye(l.state),"data-disabled":l.disabled?"":void 0,...o,ref:r,style:{pointerEvents:"none",...e.style}})})}));Lye.displayName=Aye;var Iye=e=>{const{control:r,checked:n,bubbles:a=!0,defaultChecked:o,...i}=e,s=l.useRef(null),c=mye(n),d=yye(r);l.useEffect((()=>{const e=s.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&r){const t=new Event("click",{bubbles:a});e.indeterminate=Vye(n),r.call(e,!Vye(n)&&n),e.dispatchEvent(t)}}),[c,n,a]);const u=l.useRef(!Vye(n)&&n);return t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...i,tabIndex:-1,ref:s,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Vye(e){return"indeterminate"===e}function Hye(e){return Vye(e)?"indeterminate":e?"checked":"unchecked"}var Sye=Rye,Zye=Lye;const Nye=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(Sye,Object.assign({ref:r,className:s_("peer size-4 shrink-0 cursor-pointer rounded-[var(--spacing-spacing-xxs,2px)] border border-function-default-solid ring-offset-bg-bg1","hover:border-function-default-hover","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-input-active-stroke focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:border-state-disable-outline disabled:text-state-disable-outline","disabled:data-[state=checked]:border-state-disable-solid disabled:data-[state=checked]:bg-state-disable-solid","disabled:data-[state=indeterminate]:border-state-disable-solid disabled:data-[state=indeterminate]:bg-state-disable-solid",{"data-[state=checked]:border-function-active-solid data-[state=checked]:bg-function-active-solid data-[state=checked]:text-function-active-icon data-[state=indeterminate]:border-function-active-solid data-[state=indeterminate]:bg-function-active-solid data-[state=indeterminate]:text-function-active-icon":!a.disabled,"hover:data-[state=checked]:border-function-active-hover hover:data-[state=checked]:bg-function-active-hover hover:data-[state=indeterminate]:border-function-active-hover hover:data-[state=indeterminate]:bg-function-active-hover":!a.disabled},n)},a,{children:t.jsxs(Zye,{className:s_("flex size-[14px] items-center justify-center text-current","[&[data-state=checked]_.checkbox-check-icon]:block","[&[data-state=indeterminate]_.checkbox-minus-icon]:block"),children:[t.jsx(tn,{className:"checkbox-check-icon hidden size-[14px]"}),t.jsx(Ri,{className:"checkbox-minus-icon hidden size-[14px]"})]})}))}));Nye.displayName=Sye.displayName;var qye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),Dye=l.forwardRef(((e,r)=>t.jsx(qye.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Dye.displayName="Label";var Bye=Dye;const Fye=r.cva(["block cursor-pointer duration-450 transition-all px-[2px] text-input-default-text peer-focus:text-input-text-active"],{variants:{size:{sm:"typography-small1",md:"typography-subtitle2",lg:"typography-subtitle1"},disabled:{true:"text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled peer-disabled:cursor-not-allowed"},error:{true:"ring-error"},isFloatable:{true:"absolute peer-focus:text-input-text-active peer-focus:bg-input-label-background",false:""}},compoundVariants:[{size:"sm",isFloatable:!0,className:["left-3 -top-1.5 typography-label2 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-small1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label2"]},{size:"md",isFloatable:!0,className:["left-3 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]},{size:"lg",isFloatable:!0,className:["left-4 -top-1.5 typography-label1 bg-input-label-background","peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent","peer-focus:-top-1.5 peer-focus:typography-label1"]}],defaultVariants:{size:"md",disabled:!1,error:!1,isFloatable:!1}}),Tye=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(Bye,Object.assign({ref:r,className:s_(Fye({size:a.size,disabled:a.disabled,error:a.error,isFloatable:a.isFloatable}),n)},a))}));Tye.displayName=Bye.displayName;const Wye=r.cva(["border-0 outline-none","p-1 flex w-auto h-fit box-border","peer text-input-filled-text placeholder:text-input-default-text bg-transparent caret-primary"],{variants:{size:{sm:"p-2 px-3 typography-small1",md:"py-2 px-3 typography-subtitle4",lg:"p-4 typography-subtitle1"},rounded:{none:"rounded-none",normal:"rounded-xl",full:"rounded-full"},variant:{flat:"",outline:["ring-1 ring-inset ring-input-default-stroke","hover:ring-input-active-stroke hover:text-input-filled-text","focus:ring-1 focus:ring-inset focus:ring-input-active-stroke focus:text-input-filled-text active:text-input-filled-text"],underline:"border-b-2 border-input-default-stroke transition-colors hover:border-input-active-stroke focus:border-input-default-stroke"},hiddenPlaceholder:{true:"placeholder:text-transparent"},fullwidth:{true:"w-full"},disabled:{true:["text-input-disable-text ring-input-disable-stroke bg-input-disable-bg placeholder:text-input-disable-text","hover:text-input-disable-text hover:ring-input-disable-stroke hover:bg-input-disable-bg hover:placeholder:text-input-disable-text","active:text-input-disable-text active:ring-input-disable-stroke active:bg-input-disable-bg active:placeholder:text-input-disable-text"]},error:{true:"ring-input-error focus:ring-input-error"}},defaultVariants:{size:"md",variant:"outline",rounded:"normal",fullwidth:!1,disabled:!1,error:!1,hiddenPlaceholder:!0}}),Uye=e.forwardRef(((e,r)=>{var{className:n,type:a="text",size:o="md",variant:l="outline",rounded:i="normal",fullwidth:s=!1,disabled:c=!1,error:d=!1,required:u=!1,hiddenPlaceholder:h=!1}=e,p=o_(e,["className","type","size","variant","rounded","fullwidth","disabled","error","required","hiddenPlaceholder"]);return t.jsx("input",Object.assign({type:a,className:s_(Wye({size:o,variant:l,fullwidth:s,error:d,hiddenPlaceholder:h,disabled:c,rounded:i}),n),ref:r,disabled:c},p))}));Uye.displayName="Input";var Gye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),$ye="Avatar",[Yye,Kye]=uye($ye),[Xye,Qye]=Yye($ye),Jye=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,...a}=e,[o,i]=l.useState("idle");return t.jsx(Xye,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:t.jsx(Gye.span,{...a,ref:r})})}));Jye.displayName=$ye;var ege="AvatarImage",tge=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:o=()=>{},...i}=e,s=Qye(ege,n),c=function(e,t){const[r,n]=l.useState("idle");return Jme((()=>{if(!e)return void n("error");let r=!0;const a=new window.Image,o=e=>()=>{r&&n(e)};return n("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{r=!1}}),[e,t]),r}(a,i.referrerPolicy),d=fye((e=>{o(e),s.onImageLoadingStatusChange(e)}));return Jme((()=>{"idle"!==c&&d(c)}),[c,d]),"loaded"===c?t.jsx(Gye.img,{...i,ref:r,src:a}):null}));tge.displayName=ege;var rge="AvatarFallback",nge=l.forwardRef(((e,r)=>{const{__scopeAvatar:n,delayMs:a,...o}=e,i=Qye(rge,n),[s,c]=l.useState(void 0===a);return l.useEffect((()=>{if(void 0!==a){const e=window.setTimeout((()=>c(!0)),a);return()=>window.clearTimeout(e)}}),[a]),s&&"loaded"!==i.imageLoadingStatus?t.jsx(Gye.span,{...o,ref:r}):null}));nge.displayName=rge;var age=Jye,oge=tge,lge=nge;const ige=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(age,Object.assign({ref:r,className:s_("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},a))}));ige.displayName=age.displayName;const sge=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(oge,Object.assign({ref:r,className:s_("aspect-square h-full w-full",n)},a))}));sge.displayName=oge.displayName;const cge=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(lge,Object.assign({ref:r,className:s_("flex h-full w-full items-center justify-center rounded-full bg-inherit text-inherit",n)},a))}));cge.displayName=lge.displayName;const dge=r.cva(["flex items-center justify-center bg-grey2-700 text-common-black typography-subtitle2 truncate"],{variants:{size:{xxs:"w-[24px] h-[24px] typography-subtitle3",xs:"w-[32px] h-[32px]",sm:"w-[40px] h-[40px]",md:"w-[48px] h-[48px]",lg:"w-[64px] h-[64px]"},rounded:{normal:"rounded",full:"rounded-full",none:"rounded-none"}},defaultVariants:{size:"md",rounded:"normal"}}),uge=e=>{var t,r,n;if(!e.length)return"-";const a=e.split(" ");return`${null==e?void 0:e.charAt(0)}${null!==(n=null!==(r=null===(t=null==a?void 0:a[1])||void 0===t?void 0:t.charAt(0))&&void 0!==r?r:null==e?void 0:e.charAt(1))&&void 0!==n?n:""}`},hge=e.createContext(void 0),pge=()=>{const t=e.useContext(hge);if(!t)throw new Error("useCollapsible must be used within a CollapsibleProvider");return t},fge=({size:r,children:n,isExpandControlled:a,onToggle:o})=>{const[l,i]=e.useState(!1);return e.useEffect((()=>{void 0!==a&&i(a)}),[a]),t.jsx(hge.Provider,{value:{size:r,isExpand:l,toggle:()=>{i((e=>!e)),o&&o(!l)},setIsExpand:i},children:n})},vge=r.cva(["flex flex-1 bg-secondary-default hover:bg-secondary-hover text-state-secondary-text-solid","focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75"],{variants:{size:{sm:"py-2 px-3",md:"py-3 px-4",lg:"py-4 px-5"}},defaultVariants:{size:"md"}}),mge=r.cva(["transition-all flex content-center justify-center "],{variants:{size:{sm:"size-5",md:"size-6",lg:"size-7"},isExpand:{true:"rotate-180"}},defaultVariants:{size:"md",isExpand:!1}}),yge=r.cva(["flex flex-1 border-t border-t-secondary","transition ease-in-out delay-150 duration-300"],{variants:{size:{sm:"py-2 px-3",md:"py-3 px-4",lg:"py-4 px-5"}},defaultVariants:{size:"md"}}),gge=r.cva(["flex flex-col border border-secondary rounded overflow-hidden"]),kge=e.forwardRef((({children:e,className:r,hideExpandIcon:n=!1},a)=>{const{toggle:o,isExpand:l,size:i}=pge(),s=vge({size:i}),c=mge({isExpand:l,size:i});return t.jsxs("button",{onClick:o,className:s_(s,r),ref:a,children:[t.jsx("span",{className:"flex flex-1",children:e}),!n&&t.jsx("span",{className:s_(c),children:t.jsx(hn,{className:s_("size-full")})})]})}));kge.displayName="CollapsibleButton";const bge=e.forwardRef((({children:r,className:n},a)=>{const{isExpand:o,size:l}=pge(),i=yge({size:l}),[s,c]=e.useState("0px"),d=e.useRef(null);return e.useEffect((()=>{d.current&&c(o?`${d.current.scrollHeight}px`:"0px")}),[o,r]),t.jsx("div",{ref:a,className:s_("overflow-hidden transition-all ease-in-out"),style:{height:s},children:t.jsx("div",{ref:d,className:s_(i,n),children:r})})}));bge.displayName="CollapsiblePanel";const wge=e.forwardRef((({children:e,isExpand:r,size:n,className:a,onToggle:o},l)=>{const i=gge();return t.jsx(fge,{size:n,isExpandControlled:r,onToggle:o,children:t.jsx("div",{ref:l,className:s_(i,a),children:e})})}));var xge,_ge,Mge;wge.displayName="Collapsible",wge.Button=kge,wge.Panel=bge,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"}(xge||(xge={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(_ge||(_ge={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(Mge||(Mge={}));const jge=6048e5,Oge=Symbol.for("constructDateFrom");function Ege(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Oge in e?e[Oge](t):e instanceof Date?new e.constructor(t):new Date(t)}function zge(e,t){return Ege(t||e,e)}function Cge(e,t,r){const n=zge(e,r?.in);return isNaN(t)?Ege(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Pge(e,t,r){const n=zge(e,r?.in);if(isNaN(t))return Ege(e,NaN);if(!t)return n;const a=n.getDate(),o=Ege(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return a>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}let Rge={};function Age(){return Rge}function Lge(e,t){const r=Age(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zge(e,t?.in),o=a.getDay(),l=(o<n?7:0)+o-n;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function Ige(e,t){return Lge(e,{...t,weekStartsOn:1})}function Vge(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=Ege(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=Ige(a),l=Ege(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const i=Ige(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function Hge(e){const t=zge(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Sge(e,...t){const r=Ege.bind(null,t.find((e=>"object"==typeof e)));return t.map(r)}function Zge(e,t){const r=zge(e,t?.in);return r.setHours(0,0,0,0),r}function Nge(e,t,r){const[n,a]=Sge(0,e,t),o=Zge(n),l=Zge(a),i=+o-Hge(o),s=+l-Hge(l);return Math.round((i-s)/864e5)}function qge(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Dge(e,t){const r=zge(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Bge(e,t){const r=Age(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zge(e,t?.in),o=a.getDay(),l=6+(o<n?-7:0)-(o-n);return a.setDate(a.getDate()+l),a.setHours(23,59,59,999),a}const Fge={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"}};function Tge(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Wge={date:Tge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tge({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Tge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Uge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gge(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const $ge={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gge({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gge({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gge({values:{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"]},defaultWidth:"wide"}),day:Gge({values:{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"]},defaultWidth:"wide"}),dayPeriod:Gge({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function Yge(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,(e=>e.test(l))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,(e=>e.test(l)));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(l.length)}}}const Kge={ordinalNumber:(Xge={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Xge.matchPattern);if(!r)return null;const n=r[0],a=e.match(Xge.parsePattern);if(!a)return null;let o=Xge.valueCallback?Xge.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Yge({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:Yge({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:Yge({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};var Xge;const Qge={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=Fge[e];return n="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Wge,formatRelative:(e,t,r,n)=>Uge[e],localize:$ge,match:Kge,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jge(e,t){const r=zge(e,t?.in),n=+Ige(r)-+function(e,t){const r=Vge(e,t),n=Ege(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ige(n)}(r);return Math.round(n/jge)+1}function eke(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=Age(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=Ege(t?.in||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=Lge(l,t),s=Ege(t?.in||e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=Lge(s,t);return+r>=+i?n+1:+r>=+c?n:n-1}function tke(e,t){const r=zge(e,t?.in),n=+Lge(r,t)-+function(e,t){const r=Age(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=eke(e,t),o=Ege(t?.in||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),Lge(o,t)}(r,t);return Math.round(n/jge)+1}function rke(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const nke={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return rke("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):rke(r+1,2)},d:(e,t)=>rke(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>rke(e.getHours()%12||12,t.length),H:(e,t)=>rke(e.getHours(),t.length),m:(e,t)=>rke(e.getMinutes(),t.length),s:(e,t)=>rke(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return rke(Math.trunc(n*Math.pow(10,r-3)),t.length)}},ake="midnight",oke="noon",lke="morning",ike="afternoon",ske="evening",cke="night",dke={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return nke.y(e,t)},Y:function(e,t,r,n){const a=eke(e,n),o=a>0?a:1-a;if("YY"===t){return rke(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):rke(o,t.length)},R:function(e,t){return rke(Vge(e),t.length)},u:function(e,t){return rke(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return rke(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return rke(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return nke.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return rke(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=tke(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):rke(a,t.length)},I:function(e,t,r){const n=Jge(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):rke(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):nke.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=zge(e,t?.in);return Nge(r,Dge(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):rke(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rke(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rke(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return rke(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(a=12===n?oke:0===n?ake:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(a=n>=17?ske:n>=12?ike:n>=4?lke:cke,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return nke.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):nke.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):rke(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):rke(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):nke.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):nke.s(e,t)},S:function(e,t){return nke.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return hke(n);case"XXXX":case"XX":return pke(n);default:return pke(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return hke(n);case"xxxx":case"xx":return pke(n);default:return pke(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uke(n,":");default:return"GMT"+pke(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uke(n,":");default:return"GMT"+pke(n,":")}},t:function(e,t,r){return rke(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return rke(+e,t.length)}};function uke(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return 0===o?r+String(a):r+String(a)+t+rke(o,2)}function hke(e,t){if(e%60==0){return(e>0?"-":"+")+rke(Math.abs(e)/60,2)}return pke(e,t)}function pke(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+rke(Math.trunc(n/60),2)+t+rke(n%60,2)}const fke=(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"})}},vke=(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"})}},mke={p:vke,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return fke(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",fke(n,t)).replace("{{time}}",vke(a,t))}},yke=/^D+$/,gke=/^Y+$/,kke=["D","DD","YY","YYYY"];const bke=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wke=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xke=/^'([^]*?)'?$/,_ke=/''/g,Mke=/[a-zA-Z]/;function jke(e,t,r){const n=Age(),a=r?.locale??n.locale??Qge,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zge(e,r?.in);if(!function(e){return!(!qge(e)&&"number"!=typeof e||isNaN(+zge(e)))}(i))throw new RangeError("Invalid time value");let s=t.match(wke).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,mke[t])(e,a.formatLong)}return e})).join("").match(bke).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Oke(e)};if(dke[t])return{isToken:!0,value:e};if(t.match(Mke))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(s=a.localize.preprocessor(i,s));const c={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return s.map((n=>{if(!n.isToken)return n.value;const o=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return gke.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return yke.test(e)}(o))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),kke.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,dke[o[0]])(i,o,a.localize,c)})).join("")}function Oke(e){const t=e.match(xke);return t?t[1].replace(_ke,"'"):e}function Eke(e,t,r){const n=zge(e,r?.in),a=n.getFullYear(),o=n.getDate(),l=Ege(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const i=function(e,t){const r=zge(e,t?.in),n=r.getFullYear(),a=r.getMonth(),o=Ege(r,0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}(l);return n.setMonth(t,Math.min(o,i)),n}function zke(e,t){const r=t.startOfMonth(e),n=r.getDay();return 1===n?r:0===n?t.addDays(r,-6):t.addDays(r,-1*(n-1))}class Cke{constructor(e,t){this.Date=Date,this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Cge(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Pge(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,r){return Cge(e,7*t,r)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,r){return Pge(e,12*t,r)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Nge(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t){const[r,n]=Sge(0,e,t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(e,t),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const r=zke(e,t),n=function(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,a=t.addDays(e,1-n),o=t.addDays(a,34);return e.getMonth()===o.getMonth()?5:4}(e,t);return t.addDays(r,7*n-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return Bge(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const r=zge(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):Bge(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const r=zge(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}(e),this.format=(e,t)=>this.overrides?.format?this.overrides.format(e,t,this.options):jke(e,t,this.options),this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Jge(e),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):tke(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+zge(e)>+zge(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+zge(e)<+zge(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):qge(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[r,n]=Sge(0,e,t);return+Zge(r)==+Zge(n)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[r,n]=Sge(0,e,t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t){const[r,n]=Sge(0,e,t);return r.getFullYear()===n.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=Ege.bind(null,e));const t=zge(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),Ege(n,r||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=Ege.bind(null,e));const t=zge(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),Ege(n,r||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Eke(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,r){const n=zge(e,r?.in);return isNaN(+n)?Ege(e,NaN):(n.setFullYear(t),n)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):zke(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Zge(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Ige(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const r=zge(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Lge(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Dge(e),this.options={locale:Qge,...e},this.overrides=t}}const Pke=new Cke;const Rke=e.createContext(void 0);function Ake(){const t=e.useContext(Rke);if(void 0===t)throw new Error("useDayPicker() must be used within a custom component.");return t}var Lke=Object.freeze({__proto__:null,Button:function(t){return e.createElement("button",{...t})},CaptionLabel:function(t){return e.createElement("span",{...t})},Chevron:function(t){const{size:r=24,orientation:n="left",className:a}=t;return e.createElement("svg",{className:a,width:r,height:r,viewBox:"0 0 24 24"},"up"===n&&e.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&e.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&e.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&e.createElement("polygon",{points:"8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5"}))},Day:function(t){const{day:r,modifiers:n,...a}=t;return e.createElement("td",{...a})},DayButton:function(t){const{day:r,modifiers:n,...a}=t,o=e.useRef(null);return e.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),e.createElement("button",{ref:o,...a})},Dropdown:function(t){const{options:r,className:n,components:a,classNames:o,...l}=t,i=[o[xge.Dropdown],n].join(" "),s=r?.find((({value:e})=>e===l.value));return e.createElement("span",{"data-disabled":l.disabled,className:o[xge.DropdownRoot]},e.createElement(a.Select,{className:i,...l},r?.map((({value:t,label:r,disabled:n})=>e.createElement(a.Option,{key:t,value:t,disabled:n},r)))),e.createElement("span",{className:o[xge.CaptionLabel],"aria-hidden":!0},s?.label,e.createElement(a.Chevron,{orientation:"down",size:18,className:o[xge.Chevron]})))},DropdownNav:function(t){return e.createElement("div",{...t})},Footer:function(t){return e.createElement("div",{...t})},Month:function(t){const{calendarMonth:r,displayIndex:n,...a}=t;return e.createElement("div",{...a},t.children)},MonthCaption:function(t){const{calendarMonth:r,displayIndex:n,...a}=t;return e.createElement("div",{...a})},MonthGrid:function(t){return e.createElement("table",{...t})},Months:function(t){return e.createElement("div",{...t})},MonthsDropdown:function(t){const{components:r}=Ake();return e.createElement(r.Dropdown,{...t})},Nav:function(t){const{onPreviousClick:r,onNextClick:n,previousMonth:a,nextMonth:o,...l}=t,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:d}}=Ake();return e.createElement("nav",{...l},e.createElement(i.PreviousMonthButton,{type:"button",className:s[xge.PreviousMonthButton],tabIndex:a?void 0:-1,disabled:!a||void 0,"aria-label":c(a),onClick:t.onPreviousClick},e.createElement(i.Chevron,{disabled:!a||void 0,className:s[xge.Chevron],orientation:"left"})),e.createElement(i.NextMonthButton,{type:"button",className:s[xge.NextMonthButton],tabIndex:o?void 0:-1,disabled:!o||void 0,"aria-label":d(o),onClick:t.onNextClick},e.createElement(i.Chevron,{disabled:!o||void 0,orientation:"right",className:s[xge.Chevron]})))},NextMonthButton:function(t){const{components:r}=Ake();return e.createElement(r.Button,{...t})},Option:function(t){return e.createElement("option",{...t})},PreviousMonthButton:function(t){const{components:r}=Ake();return e.createElement(r.Button,{...t})},Root:function(t){return e.createElement("div",{...t})},Select:function(t){return e.createElement("select",{...t})},Week:function(t){const{week:r,...n}=t;return e.createElement("tr",{...n})},WeekNumber:function(t){const{week:r,...n}=t;return e.createElement("th",{...n})},WeekNumberHeader:function(t){return e.createElement("th",{...t})},Weekday:function(t){return e.createElement("th",{...t})},Weekdays:function(t){return e.createElement("thead",{"aria-hidden":!0},e.createElement("tr",{...t}))},Weeks:function(t){return e.createElement("tbody",{...t})},YearsDropdown:function(t){const{components:r}=Ake();return e.createElement(r.Dropdown,{...t})}});function Ike(e){return{...Lke,...e}}function Vke(){const e={};for(const t in xge)e[xge[t]]=`rdp-${xge[t]}`;for(const t in _ge)e[_ge[t]]=`rdp-${_ge[t]}`;for(const t in Mge)e[Mge[t]]=`rdp-${Mge[t]}`;return e}function Hke(e,t,r){return(r??new Cke(t)).format(e,"LLLL y")}const Ske=Hke;function Zke(e){return e.toString()}const Nke=Zke;var qke=Object.freeze({__proto__:null,formatCaption:Hke,formatDay:function(e,t,r){return(r??new Cke(t)).format(e,"d")},formatMonthCaption:Ske,formatMonthDropdown:function(e,t){return t.localize?.month(e)},formatWeekNumber:function(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`},formatWeekNumberHeader:function(){return""},formatWeekdayName:function(e,t,r){return(r??new Cke(t)).format(e,"cccccc")},formatYearCaption:Nke,formatYearDropdown:Zke});const Dke={},Bke={};function Fke(e,t){try{const r=(Dke[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in Bke?Bke[r]:Wke(r,r.split(":"))}catch{if(e in Bke)return Bke[e];const t=e?.match(Tke);return t?Wke(e,t.slice(1)):NaN}}const Tke=/([+-]\d\d):?(\d\d)?/;function Wke(e,t){const r=+t[0],n=+(t[1]||0);return Bke[e]=r>0?60*r+n:60*r-n}class Uke extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Fke(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Yke(this),$ke(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Uke(...t,e):new Uke(Date.now(),e)}withTimeZone(e){return new Uke(+this,e)}getTimezoneOffset(){return-Fke(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),$ke(this),+this}[Symbol.for("constructDateFrom")](e){return new Uke(+new Date(e),this.timeZone)}}const Gke=/^(get|set)(?!UTC)/;function $ke(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Yke(e){const t=Fke(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),a=n- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=n-t;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const i=Fke(e.timeZone,e),s=-new Date(+e).getTimezoneOffset()-i-l;if(i!==t&&s){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const t=i-Fke(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Gke.test(e))return;const t=e.replace(Gke,"$1UTC");Uke.prototype[t]&&(e.startsWith("get")?Uke.prototype[e]=function(){return this.internal[t]()}:(Uke.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,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()),Yke(e),+this},Uke.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$ke(this),+this}))}));class Kke extends Uke{static tz(e,...t){return t.length?new Kke(...t,e):new Kke(Date.now(),e)}toISOString(){const[e,t,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${a=this.timeZone,o=this,new Intl.DateTimeFormat("en-GB",{timeZone:a,timeZoneName:"long"}).format(o).slice(12)})`;var a,o}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new Kke(+this,e)}[Symbol.for("constructDateFrom")](e){return new Kke(+new Date(e),this.timeZone)}}function Xke(e,t,r){return(r??new Cke(t)).format(e,"LLLL y")}const Qke=Xke;function Jke(e,t,r,n){let a=(n??new Cke(r)).format(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a}const ebe=Jke;var tbe=Object.freeze({__proto__:null,labelCaption:Qke,labelDay:ebe,labelDayButton:Jke,labelGrid:Xke,labelGridcell:function(e,t,r,n){let a=(n??new Cke(r)).format(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelMonthDropdown:function(e){return"Choose the Month"},labelNav:function(){return""},labelNext:function(e){return"Go to the Next Month"},labelPrevious:function(e){return"Go to the Previous Month"},labelWeekNumber:function(e,t){return`Week ${e}`},labelWeekNumberHeader:function(e){return"Week Number"},labelWeekday:function(e,t,r){return(r??new Cke(t)).format(e,"cccc")},labelYearDropdown:function(e){return"Choose the Year"}});function rbe(e,t){const{month:r,defaultMonth:n,today:a=(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date),numberOfMonths:o=1,endMonth:l,startMonth:i}=e;let s=r||n||a;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:u}=t;if(l&&c(l,s)<0){s=d(l,-1*(o-1))}return i&&c(s,i)<0&&(s=i),u(s)}class nbe{constructor(e,t,r=Pke){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!r.isSameMonth(e,t)),this.dateLib=r}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class abe{constructor(e,t){this.date=e,this.weeks=t}}class obe{constructor(e,t){this.days=t,this.weekNumber=e}}function lbe(t,r){const[n,a]=e.useState(t);return[void 0===r?n:r,a]}function ibe(t,r){const[n,a]=function(e,t){let{startMonth:r,endMonth:n}=e;const{startOfYear:a,startOfDay:o,startOfMonth:l,endOfMonth:i,addYears:s,endOfYear:c}=t,{fromYear:d,toYear:u,fromMonth:h,toMonth:p}=e;!r&&h&&(r=h),!r&&d&&(r=new Date(d,0,1)),!n&&p&&(n=p),!n&&u&&(n=new Date(u,11,31));const f=e.captionLayout?.startsWith("dropdown");r?r=l(r):d?r=new Date(d,0,1):!r&&f&&(r=a(s(e.today??(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date),-100)));n?n=i(n):u?n=new Date(u,11,31):!n&&f&&(n=c(e.today??(e.timeZone?Kke.tz(e.timeZone):t.Date?new t.Date:new Date)));return[r?o(r):r,n?o(n):n]}(t,r),{startOfMonth:o,endOfMonth:l}=r,i=rbe(t,r),[s,c]=lbe(i,t.month?o(t.month):void 0);e.useEffect((()=>{const e=rbe(t,r);c(e)}),[t.timeZone]);const d=function(e,t,r,n){const{numberOfMonths:a=1}=r,o=[];for(let r=0;r<a;r++){const a=n.addMonths(e,r);if(t&&a>t)break;o.push(a)}return o}(s,a,t,r),u=function(e,t,r,n){const a=e[0],o=e[e.length-1],{ISOWeek:l,fixedWeeks:i,broadcastCalendar:s}=r??{},{addDays:c,differenceInCalendarDays:d,differenceInCalendarMonths:u,endOfBroadcastWeek:h,endOfISOWeek:p,endOfMonth:f,endOfWeek:v,isAfter:m,startOfBroadcastWeek:y,startOfISOWeek:g,startOfWeek:k}=n,b=s?y(a,n):l?g(a):k(a),w=d(s?h(o,n):l?p(f(o)):v(f(o)),b),x=u(o,a)+1,_=[];for(let e=0;e<=w;e++){const r=c(b,e);if(t&&m(r,t))break;_.push(r)}const M=(s?35:42)*x;if(i&&_.length<M){const e=M-_.length;for(let t=0;t<e;t++){const e=c(_[_.length-1],1);_.push(e)}}return _}(d,t.endMonth?l(t.endMonth):void 0,t,r),h=function(e,t,r,n){const{addDays:a,endOfBroadcastWeek:o,endOfISOWeek:l,endOfMonth:i,endOfWeek:s,getISOWeek:c,getWeek:d,startOfBroadcastWeek:u,startOfISOWeek:h,startOfWeek:p}=n,f=e.reduce(((e,f)=>{const v=r.broadcastCalendar?u(f,n):r.ISOWeek?h(f):p(f),m=r.broadcastCalendar?o(f,n):r.ISOWeek?l(i(f)):s(i(f)),y=t.filter((e=>e>=v&&e<=m)),g=r.broadcastCalendar?35:42;if(r.fixedWeeks&&y.length<g){const e=t.filter((e=>{const t=g-y.length;return e>m&&e<=a(m,t)}));y.push(...e)}const k=y.reduce(((e,t)=>{const a=r.ISOWeek?c(t):d(t),o=e.find((e=>e.weekNumber===a)),l=new nbe(t,f,n);return o?o.days.push(l):e.push(new obe(a,[l])),e}),[]),b=new abe(f,k);return e.push(b),e}),[]);return r.reverseMonths?f.reverse():f}(d,u,t,r),p=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(h),f=h.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]);const v=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:o}=r,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:s}=n,c=a?o??1:1,d=l(e);return t&&s(d,t)<=0?void 0:i(d,-c)}(s,n,t,r),m=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:a,numberOfMonths:o=1}=r,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:s}=n,c=a?o:1,d=l(e);return t&&s(t,e)<o?void 0:i(d,c)}(s,a,t,r),{disableNavigation:y,onMonthChange:g}=t,k=e=>{if(y)return;let t=o(e);n&&t<o(n)&&(t=o(n)),a&&t>o(a)&&(t=o(a)),c(t),g?.(t)};return{months:h,weeks:p,days:f,navStart:n,navEnd:a,previousMonth:v,nextMonth:m,goToMonth:k,goToDay:e=>{(e=>p.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||k(e.date)}}}function sbe(e,t,r=!1,n=Pke){let{from:a,to:o}=e;const{differenceInCalendarDays:l,isSameDay:i}=n;if(a&&o){l(o,a)<0&&([a,o]=[o,a]);return l(t,a)>=(r?1:0)&&l(o,t)>=(r?1:0)}return!r&&o?i(o,t):!(r||!a)&&i(a,t)}function cbe(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function dbe(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function ube(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function hbe(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function pbe(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function fbe(e,t){return Array.isArray(e)&&e.every(t.isDate)}function vbe(e,t,r=Pke){const n=Array.isArray(t)?t:[t],{isSameDay:a,differenceInCalendarDays:o,isAfter:l}=r;return n.some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return a(e,t);if(fbe(t,r))return t.includes(e);if(dbe(t))return sbe(t,e,!1,r);if(pbe(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(cbe(t)){const r=o(t.before,e)>0,n=o(t.after,e)<0;return l(t.before,t.after)?n&&r:r||n}return ube(t)?o(e,t.after)>0:hbe(t)?o(t.before,e)>0:"function"==typeof t&&t(e)}))}function mbe(e,t,r,n,a,o,l,i=0){if(i>365)return;const s=function(e,t,r,n,a,o,l){const{ISOWeek:i,broadcastCalendar:s}=o,{addDays:c,addMonths:d,addWeeks:u,addYears:h,endOfBroadcastWeek:p,endOfISOWeek:f,endOfWeek:v,max:m,min:y,startOfBroadcastWeek:g,startOfISOWeek:k,startOfWeek:b}=l;let w={day:c,week:u,month:d,year:h,startOfWeek:e=>s?g(e,l):i?k(e):b(e),endOfWeek:e=>s?p(e,l):i?f(e):v(e)}[e](r,"after"===t?1:-1);return"before"===t&&n?w=m([n,w]):"after"===t&&a&&(w=y([a,w])),w}(e,t,r.date,n,a,o,l),c=Boolean(o.disabled&&vbe(s,o.disabled,l)),d=Boolean(o.hidden&&vbe(s,o.hidden,l)),u=new nbe(s,s,l);return c||d?mbe(e,t,u,n,a,o,l,i+1):u}function ybe(t,r,n,a,o){const{autoFocus:l}=t,[i,s]=e.useState(),c=function(e,t,r,n){let a,o=0,l=!1;for(;o<e.length&&!l;){const i=e[o],s=t(i);s[_ge.disabled]||s[_ge.hidden]||s[_ge.outside]||(s[_ge.focused]||n?.isEqualTo(i)||r(i.date)||s[_ge.today])&&(a=i,l=!0),o++}return a||(a=e.find((e=>{const r=t(e);return!r[_ge.disabled]&&!r[_ge.hidden]&&!r[_ge.outside]}))),a}(r.days,n,a||(()=>!1),i),[d,u]=e.useState(l?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{s(d),u(void 0)},moveFocus:(e,n)=>{if(!d)return;const a=mbe(e,n,d,r.navStart,r.navEnd,t,o);a&&(r.goToDay(a),u(a))}}}function gbe(e,t,r=Pke){return sbe(e,t.from,!1,r)||sbe(e,t.to,!1,r)||sbe(t,e.from,!1,r)||sbe(t,e.to,!1,r)}function kbe(e,t,r=Pke){const n=Array.isArray(t)?t:[t],a=n.filter((e=>"function"!=typeof e)).some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return sbe(e,t,!1,r);if(fbe(t,r))return t.some((t=>sbe(e,t,!1,r)));if(dbe(t))return!(!t.from||!t.to)&&gbe(e,{from:t.from,to:t.to},r);if(pbe(t))return function(e,t,r=Pke){const n=Array.isArray(t)?t:[t];let a=e.from;const o=r.differenceInCalendarDays(e.to,e.from),l=Math.min(o,6);for(let e=0;e<=l;e++){if(n.includes(a.getDay()))return!0;a=r.addDays(a,1)}return!1}(e,t.dayOfWeek,r);if(cbe(t)){return r.isAfter(t.before,t.after)?gbe(e,{from:r.addDays(t.after,1),to:r.addDays(t.before,-1)},r):vbe(e.from,t,r)||vbe(e.to,t,r)}return!(!ube(t)&&!hbe(t))&&(vbe(e.from,t,r)||vbe(e.to,t,r))}));if(a)return!0;const o=n.filter((e=>"function"==typeof e));if(o.length){let t=e.from;const n=r.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=n;e++){if(o.some((e=>e(t))))return!0;t=r.addDays(t,1)}}return!1}function bbe(e,t){const{disabled:r,excludeDisabled:n,selected:a,required:o,onSelect:l}=e,[i,s]=lbe(a,l?a:void 0),c=l?a:i;return{selected:c,select:(a,i,d)=>{const{min:u,max:h}=e,p=a?function(e,t,r=0,n=0,a=!1,o=Pke){const{from:l,to:i}=t||{},{isSameDay:s,isAfter:c,isBefore:d}=o;let u;if(l||i){if(l&&!i)u=s(l,e)?a?{from:l,to:void 0}:void 0:d(e,l)?{from:e,to:l}:{from:l,to:e};else if(l&&i)if(s(l,e)&&s(i,e))u=a?{from:l,to:i}:void 0;else if(s(l,e))u={from:l,to:r>0?void 0:e};else if(s(i,e))u={from:e,to:r>0?void 0:e};else if(d(e,l))u={from:e,to:i};else if(c(e,l))u={from:l,to:e};else{if(!c(e,i))throw new Error("Invalid range");u={from:l,to:e}}}else u={from:e,to:r>0?void 0:e};if(u?.from&&u?.to){const t=o.differenceInCalendarDays(u.to,u.from);(n>0&&t>n||r>1&&t<r)&&(u={from:e,to:void 0})}return u}(a,c,u,h,o,t):void 0;return n&&r&&p?.from&&p.to&&kbe({from:p.from,to:p.to},r,t)&&(p.from=a,p.to=void 0),l||s(p),l?.(p,a,i,d),p},isSelected:e=>c&&sbe(c,e,!1,t)}}function wbe(e,t){const r=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=lbe(r,a?r:void 0),i=a?r:o,{isSameDay:s}=t;return{selected:i,select:(e,t,r)=>{let o=e;return!n&&i&&i&&s(e,i)&&(o=void 0),a||l(o),a?.(o,e,t,r),o},isSelected:e=>!!i&&s(i,e)}}(e,t),n=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=lbe(r,a?r:void 0),i=a?r:o,{isSameDay:s}=t,c=e=>i?.some((t=>s(t,e)))??!1,{min:d,max:u}=e;return{selected:i,select:(e,t,r)=>{let o=[...i??[]];if(c(e)){if(i?.length===d)return;if(n&&1===i?.length)return;o=i?.filter((t=>!s(t,e)))}else o=i?.length===u?[e]:[...o,e];return a||l(o),a?.(o,e,t,r),o},isSelected:c}}(e,t),a=bbe(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return a;default:return}}function xbe(t){const{components:r,formatters:n,labels:a,dateLib:o,locale:l,classNames:i}=e.useMemo((()=>{const e={...Qge,...t.locale};return{dateLib:new Cke({locale:e,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens},t.dateLib),components:Ike(t.components),formatters:(r=t.formatters,r?.formatMonthCaption&&!r.formatCaption&&(r.formatCaption=r.formatMonthCaption),r?.formatYearCaption&&!r.formatYearDropdown&&(r.formatYearDropdown=r.formatYearCaption),{...qke,...r}),labels:{...tbe,...t.labels},locale:e,classNames:{...Vke(),...t.classNames}};var r}),[t.classNames,t.components,t.dateLib,t.firstWeekContainsDate,t.formatters,t.labels,t.locale,t.useAdditionalDayOfYearTokens,t.useAdditionalWeekYearTokens,t.weekStartsOn,t.broadcastCalendar]),{captionLayout:s,mode:c,onDayBlur:d,onDayClick:u,onDayFocus:h,onDayKeyDown:p,onDayMouseEnter:f,onDayMouseLeave:v,onNextClick:m,onPrevClick:y,showWeekNumber:g,styles:k}=t,{formatCaption:b,formatDay:w,formatMonthDropdown:x,formatWeekNumber:_,formatWeekNumberHeader:M,formatWeekdayName:j,formatYearDropdown:O}=n,E=ibe(t,o),{days:z,months:C,navStart:P,navEnd:R,previousMonth:A,nextMonth:L,goToMonth:I}=E,V=function(e,t,r){const{disabled:n,hidden:a,modifiers:o,showOutsideDays:l,broadcastCalendar:i,today:s}=t,{isSameDay:c,isSameMonth:d,startOfMonth:u,isBefore:h,endOfMonth:p,isAfter:f}=r,v=t.startMonth&&u(t.startMonth),m=t.endMonth&&p(t.endMonth),y={[_ge.focused]:[],[_ge.outside]:[],[_ge.disabled]:[],[_ge.hidden]:[],[_ge.today]:[]},g={};for(const u of e){const{date:e,displayMonth:p}=u,k=Boolean(p&&!d(e,p)),b=Boolean(v&&h(e,v)),w=Boolean(m&&f(e,m)),x=Boolean(n&&vbe(e,n,r)),_=Boolean(a&&vbe(e,a,r))||b||w||!i&&!l&&k||i&&!1===l&&k,M=c(e,s??(t.timeZone?Kke.tz(t.timeZone):r.Date?new r.Date:new Date));k&&y.outside.push(u),x&&y.disabled.push(u),_&&y.hidden.push(u),M&&y.today.push(u),o&&Object.keys(o).forEach((t=>{const n=o?.[t];n&&vbe(e,n,r)&&(g[t]?g[t].push(u):g[t]=[u])}))}return e=>{const t={[_ge.focused]:!1,[_ge.disabled]:!1,[_ge.hidden]:!1,[_ge.outside]:!1,[_ge.today]:!1},r={};for(const r in y){const n=y[r];t[r]=n.some((t=>t===e))}for(const t in g)r[t]=g[t].some((t=>t===e));return{...t,...r}}}(z,t,o),{isSelected:H,select:S,selected:Z}=wbe(t,o)??{},{blur:N,focused:q,isFocusTarget:D,moveFocus:B,setFocused:F}=ybe(t,E,V,H??(()=>!1),o),{labelDayButton:T,labelGridcell:W,labelGrid:U,labelMonthDropdown:G,labelNav:$,labelWeekday:Y,labelWeekNumber:K,labelWeekNumberHeader:X,labelYearDropdown:Q}=a,J=e.useMemo((()=>function(e,t,r){const n=r?Kke.tz(r):e.Date?new e.Date:new Date,a=t?e.startOfISOWeek(n):e.startOfWeek(n),o=[];for(let t=0;t<7;t++){const r=e.addDays(a,t);o.push(r)}return o}(o,t.ISOWeek,t.timeZone)),[o,t.ISOWeek,t.timeZone]),ee=void 0!==c||void 0!==u,te=e.useCallback((()=>{A&&(I(A),y?.(A))}),[A,I,y]),re=e.useCallback((()=>{L&&(I(L),m?.(L))}),[I,L,m]),ne=e.useCallback(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),F(e),S?.(e.date,t,r),u?.(e.date,t,r)}),[S,u,F]),ae=e.useCallback(((e,t)=>r=>{F(e),h?.(e.date,t,r)}),[h,F]),oe=e.useCallback(((e,t)=>r=>{N(),d?.(e.date,t,r)}),[N,d]),le=e.useCallback(((e,r)=>n=>{const a={ArrowLeft:["day","rtl"===t.dir?"after":"before"],ArrowRight:["day","rtl"===t.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(a[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=a[n.key];B(e,t)}p?.(e.date,r,n)}),[B,p,t.dir]),ie=e.useCallback(((e,t)=>r=>{f?.(e.date,t,r)}),[f]),se=e.useCallback(((e,t)=>r=>{v?.(e.date,t,r)}),[v]),ce=e.useCallback((e=>t=>{const r=Number(t.target.value),n=o.setMonth(o.startOfMonth(e),r);I(n)}),[o,I]),de=e.useCallback((e=>t=>{const r=Number(t.target.value),n=o.setYear(o.startOfMonth(e),r);I(n)}),[o,I]),{className:ue,style:he}=e.useMemo((()=>({className:[i[xge.Root],t.className].filter(Boolean).join(" "),style:{...k?.[xge.Root],...t.style}})),[i,t.className,t.style,k]),pe=function(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};return Object.entries(e).forEach((([e,r])=>{e.startsWith("data-")&&(t[e]=r)})),t}(t),fe={dayPickerProps:t,selected:Z,select:S,isSelected:H,months:C,nextMonth:L,previousMonth:A,goToMonth:I,getModifiers:V,components:r,classNames:i,styles:k,labels:a,formatters:n};return e.createElement(Rke.Provider,{value:fe},e.createElement(r.Root,{className:ue,style:he,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...pe},e.createElement(r.Months,{className:i[xge.Months],style:k?.[xge.Months]},!t.hideNavigation&&e.createElement(r.Nav,{className:i[xge.Nav],style:k?.[xge.Nav],"aria-label":$(),onPreviousClick:te,onNextClick:re,previousMonth:A,nextMonth:L}),C.map(((a,d)=>{const u=function(e,t,r,n,a){if(!t)return;if(!r)return;const{addMonths:o,startOfMonth:l}=a,i=e.getFullYear(),s=[];let c=t;for(;s.length<12;)s.push(c.getMonth()),c=o(c,1);const d=s.sort(((e,t)=>e-t)).map((e=>{const o=n.formatMonthDropdown(e,a.options.locale??Qge),s=a.Date?new a.Date(i,e):new Date(i,e);return{value:e,label:o,disabled:t&&s<l(t)||r&&s>l(r)||!1}}));return d}(a.date,P,R,n,o),h=function(e,t,r,n){if(!e)return;if(!t)return;const{startOfYear:a,endOfYear:o,addYears:l,isBefore:i,isSameYear:s}=n,c=a(e),d=o(t),u=[];let h=c;for(;i(h,d)||s(h,d);)u.push(h.getFullYear()),h=l(h,1);return u.map((e=>({value:e,label:r.formatYearDropdown(e),disabled:!1})))}(P,R,n,o);return e.createElement(r.Month,{className:i[xge.Month],style:k?.[xge.Month],key:d,displayIndex:d,calendarMonth:a},e.createElement(r.MonthCaption,{className:i[xge.MonthCaption],style:k?.[xge.MonthCaption],calendarMonth:a,displayIndex:d},s?.startsWith("dropdown")?e.createElement(r.DropdownNav,{className:i[xge.Dropdowns],style:k?.[xge.Dropdowns]},"dropdown"===s||"dropdown-months"===s?e.createElement(r.MonthsDropdown,{className:i[xge.MonthsDropdown],"aria-label":G(),classNames:i,components:r,disabled:Boolean(t.disableNavigation),onChange:ce(a.date),options:u,style:k?.[xge.Dropdown],value:a.date.getMonth()}):e.createElement("span",{role:"status","aria-live":"polite"},x(a.date.getMonth(),l)),"dropdown"===s||"dropdown-years"===s?e.createElement(r.YearsDropdown,{className:i[xge.YearsDropdown],"aria-label":Q(o.options),classNames:i,components:r,disabled:Boolean(t.disableNavigation),onChange:de(a.date),options:h,style:k?.[xge.Dropdown],value:a.date.getFullYear()}):e.createElement("span",{role:"status","aria-live":"polite"},O(a.date.getFullYear()))):e.createElement(r.CaptionLabel,{className:i[xge.CaptionLabel],role:"status","aria-live":"polite"},b(a.date,o.options,o))),e.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===c||"range"===c,"aria-label":U(a.date,o.options,o)||void 0,className:i[xge.MonthGrid],style:k?.[xge.MonthGrid]},!t.hideWeekdays&&e.createElement(r.Weekdays,{className:i[xge.Weekdays],style:k?.[xge.Weekdays]},g&&e.createElement(r.WeekNumberHeader,{"aria-label":X(o.options),className:i[xge.WeekNumberHeader],style:k?.[xge.WeekNumberHeader],scope:"col"},M()),J.map(((t,n)=>e.createElement(r.Weekday,{"aria-label":Y(t,o.options,o),className:i[xge.Weekday],key:n,style:k?.[xge.Weekday],scope:"col"},j(t,o.options,o))))),e.createElement(r.Weeks,{className:i[xge.Weeks],style:k?.[xge.Weeks]},a.weeks.map(((n,a)=>e.createElement(r.Week,{className:i[xge.Week],key:n.weekNumber,style:k?.[xge.Week],week:n},g&&e.createElement(r.WeekNumber,{week:n,style:k?.[xge.WeekNumber],"aria-label":K(n.weekNumber,{locale:l}),className:i[xge.WeekNumber],scope:"row",role:"rowheader"},_(n.weekNumber)),n.days.map((n=>{const{date:a}=n,l=V(n);if(l[_ge.focused]=!l.hidden&&Boolean(q?.isEqualTo(n)),l[Mge.selected]=!l.disabled&&(H?.(a)||l.selected),dbe(Z)){const{from:e,to:t}=Z;l[Mge.range_start]=Boolean(e&&t&&o.isSameDay(a,e)),l[Mge.range_end]=Boolean(e&&t&&o.isSameDay(a,t)),l[Mge.range_middle]=sbe(Z,a,!0,o)}const s=function(e,t={},r={}){let n={...t?.[xge.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{n={...n,...r?.[e]}})),n}(l,k,t.modifiersStyles),c=function(e,t,r={}){const n=Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[n])=>(r[n]?e.push(r[n]):t[_ge[n]]?e.push(t[_ge[n]]):t[Mge[n]]&&e.push(t[Mge[n]]),e)),[t[xge.Day]]);return n}(l,i,t.modifiersClassNames),d=ee||l.hidden?void 0:W(a,l,o.options,o);return e.createElement(r.Day,{key:`${o.format(a,"yyyy-MM-dd")}_${o.format(n.displayMonth,"yyyy-MM")}`,day:n,modifiers:l,className:c.join(" "),style:s,role:"gridcell","aria-selected":l.selected||void 0,"aria-label":d,"data-day":o.format(a,"yyyy-MM-dd"),"data-month":n.outside?o.format(a,"yyyy-MM"):void 0,"data-selected":l.selected||void 0,"data-disabled":l.disabled||void 0,"data-hidden":l.hidden||void 0,"data-outside":n.outside||void 0,"data-focused":l.focused||void 0,"data-today":l.today||void 0},!l.hidden&&ee?e.createElement(r.DayButton,{className:i[xge.DayButton],style:k?.[xge.DayButton],type:"button",day:n,modifiers:l,disabled:l.disabled||void 0,tabIndex:D(n)?0:-1,"aria-label":T(a,l,o.options,o),onClick:ne(n,l),onBlur:oe(n,l),onFocus:ae(n,l),onKeyDown:le(n,l),onMouseEnter:ie(n,l),onMouseLeave:se(n,l)},w(a,o.options,o)):!l.hidden&&w(n.date,o.options,o))}))))))))}))),t.footer&&e.createElement(r.Footer,{className:i[xge.Footer],style:k?.[xge.Footer],role:"status","aria-live":"polite"},t.footer)))}function _be(e){var{className:r,classNames:n,showOutsideDays:a=!0}=e,o=o_(e,["className","classNames","showOutsideDays"]);const l=Vke();return t.jsx(xbe,Object.assign({showOutsideDays:a,captionLayout:"dropdown-years"},o,{className:s_("bg-bg-bg1 text-common-black border-bg-bg1",r),classNames:Object.assign(Object.assign(Object.assign({},l),{day_button:s_(l.day_button,"size-9"),day:"typography-subtitle1 ",today:"text-bold text-common-black [&_button]:rounded-full [&_button]:!border-primary [&_button]:!border [&_button]:!border-solid",selected:"bg-primary !text-state-primary-text-solid rounded-full ",weekdays:"text-gray-400",month_caption:s_(l.month_caption,"h-[54px]"),outside:"text-gray-400",nav:s_(l.nav,"gap-6 absolute flex right-0"),chevron:"fill-primary",root:s_(l.root,"px-6 py-4"),caption_label:s_(l.caption_label,"gap-2 flex items-center"),months:"flex flex-col relative",disabled:"[&_button]:rounded-full [&_button]:!text-input-disable-text"}),n),styles:{caption_label:{zIndex:1,position:"relative",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",border:0},dropdown:{zIndex:2,opacity:0,WebkitAppearance:"none",MozAppearance:"none",appearance:"none",position:"absolute",insetBlockStart:0,insetBlockEnd:0,insetInlineStart:0,width:"100%",margin:0,padding:0,cursor:"inherit",border:"none",lineHeight:"inherit"},dropdowns:{position:"relative",display:"inline-flex",alignItems:"center",gap:4},dropdown_root:{position:"relative",display:"inline-flex",alignItems:"center"}}}))}_be.displayName="Calendar";var Mbe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function jbe(e,t=globalThis?.document){const r=fye(e);l.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}var Obe,Ebe="dismissableLayer.update",zbe="dismissableLayer.pointerDownOutside",Cbe="dismissableLayer.focusOutside",Pbe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rbe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(Pbe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){Lbe(zbe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){Lbe(Cbe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Obe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Abe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Obe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Abe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(Ebe,e),()=>document.removeEventListener(Ebe,e)}),[]),t.jsx(Mbe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));Rbe.displayName="DismissableLayer";function Abe(){const e=new CustomEvent(Ebe);document.dispatchEvent(e)}function Lbe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(Pbe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(Mbe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var Ibe=0;function Vbe(){l.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Hbe()),document.body.insertAdjacentElement("beforeend",e[1]??Hbe()),Ibe++,()=>{1===Ibe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Ibe--}}),[])}function Hbe(){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 Sbe="focusScope.autoFocusOnMount",Zbe="focusScope.autoFocusOnUnmount",Nbe={bubbles:!1,cancelable:!0},qbe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Tbe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Tbe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Tbe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){Wbe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(Sbe,Nbe);c.addEventListener(Sbe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Tbe(n,{select:t}),document.activeElement!==r)return}((e=Dbe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Tbe(c))}return()=>{c.removeEventListener(Sbe,u),setTimeout((()=>{const e=new CustomEvent(Zbe,Nbe);c.addEventListener(Zbe,h),c.dispatchEvent(e),e.defaultPrevented||Tbe(t??document.body,{select:!0}),c.removeEventListener(Zbe,h),Wbe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=Dbe(e),r=Bbe(t,e),n=Bbe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&Tbe(o,{select:!0})):(e.preventDefault(),n&&Tbe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(Mbe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function Dbe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bbe(e,t){for(const r of e)if(!Fbe(r,{upTo:t}))return r}function Fbe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Tbe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}qbe.displayName="FocusScope";var Wbe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ube(e,t),e.unshift(t)},remove(t){e=Ube(e,t),e[0]?.resume()}}}();function Ube(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Gbe=l["useId".toString()]||(()=>{}),$be=0;function Ybe(e){const[t,r]=l.useState(Gbe());return Jme((()=>{e||r((e=>e??String($be++)))}),[e]),e||(t?`radix-${t}`:"")}const Kbe=["top","right","bottom","left"],Xbe=Math.min,Qbe=Math.max,Jbe=Math.round,ewe=Math.floor,twe=e=>({x:e,y:e}),rwe={left:"right",right:"left",bottom:"top",top:"bottom"},nwe={start:"end",end:"start"};function awe(e,t,r){return Qbe(e,Xbe(t,r))}function owe(e,t){return"function"==typeof e?e(t):e}function lwe(e){return e.split("-")[0]}function iwe(e){return e.split("-")[1]}function swe(e){return"x"===e?"y":"x"}function cwe(e){return"y"===e?"height":"width"}function dwe(e){return["top","bottom"].includes(lwe(e))?"y":"x"}function uwe(e){return swe(dwe(e))}function hwe(e){return e.replace(/start|end/g,(e=>nwe[e]))}function pwe(e){return e.replace(/left|right|bottom|top/g,(e=>rwe[e]))}function fwe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vwe(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function mwe(e,t,r){let{reference:n,floating:a}=e;const o=dwe(t),l=uwe(t),i=cwe(l),s=lwe(t),c="y"===o,d=n.x+n.width/2-a.width/2,u=n.y+n.height/2-a.height/2,h=n[i]/2-a[i]/2;let p;switch(s){case"top":p={x:d,y:n.y-a.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:u};break;case"left":p={x:n.x-a.width,y:u};break;default:p={x:n.x,y:n.y}}switch(iwe(t)){case"start":p[l]-=h*(r&&c?-1:1);break;case"end":p[l]+=h*(r&&c?-1:1)}return p}async function ywe(e,t){var r;void 0===t&&(t={});const{x:n,y:a,platform:o,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=owe(t,e),f=fwe(p),v=i[h?"floating"===u?"reference":"floating":u],m=vwe(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:s})),y="floating"===u?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,g=await(null==o.getOffsetParent?void 0:o.getOffsetParent(i.floating)),k=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},b=vwe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-b.top+f.top)/k.y,bottom:(b.bottom-m.bottom+f.bottom)/k.y,left:(m.left-b.left+f.left)/k.x,right:(b.right-m.right+f.right)/k.x}}function gwe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kwe(e){return Kbe.some((t=>e[t]>=0))}function bwe(){return"undefined"!=typeof window}function wwe(e){return Mwe(e)?(e.nodeName||"").toLowerCase():"#document"}function xwe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _we(e){var t;return null==(t=(Mwe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Mwe(e){return!!bwe()&&(e instanceof Node||e instanceof xwe(e).Node)}function jwe(e){return!!bwe()&&(e instanceof Element||e instanceof xwe(e).Element)}function Owe(e){return!!bwe()&&(e instanceof HTMLElement||e instanceof xwe(e).HTMLElement)}function Ewe(e){return!(!bwe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xwe(e).ShadowRoot)}function zwe(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Iwe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Cwe(e){return["table","td","th"].includes(wwe(e))}function Pwe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Rwe(e){const t=Awe(),r=jwe(e)?Iwe(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Awe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lwe(e){return["html","body","#document"].includes(wwe(e))}function Iwe(e){return xwe(e).getComputedStyle(e)}function Vwe(e){return jwe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hwe(e){if("html"===wwe(e))return e;const t=e.assignedSlot||e.parentNode||Ewe(e)&&e.host||_we(e);return Ewe(t)?t.host:t}function Swe(e){const t=Hwe(e);return Lwe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Owe(t)&&zwe(t)?t:Swe(t)}function Zwe(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=Swe(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),l=xwe(a);if(o){const e=Nwe(l);return t.concat(l,l.visualViewport||[],zwe(a)?a:[],e&&r?Zwe(e):[])}return t.concat(a,Zwe(a,[],r))}function Nwe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qwe(e){const t=Iwe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Owe(e),o=a?e.offsetWidth:r,l=a?e.offsetHeight:n,i=Jbe(r)!==o||Jbe(n)!==l;return i&&(r=o,n=l),{width:r,height:n,$:i}}function Dwe(e){return jwe(e)?e:e.contextElement}function Bwe(e){const t=Dwe(e);if(!Owe(t))return twe(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=qwe(t);let l=(o?Jbe(r.width):r.width)/n,i=(o?Jbe(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const Fwe=twe(0);function Twe(e){const t=xwe(e);return Awe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fwe}function Wwe(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=Dwe(e);let l=twe(1);t&&(n?jwe(n)&&(l=Bwe(n)):l=Bwe(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==xwe(e))&&t}(o,r,n)?Twe(o):twe(0);let s=(a.left+i.x)/l.x,c=(a.top+i.y)/l.y,d=a.width/l.x,u=a.height/l.y;if(o){const e=xwe(o),t=n&&jwe(n)?xwe(n):n;let r=e,a=Nwe(r);for(;a&&n&&t!==r;){const e=Bwe(a),t=a.getBoundingClientRect(),n=Iwe(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=o,c+=l,r=xwe(a),a=Nwe(r)}}return vwe({width:d,height:u,x:s,y:c})}function Uwe(e,t){const r=Vwe(e).scrollLeft;return t?t.left+r:Wwe(_we(e)).left+r}function Gwe(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Uwe(e,n)),y:n.top+t.scrollTop}}function $we(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=xwe(e),n=_we(e),a=r.visualViewport;let o=n.clientWidth,l=n.clientHeight,i=0,s=0;if(a){o=a.width,l=a.height;const e=Awe();(!e||e&&"fixed"===t)&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:l,x:i,y:s}}(e,r);else if("document"===t)n=function(e){const t=_we(e),r=Vwe(e),n=e.ownerDocument.body,a=Qbe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Qbe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Uwe(e);const i=-r.scrollTop;return"rtl"===Iwe(n).direction&&(l+=Qbe(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:i}}(_we(e));else if(jwe(t))n=function(e,t){const r=Wwe(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=Owe(e)?Bwe(e):twe(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:n*o.y}}(t,r);else{const r=Twe(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return vwe(n)}function Ywe(e,t){const r=Hwe(e);return!(r===t||!jwe(r)||Lwe(r))&&("fixed"===Iwe(r).position||Ywe(r,t))}function Kwe(e,t,r){const n=Owe(t),a=_we(t),o="fixed"===r,l=Wwe(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const s=twe(0);if(n||!n&&!o)if(("body"!==wwe(t)||zwe(a))&&(i=Vwe(t)),n){const e=Wwe(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=Uwe(a));const c=!a||n||o?twe(0):Gwe(a,i);return{x:l.left+i.scrollLeft-s.x-c.x,y:l.top+i.scrollTop-s.y-c.y,width:l.width,height:l.height}}function Xwe(e){return"static"===Iwe(e).position}function Qwe(e,t){if(!Owe(e)||"fixed"===Iwe(e).position)return null;if(t)return t(e);let r=e.offsetParent;return _we(e)===r&&(r=r.ownerDocument.body),r}function Jwe(e,t){const r=xwe(e);if(Pwe(e))return r;if(!Owe(e)){let t=Hwe(e);for(;t&&!Lwe(t);){if(jwe(t)&&!Xwe(t))return t;t=Hwe(t)}return r}let n=Qwe(e,t);for(;n&&Cwe(n)&&Xwe(n);)n=Qwe(n,t);return n&&Lwe(n)&&Xwe(n)&&!Rwe(n)?r:n||function(e){let t=Hwe(e);for(;Owe(t)&&!Lwe(t);){if(Rwe(t))return t;if(Pwe(t))return null;t=Hwe(t)}return null}(e)||r}const exe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o="fixed"===a,l=_we(n),i=!!t&&Pwe(t.floating);if(n===l||i&&o)return r;let s={scrollLeft:0,scrollTop:0},c=twe(1);const d=twe(0),u=Owe(n);if((u||!u&&!o)&&(("body"!==wwe(n)||zwe(l))&&(s=Vwe(n)),Owe(n))){const e=Wwe(n);c=Bwe(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const h=!l||u||o?twe(0):Gwe(l,s,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-s.scrollTop*c.y+d.y+h.y}},getDocumentElement:_we,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[..."clippingAncestors"===r?Pwe(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Zwe(e,[],!1).filter((e=>jwe(e)&&"body"!==wwe(e))),a=null;const o="fixed"===Iwe(e).position;let l=o?Hwe(e):e;for(;jwe(l)&&!Lwe(l);){const t=Iwe(l),r=Rwe(l);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||zwe(l)&&!r&&Ywe(e,l))?n=n.filter((e=>e!==l)):a=t,l=Hwe(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],i=o.reduce(((e,r)=>{const n=$we(t,r,a);return e.top=Qbe(n.top,e.top),e.right=Xbe(n.right,e.right),e.bottom=Xbe(n.bottom,e.bottom),e.left=Qbe(n.left,e.left),e}),$we(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Jwe,getElementRects:async function(e){const t=this.getOffsetParent||Jwe,r=this.getDimensions,n=await r(e.floating);return{reference:Kwe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=qwe(e);return{width:t,height:r}},getScale:Bwe,isElement:jwe,isRTL:function(e){return"rtl"===Iwe(e).direction}};function txe(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=n,c=Dwe(e),d=a||o?[...c?Zwe(c):[],...Zwe(t)]:[];d.forEach((e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)}));const u=c&&i?function(e,t){let r,n=null;const a=_we(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),o();const{left:c,top:d,width:u,height:h}=e.getBoundingClientRect();if(i||t(),!u||!h)return;const p={rootMargin:-ewe(d)+"px "+-ewe(a.clientWidth-(c+u))+"px "+-ewe(a.clientHeight-(d+h))+"px "+-ewe(c)+"px",threshold:Qbe(0,Xbe(1,s))||1};let f=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!f)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),1e3)}f=!1}try{n=new IntersectionObserver(v,{...p,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),o}(c,r):null;let h,p=-1,f=null;l&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!s&&f.observe(c),f.observe(t));let v=s?Wwe(e):null;return s&&function t(){const n=Wwe(e);!v||n.x===v.x&&n.y===v.y&&n.width===v.width&&n.height===v.height||r();v=n,h=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach((e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(h)}}const rxe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:o,placement:l,middlewareData:i}=t,s=await async function(e,t){const{placement:r,platform:n,elements:a}=e,o=await(null==n.isRTL?void 0:n.isRTL(a.floating)),l=lwe(r),i=iwe(r),s="y"===dwe(r),c=["left","top"].includes(l)?-1:1,d=o&&s?-1:1,u=owe(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof f&&(p="end"===i?-1*f:f),s?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return l===(null==(r=i.offset)?void 0:r.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:l}}}}},nxe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=owe(e,t),c={x:r,y:n},d=await ywe(t,s),u=dwe(lwe(a)),h=swe(u);let p=c[h],f=c[u];if(o){const e="y"===h?"bottom":"right";p=awe(p+d["y"===h?"top":"left"],p,p-d[e])}if(l){const e="y"===u?"bottom":"right";f=awe(f+d["y"===u?"top":"left"],f,f-d[e])}const v=i.fn({...t,[h]:p,[u]:f});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:o,[u]:l}}}}}},axe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:l,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...m}=owe(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const y=lwe(a),g=dwe(i),k=lwe(i)===i,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=h||(k||!v?[pwe(i)]:function(e){const t=pwe(e);return[hwe(e),t,hwe(t)]}(i)),x="none"!==f;!h&&x&&w.push(...function(e,t,r,n){const a=iwe(e);let o=function(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:l;default:return[]}}(lwe(e),"start"===r,n);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(hwe)))),o}(i,v,f,b));const _=[i,...w],M=await ywe(t,m),j=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(d&&j.push(M[y]),u){const e=function(e,t,r){void 0===r&&(r=!1);const n=iwe(e),a=uwe(e),o=cwe(a);let l="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=pwe(l)),[l,pwe(l)]}(a,l,b);j.push(M[e[0]],M[e[1]])}if(O=[...O,{placement:a,overflows:j}],!j.every((e=>e<=0))){var E,z;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let r=null==(z=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:z.placement;if(!r)switch(p){case"bestFit":{var C;const e=null==(C=O.filter((e=>{if(x){const t=dwe(e.placement);return t===g||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=i}if(a!==r)return{reset:{placement:r}}}return{}}}},oxe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:o,platform:l,elements:i}=t,{apply:s=()=>{},...c}=owe(e,t),d=await ywe(t,c),u=lwe(a),h=iwe(a),p="y"===dwe(a),{width:f,height:v}=o.floating;let m,y;"top"===u||"bottom"===u?(m=u,y=h===(await(null==l.isRTL?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m="end"===h?"top":"bottom");const g=v-d.top-d.bottom,k=f-d.left-d.right,b=Xbe(v-d[m],g),w=Xbe(f-d[y],k),x=!t.middlewareData.shift;let _=b,M=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=k),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(_=g),x&&!h){const e=Qbe(d.left,0),t=Qbe(d.right,0),r=Qbe(d.top,0),n=Qbe(d.bottom,0);p?M=f-2*(0!==e||0!==t?e+t:Qbe(d.left,d.right)):_=v-2*(0!==r||0!==n?r+n:Qbe(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:_});const j=await l.getDimensions(i.floating);return f!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}},lxe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=owe(e,t);switch(n){case"referenceHidden":{const e=gwe(await ywe(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:kwe(e)}}}case"escaped":{const e=gwe(await ywe(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:kwe(e)}}}default:return{}}}}},ixe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:l,elements:i,middlewareData:s}=t,{element:c,padding:d=0}=owe(e,t)||{};if(null==c)return{};const u=fwe(d),h={x:r,y:n},p=uwe(a),f=cwe(p),v=await l.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",k=m?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[p]-h[p]-o.floating[f],w=h[p]-o.reference[p],x=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let _=x?x[k]:0;_&&await(null==l.isElement?void 0:l.isElement(x))||(_=i.floating[k]||o.floating[f]);const M=b/2-w/2,j=_/2-v[f]/2-1,O=Xbe(u[y],j),E=Xbe(u[g],j),z=O,C=_-v[f]-E,P=_/2-v[f]/2+M,R=awe(z,P,C),A=!s.arrow&&null!=iwe(a)&&P!==R&&o.reference[f]/2-(P<z?O:E)-v[f]/2<0,L=A?P<z?P-z:P-C:0;return{[p]:h[p]+L,data:{[p]:R,centerOffset:P-R-L,...A&&{alignmentOffset:L}},reset:A}}}),sxe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:l}=t,{offset:i=0,mainAxis:s=!0,crossAxis:c=!0}=owe(e,t),d={x:r,y:n},u=dwe(a),h=swe(u);let p=d[h],f=d[u];const v=owe(i,t),m="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+m.mainAxis,r=o.reference[h]+o.reference[e]-m.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var y,g;const e="y"===h?"width":"height",t=["top","left"].includes(lwe(a)),r=o.reference[u]-o.floating[e]+(t&&(null==(y=l.offset)?void 0:y[u])||0)+(t?0:m.crossAxis),n=o.reference[u]+o.reference[e]+(t?0:(null==(g=l.offset)?void 0:g[u])||0)-(t?m.crossAxis:0);f<r?f=r:f>n&&(f=n)}return{[h]:p,[u]:f}}}},cxe=(e,t,r)=>{const n=new Map,a={platform:exe,...r},o={...a.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:l}=r,i=o.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:u}=mwe(c,n,s),h=n,p={},f=0;for(let r=0;r<i.length;r++){const{name:o,fn:v}=i[r],{x:m,y:y,data:g,reset:k}=await v({x:d,y:u,initialPlacement:n,placement:h,strategy:a,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=y?y:u,p={...p,[o]:{...p[o],...g}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(h=k.placement),k.rects&&(c=!0===k.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:d,y:u}=mwe(c,h,s))),r=-1)}return{x:d,y:u,placement:h,strategy:a,middlewareData:p}})(e,t,{...a,platform:o})};var dxe="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function uxe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!uxe(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){const r=a[n];if(("_owner"!==r||!e.$$typeof)&&!uxe(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function hxe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pxe(e,t){const r=hxe(e);return Math.round(t*r)/r}function fxe(e){const t=l.useRef(e);return dxe((()=>{t.current=e})),t}function vxe(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=l.useState(n);uxe(f,n)||v(n);const[m,y]=l.useState(null),[g,k]=l.useState(null),b=l.useCallback((e=>{e!==M.current&&(M.current=e,y(e))}),[]),w=l.useCallback((e=>{e!==j.current&&(j.current=e,k(e))}),[]),x=o||m,_=s||g,M=l.useRef(null),j=l.useRef(null),O=l.useRef(h),E=null!=d,z=fxe(d),C=fxe(a),P=fxe(u),R=l.useCallback((()=>{if(!M.current||!j.current)return;const e={placement:t,strategy:r,middleware:f};C.current&&(e.platform=C.current),cxe(M.current,j.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!uxe(O.current,t)&&(O.current=t,i.flushSync((()=>{p(t)})))}))}),[f,t,r,C,P]);dxe((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const A=l.useRef(!1);dxe((()=>(A.current=!0,()=>{A.current=!1})),[]),dxe((()=>{if(x&&(M.current=x),_&&(j.current=_),x&&_){if(z.current)return z.current(x,_,R);R()}}),[x,_,R,z,E]);const L=l.useMemo((()=>({reference:M,floating:j,setReference:b,setFloating:w})),[b,w]),I=l.useMemo((()=>({reference:x,floating:_})),[x,_]),V=l.useMemo((()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=pxe(I.floating,h.x),n=pxe(I.floating,h.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...hxe(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,c,I.floating,h.x,h.y]);return l.useMemo((()=>({...h,update:R,refs:L,elements:I,floatingStyles:V})),[h,R,L,I,V])}const mxe=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(a=r,{}.hasOwnProperty.call(a,"current"))?null!=r.current?ixe({element:r.current,padding:n}).fn(t):{}:r?ixe({element:r,padding:n}).fn(t):{};var a}}),yxe=(e,t)=>({...rxe(e),options:[e,t]}),gxe=(e,t)=>({...nxe(e),options:[e,t]}),kxe=(e,t)=>({...sxe(e),options:[e,t]}),bxe=(e,t)=>({...axe(e),options:[e,t]}),wxe=(e,t)=>({...oxe(e),options:[e,t]}),xxe=(e,t)=>({...lxe(e),options:[e,t]}),_xe=(e,t)=>({...mxe(e),options:[e,t]});var Mxe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(Mbe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Mxe.displayName="Arrow";var jxe=Mxe;function Oxe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var Exe="Popper",[zxe,Cxe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},Oxe(a,...r)]}(Exe),[Pxe,Rxe]=zxe(Exe),Axe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(Pxe,{scope:r,anchor:a,onAnchorChange:o,children:n})};Axe.displayName=Exe;var Lxe="PopperAnchor",Ixe=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=Rxe(Lxe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(Mbe.div,{...o,ref:c})}));Ixe.displayName=Lxe;var Vxe="PopperContent",[Hxe,Sxe]=zxe(Vxe),Zxe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=Rxe(Vxe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(Bxe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),Fxe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=Txe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(Hxe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(Mbe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));Zxe.displayName=Vxe;var Nxe="PopperArrow",qxe={top:"bottom",right:"left",bottom:"top",left:"right"},Dxe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=Sxe(Nxe,n),l=qxe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(jxe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function Bxe(e){return null!==e}Dxe.displayName=Nxe;var Fxe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=Txe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function Txe(e){const[t,r="center"]=e.split("-");return[t,r]}var Wxe=Axe,Uxe=Ixe,Gxe=Zxe,$xe=Dxe,Yxe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(Mbe.div,{...o,ref:r}),c):null}));Yxe.displayName="Portal";var Kxe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=Xxe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=Xxe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=Xxe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=Xxe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function Xxe(e){return e?.animationName||"none"}Kxe.displayName="Presence";var Qxe=new WeakMap,Jxe=new WeakMap,e_e={},t_e=0,r_e=function(e){return e&&(e.host||r_e(e.parentNode))},n_e=function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=r_e(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);e_e[r]||(e_e[r]=new WeakMap);var o=e_e[r],l=[],i=new Set,s=new Set(a),c=function(e){e&&!i.has(e)&&(i.add(e),c(e.parentNode))};a.forEach(c);var d=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(i.has(e))d(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(Qxe.get(e)||0)+1,c=(o.get(e)||0)+1;Qxe.set(e,s),o.set(e,c),l.push(e),1===s&&a&&Jxe.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return d(t),i.clear(),t_e++,function(){l.forEach((function(e){var t=Qxe.get(e)-1,a=o.get(e)-1;Qxe.set(e,t),o.set(e,a),t||(Jxe.has(e)||e.removeAttribute(n),Jxe.delete(e)),a||e.removeAttribute(r)})),--t_e||(Qxe=new WeakMap,Qxe=new WeakMap,Jxe=new WeakMap,e_e={})}},a_e=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),n_e(n,a,r,"aria-hidden")):function(){return null}},o_e="right-scroll-bar-position",l_e="width-before-scroll-bar";function i_e(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s_e="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,c_e=new WeakMap;function d_e(t,r){var n,a,o,l=(n=null,a=function(e){return t.forEach((function(t){return i_e(t,e)}))},(o=e.useState((function(){return{value:n,callback:a,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=a,o.facade);return s_e((function(){var e=c_e.get(l);if(e){var r=new Set(e),n=new Set(t),a=l.current;r.forEach((function(e){n.has(e)||i_e(e,null)})),n.forEach((function(e){r.has(e)||i_e(e,a)}))}c_e.set(l,t)}),[t]),l}function u_e(e){return e}var h_e=function(e){var t=e.sideCar,r=o_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,a_({},r))};h_e.isSideCarExport=!0;var p_e=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=u_e);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},l=function(){return Promise.resolve().then(o)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}};return a}(null);return t.options=a_({async:!0,ssr:!1},e),t}(),f_e=function(){},v_e=l.forwardRef((function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:f_e,onWheelCapture:f_e,onTouchMoveCapture:f_e}),a=n[0],o=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,p=e.sideCar,f=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,k=e.gapMode,b=o_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=d_e([r,t]),_=a_(a_({},b),a);return l.createElement(l.Fragment,null,u&&l.createElement(w,{sideCar:p_e,removeScrollBar:d,shards:h,noIsolation:f,inert:v,setCallbacks:o,allowPinchZoom:!!m,lockRef:r,gapMode:k}),i?l.cloneElement(l.Children.only(s),a_(a_({},_),{ref:x})):l.createElement(g,a_({},_,{className:c,ref:x}),s))}));v_e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v_e.classNames={fullWidth:l_e,zeroRight:o_e};function m_e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var y_e=function(){var e=0,t=null;return{add:function(r){0==e&&(t=m_e())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g_e=function(){var e=function(){var e=y_e();return function(t,r){l.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},k_e={left:0,top:0,right:0,gap:0},b_e=function(e){return parseInt(e||"",10)||0},w_e=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return k_e;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[b_e(r),b_e(n),b_e(a)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},x_e=g_e(),__e="data-scroll-locked",M_e=function(e,t,r,n){var a=e.left,o=e.top,l=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(__e,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o_e," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(l_e," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(o_e," .").concat(o_e," {\n right: 0 ").concat(n,";\n }\n \n .").concat(l_e," .").concat(l_e," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(__e,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},j_e=function(){var e=parseInt(document.body.getAttribute(__e)||"0",10);return isFinite(e)?e:0},O_e=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;l.useEffect((function(){return document.body.setAttribute(__e,(j_e()+1).toString()),function(){var e=j_e()-1;e<=0?document.body.removeAttribute(__e):document.body.setAttribute(__e,e.toString())}}),[]);var o=l.useMemo((function(){return w_e(a)}),[a]);return l.createElement(x_e,{styles:M_e(o,!t,a,r?"":"!important")})},E_e=!1;if("undefined"!=typeof window)try{var z_e=Object.defineProperty({},"passive",{get:function(){return E_e=!0,!0}});window.addEventListener("test",z_e,z_e),window.removeEventListener("test",z_e,z_e)}catch(e){E_e=!1}var C_e=!!E_e&&{passive:!1},P_e=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},R_e=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),A_e(e,n)){var a=L_e(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},A_e=function(e,t){return"v"===e?function(e){return P_e(e,"overflowY")}(t):function(e){return P_e(e,"overflowX")}(t)},L_e=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},I_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V_e=function(e){return[e.deltaX,e.deltaY]},H_e=function(e){return e&&"current"in e?e.current:e},S_e=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Z_e=0,N_e=[];function q_e(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var D_e,B_e=(D_e=function(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),a=l.useState(Z_e++)[0],o=l.useState(g_e)[0],i=l.useRef(e);l.useEffect((function(){i.current=e}),[e]),l.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(H_e),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=I_e(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],d=e.target,u=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var h=R_e(u,d);if(!h)return!0;if(h?a=u:(a="v"===u?"h":"v",h=R_e(u,d)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=a),!a)return!0;var p=n.current||a;return function(e,t,r,n,a){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),l=o*n,i=r.target,s=t.contains(i),c=!1,d=l>0,u=0,h=0;do{var p=L_e(e,i),f=p[0],v=p[1]-p[2]-o*f;(f||v)&&A_e(e,i)&&(u+=v,h+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return d&&(Math.abs(u)<1||!a)?c=!0:d||!(Math.abs(h)<1)&&a||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=l.useCallback((function(e){var r=e;if(N_e.length&&N_e[N_e.length-1]===o){var n="deltaY"in r?V_e(r):I_e(r),a=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(a&&a.should)r.cancelable&&r.preventDefault();else if(!a){var l=(i.current.shards||[]).map(H_e).filter(Boolean).filter((function(e){return e.contains(r.target)}));(l.length>0?s(r,l[0]):!i.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),d=l.useCallback((function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:q_e(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=l.useCallback((function(e){r.current=I_e(e),n.current=void 0}),[]),h=l.useCallback((function(t){d(t.type,V_e(t),t.target,s(t,e.lockRef.current))}),[]),p=l.useCallback((function(t){d(t.type,I_e(t),t.target,s(t,e.lockRef.current))}),[]);l.useEffect((function(){return N_e.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,C_e),document.addEventListener("touchmove",c,C_e),document.addEventListener("touchstart",u,C_e),function(){N_e=N_e.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,C_e),document.removeEventListener("touchmove",c,C_e),document.removeEventListener("touchstart",u,C_e)}}),[]);var f=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(o,{styles:S_e(a)}):null,f?l.createElement(O_e,{gapMode:e.gapMode}):null)},p_e.useMedium(D_e),h_e),F_e=l.forwardRef((function(e,t){return l.createElement(v_e,a_({},e,{ref:t,sideCar:B_e}))}));F_e.classNames=v_e.classNames;var T_e="Popover",[W_e,U_e]=uye(T_e,[Cxe]),G_e=Cxe(),[$_e,Y_e]=W_e(T_e),K_e=e=>{const{__scopePopover:r,children:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,c=G_e(r),d=l.useRef(null),[u,h]=l.useState(!1),[p=!1,f]=vye({prop:a,defaultProp:o,onChange:i});return t.jsx(Wxe,{...c,children:t.jsx($_e,{scope:r,contentId:Ybe(),triggerRef:d,open:p,onOpenChange:f,onOpenToggle:l.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback((()=>h(!0)),[]),onCustomAnchorRemove:l.useCallback((()=>h(!1)),[]),modal:s,children:n})})};K_e.displayName=T_e;var X_e="PopoverAnchor";l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(X_e,n),i=G_e(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=o;return l.useEffect((()=>(s(),()=>c())),[s,c]),t.jsx(Uxe,{...i,...a,ref:r})})).displayName=X_e;var Q_e="PopoverTrigger",J_e=l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(Q_e,n),l=G_e(n),i=dye(r,o.triggerRef),s=t.jsx(Mbe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dMe(o.open),...a,ref:i,onClick:pye(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:t.jsx(Uxe,{asChild:!0,...l,children:s})}));J_e.displayName=Q_e;var eMe="PopoverPortal",[tMe,rMe]=W_e(eMe,{forceMount:void 0}),nMe=e=>{const{__scopePopover:r,forceMount:n,children:a,container:o}=e,l=Y_e(eMe,r);return t.jsx(tMe,{scope:r,forceMount:n,children:t.jsx(Kxe,{present:n||l.open,children:t.jsx(Yxe,{asChild:!0,container:o,children:a})})})};nMe.displayName=eMe;var aMe="PopoverContent",oMe=l.forwardRef(((e,r)=>{const n=rMe(aMe,e.__scopePopover),{forceMount:a=n.forceMount,...o}=e,l=Y_e(aMe,e.__scopePopover);return t.jsx(Kxe,{present:a||l.open,children:l.modal?t.jsx(lMe,{...o,ref:r}):t.jsx(iMe,{...o,ref:r})})}));oMe.displayName=aMe;var lMe=l.forwardRef(((e,r)=>{const n=Y_e(aMe,e.__scopePopover),a=l.useRef(null),o=dye(r,a),i=l.useRef(!1);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(F_e,{as:bye,allowPinchZoom:!0,children:t.jsx(sMe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()})),onPointerDownOutside:pye(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;i.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),iMe=l.forwardRef(((e,r)=>{const n=Y_e(aMe,e.__scopePopover),a=l.useRef(!1),o=l.useRef(!1);return t.jsx(sMe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const r=t.target,l=n.triggerRef.current?.contains(r);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),sMe=l.forwardRef(((e,r)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...h}=e,p=Y_e(aMe,n),f=G_e(n);return Vbe(),t.jsx(qbe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:t.jsx(Rbe,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:t.jsx(Gxe,{"data-state":dMe(p.open),role:"dialog",id:p.contentId,...f,...h,ref:r,style:{...h.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)"}})})})})),cMe="PopoverClose";l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=Y_e(cMe,n);return t.jsx(Mbe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=cMe;function dMe(e){return e?"open":"closed"}l.forwardRef(((e,r)=>{const{__scopePopover:n,...a}=e,o=G_e(n);return t.jsx($xe,{...o,...a,ref:r})})).displayName="PopoverArrow";var uMe=nMe,hMe=oMe;const pMe=K_e,fMe=J_e,vMe=l.forwardRef(((e,r)=>{var{className:n,align:a="center",sideOffset:o=4}=e,l=o_(e,["className","align","sideOffset"]);return t.jsx(uMe,{children:t.jsx(hMe,Object.assign({ref:r,align:a,sideOffset:o,className:s_("z-50 min-w-72 rounded-md border bg-bg-bg1 border-none overflow-hidden p-0 text-common-black 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",n)},l))})}));vMe.displayName=hMe.displayName;const mMe={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"}};function yMe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const gMe={date:yMe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yMe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:yMe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function bMe(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const wMe={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:bMe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:bMe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:bMe({values:{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"]},defaultWidth:"wide"}),day:bMe({values:{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"]},defaultWidth:"wide"}),dayPeriod:bMe({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};function xMe(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(i)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(i,(e=>e.test(l))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(i,(e=>e.test(l)));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(l.length)}}}const _Me={ordinalNumber:function(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xMe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:xMe({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:xMe({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},MMe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=mMe[e];return n="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:gMe,formatRelative:(e,t,r,n)=>kMe[e],localize:wMe,match:_Me,options:{weekStartsOn:0,firstWeekContainsDate:1}};let jMe={};function OMe(){return jMe}const EMe=6048e5;function zMe(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function CMe(e){const t=zMe(e);return t.setHours(0,0,0,0),t}function PMe(e){const t=zMe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function RMe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function AMe(e){const t=zMe(e),r=function(e,t){const r=CMe(e),n=CMe(t),a=+r-PMe(r),o=+n-PMe(n);return Math.round((a-o)/864e5)}(t,function(e){const t=zMe(e),r=RMe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t));return r+1}function LMe(e,t){const r=OMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=zMe(e),o=a.getDay(),l=(o<n?7:0)+o-n;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function IMe(e){return LMe(e,{weekStartsOn:1})}function VMe(e){const t=zMe(e),r=t.getFullYear(),n=RMe(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=IMe(n),o=RMe(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=IMe(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function HMe(e){const t=zMe(e),r=+IMe(t)-+function(e){const t=VMe(e),r=RMe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),IMe(r)}(t);return Math.round(r/EMe)+1}function SMe(e,t){const r=zMe(e),n=r.getFullYear(),a=OMe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=RMe(e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=LMe(l,t),s=RMe(e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=LMe(s,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function ZMe(e,t){const r=zMe(e),n=+LMe(r,t)-+function(e,t){const r=OMe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=SMe(e,t),o=RMe(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),LMe(o,t)}(r,t);return Math.round(n/EMe)+1}function NMe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const qMe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return NMe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):NMe(r+1,2)},d:(e,t)=>NMe(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>NMe(e.getHours()%12||12,t.length),H:(e,t)=>NMe(e.getHours(),t.length),m:(e,t)=>NMe(e.getMinutes(),t.length),s:(e,t)=>NMe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return NMe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},DMe="midnight",BMe="noon",FMe="morning",TMe="afternoon",WMe="evening",UMe="night",GMe={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return qMe.y(e,t)},Y:function(e,t,r,n){const a=SMe(e,n),o=a>0?a:1-a;if("YY"===t){return NMe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):NMe(o,t.length)},R:function(e,t){return NMe(VMe(e),t.length)},u:function(e,t){return NMe(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return NMe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return NMe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return qMe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return NMe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=ZMe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):NMe(a,t.length)},I:function(e,t,r){const n=HMe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):NMe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):qMe.d(e,t)},D:function(e,t,r){const n=AMe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):NMe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return NMe(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return NMe(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return NMe(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(a=12===n?BMe:0===n?DMe:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(a=n>=17?WMe:n>=12?TMe:n>=4?FMe:UMe,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return qMe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):qMe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):NMe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):NMe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):qMe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):qMe.s(e,t)},S:function(e,t){return qMe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return YMe(n);case"XXXX":case"XX":return KMe(n);default:return KMe(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return YMe(n);case"xxxx":case"xx":return KMe(n);default:return KMe(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$Me(n,":");default:return"GMT"+KMe(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$Me(n,":");default:return"GMT"+KMe(n,":")}},t:function(e,t,r){return NMe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return NMe(e.getTime(),t.length)}};function $Me(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return 0===o?r+String(a):r+String(a)+t+NMe(o,2)}function YMe(e,t){if(e%60==0){return(e>0?"-":"+")+NMe(Math.abs(e)/60,2)}return KMe(e,t)}function KMe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+NMe(Math.trunc(n/60),2)+t+NMe(n%60,2)}const XMe=(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"})}},QMe=(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"})}},JMe={p:QMe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return XMe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",XMe(n,t)).replace("{{time}}",QMe(a,t))}},eje=/^D+$/,tje=/^Y+$/,rje=["D","DD","YY","YYYY"];function nje(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const r=zMe(e);return!isNaN(Number(r))}const aje=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oje=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lje=/^'([^]*?)'?$/,ije=/''/g,sje=/[a-zA-Z]/;function cje(e,t,r){const n=OMe(),a=n.locale??MMe,o=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zMe(e);if(!nje(i))throw new RangeError("Invalid time value");let s=t.match(oje).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,JMe[t])(e,a.formatLong)}return e})).join("").match(aje).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:dje(e)};if(GMe[t])return{isToken:!0,value:e};if(t.match(sje))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(s=a.localize.preprocessor(i,s));const c={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return s.map((r=>{if(!r.isToken)return r.value;const n=r.value;(function(e){return tje.test(e)}(n)||function(e){return eje.test(e)}(n))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),rje.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,GMe[n[0]])(i,n,a.localize,c)})).join("")}function dje(e){const t=e.match(lje);return t?t[1].replace(ije,"'"):e}const uje=(e,t,r)=>Array.from(e).filter((e=>t.test(e))).slice(0,r),hje=e.forwardRef((({value:r,onChange:n,onBlur:a,onComplete:o,length:l=6,disabled:i=!1,invalid:s=!1,autoFocus:c=!1,inputMode:d="numeric",charPattern:u=/^\d$/,className:h,inputClassName:p},f)=>{const v=e.useRef([]),m=e.useRef(null),y=e.useMemo((()=>{const e=r||"";return Array.from({length:l},((t,r)=>e[r]||""))}),[l,r]);e.useImperativeHandle(f,(()=>v.current[0]),[]);const g=e=>{const t=e.join("");n(t),o&&e.every((e=>""!==e))&&o(t)},k=e=>{var t,r;const n=Math.max(0,Math.min(l-1,e));null===(t=v.current[n])||void 0===t||t.focus(),null===(r=v.current[n])||void 0===r||r.select()};return t.jsx("div",{className:s_("flex items-center gap-3",h),ref:m,children:y.map(((e,r)=>t.jsx("input",{ref:e=>{v.current[r]=e},type:"text",inputMode:d,autoComplete:0===r?"one-time-code":"off",value:e,maxLength:1,disabled:i,autoFocus:c&&0===r,"aria-invalid":s||void 0,className:s_("h-14 w-[46px] rounded-[8px] text-input-filled-text border bg-transparent text-center text-2xl font-semibold outline-none transition-all duration-200","border-input-default-stroke focus:border-input-active-stroke","disabled:cursor-not-allowed disabled:opacity-50",s&&"border-input-error focus:border-input-error",p),onFocus:e=>{e.target.select()},onBlur:e=>{var t;const r=e.relatedTarget;r&&(null===(t=m.current)||void 0===t?void 0:t.contains(r))||null==a||a()},onChange:e=>((e,t)=>{if(i)return;if(!t){const t=[...y];return t[e]="",void g(t)}const r=uje(t,u,l);if(!r.length)return;const n=[...y];let a=e;r.forEach((e=>{a<l&&(n[a]=e,a+=1)})),g(n),k(a<l?a:l-1)})(r,e.target.value),onPaste:e=>((e,t)=>{if(t.preventDefault(),i)return;const r=t.clipboardData.getData("text"),n=uje(r,u,l-e);if(!n.length)return;const a=[...y];n.forEach(((t,r)=>{a[e+r]=t})),g(a);const o=Math.min(e+n.length,l-1);k(o)})(r,e),onKeyDown:e=>((e,t)=>{if(!i){if("ArrowLeft"===t.key)return t.preventDefault(),void k(e-1);if("ArrowRight"===t.key)return t.preventDefault(),void k(e+1);if("Backspace"===t.key){if(y[e]){t.preventDefault();const r=[...y];return r[e]="",void g(r)}if(e>0){t.preventDefault();const r=[...y];r[e-1]="",g(r),k(e-1)}}}})(r,e)},r)))})}));hje.displayName="OtpInput";const pje=e.forwardRef(((e,r)=>{var{id:n,label:a,required:o=!1,helperText:l,error:i=!1,errorMessage:s,keepFooterSpace:c=!0,labelClassName:d,messageClassName:u,className:h}=e,p=o_(e,["id","label","required","helperText","error","errorMessage","keepFooterSpace","labelClassName","messageClassName","className"]);const f=Boolean(i||s),v=f?s:l;return t.jsxs("div",{className:s_("inline-flex w-full flex-col gap-2",h),children:[a&&t.jsxs("label",{htmlFor:n,className:s_("typography-overline text-input-default-text",f&&"text-input-error",d),children:[a,o&&t.jsx("span",{className:"ml-1 text-input-error",children:"*"})]}),t.jsx(hje,Object.assign({},p,{ref:r,invalid:f})),(v||c)&&t.jsx("div",{className:s_("typography-small2 min-h-[18px]",f?"text-input-error":"text-text-g-contrast-medium",u),role:f?"alert":void 0,children:v||" "})]})}));pje.displayName="OtpInputGroup";const fje=l.forwardRef(((e,r)=>{var{rootClassName:n,className:a,rootRef:o}=e,l=o_(e,["rootClassName","className","rootRef"]);return t.jsx("div",{className:s_("relative h-full w-full overflow-auto",n),ref:o,children:t.jsx("table",Object.assign({ref:r,className:s_("w-full caption-bottom text-sm border-collapse",a)},l))})}));fje.displayName="Table";const vje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("thead",Object.assign({ref:r,className:s_("[&_tr]:border-b bg-secondary-80",n)},a))}));vje.displayName="TableHeader";const mje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tbody",Object.assign({ref:r,className:s_("[&_tr:last-child]:border-0",n)},a))}));mje.displayName="TableBody";const yje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tfoot",Object.assign({ref:r,className:s_("border-t bg-transparent-grey2-8 font-medium [&>tr]:last:border-b-0",n)},a))}));yje.displayName="TableFooter";const gje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("tr",Object.assign({ref:r,className:s_("border-b transition-colors hover:bg-transparent-grey2-8 data-[state=selected]:bg-grey-20",n)},a))}));gje.displayName="TableRow";const kje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("th",Object.assign({ref:r,className:s_(" h-12 py-3 px-6 text-left align-middle typography-body2 text-text-g-contrast-low [&:has([role=checkbox])]:pr-4 [&:has([role=checkbox])]:w-4",n)},a))}));kje.displayName="TableHead";const bje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("td",Object.assign({ref:r,className:s_(" py-3 px-6 text-left align-middle typography-body3 text-text-g-contrast-low [&:has([role=checkbox])]:pr-4 [&:has([role=checkbox])]:w-4",n)},a))}));bje.displayName="TableCell";const wje=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx("caption",Object.assign({ref:r,className:s_("mt-4 text-sm text-text-g-contrast-medium",n)},a))}));
|
|
9248
9248
|
/**
|
|
9249
9249
|
* table-core
|
|
9250
9250
|
*
|
|
@@ -9266,11 +9266,11 @@ function xje(e,t){return"function"==typeof e?e(t):e}function _je(e,t){return r=>
|
|
|
9266
9266
|
*
|
|
9267
9267
|
* @license MIT
|
|
9268
9268
|
*/
|
|
9269
|
-
function wOe(e,t){return e?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(e)?l.createElement(e,t):e:null}var xOe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});var _Oe,MOe="dismissableLayer.update",jOe="dismissableLayer.pointerDownOutside",OOe="dismissableLayer.focusOutside",EOe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zOe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(EOe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){POe(jOe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){POe(OOe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(_Oe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),COe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=_Oe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),COe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(MOe,e),()=>document.removeEventListener(MOe,e)}),[]),t.jsx(xOe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));zOe.displayName="DismissableLayer";function COe(){const e=new CustomEvent(MOe);document.dispatchEvent(e)}function POe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(EOe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(xOe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var ROe="focusScope.autoFocusOnMount",AOe="focusScope.autoFocusOnUnmount",LOe={bubbles:!1,cancelable:!0},IOe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:ZOe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||ZOe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ZOe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){NOe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(ROe,LOe);c.addEventListener(ROe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ZOe(n,{select:t}),document.activeElement!==r)return}((e=VOe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ZOe(c))}return()=>{c.removeEventListener(ROe,u),setTimeout((()=>{const e=new CustomEvent(AOe,LOe);c.addEventListener(AOe,h),c.dispatchEvent(e),e.defaultPrevented||ZOe(t??document.body,{select:!0}),c.removeEventListener(AOe,h),NOe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=VOe(e),r=HOe(t,e),n=HOe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&ZOe(o,{select:!0})):(e.preventDefault(),n&&ZOe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(xOe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function VOe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function HOe(e,t){for(const r of e)if(!SOe(r,{upTo:t}))return r}function SOe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ZOe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}IOe.displayName="FocusScope";var NOe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=qOe(e,t),e.unshift(t)},remove(t){e=qOe(e,t),e[0]?.resume()}}}();function qOe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var DOe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(xOe.div,{...o,ref:r}),c):null}));DOe.displayName="Portal";var BOe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=FOe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=FOe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=FOe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=FOe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function FOe(e){return e?.animationName||"none"}BOe.displayName="Presence";var TOe="Dialog",[WOe,UOe]=uye(TOe),[GOe,$Oe]=WOe(TOe),YOe=e=>{const{__scopeDialog:r,children:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,c=l.useRef(null),d=l.useRef(null),[u=!1,h]=vye({prop:a,defaultProp:o,onChange:i});return t.jsx(GOe,{scope:r,triggerRef:c,contentRef:d,contentId:Ybe(),titleId:Ybe(),descriptionId:Ybe(),open:u,onOpenChange:h,onOpenToggle:l.useCallback((()=>h((e=>!e))),[h]),modal:s,children:n})};YOe.displayName=TOe;var KOe="DialogTrigger",XOe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(KOe,n),l=dye(r,o.triggerRef);return t.jsx(xOe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mEe(o.open),...a,ref:l,onClick:pye(e.onClick,o.onOpenToggle)})}));XOe.displayName=KOe;var QOe="DialogPortal",[JOe,eEe]=WOe(QOe,{forceMount:void 0}),tEe=e=>{const{__scopeDialog:r,forceMount:n,children:a,container:o}=e,i=$Oe(QOe,r);return t.jsx(JOe,{scope:r,forceMount:n,children:l.Children.map(a,(e=>t.jsx(BOe,{present:n||i.open,children:t.jsx(DOe,{asChild:!0,container:o,children:e})})))})};tEe.displayName=QOe;var rEe="DialogOverlay",nEe=l.forwardRef(((e,r)=>{const n=eEe(rEe,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=$Oe(rEe,e.__scopeDialog);return l.modal?t.jsx(BOe,{present:a||l.open,children:t.jsx(aEe,{...o,ref:r})}):null}));nEe.displayName=rEe;var aEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(rEe,n);return t.jsx(F_e,{as:bye,allowPinchZoom:!0,shards:[o.contentRef],children:t.jsx(xOe.div,{"data-state":mEe(o.open),...a,ref:r,style:{pointerEvents:"auto",...a.style}})})})),oEe="DialogContent",lEe=l.forwardRef(((e,r)=>{const n=eEe(oEe,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=$Oe(oEe,e.__scopeDialog);return t.jsx(BOe,{present:a||l.open,children:l.modal?t.jsx(iEe,{...o,ref:r}):t.jsx(sEe,{...o,ref:r})})}));lEe.displayName=oEe;var iEe=l.forwardRef(((e,r)=>{const n=$Oe(oEe,e.__scopeDialog),a=l.useRef(null),o=dye(r,n.contentRef,a);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(cEe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:pye(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()))})})),sEe=l.forwardRef(((e,r)=>{const n=$Oe(oEe,e.__scopeDialog),a=l.useRef(!1),o=l.useRef(!1);return t.jsx(cEe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const r=t.target,l=n.triggerRef.current?.contains(r);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),cEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,c=$Oe(oEe,n),d=l.useRef(null),u=dye(r,d);return Vbe(),t.jsxs(t.Fragment,{children:[t.jsx(IOe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:i,children:t.jsx(zOe,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":mEe(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(bEe,{titleId:c.titleId}),t.jsx(wEe,{contentRef:d,descriptionId:c.descriptionId})]})]})})),dEe="DialogTitle",uEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(dEe,n);return t.jsx(xOe.h2,{id:o.titleId,...a,ref:r})}));uEe.displayName=dEe;var hEe="DialogDescription",pEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(hEe,n);return t.jsx(xOe.p,{id:o.descriptionId,...a,ref:r})}));pEe.displayName=hEe;var fEe="DialogClose",vEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(fEe,n);return t.jsx(xOe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,(()=>o.onOpenChange(!1)))})}));function mEe(e){return e?"open":"closed"}vEe.displayName=fEe;var yEe="DialogTitleWarning",[gEe,kEe]=function(e,r){const n=l.createContext(r),a=e=>{const{children:r,...a}=e,o=l.useMemo((()=>a),Object.values(a));return t.jsx(n.Provider,{value:o,children:r})};return a.displayName=e+"Provider",[a,function(t){const a=l.useContext(n);if(a)return a;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(yEe,{contentName:oEe,titleName:dEe,docsSlug:"dialog"}),bEe=({titleId:e})=>{const t=kEe(yEe),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect((()=>{if(e){document.getElementById(e)||console.error(r)}}),[r,e]),null},wEe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kEe("DialogDescriptionWarning").contentName}}.`;return l.useEffect((()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}}),[r,e,t]),null},xEe=YOe,_Ee=XOe,MEe=tEe,jEe=nEe,OEe=lEe,EEe=uEe,zEe=pEe,CEe=vEe;const PEe=xEe,REe=_Ee,AEe=MEe,LEe=CEe,IEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(jEe,Object.assign({ref:r,className:s_("fixed inset-0 z-50 bg-modal-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a))}));IEe.displayName=jEe.displayName;const VEe=l.forwardRef(((e,r)=>{var{className:n,children:a,showCloseButton:o=!1,closeButtonClassName:l}=e,i=o_(e,["className","children","showCloseButton","closeButtonClassName"]);return t.jsxs(AEe,{children:[t.jsx(IEe,{}),t.jsxs(OEe,Object.assign({ref:r,className:s_("fixed left-[50%] top-[50%] z-50 flex w-[calc(100%-32px)] max-w-[650px] translate-x-[-50%] translate-y-[-50%] flex-col rounded-md bg-modal-surface p-8 text-text-g-contrast-medium shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n)},i,{children:[a,o&&t.jsxs(CEe,{className:s_("absolute right-8 top-8 rounded-sm opacity-70 ring-offset-bg-bg1 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-input-active-stroke focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-primary data-[state=open]:text-state-primary-text-solid",l),children:[t.jsx(Gd,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}));VEe.displayName=OEe.displayName;const HEe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col gap-2 text-left",r)},n))};HEe.displayName="DialogHeader";const SEe=e=>{var{className:r,scrollable:n=!1}=e,a=o_(e,["className","scrollable"]);return t.jsx("div",Object.assign({className:s_("flex flex-1 min-h-0 flex-col mt-8",n&&"overflow-y-auto",r)},a))};SEe.displayName="DialogBody";const ZEe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col-reverse gap-3 sm:flex-row sm:items-center sm:justify-end sm:gap-6",r)},n))};ZEe.displayName="DialogFooter";const NEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(EEe,Object.assign({ref:r,className:s_("typography-h4 tracking-tight text-text-contrast-max",n)},a))}));NEe.displayName=EEe.displayName;const qEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(zEe,Object.assign({ref:r,className:s_("typography-subtitle1 text-text-g-contrast-medium",n)},a))}));qEe.displayName=zEe.displayName;var DEe="AlertDialog",[BEe,FEe]=uye(DEe,[UOe]),TEe=UOe(),WEe=e=>{const{__scopeAlertDialog:r,...n}=e,a=TEe(r);return t.jsx(xEe,{...a,...n,modal:!0})};WEe.displayName=DEe;var UEe=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(_Ee,{...o,...a,ref:r})}));UEe.displayName="AlertDialogTrigger";var GEe=e=>{const{__scopeAlertDialog:r,...n}=e,a=TEe(r);return t.jsx(MEe,{...a,...n})};GEe.displayName="AlertDialogPortal";var $Ee=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(jEe,{...o,...a,ref:r})}));$Ee.displayName="AlertDialogOverlay";var YEe="AlertDialogContent",[KEe,XEe]=BEe(YEe),QEe=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,children:a,...o}=e,i=TEe(n),s=l.useRef(null),c=dye(r,s),d=l.useRef(null);return t.jsx(gEe,{contentName:YEe,titleName:JEe,docsSlug:"alert-dialog",children:t.jsx(KEe,{scope:n,cancelRef:d,children:t.jsxs(OEe,{role:"alertdialog",...i,...o,ref:c,onOpenAutoFocus:pye(o.onOpenAutoFocus,(e=>{e.preventDefault(),d.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[t.jsx(xye,{children:a}),t.jsx(lze,{contentRef:s})]})})})}));QEe.displayName=YEe;var JEe="AlertDialogTitle",eze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(EEe,{...o,...a,ref:r})}));eze.displayName=JEe;var tze="AlertDialogDescription",rze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(zEe,{...o,...a,ref:r})}));rze.displayName=tze;var nze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(CEe,{...o,...a,ref:r})}));nze.displayName="AlertDialogAction";var aze="AlertDialogCancel",oze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=XEe(aze,n),l=TEe(n),i=dye(r,o);return t.jsx(CEe,{...l,...a,ref:i})}));oze.displayName=aze;var lze=({contentRef:e})=>{const t=`\`${YEe}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${YEe}\` by passing a \`${tze}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${YEe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect((()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)}),[t,e]),null},ize=$Ee,sze=QEe,cze=nze,dze=oze,uze=eze,hze=rze;const pze=WEe,fze=UEe,vze=GEe,mze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(ize,Object.assign({className:s_("fixed inset-0 bg-modal-overlay z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a,{ref:r}))}));mze.displayName=ize.displayName;const yze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsxs(vze,{children:[t.jsx(mze,{}),t.jsx(sze,Object.assign({ref:r,className:s_("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-32px)] max-w-[460px] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-md bg-modal-surface px-6 py-8 text-text-contrast-max shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n)},a))]})}));yze.displayName=sze.displayName;const gze=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col items-center gap-2 text-center",r)},n))};gze.displayName="AlertDialogHeader";const kze=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col-reverse items-center justify-center gap-3 sm:flex-row sm:gap-4",r)},n))};kze.displayName="AlertDialogFooter";const bze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(uze,Object.assign({ref:r,className:s_("typography-subtitle3 text-text-contrast-max",n)},a))}));bze.displayName=uze.displayName;const wze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(hze,Object.assign({ref:r,className:s_("typography-small1 text-text-contrast-max",n)},a))}));wze.displayName=hze.displayName;const xze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(cze,Object.assign({ref:r,className:s_(l_({fullwidth:!1}),n)},a))}));xze.displayName=cze.displayName;const _ze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(dze,Object.assign({ref:r,className:s_(l_({fullwidth:!1,variant:"outline"}),"mt-2 sm:mt-0",n)},a))}));_ze.displayName=dze.displayName;const Mze=e.forwardRef(((e,r)=>{const{label:n="Search",required:a=!1}=e,o=o_(e,["label","required"]);return t.jsx(sye,Object.assign({label:n,required:a},o,{ref:r,keepCloseIconOnValue:!0,hasClearIcon:!0,hasSearchIcon:!0,endIcon:null,filterMode:!0,isFloatingLabel:!1,segmentedInput:!1}))})),jze=r.cva(["absolute flex items-center justify-center cursor-pointer","border-l border-l-input-default-stroke","peer-hover:border-l-input-active-stroke","peer-focus:border-l-input-active-stroke","fill-primary","peer-hover:fill-input-filled-text","peer-focus:fill-input-filled-text","stroke-input-default-stroke","peer-hover:stroke-input-active-stroke","peer-focus:stroke-input-filled-text"],{variants:{size:{sm:"p-1 size-[30px]",md:"p-2 size-[38px]",lg:"p-3 size-14"},rounded:{none:"rounded-r-none",normal:"",full:"rounded-r-full"},error:{true:"border-l-input-error"},position:{start:"inset-y-0 left-0",end:"inset-y-0 right-0"},active:{false:"",true:["fill-primary-default","peer-hover:fill-primary-default","peer-focus:fill-primary-hover","stroke-primary-default","peer-hover:stroke-primary-default","peer-focus:stroke-primary-hover"]},disabled:{true:["cursor-default pointer-events-none","border-l-input-disable-stroke","fill-input-disable-stroke","stroke-input-disable-stroke"]}},compoundVariants:[{rounded:"normal",size:"sm",className:"rounded-r-sm"},{rounded:"normal",size:["md","lg"],className:"rounded-r-md"}],defaultVariants:{size:"md",rounded:"normal",error:!1,position:"end",active:!1,disabled:!1}}),Oze=e.forwardRef(((r,n)=>{var{id:a,options:o=[],values:l=[],label:i,size:s="md",rounded:c="normal",variant:d="outline",helperText:u,errorMessage:h,fullwidth:p=!0,disabled:f=!1,error:v=!1,filterMode:m=!1,required:y=!0,onChangeText:g,onSelect:k,renderOptions:b,optionContainerClassName:w}=r,x=o_(r,["id","options","values","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect","renderOptions","optionContainerClassName"]);const _=a||`${i}-select`,[M,j]=e.useState(!1),[O,E]=e.useState(l),[z,C]=e.useState(""),P=e.useRef(""),R=e.useRef(null);e.useEffect((()=>{var e;E(null!=l?l:[]),C(null!==(e=null==l?void 0:l.map((e=>e.label)).join(", "))&&void 0!==e?e:"")}),[l]),e.useEffect((()=>{const e=e=>{R.current&&!R.current.contains(e.target)&&j(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const A=e.useCallback((e=>{null==g||g(e),C(e.target.value),e.target.value||H(e)}),[g]),L=e.useCallback((e=>{const t=O.some((t=>t.value===e.value));let r=[...O];t?r=r.filter((t=>t.value!==e.value)):r.push(e),E(r),C(r.map((e=>e.label)).join(", ")),null==k||k(r)}),[O,k]),I=e.useMemo((()=>{const e=null==z?void 0:z.split(",").pop(),t=null!=e?e:"";return o.filter((e=>{var r;return!m||(null===(r=e.label)||void 0===r?void 0:r.toLowerCase().includes(null==t?void 0:t.toLowerCase()))}))}),[o,m,z]),V=e.useCallback((e=>{var t;j(!0),null===(t=null==x?void 0:x.onFocus)||void 0===t||t.call(x,e)}),[null==x?void 0:x.onFocus]),H=e.useCallback((e=>{const t=I.filter((t=>{var r,n;return t.value===(null===(r=e.target)||void 0===r?void 0:r.value)||t.label===(null===(n=e.target)||void 0===n?void 0:n.value)}));"Enter"!==P.current&&(E(t),C(t.map((e=>e.label)).join(", ")),null==k||k(t))}),[I,z]),S=e.useCallback((e=>{var t;P.current=e.code,null===(t=null==x?void 0:x.onKeyDown)||void 0===t||t.call(x,e)}),[null==x?void 0:x.onKeyDown]),Z=jze({size:s,rounded:c,error:v,active:!!l.length,disabled:f}),N="lg"===s?"size-8":"md"===s?"size-[22px]":"size-[18px]";return t.jsxs("div",{ref:R,className:"relative "+(p?"w-full":""),children:[t.jsx(Mme,Object.assign({hasClearIcon:!1,endIcon:t.jsx(Rme,{type:"heroicons",name:"adjustments-horizontal",variant:"outline",color:"inherit",stroke:"inherit",fill:"transparent",className:N}),classes:{endIconWrapper:Z}},x,{ref:n,readOnly:!m,value:z,onChange:A,label:i,placeholder:" ",type:"text",rounded:c,variant:d,helperText:u,errorMessage:h,fullwidth:p,error:v,required:y,id:_,disabled:f,size:s,className:nye({size:s}),onFocus:V,onKeyDown:S})),M&&(b?b({optionsFiltered:I,selectedOptions:O,onClick:L}):t.jsxs("ul",{className:s_("absolute text-text-g-contrast-high mt-1 w-full bg-modal-surface border border-modal-surface text-text-contrast-low rounded-md shadow-md z-10 max-h-60 overflow-y-auto",w),children:[I.map((r=>r.renderLabel?t.jsx(e.Fragment,{children:r.renderLabel({value:r.value,label:r.label,handleOnClick:()=>L(r),className:"p-4 typography-subtitle4 hover:bg-gray-100 cursor-pointer flex items-center gap-3 "+(O.some((e=>e.value===r.value))?"bg-gray-200":"")})},r.value):t.jsxs("li",{onMouseDown:()=>L(r),className:"p-4 text-text-g-contrast-high typography-subtitle4 hover:bg-primary-hover-bg cursor-pointer flex items-center gap-3 "+(O.some((e=>e.value===r.value))?"bg-modal-highlight":""),children:[t.jsx(Nye,{checked:O.some((e=>e.value===r.value))}),r.label]},r.value))),0===I.length&&t.jsx("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]}))]})}));function Eze(e,[t,r]){return Math.min(r,Math.max(t,e))}var zze=l.createContext(void 0);function Cze(e){const t=l.useContext(zze);return e||t||"ltr"}var Pze=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function Rze(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var Aze=["PageUp","PageDown"],Lze=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ize={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Vze="Slider",[Hze,Sze,Zze]=function(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},Rze(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}(Vze),[Nze,qze]=uye(Vze,[Zze]),[Dze,Bze]=Nze(Vze),Fze=l.forwardRef(((e,r)=>{const{name:n,min:a=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[a],value:h,onValueChange:p=()=>{},onValueCommit:f=()=>{},inverted:v=!1,form:m,...y}=e,g=l.useRef(new Set),k=l.useRef(0),b="horizontal"===s?Uze:Gze,[w=[],x]=vye({prop:h,defaultProp:u,onChange:e=>{const t=[...g.current];t[k.current]?.focus(),p(e)}}),_=l.useRef(w);function M(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(i),l=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/i)*i+a,n),s=Eze(l,[a,o]);x(((e=[])=>{const n=function(e=[],t,r){const n=[...e];return n[r]=t,n.sort(((e,t)=>e-t))}(e,s,t);if(function(e,t){if(t>0){const r=function(e){return e.slice(0,-1).map(((t,r)=>e[r+1]-t))}(e);return Math.min(...r)>=t}return!0}(n,d*i)){k.current=n.indexOf(s);const t=String(n)!==String(e);return t&&r&&f(n),t?n:e}return e}))}return t.jsx(Dze,{scope:e.__scopeSlider,name:n,disabled:c,min:a,max:o,valueIndexToChangeRef:k,thumbs:g.current,values:w,orientation:s,form:m,children:t.jsx(Hze.Provider,{scope:e.__scopeSlider,children:t.jsx(Hze.Slot,{scope:e.__scopeSlider,children:t.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...y,ref:r,onPointerDown:pye(y.onPointerDown,(()=>{c||(_.current=w)})),min:a,max:o,inverted:v,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const r=e.map((e=>Math.abs(e-t))),n=Math.min(...r);return r.indexOf(n)}(w,e);M(e,t)},onSlideMove:c?void 0:function(e){M(e,k.current)},onSlideEnd:c?void 0:function(){const e=_.current[k.current];w[k.current]!==e&&f(w)},onHomeKeyDown:()=>!c&&M(a,0,{commit:!0}),onEndKeyDown:()=>!c&&M(o,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const r=Aze.includes(e.key)||e.shiftKey&&Lze.includes(e.key)?10:1,n=k.current;M(w[n]+i*r*t,n,{commit:!0})}}})})})})}));Fze.displayName=Vze;var[Tze,Wze]=Nze(Vze,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Uze=l.forwardRef(((e,r)=>{const{min:n,max:a,dir:o,inverted:i,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:u,...h}=e,[p,f]=l.useState(null),v=dye(r,(e=>f(e))),m=l.useRef(),y=Cze(o),g="ltr"===y,k=g&&!i||!g&&i;function b(e){const t=m.current||p.getBoundingClientRect(),r=aCe([0,t.width],k?[n,a]:[a,n]);return m.current=t,r(e-t.left)}return t.jsx(Tze,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:t.jsx($ze,{dir:y,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);s?.(t)},onSlideMove:e=>{const t=b(e.clientX);c?.(t)},onSlideEnd:()=>{m.current=void 0,d?.()},onStepKeyDown:e=>{const t=Ize[k?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),Gze=l.forwardRef(((e,r)=>{const{min:n,max:a,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:d,...u}=e,h=l.useRef(null),p=dye(r,h),f=l.useRef(),v=!o;function m(e){const t=f.current||h.current.getBoundingClientRect(),r=aCe([0,t.height],v?[a,n]:[n,a]);return f.current=t,r(e-t.top)}return t.jsx(Tze,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:t.jsx($ze,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);i?.(t)},onSlideMove:e=>{const t=m(e.clientY);s?.(t)},onSlideEnd:()=>{f.current=void 0,c?.()},onStepKeyDown:e=>{const t=Ize[v?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),$ze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,onSlideStart:a,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...d}=e,u=Bze(Vze,n);return t.jsx(Pze.span,{...d,ref:r,onKeyDown:pye(e.onKeyDown,(e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Aze.concat(Lze).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:pye(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():a(e)})),onPointerMove:pye(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:pye(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))}))})})),Yze="SliderTrack",Kze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,...a}=e,o=Bze(Yze,n);return t.jsx(Pze.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...a,ref:r})}));Kze.displayName=Yze;var Xze="SliderRange",Qze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,...a}=e,o=Bze(Xze,n),i=Wze(Xze,n),s=dye(r,l.useRef(null)),c=o.values.length,d=o.values.map((e=>nCe(e,o.min,o.max))),u=c>1?Math.min(...d):0,h=100-Math.max(...d);return t.jsx(Pze.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...a,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:h+"%"}})}));Qze.displayName=Xze;var Jze="SliderThumb",eCe=l.forwardRef(((e,r)=>{const n=Sze(e.__scopeSlider),[a,o]=l.useState(null),i=dye(r,(e=>o(e))),s=l.useMemo((()=>a?n().findIndex((e=>e.ref.current===a)):-1),[n,a]);return t.jsx(tCe,{...e,ref:i,index:s})})),tCe=l.forwardRef(((e,r)=>{const{__scopeSlider:n,index:a,name:o,...i}=e,s=Bze(Jze,n),c=Wze(Jze,n),[d,u]=l.useState(null),h=dye(r,(e=>u(e))),p=!d||(s.form||!!d.closest("form")),f=yye(d),v=s.values[a],m=void 0===v?0:nCe(v,s.min,s.max),y=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,s.values.length),g=f?.[c.size],k=g?function(e,t,r){const n=e/2,a=aCe([0,50],[0,n]);return(n-a(t)*r)*r}(g,m,c.direction):0;return l.useEffect((()=>{if(d)return s.thumbs.add(d),()=>{s.thumbs.delete(d)}}),[d,s.thumbs]),t.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${m}% + ${k}px)`},children:[t.jsx(Hze.ItemSlot,{scope:e.__scopeSlider,children:t.jsx(Pze.span,{role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":s.min,"aria-valuenow":v,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:h,style:void 0===v?{display:"none"}:e.style,onFocus:pye(e.onFocus,(()=>{s.valueIndexToChangeRef.current=a}))})}),p&&t.jsx(rCe,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:v},a)]})}));eCe.displayName=Jze;var rCe=e=>{const{value:r,...n}=e,a=l.useRef(null),o=mye(r);return l.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(o!==r&&n){const t=new Event("input",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[o,r]),t.jsx("input",{style:{display:"none"},...n,ref:a,defaultValue:r})};function nCe(e,t,r){return Eze(100/(r-t)*(e-t),[0,100])}function aCe(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var oCe=Fze,lCe=Kze,iCe=Qze,sCe=eCe;const cCe=l.forwardRef(((e,r)=>{var{className:n,trackClassName:a,rangeClassName:o,thumbClassName:l,thumbStyle:i,trackStyle:s,rangeStyle:c}=e,d=o_(e,["className","trackClassName","rangeClassName","thumbClassName","thumbStyle","trackStyle","rangeStyle"]);return t.jsxs(oCe,Object.assign({ref:r,className:s_("relative flex w-full touch-none select-none items-center",n)},d,{children:[t.jsx(lCe,{className:s_("relative h-2 w-full grow overflow-hidden rounded-full bg-grey-50",a),style:s,children:t.jsx(iCe,{className:s_("absolute h-full bg-primary",o),style:c})}),t.jsx(sCe,{className:s_("block h-5 w-5 cursor-pointer rounded-full border-[3px] border-primary bg-bg-bg1 outline-none ring-0 transition-colors disabled:pointer-events-none disabled:opacity-50",l),style:i})]}))}));cCe.displayName=oCe.displayName;var dCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),uCe="Switch",[hCe,pCe]=uye(uCe),[fCe,vCe]=hCe(uCe),mCe=l.forwardRef(((e,r)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:i,required:s,disabled:c,value:d="on",onCheckedChange:u,form:h,...p}=e,[f,v]=l.useState(null),m=dye(r,(e=>v(e))),y=l.useRef(!1),g=!f||(h||!!f.closest("form")),[k=!1,b]=vye({prop:o,defaultProp:i,onChange:u});return t.jsxs(fCe,{scope:n,checked:k,disabled:c,children:[t.jsx(dCe.button,{type:"button",role:"switch","aria-checked":k,"aria-required":s,"data-state":bCe(k),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:m,onClick:pye(e.onClick,(e=>{b((e=>!e)),g&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),g&&t.jsx(kCe,{control:f,bubbles:!y.current,name:a,value:d,checked:k,required:s,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})}));mCe.displayName=uCe;var yCe="SwitchThumb",gCe=l.forwardRef(((e,r)=>{const{__scopeSwitch:n,...a}=e,o=vCe(yCe,n);return t.jsx(dCe.span,{"data-state":bCe(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:r})}));gCe.displayName=yCe;var kCe=e=>{const{control:r,checked:n,bubbles:a=!0,...o}=e,i=l.useRef(null),s=mye(n),c=yye(r);return l.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[s,n,a]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bCe(e){return e?"checked":"unchecked"}var wCe=mCe,xCe=gCe;const _Ce=r.cva(["group relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center overflow-visible px-1","before:pointer-events-none before:absolute before:left-1 before:top-1/2 before:h-3 before:w-8 before:-translate-y-1/2 before:rounded-full before:transition-colors","data-[state=unchecked]:before:bg-[var(--switch-default-color)] hover:data-[state=unchecked]:before:bg-[var(--switch-hover-color)]","data-[state=checked]:before:bg-[var(--switch-active-color)] hover:data-[state=checked]:before:bg-[var(--switch-active-hover-color)]","data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:before:!bg-[var(--switch-disabled-color)]"],{variants:{forceHover:{true:"data-[state=unchecked]:before:bg-[var(--switch-hover-color)] data-[state=checked]:before:bg-[var(--switch-active-hover-color)]",false:""}},defaultVariants:{forceHover:!1}}),MCe=r.cva(["relative isolate block size-4 rounded-full [filter:var(--switch-thumb-filter)] transition-[transform,background-color,color,filter]","data-[state=unchecked]:bg-[var(--switch-thumb-default-color)] data-[state=unchecked]:translate-x-0","data-[state=checked]:bg-[var(--switch-thumb-active-color)] data-[state=checked]:translate-x-4","data-[state=unchecked]:text-[var(--state-tertiary-hover-bg)] data-[state=checked]:text-[var(--state-primary-hover-bg)]","group-hover:[&_.switch-thumb-halo]:opacity-100 group-hover:data-[state=checked]:bg-[var(--switch-thumb-active-hover-color)] group-hover:data-[state=unchecked]:bg-[var(--switch-thumb-hover-color)]","group-disabled:!bg-[var(--switch-thumb-disabled-color)] group-disabled:[&_.switch-thumb-halo]:opacity-0"],{variants:{forceHover:{true:"[&_.switch-thumb-halo]:opacity-100 data-[state=unchecked]:bg-[var(--switch-thumb-hover-color)] data-[state=checked]:bg-[var(--switch-thumb-active-hover-color)]",false:""}},defaultVariants:{forceHover:!1}}),jCe=r.cva(["switch-thumb-halo pointer-events-none absolute left-0 top-0.5 -z-10 block size-6 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity"]),OCe=l.forwardRef(((e,r)=>{var{className:n,forceHover:a=!1}=e,o=o_(e,["className","forceHover"]);return t.jsx(wCe,Object.assign({className:s_(_Ce({forceHover:a}),n)},o,{ref:r,children:t.jsx(xCe,{className:MCe({forceHover:a}),children:t.jsx("span",{"aria-hidden":!0,className:jCe(),children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[t.jsx("g",{filter:"url(#switch-hover-halo-shadow)",children:t.jsx("circle",{cx:"20",cy:"18",r:"12",fill:"currentColor",shapeRendering:"crispEdges"})}),t.jsx("defs",{children:t.jsxs("filter",{id:"switch-hover-halo-shadow",x:"0",y:"0",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"2"}),t.jsx("feGaussianBlur",{stdDeviation:"4"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.568627 0 0 0 0 0.619608 0 0 0 0 0.670588 0 0 0 0.24 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})})})}))}));OCe.displayName=wCe.displayName;var ECe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function zCe(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}function CCe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}function PCe(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},CCe(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}var RCe,ACe="dismissableLayer.update",LCe="dismissableLayer.pointerDownOutside",ICe="dismissableLayer.focusOutside",VCe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),HCe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(VCe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){ZCe(LCe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){ZCe(ICe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(RCe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),SCe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=RCe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),SCe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(ACe,e),()=>document.removeEventListener(ACe,e)}),[]),t.jsx(ECe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));HCe.displayName="DismissableLayer";function SCe(){const e=new CustomEvent(ACe);document.dispatchEvent(e)}function ZCe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?zCe(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(VCe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(ECe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var NCe="focusScope.autoFocusOnMount",qCe="focusScope.autoFocusOnUnmount",DCe={bubbles:!1,cancelable:!0},BCe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:UCe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||UCe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&UCe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){GCe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(NCe,DCe);c.addEventListener(NCe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(UCe(n,{select:t}),document.activeElement!==r)return}((e=FCe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&UCe(c))}return()=>{c.removeEventListener(NCe,u),setTimeout((()=>{const e=new CustomEvent(qCe,DCe);c.addEventListener(qCe,h),c.dispatchEvent(e),e.defaultPrevented||UCe(t??document.body,{select:!0}),c.removeEventListener(qCe,h),GCe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=FCe(e),r=TCe(t,e),n=TCe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&UCe(o,{select:!0})):(e.preventDefault(),n&&UCe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(ECe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function FCe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function TCe(e,t){for(const r of e)if(!WCe(r,{upTo:t}))return r}function WCe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function UCe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}BCe.displayName="FocusScope";var GCe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=$Ce(e,t),e.unshift(t)},remove(t){e=$Ce(e,t),e[0]?.resume()}}}();function $Ce(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var YCe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(ECe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));YCe.displayName="Arrow";var KCe=YCe;function XCe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var QCe="Popper",[JCe,ePe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},XCe(a,...r)]}(QCe),[tPe,rPe]=JCe(QCe),nPe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(tPe,{scope:r,anchor:a,onAnchorChange:o,children:n})};nPe.displayName=QCe;var aPe="PopperAnchor",oPe=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=rPe(aPe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(ECe.div,{...o,ref:c})}));oPe.displayName=aPe;var lPe="PopperContent",[iPe,sPe]=JCe(lPe),cPe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=rPe(lPe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(pPe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),fPe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=vPe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(iPe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(ECe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));cPe.displayName=lPe;var dPe="PopperArrow",uPe={top:"bottom",right:"left",bottom:"top",left:"right"},hPe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=sPe(dPe,n),l=uPe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(KCe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function pPe(e){return null!==e}hPe.displayName=dPe;var fPe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=vPe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function vPe(e){const[t,r="center"]=e.split("-");return[t,r]}var mPe=nPe,yPe=oPe,gPe=cPe,kPe=hPe,bPe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(ECe.div,{...o,ref:r}),c):null}));bPe.displayName="Portal";var wPe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=xPe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=xPe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=xPe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=xPe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function xPe(e){return e?.animationName||"none"}function _Pe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}wPe.displayName="Presence";var MPe="rovingFocusGroup.onEntryFocus",jPe={bubbles:!1,cancelable:!0},OPe="RovingFocusGroup",[EPe,zPe,CPe]=PCe(OPe),[PPe,RPe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},_Pe(a,...r)]}(OPe,[CPe]),[APe,LPe]=PPe(OPe),IPe=l.forwardRef(((e,r)=>t.jsx(EPe.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(EPe.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(VPe,{...e,ref:r})})})));IPe.displayName=OPe;var VPe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...p}=e,f=l.useRef(null),v=dye(r,f),m=Cze(i),[y=null,g]=vye({prop:s,defaultProp:c,onChange:d}),[k,b]=l.useState(!1),w=fye(u),x=zPe(n),_=l.useRef(!1),[M,j]=l.useState(0);return l.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(MPe,w),()=>e.removeEventListener(MPe,w)}),[w]),t.jsx(APe,{scope:n,orientation:a,dir:m,loop:o,currentTabStopId:y,onItemFocus:l.useCallback((e=>g(e)),[g]),onItemShiftTab:l.useCallback((()=>b(!0)),[]),onFocusableItemAdd:l.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:l.useCallback((()=>j((e=>e-1))),[]),children:t.jsx(ECe.div,{tabIndex:k||0===M?-1:0,"data-orientation":a,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:pye(e.onMouseDown,(()=>{_.current=!0})),onFocus:pye(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent(MPe,jPe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));NPe([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}_.current=!1})),onBlur:pye(e.onBlur,(()=>b(!1)))})})})),HPe="RovingFocusGroupItem",SPe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:i,...s}=e,c=Ybe(),d=i||c,u=LPe(HPe,n),h=u.currentTabStopId===d,p=zPe(n),{onFocusableItemAdd:f,onFocusableItemRemove:v}=u;return l.useEffect((()=>{if(a)return f(),()=>v()}),[a,f,v]),t.jsx(EPe.ItemSlot,{scope:n,id:d,focusable:a,active:o,children:t.jsx(ECe.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...s,ref:r,onMouseDown:pye(e.onMouseDown,(e=>{a?u.onItemFocus(d):e.preventDefault()})),onFocus:pye(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:pye(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:ZPe[n]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=u.loop?(n=o+1,(r=a).map(((e,t)=>r[(n+t)%r.length]))):a.slice(o+1)}setTimeout((()=>NPe(a)))}var r,n}))})})}));SPe.displayName=HPe;var ZPe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function NPe(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var qPe=IPe,DPe=SPe,BPe=["Enter"," "],FPe=["ArrowUp","PageDown","End"],TPe=["ArrowDown","PageUp","Home",...FPe],WPe={ltr:[...BPe,"ArrowRight"],rtl:[...BPe,"ArrowLeft"]},UPe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},GPe="Menu",[$Pe,YPe,KPe]=PCe(GPe),[XPe,QPe]=uye(GPe,[KPe,ePe,RPe]),JPe=ePe(),eRe=RPe(),[tRe,rRe]=XPe(GPe),[nRe,aRe]=XPe(GPe),oRe=e=>{const{__scopeMenu:r,open:n=!1,children:a,dir:o,onOpenChange:i,modal:s=!0}=e,c=JPe(r),[d,u]=l.useState(null),h=l.useRef(!1),p=fye(i),f=Cze(o);return l.useEffect((()=>{const e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),t.jsx(mPe,{...c,children:t.jsx(tRe,{scope:r,open:n,onOpenChange:p,content:d,onContentChange:u,children:t.jsx(nRe,{scope:r,onClose:l.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:h,dir:f,modal:s,children:a})})})};oRe.displayName=GPe;var lRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e,o=JPe(n);return t.jsx(yPe,{...o,...a,ref:r})}));lRe.displayName="MenuAnchor";var iRe="MenuPortal",[sRe,cRe]=XPe(iRe,{forceMount:void 0}),dRe=e=>{const{__scopeMenu:r,forceMount:n,children:a,container:o}=e,l=rRe(iRe,r);return t.jsx(sRe,{scope:r,forceMount:n,children:t.jsx(wPe,{present:n||l.open,children:t.jsx(bPe,{asChild:!0,container:o,children:a})})})};dRe.displayName=iRe;var uRe="MenuContent",[hRe,pRe]=XPe(uRe),fRe=l.forwardRef(((e,r)=>{const n=cRe(uRe,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,l=rRe(uRe,e.__scopeMenu),i=aRe(uRe,e.__scopeMenu);return t.jsx($Pe.Provider,{scope:e.__scopeMenu,children:t.jsx(wPe,{present:a||l.open,children:t.jsx($Pe.Slot,{scope:e.__scopeMenu,children:i.modal?t.jsx(vRe,{...o,ref:r}):t.jsx(mRe,{...o,ref:r})})})})})),vRe=l.forwardRef(((e,r)=>{const n=rRe(uRe,e.__scopeMenu),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(yRe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),mRe=l.forwardRef(((e,r)=>{const n=rRe(uRe,e.__scopeMenu);return t.jsx(yRe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),yRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,onDismiss:v,disableOutsideScroll:m,...y}=e,g=rRe(uRe,n),k=aRe(uRe,n),b=JPe(n),w=eRe(n),x=YPe(n),[_,M]=l.useState(null),j=l.useRef(null),O=dye(r,j,g.onContentChange),E=l.useRef(0),z=l.useRef(""),C=l.useRef(0),P=l.useRef(null),R=l.useRef("right"),A=l.useRef(0),L=m?F_e:l.Fragment,I=m?{as:bye,allowPinchZoom:!0}:void 0,V=e=>{const t=z.current+e,r=x().filter((e=>!e.disabled)),n=document.activeElement,a=r.find((e=>e.ref.current===n))?.textValue,o=function(e,t,r){const n=t.length>1&&Array.from(t).every((e=>e===t[0])),a=n?t[0]:t,o=r?e.indexOf(r):-1;let l=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===a.length&&(l=l.filter((e=>e!==r)));const c=l.find((e=>e.toLowerCase().startsWith(a.toLowerCase())));return c!==r?c:void 0}(r.map((e=>e.textValue)),t,a),l=r.find((e=>e.textValue===o))?.ref.current;!function e(t){z.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout((()=>e("")),1e3))}(t),l&&setTimeout((()=>l.focus()))};l.useEffect((()=>()=>window.clearTimeout(E.current)),[]),Vbe();const H=l.useCallback((e=>R.current===P.current?.side&&function(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return function(e,t){const{x:r,y:n}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const l=t[e].x,i=t[e].y,s=t[o].x,c=t[o].y;i>n!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,t)}(e,P.current?.area)),[]);return t.jsx(hRe,{scope:n,searchRef:z,onItemEnter:l.useCallback((e=>{H(e)&&e.preventDefault()}),[H]),onItemLeave:l.useCallback((e=>{H(e)||(j.current?.focus(),M(null))}),[H]),onTriggerLeave:l.useCallback((e=>{H(e)&&e.preventDefault()}),[H]),pointerGraceTimerRef:C,onPointerGraceIntentChange:l.useCallback((e=>{P.current=e}),[]),children:t.jsx(L,{...I,children:t.jsx(BCe,{asChild:!0,trapped:o,onMountAutoFocus:pye(i,(e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:t.jsx(HCe,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,onDismiss:v,children:t.jsx(qPe,{asChild:!0,...w,dir:k.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:pye(d,(e=>{k.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:t.jsx(gPe,{role:"menu","aria-orientation":"vertical","data-state":WRe(g.open),"data-radix-menu-content":"",dir:k.dir,...b,...y,ref:O,style:{outline:"none",...y.style},onKeyDown:pye(y.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&V(e.key));const a=j.current;if(e.target!==a)return;if(!TPe.includes(e.key))return;e.preventDefault();const o=x().filter((e=>!e.disabled)).map((e=>e.ref.current));FPe.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus(),document.activeElement!==t)return}}(o)})),onBlur:pye(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),z.current="")})),onPointerMove:pye(e.onPointerMove,$Re((e=>{const t=e.target,r=A.current!==e.clientX;if(e.currentTarget.contains(t)&&r){const t=e.clientX>A.current?"right":"left";R.current=t,A.current=e.clientX}})))})})})})})})}));fRe.displayName=uRe;var gRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{role:"group",...a,ref:r})}));gRe.displayName="MenuGroup";var kRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{...a,ref:r})}));kRe.displayName="MenuLabel";var bRe="MenuItem",wRe="menu.itemSelect",xRe=l.forwardRef(((e,r)=>{const{disabled:n=!1,onSelect:a,...o}=e,i=l.useRef(null),s=aRe(bRe,e.__scopeMenu),c=pRe(bRe,e.__scopeMenu),d=dye(r,i),u=l.useRef(!1);return t.jsx(_Re,{...o,ref:d,disabled:n,onClick:pye(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(wRe,{bubbles:!0,cancelable:!0});e.addEventListener(wRe,(e=>a?.(e)),{once:!0}),zCe(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:pye(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:pye(e.onKeyDown,(e=>{const t=""!==c.searchRef.current;n||t&&" "===e.key||BPe.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));xRe.displayName=bRe;var _Re=l.forwardRef(((e,r)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...i}=e,s=pRe(bRe,n),c=eRe(n),d=l.useRef(null),u=dye(r,d),[h,p]=l.useState(!1),[f,v]=l.useState("");return l.useEffect((()=>{const e=d.current;e&&v((e.textContent??"").trim())}),[i.children]),t.jsx($Pe.ItemSlot,{scope:n,disabled:a,textValue:o??f,children:t.jsx(DPe,{asChild:!0,...c,focusable:!a,children:t.jsx(ECe.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:u,onPointerMove:pye(e.onPointerMove,$Re((e=>{if(a)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:pye(e.onPointerLeave,$Re((e=>s.onItemLeave(e)))),onFocus:pye(e.onFocus,(()=>p(!0))),onBlur:pye(e.onBlur,(()=>p(!1)))})})})})),MRe=l.forwardRef(((e,r)=>{const{checked:n=!1,onCheckedChange:a,...o}=e;return t.jsx(ARe,{scope:e.__scopeMenu,checked:n,children:t.jsx(xRe,{role:"menuitemcheckbox","aria-checked":URe(n)?"mixed":n,...o,ref:r,"data-state":GRe(n),onSelect:pye(o.onSelect,(()=>a?.(!!URe(n)||!n)),{checkForDefaultPrevented:!1})})})}));MRe.displayName="MenuCheckboxItem";var jRe="MenuRadioGroup",[ORe,ERe]=XPe(jRe,{value:void 0,onValueChange:()=>{}}),zRe=l.forwardRef(((e,r)=>{const{value:n,onValueChange:a,...o}=e,l=fye(a);return t.jsx(ORe,{scope:e.__scopeMenu,value:n,onValueChange:l,children:t.jsx(gRe,{...o,ref:r})})}));zRe.displayName=jRe;var CRe="MenuRadioItem",PRe=l.forwardRef(((e,r)=>{const{value:n,...a}=e,o=ERe(CRe,e.__scopeMenu),l=n===o.value;return t.jsx(ARe,{scope:e.__scopeMenu,checked:l,children:t.jsx(xRe,{role:"menuitemradio","aria-checked":l,...a,ref:r,"data-state":GRe(l),onSelect:pye(a.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));PRe.displayName=CRe;var RRe="MenuItemIndicator",[ARe,LRe]=XPe(RRe,{checked:!1}),IRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,forceMount:a,...o}=e,l=LRe(RRe,n);return t.jsx(wPe,{present:a||URe(l.checked)||!0===l.checked,children:t.jsx(ECe.span,{...o,ref:r,"data-state":GRe(l.checked)})})}));IRe.displayName=RRe;var VRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{role:"separator","aria-orientation":"horizontal",...a,ref:r})}));VRe.displayName="MenuSeparator";var HRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e,o=JPe(n);return t.jsx(kPe,{...o,...a,ref:r})}));HRe.displayName="MenuArrow";var SRe="MenuSub",[ZRe,NRe]=XPe(SRe),qRe=e=>{const{__scopeMenu:r,children:n,open:a=!1,onOpenChange:o}=e,i=rRe(SRe,r),s=JPe(r),[c,d]=l.useState(null),[u,h]=l.useState(null),p=fye(o);return l.useEffect((()=>(!1===i.open&&p(!1),()=>p(!1))),[i.open,p]),t.jsx(mPe,{...s,children:t.jsx(tRe,{scope:r,open:a,onOpenChange:p,content:u,onContentChange:h,children:t.jsx(ZRe,{scope:r,contentId:Ybe(),triggerId:Ybe(),trigger:c,onTriggerChange:d,children:n})})})};qRe.displayName=SRe;var DRe="MenuSubTrigger",BRe=l.forwardRef(((e,r)=>{const n=rRe(DRe,e.__scopeMenu),a=aRe(DRe,e.__scopeMenu),o=NRe(DRe,e.__scopeMenu),i=pRe(DRe,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=i,u={__scopeMenu:e.__scopeMenu},h=l.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return l.useEffect((()=>h),[h]),l.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),d(null)}}),[c,d]),t.jsx(lRe,{asChild:!0,...u,children:t.jsx(_Re,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":WRe(n.open),...e,ref:cye(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:pye(e.onPointerMove,$Re((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),h()}),100))}))),onPointerLeave:pye(e.onPointerLeave,$Re((e=>{h();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,a="right"===r,o=a?-5:5,l=t[a?"left":"right"],s=t[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:l,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:pye(e.onKeyDown,(t=>{const r=""!==i.searchRef.current;e.disabled||r&&" "===t.key||WPe[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));BRe.displayName=DRe;var FRe="MenuSubContent",TRe=l.forwardRef(((e,r)=>{const n=cRe(uRe,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,i=rRe(uRe,e.__scopeMenu),s=aRe(uRe,e.__scopeMenu),c=NRe(FRe,e.__scopeMenu),d=l.useRef(null),u=dye(r,d);return t.jsx($Pe.Provider,{scope:e.__scopeMenu,children:t.jsx(wPe,{present:a||i.open,children:t.jsx($Pe.Slot,{scope:e.__scopeMenu,children:t.jsx(yRe,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:pye(e.onFocusOutside,(e=>{e.target!==c.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:pye(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:pye(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=UPe[s.dir].includes(e.key);t&&r&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function WRe(e){return e?"open":"closed"}function URe(e){return"indeterminate"===e}function GRe(e){return URe(e)?"indeterminate":e?"checked":"unchecked"}function $Re(e){return t=>"mouse"===t.pointerType?e(t):void 0}TRe.displayName=FRe;var YRe=oRe,KRe=lRe,XRe=dRe,QRe=fRe,JRe=gRe,eAe=kRe,tAe=xRe,rAe=MRe,nAe=zRe,aAe=PRe,oAe=IRe,lAe=VRe,iAe=HRe,sAe=qRe,cAe=BRe,dAe=TRe,uAe="DropdownMenu",[hAe,pAe]=uye(uAe,[QPe]),fAe=QPe(),[vAe,mAe]=hAe(uAe),yAe=e=>{const{__scopeDropdownMenu:r,children:n,dir:a,open:o,defaultOpen:i,onOpenChange:s,modal:c=!0}=e,d=fAe(r),u=l.useRef(null),[h=!1,p]=vye({prop:o,defaultProp:i,onChange:s});return t.jsx(vAe,{scope:r,triggerId:Ybe(),triggerRef:u,contentId:Ybe(),open:h,onOpenChange:p,onOpenToggle:l.useCallback((()=>p((e=>!e))),[p]),modal:c,children:t.jsx(YRe,{...d,open:h,onOpenChange:p,dir:a,modal:c,children:n})})};yAe.displayName=uAe;var gAe="DropdownMenuTrigger",kAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,l=mAe(gAe,n),i=fAe(n);return t.jsx(KRe,{asChild:!0,...i,children:t.jsx(ECe.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:cye(r,l.triggerRef),onPointerDown:pye(e.onPointerDown,(e=>{a||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())})),onKeyDown:pye(e.onKeyDown,(e=>{a||(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));kAe.displayName=gAe;var bAe=e=>{const{__scopeDropdownMenu:r,...n}=e,a=fAe(r);return t.jsx(XRe,{...a,...n})};bAe.displayName="DropdownMenuPortal";var wAe="DropdownMenuContent",xAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=mAe(wAe,n),i=fAe(n),s=l.useRef(!1);return t.jsx(QRe,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...a,ref:r,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:pye(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.modal&&!n||(s.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)"}})}));xAe.displayName=wAe;var _Ae=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(JRe,{...o,...a,ref:r})}));_Ae.displayName="DropdownMenuGroup";var MAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(eAe,{...o,...a,ref:r})}));MAe.displayName="DropdownMenuLabel";var jAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(tAe,{...o,...a,ref:r})}));jAe.displayName="DropdownMenuItem";var OAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(rAe,{...o,...a,ref:r})}));OAe.displayName="DropdownMenuCheckboxItem";var EAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(nAe,{...o,...a,ref:r})}));EAe.displayName="DropdownMenuRadioGroup";var zAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(aAe,{...o,...a,ref:r})}));zAe.displayName="DropdownMenuRadioItem";var CAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(oAe,{...o,...a,ref:r})}));CAe.displayName="DropdownMenuItemIndicator";var PAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(lAe,{...o,...a,ref:r})}));PAe.displayName="DropdownMenuSeparator";l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(iAe,{...o,...a,ref:r})})).displayName="DropdownMenuArrow";var RAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(cAe,{...o,...a,ref:r})}));RAe.displayName="DropdownMenuSubTrigger";var AAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(dAe,{...o,...a,ref:r,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)"}})}));AAe.displayName="DropdownMenuSubContent";var LAe=bAe,IAe=xAe,VAe=MAe,HAe=jAe,SAe=OAe,ZAe=zAe,NAe=CAe,qAe=PAe,DAe=RAe,BAe=AAe;const FAe=yAe,TAe=kAe,WAe=_Ae,UAe=LAe,GAe=e=>{const{__scopeDropdownMenu:r,children:n,open:a,onOpenChange:o,defaultOpen:l}=e,i=fAe(r),[s=!1,c]=vye({prop:a,defaultProp:l,onChange:o});return t.jsx(sAe,{...i,open:s,onOpenChange:c,children:n})},$Ae=EAe,YAe=l.forwardRef(((e,r)=>{var{className:n,inset:a,children:o}=e,l=o_(e,["className","inset","children"]);return t.jsxs(DAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",a&&"pl-8",n)},l,{children:[o,t.jsx(Rme,{type:"heroicons",name:"chevron-right",className:"ml-auto h-4 w-4"})]}))}));YAe.displayName=DAe.displayName;const KAe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(BAe,Object.assign({ref:r,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-contrast-low 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)},a,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},a.style)}))}));KAe.displayName=BAe.displayName;const XAe=l.forwardRef(((e,r)=>{var{className:n,sideOffset:a=4}=e,o=o_(e,["className","sideOffset"]);return t.jsx(LAe,{children:t.jsx(IAe,Object.assign({ref:r,sideOffset:a,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-contrast-low 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)},o,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},o.style)}))})}));XAe.displayName=IAe.displayName;const QAe=l.forwardRef(((e,r)=>{var{className:n,inset:a}=e,o=o_(e,["className","inset"]);return t.jsx(HAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",a&&"pl-8",n)},o))}));QAe.displayName=HAe.displayName;const JAe=l.forwardRef(((e,r)=>{var{className:n,children:a,checked:o}=e,l=o_(e,["className","children","checked"]);return t.jsxs(SAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n),checked:o},l,{children:[t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(NAe,{children:t.jsx(Rme,{type:"heroicons",name:"check",className:"size-4"})})}),a]}))}));JAe.displayName=SAe.displayName;const eLe=l.forwardRef(((e,r)=>{var{className:n,children:a}=e,o=o_(e,["className","children"]);return t.jsxs(ZAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n)},o,{children:[t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(NAe,{children:t.jsx(Rme,{type:"heroicons",name:"circle",className:"h-2 w-2 fill-current"})})}),a]}))}));eLe.displayName=ZAe.displayName;const tLe=l.forwardRef(((e,r)=>{var{className:n,inset:a}=e,o=o_(e,["className","inset"]);return t.jsx(VAe,Object.assign({ref:r,className:s_("px-3 py-2 typography-small4 text-text-g-contrast-medium",a&&"pl-8",n)},o))}));tLe.displayName=VAe.displayName;const rLe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(qAe,Object.assign({ref:r,className:s_("-mx-2 my-2 h-px bg-[var(--dropdown-menu-seperator-bg)]",n)},a))}));rLe.displayName=qAe.displayName;const nLe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("span",Object.assign({className:s_("ml-auto text-xs tracking-widest opacity-60",r)},n))};nLe.displayName="DropdownMenuShortcut";var aLe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});var oLe,lLe="dismissableLayer.update",iLe="dismissableLayer.pointerDownOutside",sLe="dismissableLayer.focusOutside",cLe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dLe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(cLe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){hLe(iLe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){hLe(sLe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(oLe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),uLe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=oLe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),uLe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(lLe,e),()=>document.removeEventListener(lLe,e)}),[]),t.jsx(aLe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));dLe.displayName="DismissableLayer";function uLe(){const e=new CustomEvent(lLe);document.dispatchEvent(e)}function hLe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(cLe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(aLe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var pLe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(aLe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));pLe.displayName="Arrow";var fLe=pLe;function vLe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var mLe="Popper",[yLe,gLe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},vLe(a,...r)]}(mLe),[kLe,bLe]=yLe(mLe),wLe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(kLe,{scope:r,anchor:a,onAnchorChange:o,children:n})};wLe.displayName=mLe;var xLe="PopperAnchor",_Le=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=bLe(xLe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(aLe.div,{...o,ref:c})}));_Le.displayName=xLe;var MLe="PopperContent",[jLe,OLe]=yLe(MLe),ELe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=bLe(MLe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(RLe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),ALe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=LLe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(jLe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(aLe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));ELe.displayName=MLe;var zLe="PopperArrow",CLe={top:"bottom",right:"left",bottom:"top",left:"right"},PLe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=OLe(zLe,n),l=CLe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(fLe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function RLe(e){return null!==e}PLe.displayName=zLe;var ALe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=LLe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function LLe(e){const[t,r="center"]=e.split("-");return[t,r]}var ILe=wLe,VLe=_Le,HLe=ELe,SLe=PLe;var ZLe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=NLe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=NLe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=NLe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=NLe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function NLe(e){return e?.animationName||"none"}ZLe.displayName="Presence";var qLe=l.forwardRef(((e,r)=>t.jsx(aLe.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));qLe.displayName="VisuallyHidden";var DLe=qLe,[BLe,FLe]=uye("Tooltip",[gLe]),TLe=gLe(),WLe="TooltipProvider",ULe=700,GLe="tooltip.open",[$Le,YLe]=BLe(WLe),KLe=e=>{const{__scopeTooltip:r,delayDuration:n=ULe,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:i}=e,[s,c]=l.useState(!0),d=l.useRef(!1),u=l.useRef(0);return l.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.jsx($Le,{scope:r,isOpenDelayed:s,delayDuration:n,onOpen:l.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:l.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),a)}),[a]),isPointerInTransitRef:d,onPointerInTransitChange:l.useCallback((e=>{d.current=e}),[]),disableHoverableContent:o,children:i})};KLe.displayName=WLe;var XLe="Tooltip",[QLe,JLe]=BLe(XLe),eIe=e=>{const{__scopeTooltip:r,children:n,open:a,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,d=YLe(XLe,e.__scopeTooltip),u=TLe(r),[h,p]=l.useState(null),f=Ybe(),v=l.useRef(0),m=s??d.disableHoverableContent,y=c??d.delayDuration,g=l.useRef(!1),[k=!1,b]=vye({prop:a,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(GLe))):d.onClose(),i?.(e)}}),w=l.useMemo((()=>k?g.current?"delayed-open":"instant-open":"closed"),[k]),x=l.useCallback((()=>{window.clearTimeout(v.current),v.current=0,g.current=!1,b(!0)}),[b]),_=l.useCallback((()=>{window.clearTimeout(v.current),v.current=0,b(!1)}),[b]),M=l.useCallback((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{g.current=!0,b(!0),v.current=0}),y)}),[y,b]);return l.useEffect((()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)}),[]),t.jsx(ILe,{...u,children:t.jsx(QLe,{scope:r,contentId:f,open:k,stateAttribute:w,trigger:h,onTriggerChange:p,onTriggerEnter:l.useCallback((()=>{d.isOpenDelayed?M():x()}),[d.isOpenDelayed,M,x]),onTriggerLeave:l.useCallback((()=>{m?_():(window.clearTimeout(v.current),v.current=0)}),[_,m]),onOpen:x,onClose:_,disableHoverableContent:m,children:n})})};eIe.displayName=XLe;var tIe="TooltipTrigger",rIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,...a}=e,o=JLe(tIe,n),i=YLe(tIe,n),s=TLe(n),c=dye(r,l.useRef(null),o.onTriggerChange),d=l.useRef(!1),u=l.useRef(!1),h=l.useCallback((()=>d.current=!1),[]);return l.useEffect((()=>()=>document.removeEventListener("pointerup",h)),[h]),t.jsx(VLe,{asChild:!0,...s,children:t.jsx(aLe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:c,onPointerMove:pye(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:pye(e.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:pye(e.onPointerDown,(()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})})),onFocus:pye(e.onFocus,(()=>{d.current||o.onOpen()})),onBlur:pye(e.onBlur,o.onClose),onClick:pye(e.onClick,o.onClose)})})}));rIe.displayName=tIe;var[nIe,aIe]=BLe("TooltipPortal",{forceMount:void 0}),oIe="TooltipContent",lIe=l.forwardRef(((e,r)=>{const n=aIe(oIe,e.__scopeTooltip),{forceMount:a=n.forceMount,side:o="top",...l}=e,i=JLe(oIe,e.__scopeTooltip);return t.jsx(ZLe,{present:a||i.open,children:i.disableHoverableContent?t.jsx(dIe,{side:o,...l,ref:r}):t.jsx(iIe,{side:o,...l,ref:r})})})),iIe=l.forwardRef(((e,r)=>{const n=JLe(oIe,e.__scopeTooltip),a=YLe(oIe,e.__scopeTooltip),o=l.useRef(null),i=dye(r,o),[s,c]=l.useState(null),{trigger:d,onClose:u}=n,h=o.current,{onPointerInTransitChange:p}=a,f=l.useCallback((()=>{c(null),p(!1)}),[p]),v=l.useCallback(((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...a,...function(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())]);c(o),p(!0)}),[p]);return l.useEffect((()=>()=>f()),[f]),l.useEffect((()=>{if(d&&h){const e=e=>v(e,h),t=e=>v(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}}),[d,h,v,f]),l.useEffect((()=>{if(s){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||h?.contains(t),a=!function(e,t){const{x:r,y:n}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const l=t[e].x,i=t[e].y,s=t[o].x,c=t[o].y;i>n!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,s);n?f():a&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,h,s,u,f]),t.jsx(dIe,{...e,ref:i})})),[sIe,cIe]=BLe(XLe,{isInside:!1}),dIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,children:a,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,d=JLe(oIe,n),u=TLe(n),{onClose:h}=d;return l.useEffect((()=>(document.addEventListener(GLe,h),()=>document.removeEventListener(GLe,h))),[h]),l.useEffect((()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,h]),t.jsx(dLe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:t.jsxs(HLe,{"data-state":d.stateAttribute,...u,...c,ref:r,style:{...c.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:[t.jsx(xye,{children:a}),t.jsx(sIe,{scope:n,isInside:!0,children:t.jsx(DLe,{id:d.contentId,role:"tooltip",children:o||a})})]})})}));lIe.displayName=oIe;var uIe="TooltipArrow",hIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,...a}=e,o=TLe(n);return cIe(uIe,n).isInside?null:t.jsx(SLe,{...o,...a,ref:r})}));hIe.displayName=uIe;var pIe=lIe;const fIe=KLe,vIe=eIe,mIe=rIe,yIe=hIe,gIe=l.forwardRef(((e,r)=>{var{className:n,sideOffset:a=4}=e,o=o_(e,["className","sideOffset"]);return t.jsx(pIe,Object.assign({ref:r,sideOffset:a,className:s_("z-50 overflow-hidden rounded-md bg-common-black px-3 py-1.5 typography-buttonMS text-common-white shadow-md 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",n)},o))}));function kIe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}gIe.displayName=pIe.displayName;var bIe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function wIe(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}var xIe,_Ie="dismissableLayer.update",MIe="dismissableLayer.pointerDownOutside",jIe="dismissableLayer.focusOutside",OIe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),EIe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(OIe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){PIe(MIe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){PIe(jIe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(xIe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),CIe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=xIe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),CIe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(_Ie,e),()=>document.removeEventListener(_Ie,e)}),[]),t.jsx(bIe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));EIe.displayName="DismissableLayer";var zIe=l.forwardRef(((e,r)=>{const n=l.useContext(OIe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(bIe.div,{...e,ref:o})}));function CIe(){const e=new CustomEvent(_Ie);document.dispatchEvent(e)}function PIe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?wIe(a,o):a.dispatchEvent(o)}zIe.displayName="DismissableLayerBranch";var RIe=EIe,AIe=zIe,LIe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(bIe.div,{...o,ref:r}),c):null}));LIe.displayName="Portal";var IIe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=VIe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=VIe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=VIe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=VIe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function VIe(e){return e?.animationName||"none"}IIe.displayName="Presence";var HIe=l.forwardRef(((e,r)=>t.jsx(bIe.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));HIe.displayName="VisuallyHidden";var SIe="ToastProvider",[ZIe,NIe,qIe]=function(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},kIe(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}("Toast"),[DIe,BIe]=uye("Toast",[qIe]),[FIe,TIe]=DIe(SIe),WIe=e=>{const{__scopeToast:r,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[c,d]=l.useState(null),[u,h]=l.useState(0),p=l.useRef(!1),f=l.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${SIe}\`. Expected non-empty \`string\`.`),t.jsx(ZIe.Provider,{scope:r,children:t.jsx(FIe,{scope:r,label:n,duration:a,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:l.useCallback((()=>h((e=>e+1))),[]),onToastRemove:l.useCallback((()=>h((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:s})})};WIe.displayName=SIe;var UIe="ToastViewport",GIe=["F8"],$Ie="toast.viewportPause",YIe="toast.viewportResume",KIe=l.forwardRef(((e,r)=>{const{__scopeToast:n,hotkey:a=GIe,label:o="Notifications ({hotkey})",...i}=e,s=TIe(UIe,n),c=NIe(n),d=l.useRef(null),u=l.useRef(null),h=l.useRef(null),p=l.useRef(null),f=dye(r,p,s.onViewportChange),v=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=s.toastCount>0;l.useEffect((()=>{const e=e=>{const t=0!==a.length&&a.every((t=>e[t]||e.code===t));t&&p.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[a]),l.useEffect((()=>{const e=d.current,t=p.current;if(m&&e&&t){const r=()=>{if(!s.isClosePausedRef.current){const e=new CustomEvent($Ie);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},n=()=>{if(s.isClosePausedRef.current){const e=new CustomEvent(YIe);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},a=t=>{!e.contains(t.relatedTarget)&&n()},o=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",o),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}}),[m,s.isClosePausedRef]);const y=l.useCallback((({tabbingDirection:e})=>{const t=c().map((t=>{const r=t.ref.current,n=[r,...vVe(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[c]);return l.useEffect((()=>{const e=p.current;if(e){const t=t=>{const r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){const r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void u.current?.focus();const a=y({tabbingDirection:n?"backwards":"forwards"}),o=a.findIndex((e=>e===r));mVe(a.slice(o+1))?t.preventDefault():n?u.current?.focus():h.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[c,y]),t.jsxs(AIe,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&t.jsx(QIe,{ref:u,onFocusFromOutsideViewport:()=>{mVe(y({tabbingDirection:"forwards"}))}}),t.jsx(ZIe.Slot,{scope:n,children:t.jsx(bIe.ol,{tabIndex:-1,...i,ref:f})}),m&&t.jsx(QIe,{ref:h,onFocusFromOutsideViewport:()=>{mVe(y({tabbingDirection:"backwards"}))}})]})}));KIe.displayName=UIe;var XIe="ToastFocusProxy",QIe=l.forwardRef(((e,r)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...o}=e,l=TIe(XIe,n);return t.jsx(HIe,{"aria-hidden":!0,tabIndex:0,...o,ref:r,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!l.viewport?.contains(t)&&a()}})}));QIe.displayName=XIe;var JIe="Toast",eVe=l.forwardRef(((e,r)=>{const{forceMount:n,open:a,defaultOpen:o,onOpenChange:l,...i}=e,[s=!0,c]=vye({prop:a,defaultProp:o,onChange:l});return t.jsx(IIe,{present:n||s,children:t.jsx(nVe,{open:s,...i,ref:r,onClose:()=>c(!1),onPause:fye(e.onPause),onResume:fye(e.onResume),onSwipeStart:pye(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:pye(e.onSwipeMove,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)})),onSwipeCancel:pye(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:pye(e.onSwipeEnd,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),c(!1)}))})})}));eVe.displayName=JIe;var[tVe,rVe]=DIe(JIe,{onClose(){}}),nVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,type:a="foreground",duration:o,open:s,onClose:c,onEscapeKeyDown:d,onPause:u,onResume:h,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:v,onSwipeEnd:m,...y}=e,g=TIe(JIe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),x=l.useRef(null),_=l.useRef(null),M=o||g.duration,j=l.useRef(0),O=l.useRef(M),E=l.useRef(0),{onToastAdd:z,onToastRemove:C}=g,P=fye((()=>{const e=k?.contains(document.activeElement);e&&g.viewport?.focus(),c()})),R=l.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(E.current),j.current=(new Date).getTime(),E.current=window.setTimeout(P,e))}),[P]);l.useEffect((()=>{const e=g.viewport;if(e){const t=()=>{R(O.current),h?.()},r=()=>{const e=(new Date).getTime()-j.current;O.current=O.current-e,window.clearTimeout(E.current),u?.()};return e.addEventListener($Ie,r),e.addEventListener(YIe,t),()=>{e.removeEventListener($Ie,r),e.removeEventListener(YIe,t)}}}),[g.viewport,M,u,h,R]),l.useEffect((()=>{s&&!g.isClosePausedRef.current&&R(M)}),[s,M,g.isClosePausedRef,R]),l.useEffect((()=>(z(),()=>C())),[z,C]);const A=l.useMemo((()=>k?hVe(k):null),[k]);return g.viewport?t.jsxs(t.Fragment,{children:[A&&t.jsx(aVe,{__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite","aria-atomic":!0,children:A}),t.jsx(tVe,{scope:n,onClose:P,children:i.createPortal(t.jsx(ZIe.ItemSlot,{scope:n,children:t.jsx(RIe,{asChild:!0,onEscapeKeyDown:pye(d,(()=>{g.isFocusedToastEscapeKeyDownRef.current||P(),g.isFocusedToastEscapeKeyDownRef.current=!1})),children:t.jsx(bIe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pye(e.onKeyDown,(e=>{"Escape"===e.key&&(d?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,P()))})),onPointerDown:pye(e.onPointerDown,(e=>{0===e.button&&(x.current={x:e.clientX,y:e.clientY})})),onPointerMove:pye(e.onPointerMove,(e=>{if(!x.current)return;const t=e.clientX-x.current.x,r=e.clientY-x.current.y,n=Boolean(_.current),a=["left","right"].includes(g.swipeDirection),o=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,l=a?o(0,t):0,i=a?0:o(0,r),s="touch"===e.pointerType?10:2,c={x:l,y:i},d={originalEvent:e,delta:c};n?(_.current=c,pVe("toast.swipeMove",f,d,{discrete:!1})):fVe(c,g.swipeDirection,s)?(_.current=c,pVe("toast.swipeStart",p,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(x.current=null)})),onPointerUp:pye(e.onPointerUp,(e=>{const t=_.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),_.current=null,x.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};fVe(t,g.swipeDirection,g.swipeThreshold)?pVe("toast.swipeEnd",m,n,{discrete:!0}):pVe("toast.swipeCancel",v,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),g.viewport)})]}):null})),aVe=e=>{const{__scopeToast:r,children:n,...a}=e,o=TIe(JIe,r),[i,s]=l.useState(!1),[c,d]=l.useState(!1);return function(e=()=>{}){const t=fye(e);Jme((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>s(!0))),l.useEffect((()=>{const e=window.setTimeout((()=>d(!0)),1e3);return()=>window.clearTimeout(e)}),[]),c?null:t.jsx(LIe,{asChild:!0,children:t.jsx(HIe,{...a,children:i&&t.jsxs(t.Fragment,{children:[o.label," ",n]})})})},oVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e;return t.jsx(bIe.div,{...a,ref:r})}));oVe.displayName="ToastTitle";var lVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e;return t.jsx(bIe.div,{...a,ref:r})}));lVe.displayName="ToastDescription";var iVe="ToastAction",sVe=l.forwardRef(((e,r)=>{const{altText:n,...a}=e;return n.trim()?t.jsx(uVe,{altText:n,asChild:!0,children:t.jsx(dVe,{...a,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${iVe}\`. Expected non-empty \`string\`.`),null)}));sVe.displayName=iVe;var cVe="ToastClose",dVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e,o=rVe(cVe,n);return t.jsx(uVe,{asChild:!0,children:t.jsx(bIe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,o.onClose)})})}));dVe.displayName=cVe;var uVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,altText:a,...o}=e;return t.jsx(bIe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...o,ref:r})}));function hVe(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,n=""===e.dataset.radixToastAnnounceExclude;if(!r)if(n){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(...hVe(e))}})),t}function pVe(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?wIe(a,o):a.dispatchEvent(o)}var fVe=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return"left"===t||"right"===t?o&&n>r:!o&&a>r};function vVe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mVe(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var yVe=WIe,gVe=KIe,kVe=eVe,bVe=oVe,wVe=lVe,xVe=sVe,_Ve=dVe;const MVe=r.cva(["group pointer-events-auto relative flex w-full","rounded-lg shadow-[0px_8px_16px_0px_rgba(0,0,0,0.08)] px-4 py-3 gap-1","transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full","bg-modal-surface text-text-contrast-low"],{variants:{variant:{default:"",success:"",info:"",warning:"",error:""},showBorder:{true:"",false:"border-transparent"}},compoundVariants:[{variant:"default",showBorder:!0,className:"border"},{variant:"success",showBorder:!0,className:"border border-success-stroke"},{variant:"info",showBorder:!0,className:"border border-info-stroke"},{variant:"warning",showBorder:!0,className:"border border-warning-stroke"},{variant:"error",showBorder:!0,className:"border border-error-stroke"}],defaultVariants:{variant:"success",showBorder:!1}}),jVe=r.cva(["fixed z-[1000] flex w-auto flex-col-reverse px-4"],{variants:{position:{"top-center":"top-[40px] left-0 right-0 justify-self-center","top-left":"top-[40px] left-0 md:left-[40px]","top-right":"top-[40px] right-0 md:right-[40px]","bottom-center":"bottom-[40px] left-0 right-0 justify-self-center","bottom-left":"bottom-[40px] left-0 md:left-[40px]","bottom-right":"bottom-[40px] right-0 md:right-[40px]"}},defaultVariants:{position:"top-center"}}),OVe=r.cva(["flex items-center justify-center mr-2 rounded-full size-7"],{variants:{variant:{default:"text-text-g-contrast-high",success:"bg-success-transparent-8 text-success",info:"bg-info-transparent-8 text-info",warning:"bg-warning-transparent-8 text-warning",error:"bg-error-transparent-8 text-error"}},defaultVariants:{variant:"success"}}),EVe=r.cva(["flex flex-1"],{variants:{contentMode:{horizontal:"items-center flex-row gap-2",vertical:"items-start flex-col gap-0"}},defaultVariants:{contentMode:"vertical"}}),zVe=yVe,CVe=l.forwardRef(((e,r)=>{var{className:n,position:a}=e,o=o_(e,["className","position"]);return t.jsx(gVe,Object.assign({ref:r,className:s_(jVe({position:a}),n)},o))}));CVe.displayName=gVe.displayName;const PVe=l.forwardRef(((e,r)=>{var{className:n,variant:a,showBorder:o}=e,l=o_(e,["className","variant","showBorder"]);return t.jsx(kVe,Object.assign({ref:r,className:s_(MVe({variant:a,showBorder:o}),n)},l))}));PVe.displayName=kVe.displayName;const RVe=l.forwardRef(((e,r)=>{var{className:n,children:a}=e,o=o_(e,["className","children"]);return t.jsx(xVe,Object.assign({ref:r,className:s_("",n)},o,{asChild:!0,children:t.jsx(d_,{variant:"outline",color:"secondary",size:"sm",children:a})}))}));RVe.displayName=xVe.displayName;const AVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(_Ve,Object.assign({ref:r,className:s_("self-center text-text-g-contrast-high",n),"toast-close":""},a,{asChild:!0,children:t.jsx(Tme,{variant:"icon",size:"sm",children:t.jsx(Rme,{type:"heroicons",name:"xmark"})})}))}));AVe.displayName=_Ve.displayName;const LVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(bVe,Object.assign({ref:r,className:s_("typography-subtitle6",n)},a))}));LVe.displayName=bVe.displayName;const IVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(wVe,Object.assign({ref:r,className:s_("typography-subtitle4 text-text-g-contrast-high",n)},a))}));IVe.displayName=wVe.displayName;let VVe=0;const HVe=new Map,SVe=e=>{if(HVe.has(e))return;const t=setTimeout((()=>{HVe.delete(e),DVe({type:"REMOVE_TOAST",toastId:e})}),3e3);HVe.set(e,t)},ZVe=(e,t)=>{switch(t.type){case"ADD_TOAST":return Object.assign(Object.assign({},e),{toasts:[t.toast,...e.toasts].slice(0,1)});case"UPDATE_TOAST":return Object.assign(Object.assign({},e),{toasts:e.toasts.map((e=>e.id===t.toast.id?Object.assign(Object.assign({},e),t.toast):e))});case"DISMISS_TOAST":{const{toastId:r}=t;return r?SVe(r):e.toasts.forEach((e=>{SVe(e.id)})),Object.assign(Object.assign({},e),{toasts:e.toasts.map((e=>e.id===r||void 0===r?Object.assign(Object.assign({},e),{open:!1}):e))})}case"REMOVE_TOAST":return void 0===t.toastId?Object.assign(Object.assign({},e),{toasts:[]}):Object.assign(Object.assign({},e),{toasts:e.toasts.filter((e=>e.id!==t.toastId))});case"ADD_POSITION":return Object.assign(Object.assign({},e),{position:t.position})}},NVe=[];let qVe={toasts:[],position:void 0};function DVe(e){qVe=ZVe(qVe,e),NVe.forEach((e=>{e(qVe)}))}function BVe(e){var t=o_(e,[]);const r=(VVe=(VVe+1)%Number.MAX_SAFE_INTEGER,VVe.toString()),n=()=>DVe({type:"DISMISS_TOAST",toastId:r});return DVe({type:"ADD_TOAST",toast:Object.assign(Object.assign({},t),{id:r,open:!0,onOpenChange:e=>{var r;e||(n(),null===(r=null==t?void 0:t.onClose)||void 0===r||r.call(t))}})}),{id:r,dismiss:n,update:e=>DVe({type:"UPDATE_TOAST",toast:Object.assign(Object.assign({},e),{id:r})})}}function FVe(e){const[t,r]=l.useState(qVe);return l.useEffect((()=>(NVe.push(r),()=>{const e=NVe.indexOf(r);e>-1&&NVe.splice(e,1)})),[t]),l.useEffect((()=>{DVe({type:"ADD_POSITION",position:null==e?void 0:e.position})}),[null==e?void 0:e.position]),Object.assign(Object.assign({},t),{toast:BVe,dismiss:e=>DVe({type:"DISMISS_TOAST",toastId:e})})}const TVe=({id:r,title:n,classes:a,children:o,isFirstLevel:l=!1,isLeaf:i=!1,disabled:s,icon:c,showIcon:d,showExpandButton:u,enableSeparatorLine:h=!0,isLastItem:p,checkable:f,checkIsExpanded:v,checkIsChecked:m,checkAutoDisabled:y,checkIsLoading:g,onExpandChange:k,onCheckedChange:b,onClickItem:w,renderIcon:x,renderElement:_,renderTitle:M,renderRightSection:j,lineSize:O=2,horizontalLineWidth:E=4,expandButtonSize:z=30,spacing:C=2,currentLevel:P=1,maxLevel:R=10,notifyClickItem:A,itemData:L})=>{const I=e.useMemo((()=>null==g?void 0:g(r)),[g,r]),V=e.useMemo((()=>m(r)),[m,r]),H=e.useMemo((()=>v(r)),[v,r]),S=e.useMemo((()=>!!(null==o?void 0:o.length)),[o]),Z=e.useMemo((()=>(void 0!==u?u:S)&&P<(R||1/0)),[S,u,R,P]),N=e.useMemo((()=>!!f&&!i),[f,i]),q=i?21.328:0,D=e.useMemo((()=>({branch:{width:O,borderBottomLeftRadius:p?O/2:0},horizontalLine:{height:O,width:O+E+(Z?0:z+C)+q,marginLeft:-O,borderBottomLeftRadius:O/2},expandButton:{width:z,height:z},childPadding:{paddingLeft:l?z/2-O/2:z/2+E-O/2}})),[O,E,z,C,l,p,Z,q]),B=e.useCallback((()=>{null==k||k(r,!H,L)}),[r,H,k,L]);e.useEffect((()=>{!H||I||S||B()}),[I,B]);const F=e.useCallback((()=>{null==w||w(r,L),null==A||A(r,L)}),[r,H,w,A,L]),T=t.jsx(Rme,{name:H?"folder-open":"folder",className:"fill-warning size-[18px]"}),W=null!=c?c:null==x?void 0:x({id:r,expanded:H,selected:V}),U=null==j?void 0:j({id:r,expanded:H,selected:V}),G=M?M({id:r,title:n,expanded:H,selected:V}):n;return $=t.jsx("div",{className:s_("flex flex-row w-full",null==a?void 0:a.elementWrapper),children:t.jsxs("div",{className:s_("flex flex-col w-full",null==a?void 0:a.itemWrapper),children:[t.jsxs("div",{className:s_("flex flex-row flex-1",null==a?void 0:a.rowWrapperClasses),children:[t.jsxs("div",{className:s_("flex flex-col h-full",null==a?void 0:a.columnWrapperClasses),children:[!l&&t.jsx("div",{className:s_("flex w-[2px] h-1/2 bg-grey-150",null==a?void 0:a.branch),style:D.branch}),!l&&!p&&(H&&(S||I)||!H)&&t.jsx("div",{className:s_("flex w-[2px] h-1/2 bg-grey-150",null==a?void 0:a.branch),style:D.branch})]}),t.jsxs("div",{className:s_("flex flex-1 items-center py-2 min-h-10",null==a?void 0:a.itemContainer),children:[!l&&t.jsx("div",{className:s_("bg-grey-150",null==a?void 0:a.horizontalLine),style:D.horizontalLine}),l&&!Z&&t.jsx("div",{className:s_("flex mr-[2px]",null==a?void 0:a.expandButton),style:D.expandButton}),Z&&t.jsx("div",{className:s_("flex mr-[2px]",null==a?void 0:a.expandButton),style:D.expandButton,onClick:!I&&B,children:t.jsx(Tme,{variant:"icon",size:"sm",children:I?t.jsx(c_,{}):t.jsx(Rme,{name:H?"chevron-down":"chevron-right"})})}),N?t.jsx(Nye,{id:r,className:s_("size-[16px]",null==a?void 0:a.checkbox),checked:V,disabled:s,onCheckedChange:e=>null==b?void 0:b(r,e,L)}):t.jsx("div",{className:l&&f?s_("size-[16px]",null==a?void 0:a.checkbox):""}),t.jsxs("div",{className:s_("ml-2 gap-1 flex flex-1 items-center text-common-black",null==a?void 0:a.item),onClick:F,children:[d?W||T:null,t.jsx("div",{className:s_("flex flex-1 cursor-pointer text-subtitle5 text-ellipsis overflow-hidden break-all text-left",null==a?void 0:a.title),children:G})]}),U]})]}),H&&S&&P<(R||1/0)&&t.jsxs("div",{className:s_("flex flex-row overflow-hidden",null==a?void 0:a.expandedChildrenWrapper),children:[!l&&!p&&t.jsx("div",{className:s_("flex w-[2px] h-full bg-grey-150",null==a?void 0:a.branch),style:D.branch}),t.jsx("div",{className:s_("flex flex-col overflow-hidden",null==a?void 0:a.expandedChildrenWrapperInner),style:D.childPadding,children:null==o?void 0:o.map(((e,r)=>t.jsx(TVe,Object.assign({classes:a,isLastItem:r===o.length-1,checkIsExpanded:v,checkIsChecked:m,checkAutoDisabled:y,checkIsLoading:g,onExpandChange:k,onCheckedChange:b,renderIcon:x,renderElement:_,renderTitle:M,disabled:y(e.id),showIcon:d,lineSize:O,horizontalLineWidth:E,expandButtonSize:z,spacing:C,notifyClickItem:A,maxLevel:R,currentLevel:P+1,checkable:f},e),e.id)))})]}),h&&l&&!p&&t.jsx("div",{className:s_("bg-grey-150 w-full h-[2px] rounded",null==a?void 0:a.separatorLine)})]})}),_?_({id:r,expanded:H,selected:V,children:$,styles:D,onClick:F}):$;var $};function WVe(t){const r=e.useRef();return e.useEffect((()=>{r.current=t})),r.current}var UVe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function GVe(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},$Ve(a,...r)]}function $Ve(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var YVe="rovingFocusGroup.onEntryFocus",KVe={bubbles:!1,cancelable:!0},XVe="RovingFocusGroup",[QVe,JVe,eHe]=function(r){const n=r+"CollectionProvider",[a,o]=GVe(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=r=>{const{scope:n,children:a}=r,o=e.useRef(null),i=e.useRef(new Map).current;return t.jsx(l,{scope:n,itemMap:i,collectionRef:o,children:a})};s.displayName=n;const c=r+"CollectionSlot",d=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,i(c,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",p=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,s=e.useRef(null),c=dye(n,s),d=i(u,a);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...l}),()=>{d.itemMap.delete(s)}))),t.jsx(bye,{[h]:"",ref:c,children:o})}));return p.displayName=u,[{Provider:s,Slot:d,ItemSlot:p},function(t){const n=i(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}(XVe),[tHe,rHe]=GVe(XVe,[eHe]),[nHe,aHe]=tHe(XVe),oHe=l.forwardRef(((e,r)=>t.jsx(QVe.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(QVe.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(lHe,{...e,ref:r})})})));oHe.displayName=XVe;var lHe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...p}=e,f=l.useRef(null),v=dye(r,f),m=Cze(i),[y=null,g]=vye({prop:s,defaultProp:c,onChange:d}),[k,b]=l.useState(!1),w=fye(u),x=JVe(n),_=l.useRef(!1),[M,j]=l.useState(0);return l.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(YVe,w),()=>e.removeEventListener(YVe,w)}),[w]),t.jsx(nHe,{scope:n,orientation:a,dir:m,loop:o,currentTabStopId:y,onItemFocus:l.useCallback((e=>g(e)),[g]),onItemShiftTab:l.useCallback((()=>b(!0)),[]),onFocusableItemAdd:l.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:l.useCallback((()=>j((e=>e-1))),[]),children:t.jsx(UVe.div,{tabIndex:k||0===M?-1:0,"data-orientation":a,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:pye(e.onMouseDown,(()=>{_.current=!0})),onFocus:pye(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent(YVe,KVe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));dHe([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}_.current=!1})),onBlur:pye(e.onBlur,(()=>b(!1)))})})})),iHe="RovingFocusGroupItem",sHe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:i,...s}=e,c=Ybe(),d=i||c,u=aHe(iHe,n),h=u.currentTabStopId===d,p=JVe(n),{onFocusableItemAdd:f,onFocusableItemRemove:v}=u;return l.useEffect((()=>{if(a)return f(),()=>v()}),[a,f,v]),t.jsx(QVe.ItemSlot,{scope:n,id:d,focusable:a,active:o,children:t.jsx(UVe.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...s,ref:r,onMouseDown:pye(e.onMouseDown,(e=>{a?u.onItemFocus(d):e.preventDefault()})),onFocus:pye(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:pye(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:cHe[n]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=u.loop?(n=o+1,(r=a).map(((e,t)=>r[(n+t)%r.length]))):a.slice(o+1)}setTimeout((()=>dHe(a)))}var r,n}))})})}));sHe.displayName=iHe;var cHe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dHe(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var uHe=oHe,hHe=sHe;var pHe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=fHe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=fHe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=fHe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=fHe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function fHe(e){return e?.animationName||"none"}pHe.displayName="Presence";var vHe="Radio",[mHe,yHe]=uye(vHe),[gHe,kHe]=mHe(vHe),bHe=l.forwardRef(((e,r)=>{const{__scopeRadio:n,name:a,checked:o=!1,required:i,disabled:s,value:c="on",onCheck:d,form:u,...h}=e,[p,f]=l.useState(null),v=dye(r,(e=>f(e))),m=l.useRef(!1),y=!p||(u||!!p.closest("form"));return t.jsxs(gHe,{scope:n,checked:o,disabled:s,children:[t.jsx(UVe.button,{type:"button",role:"radio","aria-checked":o,"data-state":MHe(o),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onClick:pye(e.onClick,(e=>{o||d?.(),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&t.jsx(_He,{control:p,bubbles:!m.current,name:a,value:c,checked:o,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})}));bHe.displayName=vHe;var wHe="RadioIndicator",xHe=l.forwardRef(((e,r)=>{const{__scopeRadio:n,forceMount:a,...o}=e,l=kHe(wHe,n);return t.jsx(pHe,{present:a||l.checked,children:t.jsx(UVe.span,{"data-state":MHe(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:r})})}));xHe.displayName=wHe;var _He=e=>{const{control:r,checked:n,bubbles:a=!0,...o}=e,i=l.useRef(null),s=mye(n),c=yye(r);return l.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[s,n,a]),t.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function MHe(e){return e?"checked":"unchecked"}var jHe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OHe="RadioGroup",[EHe,zHe]=uye(OHe,[rHe,yHe]),CHe=rHe(),PHe=yHe(),[RHe,AHe]=EHe(OHe),LHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,name:a,defaultValue:o,value:l,required:i=!1,disabled:s=!1,orientation:c,dir:d,loop:u=!0,onValueChange:h,...p}=e,f=CHe(n),v=Cze(d),[m,y]=vye({prop:l,defaultProp:o,onChange:h});return t.jsx(RHe,{scope:n,name:a,required:i,disabled:s,value:m,onValueChange:y,children:t.jsx(uHe,{asChild:!0,...f,orientation:c,dir:v,loop:u,children:t.jsx(UVe.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:v,...p,ref:r})})})}));LHe.displayName=OHe;var IHe="RadioGroupItem",VHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,disabled:a,...o}=e,i=AHe(IHe,n),s=i.disabled||a,c=CHe(n),d=PHe(n),u=l.useRef(null),h=dye(r,u),p=i.value===o.value,f=l.useRef(!1);return l.useEffect((()=>{const e=e=>{jHe.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),t.jsx(hHe,{asChild:!0,...c,focusable:!s,active:p,children:t.jsx(bHe,{disabled:s,required:i.required,checked:p,...d,...o,name:i.name,ref:h,onCheck:()=>i.onValueChange(o.value),onKeyDown:pye((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:pye(o.onFocus,(()=>{f.current&&u.current?.click()}))})})}));VHe.displayName=IHe;var HHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,...a}=e,o=PHe(n);return t.jsx(xHe,{...o,...a,ref:r})}));HHe.displayName="RadioGroupIndicator";var SHe=LHe,ZHe=VHe,NHe=HHe;const qHe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(SHe,Object.assign({className:s_("grid gap-2",n)},a,{ref:r}))}));qHe.displayName=SHe.displayName;const DHe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(ZHe,Object.assign({ref:r,className:s_("aspect-square box-border size-4 cursor-pointer rounded-full border border-function-default-solid text-function-default-solid","hover:border-function-default-hover","focus:outline-none","data-[disabled]:!border-state-disable-outline data-[disabled]:!fill-state-disable-outline data-[disabled]:!cursor-not-allowed data-[disabled]:!pointer-events-none data-[disabled]:!text-state-disable-outline","[&[data-disabled][data-state=checked]]:!border-state-disable-solid [&[data-disabled][data-state=checked]]:!text-state-disable-solid","data-[state=checked]:border-function-active-solid data-[state=checked]:text-function-active-solid","hover:data-[state=checked]:border-function-active-hover hover:data-[state=checked]:text-function-active-hover",n)},a,{children:t.jsx(NHe,{className:"flex items-center justify-center",children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current text-current",children:t.jsx("circle",{cx:"5",cy:"5",r:"5",fill:"current"})})})}))}));DHe.displayName=ZHe.displayName;var BHe=e=>"checkbox"===e.type,FHe=e=>e instanceof Date,THe=e=>null==e;const WHe=e=>"object"==typeof e;var UHe=e=>!THe(e)&&!Array.isArray(e)&&WHe(e)&&!FHe(e),GHe=e=>UHe(e)&&e.target?BHe(e.target)?e.target.checked:e.target.value:e,$He=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),YHe="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function KHe(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(YHe&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||UHe(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return UHe(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=KHe(e[t]));return n}var XHe=e=>/^\w*$/.test(e),QHe=e=>void 0===e,JHe=e=>Array.isArray(e)?e.filter(Boolean):[],eSe=e=>JHe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),tSe=(e,t,r)=>{if(!t||!UHe(e))return r;const n=(XHe(t)?[t]:eSe(t)).reduce(((e,t)=>THe(e)?e:e[t]),e);return QHe(n)||n===e?QHe(e[t])?r:e[t]:n},rSe=e=>"boolean"==typeof e,nSe=e=>"function"==typeof e,aSe=(e,t,r)=>{let n=-1;const a=XHe(t)?[t]:eSe(t),o=a.length,l=o-1;for(;++n<o;){const t=a[n];let o=r;if(n!==l){const r=e[t];o=UHe(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const oSe="blur",lSe="focusout",iSe="change",sSe="onBlur",cSe="onChange",dSe="onSubmit",uSe="onTouched",hSe="all",pSe="max",fSe="min",vSe="maxLength",mSe="minLength",ySe="pattern",gSe="required",kSe="validate",bSe=e.createContext(null);bSe.displayName="HookFormControlContext";const wSe=()=>e.useContext(bSe);var xSe=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==hSe&&(t._proxyFormState[a]=!n||hSe),r&&(r[a]=!0),e[a]}});return a};const _Se="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var MSe=e=>"string"==typeof e,jSe=(e,t,r,n,a)=>MSe(e)?(n&&t.watch.add(e),tSe(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),tSe(r,e)))):(n&&(t.watchAll=!0),r),OSe=e=>THe(e)||!WHe(e);function ESe(e,t,r=new WeakSet){if(OSe(e)||OSe(t))return Object.is(e,t);if(FHe(e)&&FHe(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const n=e[o];if(!a.includes(o))return!1;if("ref"!==o){const e=t[o];if(FHe(n)&&FHe(e)||UHe(n)&&UHe(e)||Array.isArray(n)&&Array.isArray(e)?!ESe(n,e,r):!Object.is(n,e))return!1}}return!0}function zSe(t){const r=wSe(),{name:n,disabled:a,control:o=r,shouldUnregister:l,defaultValue:i,exact:s=!0}=t,c=$He(o._names.array,n),d=e.useMemo((()=>tSe(o._formValues,n,tSe(o._defaultValues,n,i))),[o,n,i]),u=function(t){const r=wSe(),{control:n=r,name:a,defaultValue:o,disabled:l,exact:i,compute:s}=t||{},c=e.useRef(o),d=e.useRef(s),u=e.useRef(void 0),h=e.useRef(n),p=e.useRef(a);d.current=s;const[f,v]=e.useState((()=>{const e=n._getWatch(a,c.current);return d.current?d.current(e):e})),m=e.useCallback((e=>{const t=jSe(a,n._names,e||n._formValues,!1,c.current);return d.current?d.current(t):t}),[n._formValues,n._names,a]),y=e.useCallback((e=>{if(!l){const t=jSe(a,n._names,e||n._formValues,!1,c.current);if(d.current){const e=d.current(t);ESe(e,u.current)||(v(e),u.current=e)}else v(t)}}),[n._formValues,n._names,l,a]);_Se((()=>(h.current===n&&ESe(p.current,a)||(h.current=n,p.current=a,y()),n._subscribe({name:a,formState:{values:!0},exact:i,callback:e=>{y(e.values)}}))),[n,i,a,y]),e.useEffect((()=>n._removeUnmounted()));const g=h.current!==n,k=p.current,b=e.useMemo((()=>{if(l)return null;const e=!g&&!ESe(k,a);return g||e?m():null}),[l,g,a,k,m]);return null!==b?b:f}({control:o,name:n,defaultValue:d,exact:s}),h=function(t){const r=wSe(),{control:n=r,disabled:a,name:o,exact:l}=t||{},[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 _Se((()=>n._subscribe({name:o,formState:c.current,exact:l,callback:e=>{!a&&s({...n._formState,...e})}})),[o,a,l]),e.useEffect((()=>{c.current.isValid&&n._setValid(!0)}),[n]),e.useMemo((()=>xSe(i,n,c.current,!1)),[i,n])}({control:o,name:n,exact:s}),p=e.useRef(t),f=e.useRef(void 0),v=e.useRef(o.register(n,{...t.rules,value:u,...rSe(t.disabled)?{disabled:t.disabled}:{}}));p.current=t;const m=e.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!tSe(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!tSe(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!tSe(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!tSe(h.validatingFields,n)},error:{enumerable:!0,get:()=>tSe(h.errors,n)}})),[h,n]),y=e.useCallback((e=>v.current.onChange({target:{value:GHe(e),name:n},type:iSe})),[n]),g=e.useCallback((()=>v.current.onBlur({target:{value:tSe(o._formValues,n),name:n},type:oSe})),[n,o._formValues]),k=e.useCallback((e=>{const t=tSe(o._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>nSe(e.focus)&&e.focus(),select:()=>nSe(e.select)&&e.select(),setCustomValidity:t=>nSe(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>nSe(e.reportValidity)&&e.reportValidity()})}),[o._fields,n]),b=e.useMemo((()=>({name:n,value:u,...rSe(a)||h.disabled?{disabled:h.disabled||a}:{},onChange:y,onBlur:g,ref:k})),[n,a,h.disabled,y,g,k,u]);return e.useEffect((()=>{const e=o._options.shouldUnregister||l,t=f.current;t&&t!==n&&!c&&o.unregister(t),o.register(n,{...p.current.rules,...rSe(p.current.disabled)?{disabled:p.current.disabled}:{}});const r=(e,t)=>{const r=tSe(o._fields,e);r&&r._f&&(r._f.mount=t)};if(r(n,!0),e){const e=KHe(tSe(o._options.defaultValues,n,p.current.defaultValue));aSe(o._defaultValues,n,e),QHe(tSe(o._formValues,n))&&aSe(o._formValues,n,e)}return!c&&o.register(n),f.current=n,()=>{(c?e&&!o._state.action:e)?o.unregister(n):r(n,!1)}}),[n,o,c,l]),e.useEffect((()=>{o._setDisabledField({disabled:a,name:n})}),[a,n,o]),e.useMemo((()=>({field:b,formState:h,fieldState:m})),[b,h,m])}const CSe=e.createContext(null);CSe.displayName="HookFormContext";const PSe=t=>{const{children:r,watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:p,unregister:f,control:v,register:m,setFocus:y,subscribe:g}=t;return e.createElement(CSe.Provider,{value:e.useMemo((()=>({watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:p,unregister:f,control:v,register:m,setFocus:y,subscribe:g})),[i,v,d,o,a,p,m,h,u,l,y,s,g,c,f,n])},e.createElement(bSe.Provider,{value:v},r))};var RSe=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},ASe=e=>Array.isArray(e)?e:[e],LSe=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}};function ISe(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n],o=t[n];if(a&&UHe(a)&&o){const e=ISe(a,o);UHe(e)&&(r[n]=e)}else e[n]&&(r[n]=o)}return r}var VSe=e=>UHe(e)&&!Object.keys(e).length,HSe=e=>"file"===e.type,SSe=e=>{if(!YHe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ZSe=e=>"select-multiple"===e.type,NSe=e=>"radio"===e.type,qSe=e=>SSe(e)&&e.isConnected;function DSe(e,t){const r=Array.isArray(t)?t:XHe(t)?[t]:eSe(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=QHe(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!==a&&(UHe(n)&&VSe(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!QHe(e[t]))return!1;return!0}(n))&&DSe(e,r.slice(0,-1)),e}function BSe(e){return Array.isArray(e)||UHe(e)&&!(e=>{for(const t in e)if(nSe(e[t]))return!0;return!1})(e)}function FSe(e,t={}){for(const r in e){const n=e[r];BSe(n)?(t[r]=Array.isArray(n)?[]:{},FSe(n,t[r])):QHe(n)||(t[r]=!0)}return t}function TSe(e,t,r){r||(r=FSe(t));for(const n in e){const a=e[n];if(BSe(a))QHe(t)||OSe(r[n])?r[n]=FSe(a,Array.isArray(a)?[]:{}):TSe(a,THe(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!ESe(a,e)}}return r}const WSe={value:!1,isValid:!1},USe={value:!0,isValid:!0};var GSe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!QHe(e[0].attributes.value)?QHe(e[0].value)||""===e[0].value?USe:{value:e[0].value,isValid:!0}:USe:WSe}return WSe},$Se=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>QHe(e)?e:t?""===e?NaN:e?+e:e:r&&MSe(e)?new Date(e):n?n(e):e;const YSe={isValid:!1,value:null};var KSe=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),YSe):YSe;function XSe(e){const t=e.ref;return HSe(t)?t.files:NSe(t)?KSe(e.refs).value:ZSe(t)?[...t.selectedOptions].map((({value:e})=>e)):BHe(t)?GSe(e.refs).value:$Se(QHe(t.value)?e.ref.value:t.value,e)}var QSe=e=>e instanceof RegExp,JSe=e=>QHe(e)?e:QSe(e)?e.source:UHe(e)?QSe(e.value)?e.value.source:e.value:e,eZe=e=>({isOnSubmit:!e||e===dSe,isOnBlur:e===sSe,isOnChange:e===cSe,isOnAll:e===hSe,isOnTouch:e===uSe});const tZe="AsyncFunction";var rZe=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const nZe=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const r=tSe(e,a);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(nZe(o,t))break}else if(UHe(o)&&nZe(o,t))break}}};function aZe(e,t,r){const n=tSe(e,r);if(n||XHe(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),o=tSe(t,n),l=tSe(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};a.pop()}return{name:r}}var oZe=(e,t,r)=>{const n=ASe(tSe(e,r));return aSe(n,"root",t[r]),aSe(e,r,n),e};function lZe(e,t,r="validate"){if(MSe(e)||Array.isArray(e)&&e.every(MSe)||rSe(e)&&!e)return{type:r,message:MSe(e)?e:"",ref:t}}var iZe=e=>UHe(e)&&!QSe(e)?e:{value:e,message:""},sZe=async(e,t,r,n,a,o)=>{const{ref:l,refs:i,required:s,maxLength:c,minLength:d,min:u,max:h,pattern:p,validate:f,name:v,valueAsNumber:m,mount:y}=e._f,g=tSe(r,v);if(!y||t.has(v))return{};const k=i?i[0]:l,b=e=>{a&&k.reportValidity&&(k.setCustomValidity(rSe(e)?"":e||""),k.reportValidity())},w={},x=NSe(l),_=BHe(l),M=x||_,j=(m||HSe(l))&&QHe(l.value)&&QHe(g)||SSe(l)&&""===l.value||""===g||Array.isArray(g)&&!g.length,O=RSe.bind(null,v,n,w),E=(e,t,r,n=vSe,a=mSe)=>{const o=e?t:r;w[v]={type:e?n:a,message:o,ref:l,...O(e?n:a,o)}};if(o?!Array.isArray(g)||!g.length:s&&(!M&&(j||THe(g))||rSe(g)&&!g||_&&!GSe(i).isValid||x&&!KSe(i).isValid)){const{value:e,message:t}=MSe(s)?{value:!!s,message:s}:iZe(s);if(e&&(w[v]={type:gSe,message:t,ref:k,...O(gSe,t)},!n))return b(t),w}if(!(j||THe(u)&&THe(h))){let e,t;const r=iZe(h),a=iZe(u);if(THe(g)||isNaN(g)){const n=l.valueAsDate||new Date(g),o=e=>new Date((new Date).toDateString()+" "+e),i="time"==l.type,s="week"==l.type;MSe(r.value)&&g&&(e=i?o(g)>o(r.value):s?g>r.value:n>new Date(r.value)),MSe(a.value)&&g&&(t=i?o(g)<o(a.value):s?g<a.value:n<new Date(a.value))}else{const n=l.valueAsNumber||(g?+g:g);THe(r.value)||(e=n>r.value),THe(a.value)||(t=n<a.value)}if((e||t)&&(E(!!e,r.message,a.message,pSe,fSe),!n))return b(w[v].message),w}if((c||d)&&!j&&(MSe(g)||o&&Array.isArray(g))){const e=iZe(c),t=iZe(d),r=!THe(e.value)&&g.length>+e.value,a=!THe(t.value)&&g.length<+t.value;if((r||a)&&(E(r,e.message,t.message),!n))return b(w[v].message),w}if(p&&!j&&MSe(g)){const{value:e,message:t}=iZe(p);if(QSe(e)&&!g.match(e)&&(w[v]={type:ySe,message:t,ref:l,...O(ySe,t)},!n))return b(t),w}if(f)if(nSe(f)){const e=lZe(await f(g,r),k);if(e&&(w[v]={...e,...O(kSe,e.message)},!n))return b(e.message),w}else if(UHe(f)){let e={};for(const t in f){if(!VSe(e)&&!n)break;const a=lZe(await f[t](g,r),k,t);a&&(e={...a,...O(t,a.message)},b(a.message),n&&(w[v]=e))}if(!VSe(e)&&(w[v]={ref:k,...e},!n))return w}return b(!0),w};const cZe={mode:dSe,reValidateMode:cSe,shouldFocusError:!0};function dZe(e={}){let t,r={...cZe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:nSe(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},o=(UHe(r.defaultValues)||UHe(r.values))&&KHe(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:KHe(o),i={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={...d};let h={...u};const p={array:LSe(),state:LSe()},f=r.criteriaMode===hSe,v=async e=>{if(!i.keepIsValid&&!r.disabled&&(u.isValid||h.isValid||e)){let e;r.resolver?(e=VSe((await b()).errors),m()):e=await w(a,!0),e!==n.isValid&&p.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach((e=>{e&&(t?aSe(n.validatingFields,e,t):DSe(n.validatingFields,e))})),p.state.next({validatingFields:n.validatingFields,isValidating:!VSe(n.validatingFields)}))},y=(e,t,r,n)=>{const s=tSe(a,e);if(s){const a=tSe(l,e,QHe(r)?tSe(o,e):r);QHe(a)||n&&n.defaultChecked||t?aSe(l,e,t?a:XSe(s._f)):M(e,a),i.mount&&!i.action&&v()}},g=(e,t,a,l,i)=>{let s=!1,c=!1;const d={name:e};if(!r.disabled){if(!a||l){(u.isDirty||h.isDirty)&&(c=n.isDirty,n.isDirty=d.isDirty=x(),s=c!==d.isDirty);const r=ESe(tSe(o,e),t);c=!!tSe(n.dirtyFields,e),r?DSe(n.dirtyFields,e):aSe(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,s=s||(u.dirtyFields||h.dirtyFields)&&c!==!r}if(a){const t=tSe(n.touchedFields,e);t||(aSe(n.touchedFields,e,a),d.touchedFields=n.touchedFields,s=s||(u.touchedFields||h.touchedFields)&&t!==a)}s&&i&&p.state.next(d)}return s?d:{}},k=(e,a,o,l)=>{const i=tSe(n.errors,e),s=(u.isValid||h.isValid)&&rSe(a)&&n.isValid!==a;var d;if(r.delayError&&o?(d=()=>((e,t)=>{aSe(n.errors,e,t),p.state.next({errors:n.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(d,e)},t(r.delayError)):(clearTimeout(c),t=null,o?aSe(n.errors,e,o):DSe(n.errors,e)),(o?!ESe(i,o):i)||!VSe(l)||s){const t={...l,...s&&rSe(a)?{isValid:a}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},b=async e=>{m(e,!0);const t=await r.resolver(l,r.context,((e,t,r,n)=>{const a={};for(const r of e){const e=tSe(t,r);e&&aSe(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}})(e||s.mount,a,r.criteriaMode,r.shouldUseNativeValidation));return t},w=async(t,a,o={valid:!0})=>{for(const c in t){const d=t[c];if(d){const{_f:t,...c}=d;if(t){const c=s.array.has(t.name),h=d._f&&(!!(i=d._f)&&!!i.validate&&!!(nSe(i.validate)&&i.validate.constructor.name===tZe||UHe(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===tZe))));h&&u.validatingFields&&m([t.name],!0);const p=await sZe(d,s.disabled,l,f,r.shouldUseNativeValidation&&!a,c);if(h&&u.validatingFields&&m([t.name]),p[t.name]&&(o.valid=!1,a||e.shouldUseNativeValidation))break;!a&&(tSe(p,t.name)?c?oZe(n.errors,p,t.name):aSe(n.errors,t.name,p[t.name]):DSe(n.errors,t.name))}!VSe(c)&&await w(c,a,o)}}var i;return o.valid},x=(e,t)=>!r.disabled&&(e&&t&&aSe(l,e,t),!ESe(P(),o)),_=(e,t,r)=>jSe(e,s,{...i.mount?l:QHe(t)?o:MSe(e)?{[e]:t}:t},r,t),M=(e,t,r={})=>{const n=tSe(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&aSe(l,e,$Se(t,r)),o=SSe(r.ref)&&THe(t)?"":t,ZSe(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?BHe(r.ref)?r.refs.forEach((e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find((t=>t===e.value)):e.checked=o===e.value||!!o)})):r.refs.forEach((e=>e.checked=e.value===o)):HSe(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||p.state.next({name:e,values:KHe(l)})))}(r.shouldDirty||r.shouldTouch)&&g(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},j=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const o=t[n],l=e+"."+n,i=tSe(a,l);(s.array.has(e)||UHe(o)||i&&!i._f)&&!FHe(o)?j(l,o,r):M(l,o,r)}},O=(e,t,r={})=>{const c=tSe(a,e),d=s.array.has(e),f=KHe(t);aSe(l,e,f),d?(p.array.next({name:e,values:KHe(l)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&r.shouldDirty&&p.state.next({name:e,dirtyFields:TSe(o,l),isDirty:x(e,f)})):!c||c._f||THe(f)?M(e,f,r):j(e,f,r),rZe(e,s)?p.state.next({...n,name:e,values:KHe(l)}):p.state.next({name:i.mount?e:void 0,values:KHe(l)})},E=async e=>{i.mount=!0;const o=e.target;let c=o.name,d=!0;const y=tSe(a,c),x=e=>{d=Number.isNaN(e)||FHe(e)&&isNaN(e.getTime())||ESe(e,tSe(l,c,e))},_=eZe(r.mode),M=eZe(r.reValidateMode);if(y){let i,j;const O=o.type?XSe(y._f):GHe(e),E=e.type===oSe||e.type===lSe,z=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(y._f)&&!r.resolver&&!tSe(n.errors,c)&&!y._f.deps||((e,t,r,n,a)=>!a.isOnAll&&(!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:!(r?n.isOnChange:a.isOnChange)||e))(E,tSe(n.touchedFields,c),n.isSubmitted,M,_),P=rZe(c,s,E);aSe(l,c,O),E?o&&o.readOnly||(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);const R=g(c,O,E),A=!VSe(R)||P;if(!E&&p.state.next({name:c,type:e.type,values:KHe(l)}),z)return(u.isValid||h.isValid)&&("onBlur"===r.mode?E&&v():E||v()),A&&p.state.next({name:c,...P?{}:R});if(!E&&P&&p.state.next({...n}),r.resolver){const{errors:e}=await b([c]);if(m([c]),x(O),d){const t=aZe(n.errors,a,c),r=aZe(e,a,t.name||c);i=r.error,c=r.name,j=VSe(e)}}else m([c],!0),i=(await sZe(y,s.disabled,l,f,r.shouldUseNativeValidation))[c],m([c]),x(O),d&&(i?j=!1:(u.isValid||h.isValid)&&(j=await w(a,!0)));d&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&C(y._f.deps),k(c,j,i,R))}},z=(e,t)=>{if(tSe(n.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let o,l;const i=ASe(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await b(e);if(m(e),e)for(const r of e){const e=tSe(t,r);e?aSe(n.errors,r,e):DSe(n.errors,r)}else n.errors=t;return t})(QHe(e)?e:i);o=VSe(t),l=e?!i.some((e=>tSe(t,e))):o}else e?(l=(await Promise.all(i.map((async e=>{const t=tSe(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(l||n.isValid)&&v()):l=o=await w(a);return p.state.next({...!MSe(e)||(u.isValid||h.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!l&&nZe(a,z,e?i:s.mount),l},P=(e,t)=>{let r={...i.mount?l:o};return t&&(r=ISe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),QHe(e)?r:MSe(e)?tSe(r,e):e.map((e=>tSe(r,e)))},R=(e,t)=>({invalid:!!tSe((t||n).errors,e),isDirty:!!tSe((t||n).dirtyFields,e),error:tSe((t||n).errors,e),isValidating:!!tSe(n.validatingFields,e),isTouched:!!tSe((t||n).touchedFields,e)}),A=(e,t,r)=>{const o=(tSe(a,e,{_f:{}})._f||{}).ref,l=tSe(n.errors,e)||{},{ref:i,message:s,type:c,...d}=l;aSe(n.errors,e,{...d,...t,ref:o}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},L=e=>p.state.subscribe({next:t=>{var r,a,i;r=e.name,a=t.name,i=e.exact,r&&a&&r!==a&&!ASe(r).some((e=>e&&(i?e===a:e.startsWith(a)||a.startsWith(e))))||!((e,t,r,n)=>{r(e);const{name:a,...o}=e;return VSe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||hSe)))})(t,e.formState||u,D,e.reRenderRoot)||e.callback({values:{...l},...n,...t,defaultValues:o})}}).unsubscribe,I=(e,t={})=>{for(const i of e?ASe(e):s.mount)s.mount.delete(i),s.array.delete(i),t.keepValue||(DSe(a,i),DSe(l,i)),!t.keepError&&DSe(n.errors,i),!t.keepDirty&&DSe(n.dirtyFields,i),!t.keepTouched&&DSe(n.touchedFields,i),!t.keepIsValidating&&DSe(n.validatingFields,i),!r.shouldUnregister&&!t.keepDefaultValue&&DSe(o,i);p.state.next({values:KHe(l)}),p.state.next({...n,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&v()},V=({disabled:e,name:t})=>{if(rSe(e)&&i.mount||e||s.disabled.has(t)){const r=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),r&&i.mount&&!i.action&&v()}},H=(e,t={})=>{let n=tSe(a,e);const l=rSe(t.disabled)||rSe(r.disabled);return aSe(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?V({disabled:rSe(t.disabled)?t.disabled:r.disabled,name:e}):y(e,!0,t.value),{...l?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:JSe(t.min),max:JSe(t.max),minLength:JSe(t.minLength),maxLength:JSe(t.maxLength),pattern:JSe(t.pattern)}:{},name:e,onChange:E,onBlur:E,ref:l=>{if(l){H(e,t),n=tSe(a,e);const r=QHe(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,i=(e=>NSe(e)||BHe(e))(r),s=n._f.refs||[];if(i?s.find((e=>e===r)):r===n._f.ref)return;aSe(a,e,{_f:{...n._f,...i?{refs:[...s.filter(qSe),r,...Array.isArray(tSe(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=tSe(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!$He(s.array,e)||!i.action)&&s.unMount.add(e)}}},S=()=>r.shouldFocusError&&nZe(a,z,s.mount),Z=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=KHe(l);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await b();m(),n.errors=e,c=KHe(t)}else await w(a);if(s.disabled.size)for(const e of s.disabled)DSe(c,e);if(DSe(n.errors,"root"),VSe(n.errors)){p.state.next({errors:{}});try{await e(c,o)}catch(e){i=e}}else t&&await t({...n.errors},o),S(),setTimeout(S);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:VSe(n.errors)&&!i,submitCount:n.submitCount+1,errors:n.errors}),i)throw i},N=(e,t={})=>{const c=e?KHe(e):o,d=KHe(c),h=VSe(e),f=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(TSe(o,l))]);for(const t of Array.from(e)){const e=tSe(n.dirtyFields,t),r=tSe(l,t),a=tSe(f,t);e&&!QHe(r)?aSe(f,t,r):e||QHe(a)||O(t,a)}}else{if(YHe&&QHe(e))for(const e of s.mount){const t=tSe(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(SSe(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of s.mount)O(e,tSe(f,e));else a={}}l=r.shouldUnregister?t.keepDefaultValues?KHe(o):{}:KHe(f),p.array.next({values:{...f}}),p.state.next({values:{...f}})}s={mount:t.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!VSe(f),i.watch=!!r.shouldUnregister,i.keepIsValid=!!t.keepIsValid,i.action=!1,t.keepErrors||(n.errors={}),p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||ESe(e,o))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&l?TSe(o,l):n.dirtyFields:t.keepDefaultValues&&e?TSe(o,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},q=(e,t)=>N(nSe(e)?e(l):e,{...r.resetOptions,...t}),D=e=>{n={...n,...e}},B={control:{register:H,unregister:I,getFieldState:R,handleSubmit:Z,setError:A,_subscribe:L,_runSchema:b,_updateIsValidating:m,_focusError:S,_getWatch:_,_getDirty:x,_setValid:v,_setFieldArray:(e,t=[],s,c,d=!0,f=!0)=>{if(c&&s&&!r.disabled){if(i.action=!0,f&&Array.isArray(tSe(a,e))){const t=s(tSe(a,e),c.argA,c.argB);d&&aSe(a,e,t)}if(f&&Array.isArray(tSe(n.errors,e))){const t=s(tSe(n.errors,e),c.argA,c.argB);d&&aSe(n.errors,e,t),((e,t)=>{!JHe(tSe(e,t)).length&&DSe(e,t)})(n.errors,e)}if((u.touchedFields||h.touchedFields)&&f&&Array.isArray(tSe(n.touchedFields,e))){const t=s(tSe(n.touchedFields,e),c.argA,c.argB);d&&aSe(n.touchedFields,e,t)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=TSe(o,l)),p.state.next({name:e,isDirty:x(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else aSe(l,e,t)},_setDisabledField:V,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>JHe(tSe(i.mount?l:o,e,r.shouldUnregister?tSe(o,e,[]):[])),_reset:N,_resetDefaultValues:()=>nSe(r.defaultValues)&&r.defaultValues().then((e=>{q(e,r.resetOptions),p.state.next({isLoading:!1})})),_removeUnmounted:()=>{for(const e of s.unMount){const t=tSe(a,e);t&&(t._f.refs?t._f.refs.every((e=>!qSe(e))):!qSe(t._f.ref))&&I(e)}s.unMount=new Set},_disableForm:e=>{rSe(e)&&(p.state.next({disabled:e}),nZe(a,((t,r)=>{const n=tSe(a,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:p,_proxyFormState:u,get _fields(){return a},get _formValues(){return l},get _state(){return i},set _state(e){i=e},get _defaultValues(){return o},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(i.mount=!0,h={...h,...e.formState},L({...e,formState:{...d,...e.formState}})),trigger:C,register:H,handleSubmit:Z,watch:(e,t)=>nSe(e)?p.state.subscribe({next:r=>"values"in r&&e(_(void 0,t),r)}):_(e,t,!0),setValue:O,getValues:P,reset:q,resetField:(e,t={})=>{tSe(a,e)&&(QHe(t.defaultValue)?O(e,KHe(tSe(o,e))):(O(e,t.defaultValue),aSe(o,e,KHe(t.defaultValue))),t.keepTouched||DSe(n.touchedFields,e),t.keepDirty||(DSe(n.dirtyFields,e),n.isDirty=t.defaultValue?x(e,KHe(tSe(o,e))):x()),t.keepError||(DSe(n.errors,e),u.isValid&&v()),p.state.next({...n}))},clearErrors:e=>{const t=e?ASe(e):void 0;null==t||t.forEach((e=>DSe(n.errors,e))),t?t.forEach((e=>{p.state.next({name:e,errors:n.errors})})):p.state.next({errors:{}})},unregister:I,setError:A,setFocus:(e,t={})=>{const r=tSe(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout((()=>{e.focus(),t.shouldSelect&&nSe(e.select)&&e.select()}))}},getFieldState:R};return{...B,formControl:B}}function uZe(t={}){const r=e.useRef(void 0),n=e.useRef(void 0),[a,o]=e.useState({isDirty:!1,isValidating:!1,isLoading:nSe(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:nSe(t.defaultValues)?void 0:t.defaultValues});if(!r.current)if(t.formControl)r.current={...t.formControl,formState:a},t.defaultValues&&!nSe(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:e,...n}=dZe(t);r.current={...n,formState:a}}const l=r.current.control;return l._options=t,_Se((()=>{const e=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}),reRenderRoot:!0});return o((e=>({...e,isReady:!0}))),l._formState.isReady=!0,e}),[l]),e.useEffect((()=>l._disableForm(t.disabled)),[l,t.disabled]),e.useEffect((()=>{t.mode&&(l._options.mode=t.mode),t.reValidateMode&&(l._options.reValidateMode=t.reValidateMode)}),[l,t.mode,t.reValidateMode]),e.useEffect((()=>{t.errors&&(l._setErrors(t.errors),l._focusError())}),[l,t.errors]),e.useEffect((()=>{t.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})}),[l,t.shouldUnregister]),e.useEffect((()=>{if(l._proxyFormState.isDirty){const e=l._getDirty();e!==a.isDirty&&l._subjects.state.next({isDirty:e})}}),[l,a.isDirty]),e.useEffect((()=>{var e;t.values&&!ESe(t.values,n.current)?(l._reset(t.values,{keepFieldsRef:!0,...l._options.resetOptions}),(null===(e=l._options.resetOptions)||void 0===e?void 0:e.keepIsValid)||l._setValid(),n.current=t.values,o((e=>({...e})))):l._resetDefaultValues()}),[l,t.values]),e.useEffect((()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()})),r.current.formState=e.useMemo((()=>xSe(a,l)),[l,a]),r.current}const hZe=(e,t,r)=>{if(e&&"reportValidity"in e){const n=tSe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},pZe=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?hZe(n.ref,r,e):n&&n.refs&&n.refs.forEach((t=>hZe(t,r,e)))}},fZe=(e,t)=>{t.shouldUseNativeValidation&&pZe(e,t);const r={};for(const n in e){const a=tSe(t.fields,n),o=Object.assign(e[n]||{},{ref:a&&a.ref});if(vZe(t.names||Object.keys(e),n)){const e=Object.assign({},tSe(r,n));aSe(e,"root",o),aSe(r,n,e)}else aSe(r,n,o)}return r},vZe=(e,t)=>{const r=mZe(t);return e.some((e=>mZe(e).match(`^${r}\\.\\d+`)))};function mZe(e){return e.replace(/\]|\[/g,"")}const yZe=e=>function(e,t,r){return void 0===r&&(r={}),function(n,a,o){try{return Promise.resolve(function(l,i){try{var s=(null!=t&&t.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e["sync"===r.mode?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:a}))).then((function(e){return o.shouldUseNativeValidation&&pZe({},o),{values:r.raw?Object.assign({},n):e,errors:{}}})))}catch(e){return i(e)}return s&&s.then?s.then(void 0,i):s}(0,(function(e){if(!e.inner)throw e;return{values:{},errors:fZe((t=e,r=!o.shouldUseNativeValidation&&"all"===o.criteriaMode,(t.inner||[]).reduce((function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),r){var n=e[t.path].types,a=n&&n[t.type];e[t.path]=RSe(t.path,r,e,t.type,a?[].concat(a,t.message):t.message)}return e}),{})),o)};var t,r})))}catch(e){return Promise.reject(e)}}}(e),gZe=({methods:r,defaultValues:n,controllerRef:a})=>{const o=e.forwardRef(((e,o)=>{var{children:l}=e,i=o_(e,["children"]);return t.jsx(kZe,Object.assign({},i,{ref:o,methods:r,defaultValues:n,controllerRef:a,children:l}))}));return o.displayName="ControlledFormRoot",{methods:r,FormRoot:o}},kZe=e.forwardRef(((r,n)=>{var{children:a,defaultValues:o,methods:l,controllerRef:i,onSubmit:s,onInvalidSubmit:c,resolver:d,validationSchema:u,mode:h="onSubmit",reValidateMode:p="onChange",noValidate:f=!0}=r,v=o_(r,["children","defaultValues","methods","controllerRef","onSubmit","onInvalidSubmit","resolver","validationSchema","mode","reValidateMode","noValidate"]);const m=uZe({defaultValues:o,resolver:null!=d?d:u?yZe(u):void 0,mode:h,reValidateMode:p}),y=null!=l?l:m,g=e.useMemo((()=>({submit:async()=>{await y.handleSubmit(s,c)()},getValues:()=>y.getValues(),setValue:y.setValue,trigger:y.trigger,reset:y.reset})),[y,s,c]);return e.useImperativeHandle(n,(()=>g),[g]),e.useEffect((()=>{if(i)return i.current=g,()=>{i.current=null}}),[i,g]),t.jsx(PSe,Object.assign({},y,{children:t.jsx("form",Object.assign({},v,{noValidate:f,onSubmit:y.handleSubmit(s,c),children:"function"==typeof a?a(y):a}))}))})),bZe={valid:"text-success",invalid:"text-input-error",pending:"text-text-g-contrast-medium"},wZe={valid:"opacity-100",invalid:"opacity-100",pending:"opacity-40"},xZe=e=>String(e).length>10?e/1e3:e,_Ze=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t},MZe=e=>{const t=new Date(e);return t.setHours(23,59,59,999),t},jZe={"main-primary":"--main-primary","main-secondary":"--main-secondary","main-tertiary":"--main-tertiary","brand-midnight-blue":"--brand-midnight-blue","brand-columbia-blue":"--brand-columbia-blue","brand-background":"--brand-background","brand-lemon-glacier":"--brand-lemon-glacier","primary-5":"--ramps-primary-5","primary-10":"--ramps-primary-10","primary-20":"--ramps-primary-20","primary-30":"--ramps-primary-30","primary-40":"--ramps-primary-40","primary-50":"--ramps-primary-50","primary-60":"--ramps-primary-60","primary-70":"--ramps-primary-70","primary-80":"--ramps-primary-80","primary-90":"--ramps-primary-90","primary-100":"--ramps-primary-100","primary-110":"--ramps-primary-110","primary-120":"--ramps-primary-120","primary-130":"--ramps-primary-130","primary-140":"--ramps-primary-140","primary-150":"--ramps-primary-150","secondary-5":"--ramps-secondary-5","secondary-10":"--ramps-secondary-10","secondary-20":"--ramps-secondary-20","secondary-30":"--ramps-secondary-30","secondary-40":"--ramps-secondary-40","secondary-50":"--ramps-secondary-50","secondary-60":"--ramps-secondary-60","secondary-70":"--ramps-secondary-70","secondary-80":"--ramps-secondary-80","secondary-90":"--ramps-secondary-90","secondary-100":"--ramps-secondary-100","secondary-110":"--ramps-secondary-110","secondary-120":"--ramps-secondary-120","secondary-130":"--ramps-secondary-130","secondary-140":"--ramps-secondary-140","secondary-150":"--ramps-secondary-150","tertiary-5":"--ramps-tertiary-5","tertiary-10":"--ramps-tertiary-10","tertiary-20":"--ramps-tertiary-20","tertiary-30":"--ramps-tertiary-30","tertiary-40":"--ramps-tertiary-40","tertiary-50":"--ramps-tertiary-50","tertiary-60":"--ramps-tertiary-60","tertiary-70":"--ramps-tertiary-70","tertiary-80":"--ramps-tertiary-80","tertiary-90":"--ramps-tertiary-90","tertiary-100":"--ramps-tertiary-100","tertiary-110":"--ramps-tertiary-110","tertiary-120":"--ramps-tertiary-120","tertiary-130":"--ramps-tertiary-130","tertiary-140":"--ramps-tertiary-140","tertiary-150":"--ramps-tertiary-150","grey-5":"--ramps-grey-5","grey-10":"--ramps-grey-10","grey-20":"--ramps-grey-20","grey-30":"--ramps-grey-30","grey-40":"--ramps-grey-40","grey-50":"--ramps-grey-50","grey-60":"--ramps-grey-60","grey-70":"--ramps-grey-70","grey-80":"--ramps-grey-80","grey-90":"--ramps-grey-90","grey-100":"--ramps-grey-100","grey-110":"--ramps-grey-110","grey-120":"--ramps-grey-120","grey-130":"--ramps-grey-130","grey-140":"--ramps-grey-140","grey-150":"--ramps-grey-150","grey2-50":"--ramps-grey2-50","grey2-100":"--ramps-grey2-100","grey2-200":"--ramps-grey2-200","grey2-300":"--ramps-grey2-300","grey2-400":"--ramps-grey2-400","grey2-500":"--ramps-grey2-500","grey2-600":"--ramps-grey2-600","grey2-700":"--ramps-grey2-700","grey2-800":"--ramps-grey2-800","grey2-900":"--ramps-grey2-900","grey2-950":"--ramps-grey2-950","info-50":"--ramps-info-50","info-100":"--ramps-info-100","info-200":"--ramps-info-200","info-300":"--ramps-info-300","info-400":"--ramps-info-400","info-500":"--ramps-info-500","info-600":"--ramps-info-600","info-700":"--ramps-info-700","info-800":"--ramps-info-800","info-900":"--ramps-info-900","info-950":"--ramps-info-950","success-50":"--ramps-success-50","success-100":"--ramps-success-100","success-200":"--ramps-success-200","success-300":"--ramps-success-300","success-400":"--ramps-success-400","success-500":"--ramps-success-500","success-600":"--ramps-success-600","success-700":"--ramps-success-700","success-800":"--ramps-success-800","success-900":"--ramps-success-900","success-950":"--ramps-success-950","warning-50":"--ramps-warning-50","warning-100":"--ramps-warning-100","warning-200":"--ramps-warning-200","warning-300":"--ramps-warning-300","warning-400":"--ramps-warning-400","warning-500":"--ramps-warning-500","warning-600":"--ramps-warning-600","warning-700":"--ramps-warning-700","warning-800":"--ramps-warning-800","warning-900":"--ramps-warning-900","warning-950":"--ramps-warning-950","error-50":"--ramps-error-50","error-100":"--ramps-error-100","error-200":"--ramps-error-200","error-300":"--ramps-error-300","error-400":"--ramps-error-400","error-500":"--ramps-error-500","error-600":"--ramps-error-600","error-700":"--ramps-error-700","error-800":"--ramps-error-800","error-900":"--ramps-error-900","error-950":"--ramps-error-950",primary:"--state-primary-default","primary-hover":"--state-primary-hover","primary-stroke":"--state-primary-stroke","primary-hover-bg":"--state-primary-hover-bg","primary-pressed":"--state-primary-pressed","primary-active":"--state-primary-active","primary-text-solid":"--state-primary-text-solid","primary-text-outline":"--state-primary-text-outline","primary-text-hover":"--state-primary-text-hover","primary-text-pressed":"--state-primary-text-pressed",secondary:"--state-secondary-default","secondary-hover":"--state-secondary-hover","secondary-stroke":"--state-secondary-stroke","secondary-hover-bg":"--state-secondary-hover-bg","secondary-pressed":"--state-secondary-pressed","secondary-active":"--state-secondary-active","secondary-text-solid":"--state-secondary-text-solid","secondary-text-outline":"--state-secondary-text-outline","secondary-text-hover":"--state-secondary-text-hover","secondary-text-pressed":"--state-secondary-text-pressed",tertiary:"--state-tertiary-default","tertiary-hover":"--state-tertiary-hover","tertiary-stroke":"--state-tertiary-stroke","tertiary-hover-bg":"--state-tertiary-hover-bg","tertiary-pressed":"--state-tertiary-pressed","tertiary-active":"--state-tertiary-active","tertiary-text-solid":"--state-tertiary-text-solid","tertiary-text-outline":"--state-tertiary-text-outline","tertiary-text-hover":"--state-tertiary-text-hover","tertiary-text-pressed":"--state-tertiary-text-pressed",info:"--state-info-default","info-hover":"--state-info-hover","info-stroke":"--state-info-stroke","info-hover-bg":"--state-info-hover-bg","info-pressed":"--state-info-pressed","info-active":"--state-info-active","info-text-solid":"--state-info-text-solid","info-text-outline":"--state-info-text-outline","info-text-hover":"--state-info-text-hover","info-text-pressed":"--state-info-text-pressed",success:"--state-success-default","success-hover":"--state-success-hover","success-stroke":"--state-success-stroke","success-hover-bg":"--state-success-hover-bg","success-pressed":"--state-success-pressed","success-active":"--state-success-active","success-text-solid":"--state-success-text-solid","success-text-outline":"--state-success-text-outline","success-text-hover":"--state-success-text-hover","success-text-pressed":"--state-success-text-pressed",warning:"--state-warning-default","warning-hover":"--state-warning-hover","warning-stroke":"--state-warning-stroke","warning-hover-bg":"--state-warning-hover-bg","warning-pressed":"--state-warning-pressed","warning-active":"--state-warning-active","warning-text-solid":"--state-warning-text-solid","warning-text-outline":"--state-warning-text-outline","warning-text-hover":"--state-warning-text-hover","warning-text-pressed":"--state-warning-text-pressed",error:"--state-error-default","error-hover":"--state-error-hover","error-stroke":"--state-error-stroke","error-hover-bg":"--state-error-hover-bg","error-pressed":"--state-error-pressed","error-active":"--state-error-active","error-text-solid":"--state-error-text-solid","error-text-outline":"--state-error-text-outline","error-text-hover":"--state-error-text-hover","error-text-pressed":"--state-error-text-pressed","disable-solid":"--state-disable-solid","disable-outline":"--state-disable-outline","text-black":"--text-black","text-contrast-low":"--text-contrast-low","text-contrast-medium":"--text-contrast-medium","text-contrast-high":"--text-contrast-high","text-contrast-max":"--text-contrast-max","text-g-contrast-low":"--text-g-contrast-low","text-g-contrast-medium":"--text-g-contrast-medium","text-g-contrast-high":"--text-g-contrast-high","text-dark":"--text-dark","text-medium":"--text-medium","text-light":"--text-light","text-grey-dark":"--text-grey-dark","text-grey-medium":"--text-grey-medium","text-grey-light":"--text-grey-light","text-white":"--text-white","input-default-text":"--input-default-text","input-default-stroke":"--input-default-stroke","input-filled-text":"--input-filled-text","input-active-stroke":"--input-active-stroke","input-disable-text":"--input-disable-text","input-disable-stroke":"--input-disable-stroke","input-disable-bg":"--input-disable-bg","input-label-bg":"--input-label-bg","input-error":"--input-error","function-default-solid":"--function-default-solid","function-default-hover":"--function-default-hover","function-default-hover-bg":"--function-default-hover-bg","function-default-stroke":"--function-default-stroke","function-default-icon":"--function-default-icon","function-default-outline-icon":"--function-default-outline-icon","function-active-solid":"--function-active-solid","function-active-hover":"--function-active-hover","function-active-hover-bg":"--function-active-hover-bg","function-active-stroke":"--function-active-stroke","function-active-icon":"--function-active-icon","modal-surface":"--modal-surface","modal-highlight":"--modal-highlight","modal-overlay":"--modal-overlay","bg-bg1":"--bg-bg1","bg-bg2":"--bg-bg2","bg-bg3":"--bg-bg3","bg-stroke1":"--bg-stroke1","bg-stroke2":"--bg-stroke2","state-primary-text-solid":"--state-primary-text-solid","state-primary-text-hover":"--state-primary-text-hover","state-secondary-text-solid":"--state-secondary-text-solid","state-secondary-text-hover":"--state-secondary-text-hover","state-tertiary-text-solid":"--state-tertiary-text-solid","state-tertiary-text-hover":"--state-tertiary-text-hover","state-info-text-solid":"--state-info-text-solid","state-info-text-hover":"--state-info-text-hover","state-success-text-solid":"--state-success-text-solid","state-success-text-hover":"--state-success-text-hover","state-warning-text-solid":"--state-warning-text-solid","state-warning-text-hover":"--state-warning-text-hover","state-error-text-solid":"--state-error-text-solid","state-error-text-hover":"--state-error-text-hover","base-bg":"--base-color-bg","base-bg2":"--base-color-bg2","base-bg3":"--base-color-bg3","base-workspace-stroke":"--base-color-workspace-stroke","base-guideline-stroke":"--base-color-guideline-stroke","base-popup":"--base-color-popup","base-popup-highlight":"--base-color-popup-highlight","base-popup-curtain":"--base-color-popup-curtain","base-popup-foreground":"--base-color-popup-foreground","common-white":"--common-white","common-black":"--common-black","brand-rvl-yellow":"--brand-rvl-yellow","brand-rvl-grey":"--brand-rvl-grey","others-1":"--others-1","others-2":"--others-2","others-3":"--others-3","others-4":"--others-4","others-5":"--others-5","others-6":"--others-6","others-7":"--others-7","others-8":"--others-8","others-9":"--others-9","others-10":"--others-10","others-11":"--others-11","others-12":"--others-12","others-13":"--others-13","others-14":"--others-14","others-15":"--others-15","others-16":"--others-16","others-17":"--others-17","others-18":"--others-18","others-19":"--others-19","others-20":"--others-20","others-21":"--others-21","others-22":"--others-22","others-23":"--others-23","others-24":"--others-24","others-25":"--others-25","others-26":"--others-26","others-27":"--others-27","others-28":"--others-28","others-29":"--others-29","others-30":"--others-30","others-31":"--others-31","others-32":"--others-32","others-33":"--others-33","others-34":"--others-34","others-35":"--others-35","page-bg-main":"--page-bg-main","page-bg-circle-top-g-in":"--page-bg-circle-top-g-in","page-bg-circle-top-g-out":"--page-bg-circle-top-g-out","page-bg-circle-bottom-g-in":"--page-bg-circle-bottom-g-in","page-bg-circle-bottom-g-out":"--page-bg-circle-bottom-g-out","modal-line":"--modal-line","bg-bg4":"--bg-bg4","bg-bg5":"--bg-bg5","bg-stroke3":"--bg-stroke3","bg-stroke4":"--bg-stroke4","bg-stroke5":"--bg-stroke5",background:"--background",foreground:"--foreground",surface:"--surface","surface-foreground":"--surface-foreground","primary-foreground":"--primary-foreground","secondary-foreground":"--secondary-foreground","tertiary-foreground":"--tertiary-foreground","info-foreground":"--info-foreground","success-foreground":"--success-foreground","warning-foreground":"--warning-foreground","error-foreground":"--error-foreground","grey-foreground":"--grey-foreground","grey2-foreground":"--grey2-foreground","primary-transparent-8":"--transparent-primary-8","primary-transparent-12":"--transparent-primary-12","primary-transparent-16":"--transparent-primary-16","primary-transparent-24":"--transparent-primary-24","primary-transparent-32":"--transparent-primary-32","primary-transparent-48":"--transparent-primary-48","secondary-transparent-8":"--transparent-secondary-8","secondary-transparent-12":"--transparent-secondary-12","secondary-transparent-16":"--transparent-secondary-16","secondary-transparent-24":"--transparent-secondary-24","secondary-transparent-32":"--transparent-secondary-32","secondary-transparent-48":"--transparent-secondary-48","tertiary-transparent-8":"--transparent-tertiary-8","tertiary-transparent-12":"--transparent-tertiary-12","tertiary-transparent-16":"--transparent-tertiary-16","tertiary-transparent-24":"--transparent-tertiary-24","tertiary-transparent-32":"--transparent-tertiary-32","tertiary-transparent-48":"--transparent-tertiary-48","info-transparent-8":"--transparent-info-8","info-transparent-12":"--transparent-info-12","info-transparent-16":"--transparent-info-16","info-transparent-24":"--transparent-info-24","info-transparent-32":"--transparent-info-32","info-transparent-48":"--transparent-info-48","success-transparent-8":"--transparent-success-8","success-transparent-12":"--transparent-success-12","success-transparent-16":"--transparent-success-16","success-transparent-24":"--transparent-success-24","success-transparent-32":"--transparent-success-32","success-transparent-48":"--transparent-success-48","warning-transparent-8":"--transparent-warning-8","warning-transparent-12":"--transparent-warning-12","warning-transparent-16":"--transparent-warning-16","warning-transparent-24":"--transparent-warning-24","warning-transparent-32":"--transparent-warning-32","warning-transparent-48":"--transparent-warning-48","error-transparent-8":"--transparent-error-8","error-transparent-12":"--transparent-error-12","error-transparent-16":"--transparent-error-16","error-transparent-24":"--transparent-error-24","error-transparent-32":"--transparent-error-32","error-transparent-48":"--transparent-error-48","grey-transparent-8":"--transparent-grey-8","grey-transparent-12":"--transparent-grey-12","grey-transparent-16":"--transparent-grey-16","grey-transparent-24":"--transparent-grey-24","grey-transparent-32":"--transparent-grey-32","grey-transparent-48":"--transparent-grey-48","grey2-transparent-8":"--transparent-grey2-8","grey2-transparent-12":"--transparent-grey2-12","grey2-transparent-16":"--transparent-grey2-16","grey2-transparent-24":"--transparent-grey2-24","grey2-transparent-32":"--transparent-grey2-32","grey2-transparent-48":"--transparent-grey2-48","white-transparent-8":"--transparent-white-8","white-transparent-12":"--transparent-white-12","white-transparent-16":"--transparent-white-16","white-transparent-24":"--transparent-white-24","white-transparent-32":"--transparent-white-32","white-transparent-48":"--transparent-white-48","black-transparent-8":"--transparent-black-8","black-transparent-12":"--transparent-black-12","black-transparent-16":"--transparent-black-16","black-transparent-24":"--transparent-black-24","black-transparent-32":"--transparent-black-32","black-transparent-48":"--transparent-black-48"};function OZe(e,t=document){if("undefined"==typeof window)return"";const r=t instanceof Document?t.documentElement:t,n=e in jZe?jZe[e]:e.startsWith("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(n).trim()}const EZe={"a-arrow-down":()=>Promise.resolve().then((function(){return j_})),"a-arrow-up":()=>Promise.resolve().then((function(){return E_})),"a-large-small":()=>Promise.resolve().then((function(){return C_})),accessibility:()=>Promise.resolve().then((function(){return R_})),activity:()=>Promise.resolve().then((function(){return L_})),"air-vent":()=>Promise.resolve().then((function(){return V_})),airplay:()=>Promise.resolve().then((function(){return S_})),"alarm-clock-check":()=>Promise.resolve().then((function(){return N_})),"alarm-clock-minus":()=>Promise.resolve().then((function(){return D_})),"alarm-clock-off":()=>Promise.resolve().then((function(){return F_})),"alarm-clock-plus":()=>Promise.resolve().then((function(){return W_})),"alarm-clock":()=>Promise.resolve().then((function(){return G_})),"alarm-smoke":()=>Promise.resolve().then((function(){return Y_})),album:()=>Promise.resolve().then((function(){return X_})),"align-center-horizontal":()=>Promise.resolve().then((function(){return J_})),"align-center-vertical":()=>Promise.resolve().then((function(){return tM})),"align-center":()=>Promise.resolve().then((function(){return nM})),"align-end-horizontal":()=>Promise.resolve().then((function(){return oM})),"align-end-vertical":()=>Promise.resolve().then((function(){return iM})),"align-horizontal-distribute-center":()=>Promise.resolve().then((function(){return cM})),"align-horizontal-distribute-end":()=>Promise.resolve().then((function(){return uM})),"align-horizontal-distribute-start":()=>Promise.resolve().then((function(){return pM})),"align-horizontal-justify-center":()=>Promise.resolve().then((function(){return vM})),"align-horizontal-justify-end":()=>Promise.resolve().then((function(){return yM})),"align-horizontal-justify-start":()=>Promise.resolve().then((function(){return kM})),"align-horizontal-space-around":()=>Promise.resolve().then((function(){return wM})),"align-horizontal-space-between":()=>Promise.resolve().then((function(){return _M})),"align-justify":()=>Promise.resolve().then((function(){return jM})),"align-left":()=>Promise.resolve().then((function(){return EM})),"align-right":()=>Promise.resolve().then((function(){return CM})),"align-start-horizontal":()=>Promise.resolve().then((function(){return RM})),"align-start-vertical":()=>Promise.resolve().then((function(){return LM})),"align-vertical-distribute-center":()=>Promise.resolve().then((function(){return VM})),"align-vertical-distribute-end":()=>Promise.resolve().then((function(){return SM})),"align-vertical-distribute-start":()=>Promise.resolve().then((function(){return NM})),"align-vertical-justify-center":()=>Promise.resolve().then((function(){return DM})),"align-vertical-justify-end":()=>Promise.resolve().then((function(){return FM})),"align-vertical-justify-start":()=>Promise.resolve().then((function(){return WM})),"align-vertical-space-around":()=>Promise.resolve().then((function(){return GM})),"align-vertical-space-between":()=>Promise.resolve().then((function(){return YM})),ambulance:()=>Promise.resolve().then((function(){return XM})),ampersand:()=>Promise.resolve().then((function(){return JM})),ampersands:()=>Promise.resolve().then((function(){return tj})),amphora:()=>Promise.resolve().then((function(){return nj})),anchor:()=>Promise.resolve().then((function(){return oj})),angry:()=>Promise.resolve().then((function(){return ij})),annoyed:()=>Promise.resolve().then((function(){return cj})),antenna:()=>Promise.resolve().then((function(){return uj})),anvil:()=>Promise.resolve().then((function(){return pj})),aperture:()=>Promise.resolve().then((function(){return vj})),"app-window-mac":()=>Promise.resolve().then((function(){return yj})),"app-window":()=>Promise.resolve().then((function(){return kj})),apple:()=>Promise.resolve().then((function(){return wj})),"archive-restore":()=>Promise.resolve().then((function(){return _j})),"archive-x":()=>Promise.resolve().then((function(){return jj})),archive:()=>Promise.resolve().then((function(){return Ej})),armchair:()=>Promise.resolve().then((function(){return Cj})),"arrow-big-down-dash":()=>Promise.resolve().then((function(){return Rj})),"arrow-big-down":()=>Promise.resolve().then((function(){return Lj})),"arrow-big-left-dash":()=>Promise.resolve().then((function(){return Vj})),"arrow-big-left":()=>Promise.resolve().then((function(){return Sj})),"arrow-big-right-dash":()=>Promise.resolve().then((function(){return Nj})),"arrow-big-right":()=>Promise.resolve().then((function(){return Dj})),"arrow-big-up-dash":()=>Promise.resolve().then((function(){return Fj})),"arrow-big-up":()=>Promise.resolve().then((function(){return Wj})),"arrow-down-0-1":()=>Promise.resolve().then((function(){return Gj})),"arrow-down-1-0":()=>Promise.resolve().then((function(){return Yj})),"arrow-down-a-z":()=>Promise.resolve().then((function(){return Xj})),"arrow-down-from-line":()=>Promise.resolve().then((function(){return Jj})),"arrow-down-left":()=>Promise.resolve().then((function(){return tO})),"arrow-down-narrow-wide":()=>Promise.resolve().then((function(){return nO})),"arrow-down-right":()=>Promise.resolve().then((function(){return oO})),"arrow-down-to-dot":()=>Promise.resolve().then((function(){return iO})),"arrow-down-to-line":()=>Promise.resolve().then((function(){return cO})),"arrow-down-up":()=>Promise.resolve().then((function(){return uO})),"arrow-down-wide-narrow":()=>Promise.resolve().then((function(){return pO})),"arrow-down-z-a":()=>Promise.resolve().then((function(){return vO})),"arrow-down":()=>Promise.resolve().then((function(){return yO})),"arrow-left-from-line":()=>Promise.resolve().then((function(){return kO})),"arrow-left-right":()=>Promise.resolve().then((function(){return wO})),"arrow-left-to-line":()=>Promise.resolve().then((function(){return _O})),"arrow-left":()=>Promise.resolve().then((function(){return jO})),"arrow-right-from-line":()=>Promise.resolve().then((function(){return EO})),"arrow-right-left":()=>Promise.resolve().then((function(){return CO})),"arrow-right-to-line":()=>Promise.resolve().then((function(){return RO})),"arrow-right":()=>Promise.resolve().then((function(){return LO})),"arrow-up-0-1":()=>Promise.resolve().then((function(){return VO})),"arrow-up-1-0":()=>Promise.resolve().then((function(){return SO})),"arrow-up-a-z":()=>Promise.resolve().then((function(){return NO})),"arrow-up-down":()=>Promise.resolve().then((function(){return DO})),"arrow-up-from-dot":()=>Promise.resolve().then((function(){return FO})),"arrow-up-from-line":()=>Promise.resolve().then((function(){return WO})),"arrow-up-left":()=>Promise.resolve().then((function(){return GO})),"arrow-up-narrow-wide":()=>Promise.resolve().then((function(){return YO})),"arrow-up-right":()=>Promise.resolve().then((function(){return XO})),"arrow-up-to-line":()=>Promise.resolve().then((function(){return JO})),"arrow-up-wide-narrow":()=>Promise.resolve().then((function(){return tE})),"arrow-up-z-a":()=>Promise.resolve().then((function(){return nE})),"arrow-up":()=>Promise.resolve().then((function(){return oE})),"arrows-up-from-line":()=>Promise.resolve().then((function(){return iE})),asterisk:()=>Promise.resolve().then((function(){return cE})),"at-sign":()=>Promise.resolve().then((function(){return uE})),atom:()=>Promise.resolve().then((function(){return pE})),"audio-lines":()=>Promise.resolve().then((function(){return vE})),"audio-waveform":()=>Promise.resolve().then((function(){return yE})),award:()=>Promise.resolve().then((function(){return kE})),axe:()=>Promise.resolve().then((function(){return wE})),"axis-3d":()=>Promise.resolve().then((function(){return _E})),baby:()=>Promise.resolve().then((function(){return jE})),backpack:()=>Promise.resolve().then((function(){return EE})),"badge-alert":()=>Promise.resolve().then((function(){return CE})),"badge-cent":()=>Promise.resolve().then((function(){return RE})),"badge-check":()=>Promise.resolve().then((function(){return LE})),"badge-dollar-sign":()=>Promise.resolve().then((function(){return VE})),"badge-euro":()=>Promise.resolve().then((function(){return SE})),"badge-help":()=>Promise.resolve().then((function(){return NE})),"badge-indian-rupee":()=>Promise.resolve().then((function(){return DE})),"badge-info":()=>Promise.resolve().then((function(){return FE})),"badge-japanese-yen":()=>Promise.resolve().then((function(){return WE})),"badge-minus":()=>Promise.resolve().then((function(){return GE})),"badge-percent":()=>Promise.resolve().then((function(){return YE})),"badge-plus":()=>Promise.resolve().then((function(){return XE})),"badge-pound-sterling":()=>Promise.resolve().then((function(){return JE})),"badge-russian-ruble":()=>Promise.resolve().then((function(){return tz})),"badge-swiss-franc":()=>Promise.resolve().then((function(){return nz})),"badge-x":()=>Promise.resolve().then((function(){return oz})),badge:()=>Promise.resolve().then((function(){return iz})),"baggage-claim":()=>Promise.resolve().then((function(){return cz})),ban:()=>Promise.resolve().then((function(){return uz})),banana:()=>Promise.resolve().then((function(){return pz})),bandage:()=>Promise.resolve().then((function(){return vz})),banknote:()=>Promise.resolve().then((function(){return yz})),barcode:()=>Promise.resolve().then((function(){return kz})),baseline:()=>Promise.resolve().then((function(){return wz})),bath:()=>Promise.resolve().then((function(){return _z})),"battery-charging":()=>Promise.resolve().then((function(){return jz})),"battery-full":()=>Promise.resolve().then((function(){return Ez})),"battery-low":()=>Promise.resolve().then((function(){return Cz})),"battery-medium":()=>Promise.resolve().then((function(){return Rz})),"battery-warning":()=>Promise.resolve().then((function(){return Lz})),battery:()=>Promise.resolve().then((function(){return Vz})),beaker:()=>Promise.resolve().then((function(){return Sz})),"bean-off":()=>Promise.resolve().then((function(){return Nz})),bean:()=>Promise.resolve().then((function(){return Dz})),"bed-double":()=>Promise.resolve().then((function(){return Fz})),"bed-single":()=>Promise.resolve().then((function(){return Wz})),bed:()=>Promise.resolve().then((function(){return Gz})),beef:()=>Promise.resolve().then((function(){return Yz})),"beer-off":()=>Promise.resolve().then((function(){return Xz})),beer:()=>Promise.resolve().then((function(){return Jz})),"bell-dot":()=>Promise.resolve().then((function(){return tC})),"bell-electric":()=>Promise.resolve().then((function(){return nC})),"bell-minus":()=>Promise.resolve().then((function(){return oC})),"bell-off":()=>Promise.resolve().then((function(){return iC})),"bell-plus":()=>Promise.resolve().then((function(){return cC})),"bell-ring":()=>Promise.resolve().then((function(){return uC})),bell:()=>Promise.resolve().then((function(){return pC})),"between-horizontal-end":()=>Promise.resolve().then((function(){return vC})),"between-horizontal-start":()=>Promise.resolve().then((function(){return yC})),"between-vertical-end":()=>Promise.resolve().then((function(){return kC})),"between-vertical-start":()=>Promise.resolve().then((function(){return wC})),"biceps-flexed":()=>Promise.resolve().then((function(){return _C})),bike:()=>Promise.resolve().then((function(){return jC})),binary:()=>Promise.resolve().then((function(){return EC})),binoculars:()=>Promise.resolve().then((function(){return CC})),biohazard:()=>Promise.resolve().then((function(){return RC})),bird:()=>Promise.resolve().then((function(){return LC})),bitcoin:()=>Promise.resolve().then((function(){return VC})),blend:()=>Promise.resolve().then((function(){return SC})),blinds:()=>Promise.resolve().then((function(){return NC})),blocks:()=>Promise.resolve().then((function(){return DC})),"bluetooth-connected":()=>Promise.resolve().then((function(){return FC})),"bluetooth-off":()=>Promise.resolve().then((function(){return WC})),"bluetooth-searching":()=>Promise.resolve().then((function(){return GC})),bluetooth:()=>Promise.resolve().then((function(){return YC})),bold:()=>Promise.resolve().then((function(){return XC})),bolt:()=>Promise.resolve().then((function(){return JC})),bomb:()=>Promise.resolve().then((function(){return tP})),bone:()=>Promise.resolve().then((function(){return nP})),"book-a":()=>Promise.resolve().then((function(){return oP})),"book-audio":()=>Promise.resolve().then((function(){return iP})),"book-check":()=>Promise.resolve().then((function(){return cP})),"book-copy":()=>Promise.resolve().then((function(){return uP})),"book-dashed":()=>Promise.resolve().then((function(){return pP})),"book-down":()=>Promise.resolve().then((function(){return vP})),"book-headphones":()=>Promise.resolve().then((function(){return yP})),"book-heart":()=>Promise.resolve().then((function(){return kP})),"book-image":()=>Promise.resolve().then((function(){return wP})),"book-key":()=>Promise.resolve().then((function(){return _P})),"book-lock":()=>Promise.resolve().then((function(){return jP})),"book-marked":()=>Promise.resolve().then((function(){return EP})),"book-minus":()=>Promise.resolve().then((function(){return CP})),"book-open-check":()=>Promise.resolve().then((function(){return RP})),"book-open-text":()=>Promise.resolve().then((function(){return LP})),"book-open":()=>Promise.resolve().then((function(){return VP})),"book-plus":()=>Promise.resolve().then((function(){return SP})),"book-text":()=>Promise.resolve().then((function(){return NP})),"book-type":()=>Promise.resolve().then((function(){return DP})),"book-up-2":()=>Promise.resolve().then((function(){return FP})),"book-up":()=>Promise.resolve().then((function(){return WP})),"book-user":()=>Promise.resolve().then((function(){return GP})),"book-x":()=>Promise.resolve().then((function(){return YP})),book:()=>Promise.resolve().then((function(){return XP})),"bookmark-check":()=>Promise.resolve().then((function(){return JP})),"bookmark-minus":()=>Promise.resolve().then((function(){return tR})),"bookmark-plus":()=>Promise.resolve().then((function(){return nR})),"bookmark-x":()=>Promise.resolve().then((function(){return oR})),bookmark:()=>Promise.resolve().then((function(){return iR})),"boom-box":()=>Promise.resolve().then((function(){return cR})),"bot-message-square":()=>Promise.resolve().then((function(){return uR})),"bot-off":()=>Promise.resolve().then((function(){return pR})),bot:()=>Promise.resolve().then((function(){return vR})),box:()=>Promise.resolve().then((function(){return yR})),boxes:()=>Promise.resolve().then((function(){return kR})),braces:()=>Promise.resolve().then((function(){return wR})),brackets:()=>Promise.resolve().then((function(){return _R})),"brain-circuit":()=>Promise.resolve().then((function(){return jR})),"brain-cog":()=>Promise.resolve().then((function(){return ER})),brain:()=>Promise.resolve().then((function(){return CR})),"brick-wall":()=>Promise.resolve().then((function(){return RR})),"briefcase-business":()=>Promise.resolve().then((function(){return LR})),"briefcase-conveyor-belt":()=>Promise.resolve().then((function(){return VR})),"briefcase-medical":()=>Promise.resolve().then((function(){return SR})),briefcase:()=>Promise.resolve().then((function(){return NR})),"bring-to-front":()=>Promise.resolve().then((function(){return DR})),brush:()=>Promise.resolve().then((function(){return FR})),"bug-off":()=>Promise.resolve().then((function(){return WR})),"bug-play":()=>Promise.resolve().then((function(){return GR})),bug:()=>Promise.resolve().then((function(){return YR})),"building-2":()=>Promise.resolve().then((function(){return XR})),building:()=>Promise.resolve().then((function(){return JR})),"bus-front":()=>Promise.resolve().then((function(){return tA})),bus:()=>Promise.resolve().then((function(){return nA})),"cable-car":()=>Promise.resolve().then((function(){return oA})),cable:()=>Promise.resolve().then((function(){return iA})),"cake-slice":()=>Promise.resolve().then((function(){return cA})),cake:()=>Promise.resolve().then((function(){return uA})),calculator:()=>Promise.resolve().then((function(){return pA})),"calendar-1":()=>Promise.resolve().then((function(){return vA})),"calendar-arrow-down":()=>Promise.resolve().then((function(){return yA})),"calendar-arrow-up":()=>Promise.resolve().then((function(){return kA})),"calendar-check-2":()=>Promise.resolve().then((function(){return wA})),"calendar-check":()=>Promise.resolve().then((function(){return _A})),"calendar-clock":()=>Promise.resolve().then((function(){return jA})),"calendar-cog":()=>Promise.resolve().then((function(){return EA})),"calendar-days":()=>Promise.resolve().then((function(){return CA})),"calendar-fold":()=>Promise.resolve().then((function(){return RA})),"calendar-heart":()=>Promise.resolve().then((function(){return LA})),"calendar-minus-2":()=>Promise.resolve().then((function(){return VA})),"calendar-minus":()=>Promise.resolve().then((function(){return SA})),"calendar-off":()=>Promise.resolve().then((function(){return NA})),"calendar-plus-2":()=>Promise.resolve().then((function(){return DA})),"calendar-plus":()=>Promise.resolve().then((function(){return FA})),"calendar-range":()=>Promise.resolve().then((function(){return WA})),"calendar-search":()=>Promise.resolve().then((function(){return GA})),"calendar-x-2":()=>Promise.resolve().then((function(){return YA})),"calendar-x":()=>Promise.resolve().then((function(){return XA})),calendar:()=>Promise.resolve().then((function(){return JA})),"camera-off":()=>Promise.resolve().then((function(){return tL})),camera:()=>Promise.resolve().then((function(){return nL})),"candy-cane":()=>Promise.resolve().then((function(){return oL})),"candy-off":()=>Promise.resolve().then((function(){return iL})),candy:()=>Promise.resolve().then((function(){return cL})),cannabis:()=>Promise.resolve().then((function(){return uL})),"captions-off":()=>Promise.resolve().then((function(){return pL})),captions:()=>Promise.resolve().then((function(){return vL})),"car-front":()=>Promise.resolve().then((function(){return yL})),"car-taxi-front":()=>Promise.resolve().then((function(){return kL})),car:()=>Promise.resolve().then((function(){return wL})),caravan:()=>Promise.resolve().then((function(){return _L})),carrot:()=>Promise.resolve().then((function(){return jL})),"case-lower":()=>Promise.resolve().then((function(){return EL})),"case-sensitive":()=>Promise.resolve().then((function(){return CL})),"case-upper":()=>Promise.resolve().then((function(){return RL})),"cassette-tape":()=>Promise.resolve().then((function(){return LL})),cast:()=>Promise.resolve().then((function(){return VL})),castle:()=>Promise.resolve().then((function(){return SL})),cat:()=>Promise.resolve().then((function(){return NL})),cctv:()=>Promise.resolve().then((function(){return DL})),"chart-area":()=>Promise.resolve().then((function(){return FL})),"chart-bar-big":()=>Promise.resolve().then((function(){return WL})),"chart-bar-decreasing":()=>Promise.resolve().then((function(){return GL})),"chart-bar-increasing":()=>Promise.resolve().then((function(){return YL})),"chart-bar-stacked":()=>Promise.resolve().then((function(){return XL})),"chart-bar":()=>Promise.resolve().then((function(){return JL})),"chart-candlestick":()=>Promise.resolve().then((function(){return tI})),"chart-column-big":()=>Promise.resolve().then((function(){return nI})),"chart-column-decreasing":()=>Promise.resolve().then((function(){return oI})),"chart-column-increasing":()=>Promise.resolve().then((function(){return iI})),"chart-column-stacked":()=>Promise.resolve().then((function(){return cI})),"chart-column":()=>Promise.resolve().then((function(){return uI})),"chart-gantt":()=>Promise.resolve().then((function(){return pI})),"chart-line":()=>Promise.resolve().then((function(){return vI})),"chart-network":()=>Promise.resolve().then((function(){return yI})),"chart-no-axes-column-decreasing":()=>Promise.resolve().then((function(){return kI})),"chart-no-axes-column-increasing":()=>Promise.resolve().then((function(){return wI})),"chart-no-axes-column":()=>Promise.resolve().then((function(){return _I})),"chart-no-axes-combined":()=>Promise.resolve().then((function(){return jI})),"chart-no-axes-gantt":()=>Promise.resolve().then((function(){return EI})),"chart-pie":()=>Promise.resolve().then((function(){return CI})),"chart-scatter":()=>Promise.resolve().then((function(){return RI})),"chart-spline":()=>Promise.resolve().then((function(){return LI})),"check-check":()=>Promise.resolve().then((function(){return VI})),check:()=>Promise.resolve().then((function(){return SI})),"chef-hat":()=>Promise.resolve().then((function(){return NI})),cherry:()=>Promise.resolve().then((function(){return DI})),"chevron-down":()=>Promise.resolve().then((function(){return FI})),"chevron-first":()=>Promise.resolve().then((function(){return WI})),"chevron-last":()=>Promise.resolve().then((function(){return GI})),"chevron-left":()=>Promise.resolve().then((function(){return YI})),"chevron-right":()=>Promise.resolve().then((function(){return XI})),"chevron-up":()=>Promise.resolve().then((function(){return JI})),"chevrons-down-up":()=>Promise.resolve().then((function(){return tV})),"chevrons-down":()=>Promise.resolve().then((function(){return nV})),"chevrons-left-right-ellipsis":()=>Promise.resolve().then((function(){return oV})),"chevrons-left-right":()=>Promise.resolve().then((function(){return iV})),"chevrons-left":()=>Promise.resolve().then((function(){return cV})),"chevrons-right-left":()=>Promise.resolve().then((function(){return uV})),"chevrons-right":()=>Promise.resolve().then((function(){return pV})),"chevrons-up-down":()=>Promise.resolve().then((function(){return vV})),"chevrons-up":()=>Promise.resolve().then((function(){return yV})),chrome:()=>Promise.resolve().then((function(){return kV})),church:()=>Promise.resolve().then((function(){return wV})),"cigarette-off":()=>Promise.resolve().then((function(){return _V})),cigarette:()=>Promise.resolve().then((function(){return jV})),"circle-alert":()=>Promise.resolve().then((function(){return EV})),"circle-arrow-down":()=>Promise.resolve().then((function(){return CV})),"circle-arrow-left":()=>Promise.resolve().then((function(){return RV})),"circle-arrow-out-down-left":()=>Promise.resolve().then((function(){return LV})),"circle-arrow-out-down-right":()=>Promise.resolve().then((function(){return VV})),"circle-arrow-out-up-left":()=>Promise.resolve().then((function(){return SV})),"circle-arrow-out-up-right":()=>Promise.resolve().then((function(){return NV})),"circle-arrow-right":()=>Promise.resolve().then((function(){return DV})),"circle-arrow-up":()=>Promise.resolve().then((function(){return FV})),"circle-check-big":()=>Promise.resolve().then((function(){return WV})),"circle-check":()=>Promise.resolve().then((function(){return GV})),"circle-chevron-down":()=>Promise.resolve().then((function(){return YV})),"circle-chevron-left":()=>Promise.resolve().then((function(){return XV})),"circle-chevron-right":()=>Promise.resolve().then((function(){return JV})),"circle-chevron-up":()=>Promise.resolve().then((function(){return tH})),"circle-dashed":()=>Promise.resolve().then((function(){return nH})),"circle-divide":()=>Promise.resolve().then((function(){return oH})),"circle-dollar-sign":()=>Promise.resolve().then((function(){return iH})),"circle-dot-dashed":()=>Promise.resolve().then((function(){return cH})),"circle-dot":()=>Promise.resolve().then((function(){return uH})),"circle-ellipsis":()=>Promise.resolve().then((function(){return pH})),"circle-equal":()=>Promise.resolve().then((function(){return vH})),"circle-fading-arrow-up":()=>Promise.resolve().then((function(){return yH})),"circle-fading-plus":()=>Promise.resolve().then((function(){return kH})),"circle-gauge":()=>Promise.resolve().then((function(){return wH})),"circle-help":()=>Promise.resolve().then((function(){return _H})),"circle-minus":()=>Promise.resolve().then((function(){return jH})),"circle-off":()=>Promise.resolve().then((function(){return EH})),"circle-parking-off":()=>Promise.resolve().then((function(){return CH})),"circle-parking":()=>Promise.resolve().then((function(){return RH})),"circle-pause":()=>Promise.resolve().then((function(){return LH})),"circle-percent":()=>Promise.resolve().then((function(){return VH})),"circle-play":()=>Promise.resolve().then((function(){return SH})),"circle-plus":()=>Promise.resolve().then((function(){return NH})),"circle-power":()=>Promise.resolve().then((function(){return DH})),"circle-slash-2":()=>Promise.resolve().then((function(){return FH})),"circle-slash":()=>Promise.resolve().then((function(){return WH})),"circle-stop":()=>Promise.resolve().then((function(){return GH})),"circle-user-round":()=>Promise.resolve().then((function(){return YH})),"circle-user":()=>Promise.resolve().then((function(){return XH})),"circle-x":()=>Promise.resolve().then((function(){return JH})),circle:()=>Promise.resolve().then((function(){return tS})),"circuit-board":()=>Promise.resolve().then((function(){return nS})),citrus:()=>Promise.resolve().then((function(){return oS})),clapperboard:()=>Promise.resolve().then((function(){return iS})),"clipboard-check":()=>Promise.resolve().then((function(){return cS})),"clipboard-copy":()=>Promise.resolve().then((function(){return uS})),"clipboard-list":()=>Promise.resolve().then((function(){return pS})),"clipboard-minus":()=>Promise.resolve().then((function(){return vS})),"clipboard-paste":()=>Promise.resolve().then((function(){return yS})),"clipboard-pen-line":()=>Promise.resolve().then((function(){return kS})),"clipboard-pen":()=>Promise.resolve().then((function(){return wS})),"clipboard-plus":()=>Promise.resolve().then((function(){return _S})),"clipboard-type":()=>Promise.resolve().then((function(){return jS})),"clipboard-x":()=>Promise.resolve().then((function(){return ES})),clipboard:()=>Promise.resolve().then((function(){return CS})),"clock-1":()=>Promise.resolve().then((function(){return RS})),"clock-10":()=>Promise.resolve().then((function(){return LS})),"clock-11":()=>Promise.resolve().then((function(){return VS})),"clock-12":()=>Promise.resolve().then((function(){return SS})),"clock-2":()=>Promise.resolve().then((function(){return NS})),"clock-3":()=>Promise.resolve().then((function(){return DS})),"clock-4":()=>Promise.resolve().then((function(){return FS})),"clock-5":()=>Promise.resolve().then((function(){return WS})),"clock-6":()=>Promise.resolve().then((function(){return GS})),"clock-7":()=>Promise.resolve().then((function(){return YS})),"clock-8":()=>Promise.resolve().then((function(){return XS})),"clock-9":()=>Promise.resolve().then((function(){return JS})),"clock-alert":()=>Promise.resolve().then((function(){return tZ})),"clock-arrow-down":()=>Promise.resolve().then((function(){return nZ})),"clock-arrow-up":()=>Promise.resolve().then((function(){return oZ})),clock:()=>Promise.resolve().then((function(){return iZ})),"cloud-alert":()=>Promise.resolve().then((function(){return cZ})),"cloud-cog":()=>Promise.resolve().then((function(){return uZ})),"cloud-download":()=>Promise.resolve().then((function(){return pZ})),"cloud-drizzle":()=>Promise.resolve().then((function(){return vZ})),"cloud-fog":()=>Promise.resolve().then((function(){return yZ})),"cloud-hail":()=>Promise.resolve().then((function(){return kZ})),"cloud-lightning":()=>Promise.resolve().then((function(){return wZ})),"cloud-moon-rain":()=>Promise.resolve().then((function(){return _Z})),"cloud-moon":()=>Promise.resolve().then((function(){return jZ})),"cloud-off":()=>Promise.resolve().then((function(){return EZ})),"cloud-rain-wind":()=>Promise.resolve().then((function(){return CZ})),"cloud-rain":()=>Promise.resolve().then((function(){return RZ})),"cloud-snow":()=>Promise.resolve().then((function(){return LZ})),"cloud-sun-rain":()=>Promise.resolve().then((function(){return VZ})),"cloud-sun":()=>Promise.resolve().then((function(){return SZ})),"cloud-upload":()=>Promise.resolve().then((function(){return NZ})),cloud:()=>Promise.resolve().then((function(){return DZ})),cloudy:()=>Promise.resolve().then((function(){return FZ})),clover:()=>Promise.resolve().then((function(){return WZ})),club:()=>Promise.resolve().then((function(){return GZ})),"code-xml":()=>Promise.resolve().then((function(){return YZ})),code:()=>Promise.resolve().then((function(){return XZ})),codepen:()=>Promise.resolve().then((function(){return JZ})),codesandbox:()=>Promise.resolve().then((function(){return tN})),coffee:()=>Promise.resolve().then((function(){return nN})),cog:()=>Promise.resolve().then((function(){return oN})),coins:()=>Promise.resolve().then((function(){return iN})),"columns-2":()=>Promise.resolve().then((function(){return cN})),"columns-3":()=>Promise.resolve().then((function(){return uN})),"columns-4":()=>Promise.resolve().then((function(){return pN})),combine:()=>Promise.resolve().then((function(){return vN})),command:()=>Promise.resolve().then((function(){return yN})),compass:()=>Promise.resolve().then((function(){return kN})),component:()=>Promise.resolve().then((function(){return wN})),computer:()=>Promise.resolve().then((function(){return _N})),"concierge-bell":()=>Promise.resolve().then((function(){return jN})),cone:()=>Promise.resolve().then((function(){return EN})),construction:()=>Promise.resolve().then((function(){return CN})),"contact-round":()=>Promise.resolve().then((function(){return RN})),contact:()=>Promise.resolve().then((function(){return LN})),container:()=>Promise.resolve().then((function(){return VN})),contrast:()=>Promise.resolve().then((function(){return SN})),cookie:()=>Promise.resolve().then((function(){return NN})),"cooking-pot":()=>Promise.resolve().then((function(){return DN})),"copy-check":()=>Promise.resolve().then((function(){return FN})),"copy-minus":()=>Promise.resolve().then((function(){return WN})),"copy-plus":()=>Promise.resolve().then((function(){return GN})),"copy-slash":()=>Promise.resolve().then((function(){return YN})),"copy-x":()=>Promise.resolve().then((function(){return XN})),copy:()=>Promise.resolve().then((function(){return JN})),copyleft:()=>Promise.resolve().then((function(){return tq})),copyright:()=>Promise.resolve().then((function(){return nq})),"corner-down-left":()=>Promise.resolve().then((function(){return oq})),"corner-down-right":()=>Promise.resolve().then((function(){return iq})),"corner-left-down":()=>Promise.resolve().then((function(){return cq})),"corner-left-up":()=>Promise.resolve().then((function(){return uq})),"corner-right-down":()=>Promise.resolve().then((function(){return pq})),"corner-right-up":()=>Promise.resolve().then((function(){return vq})),"corner-up-left":()=>Promise.resolve().then((function(){return yq})),"corner-up-right":()=>Promise.resolve().then((function(){return kq})),cpu:()=>Promise.resolve().then((function(){return wq})),"creative-commons":()=>Promise.resolve().then((function(){return _q})),"credit-card":()=>Promise.resolve().then((function(){return jq})),croissant:()=>Promise.resolve().then((function(){return Eq})),crop:()=>Promise.resolve().then((function(){return Cq})),cross:()=>Promise.resolve().then((function(){return Rq})),crosshair:()=>Promise.resolve().then((function(){return Lq})),crown:()=>Promise.resolve().then((function(){return Vq})),cuboid:()=>Promise.resolve().then((function(){return Sq})),"cup-soda":()=>Promise.resolve().then((function(){return Nq})),currency:()=>Promise.resolve().then((function(){return Dq})),cylinder:()=>Promise.resolve().then((function(){return Fq})),dam:()=>Promise.resolve().then((function(){return Wq})),"database-backup":()=>Promise.resolve().then((function(){return Gq})),"database-zap":()=>Promise.resolve().then((function(){return Yq})),database:()=>Promise.resolve().then((function(){return Xq})),delete:()=>Promise.resolve().then((function(){return Jq})),dessert:()=>Promise.resolve().then((function(){return tD})),diameter:()=>Promise.resolve().then((function(){return nD})),"diamond-minus":()=>Promise.resolve().then((function(){return oD})),"diamond-percent":()=>Promise.resolve().then((function(){return iD})),"diamond-plus":()=>Promise.resolve().then((function(){return cD})),diamond:()=>Promise.resolve().then((function(){return uD})),"dice-1":()=>Promise.resolve().then((function(){return pD})),"dice-2":()=>Promise.resolve().then((function(){return vD})),"dice-3":()=>Promise.resolve().then((function(){return yD})),"dice-4":()=>Promise.resolve().then((function(){return kD})),"dice-5":()=>Promise.resolve().then((function(){return wD})),"dice-6":()=>Promise.resolve().then((function(){return _D})),dices:()=>Promise.resolve().then((function(){return jD})),diff:()=>Promise.resolve().then((function(){return ED})),"disc-2":()=>Promise.resolve().then((function(){return CD})),"disc-3":()=>Promise.resolve().then((function(){return RD})),"disc-album":()=>Promise.resolve().then((function(){return LD})),disc:()=>Promise.resolve().then((function(){return VD})),divide:()=>Promise.resolve().then((function(){return SD})),"dna-off":()=>Promise.resolve().then((function(){return ND})),dna:()=>Promise.resolve().then((function(){return DD})),dock:()=>Promise.resolve().then((function(){return FD})),dog:()=>Promise.resolve().then((function(){return WD})),"dollar-sign":()=>Promise.resolve().then((function(){return GD})),donut:()=>Promise.resolve().then((function(){return YD})),"door-closed":()=>Promise.resolve().then((function(){return XD})),"door-open":()=>Promise.resolve().then((function(){return JD})),dot:()=>Promise.resolve().then((function(){return tB})),download:()=>Promise.resolve().then((function(){return nB})),"drafting-compass":()=>Promise.resolve().then((function(){return oB})),drama:()=>Promise.resolve().then((function(){return iB})),dribbble:()=>Promise.resolve().then((function(){return cB})),drill:()=>Promise.resolve().then((function(){return uB})),droplet:()=>Promise.resolve().then((function(){return pB})),droplets:()=>Promise.resolve().then((function(){return vB})),drum:()=>Promise.resolve().then((function(){return yB})),drumstick:()=>Promise.resolve().then((function(){return kB})),dumbbell:()=>Promise.resolve().then((function(){return wB})),"ear-off":()=>Promise.resolve().then((function(){return _B})),ear:()=>Promise.resolve().then((function(){return jB})),"earth-lock":()=>Promise.resolve().then((function(){return EB})),earth:()=>Promise.resolve().then((function(){return CB})),eclipse:()=>Promise.resolve().then((function(){return RB})),"egg-fried":()=>Promise.resolve().then((function(){return LB})),"egg-off":()=>Promise.resolve().then((function(){return VB})),egg:()=>Promise.resolve().then((function(){return SB})),"ellipsis-vertical":()=>Promise.resolve().then((function(){return NB})),ellipsis:()=>Promise.resolve().then((function(){return DB})),"equal-approximately":()=>Promise.resolve().then((function(){return FB})),"equal-not":()=>Promise.resolve().then((function(){return WB})),equal:()=>Promise.resolve().then((function(){return GB})),eraser:()=>Promise.resolve().then((function(){return YB})),"ethernet-port":()=>Promise.resolve().then((function(){return XB})),euro:()=>Promise.resolve().then((function(){return JB})),expand:()=>Promise.resolve().then((function(){return tF})),"external-link":()=>Promise.resolve().then((function(){return nF})),"eye-closed":()=>Promise.resolve().then((function(){return oF})),"eye-off":()=>Promise.resolve().then((function(){return iF})),eye:()=>Promise.resolve().then((function(){return cF})),facebook:()=>Promise.resolve().then((function(){return uF})),factory:()=>Promise.resolve().then((function(){return pF})),fan:()=>Promise.resolve().then((function(){return vF})),"fast-forward":()=>Promise.resolve().then((function(){return yF})),feather:()=>Promise.resolve().then((function(){return kF})),fence:()=>Promise.resolve().then((function(){return wF})),"ferris-wheel":()=>Promise.resolve().then((function(){return _F})),figma:()=>Promise.resolve().then((function(){return jF})),"file-archive":()=>Promise.resolve().then((function(){return EF})),"file-audio-2":()=>Promise.resolve().then((function(){return CF})),"file-audio":()=>Promise.resolve().then((function(){return RF})),"file-axis-3d":()=>Promise.resolve().then((function(){return LF})),"file-badge-2":()=>Promise.resolve().then((function(){return VF})),"file-badge":()=>Promise.resolve().then((function(){return SF})),"file-box":()=>Promise.resolve().then((function(){return NF})),"file-chart-column-increasing":()=>Promise.resolve().then((function(){return DF})),"file-chart-column":()=>Promise.resolve().then((function(){return FF})),"file-chart-line":()=>Promise.resolve().then((function(){return WF})),"file-chart-pie":()=>Promise.resolve().then((function(){return GF})),"file-check-2":()=>Promise.resolve().then((function(){return YF})),"file-check":()=>Promise.resolve().then((function(){return XF})),"file-clock":()=>Promise.resolve().then((function(){return JF})),"file-code-2":()=>Promise.resolve().then((function(){return tT})),"file-code":()=>Promise.resolve().then((function(){return nT})),"file-cog":()=>Promise.resolve().then((function(){return oT})),"file-diff":()=>Promise.resolve().then((function(){return iT})),"file-digit":()=>Promise.resolve().then((function(){return cT})),"file-down":()=>Promise.resolve().then((function(){return uT})),"file-heart":()=>Promise.resolve().then((function(){return pT})),"file-image":()=>Promise.resolve().then((function(){return vT})),"file-input":()=>Promise.resolve().then((function(){return yT})),"file-json-2":()=>Promise.resolve().then((function(){return kT})),"file-json":()=>Promise.resolve().then((function(){return wT})),"file-key-2":()=>Promise.resolve().then((function(){return _T})),"file-key":()=>Promise.resolve().then((function(){return jT})),"file-lock-2":()=>Promise.resolve().then((function(){return ET})),"file-lock":()=>Promise.resolve().then((function(){return CT})),"file-minus-2":()=>Promise.resolve().then((function(){return RT})),"file-minus":()=>Promise.resolve().then((function(){return LT})),"file-music":()=>Promise.resolve().then((function(){return VT})),"file-output":()=>Promise.resolve().then((function(){return ST})),"file-pen-line":()=>Promise.resolve().then((function(){return NT})),"file-pen":()=>Promise.resolve().then((function(){return DT})),"file-plus-2":()=>Promise.resolve().then((function(){return FT})),"file-plus":()=>Promise.resolve().then((function(){return WT})),"file-question":()=>Promise.resolve().then((function(){return GT})),"file-scan":()=>Promise.resolve().then((function(){return YT})),"file-search-2":()=>Promise.resolve().then((function(){return XT})),"file-search":()=>Promise.resolve().then((function(){return JT})),"file-sliders":()=>Promise.resolve().then((function(){return tW})),"file-spreadsheet":()=>Promise.resolve().then((function(){return nW})),"file-stack":()=>Promise.resolve().then((function(){return oW})),"file-symlink":()=>Promise.resolve().then((function(){return iW})),"file-terminal":()=>Promise.resolve().then((function(){return cW})),"file-text":()=>Promise.resolve().then((function(){return uW})),"file-type-2":()=>Promise.resolve().then((function(){return pW})),"file-type":()=>Promise.resolve().then((function(){return vW})),"file-up":()=>Promise.resolve().then((function(){return yW})),"file-user":()=>Promise.resolve().then((function(){return kW})),"file-video-2":()=>Promise.resolve().then((function(){return wW})),"file-video":()=>Promise.resolve().then((function(){return _W})),"file-volume-2":()=>Promise.resolve().then((function(){return jW})),"file-volume":()=>Promise.resolve().then((function(){return EW})),"file-warning":()=>Promise.resolve().then((function(){return CW})),"file-x-2":()=>Promise.resolve().then((function(){return RW})),"file-x":()=>Promise.resolve().then((function(){return LW})),file:()=>Promise.resolve().then((function(){return VW})),files:()=>Promise.resolve().then((function(){return SW})),film:()=>Promise.resolve().then((function(){return NW})),"filter-x":()=>Promise.resolve().then((function(){return DW})),filter:()=>Promise.resolve().then((function(){return FW})),fingerprint:()=>Promise.resolve().then((function(){return WW})),"fire-extinguisher":()=>Promise.resolve().then((function(){return GW})),"fish-off":()=>Promise.resolve().then((function(){return YW})),"fish-symbol":()=>Promise.resolve().then((function(){return XW})),fish:()=>Promise.resolve().then((function(){return JW})),"flag-off":()=>Promise.resolve().then((function(){return tU})),"flag-triangle-left":()=>Promise.resolve().then((function(){return nU})),"flag-triangle-right":()=>Promise.resolve().then((function(){return oU})),flag:()=>Promise.resolve().then((function(){return iU})),"flame-kindling":()=>Promise.resolve().then((function(){return cU})),flame:()=>Promise.resolve().then((function(){return uU})),"flashlight-off":()=>Promise.resolve().then((function(){return pU})),flashlight:()=>Promise.resolve().then((function(){return vU})),"flask-conical-off":()=>Promise.resolve().then((function(){return yU})),"flask-conical":()=>Promise.resolve().then((function(){return kU})),"flask-round":()=>Promise.resolve().then((function(){return wU})),"flip-horizontal-2":()=>Promise.resolve().then((function(){return _U})),"flip-horizontal":()=>Promise.resolve().then((function(){return jU})),"flip-vertical-2":()=>Promise.resolve().then((function(){return EU})),"flip-vertical":()=>Promise.resolve().then((function(){return CU})),"flower-2":()=>Promise.resolve().then((function(){return RU})),flower:()=>Promise.resolve().then((function(){return LU})),focus:()=>Promise.resolve().then((function(){return VU})),"fold-horizontal":()=>Promise.resolve().then((function(){return SU})),"fold-vertical":()=>Promise.resolve().then((function(){return NU})),"folder-archive":()=>Promise.resolve().then((function(){return DU})),"folder-check":()=>Promise.resolve().then((function(){return FU})),"folder-clock":()=>Promise.resolve().then((function(){return WU})),"folder-closed":()=>Promise.resolve().then((function(){return GU})),"folder-code":()=>Promise.resolve().then((function(){return YU})),"folder-cog":()=>Promise.resolve().then((function(){return XU})),"folder-dot":()=>Promise.resolve().then((function(){return JU})),"folder-down":()=>Promise.resolve().then((function(){return tG})),"folder-git-2":()=>Promise.resolve().then((function(){return nG})),"folder-git":()=>Promise.resolve().then((function(){return oG})),"folder-heart":()=>Promise.resolve().then((function(){return iG})),"folder-input":()=>Promise.resolve().then((function(){return cG})),"folder-kanban":()=>Promise.resolve().then((function(){return uG})),"folder-key":()=>Promise.resolve().then((function(){return pG})),"folder-lock":()=>Promise.resolve().then((function(){return vG})),"folder-minus":()=>Promise.resolve().then((function(){return yG})),"folder-open-dot":()=>Promise.resolve().then((function(){return kG})),"folder-open":()=>Promise.resolve().then((function(){return wG})),"folder-output":()=>Promise.resolve().then((function(){return _G})),"folder-pen":()=>Promise.resolve().then((function(){return jG})),"folder-plus":()=>Promise.resolve().then((function(){return EG})),"folder-root":()=>Promise.resolve().then((function(){return CG})),"folder-search-2":()=>Promise.resolve().then((function(){return RG})),"folder-search":()=>Promise.resolve().then((function(){return LG})),"folder-symlink":()=>Promise.resolve().then((function(){return VG})),"folder-sync":()=>Promise.resolve().then((function(){return SG})),"folder-tree":()=>Promise.resolve().then((function(){return NG})),"folder-up":()=>Promise.resolve().then((function(){return DG})),"folder-x":()=>Promise.resolve().then((function(){return FG})),folder:()=>Promise.resolve().then((function(){return WG})),folders:()=>Promise.resolve().then((function(){return GG})),footprints:()=>Promise.resolve().then((function(){return YG})),forklift:()=>Promise.resolve().then((function(){return XG})),forward:()=>Promise.resolve().then((function(){return JG})),frame:()=>Promise.resolve().then((function(){return t$})),framer:()=>Promise.resolve().then((function(){return n$})),frown:()=>Promise.resolve().then((function(){return o$})),fuel:()=>Promise.resolve().then((function(){return i$})),fullscreen:()=>Promise.resolve().then((function(){return c$})),"gallery-horizontal-end":()=>Promise.resolve().then((function(){return u$})),"gallery-horizontal":()=>Promise.resolve().then((function(){return p$})),"gallery-thumbnails":()=>Promise.resolve().then((function(){return v$})),"gallery-vertical-end":()=>Promise.resolve().then((function(){return y$})),"gallery-vertical":()=>Promise.resolve().then((function(){return k$})),"gamepad-2":()=>Promise.resolve().then((function(){return w$})),gamepad:()=>Promise.resolve().then((function(){return _$})),gauge:()=>Promise.resolve().then((function(){return j$})),gavel:()=>Promise.resolve().then((function(){return E$})),gem:()=>Promise.resolve().then((function(){return C$})),ghost:()=>Promise.resolve().then((function(){return R$})),gift:()=>Promise.resolve().then((function(){return L$})),"git-branch-plus":()=>Promise.resolve().then((function(){return V$})),"git-branch":()=>Promise.resolve().then((function(){return S$})),"git-commit-horizontal":()=>Promise.resolve().then((function(){return N$})),"git-commit-vertical":()=>Promise.resolve().then((function(){return D$})),"git-compare-arrows":()=>Promise.resolve().then((function(){return F$})),"git-compare":()=>Promise.resolve().then((function(){return W$})),"git-fork":()=>Promise.resolve().then((function(){return G$})),"git-graph":()=>Promise.resolve().then((function(){return Y$})),"git-merge":()=>Promise.resolve().then((function(){return X$})),"git-pull-request-arrow":()=>Promise.resolve().then((function(){return J$})),"git-pull-request-closed":()=>Promise.resolve().then((function(){return tY})),"git-pull-request-create-arrow":()=>Promise.resolve().then((function(){return nY})),"git-pull-request-create":()=>Promise.resolve().then((function(){return oY})),"git-pull-request-draft":()=>Promise.resolve().then((function(){return iY})),"git-pull-request":()=>Promise.resolve().then((function(){return cY})),github:()=>Promise.resolve().then((function(){return uY})),gitlab:()=>Promise.resolve().then((function(){return pY})),"glass-water":()=>Promise.resolve().then((function(){return vY})),glasses:()=>Promise.resolve().then((function(){return yY})),"globe-lock":()=>Promise.resolve().then((function(){return kY})),globe:()=>Promise.resolve().then((function(){return wY})),goal:()=>Promise.resolve().then((function(){return _Y})),grab:()=>Promise.resolve().then((function(){return jY})),"graduation-cap":()=>Promise.resolve().then((function(){return EY})),grape:()=>Promise.resolve().then((function(){return CY})),"grid-2x2-check":()=>Promise.resolve().then((function(){return RY})),"grid-2x2-plus":()=>Promise.resolve().then((function(){return LY})),"grid-2x2-x":()=>Promise.resolve().then((function(){return VY})),"grid-2x2":()=>Promise.resolve().then((function(){return SY})),"grid-3x3":()=>Promise.resolve().then((function(){return NY})),"grip-horizontal":()=>Promise.resolve().then((function(){return DY})),"grip-vertical":()=>Promise.resolve().then((function(){return FY})),grip:()=>Promise.resolve().then((function(){return WY})),group:()=>Promise.resolve().then((function(){return GY})),guitar:()=>Promise.resolve().then((function(){return YY})),ham:()=>Promise.resolve().then((function(){return XY})),hammer:()=>Promise.resolve().then((function(){return JY})),"hand-coins":()=>Promise.resolve().then((function(){return tK})),"hand-heart":()=>Promise.resolve().then((function(){return nK})),"hand-helping":()=>Promise.resolve().then((function(){return oK})),"hand-metal":()=>Promise.resolve().then((function(){return iK})),"hand-platter":()=>Promise.resolve().then((function(){return cK})),hand:()=>Promise.resolve().then((function(){return uK})),handshake:()=>Promise.resolve().then((function(){return pK})),"hard-drive-download":()=>Promise.resolve().then((function(){return vK})),"hard-drive-upload":()=>Promise.resolve().then((function(){return yK})),"hard-drive":()=>Promise.resolve().then((function(){return kK})),"hard-hat":()=>Promise.resolve().then((function(){return wK})),hash:()=>Promise.resolve().then((function(){return _K})),haze:()=>Promise.resolve().then((function(){return jK})),"hdmi-port":()=>Promise.resolve().then((function(){return EK})),"heading-1":()=>Promise.resolve().then((function(){return CK})),"heading-2":()=>Promise.resolve().then((function(){return RK})),"heading-3":()=>Promise.resolve().then((function(){return LK})),"heading-4":()=>Promise.resolve().then((function(){return VK})),"heading-5":()=>Promise.resolve().then((function(){return SK})),"heading-6":()=>Promise.resolve().then((function(){return NK})),heading:()=>Promise.resolve().then((function(){return DK})),"headphone-off":()=>Promise.resolve().then((function(){return FK})),headphones:()=>Promise.resolve().then((function(){return WK})),headset:()=>Promise.resolve().then((function(){return GK})),"heart-crack":()=>Promise.resolve().then((function(){return YK})),"heart-handshake":()=>Promise.resolve().then((function(){return XK})),"heart-off":()=>Promise.resolve().then((function(){return JK})),"heart-pulse":()=>Promise.resolve().then((function(){return tX})),heart:()=>Promise.resolve().then((function(){return nX})),heater:()=>Promise.resolve().then((function(){return oX})),hexagon:()=>Promise.resolve().then((function(){return iX})),highlighter:()=>Promise.resolve().then((function(){return cX})),history:()=>Promise.resolve().then((function(){return uX})),"hop-off":()=>Promise.resolve().then((function(){return pX})),hop:()=>Promise.resolve().then((function(){return vX})),hospital:()=>Promise.resolve().then((function(){return yX})),hotel:()=>Promise.resolve().then((function(){return kX})),hourglass:()=>Promise.resolve().then((function(){return wX})),"house-plug":()=>Promise.resolve().then((function(){return _X})),"house-plus":()=>Promise.resolve().then((function(){return jX})),house:()=>Promise.resolve().then((function(){return EX})),"ice-cream-bowl":()=>Promise.resolve().then((function(){return CX})),"ice-cream-cone":()=>Promise.resolve().then((function(){return RX})),"id-card":()=>Promise.resolve().then((function(){return LX})),"image-down":()=>Promise.resolve().then((function(){return VX})),"image-minus":()=>Promise.resolve().then((function(){return SX})),"image-off":()=>Promise.resolve().then((function(){return NX})),"image-play":()=>Promise.resolve().then((function(){return DX})),"image-plus":()=>Promise.resolve().then((function(){return FX})),"image-up":()=>Promise.resolve().then((function(){return WX})),image:()=>Promise.resolve().then((function(){return GX})),images:()=>Promise.resolve().then((function(){return YX})),import:()=>Promise.resolve().then((function(){return XX})),inbox:()=>Promise.resolve().then((function(){return JX})),"indent-decrease":()=>Promise.resolve().then((function(){return tQ})),"indent-increase":()=>Promise.resolve().then((function(){return nQ})),"indian-rupee":()=>Promise.resolve().then((function(){return oQ})),infinity:()=>Promise.resolve().then((function(){return iQ})),info:()=>Promise.resolve().then((function(){return cQ})),"inspection-panel":()=>Promise.resolve().then((function(){return uQ})),instagram:()=>Promise.resolve().then((function(){return pQ})),italic:()=>Promise.resolve().then((function(){return vQ})),"iteration-ccw":()=>Promise.resolve().then((function(){return yQ})),"iteration-cw":()=>Promise.resolve().then((function(){return kQ})),"japanese-yen":()=>Promise.resolve().then((function(){return wQ})),joystick:()=>Promise.resolve().then((function(){return _Q})),kanban:()=>Promise.resolve().then((function(){return jQ})),"key-round":()=>Promise.resolve().then((function(){return EQ})),"key-square":()=>Promise.resolve().then((function(){return CQ})),key:()=>Promise.resolve().then((function(){return RQ})),"keyboard-music":()=>Promise.resolve().then((function(){return LQ})),"keyboard-off":()=>Promise.resolve().then((function(){return VQ})),keyboard:()=>Promise.resolve().then((function(){return SQ})),"lamp-ceiling":()=>Promise.resolve().then((function(){return NQ})),"lamp-desk":()=>Promise.resolve().then((function(){return DQ})),"lamp-floor":()=>Promise.resolve().then((function(){return FQ})),"lamp-wall-down":()=>Promise.resolve().then((function(){return WQ})),"lamp-wall-up":()=>Promise.resolve().then((function(){return GQ})),lamp:()=>Promise.resolve().then((function(){return YQ})),"land-plot":()=>Promise.resolve().then((function(){return XQ})),landmark:()=>Promise.resolve().then((function(){return JQ})),languages:()=>Promise.resolve().then((function(){return tJ})),"laptop-minimal-check":()=>Promise.resolve().then((function(){return nJ})),"laptop-minimal":()=>Promise.resolve().then((function(){return oJ})),laptop:()=>Promise.resolve().then((function(){return iJ})),"lasso-select":()=>Promise.resolve().then((function(){return cJ})),lasso:()=>Promise.resolve().then((function(){return uJ})),laugh:()=>Promise.resolve().then((function(){return pJ})),"layers-2":()=>Promise.resolve().then((function(){return vJ})),"layers-3":()=>Promise.resolve().then((function(){return yJ})),layers:()=>Promise.resolve().then((function(){return kJ})),"layout-dashboard":()=>Promise.resolve().then((function(){return wJ})),"layout-grid":()=>Promise.resolve().then((function(){return _J})),"layout-list":()=>Promise.resolve().then((function(){return jJ})),"layout-panel-left":()=>Promise.resolve().then((function(){return EJ})),"layout-panel-top":()=>Promise.resolve().then((function(){return CJ})),"layout-template":()=>Promise.resolve().then((function(){return RJ})),leaf:()=>Promise.resolve().then((function(){return LJ})),"leafy-green":()=>Promise.resolve().then((function(){return VJ})),lectern:()=>Promise.resolve().then((function(){return SJ})),"letter-text":()=>Promise.resolve().then((function(){return NJ})),"library-big":()=>Promise.resolve().then((function(){return DJ})),library:()=>Promise.resolve().then((function(){return FJ})),"life-buoy":()=>Promise.resolve().then((function(){return WJ})),ligature:()=>Promise.resolve().then((function(){return GJ})),"lightbulb-off":()=>Promise.resolve().then((function(){return YJ})),lightbulb:()=>Promise.resolve().then((function(){return XJ})),"link-2-off":()=>Promise.resolve().then((function(){return JJ})),"link-2":()=>Promise.resolve().then((function(){return t1})),link:()=>Promise.resolve().then((function(){return n1})),linkedin:()=>Promise.resolve().then((function(){return o1})),"list-check":()=>Promise.resolve().then((function(){return i1})),"list-checks":()=>Promise.resolve().then((function(){return c1})),"list-collapse":()=>Promise.resolve().then((function(){return u1})),"list-end":()=>Promise.resolve().then((function(){return p1})),"list-filter":()=>Promise.resolve().then((function(){return v1})),"list-minus":()=>Promise.resolve().then((function(){return y1})),"list-music":()=>Promise.resolve().then((function(){return k1})),"list-ordered":()=>Promise.resolve().then((function(){return w1})),"list-plus":()=>Promise.resolve().then((function(){return _1})),"list-restart":()=>Promise.resolve().then((function(){return j1})),"list-start":()=>Promise.resolve().then((function(){return E1})),"list-todo":()=>Promise.resolve().then((function(){return C1})),"list-tree":()=>Promise.resolve().then((function(){return R1})),"list-video":()=>Promise.resolve().then((function(){return L1})),"list-x":()=>Promise.resolve().then((function(){return V1})),list:()=>Promise.resolve().then((function(){return S1})),"loader-circle":()=>Promise.resolve().then((function(){return N1})),"loader-pinwheel":()=>Promise.resolve().then((function(){return D1})),loader:()=>Promise.resolve().then((function(){return F1})),"locate-fixed":()=>Promise.resolve().then((function(){return W1})),"locate-off":()=>Promise.resolve().then((function(){return G1})),locate:()=>Promise.resolve().then((function(){return Y1})),"lock-keyhole-open":()=>Promise.resolve().then((function(){return X1})),"lock-keyhole":()=>Promise.resolve().then((function(){return J1})),"lock-open":()=>Promise.resolve().then((function(){return t0})),lock:()=>Promise.resolve().then((function(){return n0})),"log-in":()=>Promise.resolve().then((function(){return o0})),"log-out":()=>Promise.resolve().then((function(){return i0})),logs:()=>Promise.resolve().then((function(){return c0})),lollipop:()=>Promise.resolve().then((function(){return u0})),luggage:()=>Promise.resolve().then((function(){return p0})),magnet:()=>Promise.resolve().then((function(){return v0})),"mail-check":()=>Promise.resolve().then((function(){return y0})),"mail-minus":()=>Promise.resolve().then((function(){return k0})),"mail-open":()=>Promise.resolve().then((function(){return w0})),"mail-plus":()=>Promise.resolve().then((function(){return _0})),"mail-question":()=>Promise.resolve().then((function(){return j0})),"mail-search":()=>Promise.resolve().then((function(){return E0})),"mail-warning":()=>Promise.resolve().then((function(){return C0})),"mail-x":()=>Promise.resolve().then((function(){return R0})),mail:()=>Promise.resolve().then((function(){return L0})),mailbox:()=>Promise.resolve().then((function(){return V0})),mails:()=>Promise.resolve().then((function(){return S0})),"map-pin-check-inside":()=>Promise.resolve().then((function(){return N0})),"map-pin-check":()=>Promise.resolve().then((function(){return D0})),"map-pin-house":()=>Promise.resolve().then((function(){return F0})),"map-pin-minus-inside":()=>Promise.resolve().then((function(){return W0})),"map-pin-minus":()=>Promise.resolve().then((function(){return G0})),"map-pin-off":()=>Promise.resolve().then((function(){return Y0})),"map-pin-plus-inside":()=>Promise.resolve().then((function(){return X0})),"map-pin-plus":()=>Promise.resolve().then((function(){return J0})),"map-pin-x-inside":()=>Promise.resolve().then((function(){return t2})),"map-pin-x":()=>Promise.resolve().then((function(){return n2})),"map-pin":()=>Promise.resolve().then((function(){return o2})),"map-pinned":()=>Promise.resolve().then((function(){return i2})),map:()=>Promise.resolve().then((function(){return c2})),martini:()=>Promise.resolve().then((function(){return u2})),"maximize-2":()=>Promise.resolve().then((function(){return p2})),maximize:()=>Promise.resolve().then((function(){return v2})),medal:()=>Promise.resolve().then((function(){return y2})),"megaphone-off":()=>Promise.resolve().then((function(){return k2})),megaphone:()=>Promise.resolve().then((function(){return w2})),meh:()=>Promise.resolve().then((function(){return _2})),"memory-stick":()=>Promise.resolve().then((function(){return j2})),menu:()=>Promise.resolve().then((function(){return E2})),merge:()=>Promise.resolve().then((function(){return C2})),"message-circle-code":()=>Promise.resolve().then((function(){return R2})),"message-circle-dashed":()=>Promise.resolve().then((function(){return L2})),"message-circle-heart":()=>Promise.resolve().then((function(){return V2})),"message-circle-more":()=>Promise.resolve().then((function(){return S2})),"message-circle-off":()=>Promise.resolve().then((function(){return N2})),"message-circle-plus":()=>Promise.resolve().then((function(){return D2})),"message-circle-question":()=>Promise.resolve().then((function(){return F2})),"message-circle-reply":()=>Promise.resolve().then((function(){return W2})),"message-circle-warning":()=>Promise.resolve().then((function(){return G2})),"message-circle-x":()=>Promise.resolve().then((function(){return Y2})),"message-circle":()=>Promise.resolve().then((function(){return X2})),"message-square-code":()=>Promise.resolve().then((function(){return J2})),"message-square-dashed":()=>Promise.resolve().then((function(){return t5})),"message-square-diff":()=>Promise.resolve().then((function(){return n5})),"message-square-dot":()=>Promise.resolve().then((function(){return o5})),"message-square-heart":()=>Promise.resolve().then((function(){return i5})),"message-square-lock":()=>Promise.resolve().then((function(){return c5})),"message-square-more":()=>Promise.resolve().then((function(){return u5})),"message-square-off":()=>Promise.resolve().then((function(){return p5})),"message-square-plus":()=>Promise.resolve().then((function(){return v5})),"message-square-quote":()=>Promise.resolve().then((function(){return y5})),"message-square-reply":()=>Promise.resolve().then((function(){return k5})),"message-square-share":()=>Promise.resolve().then((function(){return w5})),"message-square-text":()=>Promise.resolve().then((function(){return _5})),"message-square-warning":()=>Promise.resolve().then((function(){return j5})),"message-square-x":()=>Promise.resolve().then((function(){return E5})),"message-square":()=>Promise.resolve().then((function(){return C5})),"messages-square":()=>Promise.resolve().then((function(){return R5})),"mic-off":()=>Promise.resolve().then((function(){return L5})),"mic-vocal":()=>Promise.resolve().then((function(){return V5})),mic:()=>Promise.resolve().then((function(){return S5})),microchip:()=>Promise.resolve().then((function(){return N5})),microscope:()=>Promise.resolve().then((function(){return D5})),microwave:()=>Promise.resolve().then((function(){return F5})),milestone:()=>Promise.resolve().then((function(){return W5})),"milk-off":()=>Promise.resolve().then((function(){return G5})),milk:()=>Promise.resolve().then((function(){return Y5})),"minimize-2":()=>Promise.resolve().then((function(){return X5})),minimize:()=>Promise.resolve().then((function(){return J5})),minus:()=>Promise.resolve().then((function(){return t7})),"monitor-check":()=>Promise.resolve().then((function(){return n7})),"monitor-cog":()=>Promise.resolve().then((function(){return o7})),"monitor-dot":()=>Promise.resolve().then((function(){return i7})),"monitor-down":()=>Promise.resolve().then((function(){return c7})),"monitor-off":()=>Promise.resolve().then((function(){return u7})),"monitor-pause":()=>Promise.resolve().then((function(){return p7})),"monitor-play":()=>Promise.resolve().then((function(){return v7})),"monitor-smartphone":()=>Promise.resolve().then((function(){return y7})),"monitor-speaker":()=>Promise.resolve().then((function(){return k7})),"monitor-stop":()=>Promise.resolve().then((function(){return w7})),"monitor-up":()=>Promise.resolve().then((function(){return _7})),"monitor-x":()=>Promise.resolve().then((function(){return j7})),monitor:()=>Promise.resolve().then((function(){return E7})),"moon-star":()=>Promise.resolve().then((function(){return C7})),moon:()=>Promise.resolve().then((function(){return R7})),"mountain-snow":()=>Promise.resolve().then((function(){return L7})),mountain:()=>Promise.resolve().then((function(){return V7})),"mouse-off":()=>Promise.resolve().then((function(){return S7})),"mouse-pointer-2":()=>Promise.resolve().then((function(){return N7})),"mouse-pointer-ban":()=>Promise.resolve().then((function(){return D7})),"mouse-pointer-click":()=>Promise.resolve().then((function(){return F7})),"mouse-pointer":()=>Promise.resolve().then((function(){return W7})),mouse:()=>Promise.resolve().then((function(){return G7})),"move-3d":()=>Promise.resolve().then((function(){return Y7})),"move-diagonal-2":()=>Promise.resolve().then((function(){return X7})),"move-diagonal":()=>Promise.resolve().then((function(){return J7})),"move-down-left":()=>Promise.resolve().then((function(){return t4})),"move-down-right":()=>Promise.resolve().then((function(){return n4})),"move-down":()=>Promise.resolve().then((function(){return o4})),"move-horizontal":()=>Promise.resolve().then((function(){return i4})),"move-left":()=>Promise.resolve().then((function(){return c4})),"move-right":()=>Promise.resolve().then((function(){return u4})),"move-up-left":()=>Promise.resolve().then((function(){return p4})),"move-up-right":()=>Promise.resolve().then((function(){return v4})),"move-up":()=>Promise.resolve().then((function(){return y4})),"move-vertical":()=>Promise.resolve().then((function(){return k4})),move:()=>Promise.resolve().then((function(){return w4})),"music-2":()=>Promise.resolve().then((function(){return _4})),"music-3":()=>Promise.resolve().then((function(){return j4})),"music-4":()=>Promise.resolve().then((function(){return E4})),music:()=>Promise.resolve().then((function(){return C4})),"navigation-2-off":()=>Promise.resolve().then((function(){return R4})),"navigation-2":()=>Promise.resolve().then((function(){return L4})),"navigation-off":()=>Promise.resolve().then((function(){return V4})),navigation:()=>Promise.resolve().then((function(){return S4})),network:()=>Promise.resolve().then((function(){return N4})),newspaper:()=>Promise.resolve().then((function(){return D4})),nfc:()=>Promise.resolve().then((function(){return F4})),"notebook-pen":()=>Promise.resolve().then((function(){return W4})),"notebook-tabs":()=>Promise.resolve().then((function(){return G4})),"notebook-text":()=>Promise.resolve().then((function(){return Y4})),notebook:()=>Promise.resolve().then((function(){return X4})),"notepad-text-dashed":()=>Promise.resolve().then((function(){return J4})),"notepad-text":()=>Promise.resolve().then((function(){return t3})),"nut-off":()=>Promise.resolve().then((function(){return n3})),nut:()=>Promise.resolve().then((function(){return o3})),"octagon-alert":()=>Promise.resolve().then((function(){return i3})),"octagon-minus":()=>Promise.resolve().then((function(){return c3})),"octagon-pause":()=>Promise.resolve().then((function(){return u3})),"octagon-x":()=>Promise.resolve().then((function(){return p3})),octagon:()=>Promise.resolve().then((function(){return v3})),omega:()=>Promise.resolve().then((function(){return y3})),option:()=>Promise.resolve().then((function(){return k3})),orbit:()=>Promise.resolve().then((function(){return w3})),origami:()=>Promise.resolve().then((function(){return _3})),"package-2":()=>Promise.resolve().then((function(){return j3})),"package-check":()=>Promise.resolve().then((function(){return E3})),"package-minus":()=>Promise.resolve().then((function(){return C3})),"package-open":()=>Promise.resolve().then((function(){return R3})),"package-plus":()=>Promise.resolve().then((function(){return L3})),"package-search":()=>Promise.resolve().then((function(){return V3})),"package-x":()=>Promise.resolve().then((function(){return S3})),package:()=>Promise.resolve().then((function(){return N3})),"paint-bucket":()=>Promise.resolve().then((function(){return D3})),"paint-roller":()=>Promise.resolve().then((function(){return F3})),"paintbrush-vertical":()=>Promise.resolve().then((function(){return W3})),paintbrush:()=>Promise.resolve().then((function(){return G3})),palette:()=>Promise.resolve().then((function(){return Y3})),"panel-bottom-close":()=>Promise.resolve().then((function(){return X3})),"panel-bottom-dashed":()=>Promise.resolve().then((function(){return J3})),"panel-bottom-open":()=>Promise.resolve().then((function(){return t6})),"panel-bottom":()=>Promise.resolve().then((function(){return n6})),"panel-left-close":()=>Promise.resolve().then((function(){return o6})),"panel-left-dashed":()=>Promise.resolve().then((function(){return i6})),"panel-left-open":()=>Promise.resolve().then((function(){return c6})),"panel-left":()=>Promise.resolve().then((function(){return u6})),"panel-right-close":()=>Promise.resolve().then((function(){return p6})),"panel-right-dashed":()=>Promise.resolve().then((function(){return v6})),"panel-right-open":()=>Promise.resolve().then((function(){return y6})),"panel-right":()=>Promise.resolve().then((function(){return k6})),"panel-top-close":()=>Promise.resolve().then((function(){return w6})),"panel-top-dashed":()=>Promise.resolve().then((function(){return _6})),"panel-top-open":()=>Promise.resolve().then((function(){return j6})),"panel-top":()=>Promise.resolve().then((function(){return E6})),"panels-left-bottom":()=>Promise.resolve().then((function(){return C6})),"panels-right-bottom":()=>Promise.resolve().then((function(){return R6})),"panels-top-left":()=>Promise.resolve().then((function(){return L6})),paperclip:()=>Promise.resolve().then((function(){return V6})),parentheses:()=>Promise.resolve().then((function(){return S6})),"parking-meter":()=>Promise.resolve().then((function(){return N6})),"party-popper":()=>Promise.resolve().then((function(){return D6})),pause:()=>Promise.resolve().then((function(){return F6})),"paw-print":()=>Promise.resolve().then((function(){return W6})),"pc-case":()=>Promise.resolve().then((function(){return G6})),"pen-line":()=>Promise.resolve().then((function(){return Y6})),"pen-off":()=>Promise.resolve().then((function(){return X6})),"pen-tool":()=>Promise.resolve().then((function(){return J6})),pen:()=>Promise.resolve().then((function(){return t8})),"pencil-line":()=>Promise.resolve().then((function(){return n8})),"pencil-off":()=>Promise.resolve().then((function(){return o8})),"pencil-ruler":()=>Promise.resolve().then((function(){return i8})),pencil:()=>Promise.resolve().then((function(){return c8})),pentagon:()=>Promise.resolve().then((function(){return u8})),percent:()=>Promise.resolve().then((function(){return p8})),"person-standing":()=>Promise.resolve().then((function(){return v8})),"philippine-peso":()=>Promise.resolve().then((function(){return y8})),"phone-call":()=>Promise.resolve().then((function(){return k8})),"phone-forwarded":()=>Promise.resolve().then((function(){return w8})),"phone-incoming":()=>Promise.resolve().then((function(){return _8})),"phone-missed":()=>Promise.resolve().then((function(){return j8})),"phone-off":()=>Promise.resolve().then((function(){return E8})),"phone-outgoing":()=>Promise.resolve().then((function(){return C8})),phone:()=>Promise.resolve().then((function(){return R8})),pi:()=>Promise.resolve().then((function(){return L8})),piano:()=>Promise.resolve().then((function(){return V8})),pickaxe:()=>Promise.resolve().then((function(){return S8})),"picture-in-picture-2":()=>Promise.resolve().then((function(){return N8})),"picture-in-picture":()=>Promise.resolve().then((function(){return D8})),"piggy-bank":()=>Promise.resolve().then((function(){return F8})),"pilcrow-left":()=>Promise.resolve().then((function(){return W8})),"pilcrow-right":()=>Promise.resolve().then((function(){return G8})),pilcrow:()=>Promise.resolve().then((function(){return Y8})),"pill-bottle":()=>Promise.resolve().then((function(){return X8})),pill:()=>Promise.resolve().then((function(){return J8})),"pin-off":()=>Promise.resolve().then((function(){return t9})),pin:()=>Promise.resolve().then((function(){return n9})),pipette:()=>Promise.resolve().then((function(){return o9})),pizza:()=>Promise.resolve().then((function(){return i9})),"plane-landing":()=>Promise.resolve().then((function(){return c9})),"plane-takeoff":()=>Promise.resolve().then((function(){return u9})),plane:()=>Promise.resolve().then((function(){return p9})),play:()=>Promise.resolve().then((function(){return v9})),"plug-2":()=>Promise.resolve().then((function(){return y9})),"plug-zap":()=>Promise.resolve().then((function(){return k9})),plug:()=>Promise.resolve().then((function(){return w9})),plus:()=>Promise.resolve().then((function(){return _9})),"pocket-knife":()=>Promise.resolve().then((function(){return j9})),pocket:()=>Promise.resolve().then((function(){return E9})),podcast:()=>Promise.resolve().then((function(){return C9})),"pointer-off":()=>Promise.resolve().then((function(){return R9})),pointer:()=>Promise.resolve().then((function(){return L9})),popcorn:()=>Promise.resolve().then((function(){return V9})),popsicle:()=>Promise.resolve().then((function(){return S9})),"pound-sterling":()=>Promise.resolve().then((function(){return N9})),"power-off":()=>Promise.resolve().then((function(){return D9})),power:()=>Promise.resolve().then((function(){return F9})),presentation:()=>Promise.resolve().then((function(){return W9})),"printer-check":()=>Promise.resolve().then((function(){return G9})),printer:()=>Promise.resolve().then((function(){return Y9})),projector:()=>Promise.resolve().then((function(){return X9})),proportions:()=>Promise.resolve().then((function(){return J9})),puzzle:()=>Promise.resolve().then((function(){return tee})),pyramid:()=>Promise.resolve().then((function(){return nee})),"qr-code":()=>Promise.resolve().then((function(){return oee})),quote:()=>Promise.resolve().then((function(){return iee})),rabbit:()=>Promise.resolve().then((function(){return cee})),radar:()=>Promise.resolve().then((function(){return uee})),radiation:()=>Promise.resolve().then((function(){return pee})),radical:()=>Promise.resolve().then((function(){return vee})),"radio-receiver":()=>Promise.resolve().then((function(){return yee})),"radio-tower":()=>Promise.resolve().then((function(){return kee})),radio:()=>Promise.resolve().then((function(){return wee})),radius:()=>Promise.resolve().then((function(){return _ee})),"rail-symbol":()=>Promise.resolve().then((function(){return jee})),rainbow:()=>Promise.resolve().then((function(){return Eee})),rat:()=>Promise.resolve().then((function(){return Cee})),ratio:()=>Promise.resolve().then((function(){return Ree})),"receipt-cent":()=>Promise.resolve().then((function(){return Lee})),"receipt-euro":()=>Promise.resolve().then((function(){return Vee})),"receipt-indian-rupee":()=>Promise.resolve().then((function(){return See})),"receipt-japanese-yen":()=>Promise.resolve().then((function(){return Nee})),"receipt-pound-sterling":()=>Promise.resolve().then((function(){return Dee})),"receipt-russian-ruble":()=>Promise.resolve().then((function(){return Fee})),"receipt-swiss-franc":()=>Promise.resolve().then((function(){return Wee})),"receipt-text":()=>Promise.resolve().then((function(){return Gee})),receipt:()=>Promise.resolve().then((function(){return Yee})),"rectangle-ellipsis":()=>Promise.resolve().then((function(){return Xee})),"rectangle-horizontal":()=>Promise.resolve().then((function(){return Jee})),"rectangle-vertical":()=>Promise.resolve().then((function(){return tte})),recycle:()=>Promise.resolve().then((function(){return nte})),"redo-2":()=>Promise.resolve().then((function(){return ote})),"redo-dot":()=>Promise.resolve().then((function(){return ite})),redo:()=>Promise.resolve().then((function(){return cte})),"refresh-ccw-dot":()=>Promise.resolve().then((function(){return ute})),"refresh-ccw":()=>Promise.resolve().then((function(){return pte})),"refresh-cw-off":()=>Promise.resolve().then((function(){return vte})),"refresh-cw":()=>Promise.resolve().then((function(){return yte})),refrigerator:()=>Promise.resolve().then((function(){return kte})),regex:()=>Promise.resolve().then((function(){return wte})),"remove-formatting":()=>Promise.resolve().then((function(){return _te})),"repeat-1":()=>Promise.resolve().then((function(){return jte})),"repeat-2":()=>Promise.resolve().then((function(){return Ete})),repeat:()=>Promise.resolve().then((function(){return Cte})),"replace-all":()=>Promise.resolve().then((function(){return Rte})),replace:()=>Promise.resolve().then((function(){return Lte})),"reply-all":()=>Promise.resolve().then((function(){return Vte})),reply:()=>Promise.resolve().then((function(){return Ste})),rewind:()=>Promise.resolve().then((function(){return Nte})),ribbon:()=>Promise.resolve().then((function(){return Dte})),rocket:()=>Promise.resolve().then((function(){return Fte})),"rocking-chair":()=>Promise.resolve().then((function(){return Wte})),"roller-coaster":()=>Promise.resolve().then((function(){return Gte})),"rotate-3d":()=>Promise.resolve().then((function(){return Yte})),"rotate-ccw-square":()=>Promise.resolve().then((function(){return Xte})),"rotate-ccw":()=>Promise.resolve().then((function(){return Jte})),"rotate-cw-square":()=>Promise.resolve().then((function(){return tre})),"rotate-cw":()=>Promise.resolve().then((function(){return nre})),"route-off":()=>Promise.resolve().then((function(){return ore})),route:()=>Promise.resolve().then((function(){return ire})),router:()=>Promise.resolve().then((function(){return cre})),"rows-2":()=>Promise.resolve().then((function(){return ure})),"rows-3":()=>Promise.resolve().then((function(){return pre})),"rows-4":()=>Promise.resolve().then((function(){return vre})),rss:()=>Promise.resolve().then((function(){return yre})),ruler:()=>Promise.resolve().then((function(){return kre})),"russian-ruble":()=>Promise.resolve().then((function(){return wre})),sailboat:()=>Promise.resolve().then((function(){return _re})),salad:()=>Promise.resolve().then((function(){return jre})),sandwich:()=>Promise.resolve().then((function(){return Ere})),"satellite-dish":()=>Promise.resolve().then((function(){return Cre})),satellite:()=>Promise.resolve().then((function(){return Rre})),"save-all":()=>Promise.resolve().then((function(){return Lre})),"save-off":()=>Promise.resolve().then((function(){return Vre})),save:()=>Promise.resolve().then((function(){return Sre})),"scale-3d":()=>Promise.resolve().then((function(){return Nre})),scale:()=>Promise.resolve().then((function(){return Dre})),scaling:()=>Promise.resolve().then((function(){return Fre})),"scan-barcode":()=>Promise.resolve().then((function(){return Wre})),"scan-eye":()=>Promise.resolve().then((function(){return Gre})),"scan-face":()=>Promise.resolve().then((function(){return Yre})),"scan-line":()=>Promise.resolve().then((function(){return Xre})),"scan-qr-code":()=>Promise.resolve().then((function(){return Jre})),"scan-search":()=>Promise.resolve().then((function(){return tne})),"scan-text":()=>Promise.resolve().then((function(){return nne})),scan:()=>Promise.resolve().then((function(){return one})),school:()=>Promise.resolve().then((function(){return ine})),"scissors-line-dashed":()=>Promise.resolve().then((function(){return cne})),scissors:()=>Promise.resolve().then((function(){return une})),"screen-share-off":()=>Promise.resolve().then((function(){return pne})),"screen-share":()=>Promise.resolve().then((function(){return vne})),"scroll-text":()=>Promise.resolve().then((function(){return yne})),scroll:()=>Promise.resolve().then((function(){return kne})),"search-check":()=>Promise.resolve().then((function(){return wne})),"search-code":()=>Promise.resolve().then((function(){return _ne})),"search-slash":()=>Promise.resolve().then((function(){return jne})),"search-x":()=>Promise.resolve().then((function(){return Ene})),search:()=>Promise.resolve().then((function(){return Cne})),section:()=>Promise.resolve().then((function(){return Rne})),"send-horizontal":()=>Promise.resolve().then((function(){return Lne})),"send-to-back":()=>Promise.resolve().then((function(){return Vne})),send:()=>Promise.resolve().then((function(){return Sne})),"separator-horizontal":()=>Promise.resolve().then((function(){return Nne})),"separator-vertical":()=>Promise.resolve().then((function(){return Dne})),"server-cog":()=>Promise.resolve().then((function(){return Fne})),"server-crash":()=>Promise.resolve().then((function(){return Wne})),"server-off":()=>Promise.resolve().then((function(){return Gne})),server:()=>Promise.resolve().then((function(){return Yne})),"settings-2":()=>Promise.resolve().then((function(){return Xne})),settings:()=>Promise.resolve().then((function(){return Jne})),shapes:()=>Promise.resolve().then((function(){return tae})),"share-2":()=>Promise.resolve().then((function(){return nae})),share:()=>Promise.resolve().then((function(){return oae})),sheet:()=>Promise.resolve().then((function(){return iae})),shell:()=>Promise.resolve().then((function(){return cae})),"shield-alert":()=>Promise.resolve().then((function(){return uae})),"shield-ban":()=>Promise.resolve().then((function(){return pae})),"shield-check":()=>Promise.resolve().then((function(){return vae})),"shield-ellipsis":()=>Promise.resolve().then((function(){return yae})),"shield-half":()=>Promise.resolve().then((function(){return kae})),"shield-minus":()=>Promise.resolve().then((function(){return wae})),"shield-off":()=>Promise.resolve().then((function(){return _ae})),"shield-plus":()=>Promise.resolve().then((function(){return jae})),"shield-question":()=>Promise.resolve().then((function(){return Eae})),"shield-x":()=>Promise.resolve().then((function(){return Cae})),shield:()=>Promise.resolve().then((function(){return Rae})),"ship-wheel":()=>Promise.resolve().then((function(){return Lae})),ship:()=>Promise.resolve().then((function(){return Vae})),shirt:()=>Promise.resolve().then((function(){return Sae})),"shopping-bag":()=>Promise.resolve().then((function(){return Nae})),"shopping-basket":()=>Promise.resolve().then((function(){return Dae})),"shopping-cart":()=>Promise.resolve().then((function(){return Fae})),shovel:()=>Promise.resolve().then((function(){return Wae})),"shower-head":()=>Promise.resolve().then((function(){return Gae})),shrink:()=>Promise.resolve().then((function(){return Yae})),shrub:()=>Promise.resolve().then((function(){return Xae})),shuffle:()=>Promise.resolve().then((function(){return Jae})),sigma:()=>Promise.resolve().then((function(){return toe})),"signal-high":()=>Promise.resolve().then((function(){return noe})),"signal-low":()=>Promise.resolve().then((function(){return ooe})),"signal-medium":()=>Promise.resolve().then((function(){return ioe})),"signal-zero":()=>Promise.resolve().then((function(){return coe})),signal:()=>Promise.resolve().then((function(){return uoe})),signature:()=>Promise.resolve().then((function(){return poe})),"signpost-big":()=>Promise.resolve().then((function(){return voe})),signpost:()=>Promise.resolve().then((function(){return yoe})),siren:()=>Promise.resolve().then((function(){return koe})),"skip-back":()=>Promise.resolve().then((function(){return woe})),"skip-forward":()=>Promise.resolve().then((function(){return _oe})),skull:()=>Promise.resolve().then((function(){return joe})),slack:()=>Promise.resolve().then((function(){return Eoe})),slash:()=>Promise.resolve().then((function(){return Coe})),slice:()=>Promise.resolve().then((function(){return Roe})),"sliders-horizontal":()=>Promise.resolve().then((function(){return Loe})),"sliders-vertical":()=>Promise.resolve().then((function(){return Voe})),"smartphone-charging":()=>Promise.resolve().then((function(){return Soe})),"smartphone-nfc":()=>Promise.resolve().then((function(){return Noe})),smartphone:()=>Promise.resolve().then((function(){return Doe})),"smile-plus":()=>Promise.resolve().then((function(){return Foe})),smile:()=>Promise.resolve().then((function(){return Woe})),snail:()=>Promise.resolve().then((function(){return Goe})),snowflake:()=>Promise.resolve().then((function(){return Yoe})),sofa:()=>Promise.resolve().then((function(){return Xoe})),soup:()=>Promise.resolve().then((function(){return Joe})),space:()=>Promise.resolve().then((function(){return tle})),spade:()=>Promise.resolve().then((function(){return nle})),sparkle:()=>Promise.resolve().then((function(){return ole})),sparkles:()=>Promise.resolve().then((function(){return ile})),speaker:()=>Promise.resolve().then((function(){return cle})),speech:()=>Promise.resolve().then((function(){return ule})),"spell-check-2":()=>Promise.resolve().then((function(){return ple})),"spell-check":()=>Promise.resolve().then((function(){return vle})),spline:()=>Promise.resolve().then((function(){return yle})),split:()=>Promise.resolve().then((function(){return kle})),"spray-can":()=>Promise.resolve().then((function(){return wle})),sprout:()=>Promise.resolve().then((function(){return _le})),"square-activity":()=>Promise.resolve().then((function(){return jle})),"square-arrow-down-left":()=>Promise.resolve().then((function(){return Ele})),"square-arrow-down-right":()=>Promise.resolve().then((function(){return Cle})),"square-arrow-down":()=>Promise.resolve().then((function(){return Rle})),"square-arrow-left":()=>Promise.resolve().then((function(){return Lle})),"square-arrow-out-down-left":()=>Promise.resolve().then((function(){return Vle})),"square-arrow-out-down-right":()=>Promise.resolve().then((function(){return Sle})),"square-arrow-out-up-left":()=>Promise.resolve().then((function(){return Nle})),"square-arrow-out-up-right":()=>Promise.resolve().then((function(){return Dle})),"square-arrow-right":()=>Promise.resolve().then((function(){return Fle})),"square-arrow-up-left":()=>Promise.resolve().then((function(){return Wle})),"square-arrow-up-right":()=>Promise.resolve().then((function(){return Gle})),"square-arrow-up":()=>Promise.resolve().then((function(){return Yle})),"square-asterisk":()=>Promise.resolve().then((function(){return Xle})),"square-bottom-dashed-scissors":()=>Promise.resolve().then((function(){return Jle})),"square-chart-gantt":()=>Promise.resolve().then((function(){return tie})),"square-check-big":()=>Promise.resolve().then((function(){return nie})),"square-check":()=>Promise.resolve().then((function(){return oie})),"square-chevron-down":()=>Promise.resolve().then((function(){return iie})),"square-chevron-left":()=>Promise.resolve().then((function(){return cie})),"square-chevron-right":()=>Promise.resolve().then((function(){return uie})),"square-chevron-up":()=>Promise.resolve().then((function(){return pie})),"square-code":()=>Promise.resolve().then((function(){return vie})),"square-dashed-bottom-code":()=>Promise.resolve().then((function(){return yie})),"square-dashed-bottom":()=>Promise.resolve().then((function(){return kie})),"square-dashed-kanban":()=>Promise.resolve().then((function(){return wie})),"square-dashed-mouse-pointer":()=>Promise.resolve().then((function(){return _ie})),"square-dashed":()=>Promise.resolve().then((function(){return jie})),"square-divide":()=>Promise.resolve().then((function(){return Eie})),"square-dot":()=>Promise.resolve().then((function(){return Cie})),"square-equal":()=>Promise.resolve().then((function(){return Rie})),"square-function":()=>Promise.resolve().then((function(){return Lie})),"square-kanban":()=>Promise.resolve().then((function(){return Vie})),"square-library":()=>Promise.resolve().then((function(){return Sie})),"square-m":()=>Promise.resolve().then((function(){return Nie})),"square-menu":()=>Promise.resolve().then((function(){return Die})),"square-minus":()=>Promise.resolve().then((function(){return Fie})),"square-mouse-pointer":()=>Promise.resolve().then((function(){return Wie})),"square-parking-off":()=>Promise.resolve().then((function(){return Gie})),"square-parking":()=>Promise.resolve().then((function(){return Yie})),"square-pen":()=>Promise.resolve().then((function(){return Xie})),"square-percent":()=>Promise.resolve().then((function(){return Jie})),"square-pi":()=>Promise.resolve().then((function(){return tse})),"square-pilcrow":()=>Promise.resolve().then((function(){return nse})),"square-play":()=>Promise.resolve().then((function(){return ose})),"square-plus":()=>Promise.resolve().then((function(){return ise})),"square-power":()=>Promise.resolve().then((function(){return cse})),"square-radical":()=>Promise.resolve().then((function(){return use})),"square-scissors":()=>Promise.resolve().then((function(){return pse})),"square-sigma":()=>Promise.resolve().then((function(){return vse})),"square-slash":()=>Promise.resolve().then((function(){return yse})),"square-split-horizontal":()=>Promise.resolve().then((function(){return kse})),"square-split-vertical":()=>Promise.resolve().then((function(){return wse})),"square-square":()=>Promise.resolve().then((function(){return _se})),"square-stack":()=>Promise.resolve().then((function(){return jse})),"square-terminal":()=>Promise.resolve().then((function(){return Ese})),"square-user-round":()=>Promise.resolve().then((function(){return Cse})),"square-user":()=>Promise.resolve().then((function(){return Rse})),"square-x":()=>Promise.resolve().then((function(){return Lse})),square:()=>Promise.resolve().then((function(){return Vse})),squircle:()=>Promise.resolve().then((function(){return Sse})),squirrel:()=>Promise.resolve().then((function(){return Nse})),stamp:()=>Promise.resolve().then((function(){return Dse})),"star-half":()=>Promise.resolve().then((function(){return Fse})),"star-off":()=>Promise.resolve().then((function(){return Wse})),star:()=>Promise.resolve().then((function(){return Gse})),"step-back":()=>Promise.resolve().then((function(){return Yse})),"step-forward":()=>Promise.resolve().then((function(){return Xse})),stethoscope:()=>Promise.resolve().then((function(){return Jse})),sticker:()=>Promise.resolve().then((function(){return tce})),"sticky-note":()=>Promise.resolve().then((function(){return nce})),store:()=>Promise.resolve().then((function(){return oce})),"stretch-horizontal":()=>Promise.resolve().then((function(){return ice})),"stretch-vertical":()=>Promise.resolve().then((function(){return cce})),strikethrough:()=>Promise.resolve().then((function(){return uce})),subscript:()=>Promise.resolve().then((function(){return pce})),"sun-dim":()=>Promise.resolve().then((function(){return vce})),"sun-medium":()=>Promise.resolve().then((function(){return yce})),"sun-moon":()=>Promise.resolve().then((function(){return kce})),"sun-snow":()=>Promise.resolve().then((function(){return wce})),sun:()=>Promise.resolve().then((function(){return _ce})),sunrise:()=>Promise.resolve().then((function(){return jce})),sunset:()=>Promise.resolve().then((function(){return Ece})),superscript:()=>Promise.resolve().then((function(){return Cce})),"swatch-book":()=>Promise.resolve().then((function(){return Rce})),"swiss-franc":()=>Promise.resolve().then((function(){return Lce})),"switch-camera":()=>Promise.resolve().then((function(){return Vce})),sword:()=>Promise.resolve().then((function(){return Sce})),swords:()=>Promise.resolve().then((function(){return Nce})),syringe:()=>Promise.resolve().then((function(){return Dce})),"table-2":()=>Promise.resolve().then((function(){return Fce})),"table-cells-merge":()=>Promise.resolve().then((function(){return Wce})),"table-cells-split":()=>Promise.resolve().then((function(){return Gce})),"table-columns-split":()=>Promise.resolve().then((function(){return Yce})),"table-of-contents":()=>Promise.resolve().then((function(){return Xce})),"table-properties":()=>Promise.resolve().then((function(){return Jce})),"table-rows-split":()=>Promise.resolve().then((function(){return tde})),table:()=>Promise.resolve().then((function(){return nde})),"tablet-smartphone":()=>Promise.resolve().then((function(){return ode})),tablet:()=>Promise.resolve().then((function(){return ide})),tablets:()=>Promise.resolve().then((function(){return cde})),tag:()=>Promise.resolve().then((function(){return ude})),tags:()=>Promise.resolve().then((function(){return pde})),"tally-1":()=>Promise.resolve().then((function(){return vde})),"tally-2":()=>Promise.resolve().then((function(){return yde})),"tally-3":()=>Promise.resolve().then((function(){return kde})),"tally-4":()=>Promise.resolve().then((function(){return wde})),"tally-5":()=>Promise.resolve().then((function(){return _de})),tangent:()=>Promise.resolve().then((function(){return jde})),target:()=>Promise.resolve().then((function(){return Ede})),telescope:()=>Promise.resolve().then((function(){return Cde})),"tent-tree":()=>Promise.resolve().then((function(){return Rde})),tent:()=>Promise.resolve().then((function(){return Lde})),terminal:()=>Promise.resolve().then((function(){return Vde})),"test-tube-diagonal":()=>Promise.resolve().then((function(){return Sde})),"test-tube":()=>Promise.resolve().then((function(){return Nde})),"test-tubes":()=>Promise.resolve().then((function(){return Dde})),"text-cursor-input":()=>Promise.resolve().then((function(){return Fde})),"text-cursor":()=>Promise.resolve().then((function(){return Wde})),"text-quote":()=>Promise.resolve().then((function(){return Gde})),"text-search":()=>Promise.resolve().then((function(){return Yde})),"text-select":()=>Promise.resolve().then((function(){return Xde})),text:()=>Promise.resolve().then((function(){return Jde})),theater:()=>Promise.resolve().then((function(){return tue})),"thermometer-snowflake":()=>Promise.resolve().then((function(){return nue})),"thermometer-sun":()=>Promise.resolve().then((function(){return oue})),thermometer:()=>Promise.resolve().then((function(){return iue})),"thumbs-down":()=>Promise.resolve().then((function(){return cue})),"thumbs-up":()=>Promise.resolve().then((function(){return uue})),"ticket-check":()=>Promise.resolve().then((function(){return pue})),"ticket-minus":()=>Promise.resolve().then((function(){return vue})),"ticket-percent":()=>Promise.resolve().then((function(){return yue})),"ticket-plus":()=>Promise.resolve().then((function(){return kue})),"ticket-slash":()=>Promise.resolve().then((function(){return wue})),"ticket-x":()=>Promise.resolve().then((function(){return _ue})),ticket:()=>Promise.resolve().then((function(){return jue})),"tickets-plane":()=>Promise.resolve().then((function(){return Eue})),tickets:()=>Promise.resolve().then((function(){return Cue})),"timer-off":()=>Promise.resolve().then((function(){return Rue})),"timer-reset":()=>Promise.resolve().then((function(){return Lue})),timer:()=>Promise.resolve().then((function(){return Vue})),"toggle-left":()=>Promise.resolve().then((function(){return Sue})),"toggle-right":()=>Promise.resolve().then((function(){return Nue})),toilet:()=>Promise.resolve().then((function(){return Due})),tornado:()=>Promise.resolve().then((function(){return Fue})),torus:()=>Promise.resolve().then((function(){return Wue})),"touchpad-off":()=>Promise.resolve().then((function(){return Gue})),touchpad:()=>Promise.resolve().then((function(){return Yue})),"tower-control":()=>Promise.resolve().then((function(){return Xue})),"toy-brick":()=>Promise.resolve().then((function(){return Jue})),tractor:()=>Promise.resolve().then((function(){return the})),"traffic-cone":()=>Promise.resolve().then((function(){return nhe})),"train-front-tunnel":()=>Promise.resolve().then((function(){return ohe})),"train-front":()=>Promise.resolve().then((function(){return ihe})),"train-track":()=>Promise.resolve().then((function(){return che})),"tram-front":()=>Promise.resolve().then((function(){return uhe})),"trash-2":()=>Promise.resolve().then((function(){return phe})),trash:()=>Promise.resolve().then((function(){return vhe})),"tree-deciduous":()=>Promise.resolve().then((function(){return yhe})),"tree-palm":()=>Promise.resolve().then((function(){return khe})),"tree-pine":()=>Promise.resolve().then((function(){return whe})),trees:()=>Promise.resolve().then((function(){return _he})),trello:()=>Promise.resolve().then((function(){return jhe})),"trending-down":()=>Promise.resolve().then((function(){return Ehe})),"trending-up-down":()=>Promise.resolve().then((function(){return Che})),"trending-up":()=>Promise.resolve().then((function(){return Rhe})),"triangle-alert":()=>Promise.resolve().then((function(){return Lhe})),"triangle-right":()=>Promise.resolve().then((function(){return Vhe})),triangle:()=>Promise.resolve().then((function(){return She})),trophy:()=>Promise.resolve().then((function(){return Nhe})),truck:()=>Promise.resolve().then((function(){return Dhe})),turtle:()=>Promise.resolve().then((function(){return Fhe})),"tv-minimal-play":()=>Promise.resolve().then((function(){return Whe})),"tv-minimal":()=>Promise.resolve().then((function(){return Ghe})),tv:()=>Promise.resolve().then((function(){return Yhe})),twitch:()=>Promise.resolve().then((function(){return Xhe})),twitter:()=>Promise.resolve().then((function(){return Jhe})),"type-outline":()=>Promise.resolve().then((function(){return tpe})),type:()=>Promise.resolve().then((function(){return npe})),"umbrella-off":()=>Promise.resolve().then((function(){return ope})),umbrella:()=>Promise.resolve().then((function(){return ipe})),underline:()=>Promise.resolve().then((function(){return cpe})),"undo-2":()=>Promise.resolve().then((function(){return upe})),"undo-dot":()=>Promise.resolve().then((function(){return ppe})),undo:()=>Promise.resolve().then((function(){return vpe})),"unfold-horizontal":()=>Promise.resolve().then((function(){return ype})),"unfold-vertical":()=>Promise.resolve().then((function(){return kpe})),ungroup:()=>Promise.resolve().then((function(){return wpe})),university:()=>Promise.resolve().then((function(){return _pe})),"unlink-2":()=>Promise.resolve().then((function(){return jpe})),unlink:()=>Promise.resolve().then((function(){return Epe})),unplug:()=>Promise.resolve().then((function(){return Cpe})),upload:()=>Promise.resolve().then((function(){return Rpe})),usb:()=>Promise.resolve().then((function(){return Lpe})),"user-check":()=>Promise.resolve().then((function(){return Vpe})),"user-cog":()=>Promise.resolve().then((function(){return Spe})),"user-minus":()=>Promise.resolve().then((function(){return Npe})),"user-pen":()=>Promise.resolve().then((function(){return Dpe})),"user-plus":()=>Promise.resolve().then((function(){return Fpe})),"user-round-check":()=>Promise.resolve().then((function(){return Wpe})),"user-round-cog":()=>Promise.resolve().then((function(){return Gpe})),"user-round-minus":()=>Promise.resolve().then((function(){return Ype})),"user-round-pen":()=>Promise.resolve().then((function(){return Xpe})),"user-round-plus":()=>Promise.resolve().then((function(){return Jpe})),"user-round-search":()=>Promise.resolve().then((function(){return tfe})),"user-round-x":()=>Promise.resolve().then((function(){return nfe})),"user-round":()=>Promise.resolve().then((function(){return ofe})),"user-search":()=>Promise.resolve().then((function(){return ife})),"user-x":()=>Promise.resolve().then((function(){return cfe})),user:()=>Promise.resolve().then((function(){return ufe})),"users-round":()=>Promise.resolve().then((function(){return pfe})),users:()=>Promise.resolve().then((function(){return vfe})),"utensils-crossed":()=>Promise.resolve().then((function(){return yfe})),utensils:()=>Promise.resolve().then((function(){return kfe})),"utility-pole":()=>Promise.resolve().then((function(){return wfe})),variable:()=>Promise.resolve().then((function(){return _fe})),vault:()=>Promise.resolve().then((function(){return jfe})),vegan:()=>Promise.resolve().then((function(){return Efe})),"venetian-mask":()=>Promise.resolve().then((function(){return Cfe})),"vibrate-off":()=>Promise.resolve().then((function(){return Rfe})),vibrate:()=>Promise.resolve().then((function(){return Lfe})),"video-off":()=>Promise.resolve().then((function(){return Vfe})),video:()=>Promise.resolve().then((function(){return Sfe})),videotape:()=>Promise.resolve().then((function(){return Nfe})),view:()=>Promise.resolve().then((function(){return Dfe})),voicemail:()=>Promise.resolve().then((function(){return Ffe})),volleyball:()=>Promise.resolve().then((function(){return Wfe})),"volume-1":()=>Promise.resolve().then((function(){return Gfe})),"volume-2":()=>Promise.resolve().then((function(){return Yfe})),"volume-off":()=>Promise.resolve().then((function(){return Xfe})),"volume-x":()=>Promise.resolve().then((function(){return Jfe})),volume:()=>Promise.resolve().then((function(){return tve})),vote:()=>Promise.resolve().then((function(){return nve})),"wallet-cards":()=>Promise.resolve().then((function(){return ove})),"wallet-minimal":()=>Promise.resolve().then((function(){return ive})),wallet:()=>Promise.resolve().then((function(){return cve})),wallpaper:()=>Promise.resolve().then((function(){return uve})),"wand-sparkles":()=>Promise.resolve().then((function(){return pve})),wand:()=>Promise.resolve().then((function(){return vve})),warehouse:()=>Promise.resolve().then((function(){return yve})),"washing-machine":()=>Promise.resolve().then((function(){return kve})),watch:()=>Promise.resolve().then((function(){return wve})),waves:()=>Promise.resolve().then((function(){return _ve})),waypoints:()=>Promise.resolve().then((function(){return jve})),webcam:()=>Promise.resolve().then((function(){return Eve})),"webhook-off":()=>Promise.resolve().then((function(){return Cve})),webhook:()=>Promise.resolve().then((function(){return Rve})),weight:()=>Promise.resolve().then((function(){return Lve})),"wheat-off":()=>Promise.resolve().then((function(){return Vve})),wheat:()=>Promise.resolve().then((function(){return Sve})),"whole-word":()=>Promise.resolve().then((function(){return Nve})),"wifi-high":()=>Promise.resolve().then((function(){return Dve})),"wifi-low":()=>Promise.resolve().then((function(){return Fve})),"wifi-off":()=>Promise.resolve().then((function(){return Wve})),"wifi-zero":()=>Promise.resolve().then((function(){return Gve})),wifi:()=>Promise.resolve().then((function(){return Yve})),"wind-arrow-down":()=>Promise.resolve().then((function(){return Xve})),wind:()=>Promise.resolve().then((function(){return Jve})),"wine-off":()=>Promise.resolve().then((function(){return tme})),wine:()=>Promise.resolve().then((function(){return nme})),workflow:()=>Promise.resolve().then((function(){return ome})),worm:()=>Promise.resolve().then((function(){return ime})),"wrap-text":()=>Promise.resolve().then((function(){return cme})),wrench:()=>Promise.resolve().then((function(){return ume})),x:()=>Promise.resolve().then((function(){return pme})),youtube:()=>Promise.resolve().then((function(){return vme})),"zap-off":()=>Promise.resolve().then((function(){return yme})),zap:()=>Promise.resolve().then((function(){return kme})),"zoom-in":()=>Promise.resolve().then((function(){return wme})),"zoom-out":()=>Promise.resolve().then((function(){return _me}))};
|
|
9269
|
+
function wOe(e,t){return e?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(e)?l.createElement(e,t):e:null}var xOe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});var _Oe,MOe="dismissableLayer.update",jOe="dismissableLayer.pointerDownOutside",OOe="dismissableLayer.focusOutside",EOe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zOe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(EOe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){POe(jOe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){POe(OOe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(_Oe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),COe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=_Oe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),COe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(MOe,e),()=>document.removeEventListener(MOe,e)}),[]),t.jsx(xOe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));zOe.displayName="DismissableLayer";function COe(){const e=new CustomEvent(MOe);document.dispatchEvent(e)}function POe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(EOe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(xOe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var ROe="focusScope.autoFocusOnMount",AOe="focusScope.autoFocusOnUnmount",LOe={bubbles:!1,cancelable:!0},IOe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:ZOe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||ZOe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ZOe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){NOe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(ROe,LOe);c.addEventListener(ROe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ZOe(n,{select:t}),document.activeElement!==r)return}((e=VOe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ZOe(c))}return()=>{c.removeEventListener(ROe,u),setTimeout((()=>{const e=new CustomEvent(AOe,LOe);c.addEventListener(AOe,h),c.dispatchEvent(e),e.defaultPrevented||ZOe(t??document.body,{select:!0}),c.removeEventListener(AOe,h),NOe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=VOe(e),r=HOe(t,e),n=HOe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&ZOe(o,{select:!0})):(e.preventDefault(),n&&ZOe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(xOe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function VOe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function HOe(e,t){for(const r of e)if(!SOe(r,{upTo:t}))return r}function SOe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ZOe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}IOe.displayName="FocusScope";var NOe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=qOe(e,t),e.unshift(t)},remove(t){e=qOe(e,t),e[0]?.resume()}}}();function qOe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var DOe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(xOe.div,{...o,ref:r}),c):null}));DOe.displayName="Portal";var BOe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=FOe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=FOe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=FOe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=FOe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function FOe(e){return e?.animationName||"none"}BOe.displayName="Presence";var TOe="Dialog",[WOe,UOe]=uye(TOe),[GOe,$Oe]=WOe(TOe),YOe=e=>{const{__scopeDialog:r,children:n,open:a,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,c=l.useRef(null),d=l.useRef(null),[u=!1,h]=vye({prop:a,defaultProp:o,onChange:i});return t.jsx(GOe,{scope:r,triggerRef:c,contentRef:d,contentId:Ybe(),titleId:Ybe(),descriptionId:Ybe(),open:u,onOpenChange:h,onOpenToggle:l.useCallback((()=>h((e=>!e))),[h]),modal:s,children:n})};YOe.displayName=TOe;var KOe="DialogTrigger",XOe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(KOe,n),l=dye(r,o.triggerRef);return t.jsx(xOe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mEe(o.open),...a,ref:l,onClick:pye(e.onClick,o.onOpenToggle)})}));XOe.displayName=KOe;var QOe="DialogPortal",[JOe,eEe]=WOe(QOe,{forceMount:void 0}),tEe=e=>{const{__scopeDialog:r,forceMount:n,children:a,container:o}=e,i=$Oe(QOe,r);return t.jsx(JOe,{scope:r,forceMount:n,children:l.Children.map(a,(e=>t.jsx(BOe,{present:n||i.open,children:t.jsx(DOe,{asChild:!0,container:o,children:e})})))})};tEe.displayName=QOe;var rEe="DialogOverlay",nEe=l.forwardRef(((e,r)=>{const n=eEe(rEe,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=$Oe(rEe,e.__scopeDialog);return l.modal?t.jsx(BOe,{present:a||l.open,children:t.jsx(aEe,{...o,ref:r})}):null}));nEe.displayName=rEe;var aEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(rEe,n);return t.jsx(F_e,{as:bye,allowPinchZoom:!0,shards:[o.contentRef],children:t.jsx(xOe.div,{"data-state":mEe(o.open),...a,ref:r,style:{pointerEvents:"auto",...a.style}})})})),oEe="DialogContent",lEe=l.forwardRef(((e,r)=>{const n=eEe(oEe,e.__scopeDialog),{forceMount:a=n.forceMount,...o}=e,l=$Oe(oEe,e.__scopeDialog);return t.jsx(BOe,{present:a||l.open,children:l.modal?t.jsx(iEe,{...o,ref:r}):t.jsx(sEe,{...o,ref:r})})}));lEe.displayName=oEe;var iEe=l.forwardRef(((e,r)=>{const n=$Oe(oEe,e.__scopeDialog),a=l.useRef(null),o=dye(r,n.contentRef,a);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(cEe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:pye(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()))})})),sEe=l.forwardRef(((e,r)=>{const n=$Oe(oEe,e.__scopeDialog),a=l.useRef(!1),o=l.useRef(!1);return t.jsx(cEe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const r=t.target,l=n.triggerRef.current?.contains(r);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),cEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,c=$Oe(oEe,n),d=l.useRef(null),u=dye(r,d);return Vbe(),t.jsxs(t.Fragment,{children:[t.jsx(IOe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:i,children:t.jsx(zOe,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":mEe(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(bEe,{titleId:c.titleId}),t.jsx(wEe,{contentRef:d,descriptionId:c.descriptionId})]})]})})),dEe="DialogTitle",uEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(dEe,n);return t.jsx(xOe.h2,{id:o.titleId,...a,ref:r})}));uEe.displayName=dEe;var hEe="DialogDescription",pEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(hEe,n);return t.jsx(xOe.p,{id:o.descriptionId,...a,ref:r})}));pEe.displayName=hEe;var fEe="DialogClose",vEe=l.forwardRef(((e,r)=>{const{__scopeDialog:n,...a}=e,o=$Oe(fEe,n);return t.jsx(xOe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,(()=>o.onOpenChange(!1)))})}));function mEe(e){return e?"open":"closed"}vEe.displayName=fEe;var yEe="DialogTitleWarning",[gEe,kEe]=function(e,r){const n=l.createContext(r),a=e=>{const{children:r,...a}=e,o=l.useMemo((()=>a),Object.values(a));return t.jsx(n.Provider,{value:o,children:r})};return a.displayName=e+"Provider",[a,function(t){const a=l.useContext(n);if(a)return a;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(yEe,{contentName:oEe,titleName:dEe,docsSlug:"dialog"}),bEe=({titleId:e})=>{const t=kEe(yEe),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect((()=>{if(e){document.getElementById(e)||console.error(r)}}),[r,e]),null},wEe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kEe("DialogDescriptionWarning").contentName}}.`;return l.useEffect((()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}}),[r,e,t]),null},xEe=YOe,_Ee=XOe,MEe=tEe,jEe=nEe,OEe=lEe,EEe=uEe,zEe=pEe,CEe=vEe;const PEe=xEe,REe=_Ee,AEe=MEe,LEe=CEe,IEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(jEe,Object.assign({ref:r,className:s_("fixed inset-0 z-50 bg-modal-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a))}));IEe.displayName=jEe.displayName;const VEe=l.forwardRef(((e,r)=>{var{className:n,children:a,showCloseButton:o=!1,closeButtonClassName:l}=e,i=o_(e,["className","children","showCloseButton","closeButtonClassName"]);return t.jsxs(AEe,{children:[t.jsx(IEe,{}),t.jsxs(OEe,Object.assign({ref:r,className:s_("fixed left-[50%] top-[50%] z-50 flex w-[calc(100%-32px)] max-w-[650px] translate-x-[-50%] translate-y-[-50%] flex-col rounded-md bg-modal-surface p-8 text-text-g-contrast-medium shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n)},i,{children:[a,o&&t.jsxs(CEe,{className:s_("absolute right-8 top-8 rounded-sm opacity-70 ring-offset-bg-bg1 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-input-active-stroke focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-primary data-[state=open]:text-state-primary-text-solid",l),children:[t.jsx(Gd,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}));VEe.displayName=OEe.displayName;const HEe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col gap-2 text-left",r)},n))};HEe.displayName="DialogHeader";const SEe=e=>{var{className:r,scrollable:n=!1}=e,a=o_(e,["className","scrollable"]);return t.jsx("div",Object.assign({className:s_("flex flex-1 min-h-0 flex-col mt-8",n&&"overflow-y-auto",r)},a))};SEe.displayName="DialogBody";const ZEe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col-reverse gap-3 sm:flex-row sm:items-center sm:justify-end sm:gap-6",r)},n))};ZEe.displayName="DialogFooter";const NEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(EEe,Object.assign({ref:r,className:s_("typography-h4 tracking-tight text-text-contrast-max",n)},a))}));NEe.displayName=EEe.displayName;const qEe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(zEe,Object.assign({ref:r,className:s_("typography-subtitle1 text-text-g-contrast-medium",n)},a))}));qEe.displayName=zEe.displayName;var DEe="AlertDialog",[BEe,FEe]=uye(DEe,[UOe]),TEe=UOe(),WEe=e=>{const{__scopeAlertDialog:r,...n}=e,a=TEe(r);return t.jsx(xEe,{...a,...n,modal:!0})};WEe.displayName=DEe;var UEe=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(_Ee,{...o,...a,ref:r})}));UEe.displayName="AlertDialogTrigger";var GEe=e=>{const{__scopeAlertDialog:r,...n}=e,a=TEe(r);return t.jsx(MEe,{...a,...n})};GEe.displayName="AlertDialogPortal";var $Ee=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(jEe,{...o,...a,ref:r})}));$Ee.displayName="AlertDialogOverlay";var YEe="AlertDialogContent",[KEe,XEe]=BEe(YEe),QEe=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,children:a,...o}=e,i=TEe(n),s=l.useRef(null),c=dye(r,s),d=l.useRef(null);return t.jsx(gEe,{contentName:YEe,titleName:JEe,docsSlug:"alert-dialog",children:t.jsx(KEe,{scope:n,cancelRef:d,children:t.jsxs(OEe,{role:"alertdialog",...i,...o,ref:c,onOpenAutoFocus:pye(o.onOpenAutoFocus,(e=>{e.preventDefault(),d.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[t.jsx(xye,{children:a}),t.jsx(lze,{contentRef:s})]})})})}));QEe.displayName=YEe;var JEe="AlertDialogTitle",eze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(EEe,{...o,...a,ref:r})}));eze.displayName=JEe;var tze="AlertDialogDescription",rze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(zEe,{...o,...a,ref:r})}));rze.displayName=tze;var nze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,o=TEe(n);return t.jsx(CEe,{...o,...a,ref:r})}));nze.displayName="AlertDialogAction";var aze="AlertDialogCancel",oze=l.forwardRef(((e,r)=>{const{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=XEe(aze,n),l=TEe(n),i=dye(r,o);return t.jsx(CEe,{...l,...a,ref:i})}));oze.displayName=aze;var lze=({contentRef:e})=>{const t=`\`${YEe}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${YEe}\` by passing a \`${tze}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${YEe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect((()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)}),[t,e]),null},ize=$Ee,sze=QEe,cze=nze,dze=oze,uze=eze,hze=rze;const pze=WEe,fze=UEe,vze=GEe,mze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(ize,Object.assign({className:s_("fixed inset-0 bg-modal-overlay z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a,{ref:r}))}));mze.displayName=ize.displayName;const yze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsxs(vze,{children:[t.jsx(mze,{}),t.jsx(sze,Object.assign({ref:r,className:s_("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-32px)] max-w-[460px] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-md bg-modal-surface px-6 py-8 text-text-contrast-max shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n)},a))]})}));yze.displayName=sze.displayName;const gze=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col items-center gap-2 text-center",r)},n))};gze.displayName="AlertDialogHeader";const kze=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("div",Object.assign({className:s_("flex flex-col-reverse items-center justify-center gap-3 sm:flex-row sm:gap-4",r)},n))};kze.displayName="AlertDialogFooter";const bze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(uze,Object.assign({ref:r,className:s_("typography-subtitle3 text-text-contrast-max",n)},a))}));bze.displayName=uze.displayName;const wze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(hze,Object.assign({ref:r,className:s_("typography-small1 text-text-contrast-max",n)},a))}));wze.displayName=hze.displayName;const xze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(cze,Object.assign({ref:r,className:s_(l_({fullwidth:!1}),n)},a))}));xze.displayName=cze.displayName;const _ze=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(dze,Object.assign({ref:r,className:s_(l_({fullwidth:!1,variant:"outline"}),"mt-2 sm:mt-0",n)},a))}));_ze.displayName=dze.displayName;const Mze=e.forwardRef(((e,r)=>{const{label:n="Search",required:a=!1}=e,o=o_(e,["label","required"]);return t.jsx(sye,Object.assign({label:n,required:a},o,{ref:r,keepCloseIconOnValue:!0,hasClearIcon:!0,hasSearchIcon:!0,endIcon:null,filterMode:!0,isFloatingLabel:!1,segmentedInput:!1}))})),jze=r.cva(["absolute flex items-center justify-center cursor-pointer","border-l border-l-input-default-stroke","peer-hover:border-l-input-active-stroke","peer-focus:border-l-input-active-stroke","fill-primary","peer-hover:fill-input-filled-text","peer-focus:fill-input-filled-text","stroke-input-default-stroke","peer-hover:stroke-input-active-stroke","peer-focus:stroke-input-filled-text"],{variants:{size:{sm:"p-1 size-[30px]",md:"p-2 size-[38px]",lg:"p-3 size-14"},rounded:{none:"rounded-r-none",normal:"",full:"rounded-r-full"},error:{true:"border-l-input-error"},position:{start:"inset-y-0 left-0",end:"inset-y-0 right-0"},active:{false:"",true:["fill-primary-default","peer-hover:fill-primary-default","peer-focus:fill-primary-hover","stroke-primary-default","peer-hover:stroke-primary-default","peer-focus:stroke-primary-hover"]},disabled:{true:["cursor-default pointer-events-none","border-l-input-disable-stroke","fill-input-disable-stroke","stroke-input-disable-stroke"]}},compoundVariants:[{rounded:"normal",size:"sm",className:"rounded-r-sm"},{rounded:"normal",size:["md","lg"],className:"rounded-r-md"}],defaultVariants:{size:"md",rounded:"normal",error:!1,position:"end",active:!1,disabled:!1}}),Oze=e.forwardRef(((r,n)=>{var{id:a,options:o=[],values:l=[],label:i,size:s="md",rounded:c="normal",variant:d="outline",helperText:u,errorMessage:h,fullwidth:p=!0,disabled:f=!1,error:v=!1,filterMode:m=!1,required:y=!0,onChangeText:g,onSelect:k,renderOptions:b,optionContainerClassName:w}=r,x=o_(r,["id","options","values","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect","renderOptions","optionContainerClassName"]);const _=a||`${i}-select`,[M,j]=e.useState(!1),[O,E]=e.useState(l),[z,C]=e.useState(""),P=e.useRef(""),R=e.useRef(null);e.useEffect((()=>{var e;E(null!=l?l:[]),C(null!==(e=null==l?void 0:l.map((e=>e.label)).join(", "))&&void 0!==e?e:"")}),[l]),e.useEffect((()=>{const e=e=>{R.current&&!R.current.contains(e.target)&&j(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const A=e.useCallback((e=>{null==g||g(e),C(e.target.value),e.target.value||H(e)}),[g]),L=e.useCallback((e=>{const t=O.some((t=>t.value===e.value));let r=[...O];t?r=r.filter((t=>t.value!==e.value)):r.push(e),E(r),C(r.map((e=>e.label)).join(", ")),null==k||k(r)}),[O,k]),I=e.useMemo((()=>{const e=null==z?void 0:z.split(",").pop(),t=null!=e?e:"";return o.filter((e=>{var r;return!m||(null===(r=e.label)||void 0===r?void 0:r.toLowerCase().includes(null==t?void 0:t.toLowerCase()))}))}),[o,m,z]),V=e.useCallback((e=>{var t;j(!0),null===(t=null==x?void 0:x.onFocus)||void 0===t||t.call(x,e)}),[null==x?void 0:x.onFocus]),H=e.useCallback((e=>{const t=I.filter((t=>{var r,n;return t.value===(null===(r=e.target)||void 0===r?void 0:r.value)||t.label===(null===(n=e.target)||void 0===n?void 0:n.value)}));"Enter"!==P.current&&(E(t),C(t.map((e=>e.label)).join(", ")),null==k||k(t))}),[I,z]),S=e.useCallback((e=>{var t;P.current=e.code,null===(t=null==x?void 0:x.onKeyDown)||void 0===t||t.call(x,e)}),[null==x?void 0:x.onKeyDown]),Z=jze({size:s,rounded:c,error:v,active:!!l.length,disabled:f}),N="lg"===s?"size-8":"md"===s?"size-[22px]":"size-[18px]";return t.jsxs("div",{ref:R,className:"relative "+(p?"w-full":""),children:[t.jsx(Mme,Object.assign({hasClearIcon:!1,endIcon:t.jsx(Rme,{type:"heroicons",name:"adjustments-horizontal",variant:"outline",color:"inherit",stroke:"inherit",fill:"transparent",className:N}),classes:{endIconWrapper:Z}},x,{ref:n,readOnly:!m,value:z,onChange:A,label:i,placeholder:" ",type:"text",rounded:c,variant:d,helperText:u,errorMessage:h,fullwidth:p,error:v,required:y,id:_,disabled:f,size:s,className:nye({size:s}),onFocus:V,onKeyDown:S})),M&&(b?b({optionsFiltered:I,selectedOptions:O,onClick:L}):t.jsxs("ul",{className:s_("absolute text-text-g-contrast-high mt-1 w-full bg-modal-surface border border-modal-surface text-text-contrast-low rounded-md shadow-md z-10 max-h-60 overflow-y-auto",w),children:[I.map((r=>r.renderLabel?t.jsx(e.Fragment,{children:r.renderLabel({value:r.value,label:r.label,handleOnClick:()=>L(r),className:"p-4 typography-subtitle4 hover:bg-gray-100 cursor-pointer flex items-center gap-3 "+(O.some((e=>e.value===r.value))?"bg-gray-200":"")})},r.value):t.jsxs("li",{onMouseDown:()=>L(r),className:"p-4 text-text-g-contrast-high typography-subtitle4 hover:bg-primary-hover-bg cursor-pointer flex items-center gap-3 "+(O.some((e=>e.value===r.value))?"bg-modal-highlight":""),children:[t.jsx(Nye,{checked:O.some((e=>e.value===r.value))}),r.label]},r.value))),0===I.length&&t.jsx("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]}))]})}));function Eze(e,[t,r]){return Math.min(r,Math.max(t,e))}var zze=l.createContext(void 0);function Cze(e){const t=l.useContext(zze);return e||t||"ltr"}var Pze=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function Rze(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var Aze=["PageUp","PageDown"],Lze=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ize={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Vze="Slider",[Hze,Sze,Zze]=function(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},Rze(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}(Vze),[Nze,qze]=uye(Vze,[Zze]),[Dze,Bze]=Nze(Vze),Fze=l.forwardRef(((e,r)=>{const{name:n,min:a=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[a],value:h,onValueChange:p=()=>{},onValueCommit:f=()=>{},inverted:v=!1,form:m,...y}=e,g=l.useRef(new Set),k=l.useRef(0),b="horizontal"===s?Uze:Gze,[w=[],x]=vye({prop:h,defaultProp:u,onChange:e=>{const t=[...g.current];t[k.current]?.focus(),p(e)}}),_=l.useRef(w);function M(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(i),l=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/i)*i+a,n),s=Eze(l,[a,o]);x(((e=[])=>{const n=function(e=[],t,r){const n=[...e];return n[r]=t,n.sort(((e,t)=>e-t))}(e,s,t);if(function(e,t){if(t>0){const r=function(e){return e.slice(0,-1).map(((t,r)=>e[r+1]-t))}(e);return Math.min(...r)>=t}return!0}(n,d*i)){k.current=n.indexOf(s);const t=String(n)!==String(e);return t&&r&&f(n),t?n:e}return e}))}return t.jsx(Dze,{scope:e.__scopeSlider,name:n,disabled:c,min:a,max:o,valueIndexToChangeRef:k,thumbs:g.current,values:w,orientation:s,form:m,children:t.jsx(Hze.Provider,{scope:e.__scopeSlider,children:t.jsx(Hze.Slot,{scope:e.__scopeSlider,children:t.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...y,ref:r,onPointerDown:pye(y.onPointerDown,(()=>{c||(_.current=w)})),min:a,max:o,inverted:v,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const r=e.map((e=>Math.abs(e-t))),n=Math.min(...r);return r.indexOf(n)}(w,e);M(e,t)},onSlideMove:c?void 0:function(e){M(e,k.current)},onSlideEnd:c?void 0:function(){const e=_.current[k.current];w[k.current]!==e&&f(w)},onHomeKeyDown:()=>!c&&M(a,0,{commit:!0}),onEndKeyDown:()=>!c&&M(o,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const r=Aze.includes(e.key)||e.shiftKey&&Lze.includes(e.key)?10:1,n=k.current;M(w[n]+i*r*t,n,{commit:!0})}}})})})})}));Fze.displayName=Vze;var[Tze,Wze]=Nze(Vze,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Uze=l.forwardRef(((e,r)=>{const{min:n,max:a,dir:o,inverted:i,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:u,...h}=e,[p,f]=l.useState(null),v=dye(r,(e=>f(e))),m=l.useRef(),y=Cze(o),g="ltr"===y,k=g&&!i||!g&&i;function b(e){const t=m.current||p.getBoundingClientRect(),r=aCe([0,t.width],k?[n,a]:[a,n]);return m.current=t,r(e-t.left)}return t.jsx(Tze,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:t.jsx($ze,{dir:y,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);s?.(t)},onSlideMove:e=>{const t=b(e.clientX);c?.(t)},onSlideEnd:()=>{m.current=void 0,d?.()},onStepKeyDown:e=>{const t=Ize[k?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),Gze=l.forwardRef(((e,r)=>{const{min:n,max:a,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:d,...u}=e,h=l.useRef(null),p=dye(r,h),f=l.useRef(),v=!o;function m(e){const t=f.current||h.current.getBoundingClientRect(),r=aCe([0,t.height],v?[a,n]:[n,a]);return f.current=t,r(e-t.top)}return t.jsx(Tze,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:t.jsx($ze,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);i?.(t)},onSlideMove:e=>{const t=m(e.clientY);s?.(t)},onSlideEnd:()=>{f.current=void 0,c?.()},onStepKeyDown:e=>{const t=Ize[v?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),$ze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,onSlideStart:a,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...d}=e,u=Bze(Vze,n);return t.jsx(Pze.span,{...d,ref:r,onKeyDown:pye(e.onKeyDown,(e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Aze.concat(Lze).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:pye(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():a(e)})),onPointerMove:pye(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:pye(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))}))})})),Yze="SliderTrack",Kze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,...a}=e,o=Bze(Yze,n);return t.jsx(Pze.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...a,ref:r})}));Kze.displayName=Yze;var Xze="SliderRange",Qze=l.forwardRef(((e,r)=>{const{__scopeSlider:n,...a}=e,o=Bze(Xze,n),i=Wze(Xze,n),s=dye(r,l.useRef(null)),c=o.values.length,d=o.values.map((e=>nCe(e,o.min,o.max))),u=c>1?Math.min(...d):0,h=100-Math.max(...d);return t.jsx(Pze.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...a,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:h+"%"}})}));Qze.displayName=Xze;var Jze="SliderThumb",eCe=l.forwardRef(((e,r)=>{const n=Sze(e.__scopeSlider),[a,o]=l.useState(null),i=dye(r,(e=>o(e))),s=l.useMemo((()=>a?n().findIndex((e=>e.ref.current===a)):-1),[n,a]);return t.jsx(tCe,{...e,ref:i,index:s})})),tCe=l.forwardRef(((e,r)=>{const{__scopeSlider:n,index:a,name:o,...i}=e,s=Bze(Jze,n),c=Wze(Jze,n),[d,u]=l.useState(null),h=dye(r,(e=>u(e))),p=!d||(s.form||!!d.closest("form")),f=yye(d),v=s.values[a],m=void 0===v?0:nCe(v,s.min,s.max),y=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,s.values.length),g=f?.[c.size],k=g?function(e,t,r){const n=e/2,a=aCe([0,50],[0,n]);return(n-a(t)*r)*r}(g,m,c.direction):0;return l.useEffect((()=>{if(d)return s.thumbs.add(d),()=>{s.thumbs.delete(d)}}),[d,s.thumbs]),t.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${m}% + ${k}px)`},children:[t.jsx(Hze.ItemSlot,{scope:e.__scopeSlider,children:t.jsx(Pze.span,{role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":s.min,"aria-valuenow":v,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:h,style:void 0===v?{display:"none"}:e.style,onFocus:pye(e.onFocus,(()=>{s.valueIndexToChangeRef.current=a}))})}),p&&t.jsx(rCe,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:v},a)]})}));eCe.displayName=Jze;var rCe=e=>{const{value:r,...n}=e,a=l.useRef(null),o=mye(r);return l.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(o!==r&&n){const t=new Event("input",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[o,r]),t.jsx("input",{style:{display:"none"},...n,ref:a,defaultValue:r})};function nCe(e,t,r){return Eze(100/(r-t)*(e-t),[0,100])}function aCe(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var oCe=Fze,lCe=Kze,iCe=Qze,sCe=eCe;const cCe=l.forwardRef(((e,r)=>{var{className:n,trackClassName:a,rangeClassName:o,thumbClassName:l,thumbStyle:i,trackStyle:s,rangeStyle:c}=e,d=o_(e,["className","trackClassName","rangeClassName","thumbClassName","thumbStyle","trackStyle","rangeStyle"]);return t.jsxs(oCe,Object.assign({ref:r,className:s_("relative flex w-full touch-none select-none items-center",n)},d,{children:[t.jsx(lCe,{className:s_("relative h-2 w-full grow overflow-hidden rounded-full bg-grey-50",a),style:s,children:t.jsx(iCe,{className:s_("absolute h-full bg-primary",o),style:c})}),t.jsx(sCe,{className:s_("block h-5 w-5 cursor-pointer rounded-full border-[3px] border-primary bg-bg-bg1 outline-none ring-0 transition-colors disabled:pointer-events-none disabled:opacity-50",l),style:i})]}))}));cCe.displayName=oCe.displayName;var dCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{}),uCe="Switch",[hCe,pCe]=uye(uCe),[fCe,vCe]=hCe(uCe),mCe=l.forwardRef(((e,r)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:i,required:s,disabled:c,value:d="on",onCheckedChange:u,form:h,...p}=e,[f,v]=l.useState(null),m=dye(r,(e=>v(e))),y=l.useRef(!1),g=!f||(h||!!f.closest("form")),[k=!1,b]=vye({prop:o,defaultProp:i,onChange:u});return t.jsxs(fCe,{scope:n,checked:k,disabled:c,children:[t.jsx(dCe.button,{type:"button",role:"switch","aria-checked":k,"aria-required":s,"data-state":bCe(k),"data-disabled":c?"":void 0,disabled:c,value:d,...p,ref:m,onClick:pye(e.onClick,(e=>{b((e=>!e)),g&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),g&&t.jsx(kCe,{control:f,bubbles:!y.current,name:a,value:d,checked:k,required:s,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})}));mCe.displayName=uCe;var yCe="SwitchThumb",gCe=l.forwardRef(((e,r)=>{const{__scopeSwitch:n,...a}=e,o=vCe(yCe,n);return t.jsx(dCe.span,{"data-state":bCe(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:r})}));gCe.displayName=yCe;var kCe=e=>{const{control:r,checked:n,bubbles:a=!0,...o}=e,i=l.useRef(null),s=mye(n),c=yye(r);return l.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[s,n,a]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bCe(e){return e?"checked":"unchecked"}var wCe=mCe,xCe=gCe;const _Ce=r.cva(["group relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center overflow-visible px-1","before:pointer-events-none before:absolute before:left-1 before:top-1/2 before:h-3 before:w-8 before:-translate-y-1/2 before:rounded-full before:transition-colors","data-[state=unchecked]:before:bg-[var(--switch-default-color)] hover:data-[state=unchecked]:before:bg-[var(--switch-hover-color)]","data-[state=checked]:before:bg-[var(--switch-active-color)] hover:data-[state=checked]:before:bg-[var(--switch-active-hover-color)]","data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:before:!bg-[var(--switch-disabled-color)]"],{variants:{forceHover:{true:"data-[state=unchecked]:before:bg-[var(--switch-hover-color)] data-[state=checked]:before:bg-[var(--switch-active-hover-color)]",false:""}},defaultVariants:{forceHover:!1}}),MCe=r.cva(["relative isolate block size-4 rounded-full [filter:var(--switch-thumb-filter)] transition-[transform,background-color,color,filter]","data-[state=unchecked]:bg-[var(--switch-thumb-default-color)] data-[state=unchecked]:translate-x-0","data-[state=checked]:bg-[var(--switch-thumb-active-color)] data-[state=checked]:translate-x-4","data-[state=unchecked]:text-[var(--state-tertiary-hover-bg)] data-[state=checked]:text-[var(--state-primary-hover-bg)]","group-hover:[&_.switch-thumb-halo]:opacity-100 group-hover:data-[state=checked]:bg-[var(--switch-thumb-active-hover-color)] group-hover:data-[state=unchecked]:bg-[var(--switch-thumb-hover-color)]","group-disabled:!bg-[var(--switch-thumb-disabled-color)] group-disabled:[&_.switch-thumb-halo]:opacity-0"],{variants:{forceHover:{true:"[&_.switch-thumb-halo]:opacity-100 data-[state=unchecked]:bg-[var(--switch-thumb-hover-color)] data-[state=checked]:bg-[var(--switch-thumb-active-hover-color)]",false:""}},defaultVariants:{forceHover:!1}}),jCe=r.cva(["switch-thumb-halo pointer-events-none absolute left-0 top-0.5 -z-10 block size-6 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity"]),OCe=l.forwardRef(((e,r)=>{var{className:n,forceHover:a=!1}=e,o=o_(e,["className","forceHover"]);return t.jsx(wCe,Object.assign({className:s_(_Ce({forceHover:a}),n)},o,{ref:r,children:t.jsx(xCe,{className:MCe({forceHover:a}),children:t.jsx("span",{"aria-hidden":!0,className:jCe(),children:t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[t.jsx("g",{filter:"url(#switch-hover-halo-shadow)",children:t.jsx("circle",{cx:"20",cy:"18",r:"12",fill:"currentColor",shapeRendering:"crispEdges"})}),t.jsx("defs",{children:t.jsxs("filter",{id:"switch-hover-halo-shadow",x:"0",y:"0",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"2"}),t.jsx("feGaussianBlur",{stdDeviation:"4"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.568627 0 0 0 0 0.619608 0 0 0 0 0.670588 0 0 0 0.24 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})})})}))}));OCe.displayName=wCe.displayName;var ECe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function zCe(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}function CCe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}function PCe(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},CCe(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}var RCe,ACe="dismissableLayer.update",LCe="dismissableLayer.pointerDownOutside",ICe="dismissableLayer.focusOutside",VCe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),HCe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(VCe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){ZCe(LCe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){ZCe(ICe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(RCe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),SCe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=RCe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),SCe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(ACe,e),()=>document.removeEventListener(ACe,e)}),[]),t.jsx(ECe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));HCe.displayName="DismissableLayer";function SCe(){const e=new CustomEvent(ACe);document.dispatchEvent(e)}function ZCe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?zCe(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(VCe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(ECe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var NCe="focusScope.autoFocusOnMount",qCe="focusScope.autoFocusOnUnmount",DCe={bubbles:!1,cancelable:!0},BCe=l.forwardRef(((e,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=l.useState(null),u=fye(o),h=fye(i),p=l.useRef(null),f=dye(r,(e=>d(e))),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect((()=>{if(a){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:UCe(p.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||UCe(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&UCe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,c,v.paused]),l.useEffect((()=>{if(c){GCe.add(v);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(NCe,DCe);c.addEventListener(NCe,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(UCe(n,{select:t}),document.activeElement!==r)return}((e=FCe(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&UCe(c))}return()=>{c.removeEventListener(NCe,u),setTimeout((()=>{const e=new CustomEvent(qCe,DCe);c.addEventListener(qCe,h),c.dispatchEvent(e),e.defaultPrevented||UCe(t??document.body,{select:!0}),c.removeEventListener(qCe,h),GCe.remove(v)}),0)}}var e}),[c,u,h,v]);const m=l.useCallback((e=>{if(!n&&!a)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=FCe(e),r=TCe(t,e),n=TCe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&UCe(o,{select:!0})):(e.preventDefault(),n&&UCe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,v.paused]);return t.jsx(ECe.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})}));function FCe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function TCe(e,t){for(const r of e)if(!WCe(r,{upTo:t}))return r}function WCe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function UCe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}BCe.displayName="FocusScope";var GCe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=$Ce(e,t),e.unshift(t)},remove(t){e=$Ce(e,t),e[0]?.resume()}}}();function $Ce(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var YCe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(ECe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));YCe.displayName="Arrow";var KCe=YCe;function XCe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var QCe="Popper",[JCe,ePe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},XCe(a,...r)]}(QCe),[tPe,rPe]=JCe(QCe),nPe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(tPe,{scope:r,anchor:a,onAnchorChange:o,children:n})};nPe.displayName=QCe;var aPe="PopperAnchor",oPe=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=rPe(aPe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(ECe.div,{...o,ref:c})}));oPe.displayName=aPe;var lPe="PopperContent",[iPe,sPe]=JCe(lPe),cPe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=rPe(lPe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(pPe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),fPe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=vPe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(iPe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(ECe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));cPe.displayName=lPe;var dPe="PopperArrow",uPe={top:"bottom",right:"left",bottom:"top",left:"right"},hPe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=sPe(dPe,n),l=uPe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(KCe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function pPe(e){return null!==e}hPe.displayName=dPe;var fPe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=vPe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function vPe(e){const[t,r="center"]=e.split("-");return[t,r]}var mPe=nPe,yPe=oPe,gPe=cPe,kPe=hPe,bPe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(ECe.div,{...o,ref:r}),c):null}));bPe.displayName="Portal";var wPe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=xPe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=xPe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=xPe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=xPe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function xPe(e){return e?.animationName||"none"}function _Pe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}wPe.displayName="Presence";var MPe="rovingFocusGroup.onEntryFocus",jPe={bubbles:!1,cancelable:!0},OPe="RovingFocusGroup",[EPe,zPe,CPe]=PCe(OPe),[PPe,RPe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},_Pe(a,...r)]}(OPe,[CPe]),[APe,LPe]=PPe(OPe),IPe=l.forwardRef(((e,r)=>t.jsx(EPe.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(EPe.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(VPe,{...e,ref:r})})})));IPe.displayName=OPe;var VPe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...p}=e,f=l.useRef(null),v=dye(r,f),m=Cze(i),[y=null,g]=vye({prop:s,defaultProp:c,onChange:d}),[k,b]=l.useState(!1),w=fye(u),x=zPe(n),_=l.useRef(!1),[M,j]=l.useState(0);return l.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(MPe,w),()=>e.removeEventListener(MPe,w)}),[w]),t.jsx(APe,{scope:n,orientation:a,dir:m,loop:o,currentTabStopId:y,onItemFocus:l.useCallback((e=>g(e)),[g]),onItemShiftTab:l.useCallback((()=>b(!0)),[]),onFocusableItemAdd:l.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:l.useCallback((()=>j((e=>e-1))),[]),children:t.jsx(ECe.div,{tabIndex:k||0===M?-1:0,"data-orientation":a,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:pye(e.onMouseDown,(()=>{_.current=!0})),onFocus:pye(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent(MPe,jPe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));NPe([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}_.current=!1})),onBlur:pye(e.onBlur,(()=>b(!1)))})})})),HPe="RovingFocusGroupItem",SPe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:i,...s}=e,c=Ybe(),d=i||c,u=LPe(HPe,n),h=u.currentTabStopId===d,p=zPe(n),{onFocusableItemAdd:f,onFocusableItemRemove:v}=u;return l.useEffect((()=>{if(a)return f(),()=>v()}),[a,f,v]),t.jsx(EPe.ItemSlot,{scope:n,id:d,focusable:a,active:o,children:t.jsx(ECe.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...s,ref:r,onMouseDown:pye(e.onMouseDown,(e=>{a?u.onItemFocus(d):e.preventDefault()})),onFocus:pye(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:pye(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:ZPe[n]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=u.loop?(n=o+1,(r=a).map(((e,t)=>r[(n+t)%r.length]))):a.slice(o+1)}setTimeout((()=>NPe(a)))}var r,n}))})})}));SPe.displayName=HPe;var ZPe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function NPe(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var qPe=IPe,DPe=SPe,BPe=["Enter"," "],FPe=["ArrowUp","PageDown","End"],TPe=["ArrowDown","PageUp","Home",...FPe],WPe={ltr:[...BPe,"ArrowRight"],rtl:[...BPe,"ArrowLeft"]},UPe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},GPe="Menu",[$Pe,YPe,KPe]=PCe(GPe),[XPe,QPe]=uye(GPe,[KPe,ePe,RPe]),JPe=ePe(),eRe=RPe(),[tRe,rRe]=XPe(GPe),[nRe,aRe]=XPe(GPe),oRe=e=>{const{__scopeMenu:r,open:n=!1,children:a,dir:o,onOpenChange:i,modal:s=!0}=e,c=JPe(r),[d,u]=l.useState(null),h=l.useRef(!1),p=fye(i),f=Cze(o);return l.useEffect((()=>{const e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),t.jsx(mPe,{...c,children:t.jsx(tRe,{scope:r,open:n,onOpenChange:p,content:d,onContentChange:u,children:t.jsx(nRe,{scope:r,onClose:l.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:h,dir:f,modal:s,children:a})})})};oRe.displayName=GPe;var lRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e,o=JPe(n);return t.jsx(yPe,{...o,...a,ref:r})}));lRe.displayName="MenuAnchor";var iRe="MenuPortal",[sRe,cRe]=XPe(iRe,{forceMount:void 0}),dRe=e=>{const{__scopeMenu:r,forceMount:n,children:a,container:o}=e,l=rRe(iRe,r);return t.jsx(sRe,{scope:r,forceMount:n,children:t.jsx(wPe,{present:n||l.open,children:t.jsx(bPe,{asChild:!0,container:o,children:a})})})};dRe.displayName=iRe;var uRe="MenuContent",[hRe,pRe]=XPe(uRe),fRe=l.forwardRef(((e,r)=>{const n=cRe(uRe,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,l=rRe(uRe,e.__scopeMenu),i=aRe(uRe,e.__scopeMenu);return t.jsx($Pe.Provider,{scope:e.__scopeMenu,children:t.jsx(wPe,{present:a||l.open,children:t.jsx($Pe.Slot,{scope:e.__scopeMenu,children:i.modal?t.jsx(vRe,{...o,ref:r}):t.jsx(mRe,{...o,ref:r})})})})})),vRe=l.forwardRef(((e,r)=>{const n=rRe(uRe,e.__scopeMenu),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return a_e(e)}),[]),t.jsx(yRe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:pye(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),mRe=l.forwardRef(((e,r)=>{const n=rRe(uRe,e.__scopeMenu);return t.jsx(yRe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),yRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,onDismiss:v,disableOutsideScroll:m,...y}=e,g=rRe(uRe,n),k=aRe(uRe,n),b=JPe(n),w=eRe(n),x=YPe(n),[_,M]=l.useState(null),j=l.useRef(null),O=dye(r,j,g.onContentChange),E=l.useRef(0),z=l.useRef(""),C=l.useRef(0),P=l.useRef(null),R=l.useRef("right"),A=l.useRef(0),L=m?F_e:l.Fragment,I=m?{as:bye,allowPinchZoom:!0}:void 0,V=e=>{const t=z.current+e,r=x().filter((e=>!e.disabled)),n=document.activeElement,a=r.find((e=>e.ref.current===n))?.textValue,o=function(e,t,r){const n=t.length>1&&Array.from(t).every((e=>e===t[0])),a=n?t[0]:t,o=r?e.indexOf(r):-1;let l=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===a.length&&(l=l.filter((e=>e!==r)));const c=l.find((e=>e.toLowerCase().startsWith(a.toLowerCase())));return c!==r?c:void 0}(r.map((e=>e.textValue)),t,a),l=r.find((e=>e.textValue===o))?.ref.current;!function e(t){z.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout((()=>e("")),1e3))}(t),l&&setTimeout((()=>l.focus()))};l.useEffect((()=>()=>window.clearTimeout(E.current)),[]),Vbe();const H=l.useCallback((e=>R.current===P.current?.side&&function(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return function(e,t){const{x:r,y:n}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const l=t[e].x,i=t[e].y,s=t[o].x,c=t[o].y;i>n!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,t)}(e,P.current?.area)),[]);return t.jsx(hRe,{scope:n,searchRef:z,onItemEnter:l.useCallback((e=>{H(e)&&e.preventDefault()}),[H]),onItemLeave:l.useCallback((e=>{H(e)||(j.current?.focus(),M(null))}),[H]),onTriggerLeave:l.useCallback((e=>{H(e)&&e.preventDefault()}),[H]),pointerGraceTimerRef:C,onPointerGraceIntentChange:l.useCallback((e=>{P.current=e}),[]),children:t.jsx(L,{...I,children:t.jsx(BCe,{asChild:!0,trapped:o,onMountAutoFocus:pye(i,(e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:t.jsx(HCe,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,onDismiss:v,children:t.jsx(qPe,{asChild:!0,...w,dir:k.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:pye(d,(e=>{k.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:t.jsx(gPe,{role:"menu","aria-orientation":"vertical","data-state":WRe(g.open),"data-radix-menu-content":"",dir:k.dir,...b,...y,ref:O,style:{outline:"none",...y.style},onKeyDown:pye(y.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&V(e.key));const a=j.current;if(e.target!==a)return;if(!TPe.includes(e.key))return;e.preventDefault();const o=x().filter((e=>!e.disabled)).map((e=>e.ref.current));FPe.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus(),document.activeElement!==t)return}}(o)})),onBlur:pye(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),z.current="")})),onPointerMove:pye(e.onPointerMove,$Re((e=>{const t=e.target,r=A.current!==e.clientX;if(e.currentTarget.contains(t)&&r){const t=e.clientX>A.current?"right":"left";R.current=t,A.current=e.clientX}})))})})})})})})}));fRe.displayName=uRe;var gRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{role:"group",...a,ref:r})}));gRe.displayName="MenuGroup";var kRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{...a,ref:r})}));kRe.displayName="MenuLabel";var bRe="MenuItem",wRe="menu.itemSelect",xRe=l.forwardRef(((e,r)=>{const{disabled:n=!1,onSelect:a,...o}=e,i=l.useRef(null),s=aRe(bRe,e.__scopeMenu),c=pRe(bRe,e.__scopeMenu),d=dye(r,i),u=l.useRef(!1);return t.jsx(_Re,{...o,ref:d,disabled:n,onClick:pye(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(wRe,{bubbles:!0,cancelable:!0});e.addEventListener(wRe,(e=>a?.(e)),{once:!0}),zCe(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:pye(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:pye(e.onKeyDown,(e=>{const t=""!==c.searchRef.current;n||t&&" "===e.key||BPe.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));xRe.displayName=bRe;var _Re=l.forwardRef(((e,r)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...i}=e,s=pRe(bRe,n),c=eRe(n),d=l.useRef(null),u=dye(r,d),[h,p]=l.useState(!1),[f,v]=l.useState("");return l.useEffect((()=>{const e=d.current;e&&v((e.textContent??"").trim())}),[i.children]),t.jsx($Pe.ItemSlot,{scope:n,disabled:a,textValue:o??f,children:t.jsx(DPe,{asChild:!0,...c,focusable:!a,children:t.jsx(ECe.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:u,onPointerMove:pye(e.onPointerMove,$Re((e=>{if(a)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:pye(e.onPointerLeave,$Re((e=>s.onItemLeave(e)))),onFocus:pye(e.onFocus,(()=>p(!0))),onBlur:pye(e.onBlur,(()=>p(!1)))})})})})),MRe=l.forwardRef(((e,r)=>{const{checked:n=!1,onCheckedChange:a,...o}=e;return t.jsx(ARe,{scope:e.__scopeMenu,checked:n,children:t.jsx(xRe,{role:"menuitemcheckbox","aria-checked":URe(n)?"mixed":n,...o,ref:r,"data-state":GRe(n),onSelect:pye(o.onSelect,(()=>a?.(!!URe(n)||!n)),{checkForDefaultPrevented:!1})})})}));MRe.displayName="MenuCheckboxItem";var jRe="MenuRadioGroup",[ORe,ERe]=XPe(jRe,{value:void 0,onValueChange:()=>{}}),zRe=l.forwardRef(((e,r)=>{const{value:n,onValueChange:a,...o}=e,l=fye(a);return t.jsx(ORe,{scope:e.__scopeMenu,value:n,onValueChange:l,children:t.jsx(gRe,{...o,ref:r})})}));zRe.displayName=jRe;var CRe="MenuRadioItem",PRe=l.forwardRef(((e,r)=>{const{value:n,...a}=e,o=ERe(CRe,e.__scopeMenu),l=n===o.value;return t.jsx(ARe,{scope:e.__scopeMenu,checked:l,children:t.jsx(xRe,{role:"menuitemradio","aria-checked":l,...a,ref:r,"data-state":GRe(l),onSelect:pye(a.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));PRe.displayName=CRe;var RRe="MenuItemIndicator",[ARe,LRe]=XPe(RRe,{checked:!1}),IRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,forceMount:a,...o}=e,l=LRe(RRe,n);return t.jsx(wPe,{present:a||URe(l.checked)||!0===l.checked,children:t.jsx(ECe.span,{...o,ref:r,"data-state":GRe(l.checked)})})}));IRe.displayName=RRe;var VRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e;return t.jsx(ECe.div,{role:"separator","aria-orientation":"horizontal",...a,ref:r})}));VRe.displayName="MenuSeparator";var HRe=l.forwardRef(((e,r)=>{const{__scopeMenu:n,...a}=e,o=JPe(n);return t.jsx(kPe,{...o,...a,ref:r})}));HRe.displayName="MenuArrow";var SRe="MenuSub",[ZRe,NRe]=XPe(SRe),qRe=e=>{const{__scopeMenu:r,children:n,open:a=!1,onOpenChange:o}=e,i=rRe(SRe,r),s=JPe(r),[c,d]=l.useState(null),[u,h]=l.useState(null),p=fye(o);return l.useEffect((()=>(!1===i.open&&p(!1),()=>p(!1))),[i.open,p]),t.jsx(mPe,{...s,children:t.jsx(tRe,{scope:r,open:a,onOpenChange:p,content:u,onContentChange:h,children:t.jsx(ZRe,{scope:r,contentId:Ybe(),triggerId:Ybe(),trigger:c,onTriggerChange:d,children:n})})})};qRe.displayName=SRe;var DRe="MenuSubTrigger",BRe=l.forwardRef(((e,r)=>{const n=rRe(DRe,e.__scopeMenu),a=aRe(DRe,e.__scopeMenu),o=NRe(DRe,e.__scopeMenu),i=pRe(DRe,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=i,u={__scopeMenu:e.__scopeMenu},h=l.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return l.useEffect((()=>h),[h]),l.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),d(null)}}),[c,d]),t.jsx(lRe,{asChild:!0,...u,children:t.jsx(_Re,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":WRe(n.open),...e,ref:cye(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:pye(e.onPointerMove,$Re((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),h()}),100))}))),onPointerLeave:pye(e.onPointerLeave,$Re((e=>{h();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,a="right"===r,o=a?-5:5,l=t[a?"left":"right"],s=t[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:l,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:pye(e.onKeyDown,(t=>{const r=""!==i.searchRef.current;e.disabled||r&&" "===t.key||WPe[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));BRe.displayName=DRe;var FRe="MenuSubContent",TRe=l.forwardRef(((e,r)=>{const n=cRe(uRe,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,i=rRe(uRe,e.__scopeMenu),s=aRe(uRe,e.__scopeMenu),c=NRe(FRe,e.__scopeMenu),d=l.useRef(null),u=dye(r,d);return t.jsx($Pe.Provider,{scope:e.__scopeMenu,children:t.jsx(wPe,{present:a||i.open,children:t.jsx($Pe.Slot,{scope:e.__scopeMenu,children:t.jsx(yRe,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:pye(e.onFocusOutside,(e=>{e.target!==c.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:pye(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:pye(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=UPe[s.dir].includes(e.key);t&&r&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())}))})})})})}));function WRe(e){return e?"open":"closed"}function URe(e){return"indeterminate"===e}function GRe(e){return URe(e)?"indeterminate":e?"checked":"unchecked"}function $Re(e){return t=>"mouse"===t.pointerType?e(t):void 0}TRe.displayName=FRe;var YRe=oRe,KRe=lRe,XRe=dRe,QRe=fRe,JRe=gRe,eAe=kRe,tAe=xRe,rAe=MRe,nAe=zRe,aAe=PRe,oAe=IRe,lAe=VRe,iAe=HRe,sAe=qRe,cAe=BRe,dAe=TRe,uAe="DropdownMenu",[hAe,pAe]=uye(uAe,[QPe]),fAe=QPe(),[vAe,mAe]=hAe(uAe),yAe=e=>{const{__scopeDropdownMenu:r,children:n,dir:a,open:o,defaultOpen:i,onOpenChange:s,modal:c=!0}=e,d=fAe(r),u=l.useRef(null),[h=!1,p]=vye({prop:o,defaultProp:i,onChange:s});return t.jsx(vAe,{scope:r,triggerId:Ybe(),triggerRef:u,contentId:Ybe(),open:h,onOpenChange:p,onOpenToggle:l.useCallback((()=>p((e=>!e))),[p]),modal:c,children:t.jsx(YRe,{...d,open:h,onOpenChange:p,dir:a,modal:c,children:n})})};yAe.displayName=uAe;var gAe="DropdownMenuTrigger",kAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,l=mAe(gAe,n),i=fAe(n);return t.jsx(KRe,{asChild:!0,...i,children:t.jsx(ECe.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:cye(r,l.triggerRef),onPointerDown:pye(e.onPointerDown,(e=>{a||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())})),onKeyDown:pye(e.onKeyDown,(e=>{a||(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));kAe.displayName=gAe;var bAe=e=>{const{__scopeDropdownMenu:r,...n}=e,a=fAe(r);return t.jsx(XRe,{...a,...n})};bAe.displayName="DropdownMenuPortal";var wAe="DropdownMenuContent",xAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=mAe(wAe,n),i=fAe(n),s=l.useRef(!1);return t.jsx(QRe,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...a,ref:r,onCloseAutoFocus:pye(e.onCloseAutoFocus,(e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:pye(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.modal&&!n||(s.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)"}})}));xAe.displayName=wAe;var _Ae=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(JRe,{...o,...a,ref:r})}));_Ae.displayName="DropdownMenuGroup";var MAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(eAe,{...o,...a,ref:r})}));MAe.displayName="DropdownMenuLabel";var jAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(tAe,{...o,...a,ref:r})}));jAe.displayName="DropdownMenuItem";var OAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(rAe,{...o,...a,ref:r})}));OAe.displayName="DropdownMenuCheckboxItem";var EAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(nAe,{...o,...a,ref:r})}));EAe.displayName="DropdownMenuRadioGroup";var zAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(aAe,{...o,...a,ref:r})}));zAe.displayName="DropdownMenuRadioItem";var CAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(oAe,{...o,...a,ref:r})}));CAe.displayName="DropdownMenuItemIndicator";var PAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(lAe,{...o,...a,ref:r})}));PAe.displayName="DropdownMenuSeparator";l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(iAe,{...o,...a,ref:r})})).displayName="DropdownMenuArrow";var RAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(cAe,{...o,...a,ref:r})}));RAe.displayName="DropdownMenuSubTrigger";var AAe=l.forwardRef(((e,r)=>{const{__scopeDropdownMenu:n,...a}=e,o=fAe(n);return t.jsx(dAe,{...o,...a,ref:r,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)"}})}));AAe.displayName="DropdownMenuSubContent";var LAe=bAe,IAe=xAe,VAe=MAe,HAe=jAe,SAe=OAe,ZAe=zAe,NAe=CAe,qAe=PAe,DAe=RAe,BAe=AAe;const FAe=yAe,TAe=kAe,WAe=_Ae,UAe=LAe,GAe=e=>{const{__scopeDropdownMenu:r,children:n,open:a,onOpenChange:o,defaultOpen:l}=e,i=fAe(r),[s=!1,c]=vye({prop:a,defaultProp:l,onChange:o});return t.jsx(sAe,{...i,open:s,onOpenChange:c,children:n})},$Ae=EAe,YAe=l.forwardRef(((e,r)=>{var{className:n,inset:a,children:o}=e,l=o_(e,["className","inset","children"]);return t.jsxs(DAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",a&&"pl-8",n)},l,{children:[o,t.jsx(Rme,{type:"heroicons",name:"chevron-right",className:"ml-auto h-4 w-4"})]}))}));YAe.displayName=DAe.displayName;const KAe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(BAe,Object.assign({ref:r,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-contrast-low 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)},a,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},a.style)}))}));KAe.displayName=BAe.displayName;const XAe=l.forwardRef(((e,r)=>{var{className:n,sideOffset:a=4}=e,o=o_(e,["className","sideOffset"]);return t.jsx(LAe,{children:t.jsx(IAe,Object.assign({ref:r,sideOffset:a,className:s_("z-50 min-w-[154px] overflow-hidden rounded-md bg-modal-surface text-text-contrast-low 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)},o,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},o.style)}))})}));XAe.displayName=IAe.displayName;const QAe=l.forwardRef(((e,r)=>{var{className:n,inset:a}=e,o=o_(e,["className","inset"]);return t.jsx(HAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",a&&"pl-8",n)},o))}));QAe.displayName=HAe.displayName;const JAe=l.forwardRef(((e,r)=>{var{className:n,children:a,checked:o}=e,l=o_(e,["className","children","checked"]);return t.jsxs(SAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n),checked:o},l,{children:[t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(NAe,{children:t.jsx(Rme,{type:"heroicons",name:"check",className:"size-4"})})}),a]}))}));JAe.displayName=SAe.displayName;const eLe=l.forwardRef(((e,r)=>{var{className:n,children:a}=e,o=o_(e,["className","children"]);return t.jsxs(ZAe,Object.assign({ref:r,className:s_("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none","bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]","active:opacity-75","focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]","data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n)},o,{children:[t.jsx("span",{className:"absolute left-4 flex items-center justify-center",children:t.jsx(NAe,{children:t.jsx(Rme,{type:"heroicons",name:"circle",className:"h-2 w-2 fill-current"})})}),a]}))}));eLe.displayName=ZAe.displayName;const tLe=l.forwardRef(((e,r)=>{var{className:n,inset:a}=e,o=o_(e,["className","inset"]);return t.jsx(VAe,Object.assign({ref:r,className:s_("px-3 py-2 typography-small4 text-text-g-contrast-medium",a&&"pl-8",n)},o))}));tLe.displayName=VAe.displayName;const rLe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(qAe,Object.assign({ref:r,className:s_("-mx-2 my-2 h-px bg-[var(--dropdown-menu-seperator-bg)]",n)},a))}));rLe.displayName=qAe.displayName;const nLe=e=>{var{className:r}=e,n=o_(e,["className"]);return t.jsx("span",Object.assign({className:s_("ml-auto text-xs tracking-widest opacity-60",r)},n))};nLe.displayName="DropdownMenuShortcut";var aLe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});var oLe,lLe="dismissableLayer.update",iLe="dismissableLayer.pointerDownOutside",sLe="dismissableLayer.focusOutside",cLe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dLe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(cLe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){hLe(iLe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){hLe(sLe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(oLe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),uLe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=oLe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),uLe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(lLe,e),()=>document.removeEventListener(lLe,e)}),[]),t.jsx(aLe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));dLe.displayName="DismissableLayer";function uLe(){const e=new CustomEvent(lLe);document.dispatchEvent(e)}function hLe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?function(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}l.forwardRef(((e,r)=>{const n=l.useContext(cLe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(aLe.div,{...e,ref:o})})).displayName="DismissableLayerBranch";var pLe=l.forwardRef(((e,r)=>{const{children:n,width:a=10,height:o=5,...l}=e;return t.jsx(aLe.svg,{...l,ref:r,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:t.jsx("polygon",{points:"0,0 30,0 15,10"})})}));pLe.displayName="Arrow";var fLe=pLe;function vLe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var mLe="Popper",[yLe,gLe]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},vLe(a,...r)]}(mLe),[kLe,bLe]=yLe(mLe),wLe=e=>{const{__scopePopper:r,children:n}=e,[a,o]=l.useState(null);return t.jsx(kLe,{scope:r,anchor:a,onAnchorChange:o,children:n})};wLe.displayName=mLe;var xLe="PopperAnchor",_Le=l.forwardRef(((e,r)=>{const{__scopePopper:n,virtualRef:a,...o}=e,i=bLe(xLe,n),s=l.useRef(null),c=dye(r,s);return l.useEffect((()=>{i.onAnchorChange(a?.current||s.current)})),a?null:t.jsx(aLe.div,{...o,ref:c})}));_Le.displayName=xLe;var MLe="PopperContent",[jLe,OLe]=yLe(MLe),ELe=l.forwardRef(((e,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:m,...y}=e,g=bLe(MLe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),[x,_]=l.useState(null),M=yye(x),j=M?.width??0,O=M?.height??0,E=a+("center"!==i?"-"+i:""),z="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},C=Array.isArray(u)?u:[u],P=C.length>0,R={padding:z,boundary:C.filter(RLe),altBoundary:P},{refs:A,floatingStyles:L,placement:I,isPositioned:V,middlewareData:H}=vxe({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>txe(...e,{animationFrame:"always"===v}),elements:{reference:g.anchor},middleware:[yxe({mainAxis:o+O,alignmentAxis:s}),d&&gxe({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kxe():void 0,...R}),d&&bxe({...R}),wxe({...R,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:a,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${a}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),x&&_xe({element:x,padding:c}),ALe({arrowWidth:j,arrowHeight:O}),f&&xxe({strategy:"referenceHidden",...R})]}),[S,Z]=LLe(I),N=fye(m);Jme((()=>{V&&N?.()}),[V,N]);const q=H.arrow?.x,D=H.arrow?.y,B=0!==H.arrow?.centerOffset,[F,T]=l.useState();return Jme((()=>{k&&T(window.getComputedStyle(k).zIndex)}),[k]),t.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(jLe,{scope:n,placedSide:S,onArrowChange:_,arrowX:q,arrowY:D,shouldHideArrow:B,children:t.jsx(aLe.div,{"data-side":S,"data-align":Z,...y,ref:w,style:{...y.style,animation:V?void 0:"none"}})})})}));ELe.displayName=MLe;var zLe="PopperArrow",CLe={top:"bottom",right:"left",bottom:"top",left:"right"},PLe=l.forwardRef((function(e,r){const{__scopePopper:n,...a}=e,o=OLe(zLe,n),l=CLe[o.placedSide];return t.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:t.jsx(fLe,{...a,ref:r,style:{...a.style,display:"block"}})})}));function RLe(e){return null!==e}PLe.displayName=zLe;var ALe=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,o=0!==a.arrow?.centerOffset,l=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[s,c]=LLe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let p="",f="";return"bottom"===s?(p=o?d:`${u}px`,f=-i+"px"):"top"===s?(p=o?d:`${u}px`,f=`${n.floating.height+i}px`):"right"===s?(p=-i+"px",f=o?d:`${h}px`):"left"===s&&(p=`${n.floating.width+i}px`,f=o?d:`${h}px`),{data:{x:p,y:f}}}});function LLe(e){const[t,r="center"]=e.split("-");return[t,r]}var ILe=wLe,VLe=_Le,HLe=ELe,SLe=PLe;var ZLe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=NLe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=NLe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=NLe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=NLe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function NLe(e){return e?.animationName||"none"}ZLe.displayName="Presence";var qLe=l.forwardRef(((e,r)=>t.jsx(aLe.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));qLe.displayName="VisuallyHidden";var DLe=qLe,[BLe,FLe]=uye("Tooltip",[gLe]),TLe=gLe(),WLe="TooltipProvider",ULe=700,GLe="tooltip.open",[$Le,YLe]=BLe(WLe),KLe=e=>{const{__scopeTooltip:r,delayDuration:n=ULe,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:i}=e,[s,c]=l.useState(!0),d=l.useRef(!1),u=l.useRef(0);return l.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.jsx($Le,{scope:r,isOpenDelayed:s,delayDuration:n,onOpen:l.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:l.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),a)}),[a]),isPointerInTransitRef:d,onPointerInTransitChange:l.useCallback((e=>{d.current=e}),[]),disableHoverableContent:o,children:i})};KLe.displayName=WLe;var XLe="Tooltip",[QLe,JLe]=BLe(XLe),eIe=e=>{const{__scopeTooltip:r,children:n,open:a,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,d=YLe(XLe,e.__scopeTooltip),u=TLe(r),[h,p]=l.useState(null),f=Ybe(),v=l.useRef(0),m=s??d.disableHoverableContent,y=c??d.delayDuration,g=l.useRef(!1),[k=!1,b]=vye({prop:a,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(GLe))):d.onClose(),i?.(e)}}),w=l.useMemo((()=>k?g.current?"delayed-open":"instant-open":"closed"),[k]),x=l.useCallback((()=>{window.clearTimeout(v.current),v.current=0,g.current=!1,b(!0)}),[b]),_=l.useCallback((()=>{window.clearTimeout(v.current),v.current=0,b(!1)}),[b]),M=l.useCallback((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{g.current=!0,b(!0),v.current=0}),y)}),[y,b]);return l.useEffect((()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)}),[]),t.jsx(ILe,{...u,children:t.jsx(QLe,{scope:r,contentId:f,open:k,stateAttribute:w,trigger:h,onTriggerChange:p,onTriggerEnter:l.useCallback((()=>{d.isOpenDelayed?M():x()}),[d.isOpenDelayed,M,x]),onTriggerLeave:l.useCallback((()=>{m?_():(window.clearTimeout(v.current),v.current=0)}),[_,m]),onOpen:x,onClose:_,disableHoverableContent:m,children:n})})};eIe.displayName=XLe;var tIe="TooltipTrigger",rIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,...a}=e,o=JLe(tIe,n),i=YLe(tIe,n),s=TLe(n),c=dye(r,l.useRef(null),o.onTriggerChange),d=l.useRef(!1),u=l.useRef(!1),h=l.useCallback((()=>d.current=!1),[]);return l.useEffect((()=>()=>document.removeEventListener("pointerup",h)),[h]),t.jsx(VLe,{asChild:!0,...s,children:t.jsx(aLe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:c,onPointerMove:pye(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:pye(e.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:pye(e.onPointerDown,(()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})})),onFocus:pye(e.onFocus,(()=>{d.current||o.onOpen()})),onBlur:pye(e.onBlur,o.onClose),onClick:pye(e.onClick,o.onClose)})})}));rIe.displayName=tIe;var[nIe,aIe]=BLe("TooltipPortal",{forceMount:void 0}),oIe="TooltipContent",lIe=l.forwardRef(((e,r)=>{const n=aIe(oIe,e.__scopeTooltip),{forceMount:a=n.forceMount,side:o="top",...l}=e,i=JLe(oIe,e.__scopeTooltip);return t.jsx(ZLe,{present:a||i.open,children:i.disableHoverableContent?t.jsx(dIe,{side:o,...l,ref:r}):t.jsx(iIe,{side:o,...l,ref:r})})})),iIe=l.forwardRef(((e,r)=>{const n=JLe(oIe,e.__scopeTooltip),a=YLe(oIe,e.__scopeTooltip),o=l.useRef(null),i=dye(r,o),[s,c]=l.useState(null),{trigger:d,onClose:u}=n,h=o.current,{onPointerInTransitChange:p}=a,f=l.useCallback((()=>{c(null),p(!1)}),[p]),v=l.useCallback(((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...a,...function(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())]);c(o),p(!0)}),[p]);return l.useEffect((()=>()=>f()),[f]),l.useEffect((()=>{if(d&&h){const e=e=>v(e,h),t=e=>v(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}}),[d,h,v,f]),l.useEffect((()=>{if(s){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||h?.contains(t),a=!function(e,t){const{x:r,y:n}=e;let a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const l=t[e].x,i=t[e].y,s=t[o].x,c=t[o].y;i>n!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,s);n?f():a&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,h,s,u,f]),t.jsx(dIe,{...e,ref:i})})),[sIe,cIe]=BLe(XLe,{isInside:!1}),dIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,children:a,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,d=JLe(oIe,n),u=TLe(n),{onClose:h}=d;return l.useEffect((()=>(document.addEventListener(GLe,h),()=>document.removeEventListener(GLe,h))),[h]),l.useEffect((()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,h]),t.jsx(dLe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:t.jsxs(HLe,{"data-state":d.stateAttribute,...u,...c,ref:r,style:{...c.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:[t.jsx(xye,{children:a}),t.jsx(sIe,{scope:n,isInside:!0,children:t.jsx(DLe,{id:d.contentId,role:"tooltip",children:o||a})})]})})}));lIe.displayName=oIe;var uIe="TooltipArrow",hIe=l.forwardRef(((e,r)=>{const{__scopeTooltip:n,...a}=e,o=TLe(n);return cIe(uIe,n).isInside?null:t.jsx(SLe,{...o,...a,ref:r})}));hIe.displayName=uIe;var pIe=lIe;const fIe=KLe,vIe=eIe,mIe=rIe,yIe=hIe,gIe=l.forwardRef(((e,r)=>{var{className:n,sideOffset:a=4}=e,o=o_(e,["className","sideOffset"]);return t.jsx(pIe,Object.assign({ref:r,sideOffset:a,className:s_("z-50 overflow-hidden rounded-md bg-common-black px-3 py-1.5 typography-buttonMS text-common-white shadow-md 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",n)},o))}));function kIe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}gIe.displayName=pIe.displayName;var bIe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function wIe(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}var xIe,_Ie="dismissableLayer.update",MIe="dismissableLayer.pointerDownOutside",jIe="dismissableLayer.focusOutside",OIe=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),EIe=l.forwardRef(((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...d}=e,u=l.useContext(OIe),[h,p]=l.useState(null),f=h?.ownerDocument??globalThis?.document,[,v]=l.useState({}),m=dye(r,(e=>p(e))),y=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(g),b=h?y.indexOf(h):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=k,_=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1),a=l.useRef((()=>{}));return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){let n=function(){PIe(MIe,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...u.branches].some((e=>e.contains(t)));x&&!r&&(o?.(e),s?.(e),e.defaultPrevented||c?.())}),f),M=function(e,t=globalThis?.document){const r=fye(e),n=l.useRef(!1);return l.useEffect((()=>{const e=e=>{if(e.target&&!n.current){PIe(jIe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(i?.(e),s?.(e),e.defaultPrevented||c?.())}),f);return jbe((e=>{b===u.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),f),l.useEffect((()=>{if(h)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(xIe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),CIe(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=xIe)}}),[h,f,n,u]),l.useEffect((()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),CIe())}),[h,u]),l.useEffect((()=>{const e=()=>v({});return document.addEventListener(_Ie,e),()=>document.removeEventListener(_Ie,e)}),[]),t.jsx(bIe.div,{...d,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:pye(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pye(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pye(e.onPointerDownCapture,_.onPointerDownCapture)})}));EIe.displayName="DismissableLayer";var zIe=l.forwardRef(((e,r)=>{const n=l.useContext(OIe),a=l.useRef(null),o=dye(r,a);return l.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),t.jsx(bIe.div,{...e,ref:o})}));function CIe(){const e=new CustomEvent(_Ie);document.dispatchEvent(e)}function PIe(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?wIe(a,o):a.dispatchEvent(o)}zIe.displayName="DismissableLayerBranch";var RIe=EIe,AIe=zIe,LIe=l.forwardRef(((e,r)=>{const{container:n,...o}=e,[i,s]=l.useState(!1);Jme((()=>s(!0)),[]);const c=n||i&&globalThis?.document?.body;return c?a.createPortal(t.jsx(bIe.div,{...o,ref:r}),c):null}));LIe.displayName="Portal";var IIe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=VIe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=VIe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=VIe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=VIe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function VIe(e){return e?.animationName||"none"}IIe.displayName="Presence";var HIe=l.forwardRef(((e,r)=>t.jsx(bIe.span,{...e,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));HIe.displayName="VisuallyHidden";var SIe="ToastProvider",[ZIe,NIe,qIe]=function(r){const n=r+"CollectionProvider",[a,o]=function(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},kIe(a,...r)]}(n),[i,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=r=>{const{scope:n,children:a}=r,o=e.useRef(null),l=e.useRef(new Map).current;return t.jsx(i,{scope:n,itemMap:l,collectionRef:o,children:a})};c.displayName=n;const d=r+"CollectionSlot",u=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,s(d,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));u.displayName=d;const h=r+"CollectionItemSlot",p="data-radix-collection-item",f=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,i=e.useRef(null),c=dye(n,i),d=s(h,a);return e.useEffect((()=>(d.itemMap.set(i,{ref:i,...l}),()=>{d.itemMap.delete(i)}))),t.jsx(bye,{[p]:"",ref:c,children:o})}));return f.displayName=h,[{Provider:c,Slot:u,ItemSlot:f},function(t){const n=s(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}("Toast"),[DIe,BIe]=uye("Toast",[qIe]),[FIe,TIe]=DIe(SIe),WIe=e=>{const{__scopeToast:r,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[c,d]=l.useState(null),[u,h]=l.useState(0),p=l.useRef(!1),f=l.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${SIe}\`. Expected non-empty \`string\`.`),t.jsx(ZIe.Provider,{scope:r,children:t.jsx(FIe,{scope:r,label:n,duration:a,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:l.useCallback((()=>h((e=>e+1))),[]),onToastRemove:l.useCallback((()=>h((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:s})})};WIe.displayName=SIe;var UIe="ToastViewport",GIe=["F8"],$Ie="toast.viewportPause",YIe="toast.viewportResume",KIe=l.forwardRef(((e,r)=>{const{__scopeToast:n,hotkey:a=GIe,label:o="Notifications ({hotkey})",...i}=e,s=TIe(UIe,n),c=NIe(n),d=l.useRef(null),u=l.useRef(null),h=l.useRef(null),p=l.useRef(null),f=dye(r,p,s.onViewportChange),v=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=s.toastCount>0;l.useEffect((()=>{const e=e=>{const t=0!==a.length&&a.every((t=>e[t]||e.code===t));t&&p.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[a]),l.useEffect((()=>{const e=d.current,t=p.current;if(m&&e&&t){const r=()=>{if(!s.isClosePausedRef.current){const e=new CustomEvent($Ie);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},n=()=>{if(s.isClosePausedRef.current){const e=new CustomEvent(YIe);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},a=t=>{!e.contains(t.relatedTarget)&&n()},o=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",o),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}}),[m,s.isClosePausedRef]);const y=l.useCallback((({tabbingDirection:e})=>{const t=c().map((t=>{const r=t.ref.current,n=[r,...vVe(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[c]);return l.useEffect((()=>{const e=p.current;if(e){const t=t=>{const r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){const r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void u.current?.focus();const a=y({tabbingDirection:n?"backwards":"forwards"}),o=a.findIndex((e=>e===r));mVe(a.slice(o+1))?t.preventDefault():n?u.current?.focus():h.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[c,y]),t.jsxs(AIe,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&t.jsx(QIe,{ref:u,onFocusFromOutsideViewport:()=>{mVe(y({tabbingDirection:"forwards"}))}}),t.jsx(ZIe.Slot,{scope:n,children:t.jsx(bIe.ol,{tabIndex:-1,...i,ref:f})}),m&&t.jsx(QIe,{ref:h,onFocusFromOutsideViewport:()=>{mVe(y({tabbingDirection:"backwards"}))}})]})}));KIe.displayName=UIe;var XIe="ToastFocusProxy",QIe=l.forwardRef(((e,r)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...o}=e,l=TIe(XIe,n);return t.jsx(HIe,{"aria-hidden":!0,tabIndex:0,...o,ref:r,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!l.viewport?.contains(t)&&a()}})}));QIe.displayName=XIe;var JIe="Toast",eVe=l.forwardRef(((e,r)=>{const{forceMount:n,open:a,defaultOpen:o,onOpenChange:l,...i}=e,[s=!0,c]=vye({prop:a,defaultProp:o,onChange:l});return t.jsx(IIe,{present:n||s,children:t.jsx(nVe,{open:s,...i,ref:r,onClose:()=>c(!1),onPause:fye(e.onPause),onResume:fye(e.onResume),onSwipeStart:pye(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:pye(e.onSwipeMove,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)})),onSwipeCancel:pye(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:pye(e.onSwipeEnd,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),c(!1)}))})})}));eVe.displayName=JIe;var[tVe,rVe]=DIe(JIe,{onClose(){}}),nVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,type:a="foreground",duration:o,open:s,onClose:c,onEscapeKeyDown:d,onPause:u,onResume:h,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:v,onSwipeEnd:m,...y}=e,g=TIe(JIe,n),[k,b]=l.useState(null),w=dye(r,(e=>b(e))),x=l.useRef(null),_=l.useRef(null),M=o||g.duration,j=l.useRef(0),O=l.useRef(M),E=l.useRef(0),{onToastAdd:z,onToastRemove:C}=g,P=fye((()=>{const e=k?.contains(document.activeElement);e&&g.viewport?.focus(),c()})),R=l.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(E.current),j.current=(new Date).getTime(),E.current=window.setTimeout(P,e))}),[P]);l.useEffect((()=>{const e=g.viewport;if(e){const t=()=>{R(O.current),h?.()},r=()=>{const e=(new Date).getTime()-j.current;O.current=O.current-e,window.clearTimeout(E.current),u?.()};return e.addEventListener($Ie,r),e.addEventListener(YIe,t),()=>{e.removeEventListener($Ie,r),e.removeEventListener(YIe,t)}}}),[g.viewport,M,u,h,R]),l.useEffect((()=>{s&&!g.isClosePausedRef.current&&R(M)}),[s,M,g.isClosePausedRef,R]),l.useEffect((()=>(z(),()=>C())),[z,C]);const A=l.useMemo((()=>k?hVe(k):null),[k]);return g.viewport?t.jsxs(t.Fragment,{children:[A&&t.jsx(aVe,{__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite","aria-atomic":!0,children:A}),t.jsx(tVe,{scope:n,onClose:P,children:i.createPortal(t.jsx(ZIe.ItemSlot,{scope:n,children:t.jsx(RIe,{asChild:!0,onEscapeKeyDown:pye(d,(()=>{g.isFocusedToastEscapeKeyDownRef.current||P(),g.isFocusedToastEscapeKeyDownRef.current=!1})),children:t.jsx(bIe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pye(e.onKeyDown,(e=>{"Escape"===e.key&&(d?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,P()))})),onPointerDown:pye(e.onPointerDown,(e=>{0===e.button&&(x.current={x:e.clientX,y:e.clientY})})),onPointerMove:pye(e.onPointerMove,(e=>{if(!x.current)return;const t=e.clientX-x.current.x,r=e.clientY-x.current.y,n=Boolean(_.current),a=["left","right"].includes(g.swipeDirection),o=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,l=a?o(0,t):0,i=a?0:o(0,r),s="touch"===e.pointerType?10:2,c={x:l,y:i},d={originalEvent:e,delta:c};n?(_.current=c,pVe("toast.swipeMove",f,d,{discrete:!1})):fVe(c,g.swipeDirection,s)?(_.current=c,pVe("toast.swipeStart",p,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(x.current=null)})),onPointerUp:pye(e.onPointerUp,(e=>{const t=_.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),_.current=null,x.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};fVe(t,g.swipeDirection,g.swipeThreshold)?pVe("toast.swipeEnd",m,n,{discrete:!0}):pVe("toast.swipeCancel",v,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),g.viewport)})]}):null})),aVe=e=>{const{__scopeToast:r,children:n,...a}=e,o=TIe(JIe,r),[i,s]=l.useState(!1),[c,d]=l.useState(!1);return function(e=()=>{}){const t=fye(e);Jme((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>s(!0))),l.useEffect((()=>{const e=window.setTimeout((()=>d(!0)),1e3);return()=>window.clearTimeout(e)}),[]),c?null:t.jsx(LIe,{asChild:!0,children:t.jsx(HIe,{...a,children:i&&t.jsxs(t.Fragment,{children:[o.label," ",n]})})})},oVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e;return t.jsx(bIe.div,{...a,ref:r})}));oVe.displayName="ToastTitle";var lVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e;return t.jsx(bIe.div,{...a,ref:r})}));lVe.displayName="ToastDescription";var iVe="ToastAction",sVe=l.forwardRef(((e,r)=>{const{altText:n,...a}=e;return n.trim()?t.jsx(uVe,{altText:n,asChild:!0,children:t.jsx(dVe,{...a,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${iVe}\`. Expected non-empty \`string\`.`),null)}));sVe.displayName=iVe;var cVe="ToastClose",dVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,...a}=e,o=rVe(cVe,n);return t.jsx(uVe,{asChild:!0,children:t.jsx(bIe.button,{type:"button",...a,ref:r,onClick:pye(e.onClick,o.onClose)})})}));dVe.displayName=cVe;var uVe=l.forwardRef(((e,r)=>{const{__scopeToast:n,altText:a,...o}=e;return t.jsx(bIe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...o,ref:r})}));function hVe(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,n=""===e.dataset.radixToastAnnounceExclude;if(!r)if(n){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(...hVe(e))}})),t}function pVe(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?wIe(a,o):a.dispatchEvent(o)}var fVe=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return"left"===t||"right"===t?o&&n>r:!o&&a>r};function vVe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mVe(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var yVe=WIe,gVe=KIe,kVe=eVe,bVe=oVe,wVe=lVe,xVe=sVe,_Ve=dVe;const MVe=r.cva(["group pointer-events-auto relative flex w-full","rounded-lg shadow-[0px_8px_16px_0px_rgba(0,0,0,0.08)] px-4 py-3 gap-1","transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full","bg-modal-surface text-text-contrast-low"],{variants:{variant:{default:"",success:"",info:"",warning:"",error:""},showBorder:{true:"",false:"border-transparent"}},compoundVariants:[{variant:"default",showBorder:!0,className:"border"},{variant:"success",showBorder:!0,className:"border border-success-stroke"},{variant:"info",showBorder:!0,className:"border border-info-stroke"},{variant:"warning",showBorder:!0,className:"border border-warning-stroke"},{variant:"error",showBorder:!0,className:"border border-error-stroke"}],defaultVariants:{variant:"success",showBorder:!1}}),jVe=r.cva(["fixed z-[1000] flex w-auto flex-col-reverse px-4"],{variants:{position:{"top-center":"top-[40px] left-0 right-0 justify-self-center","top-left":"top-[40px] left-0 md:left-[40px]","top-right":"top-[40px] right-0 md:right-[40px]","bottom-center":"bottom-[40px] left-0 right-0 justify-self-center","bottom-left":"bottom-[40px] left-0 md:left-[40px]","bottom-right":"bottom-[40px] right-0 md:right-[40px]"}},defaultVariants:{position:"top-center"}}),OVe=r.cva(["flex items-center justify-center mr-2 rounded-full size-7"],{variants:{variant:{default:"text-text-g-contrast-high",success:"bg-success-transparent-8 text-success",info:"bg-info-transparent-8 text-info",warning:"bg-warning-transparent-8 text-warning",error:"bg-error-transparent-8 text-error"}},defaultVariants:{variant:"success"}}),EVe=r.cva(["flex flex-1"],{variants:{contentMode:{horizontal:"items-center flex-row gap-2",vertical:"items-start flex-col gap-0"}},defaultVariants:{contentMode:"vertical"}}),zVe=yVe,CVe=l.forwardRef(((e,r)=>{var{className:n,position:a}=e,o=o_(e,["className","position"]);return t.jsx(gVe,Object.assign({ref:r,className:s_(jVe({position:a}),n)},o))}));CVe.displayName=gVe.displayName;const PVe=l.forwardRef(((e,r)=>{var{className:n,variant:a,showBorder:o}=e,l=o_(e,["className","variant","showBorder"]);return t.jsx(kVe,Object.assign({ref:r,className:s_(MVe({variant:a,showBorder:o}),n)},l))}));PVe.displayName=kVe.displayName;const RVe=l.forwardRef(((e,r)=>{var{className:n,children:a}=e,o=o_(e,["className","children"]);return t.jsx(xVe,Object.assign({ref:r,className:s_("",n)},o,{asChild:!0,children:t.jsx(d_,{variant:"outline",color:"secondary",size:"sm",children:a})}))}));RVe.displayName=xVe.displayName;const AVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(_Ve,Object.assign({ref:r,className:s_("self-center text-text-g-contrast-high",n),"toast-close":""},a,{asChild:!0,children:t.jsx(Tme,{variant:"icon",size:"sm",children:t.jsx(Rme,{type:"heroicons",name:"xmark"})})}))}));AVe.displayName=_Ve.displayName;const LVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(bVe,Object.assign({ref:r,className:s_("typography-subtitle6",n)},a))}));LVe.displayName=bVe.displayName;const IVe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(wVe,Object.assign({ref:r,className:s_("typography-subtitle4 text-text-g-contrast-high",n)},a))}));IVe.displayName=wVe.displayName;let VVe=0;const HVe=new Map,SVe=e=>{if(HVe.has(e))return;const t=setTimeout((()=>{HVe.delete(e),DVe({type:"REMOVE_TOAST",toastId:e})}),3e3);HVe.set(e,t)},ZVe=(e,t)=>{switch(t.type){case"ADD_TOAST":return Object.assign(Object.assign({},e),{toasts:[t.toast,...e.toasts].slice(0,1)});case"UPDATE_TOAST":return Object.assign(Object.assign({},e),{toasts:e.toasts.map((e=>e.id===t.toast.id?Object.assign(Object.assign({},e),t.toast):e))});case"DISMISS_TOAST":{const{toastId:r}=t;return r?SVe(r):e.toasts.forEach((e=>{SVe(e.id)})),Object.assign(Object.assign({},e),{toasts:e.toasts.map((e=>e.id===r||void 0===r?Object.assign(Object.assign({},e),{open:!1}):e))})}case"REMOVE_TOAST":return void 0===t.toastId?Object.assign(Object.assign({},e),{toasts:[]}):Object.assign(Object.assign({},e),{toasts:e.toasts.filter((e=>e.id!==t.toastId))});case"ADD_POSITION":return Object.assign(Object.assign({},e),{position:t.position})}},NVe=[];let qVe={toasts:[],position:void 0};function DVe(e){qVe=ZVe(qVe,e),NVe.forEach((e=>{e(qVe)}))}function BVe(e){var t=o_(e,[]);const r=(VVe=(VVe+1)%Number.MAX_SAFE_INTEGER,VVe.toString()),n=()=>DVe({type:"DISMISS_TOAST",toastId:r});return DVe({type:"ADD_TOAST",toast:Object.assign(Object.assign({},t),{id:r,open:!0,onOpenChange:e=>{var r;e||(n(),null===(r=null==t?void 0:t.onClose)||void 0===r||r.call(t))}})}),{id:r,dismiss:n,update:e=>DVe({type:"UPDATE_TOAST",toast:Object.assign(Object.assign({},e),{id:r})})}}function FVe(e){const[t,r]=l.useState(qVe);return l.useEffect((()=>(NVe.push(r),()=>{const e=NVe.indexOf(r);e>-1&&NVe.splice(e,1)})),[t]),l.useEffect((()=>{DVe({type:"ADD_POSITION",position:null==e?void 0:e.position})}),[null==e?void 0:e.position]),Object.assign(Object.assign({},t),{toast:BVe,dismiss:e=>DVe({type:"DISMISS_TOAST",toastId:e})})}const TVe=({id:r,title:n,classes:a,children:o,isFirstLevel:l=!1,isLeaf:i=!1,disabled:s,icon:c,showIcon:d,showExpandButton:u,enableSeparatorLine:h=!0,isLastItem:p,checkable:f,checkIsExpanded:v,checkIsChecked:m,checkAutoDisabled:y,checkIsLoading:g,onExpandChange:k,onCheckedChange:b,onClickItem:w,renderIcon:x,renderElement:_,renderTitle:M,renderRightSection:j,lineSize:O=2,horizontalLineWidth:E=4,expandButtonSize:z=30,spacing:C=2,currentLevel:P=1,maxLevel:R=10,notifyClickItem:A,itemData:L})=>{const I=e.useMemo((()=>null==g?void 0:g(r)),[g,r]),V=e.useMemo((()=>m(r)),[m,r]),H=e.useMemo((()=>v(r)),[v,r]),S=e.useMemo((()=>!!(null==o?void 0:o.length)),[o]),Z=e.useMemo((()=>(void 0!==u?u:S)&&P<(R||1/0)),[S,u,R,P]),N=e.useMemo((()=>!!f&&!i),[f,i]),q=i?21.328:0,D=e.useMemo((()=>({branch:{width:O,borderBottomLeftRadius:p?O/2:0},horizontalLine:{height:O,width:O+E+(Z?0:z+C)+q,marginLeft:-O,borderBottomLeftRadius:O/2},expandButton:{width:z,height:z},childPadding:{paddingLeft:l?z/2-O/2:z/2+E-O/2}})),[O,E,z,C,l,p,Z,q]),B=e.useCallback((()=>{null==k||k(r,!H,L)}),[r,H,k,L]);e.useEffect((()=>{!H||I||S||B()}),[I,B]);const F=e.useCallback((()=>{null==w||w(r,L),null==A||A(r,L)}),[r,H,w,A,L]),T=t.jsx(Rme,{name:H?"folder-open":"folder",className:"fill-warning size-[18px]"}),W=null!=c?c:null==x?void 0:x({id:r,expanded:H,selected:V}),U=null==j?void 0:j({id:r,expanded:H,selected:V}),G=M?M({id:r,title:n,expanded:H,selected:V}):n;return $=t.jsx("div",{className:s_("flex flex-row w-full",null==a?void 0:a.elementWrapper),children:t.jsxs("div",{className:s_("flex flex-col w-full",null==a?void 0:a.itemWrapper),children:[t.jsxs("div",{className:s_("flex flex-row flex-1",null==a?void 0:a.rowWrapperClasses),children:[t.jsxs("div",{className:s_("flex flex-col h-full",null==a?void 0:a.columnWrapperClasses),children:[!l&&t.jsx("div",{className:s_("flex w-[2px] h-1/2 bg-grey-150",null==a?void 0:a.branch),style:D.branch}),!l&&!p&&(H&&(S||I)||!H)&&t.jsx("div",{className:s_("flex w-[2px] h-1/2 bg-grey-150",null==a?void 0:a.branch),style:D.branch})]}),t.jsxs("div",{className:s_("flex flex-1 items-center py-2 min-h-10",null==a?void 0:a.itemContainer),children:[!l&&t.jsx("div",{className:s_("bg-grey-150",null==a?void 0:a.horizontalLine),style:D.horizontalLine}),l&&!Z&&t.jsx("div",{className:s_("flex mr-[2px]",null==a?void 0:a.expandButton),style:D.expandButton}),Z&&t.jsx("div",{className:s_("flex mr-[2px]",null==a?void 0:a.expandButton),style:D.expandButton,onClick:!I&&B,children:t.jsx(Tme,{variant:"icon",size:"sm",children:I?t.jsx(c_,{}):t.jsx(Rme,{name:H?"chevron-down":"chevron-right"})})}),N?t.jsx(Nye,{id:r,className:s_("size-[16px]",null==a?void 0:a.checkbox),checked:V,disabled:s,onCheckedChange:e=>null==b?void 0:b(r,e,L)}):t.jsx("div",{className:l&&f?s_("size-[16px]",null==a?void 0:a.checkbox):""}),t.jsxs("div",{className:s_("ml-2 gap-1 flex flex-1 items-center text-common-black",null==a?void 0:a.item),onClick:F,children:[d?W||T:null,t.jsx("div",{className:s_("flex flex-1 cursor-pointer text-subtitle5 text-ellipsis overflow-hidden break-all text-left",null==a?void 0:a.title),children:G})]}),U]})]}),H&&S&&P<(R||1/0)&&t.jsxs("div",{className:s_("flex flex-row overflow-hidden",null==a?void 0:a.expandedChildrenWrapper),children:[!l&&!p&&t.jsx("div",{className:s_("flex w-[2px] h-full bg-grey-150",null==a?void 0:a.branch),style:D.branch}),t.jsx("div",{className:s_("flex flex-col overflow-hidden",null==a?void 0:a.expandedChildrenWrapperInner),style:D.childPadding,children:null==o?void 0:o.map(((e,r)=>t.jsx(TVe,Object.assign({classes:a,isLastItem:r===o.length-1,checkIsExpanded:v,checkIsChecked:m,checkAutoDisabled:y,checkIsLoading:g,onExpandChange:k,onCheckedChange:b,renderIcon:x,renderElement:_,renderTitle:M,disabled:y(e.id),showIcon:d,lineSize:O,horizontalLineWidth:E,expandButtonSize:z,spacing:C,notifyClickItem:A,maxLevel:R,currentLevel:P+1,checkable:f},e),e.id)))})]}),h&&l&&!p&&t.jsx("div",{className:s_("bg-grey-150 w-full h-[2px] rounded",null==a?void 0:a.separatorLine)})]})}),_?_({id:r,expanded:H,selected:V,children:$,styles:D,onClick:F}):$;var $};function WVe(t){const r=e.useRef();return e.useEffect((()=>{r.current=t})),r.current}var UVe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,r)=>{const n=l.forwardRef(((e,n)=>{const{asChild:a,...o}=e,l=a?bye:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(l,{...o,ref:n})}));return n.displayName=`Primitive.${r}`,{...e,[r]:n}}),{});function GVe(e,r=[]){let n=[];const a=()=>{const t=n.map((e=>l.createContext(e)));return function(r){const n=r?.[e]||t;return l.useMemo((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return a.scopeName=e,[function(r,a){const o=l.createContext(a),i=n.length;function s(r){const{scope:n,children:a,...s}=r,c=n?.[e][i]||o,d=l.useMemo((()=>s),Object.values(s));return t.jsx(c.Provider,{value:d,children:a})}return n=[...n,a],s.displayName=r+"Provider",[s,function(t,n){const s=n?.[e][i]||o,c=l.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},$Ve(a,...r)]}function $Ve(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return l.useMemo((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}var YVe="rovingFocusGroup.onEntryFocus",KVe={bubbles:!1,cancelable:!0},XVe="RovingFocusGroup",[QVe,JVe,eHe]=function(r){const n=r+"CollectionProvider",[a,o]=GVe(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=r=>{const{scope:n,children:a}=r,o=e.useRef(null),i=e.useRef(new Map).current;return t.jsx(l,{scope:n,itemMap:i,collectionRef:o,children:a})};s.displayName=n;const c=r+"CollectionSlot",d=e.forwardRef(((e,r)=>{const{scope:n,children:a}=e,o=dye(r,i(c,n).collectionRef);return t.jsx(bye,{ref:o,children:a})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",p=e.forwardRef(((r,n)=>{const{scope:a,children:o,...l}=r,s=e.useRef(null),c=dye(n,s),d=i(u,a);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...l}),()=>{d.itemMap.delete(s)}))),t.jsx(bye,{[h]:"",ref:c,children:o})}));return p.displayName=u,[{Provider:s,Slot:d,ItemSlot:p},function(t){const n=i(r+"CollectionConsumer",t);return e.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[n.collectionRef,n.itemMap])},o]}(XVe),[tHe,rHe]=GVe(XVe,[eHe]),[nHe,aHe]=tHe(XVe),oHe=l.forwardRef(((e,r)=>t.jsx(QVe.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(QVe.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(lHe,{...e,ref:r})})})));oHe.displayName=XVe;var lHe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...p}=e,f=l.useRef(null),v=dye(r,f),m=Cze(i),[y=null,g]=vye({prop:s,defaultProp:c,onChange:d}),[k,b]=l.useState(!1),w=fye(u),x=JVe(n),_=l.useRef(!1),[M,j]=l.useState(0);return l.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(YVe,w),()=>e.removeEventListener(YVe,w)}),[w]),t.jsx(nHe,{scope:n,orientation:a,dir:m,loop:o,currentTabStopId:y,onItemFocus:l.useCallback((e=>g(e)),[g]),onItemShiftTab:l.useCallback((()=>b(!0)),[]),onFocusableItemAdd:l.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:l.useCallback((()=>j((e=>e-1))),[]),children:t.jsx(UVe.div,{tabIndex:k||0===M?-1:0,"data-orientation":a,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:pye(e.onMouseDown,(()=>{_.current=!0})),onFocus:pye(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent(YVe,KVe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));dHe([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),h)}}_.current=!1})),onBlur:pye(e.onBlur,(()=>b(!1)))})})})),iHe="RovingFocusGroupItem",sHe=l.forwardRef(((e,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:i,...s}=e,c=Ybe(),d=i||c,u=aHe(iHe,n),h=u.currentTabStopId===d,p=JVe(n),{onFocusableItemAdd:f,onFocusableItemRemove:v}=u;return l.useEffect((()=>{if(a)return f(),()=>v()}),[a,f,v]),t.jsx(QVe.ItemSlot,{scope:n,id:d,focusable:a,active:o,children:t.jsx(UVe.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...s,ref:r,onMouseDown:pye(e.onMouseDown,(e=>{a?u.onItemFocus(d):e.preventDefault()})),onFocus:pye(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:pye(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:cHe[n]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();const o=a.indexOf(e.currentTarget);a=u.loop?(n=o+1,(r=a).map(((e,t)=>r[(n+t)%r.length]))):a.slice(o+1)}setTimeout((()=>dHe(a)))}var r,n}))})})}));sHe.displayName=iHe;var cHe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dHe(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var uHe=oHe,hHe=sHe;var pHe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=function(e,t){return l.useReducer(((e,r)=>t[e][r]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect((()=>{const e=fHe(n.current);o.current="mounted"===s?e:"none"}),[s]),Jme((()=>{const t=n.current,r=a.current;if(r!==e){const n=o.current,l=fHe(t);if(e)c("MOUNT");else if("none"===l||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==l?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),Jme((()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,l=o=>{const l=fHe(n.current).includes(o.animationName);if(o.target===t&&l&&(c("ANIMATION_END"),!a.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)}))}},i=e=>{e.target===t&&(o.current=fHe(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:n.isPresent}):l.Children.only(r),o=dye(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?l.cloneElement(a,{ref:o}):null};function fHe(e){return e?.animationName||"none"}pHe.displayName="Presence";var vHe="Radio",[mHe,yHe]=uye(vHe),[gHe,kHe]=mHe(vHe),bHe=l.forwardRef(((e,r)=>{const{__scopeRadio:n,name:a,checked:o=!1,required:i,disabled:s,value:c="on",onCheck:d,form:u,...h}=e,[p,f]=l.useState(null),v=dye(r,(e=>f(e))),m=l.useRef(!1),y=!p||(u||!!p.closest("form"));return t.jsxs(gHe,{scope:n,checked:o,disabled:s,children:[t.jsx(UVe.button,{type:"button",role:"radio","aria-checked":o,"data-state":MHe(o),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onClick:pye(e.onClick,(e=>{o||d?.(),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&t.jsx(_He,{control:p,bubbles:!m.current,name:a,value:c,checked:o,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})}));bHe.displayName=vHe;var wHe="RadioIndicator",xHe=l.forwardRef(((e,r)=>{const{__scopeRadio:n,forceMount:a,...o}=e,l=kHe(wHe,n);return t.jsx(pHe,{present:a||l.checked,children:t.jsx(UVe.span,{"data-state":MHe(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:r})})}));xHe.displayName=wHe;var _He=e=>{const{control:r,checked:n,bubbles:a=!0,...o}=e,i=l.useRef(null),s=mye(n),c=yye(r);return l.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[s,n,a]),t.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function MHe(e){return e?"checked":"unchecked"}var jHe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OHe="RadioGroup",[EHe,zHe]=uye(OHe,[rHe,yHe]),CHe=rHe(),PHe=yHe(),[RHe,AHe]=EHe(OHe),LHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,name:a,defaultValue:o,value:l,required:i=!1,disabled:s=!1,orientation:c,dir:d,loop:u=!0,onValueChange:h,...p}=e,f=CHe(n),v=Cze(d),[m,y]=vye({prop:l,defaultProp:o,onChange:h});return t.jsx(RHe,{scope:n,name:a,required:i,disabled:s,value:m,onValueChange:y,children:t.jsx(uHe,{asChild:!0,...f,orientation:c,dir:v,loop:u,children:t.jsx(UVe.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:v,...p,ref:r})})})}));LHe.displayName=OHe;var IHe="RadioGroupItem",VHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,disabled:a,...o}=e,i=AHe(IHe,n),s=i.disabled||a,c=CHe(n),d=PHe(n),u=l.useRef(null),h=dye(r,u),p=i.value===o.value,f=l.useRef(!1);return l.useEffect((()=>{const e=e=>{jHe.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),t.jsx(hHe,{asChild:!0,...c,focusable:!s,active:p,children:t.jsx(bHe,{disabled:s,required:i.required,checked:p,...d,...o,name:i.name,ref:h,onCheck:()=>i.onValueChange(o.value),onKeyDown:pye((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:pye(o.onFocus,(()=>{f.current&&u.current?.click()}))})})}));VHe.displayName=IHe;var HHe=l.forwardRef(((e,r)=>{const{__scopeRadioGroup:n,...a}=e,o=PHe(n);return t.jsx(xHe,{...o,...a,ref:r})}));HHe.displayName="RadioGroupIndicator";var SHe=LHe,ZHe=VHe,NHe=HHe;const qHe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(SHe,Object.assign({className:s_("grid gap-2",n)},a,{ref:r}))}));qHe.displayName=SHe.displayName;const DHe=l.forwardRef(((e,r)=>{var{className:n}=e,a=o_(e,["className"]);return t.jsx(ZHe,Object.assign({ref:r,className:s_("aspect-square box-border size-4 cursor-pointer rounded-full border border-function-default-solid text-function-default-solid","hover:border-function-default-hover","focus:outline-none","data-[disabled]:!border-state-disable-outline data-[disabled]:!fill-state-disable-outline data-[disabled]:!cursor-not-allowed data-[disabled]:!pointer-events-none data-[disabled]:!text-state-disable-outline","[&[data-disabled][data-state=checked]]:!border-state-disable-solid [&[data-disabled][data-state=checked]]:!text-state-disable-solid","data-[state=checked]:border-function-active-solid data-[state=checked]:text-function-active-solid","hover:data-[state=checked]:border-function-active-hover hover:data-[state=checked]:text-function-active-hover",n)},a,{children:t.jsx(NHe,{className:"flex items-center justify-center",children:t.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current text-current",children:t.jsx("circle",{cx:"5",cy:"5",r:"5",fill:"current"})})})}))}));DHe.displayName=ZHe.displayName;var BHe=e=>"checkbox"===e.type,FHe=e=>e instanceof Date,THe=e=>null==e;const WHe=e=>"object"==typeof e;var UHe=e=>!THe(e)&&!Array.isArray(e)&&WHe(e)&&!FHe(e),GHe=e=>UHe(e)&&e.target?BHe(e.target)?e.target.checked:e.target.value:e,$He=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),YHe="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function KHe(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(YHe&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||UHe(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return UHe(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=KHe(e[t]));return n}var XHe=e=>/^\w*$/.test(e),QHe=e=>void 0===e,JHe=e=>Array.isArray(e)?e.filter(Boolean):[],eSe=e=>JHe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),tSe=(e,t,r)=>{if(!t||!UHe(e))return r;const n=(XHe(t)?[t]:eSe(t)).reduce(((e,t)=>THe(e)?e:e[t]),e);return QHe(n)||n===e?QHe(e[t])?r:e[t]:n},rSe=e=>"boolean"==typeof e,nSe=e=>"function"==typeof e,aSe=(e,t,r)=>{let n=-1;const a=XHe(t)?[t]:eSe(t),o=a.length,l=o-1;for(;++n<o;){const t=a[n];let o=r;if(n!==l){const r=e[t];o=UHe(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const oSe="blur",lSe="focusout",iSe="change",sSe="onBlur",cSe="onChange",dSe="onSubmit",uSe="onTouched",hSe="all",pSe="max",fSe="min",vSe="maxLength",mSe="minLength",ySe="pattern",gSe="required",kSe="validate",bSe=e.createContext(null);bSe.displayName="HookFormControlContext";const wSe=()=>e.useContext(bSe);var xSe=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==hSe&&(t._proxyFormState[a]=!n||hSe),r&&(r[a]=!0),e[a]}});return a};const _Se="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var MSe=e=>"string"==typeof e,jSe=(e,t,r,n,a)=>MSe(e)?(n&&t.watch.add(e),tSe(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),tSe(r,e)))):(n&&(t.watchAll=!0),r),OSe=e=>THe(e)||!WHe(e);function ESe(e,t,r=new WeakSet){if(OSe(e)||OSe(t))return Object.is(e,t);if(FHe(e)&&FHe(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const n=e[o];if(!a.includes(o))return!1;if("ref"!==o){const e=t[o];if(FHe(n)&&FHe(e)||UHe(n)&&UHe(e)||Array.isArray(n)&&Array.isArray(e)?!ESe(n,e,r):!Object.is(n,e))return!1}}return!0}function zSe(t){const r=wSe(),{name:n,disabled:a,control:o=r,shouldUnregister:l,defaultValue:i,exact:s=!0}=t,c=$He(o._names.array,n),d=e.useMemo((()=>tSe(o._formValues,n,tSe(o._defaultValues,n,i))),[o,n,i]),u=function(t){const r=wSe(),{control:n=r,name:a,defaultValue:o,disabled:l,exact:i,compute:s}=t||{},c=e.useRef(o),d=e.useRef(s),u=e.useRef(void 0),h=e.useRef(n),p=e.useRef(a);d.current=s;const[f,v]=e.useState((()=>{const e=n._getWatch(a,c.current);return d.current?d.current(e):e})),m=e.useCallback((e=>{const t=jSe(a,n._names,e||n._formValues,!1,c.current);return d.current?d.current(t):t}),[n._formValues,n._names,a]),y=e.useCallback((e=>{if(!l){const t=jSe(a,n._names,e||n._formValues,!1,c.current);if(d.current){const e=d.current(t);ESe(e,u.current)||(v(e),u.current=e)}else v(t)}}),[n._formValues,n._names,l,a]);_Se((()=>(h.current===n&&ESe(p.current,a)||(h.current=n,p.current=a,y()),n._subscribe({name:a,formState:{values:!0},exact:i,callback:e=>{y(e.values)}}))),[n,i,a,y]),e.useEffect((()=>n._removeUnmounted()));const g=h.current!==n,k=p.current,b=e.useMemo((()=>{if(l)return null;const e=!g&&!ESe(k,a);return g||e?m():null}),[l,g,a,k,m]);return null!==b?b:f}({control:o,name:n,defaultValue:d,exact:s}),h=function(t){const r=wSe(),{control:n=r,disabled:a,name:o,exact:l}=t||{},[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 _Se((()=>n._subscribe({name:o,formState:c.current,exact:l,callback:e=>{!a&&s({...n._formState,...e})}})),[o,a,l]),e.useEffect((()=>{c.current.isValid&&n._setValid(!0)}),[n]),e.useMemo((()=>xSe(i,n,c.current,!1)),[i,n])}({control:o,name:n,exact:s}),p=e.useRef(t),f=e.useRef(void 0),v=e.useRef(o.register(n,{...t.rules,value:u,...rSe(t.disabled)?{disabled:t.disabled}:{}}));p.current=t;const m=e.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!tSe(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!tSe(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!tSe(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!tSe(h.validatingFields,n)},error:{enumerable:!0,get:()=>tSe(h.errors,n)}})),[h,n]),y=e.useCallback((e=>v.current.onChange({target:{value:GHe(e),name:n},type:iSe})),[n]),g=e.useCallback((()=>v.current.onBlur({target:{value:tSe(o._formValues,n),name:n},type:oSe})),[n,o._formValues]),k=e.useCallback((e=>{const t=tSe(o._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>nSe(e.focus)&&e.focus(),select:()=>nSe(e.select)&&e.select(),setCustomValidity:t=>nSe(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>nSe(e.reportValidity)&&e.reportValidity()})}),[o._fields,n]),b=e.useMemo((()=>({name:n,value:u,...rSe(a)||h.disabled?{disabled:h.disabled||a}:{},onChange:y,onBlur:g,ref:k})),[n,a,h.disabled,y,g,k,u]);return e.useEffect((()=>{const e=o._options.shouldUnregister||l,t=f.current;t&&t!==n&&!c&&o.unregister(t),o.register(n,{...p.current.rules,...rSe(p.current.disabled)?{disabled:p.current.disabled}:{}});const r=(e,t)=>{const r=tSe(o._fields,e);r&&r._f&&(r._f.mount=t)};if(r(n,!0),e){const e=KHe(tSe(o._options.defaultValues,n,p.current.defaultValue));aSe(o._defaultValues,n,e),QHe(tSe(o._formValues,n))&&aSe(o._formValues,n,e)}return!c&&o.register(n),f.current=n,()=>{(c?e&&!o._state.action:e)?o.unregister(n):r(n,!1)}}),[n,o,c,l]),e.useEffect((()=>{o._setDisabledField({disabled:a,name:n})}),[a,n,o]),e.useMemo((()=>({field:b,formState:h,fieldState:m})),[b,h,m])}const CSe=e.createContext(null);CSe.displayName="HookFormContext";const PSe=t=>{const{children:r,watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:p,unregister:f,control:v,register:m,setFocus:y,subscribe:g}=t;return e.createElement(CSe.Provider,{value:e.useMemo((()=>({watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:p,unregister:f,control:v,register:m,setFocus:y,subscribe:g})),[i,v,d,o,a,p,m,h,u,l,y,s,g,c,f,n])},e.createElement(bSe.Provider,{value:v},r))};var RSe=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},ASe=e=>Array.isArray(e)?e:[e],LSe=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}};function ISe(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n],o=t[n];if(a&&UHe(a)&&o){const e=ISe(a,o);UHe(e)&&(r[n]=e)}else e[n]&&(r[n]=o)}return r}var VSe=e=>UHe(e)&&!Object.keys(e).length,HSe=e=>"file"===e.type,SSe=e=>{if(!YHe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ZSe=e=>"select-multiple"===e.type,NSe=e=>"radio"===e.type,qSe=e=>SSe(e)&&e.isConnected;function DSe(e,t){const r=Array.isArray(t)?t:XHe(t)?[t]:eSe(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=QHe(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!==a&&(UHe(n)&&VSe(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!QHe(e[t]))return!1;return!0}(n))&&DSe(e,r.slice(0,-1)),e}function BSe(e){return Array.isArray(e)||UHe(e)&&!(e=>{for(const t in e)if(nSe(e[t]))return!0;return!1})(e)}function FSe(e,t={}){for(const r in e){const n=e[r];BSe(n)?(t[r]=Array.isArray(n)?[]:{},FSe(n,t[r])):QHe(n)||(t[r]=!0)}return t}function TSe(e,t,r){r||(r=FSe(t));for(const n in e){const a=e[n];if(BSe(a))QHe(t)||OSe(r[n])?r[n]=FSe(a,Array.isArray(a)?[]:{}):TSe(a,THe(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!ESe(a,e)}}return r}const WSe={value:!1,isValid:!1},USe={value:!0,isValid:!0};var GSe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!QHe(e[0].attributes.value)?QHe(e[0].value)||""===e[0].value?USe:{value:e[0].value,isValid:!0}:USe:WSe}return WSe},$Se=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>QHe(e)?e:t?""===e?NaN:e?+e:e:r&&MSe(e)?new Date(e):n?n(e):e;const YSe={isValid:!1,value:null};var KSe=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),YSe):YSe;function XSe(e){const t=e.ref;return HSe(t)?t.files:NSe(t)?KSe(e.refs).value:ZSe(t)?[...t.selectedOptions].map((({value:e})=>e)):BHe(t)?GSe(e.refs).value:$Se(QHe(t.value)?e.ref.value:t.value,e)}var QSe=e=>e instanceof RegExp,JSe=e=>QHe(e)?e:QSe(e)?e.source:UHe(e)?QSe(e.value)?e.value.source:e.value:e,eZe=e=>({isOnSubmit:!e||e===dSe,isOnBlur:e===sSe,isOnChange:e===cSe,isOnAll:e===hSe,isOnTouch:e===uSe});const tZe="AsyncFunction";var rZe=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const nZe=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const r=tSe(e,a);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(nZe(o,t))break}else if(UHe(o)&&nZe(o,t))break}}};function aZe(e,t,r){const n=tSe(e,r);if(n||XHe(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),o=tSe(t,n),l=tSe(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};a.pop()}return{name:r}}var oZe=(e,t,r)=>{const n=ASe(tSe(e,r));return aSe(n,"root",t[r]),aSe(e,r,n),e};function lZe(e,t,r="validate"){if(MSe(e)||Array.isArray(e)&&e.every(MSe)||rSe(e)&&!e)return{type:r,message:MSe(e)?e:"",ref:t}}var iZe=e=>UHe(e)&&!QSe(e)?e:{value:e,message:""},sZe=async(e,t,r,n,a,o)=>{const{ref:l,refs:i,required:s,maxLength:c,minLength:d,min:u,max:h,pattern:p,validate:f,name:v,valueAsNumber:m,mount:y}=e._f,g=tSe(r,v);if(!y||t.has(v))return{};const k=i?i[0]:l,b=e=>{a&&k.reportValidity&&(k.setCustomValidity(rSe(e)?"":e||""),k.reportValidity())},w={},x=NSe(l),_=BHe(l),M=x||_,j=(m||HSe(l))&&QHe(l.value)&&QHe(g)||SSe(l)&&""===l.value||""===g||Array.isArray(g)&&!g.length,O=RSe.bind(null,v,n,w),E=(e,t,r,n=vSe,a=mSe)=>{const o=e?t:r;w[v]={type:e?n:a,message:o,ref:l,...O(e?n:a,o)}};if(o?!Array.isArray(g)||!g.length:s&&(!M&&(j||THe(g))||rSe(g)&&!g||_&&!GSe(i).isValid||x&&!KSe(i).isValid)){const{value:e,message:t}=MSe(s)?{value:!!s,message:s}:iZe(s);if(e&&(w[v]={type:gSe,message:t,ref:k,...O(gSe,t)},!n))return b(t),w}if(!(j||THe(u)&&THe(h))){let e,t;const r=iZe(h),a=iZe(u);if(THe(g)||isNaN(g)){const n=l.valueAsDate||new Date(g),o=e=>new Date((new Date).toDateString()+" "+e),i="time"==l.type,s="week"==l.type;MSe(r.value)&&g&&(e=i?o(g)>o(r.value):s?g>r.value:n>new Date(r.value)),MSe(a.value)&&g&&(t=i?o(g)<o(a.value):s?g<a.value:n<new Date(a.value))}else{const n=l.valueAsNumber||(g?+g:g);THe(r.value)||(e=n>r.value),THe(a.value)||(t=n<a.value)}if((e||t)&&(E(!!e,r.message,a.message,pSe,fSe),!n))return b(w[v].message),w}if((c||d)&&!j&&(MSe(g)||o&&Array.isArray(g))){const e=iZe(c),t=iZe(d),r=!THe(e.value)&&g.length>+e.value,a=!THe(t.value)&&g.length<+t.value;if((r||a)&&(E(r,e.message,t.message),!n))return b(w[v].message),w}if(p&&!j&&MSe(g)){const{value:e,message:t}=iZe(p);if(QSe(e)&&!g.match(e)&&(w[v]={type:ySe,message:t,ref:l,...O(ySe,t)},!n))return b(t),w}if(f)if(nSe(f)){const e=lZe(await f(g,r),k);if(e&&(w[v]={...e,...O(kSe,e.message)},!n))return b(e.message),w}else if(UHe(f)){let e={};for(const t in f){if(!VSe(e)&&!n)break;const a=lZe(await f[t](g,r),k,t);a&&(e={...a,...O(t,a.message)},b(a.message),n&&(w[v]=e))}if(!VSe(e)&&(w[v]={ref:k,...e},!n))return w}return b(!0),w};const cZe={mode:dSe,reValidateMode:cSe,shouldFocusError:!0};function dZe(e={}){let t,r={...cZe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:nSe(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},o=(UHe(r.defaultValues)||UHe(r.values))&&KHe(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:KHe(o),i={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={...d};let h={...u};const p={array:LSe(),state:LSe()},f=r.criteriaMode===hSe,v=async e=>{if(!i.keepIsValid&&!r.disabled&&(u.isValid||h.isValid||e)){let e;r.resolver?(e=VSe((await b()).errors),m()):e=await w(a,!0),e!==n.isValid&&p.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach((e=>{e&&(t?aSe(n.validatingFields,e,t):DSe(n.validatingFields,e))})),p.state.next({validatingFields:n.validatingFields,isValidating:!VSe(n.validatingFields)}))},y=(e,t,r,n)=>{const s=tSe(a,e);if(s){const a=tSe(l,e,QHe(r)?tSe(o,e):r);QHe(a)||n&&n.defaultChecked||t?aSe(l,e,t?a:XSe(s._f)):M(e,a),i.mount&&!i.action&&v()}},g=(e,t,a,l,i)=>{let s=!1,c=!1;const d={name:e};if(!r.disabled){if(!a||l){(u.isDirty||h.isDirty)&&(c=n.isDirty,n.isDirty=d.isDirty=x(),s=c!==d.isDirty);const r=ESe(tSe(o,e),t);c=!!tSe(n.dirtyFields,e),r?DSe(n.dirtyFields,e):aSe(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,s=s||(u.dirtyFields||h.dirtyFields)&&c!==!r}if(a){const t=tSe(n.touchedFields,e);t||(aSe(n.touchedFields,e,a),d.touchedFields=n.touchedFields,s=s||(u.touchedFields||h.touchedFields)&&t!==a)}s&&i&&p.state.next(d)}return s?d:{}},k=(e,a,o,l)=>{const i=tSe(n.errors,e),s=(u.isValid||h.isValid)&&rSe(a)&&n.isValid!==a;var d;if(r.delayError&&o?(d=()=>((e,t)=>{aSe(n.errors,e,t),p.state.next({errors:n.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(d,e)},t(r.delayError)):(clearTimeout(c),t=null,o?aSe(n.errors,e,o):DSe(n.errors,e)),(o?!ESe(i,o):i)||!VSe(l)||s){const t={...l,...s&&rSe(a)?{isValid:a}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},b=async e=>{m(e,!0);const t=await r.resolver(l,r.context,((e,t,r,n)=>{const a={};for(const r of e){const e=tSe(t,r);e&&aSe(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}})(e||s.mount,a,r.criteriaMode,r.shouldUseNativeValidation));return t},w=async(t,a,o={valid:!0})=>{for(const c in t){const d=t[c];if(d){const{_f:t,...c}=d;if(t){const c=s.array.has(t.name),h=d._f&&(!!(i=d._f)&&!!i.validate&&!!(nSe(i.validate)&&i.validate.constructor.name===tZe||UHe(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===tZe))));h&&u.validatingFields&&m([t.name],!0);const p=await sZe(d,s.disabled,l,f,r.shouldUseNativeValidation&&!a,c);if(h&&u.validatingFields&&m([t.name]),p[t.name]&&(o.valid=!1,a||e.shouldUseNativeValidation))break;!a&&(tSe(p,t.name)?c?oZe(n.errors,p,t.name):aSe(n.errors,t.name,p[t.name]):DSe(n.errors,t.name))}!VSe(c)&&await w(c,a,o)}}var i;return o.valid},x=(e,t)=>!r.disabled&&(e&&t&&aSe(l,e,t),!ESe(P(),o)),_=(e,t,r)=>jSe(e,s,{...i.mount?l:QHe(t)?o:MSe(e)?{[e]:t}:t},r,t),M=(e,t,r={})=>{const n=tSe(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&aSe(l,e,$Se(t,r)),o=SSe(r.ref)&&THe(t)?"":t,ZSe(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?BHe(r.ref)?r.refs.forEach((e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find((t=>t===e.value)):e.checked=o===e.value||!!o)})):r.refs.forEach((e=>e.checked=e.value===o)):HSe(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||p.state.next({name:e,values:KHe(l)})))}(r.shouldDirty||r.shouldTouch)&&g(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},j=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const o=t[n],l=e+"."+n,i=tSe(a,l);(s.array.has(e)||UHe(o)||i&&!i._f)&&!FHe(o)?j(l,o,r):M(l,o,r)}},O=(e,t,r={})=>{const c=tSe(a,e),d=s.array.has(e),f=KHe(t);aSe(l,e,f),d?(p.array.next({name:e,values:KHe(l)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&r.shouldDirty&&p.state.next({name:e,dirtyFields:TSe(o,l),isDirty:x(e,f)})):!c||c._f||THe(f)?M(e,f,r):j(e,f,r),rZe(e,s)?p.state.next({...n,name:e,values:KHe(l)}):p.state.next({name:i.mount?e:void 0,values:KHe(l)})},E=async e=>{i.mount=!0;const o=e.target;let c=o.name,d=!0;const y=tSe(a,c),x=e=>{d=Number.isNaN(e)||FHe(e)&&isNaN(e.getTime())||ESe(e,tSe(l,c,e))},_=eZe(r.mode),M=eZe(r.reValidateMode);if(y){let i,j;const O=o.type?XSe(y._f):GHe(e),E=e.type===oSe||e.type===lSe,z=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(y._f)&&!r.resolver&&!tSe(n.errors,c)&&!y._f.deps||((e,t,r,n,a)=>!a.isOnAll&&(!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:!(r?n.isOnChange:a.isOnChange)||e))(E,tSe(n.touchedFields,c),n.isSubmitted,M,_),P=rZe(c,s,E);aSe(l,c,O),E?o&&o.readOnly||(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);const R=g(c,O,E),A=!VSe(R)||P;if(!E&&p.state.next({name:c,type:e.type,values:KHe(l)}),z)return(u.isValid||h.isValid)&&("onBlur"===r.mode?E&&v():E||v()),A&&p.state.next({name:c,...P?{}:R});if(!E&&P&&p.state.next({...n}),r.resolver){const{errors:e}=await b([c]);if(m([c]),x(O),d){const t=aZe(n.errors,a,c),r=aZe(e,a,t.name||c);i=r.error,c=r.name,j=VSe(e)}}else m([c],!0),i=(await sZe(y,s.disabled,l,f,r.shouldUseNativeValidation))[c],m([c]),x(O),d&&(i?j=!1:(u.isValid||h.isValid)&&(j=await w(a,!0)));d&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&C(y._f.deps),k(c,j,i,R))}},z=(e,t)=>{if(tSe(n.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let o,l;const i=ASe(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await b(e);if(m(e),e)for(const r of e){const e=tSe(t,r);e?aSe(n.errors,r,e):DSe(n.errors,r)}else n.errors=t;return t})(QHe(e)?e:i);o=VSe(t),l=e?!i.some((e=>tSe(t,e))):o}else e?(l=(await Promise.all(i.map((async e=>{const t=tSe(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(l||n.isValid)&&v()):l=o=await w(a);return p.state.next({...!MSe(e)||(u.isValid||h.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!l&&nZe(a,z,e?i:s.mount),l},P=(e,t)=>{let r={...i.mount?l:o};return t&&(r=ISe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),QHe(e)?r:MSe(e)?tSe(r,e):e.map((e=>tSe(r,e)))},R=(e,t)=>({invalid:!!tSe((t||n).errors,e),isDirty:!!tSe((t||n).dirtyFields,e),error:tSe((t||n).errors,e),isValidating:!!tSe(n.validatingFields,e),isTouched:!!tSe((t||n).touchedFields,e)}),A=(e,t,r)=>{const o=(tSe(a,e,{_f:{}})._f||{}).ref,l=tSe(n.errors,e)||{},{ref:i,message:s,type:c,...d}=l;aSe(n.errors,e,{...d,...t,ref:o}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},L=e=>p.state.subscribe({next:t=>{var r,a,i;r=e.name,a=t.name,i=e.exact,r&&a&&r!==a&&!ASe(r).some((e=>e&&(i?e===a:e.startsWith(a)||a.startsWith(e))))||!((e,t,r,n)=>{r(e);const{name:a,...o}=e;return VSe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||hSe)))})(t,e.formState||u,D,e.reRenderRoot)||e.callback({values:{...l},...n,...t,defaultValues:o})}}).unsubscribe,I=(e,t={})=>{for(const i of e?ASe(e):s.mount)s.mount.delete(i),s.array.delete(i),t.keepValue||(DSe(a,i),DSe(l,i)),!t.keepError&&DSe(n.errors,i),!t.keepDirty&&DSe(n.dirtyFields,i),!t.keepTouched&&DSe(n.touchedFields,i),!t.keepIsValidating&&DSe(n.validatingFields,i),!r.shouldUnregister&&!t.keepDefaultValue&&DSe(o,i);p.state.next({values:KHe(l)}),p.state.next({...n,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&v()},V=({disabled:e,name:t})=>{if(rSe(e)&&i.mount||e||s.disabled.has(t)){const r=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),r&&i.mount&&!i.action&&v()}},H=(e,t={})=>{let n=tSe(a,e);const l=rSe(t.disabled)||rSe(r.disabled);return aSe(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?V({disabled:rSe(t.disabled)?t.disabled:r.disabled,name:e}):y(e,!0,t.value),{...l?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:JSe(t.min),max:JSe(t.max),minLength:JSe(t.minLength),maxLength:JSe(t.maxLength),pattern:JSe(t.pattern)}:{},name:e,onChange:E,onBlur:E,ref:l=>{if(l){H(e,t),n=tSe(a,e);const r=QHe(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,i=(e=>NSe(e)||BHe(e))(r),s=n._f.refs||[];if(i?s.find((e=>e===r)):r===n._f.ref)return;aSe(a,e,{_f:{...n._f,...i?{refs:[...s.filter(qSe),r,...Array.isArray(tSe(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=tSe(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!$He(s.array,e)||!i.action)&&s.unMount.add(e)}}},S=()=>r.shouldFocusError&&nZe(a,z,s.mount),Z=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=KHe(l);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await b();m(),n.errors=e,c=KHe(t)}else await w(a);if(s.disabled.size)for(const e of s.disabled)DSe(c,e);if(DSe(n.errors,"root"),VSe(n.errors)){p.state.next({errors:{}});try{await e(c,o)}catch(e){i=e}}else t&&await t({...n.errors},o),S(),setTimeout(S);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:VSe(n.errors)&&!i,submitCount:n.submitCount+1,errors:n.errors}),i)throw i},N=(e,t={})=>{const c=e?KHe(e):o,d=KHe(c),h=VSe(e),f=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(TSe(o,l))]);for(const t of Array.from(e)){const e=tSe(n.dirtyFields,t),r=tSe(l,t),a=tSe(f,t);e&&!QHe(r)?aSe(f,t,r):e||QHe(a)||O(t,a)}}else{if(YHe&&QHe(e))for(const e of s.mount){const t=tSe(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(SSe(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of s.mount)O(e,tSe(f,e));else a={}}l=r.shouldUnregister?t.keepDefaultValues?KHe(o):{}:KHe(f),p.array.next({values:{...f}}),p.state.next({values:{...f}})}s={mount:t.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!VSe(f),i.watch=!!r.shouldUnregister,i.keepIsValid=!!t.keepIsValid,i.action=!1,t.keepErrors||(n.errors={}),p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||ESe(e,o))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&l?TSe(o,l):n.dirtyFields:t.keepDefaultValues&&e?TSe(o,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},q=(e,t)=>N(nSe(e)?e(l):e,{...r.resetOptions,...t}),D=e=>{n={...n,...e}},B={control:{register:H,unregister:I,getFieldState:R,handleSubmit:Z,setError:A,_subscribe:L,_runSchema:b,_updateIsValidating:m,_focusError:S,_getWatch:_,_getDirty:x,_setValid:v,_setFieldArray:(e,t=[],s,c,d=!0,f=!0)=>{if(c&&s&&!r.disabled){if(i.action=!0,f&&Array.isArray(tSe(a,e))){const t=s(tSe(a,e),c.argA,c.argB);d&&aSe(a,e,t)}if(f&&Array.isArray(tSe(n.errors,e))){const t=s(tSe(n.errors,e),c.argA,c.argB);d&&aSe(n.errors,e,t),((e,t)=>{!JHe(tSe(e,t)).length&&DSe(e,t)})(n.errors,e)}if((u.touchedFields||h.touchedFields)&&f&&Array.isArray(tSe(n.touchedFields,e))){const t=s(tSe(n.touchedFields,e),c.argA,c.argB);d&&aSe(n.touchedFields,e,t)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=TSe(o,l)),p.state.next({name:e,isDirty:x(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else aSe(l,e,t)},_setDisabledField:V,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>JHe(tSe(i.mount?l:o,e,r.shouldUnregister?tSe(o,e,[]):[])),_reset:N,_resetDefaultValues:()=>nSe(r.defaultValues)&&r.defaultValues().then((e=>{q(e,r.resetOptions),p.state.next({isLoading:!1})})),_removeUnmounted:()=>{for(const e of s.unMount){const t=tSe(a,e);t&&(t._f.refs?t._f.refs.every((e=>!qSe(e))):!qSe(t._f.ref))&&I(e)}s.unMount=new Set},_disableForm:e=>{rSe(e)&&(p.state.next({disabled:e}),nZe(a,((t,r)=>{const n=tSe(a,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:p,_proxyFormState:u,get _fields(){return a},get _formValues(){return l},get _state(){return i},set _state(e){i=e},get _defaultValues(){return o},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(i.mount=!0,h={...h,...e.formState},L({...e,formState:{...d,...e.formState}})),trigger:C,register:H,handleSubmit:Z,watch:(e,t)=>nSe(e)?p.state.subscribe({next:r=>"values"in r&&e(_(void 0,t),r)}):_(e,t,!0),setValue:O,getValues:P,reset:q,resetField:(e,t={})=>{tSe(a,e)&&(QHe(t.defaultValue)?O(e,KHe(tSe(o,e))):(O(e,t.defaultValue),aSe(o,e,KHe(t.defaultValue))),t.keepTouched||DSe(n.touchedFields,e),t.keepDirty||(DSe(n.dirtyFields,e),n.isDirty=t.defaultValue?x(e,KHe(tSe(o,e))):x()),t.keepError||(DSe(n.errors,e),u.isValid&&v()),p.state.next({...n}))},clearErrors:e=>{const t=e?ASe(e):void 0;null==t||t.forEach((e=>DSe(n.errors,e))),t?t.forEach((e=>{p.state.next({name:e,errors:n.errors})})):p.state.next({errors:{}})},unregister:I,setError:A,setFocus:(e,t={})=>{const r=tSe(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout((()=>{e.focus(),t.shouldSelect&&nSe(e.select)&&e.select()}))}},getFieldState:R};return{...B,formControl:B}}function uZe(t={}){const r=e.useRef(void 0),n=e.useRef(void 0),[a,o]=e.useState({isDirty:!1,isValidating:!1,isLoading:nSe(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:nSe(t.defaultValues)?void 0:t.defaultValues});if(!r.current)if(t.formControl)r.current={...t.formControl,formState:a},t.defaultValues&&!nSe(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:e,...n}=dZe(t);r.current={...n,formState:a}}const l=r.current.control;return l._options=t,_Se((()=>{const e=l._subscribe({formState:l._proxyFormState,callback:()=>o({...l._formState}),reRenderRoot:!0});return o((e=>({...e,isReady:!0}))),l._formState.isReady=!0,e}),[l]),e.useEffect((()=>l._disableForm(t.disabled)),[l,t.disabled]),e.useEffect((()=>{t.mode&&(l._options.mode=t.mode),t.reValidateMode&&(l._options.reValidateMode=t.reValidateMode)}),[l,t.mode,t.reValidateMode]),e.useEffect((()=>{t.errors&&(l._setErrors(t.errors),l._focusError())}),[l,t.errors]),e.useEffect((()=>{t.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})}),[l,t.shouldUnregister]),e.useEffect((()=>{if(l._proxyFormState.isDirty){const e=l._getDirty();e!==a.isDirty&&l._subjects.state.next({isDirty:e})}}),[l,a.isDirty]),e.useEffect((()=>{var e;t.values&&!ESe(t.values,n.current)?(l._reset(t.values,{keepFieldsRef:!0,...l._options.resetOptions}),(null===(e=l._options.resetOptions)||void 0===e?void 0:e.keepIsValid)||l._setValid(),n.current=t.values,o((e=>({...e})))):l._resetDefaultValues()}),[l,t.values]),e.useEffect((()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()})),r.current.formState=e.useMemo((()=>xSe(a,l)),[l,a]),r.current}const hZe=(e,t,r)=>{if(e&&"reportValidity"in e){const n=tSe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},pZe=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?hZe(n.ref,r,e):n&&n.refs&&n.refs.forEach((t=>hZe(t,r,e)))}},fZe=(e,t)=>{t.shouldUseNativeValidation&&pZe(e,t);const r={};for(const n in e){const a=tSe(t.fields,n),o=Object.assign(e[n]||{},{ref:a&&a.ref});if(vZe(t.names||Object.keys(e),n)){const e=Object.assign({},tSe(r,n));aSe(e,"root",o),aSe(r,n,e)}else aSe(r,n,o)}return r},vZe=(e,t)=>{const r=mZe(t);return e.some((e=>mZe(e).match(`^${r}\\.\\d+`)))};function mZe(e){return e.replace(/\]|\[/g,"")}const yZe=e=>function(e,t,r){return void 0===r&&(r={}),function(n,a,o){try{return Promise.resolve(function(l,i){try{var s=(null!=t&&t.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e["sync"===r.mode?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:a}))).then((function(e){return o.shouldUseNativeValidation&&pZe({},o),{values:r.raw?Object.assign({},n):e,errors:{}}})))}catch(e){return i(e)}return s&&s.then?s.then(void 0,i):s}(0,(function(e){if(!e.inner)throw e;return{values:{},errors:fZe((t=e,r=!o.shouldUseNativeValidation&&"all"===o.criteriaMode,(t.inner||[]).reduce((function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),r){var n=e[t.path].types,a=n&&n[t.type];e[t.path]=RSe(t.path,r,e,t.type,a?[].concat(a,t.message):t.message)}return e}),{})),o)};var t,r})))}catch(e){return Promise.reject(e)}}}(e),gZe=({methods:r,defaultValues:n,controllerRef:a})=>{const o=e.forwardRef(((e,o)=>{var{children:l}=e,i=o_(e,["children"]);return t.jsx(kZe,Object.assign({},i,{ref:o,methods:r,defaultValues:n,controllerRef:a,children:l}))}));return o.displayName="ControlledFormRoot",{methods:r,FormRoot:o}},kZe=e.forwardRef(((r,n)=>{var{children:a,defaultValues:o,methods:l,controllerRef:i,onSubmit:s,onInvalidSubmit:c,resolver:d,validationSchema:u,mode:h="onSubmit",reValidateMode:p="onChange",noValidate:f=!0}=r,v=o_(r,["children","defaultValues","methods","controllerRef","onSubmit","onInvalidSubmit","resolver","validationSchema","mode","reValidateMode","noValidate"]);const m=uZe({defaultValues:o,resolver:null!=d?d:u?yZe(u):void 0,mode:h,reValidateMode:p}),y=null!=l?l:m,g=e.useMemo((()=>({submit:async()=>{await y.handleSubmit(s,c)()},getValues:()=>y.getValues(),setValue:y.setValue,trigger:y.trigger,reset:y.reset})),[y,s,c]);return e.useImperativeHandle(n,(()=>g),[g]),e.useEffect((()=>{if(i)return i.current=g,()=>{i.current=null}}),[i,g]),t.jsx(PSe,Object.assign({},y,{children:t.jsx("form",Object.assign({},v,{noValidate:f,onSubmit:y.handleSubmit(s,c),children:"function"==typeof a?a(y):a}))}))})),bZe={valid:"text-text-g-contrast-high",invalid:"text-input-error",pending:"text-text-g-contrast-high"},wZe={valid:"text-primary",invalid:"text-input-error",pending:"text-text-g-contrast-low"},xZe=e=>String(e).length>10?e/1e3:e,_Ze=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t},MZe=e=>{const t=new Date(e);return t.setHours(23,59,59,999),t},jZe={"main-primary":"--main-primary","main-secondary":"--main-secondary","main-tertiary":"--main-tertiary","brand-midnight-blue":"--brand-midnight-blue","brand-columbia-blue":"--brand-columbia-blue","brand-background":"--brand-background","brand-lemon-glacier":"--brand-lemon-glacier","primary-5":"--ramps-primary-5","primary-10":"--ramps-primary-10","primary-20":"--ramps-primary-20","primary-30":"--ramps-primary-30","primary-40":"--ramps-primary-40","primary-50":"--ramps-primary-50","primary-60":"--ramps-primary-60","primary-70":"--ramps-primary-70","primary-80":"--ramps-primary-80","primary-90":"--ramps-primary-90","primary-100":"--ramps-primary-100","primary-110":"--ramps-primary-110","primary-120":"--ramps-primary-120","primary-130":"--ramps-primary-130","primary-140":"--ramps-primary-140","primary-150":"--ramps-primary-150","secondary-5":"--ramps-secondary-5","secondary-10":"--ramps-secondary-10","secondary-20":"--ramps-secondary-20","secondary-30":"--ramps-secondary-30","secondary-40":"--ramps-secondary-40","secondary-50":"--ramps-secondary-50","secondary-60":"--ramps-secondary-60","secondary-70":"--ramps-secondary-70","secondary-80":"--ramps-secondary-80","secondary-90":"--ramps-secondary-90","secondary-100":"--ramps-secondary-100","secondary-110":"--ramps-secondary-110","secondary-120":"--ramps-secondary-120","secondary-130":"--ramps-secondary-130","secondary-140":"--ramps-secondary-140","secondary-150":"--ramps-secondary-150","tertiary-5":"--ramps-tertiary-5","tertiary-10":"--ramps-tertiary-10","tertiary-20":"--ramps-tertiary-20","tertiary-30":"--ramps-tertiary-30","tertiary-40":"--ramps-tertiary-40","tertiary-50":"--ramps-tertiary-50","tertiary-60":"--ramps-tertiary-60","tertiary-70":"--ramps-tertiary-70","tertiary-80":"--ramps-tertiary-80","tertiary-90":"--ramps-tertiary-90","tertiary-100":"--ramps-tertiary-100","tertiary-110":"--ramps-tertiary-110","tertiary-120":"--ramps-tertiary-120","tertiary-130":"--ramps-tertiary-130","tertiary-140":"--ramps-tertiary-140","tertiary-150":"--ramps-tertiary-150","grey-5":"--ramps-grey-5","grey-10":"--ramps-grey-10","grey-20":"--ramps-grey-20","grey-30":"--ramps-grey-30","grey-40":"--ramps-grey-40","grey-50":"--ramps-grey-50","grey-60":"--ramps-grey-60","grey-70":"--ramps-grey-70","grey-80":"--ramps-grey-80","grey-90":"--ramps-grey-90","grey-100":"--ramps-grey-100","grey-110":"--ramps-grey-110","grey-120":"--ramps-grey-120","grey-130":"--ramps-grey-130","grey-140":"--ramps-grey-140","grey-150":"--ramps-grey-150","grey2-50":"--ramps-grey2-50","grey2-100":"--ramps-grey2-100","grey2-200":"--ramps-grey2-200","grey2-300":"--ramps-grey2-300","grey2-400":"--ramps-grey2-400","grey2-500":"--ramps-grey2-500","grey2-600":"--ramps-grey2-600","grey2-700":"--ramps-grey2-700","grey2-800":"--ramps-grey2-800","grey2-900":"--ramps-grey2-900","grey2-950":"--ramps-grey2-950","info-50":"--ramps-info-50","info-100":"--ramps-info-100","info-200":"--ramps-info-200","info-300":"--ramps-info-300","info-400":"--ramps-info-400","info-500":"--ramps-info-500","info-600":"--ramps-info-600","info-700":"--ramps-info-700","info-800":"--ramps-info-800","info-900":"--ramps-info-900","info-950":"--ramps-info-950","success-50":"--ramps-success-50","success-100":"--ramps-success-100","success-200":"--ramps-success-200","success-300":"--ramps-success-300","success-400":"--ramps-success-400","success-500":"--ramps-success-500","success-600":"--ramps-success-600","success-700":"--ramps-success-700","success-800":"--ramps-success-800","success-900":"--ramps-success-900","success-950":"--ramps-success-950","warning-50":"--ramps-warning-50","warning-100":"--ramps-warning-100","warning-200":"--ramps-warning-200","warning-300":"--ramps-warning-300","warning-400":"--ramps-warning-400","warning-500":"--ramps-warning-500","warning-600":"--ramps-warning-600","warning-700":"--ramps-warning-700","warning-800":"--ramps-warning-800","warning-900":"--ramps-warning-900","warning-950":"--ramps-warning-950","error-50":"--ramps-error-50","error-100":"--ramps-error-100","error-200":"--ramps-error-200","error-300":"--ramps-error-300","error-400":"--ramps-error-400","error-500":"--ramps-error-500","error-600":"--ramps-error-600","error-700":"--ramps-error-700","error-800":"--ramps-error-800","error-900":"--ramps-error-900","error-950":"--ramps-error-950",primary:"--state-primary-default","primary-hover":"--state-primary-hover","primary-stroke":"--state-primary-stroke","primary-hover-bg":"--state-primary-hover-bg","primary-pressed":"--state-primary-pressed","primary-active":"--state-primary-active","primary-text-solid":"--state-primary-text-solid","primary-text-outline":"--state-primary-text-outline","primary-text-hover":"--state-primary-text-hover","primary-text-pressed":"--state-primary-text-pressed",secondary:"--state-secondary-default","secondary-hover":"--state-secondary-hover","secondary-stroke":"--state-secondary-stroke","secondary-hover-bg":"--state-secondary-hover-bg","secondary-pressed":"--state-secondary-pressed","secondary-active":"--state-secondary-active","secondary-text-solid":"--state-secondary-text-solid","secondary-text-outline":"--state-secondary-text-outline","secondary-text-hover":"--state-secondary-text-hover","secondary-text-pressed":"--state-secondary-text-pressed",tertiary:"--state-tertiary-default","tertiary-hover":"--state-tertiary-hover","tertiary-stroke":"--state-tertiary-stroke","tertiary-hover-bg":"--state-tertiary-hover-bg","tertiary-pressed":"--state-tertiary-pressed","tertiary-active":"--state-tertiary-active","tertiary-text-solid":"--state-tertiary-text-solid","tertiary-text-outline":"--state-tertiary-text-outline","tertiary-text-hover":"--state-tertiary-text-hover","tertiary-text-pressed":"--state-tertiary-text-pressed",info:"--state-info-default","info-hover":"--state-info-hover","info-stroke":"--state-info-stroke","info-hover-bg":"--state-info-hover-bg","info-pressed":"--state-info-pressed","info-active":"--state-info-active","info-text-solid":"--state-info-text-solid","info-text-outline":"--state-info-text-outline","info-text-hover":"--state-info-text-hover","info-text-pressed":"--state-info-text-pressed",success:"--state-success-default","success-hover":"--state-success-hover","success-stroke":"--state-success-stroke","success-hover-bg":"--state-success-hover-bg","success-pressed":"--state-success-pressed","success-active":"--state-success-active","success-text-solid":"--state-success-text-solid","success-text-outline":"--state-success-text-outline","success-text-hover":"--state-success-text-hover","success-text-pressed":"--state-success-text-pressed",warning:"--state-warning-default","warning-hover":"--state-warning-hover","warning-stroke":"--state-warning-stroke","warning-hover-bg":"--state-warning-hover-bg","warning-pressed":"--state-warning-pressed","warning-active":"--state-warning-active","warning-text-solid":"--state-warning-text-solid","warning-text-outline":"--state-warning-text-outline","warning-text-hover":"--state-warning-text-hover","warning-text-pressed":"--state-warning-text-pressed",error:"--state-error-default","error-hover":"--state-error-hover","error-stroke":"--state-error-stroke","error-hover-bg":"--state-error-hover-bg","error-pressed":"--state-error-pressed","error-active":"--state-error-active","error-text-solid":"--state-error-text-solid","error-text-outline":"--state-error-text-outline","error-text-hover":"--state-error-text-hover","error-text-pressed":"--state-error-text-pressed","disable-solid":"--state-disable-solid","disable-outline":"--state-disable-outline","text-black":"--text-black","text-contrast-low":"--text-contrast-low","text-contrast-medium":"--text-contrast-medium","text-contrast-high":"--text-contrast-high","text-contrast-max":"--text-contrast-max","text-g-contrast-low":"--text-g-contrast-low","text-g-contrast-medium":"--text-g-contrast-medium","text-g-contrast-high":"--text-g-contrast-high","text-dark":"--text-dark","text-medium":"--text-medium","text-light":"--text-light","text-grey-dark":"--text-grey-dark","text-grey-medium":"--text-grey-medium","text-grey-light":"--text-grey-light","text-white":"--text-white","input-default-text":"--input-default-text","input-default-stroke":"--input-default-stroke","input-filled-text":"--input-filled-text","input-active-stroke":"--input-active-stroke","input-disable-text":"--input-disable-text","input-disable-stroke":"--input-disable-stroke","input-disable-bg":"--input-disable-bg","input-label-bg":"--input-label-bg","input-error":"--input-error","function-default-solid":"--function-default-solid","function-default-hover":"--function-default-hover","function-default-hover-bg":"--function-default-hover-bg","function-default-stroke":"--function-default-stroke","function-default-icon":"--function-default-icon","function-default-outline-icon":"--function-default-outline-icon","function-active-solid":"--function-active-solid","function-active-hover":"--function-active-hover","function-active-hover-bg":"--function-active-hover-bg","function-active-stroke":"--function-active-stroke","function-active-icon":"--function-active-icon","modal-surface":"--modal-surface","modal-highlight":"--modal-highlight","modal-overlay":"--modal-overlay","bg-bg1":"--bg-bg1","bg-bg2":"--bg-bg2","bg-bg3":"--bg-bg3","bg-stroke1":"--bg-stroke1","bg-stroke2":"--bg-stroke2","state-primary-text-solid":"--state-primary-text-solid","state-primary-text-hover":"--state-primary-text-hover","state-secondary-text-solid":"--state-secondary-text-solid","state-secondary-text-hover":"--state-secondary-text-hover","state-tertiary-text-solid":"--state-tertiary-text-solid","state-tertiary-text-hover":"--state-tertiary-text-hover","state-info-text-solid":"--state-info-text-solid","state-info-text-hover":"--state-info-text-hover","state-success-text-solid":"--state-success-text-solid","state-success-text-hover":"--state-success-text-hover","state-warning-text-solid":"--state-warning-text-solid","state-warning-text-hover":"--state-warning-text-hover","state-error-text-solid":"--state-error-text-solid","state-error-text-hover":"--state-error-text-hover","base-bg":"--base-color-bg","base-bg2":"--base-color-bg2","base-bg3":"--base-color-bg3","base-workspace-stroke":"--base-color-workspace-stroke","base-guideline-stroke":"--base-color-guideline-stroke","base-popup":"--base-color-popup","base-popup-highlight":"--base-color-popup-highlight","base-popup-curtain":"--base-color-popup-curtain","base-popup-foreground":"--base-color-popup-foreground","common-white":"--common-white","common-black":"--common-black","brand-rvl-yellow":"--brand-rvl-yellow","brand-rvl-grey":"--brand-rvl-grey","others-1":"--others-1","others-2":"--others-2","others-3":"--others-3","others-4":"--others-4","others-5":"--others-5","others-6":"--others-6","others-7":"--others-7","others-8":"--others-8","others-9":"--others-9","others-10":"--others-10","others-11":"--others-11","others-12":"--others-12","others-13":"--others-13","others-14":"--others-14","others-15":"--others-15","others-16":"--others-16","others-17":"--others-17","others-18":"--others-18","others-19":"--others-19","others-20":"--others-20","others-21":"--others-21","others-22":"--others-22","others-23":"--others-23","others-24":"--others-24","others-25":"--others-25","others-26":"--others-26","others-27":"--others-27","others-28":"--others-28","others-29":"--others-29","others-30":"--others-30","others-31":"--others-31","others-32":"--others-32","others-33":"--others-33","others-34":"--others-34","others-35":"--others-35","page-bg-main":"--page-bg-main","page-bg-circle-top-g-in":"--page-bg-circle-top-g-in","page-bg-circle-top-g-out":"--page-bg-circle-top-g-out","page-bg-circle-bottom-g-in":"--page-bg-circle-bottom-g-in","page-bg-circle-bottom-g-out":"--page-bg-circle-bottom-g-out","modal-line":"--modal-line","bg-bg4":"--bg-bg4","bg-bg5":"--bg-bg5","bg-stroke3":"--bg-stroke3","bg-stroke4":"--bg-stroke4","bg-stroke5":"--bg-stroke5",background:"--background",foreground:"--foreground",surface:"--surface","surface-foreground":"--surface-foreground","primary-foreground":"--primary-foreground","secondary-foreground":"--secondary-foreground","tertiary-foreground":"--tertiary-foreground","info-foreground":"--info-foreground","success-foreground":"--success-foreground","warning-foreground":"--warning-foreground","error-foreground":"--error-foreground","grey-foreground":"--grey-foreground","grey2-foreground":"--grey2-foreground","primary-transparent-8":"--transparent-primary-8","primary-transparent-12":"--transparent-primary-12","primary-transparent-16":"--transparent-primary-16","primary-transparent-24":"--transparent-primary-24","primary-transparent-32":"--transparent-primary-32","primary-transparent-48":"--transparent-primary-48","secondary-transparent-8":"--transparent-secondary-8","secondary-transparent-12":"--transparent-secondary-12","secondary-transparent-16":"--transparent-secondary-16","secondary-transparent-24":"--transparent-secondary-24","secondary-transparent-32":"--transparent-secondary-32","secondary-transparent-48":"--transparent-secondary-48","tertiary-transparent-8":"--transparent-tertiary-8","tertiary-transparent-12":"--transparent-tertiary-12","tertiary-transparent-16":"--transparent-tertiary-16","tertiary-transparent-24":"--transparent-tertiary-24","tertiary-transparent-32":"--transparent-tertiary-32","tertiary-transparent-48":"--transparent-tertiary-48","info-transparent-8":"--transparent-info-8","info-transparent-12":"--transparent-info-12","info-transparent-16":"--transparent-info-16","info-transparent-24":"--transparent-info-24","info-transparent-32":"--transparent-info-32","info-transparent-48":"--transparent-info-48","success-transparent-8":"--transparent-success-8","success-transparent-12":"--transparent-success-12","success-transparent-16":"--transparent-success-16","success-transparent-24":"--transparent-success-24","success-transparent-32":"--transparent-success-32","success-transparent-48":"--transparent-success-48","warning-transparent-8":"--transparent-warning-8","warning-transparent-12":"--transparent-warning-12","warning-transparent-16":"--transparent-warning-16","warning-transparent-24":"--transparent-warning-24","warning-transparent-32":"--transparent-warning-32","warning-transparent-48":"--transparent-warning-48","error-transparent-8":"--transparent-error-8","error-transparent-12":"--transparent-error-12","error-transparent-16":"--transparent-error-16","error-transparent-24":"--transparent-error-24","error-transparent-32":"--transparent-error-32","error-transparent-48":"--transparent-error-48","grey-transparent-8":"--transparent-grey-8","grey-transparent-12":"--transparent-grey-12","grey-transparent-16":"--transparent-grey-16","grey-transparent-24":"--transparent-grey-24","grey-transparent-32":"--transparent-grey-32","grey-transparent-48":"--transparent-grey-48","grey2-transparent-8":"--transparent-grey2-8","grey2-transparent-12":"--transparent-grey2-12","grey2-transparent-16":"--transparent-grey2-16","grey2-transparent-24":"--transparent-grey2-24","grey2-transparent-32":"--transparent-grey2-32","grey2-transparent-48":"--transparent-grey2-48","white-transparent-8":"--transparent-white-8","white-transparent-12":"--transparent-white-12","white-transparent-16":"--transparent-white-16","white-transparent-24":"--transparent-white-24","white-transparent-32":"--transparent-white-32","white-transparent-48":"--transparent-white-48","black-transparent-8":"--transparent-black-8","black-transparent-12":"--transparent-black-12","black-transparent-16":"--transparent-black-16","black-transparent-24":"--transparent-black-24","black-transparent-32":"--transparent-black-32","black-transparent-48":"--transparent-black-48"};function OZe(e,t=document){if("undefined"==typeof window)return"";const r=t instanceof Document?t.documentElement:t,n=e in jZe?jZe[e]:e.startsWith("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(n).trim()}const EZe={"a-arrow-down":()=>Promise.resolve().then((function(){return j_})),"a-arrow-up":()=>Promise.resolve().then((function(){return E_})),"a-large-small":()=>Promise.resolve().then((function(){return C_})),accessibility:()=>Promise.resolve().then((function(){return R_})),activity:()=>Promise.resolve().then((function(){return L_})),"air-vent":()=>Promise.resolve().then((function(){return V_})),airplay:()=>Promise.resolve().then((function(){return S_})),"alarm-clock-check":()=>Promise.resolve().then((function(){return N_})),"alarm-clock-minus":()=>Promise.resolve().then((function(){return D_})),"alarm-clock-off":()=>Promise.resolve().then((function(){return F_})),"alarm-clock-plus":()=>Promise.resolve().then((function(){return W_})),"alarm-clock":()=>Promise.resolve().then((function(){return G_})),"alarm-smoke":()=>Promise.resolve().then((function(){return Y_})),album:()=>Promise.resolve().then((function(){return X_})),"align-center-horizontal":()=>Promise.resolve().then((function(){return J_})),"align-center-vertical":()=>Promise.resolve().then((function(){return tM})),"align-center":()=>Promise.resolve().then((function(){return nM})),"align-end-horizontal":()=>Promise.resolve().then((function(){return oM})),"align-end-vertical":()=>Promise.resolve().then((function(){return iM})),"align-horizontal-distribute-center":()=>Promise.resolve().then((function(){return cM})),"align-horizontal-distribute-end":()=>Promise.resolve().then((function(){return uM})),"align-horizontal-distribute-start":()=>Promise.resolve().then((function(){return pM})),"align-horizontal-justify-center":()=>Promise.resolve().then((function(){return vM})),"align-horizontal-justify-end":()=>Promise.resolve().then((function(){return yM})),"align-horizontal-justify-start":()=>Promise.resolve().then((function(){return kM})),"align-horizontal-space-around":()=>Promise.resolve().then((function(){return wM})),"align-horizontal-space-between":()=>Promise.resolve().then((function(){return _M})),"align-justify":()=>Promise.resolve().then((function(){return jM})),"align-left":()=>Promise.resolve().then((function(){return EM})),"align-right":()=>Promise.resolve().then((function(){return CM})),"align-start-horizontal":()=>Promise.resolve().then((function(){return RM})),"align-start-vertical":()=>Promise.resolve().then((function(){return LM})),"align-vertical-distribute-center":()=>Promise.resolve().then((function(){return VM})),"align-vertical-distribute-end":()=>Promise.resolve().then((function(){return SM})),"align-vertical-distribute-start":()=>Promise.resolve().then((function(){return NM})),"align-vertical-justify-center":()=>Promise.resolve().then((function(){return DM})),"align-vertical-justify-end":()=>Promise.resolve().then((function(){return FM})),"align-vertical-justify-start":()=>Promise.resolve().then((function(){return WM})),"align-vertical-space-around":()=>Promise.resolve().then((function(){return GM})),"align-vertical-space-between":()=>Promise.resolve().then((function(){return YM})),ambulance:()=>Promise.resolve().then((function(){return XM})),ampersand:()=>Promise.resolve().then((function(){return JM})),ampersands:()=>Promise.resolve().then((function(){return tj})),amphora:()=>Promise.resolve().then((function(){return nj})),anchor:()=>Promise.resolve().then((function(){return oj})),angry:()=>Promise.resolve().then((function(){return ij})),annoyed:()=>Promise.resolve().then((function(){return cj})),antenna:()=>Promise.resolve().then((function(){return uj})),anvil:()=>Promise.resolve().then((function(){return pj})),aperture:()=>Promise.resolve().then((function(){return vj})),"app-window-mac":()=>Promise.resolve().then((function(){return yj})),"app-window":()=>Promise.resolve().then((function(){return kj})),apple:()=>Promise.resolve().then((function(){return wj})),"archive-restore":()=>Promise.resolve().then((function(){return _j})),"archive-x":()=>Promise.resolve().then((function(){return jj})),archive:()=>Promise.resolve().then((function(){return Ej})),armchair:()=>Promise.resolve().then((function(){return Cj})),"arrow-big-down-dash":()=>Promise.resolve().then((function(){return Rj})),"arrow-big-down":()=>Promise.resolve().then((function(){return Lj})),"arrow-big-left-dash":()=>Promise.resolve().then((function(){return Vj})),"arrow-big-left":()=>Promise.resolve().then((function(){return Sj})),"arrow-big-right-dash":()=>Promise.resolve().then((function(){return Nj})),"arrow-big-right":()=>Promise.resolve().then((function(){return Dj})),"arrow-big-up-dash":()=>Promise.resolve().then((function(){return Fj})),"arrow-big-up":()=>Promise.resolve().then((function(){return Wj})),"arrow-down-0-1":()=>Promise.resolve().then((function(){return Gj})),"arrow-down-1-0":()=>Promise.resolve().then((function(){return Yj})),"arrow-down-a-z":()=>Promise.resolve().then((function(){return Xj})),"arrow-down-from-line":()=>Promise.resolve().then((function(){return Jj})),"arrow-down-left":()=>Promise.resolve().then((function(){return tO})),"arrow-down-narrow-wide":()=>Promise.resolve().then((function(){return nO})),"arrow-down-right":()=>Promise.resolve().then((function(){return oO})),"arrow-down-to-dot":()=>Promise.resolve().then((function(){return iO})),"arrow-down-to-line":()=>Promise.resolve().then((function(){return cO})),"arrow-down-up":()=>Promise.resolve().then((function(){return uO})),"arrow-down-wide-narrow":()=>Promise.resolve().then((function(){return pO})),"arrow-down-z-a":()=>Promise.resolve().then((function(){return vO})),"arrow-down":()=>Promise.resolve().then((function(){return yO})),"arrow-left-from-line":()=>Promise.resolve().then((function(){return kO})),"arrow-left-right":()=>Promise.resolve().then((function(){return wO})),"arrow-left-to-line":()=>Promise.resolve().then((function(){return _O})),"arrow-left":()=>Promise.resolve().then((function(){return jO})),"arrow-right-from-line":()=>Promise.resolve().then((function(){return EO})),"arrow-right-left":()=>Promise.resolve().then((function(){return CO})),"arrow-right-to-line":()=>Promise.resolve().then((function(){return RO})),"arrow-right":()=>Promise.resolve().then((function(){return LO})),"arrow-up-0-1":()=>Promise.resolve().then((function(){return VO})),"arrow-up-1-0":()=>Promise.resolve().then((function(){return SO})),"arrow-up-a-z":()=>Promise.resolve().then((function(){return NO})),"arrow-up-down":()=>Promise.resolve().then((function(){return DO})),"arrow-up-from-dot":()=>Promise.resolve().then((function(){return FO})),"arrow-up-from-line":()=>Promise.resolve().then((function(){return WO})),"arrow-up-left":()=>Promise.resolve().then((function(){return GO})),"arrow-up-narrow-wide":()=>Promise.resolve().then((function(){return YO})),"arrow-up-right":()=>Promise.resolve().then((function(){return XO})),"arrow-up-to-line":()=>Promise.resolve().then((function(){return JO})),"arrow-up-wide-narrow":()=>Promise.resolve().then((function(){return tE})),"arrow-up-z-a":()=>Promise.resolve().then((function(){return nE})),"arrow-up":()=>Promise.resolve().then((function(){return oE})),"arrows-up-from-line":()=>Promise.resolve().then((function(){return iE})),asterisk:()=>Promise.resolve().then((function(){return cE})),"at-sign":()=>Promise.resolve().then((function(){return uE})),atom:()=>Promise.resolve().then((function(){return pE})),"audio-lines":()=>Promise.resolve().then((function(){return vE})),"audio-waveform":()=>Promise.resolve().then((function(){return yE})),award:()=>Promise.resolve().then((function(){return kE})),axe:()=>Promise.resolve().then((function(){return wE})),"axis-3d":()=>Promise.resolve().then((function(){return _E})),baby:()=>Promise.resolve().then((function(){return jE})),backpack:()=>Promise.resolve().then((function(){return EE})),"badge-alert":()=>Promise.resolve().then((function(){return CE})),"badge-cent":()=>Promise.resolve().then((function(){return RE})),"badge-check":()=>Promise.resolve().then((function(){return LE})),"badge-dollar-sign":()=>Promise.resolve().then((function(){return VE})),"badge-euro":()=>Promise.resolve().then((function(){return SE})),"badge-help":()=>Promise.resolve().then((function(){return NE})),"badge-indian-rupee":()=>Promise.resolve().then((function(){return DE})),"badge-info":()=>Promise.resolve().then((function(){return FE})),"badge-japanese-yen":()=>Promise.resolve().then((function(){return WE})),"badge-minus":()=>Promise.resolve().then((function(){return GE})),"badge-percent":()=>Promise.resolve().then((function(){return YE})),"badge-plus":()=>Promise.resolve().then((function(){return XE})),"badge-pound-sterling":()=>Promise.resolve().then((function(){return JE})),"badge-russian-ruble":()=>Promise.resolve().then((function(){return tz})),"badge-swiss-franc":()=>Promise.resolve().then((function(){return nz})),"badge-x":()=>Promise.resolve().then((function(){return oz})),badge:()=>Promise.resolve().then((function(){return iz})),"baggage-claim":()=>Promise.resolve().then((function(){return cz})),ban:()=>Promise.resolve().then((function(){return uz})),banana:()=>Promise.resolve().then((function(){return pz})),bandage:()=>Promise.resolve().then((function(){return vz})),banknote:()=>Promise.resolve().then((function(){return yz})),barcode:()=>Promise.resolve().then((function(){return kz})),baseline:()=>Promise.resolve().then((function(){return wz})),bath:()=>Promise.resolve().then((function(){return _z})),"battery-charging":()=>Promise.resolve().then((function(){return jz})),"battery-full":()=>Promise.resolve().then((function(){return Ez})),"battery-low":()=>Promise.resolve().then((function(){return Cz})),"battery-medium":()=>Promise.resolve().then((function(){return Rz})),"battery-warning":()=>Promise.resolve().then((function(){return Lz})),battery:()=>Promise.resolve().then((function(){return Vz})),beaker:()=>Promise.resolve().then((function(){return Sz})),"bean-off":()=>Promise.resolve().then((function(){return Nz})),bean:()=>Promise.resolve().then((function(){return Dz})),"bed-double":()=>Promise.resolve().then((function(){return Fz})),"bed-single":()=>Promise.resolve().then((function(){return Wz})),bed:()=>Promise.resolve().then((function(){return Gz})),beef:()=>Promise.resolve().then((function(){return Yz})),"beer-off":()=>Promise.resolve().then((function(){return Xz})),beer:()=>Promise.resolve().then((function(){return Jz})),"bell-dot":()=>Promise.resolve().then((function(){return tC})),"bell-electric":()=>Promise.resolve().then((function(){return nC})),"bell-minus":()=>Promise.resolve().then((function(){return oC})),"bell-off":()=>Promise.resolve().then((function(){return iC})),"bell-plus":()=>Promise.resolve().then((function(){return cC})),"bell-ring":()=>Promise.resolve().then((function(){return uC})),bell:()=>Promise.resolve().then((function(){return pC})),"between-horizontal-end":()=>Promise.resolve().then((function(){return vC})),"between-horizontal-start":()=>Promise.resolve().then((function(){return yC})),"between-vertical-end":()=>Promise.resolve().then((function(){return kC})),"between-vertical-start":()=>Promise.resolve().then((function(){return wC})),"biceps-flexed":()=>Promise.resolve().then((function(){return _C})),bike:()=>Promise.resolve().then((function(){return jC})),binary:()=>Promise.resolve().then((function(){return EC})),binoculars:()=>Promise.resolve().then((function(){return CC})),biohazard:()=>Promise.resolve().then((function(){return RC})),bird:()=>Promise.resolve().then((function(){return LC})),bitcoin:()=>Promise.resolve().then((function(){return VC})),blend:()=>Promise.resolve().then((function(){return SC})),blinds:()=>Promise.resolve().then((function(){return NC})),blocks:()=>Promise.resolve().then((function(){return DC})),"bluetooth-connected":()=>Promise.resolve().then((function(){return FC})),"bluetooth-off":()=>Promise.resolve().then((function(){return WC})),"bluetooth-searching":()=>Promise.resolve().then((function(){return GC})),bluetooth:()=>Promise.resolve().then((function(){return YC})),bold:()=>Promise.resolve().then((function(){return XC})),bolt:()=>Promise.resolve().then((function(){return JC})),bomb:()=>Promise.resolve().then((function(){return tP})),bone:()=>Promise.resolve().then((function(){return nP})),"book-a":()=>Promise.resolve().then((function(){return oP})),"book-audio":()=>Promise.resolve().then((function(){return iP})),"book-check":()=>Promise.resolve().then((function(){return cP})),"book-copy":()=>Promise.resolve().then((function(){return uP})),"book-dashed":()=>Promise.resolve().then((function(){return pP})),"book-down":()=>Promise.resolve().then((function(){return vP})),"book-headphones":()=>Promise.resolve().then((function(){return yP})),"book-heart":()=>Promise.resolve().then((function(){return kP})),"book-image":()=>Promise.resolve().then((function(){return wP})),"book-key":()=>Promise.resolve().then((function(){return _P})),"book-lock":()=>Promise.resolve().then((function(){return jP})),"book-marked":()=>Promise.resolve().then((function(){return EP})),"book-minus":()=>Promise.resolve().then((function(){return CP})),"book-open-check":()=>Promise.resolve().then((function(){return RP})),"book-open-text":()=>Promise.resolve().then((function(){return LP})),"book-open":()=>Promise.resolve().then((function(){return VP})),"book-plus":()=>Promise.resolve().then((function(){return SP})),"book-text":()=>Promise.resolve().then((function(){return NP})),"book-type":()=>Promise.resolve().then((function(){return DP})),"book-up-2":()=>Promise.resolve().then((function(){return FP})),"book-up":()=>Promise.resolve().then((function(){return WP})),"book-user":()=>Promise.resolve().then((function(){return GP})),"book-x":()=>Promise.resolve().then((function(){return YP})),book:()=>Promise.resolve().then((function(){return XP})),"bookmark-check":()=>Promise.resolve().then((function(){return JP})),"bookmark-minus":()=>Promise.resolve().then((function(){return tR})),"bookmark-plus":()=>Promise.resolve().then((function(){return nR})),"bookmark-x":()=>Promise.resolve().then((function(){return oR})),bookmark:()=>Promise.resolve().then((function(){return iR})),"boom-box":()=>Promise.resolve().then((function(){return cR})),"bot-message-square":()=>Promise.resolve().then((function(){return uR})),"bot-off":()=>Promise.resolve().then((function(){return pR})),bot:()=>Promise.resolve().then((function(){return vR})),box:()=>Promise.resolve().then((function(){return yR})),boxes:()=>Promise.resolve().then((function(){return kR})),braces:()=>Promise.resolve().then((function(){return wR})),brackets:()=>Promise.resolve().then((function(){return _R})),"brain-circuit":()=>Promise.resolve().then((function(){return jR})),"brain-cog":()=>Promise.resolve().then((function(){return ER})),brain:()=>Promise.resolve().then((function(){return CR})),"brick-wall":()=>Promise.resolve().then((function(){return RR})),"briefcase-business":()=>Promise.resolve().then((function(){return LR})),"briefcase-conveyor-belt":()=>Promise.resolve().then((function(){return VR})),"briefcase-medical":()=>Promise.resolve().then((function(){return SR})),briefcase:()=>Promise.resolve().then((function(){return NR})),"bring-to-front":()=>Promise.resolve().then((function(){return DR})),brush:()=>Promise.resolve().then((function(){return FR})),"bug-off":()=>Promise.resolve().then((function(){return WR})),"bug-play":()=>Promise.resolve().then((function(){return GR})),bug:()=>Promise.resolve().then((function(){return YR})),"building-2":()=>Promise.resolve().then((function(){return XR})),building:()=>Promise.resolve().then((function(){return JR})),"bus-front":()=>Promise.resolve().then((function(){return tA})),bus:()=>Promise.resolve().then((function(){return nA})),"cable-car":()=>Promise.resolve().then((function(){return oA})),cable:()=>Promise.resolve().then((function(){return iA})),"cake-slice":()=>Promise.resolve().then((function(){return cA})),cake:()=>Promise.resolve().then((function(){return uA})),calculator:()=>Promise.resolve().then((function(){return pA})),"calendar-1":()=>Promise.resolve().then((function(){return vA})),"calendar-arrow-down":()=>Promise.resolve().then((function(){return yA})),"calendar-arrow-up":()=>Promise.resolve().then((function(){return kA})),"calendar-check-2":()=>Promise.resolve().then((function(){return wA})),"calendar-check":()=>Promise.resolve().then((function(){return _A})),"calendar-clock":()=>Promise.resolve().then((function(){return jA})),"calendar-cog":()=>Promise.resolve().then((function(){return EA})),"calendar-days":()=>Promise.resolve().then((function(){return CA})),"calendar-fold":()=>Promise.resolve().then((function(){return RA})),"calendar-heart":()=>Promise.resolve().then((function(){return LA})),"calendar-minus-2":()=>Promise.resolve().then((function(){return VA})),"calendar-minus":()=>Promise.resolve().then((function(){return SA})),"calendar-off":()=>Promise.resolve().then((function(){return NA})),"calendar-plus-2":()=>Promise.resolve().then((function(){return DA})),"calendar-plus":()=>Promise.resolve().then((function(){return FA})),"calendar-range":()=>Promise.resolve().then((function(){return WA})),"calendar-search":()=>Promise.resolve().then((function(){return GA})),"calendar-x-2":()=>Promise.resolve().then((function(){return YA})),"calendar-x":()=>Promise.resolve().then((function(){return XA})),calendar:()=>Promise.resolve().then((function(){return JA})),"camera-off":()=>Promise.resolve().then((function(){return tL})),camera:()=>Promise.resolve().then((function(){return nL})),"candy-cane":()=>Promise.resolve().then((function(){return oL})),"candy-off":()=>Promise.resolve().then((function(){return iL})),candy:()=>Promise.resolve().then((function(){return cL})),cannabis:()=>Promise.resolve().then((function(){return uL})),"captions-off":()=>Promise.resolve().then((function(){return pL})),captions:()=>Promise.resolve().then((function(){return vL})),"car-front":()=>Promise.resolve().then((function(){return yL})),"car-taxi-front":()=>Promise.resolve().then((function(){return kL})),car:()=>Promise.resolve().then((function(){return wL})),caravan:()=>Promise.resolve().then((function(){return _L})),carrot:()=>Promise.resolve().then((function(){return jL})),"case-lower":()=>Promise.resolve().then((function(){return EL})),"case-sensitive":()=>Promise.resolve().then((function(){return CL})),"case-upper":()=>Promise.resolve().then((function(){return RL})),"cassette-tape":()=>Promise.resolve().then((function(){return LL})),cast:()=>Promise.resolve().then((function(){return VL})),castle:()=>Promise.resolve().then((function(){return SL})),cat:()=>Promise.resolve().then((function(){return NL})),cctv:()=>Promise.resolve().then((function(){return DL})),"chart-area":()=>Promise.resolve().then((function(){return FL})),"chart-bar-big":()=>Promise.resolve().then((function(){return WL})),"chart-bar-decreasing":()=>Promise.resolve().then((function(){return GL})),"chart-bar-increasing":()=>Promise.resolve().then((function(){return YL})),"chart-bar-stacked":()=>Promise.resolve().then((function(){return XL})),"chart-bar":()=>Promise.resolve().then((function(){return JL})),"chart-candlestick":()=>Promise.resolve().then((function(){return tI})),"chart-column-big":()=>Promise.resolve().then((function(){return nI})),"chart-column-decreasing":()=>Promise.resolve().then((function(){return oI})),"chart-column-increasing":()=>Promise.resolve().then((function(){return iI})),"chart-column-stacked":()=>Promise.resolve().then((function(){return cI})),"chart-column":()=>Promise.resolve().then((function(){return uI})),"chart-gantt":()=>Promise.resolve().then((function(){return pI})),"chart-line":()=>Promise.resolve().then((function(){return vI})),"chart-network":()=>Promise.resolve().then((function(){return yI})),"chart-no-axes-column-decreasing":()=>Promise.resolve().then((function(){return kI})),"chart-no-axes-column-increasing":()=>Promise.resolve().then((function(){return wI})),"chart-no-axes-column":()=>Promise.resolve().then((function(){return _I})),"chart-no-axes-combined":()=>Promise.resolve().then((function(){return jI})),"chart-no-axes-gantt":()=>Promise.resolve().then((function(){return EI})),"chart-pie":()=>Promise.resolve().then((function(){return CI})),"chart-scatter":()=>Promise.resolve().then((function(){return RI})),"chart-spline":()=>Promise.resolve().then((function(){return LI})),"check-check":()=>Promise.resolve().then((function(){return VI})),check:()=>Promise.resolve().then((function(){return SI})),"chef-hat":()=>Promise.resolve().then((function(){return NI})),cherry:()=>Promise.resolve().then((function(){return DI})),"chevron-down":()=>Promise.resolve().then((function(){return FI})),"chevron-first":()=>Promise.resolve().then((function(){return WI})),"chevron-last":()=>Promise.resolve().then((function(){return GI})),"chevron-left":()=>Promise.resolve().then((function(){return YI})),"chevron-right":()=>Promise.resolve().then((function(){return XI})),"chevron-up":()=>Promise.resolve().then((function(){return JI})),"chevrons-down-up":()=>Promise.resolve().then((function(){return tV})),"chevrons-down":()=>Promise.resolve().then((function(){return nV})),"chevrons-left-right-ellipsis":()=>Promise.resolve().then((function(){return oV})),"chevrons-left-right":()=>Promise.resolve().then((function(){return iV})),"chevrons-left":()=>Promise.resolve().then((function(){return cV})),"chevrons-right-left":()=>Promise.resolve().then((function(){return uV})),"chevrons-right":()=>Promise.resolve().then((function(){return pV})),"chevrons-up-down":()=>Promise.resolve().then((function(){return vV})),"chevrons-up":()=>Promise.resolve().then((function(){return yV})),chrome:()=>Promise.resolve().then((function(){return kV})),church:()=>Promise.resolve().then((function(){return wV})),"cigarette-off":()=>Promise.resolve().then((function(){return _V})),cigarette:()=>Promise.resolve().then((function(){return jV})),"circle-alert":()=>Promise.resolve().then((function(){return EV})),"circle-arrow-down":()=>Promise.resolve().then((function(){return CV})),"circle-arrow-left":()=>Promise.resolve().then((function(){return RV})),"circle-arrow-out-down-left":()=>Promise.resolve().then((function(){return LV})),"circle-arrow-out-down-right":()=>Promise.resolve().then((function(){return VV})),"circle-arrow-out-up-left":()=>Promise.resolve().then((function(){return SV})),"circle-arrow-out-up-right":()=>Promise.resolve().then((function(){return NV})),"circle-arrow-right":()=>Promise.resolve().then((function(){return DV})),"circle-arrow-up":()=>Promise.resolve().then((function(){return FV})),"circle-check-big":()=>Promise.resolve().then((function(){return WV})),"circle-check":()=>Promise.resolve().then((function(){return GV})),"circle-chevron-down":()=>Promise.resolve().then((function(){return YV})),"circle-chevron-left":()=>Promise.resolve().then((function(){return XV})),"circle-chevron-right":()=>Promise.resolve().then((function(){return JV})),"circle-chevron-up":()=>Promise.resolve().then((function(){return tH})),"circle-dashed":()=>Promise.resolve().then((function(){return nH})),"circle-divide":()=>Promise.resolve().then((function(){return oH})),"circle-dollar-sign":()=>Promise.resolve().then((function(){return iH})),"circle-dot-dashed":()=>Promise.resolve().then((function(){return cH})),"circle-dot":()=>Promise.resolve().then((function(){return uH})),"circle-ellipsis":()=>Promise.resolve().then((function(){return pH})),"circle-equal":()=>Promise.resolve().then((function(){return vH})),"circle-fading-arrow-up":()=>Promise.resolve().then((function(){return yH})),"circle-fading-plus":()=>Promise.resolve().then((function(){return kH})),"circle-gauge":()=>Promise.resolve().then((function(){return wH})),"circle-help":()=>Promise.resolve().then((function(){return _H})),"circle-minus":()=>Promise.resolve().then((function(){return jH})),"circle-off":()=>Promise.resolve().then((function(){return EH})),"circle-parking-off":()=>Promise.resolve().then((function(){return CH})),"circle-parking":()=>Promise.resolve().then((function(){return RH})),"circle-pause":()=>Promise.resolve().then((function(){return LH})),"circle-percent":()=>Promise.resolve().then((function(){return VH})),"circle-play":()=>Promise.resolve().then((function(){return SH})),"circle-plus":()=>Promise.resolve().then((function(){return NH})),"circle-power":()=>Promise.resolve().then((function(){return DH})),"circle-slash-2":()=>Promise.resolve().then((function(){return FH})),"circle-slash":()=>Promise.resolve().then((function(){return WH})),"circle-stop":()=>Promise.resolve().then((function(){return GH})),"circle-user-round":()=>Promise.resolve().then((function(){return YH})),"circle-user":()=>Promise.resolve().then((function(){return XH})),"circle-x":()=>Promise.resolve().then((function(){return JH})),circle:()=>Promise.resolve().then((function(){return tS})),"circuit-board":()=>Promise.resolve().then((function(){return nS})),citrus:()=>Promise.resolve().then((function(){return oS})),clapperboard:()=>Promise.resolve().then((function(){return iS})),"clipboard-check":()=>Promise.resolve().then((function(){return cS})),"clipboard-copy":()=>Promise.resolve().then((function(){return uS})),"clipboard-list":()=>Promise.resolve().then((function(){return pS})),"clipboard-minus":()=>Promise.resolve().then((function(){return vS})),"clipboard-paste":()=>Promise.resolve().then((function(){return yS})),"clipboard-pen-line":()=>Promise.resolve().then((function(){return kS})),"clipboard-pen":()=>Promise.resolve().then((function(){return wS})),"clipboard-plus":()=>Promise.resolve().then((function(){return _S})),"clipboard-type":()=>Promise.resolve().then((function(){return jS})),"clipboard-x":()=>Promise.resolve().then((function(){return ES})),clipboard:()=>Promise.resolve().then((function(){return CS})),"clock-1":()=>Promise.resolve().then((function(){return RS})),"clock-10":()=>Promise.resolve().then((function(){return LS})),"clock-11":()=>Promise.resolve().then((function(){return VS})),"clock-12":()=>Promise.resolve().then((function(){return SS})),"clock-2":()=>Promise.resolve().then((function(){return NS})),"clock-3":()=>Promise.resolve().then((function(){return DS})),"clock-4":()=>Promise.resolve().then((function(){return FS})),"clock-5":()=>Promise.resolve().then((function(){return WS})),"clock-6":()=>Promise.resolve().then((function(){return GS})),"clock-7":()=>Promise.resolve().then((function(){return YS})),"clock-8":()=>Promise.resolve().then((function(){return XS})),"clock-9":()=>Promise.resolve().then((function(){return JS})),"clock-alert":()=>Promise.resolve().then((function(){return tZ})),"clock-arrow-down":()=>Promise.resolve().then((function(){return nZ})),"clock-arrow-up":()=>Promise.resolve().then((function(){return oZ})),clock:()=>Promise.resolve().then((function(){return iZ})),"cloud-alert":()=>Promise.resolve().then((function(){return cZ})),"cloud-cog":()=>Promise.resolve().then((function(){return uZ})),"cloud-download":()=>Promise.resolve().then((function(){return pZ})),"cloud-drizzle":()=>Promise.resolve().then((function(){return vZ})),"cloud-fog":()=>Promise.resolve().then((function(){return yZ})),"cloud-hail":()=>Promise.resolve().then((function(){return kZ})),"cloud-lightning":()=>Promise.resolve().then((function(){return wZ})),"cloud-moon-rain":()=>Promise.resolve().then((function(){return _Z})),"cloud-moon":()=>Promise.resolve().then((function(){return jZ})),"cloud-off":()=>Promise.resolve().then((function(){return EZ})),"cloud-rain-wind":()=>Promise.resolve().then((function(){return CZ})),"cloud-rain":()=>Promise.resolve().then((function(){return RZ})),"cloud-snow":()=>Promise.resolve().then((function(){return LZ})),"cloud-sun-rain":()=>Promise.resolve().then((function(){return VZ})),"cloud-sun":()=>Promise.resolve().then((function(){return SZ})),"cloud-upload":()=>Promise.resolve().then((function(){return NZ})),cloud:()=>Promise.resolve().then((function(){return DZ})),cloudy:()=>Promise.resolve().then((function(){return FZ})),clover:()=>Promise.resolve().then((function(){return WZ})),club:()=>Promise.resolve().then((function(){return GZ})),"code-xml":()=>Promise.resolve().then((function(){return YZ})),code:()=>Promise.resolve().then((function(){return XZ})),codepen:()=>Promise.resolve().then((function(){return JZ})),codesandbox:()=>Promise.resolve().then((function(){return tN})),coffee:()=>Promise.resolve().then((function(){return nN})),cog:()=>Promise.resolve().then((function(){return oN})),coins:()=>Promise.resolve().then((function(){return iN})),"columns-2":()=>Promise.resolve().then((function(){return cN})),"columns-3":()=>Promise.resolve().then((function(){return uN})),"columns-4":()=>Promise.resolve().then((function(){return pN})),combine:()=>Promise.resolve().then((function(){return vN})),command:()=>Promise.resolve().then((function(){return yN})),compass:()=>Promise.resolve().then((function(){return kN})),component:()=>Promise.resolve().then((function(){return wN})),computer:()=>Promise.resolve().then((function(){return _N})),"concierge-bell":()=>Promise.resolve().then((function(){return jN})),cone:()=>Promise.resolve().then((function(){return EN})),construction:()=>Promise.resolve().then((function(){return CN})),"contact-round":()=>Promise.resolve().then((function(){return RN})),contact:()=>Promise.resolve().then((function(){return LN})),container:()=>Promise.resolve().then((function(){return VN})),contrast:()=>Promise.resolve().then((function(){return SN})),cookie:()=>Promise.resolve().then((function(){return NN})),"cooking-pot":()=>Promise.resolve().then((function(){return DN})),"copy-check":()=>Promise.resolve().then((function(){return FN})),"copy-minus":()=>Promise.resolve().then((function(){return WN})),"copy-plus":()=>Promise.resolve().then((function(){return GN})),"copy-slash":()=>Promise.resolve().then((function(){return YN})),"copy-x":()=>Promise.resolve().then((function(){return XN})),copy:()=>Promise.resolve().then((function(){return JN})),copyleft:()=>Promise.resolve().then((function(){return tq})),copyright:()=>Promise.resolve().then((function(){return nq})),"corner-down-left":()=>Promise.resolve().then((function(){return oq})),"corner-down-right":()=>Promise.resolve().then((function(){return iq})),"corner-left-down":()=>Promise.resolve().then((function(){return cq})),"corner-left-up":()=>Promise.resolve().then((function(){return uq})),"corner-right-down":()=>Promise.resolve().then((function(){return pq})),"corner-right-up":()=>Promise.resolve().then((function(){return vq})),"corner-up-left":()=>Promise.resolve().then((function(){return yq})),"corner-up-right":()=>Promise.resolve().then((function(){return kq})),cpu:()=>Promise.resolve().then((function(){return wq})),"creative-commons":()=>Promise.resolve().then((function(){return _q})),"credit-card":()=>Promise.resolve().then((function(){return jq})),croissant:()=>Promise.resolve().then((function(){return Eq})),crop:()=>Promise.resolve().then((function(){return Cq})),cross:()=>Promise.resolve().then((function(){return Rq})),crosshair:()=>Promise.resolve().then((function(){return Lq})),crown:()=>Promise.resolve().then((function(){return Vq})),cuboid:()=>Promise.resolve().then((function(){return Sq})),"cup-soda":()=>Promise.resolve().then((function(){return Nq})),currency:()=>Promise.resolve().then((function(){return Dq})),cylinder:()=>Promise.resolve().then((function(){return Fq})),dam:()=>Promise.resolve().then((function(){return Wq})),"database-backup":()=>Promise.resolve().then((function(){return Gq})),"database-zap":()=>Promise.resolve().then((function(){return Yq})),database:()=>Promise.resolve().then((function(){return Xq})),delete:()=>Promise.resolve().then((function(){return Jq})),dessert:()=>Promise.resolve().then((function(){return tD})),diameter:()=>Promise.resolve().then((function(){return nD})),"diamond-minus":()=>Promise.resolve().then((function(){return oD})),"diamond-percent":()=>Promise.resolve().then((function(){return iD})),"diamond-plus":()=>Promise.resolve().then((function(){return cD})),diamond:()=>Promise.resolve().then((function(){return uD})),"dice-1":()=>Promise.resolve().then((function(){return pD})),"dice-2":()=>Promise.resolve().then((function(){return vD})),"dice-3":()=>Promise.resolve().then((function(){return yD})),"dice-4":()=>Promise.resolve().then((function(){return kD})),"dice-5":()=>Promise.resolve().then((function(){return wD})),"dice-6":()=>Promise.resolve().then((function(){return _D})),dices:()=>Promise.resolve().then((function(){return jD})),diff:()=>Promise.resolve().then((function(){return ED})),"disc-2":()=>Promise.resolve().then((function(){return CD})),"disc-3":()=>Promise.resolve().then((function(){return RD})),"disc-album":()=>Promise.resolve().then((function(){return LD})),disc:()=>Promise.resolve().then((function(){return VD})),divide:()=>Promise.resolve().then((function(){return SD})),"dna-off":()=>Promise.resolve().then((function(){return ND})),dna:()=>Promise.resolve().then((function(){return DD})),dock:()=>Promise.resolve().then((function(){return FD})),dog:()=>Promise.resolve().then((function(){return WD})),"dollar-sign":()=>Promise.resolve().then((function(){return GD})),donut:()=>Promise.resolve().then((function(){return YD})),"door-closed":()=>Promise.resolve().then((function(){return XD})),"door-open":()=>Promise.resolve().then((function(){return JD})),dot:()=>Promise.resolve().then((function(){return tB})),download:()=>Promise.resolve().then((function(){return nB})),"drafting-compass":()=>Promise.resolve().then((function(){return oB})),drama:()=>Promise.resolve().then((function(){return iB})),dribbble:()=>Promise.resolve().then((function(){return cB})),drill:()=>Promise.resolve().then((function(){return uB})),droplet:()=>Promise.resolve().then((function(){return pB})),droplets:()=>Promise.resolve().then((function(){return vB})),drum:()=>Promise.resolve().then((function(){return yB})),drumstick:()=>Promise.resolve().then((function(){return kB})),dumbbell:()=>Promise.resolve().then((function(){return wB})),"ear-off":()=>Promise.resolve().then((function(){return _B})),ear:()=>Promise.resolve().then((function(){return jB})),"earth-lock":()=>Promise.resolve().then((function(){return EB})),earth:()=>Promise.resolve().then((function(){return CB})),eclipse:()=>Promise.resolve().then((function(){return RB})),"egg-fried":()=>Promise.resolve().then((function(){return LB})),"egg-off":()=>Promise.resolve().then((function(){return VB})),egg:()=>Promise.resolve().then((function(){return SB})),"ellipsis-vertical":()=>Promise.resolve().then((function(){return NB})),ellipsis:()=>Promise.resolve().then((function(){return DB})),"equal-approximately":()=>Promise.resolve().then((function(){return FB})),"equal-not":()=>Promise.resolve().then((function(){return WB})),equal:()=>Promise.resolve().then((function(){return GB})),eraser:()=>Promise.resolve().then((function(){return YB})),"ethernet-port":()=>Promise.resolve().then((function(){return XB})),euro:()=>Promise.resolve().then((function(){return JB})),expand:()=>Promise.resolve().then((function(){return tF})),"external-link":()=>Promise.resolve().then((function(){return nF})),"eye-closed":()=>Promise.resolve().then((function(){return oF})),"eye-off":()=>Promise.resolve().then((function(){return iF})),eye:()=>Promise.resolve().then((function(){return cF})),facebook:()=>Promise.resolve().then((function(){return uF})),factory:()=>Promise.resolve().then((function(){return pF})),fan:()=>Promise.resolve().then((function(){return vF})),"fast-forward":()=>Promise.resolve().then((function(){return yF})),feather:()=>Promise.resolve().then((function(){return kF})),fence:()=>Promise.resolve().then((function(){return wF})),"ferris-wheel":()=>Promise.resolve().then((function(){return _F})),figma:()=>Promise.resolve().then((function(){return jF})),"file-archive":()=>Promise.resolve().then((function(){return EF})),"file-audio-2":()=>Promise.resolve().then((function(){return CF})),"file-audio":()=>Promise.resolve().then((function(){return RF})),"file-axis-3d":()=>Promise.resolve().then((function(){return LF})),"file-badge-2":()=>Promise.resolve().then((function(){return VF})),"file-badge":()=>Promise.resolve().then((function(){return SF})),"file-box":()=>Promise.resolve().then((function(){return NF})),"file-chart-column-increasing":()=>Promise.resolve().then((function(){return DF})),"file-chart-column":()=>Promise.resolve().then((function(){return FF})),"file-chart-line":()=>Promise.resolve().then((function(){return WF})),"file-chart-pie":()=>Promise.resolve().then((function(){return GF})),"file-check-2":()=>Promise.resolve().then((function(){return YF})),"file-check":()=>Promise.resolve().then((function(){return XF})),"file-clock":()=>Promise.resolve().then((function(){return JF})),"file-code-2":()=>Promise.resolve().then((function(){return tT})),"file-code":()=>Promise.resolve().then((function(){return nT})),"file-cog":()=>Promise.resolve().then((function(){return oT})),"file-diff":()=>Promise.resolve().then((function(){return iT})),"file-digit":()=>Promise.resolve().then((function(){return cT})),"file-down":()=>Promise.resolve().then((function(){return uT})),"file-heart":()=>Promise.resolve().then((function(){return pT})),"file-image":()=>Promise.resolve().then((function(){return vT})),"file-input":()=>Promise.resolve().then((function(){return yT})),"file-json-2":()=>Promise.resolve().then((function(){return kT})),"file-json":()=>Promise.resolve().then((function(){return wT})),"file-key-2":()=>Promise.resolve().then((function(){return _T})),"file-key":()=>Promise.resolve().then((function(){return jT})),"file-lock-2":()=>Promise.resolve().then((function(){return ET})),"file-lock":()=>Promise.resolve().then((function(){return CT})),"file-minus-2":()=>Promise.resolve().then((function(){return RT})),"file-minus":()=>Promise.resolve().then((function(){return LT})),"file-music":()=>Promise.resolve().then((function(){return VT})),"file-output":()=>Promise.resolve().then((function(){return ST})),"file-pen-line":()=>Promise.resolve().then((function(){return NT})),"file-pen":()=>Promise.resolve().then((function(){return DT})),"file-plus-2":()=>Promise.resolve().then((function(){return FT})),"file-plus":()=>Promise.resolve().then((function(){return WT})),"file-question":()=>Promise.resolve().then((function(){return GT})),"file-scan":()=>Promise.resolve().then((function(){return YT})),"file-search-2":()=>Promise.resolve().then((function(){return XT})),"file-search":()=>Promise.resolve().then((function(){return JT})),"file-sliders":()=>Promise.resolve().then((function(){return tW})),"file-spreadsheet":()=>Promise.resolve().then((function(){return nW})),"file-stack":()=>Promise.resolve().then((function(){return oW})),"file-symlink":()=>Promise.resolve().then((function(){return iW})),"file-terminal":()=>Promise.resolve().then((function(){return cW})),"file-text":()=>Promise.resolve().then((function(){return uW})),"file-type-2":()=>Promise.resolve().then((function(){return pW})),"file-type":()=>Promise.resolve().then((function(){return vW})),"file-up":()=>Promise.resolve().then((function(){return yW})),"file-user":()=>Promise.resolve().then((function(){return kW})),"file-video-2":()=>Promise.resolve().then((function(){return wW})),"file-video":()=>Promise.resolve().then((function(){return _W})),"file-volume-2":()=>Promise.resolve().then((function(){return jW})),"file-volume":()=>Promise.resolve().then((function(){return EW})),"file-warning":()=>Promise.resolve().then((function(){return CW})),"file-x-2":()=>Promise.resolve().then((function(){return RW})),"file-x":()=>Promise.resolve().then((function(){return LW})),file:()=>Promise.resolve().then((function(){return VW})),files:()=>Promise.resolve().then((function(){return SW})),film:()=>Promise.resolve().then((function(){return NW})),"filter-x":()=>Promise.resolve().then((function(){return DW})),filter:()=>Promise.resolve().then((function(){return FW})),fingerprint:()=>Promise.resolve().then((function(){return WW})),"fire-extinguisher":()=>Promise.resolve().then((function(){return GW})),"fish-off":()=>Promise.resolve().then((function(){return YW})),"fish-symbol":()=>Promise.resolve().then((function(){return XW})),fish:()=>Promise.resolve().then((function(){return JW})),"flag-off":()=>Promise.resolve().then((function(){return tU})),"flag-triangle-left":()=>Promise.resolve().then((function(){return nU})),"flag-triangle-right":()=>Promise.resolve().then((function(){return oU})),flag:()=>Promise.resolve().then((function(){return iU})),"flame-kindling":()=>Promise.resolve().then((function(){return cU})),flame:()=>Promise.resolve().then((function(){return uU})),"flashlight-off":()=>Promise.resolve().then((function(){return pU})),flashlight:()=>Promise.resolve().then((function(){return vU})),"flask-conical-off":()=>Promise.resolve().then((function(){return yU})),"flask-conical":()=>Promise.resolve().then((function(){return kU})),"flask-round":()=>Promise.resolve().then((function(){return wU})),"flip-horizontal-2":()=>Promise.resolve().then((function(){return _U})),"flip-horizontal":()=>Promise.resolve().then((function(){return jU})),"flip-vertical-2":()=>Promise.resolve().then((function(){return EU})),"flip-vertical":()=>Promise.resolve().then((function(){return CU})),"flower-2":()=>Promise.resolve().then((function(){return RU})),flower:()=>Promise.resolve().then((function(){return LU})),focus:()=>Promise.resolve().then((function(){return VU})),"fold-horizontal":()=>Promise.resolve().then((function(){return SU})),"fold-vertical":()=>Promise.resolve().then((function(){return NU})),"folder-archive":()=>Promise.resolve().then((function(){return DU})),"folder-check":()=>Promise.resolve().then((function(){return FU})),"folder-clock":()=>Promise.resolve().then((function(){return WU})),"folder-closed":()=>Promise.resolve().then((function(){return GU})),"folder-code":()=>Promise.resolve().then((function(){return YU})),"folder-cog":()=>Promise.resolve().then((function(){return XU})),"folder-dot":()=>Promise.resolve().then((function(){return JU})),"folder-down":()=>Promise.resolve().then((function(){return tG})),"folder-git-2":()=>Promise.resolve().then((function(){return nG})),"folder-git":()=>Promise.resolve().then((function(){return oG})),"folder-heart":()=>Promise.resolve().then((function(){return iG})),"folder-input":()=>Promise.resolve().then((function(){return cG})),"folder-kanban":()=>Promise.resolve().then((function(){return uG})),"folder-key":()=>Promise.resolve().then((function(){return pG})),"folder-lock":()=>Promise.resolve().then((function(){return vG})),"folder-minus":()=>Promise.resolve().then((function(){return yG})),"folder-open-dot":()=>Promise.resolve().then((function(){return kG})),"folder-open":()=>Promise.resolve().then((function(){return wG})),"folder-output":()=>Promise.resolve().then((function(){return _G})),"folder-pen":()=>Promise.resolve().then((function(){return jG})),"folder-plus":()=>Promise.resolve().then((function(){return EG})),"folder-root":()=>Promise.resolve().then((function(){return CG})),"folder-search-2":()=>Promise.resolve().then((function(){return RG})),"folder-search":()=>Promise.resolve().then((function(){return LG})),"folder-symlink":()=>Promise.resolve().then((function(){return VG})),"folder-sync":()=>Promise.resolve().then((function(){return SG})),"folder-tree":()=>Promise.resolve().then((function(){return NG})),"folder-up":()=>Promise.resolve().then((function(){return DG})),"folder-x":()=>Promise.resolve().then((function(){return FG})),folder:()=>Promise.resolve().then((function(){return WG})),folders:()=>Promise.resolve().then((function(){return GG})),footprints:()=>Promise.resolve().then((function(){return YG})),forklift:()=>Promise.resolve().then((function(){return XG})),forward:()=>Promise.resolve().then((function(){return JG})),frame:()=>Promise.resolve().then((function(){return t$})),framer:()=>Promise.resolve().then((function(){return n$})),frown:()=>Promise.resolve().then((function(){return o$})),fuel:()=>Promise.resolve().then((function(){return i$})),fullscreen:()=>Promise.resolve().then((function(){return c$})),"gallery-horizontal-end":()=>Promise.resolve().then((function(){return u$})),"gallery-horizontal":()=>Promise.resolve().then((function(){return p$})),"gallery-thumbnails":()=>Promise.resolve().then((function(){return v$})),"gallery-vertical-end":()=>Promise.resolve().then((function(){return y$})),"gallery-vertical":()=>Promise.resolve().then((function(){return k$})),"gamepad-2":()=>Promise.resolve().then((function(){return w$})),gamepad:()=>Promise.resolve().then((function(){return _$})),gauge:()=>Promise.resolve().then((function(){return j$})),gavel:()=>Promise.resolve().then((function(){return E$})),gem:()=>Promise.resolve().then((function(){return C$})),ghost:()=>Promise.resolve().then((function(){return R$})),gift:()=>Promise.resolve().then((function(){return L$})),"git-branch-plus":()=>Promise.resolve().then((function(){return V$})),"git-branch":()=>Promise.resolve().then((function(){return S$})),"git-commit-horizontal":()=>Promise.resolve().then((function(){return N$})),"git-commit-vertical":()=>Promise.resolve().then((function(){return D$})),"git-compare-arrows":()=>Promise.resolve().then((function(){return F$})),"git-compare":()=>Promise.resolve().then((function(){return W$})),"git-fork":()=>Promise.resolve().then((function(){return G$})),"git-graph":()=>Promise.resolve().then((function(){return Y$})),"git-merge":()=>Promise.resolve().then((function(){return X$})),"git-pull-request-arrow":()=>Promise.resolve().then((function(){return J$})),"git-pull-request-closed":()=>Promise.resolve().then((function(){return tY})),"git-pull-request-create-arrow":()=>Promise.resolve().then((function(){return nY})),"git-pull-request-create":()=>Promise.resolve().then((function(){return oY})),"git-pull-request-draft":()=>Promise.resolve().then((function(){return iY})),"git-pull-request":()=>Promise.resolve().then((function(){return cY})),github:()=>Promise.resolve().then((function(){return uY})),gitlab:()=>Promise.resolve().then((function(){return pY})),"glass-water":()=>Promise.resolve().then((function(){return vY})),glasses:()=>Promise.resolve().then((function(){return yY})),"globe-lock":()=>Promise.resolve().then((function(){return kY})),globe:()=>Promise.resolve().then((function(){return wY})),goal:()=>Promise.resolve().then((function(){return _Y})),grab:()=>Promise.resolve().then((function(){return jY})),"graduation-cap":()=>Promise.resolve().then((function(){return EY})),grape:()=>Promise.resolve().then((function(){return CY})),"grid-2x2-check":()=>Promise.resolve().then((function(){return RY})),"grid-2x2-plus":()=>Promise.resolve().then((function(){return LY})),"grid-2x2-x":()=>Promise.resolve().then((function(){return VY})),"grid-2x2":()=>Promise.resolve().then((function(){return SY})),"grid-3x3":()=>Promise.resolve().then((function(){return NY})),"grip-horizontal":()=>Promise.resolve().then((function(){return DY})),"grip-vertical":()=>Promise.resolve().then((function(){return FY})),grip:()=>Promise.resolve().then((function(){return WY})),group:()=>Promise.resolve().then((function(){return GY})),guitar:()=>Promise.resolve().then((function(){return YY})),ham:()=>Promise.resolve().then((function(){return XY})),hammer:()=>Promise.resolve().then((function(){return JY})),"hand-coins":()=>Promise.resolve().then((function(){return tK})),"hand-heart":()=>Promise.resolve().then((function(){return nK})),"hand-helping":()=>Promise.resolve().then((function(){return oK})),"hand-metal":()=>Promise.resolve().then((function(){return iK})),"hand-platter":()=>Promise.resolve().then((function(){return cK})),hand:()=>Promise.resolve().then((function(){return uK})),handshake:()=>Promise.resolve().then((function(){return pK})),"hard-drive-download":()=>Promise.resolve().then((function(){return vK})),"hard-drive-upload":()=>Promise.resolve().then((function(){return yK})),"hard-drive":()=>Promise.resolve().then((function(){return kK})),"hard-hat":()=>Promise.resolve().then((function(){return wK})),hash:()=>Promise.resolve().then((function(){return _K})),haze:()=>Promise.resolve().then((function(){return jK})),"hdmi-port":()=>Promise.resolve().then((function(){return EK})),"heading-1":()=>Promise.resolve().then((function(){return CK})),"heading-2":()=>Promise.resolve().then((function(){return RK})),"heading-3":()=>Promise.resolve().then((function(){return LK})),"heading-4":()=>Promise.resolve().then((function(){return VK})),"heading-5":()=>Promise.resolve().then((function(){return SK})),"heading-6":()=>Promise.resolve().then((function(){return NK})),heading:()=>Promise.resolve().then((function(){return DK})),"headphone-off":()=>Promise.resolve().then((function(){return FK})),headphones:()=>Promise.resolve().then((function(){return WK})),headset:()=>Promise.resolve().then((function(){return GK})),"heart-crack":()=>Promise.resolve().then((function(){return YK})),"heart-handshake":()=>Promise.resolve().then((function(){return XK})),"heart-off":()=>Promise.resolve().then((function(){return JK})),"heart-pulse":()=>Promise.resolve().then((function(){return tX})),heart:()=>Promise.resolve().then((function(){return nX})),heater:()=>Promise.resolve().then((function(){return oX})),hexagon:()=>Promise.resolve().then((function(){return iX})),highlighter:()=>Promise.resolve().then((function(){return cX})),history:()=>Promise.resolve().then((function(){return uX})),"hop-off":()=>Promise.resolve().then((function(){return pX})),hop:()=>Promise.resolve().then((function(){return vX})),hospital:()=>Promise.resolve().then((function(){return yX})),hotel:()=>Promise.resolve().then((function(){return kX})),hourglass:()=>Promise.resolve().then((function(){return wX})),"house-plug":()=>Promise.resolve().then((function(){return _X})),"house-plus":()=>Promise.resolve().then((function(){return jX})),house:()=>Promise.resolve().then((function(){return EX})),"ice-cream-bowl":()=>Promise.resolve().then((function(){return CX})),"ice-cream-cone":()=>Promise.resolve().then((function(){return RX})),"id-card":()=>Promise.resolve().then((function(){return LX})),"image-down":()=>Promise.resolve().then((function(){return VX})),"image-minus":()=>Promise.resolve().then((function(){return SX})),"image-off":()=>Promise.resolve().then((function(){return NX})),"image-play":()=>Promise.resolve().then((function(){return DX})),"image-plus":()=>Promise.resolve().then((function(){return FX})),"image-up":()=>Promise.resolve().then((function(){return WX})),image:()=>Promise.resolve().then((function(){return GX})),images:()=>Promise.resolve().then((function(){return YX})),import:()=>Promise.resolve().then((function(){return XX})),inbox:()=>Promise.resolve().then((function(){return JX})),"indent-decrease":()=>Promise.resolve().then((function(){return tQ})),"indent-increase":()=>Promise.resolve().then((function(){return nQ})),"indian-rupee":()=>Promise.resolve().then((function(){return oQ})),infinity:()=>Promise.resolve().then((function(){return iQ})),info:()=>Promise.resolve().then((function(){return cQ})),"inspection-panel":()=>Promise.resolve().then((function(){return uQ})),instagram:()=>Promise.resolve().then((function(){return pQ})),italic:()=>Promise.resolve().then((function(){return vQ})),"iteration-ccw":()=>Promise.resolve().then((function(){return yQ})),"iteration-cw":()=>Promise.resolve().then((function(){return kQ})),"japanese-yen":()=>Promise.resolve().then((function(){return wQ})),joystick:()=>Promise.resolve().then((function(){return _Q})),kanban:()=>Promise.resolve().then((function(){return jQ})),"key-round":()=>Promise.resolve().then((function(){return EQ})),"key-square":()=>Promise.resolve().then((function(){return CQ})),key:()=>Promise.resolve().then((function(){return RQ})),"keyboard-music":()=>Promise.resolve().then((function(){return LQ})),"keyboard-off":()=>Promise.resolve().then((function(){return VQ})),keyboard:()=>Promise.resolve().then((function(){return SQ})),"lamp-ceiling":()=>Promise.resolve().then((function(){return NQ})),"lamp-desk":()=>Promise.resolve().then((function(){return DQ})),"lamp-floor":()=>Promise.resolve().then((function(){return FQ})),"lamp-wall-down":()=>Promise.resolve().then((function(){return WQ})),"lamp-wall-up":()=>Promise.resolve().then((function(){return GQ})),lamp:()=>Promise.resolve().then((function(){return YQ})),"land-plot":()=>Promise.resolve().then((function(){return XQ})),landmark:()=>Promise.resolve().then((function(){return JQ})),languages:()=>Promise.resolve().then((function(){return tJ})),"laptop-minimal-check":()=>Promise.resolve().then((function(){return nJ})),"laptop-minimal":()=>Promise.resolve().then((function(){return oJ})),laptop:()=>Promise.resolve().then((function(){return iJ})),"lasso-select":()=>Promise.resolve().then((function(){return cJ})),lasso:()=>Promise.resolve().then((function(){return uJ})),laugh:()=>Promise.resolve().then((function(){return pJ})),"layers-2":()=>Promise.resolve().then((function(){return vJ})),"layers-3":()=>Promise.resolve().then((function(){return yJ})),layers:()=>Promise.resolve().then((function(){return kJ})),"layout-dashboard":()=>Promise.resolve().then((function(){return wJ})),"layout-grid":()=>Promise.resolve().then((function(){return _J})),"layout-list":()=>Promise.resolve().then((function(){return jJ})),"layout-panel-left":()=>Promise.resolve().then((function(){return EJ})),"layout-panel-top":()=>Promise.resolve().then((function(){return CJ})),"layout-template":()=>Promise.resolve().then((function(){return RJ})),leaf:()=>Promise.resolve().then((function(){return LJ})),"leafy-green":()=>Promise.resolve().then((function(){return VJ})),lectern:()=>Promise.resolve().then((function(){return SJ})),"letter-text":()=>Promise.resolve().then((function(){return NJ})),"library-big":()=>Promise.resolve().then((function(){return DJ})),library:()=>Promise.resolve().then((function(){return FJ})),"life-buoy":()=>Promise.resolve().then((function(){return WJ})),ligature:()=>Promise.resolve().then((function(){return GJ})),"lightbulb-off":()=>Promise.resolve().then((function(){return YJ})),lightbulb:()=>Promise.resolve().then((function(){return XJ})),"link-2-off":()=>Promise.resolve().then((function(){return JJ})),"link-2":()=>Promise.resolve().then((function(){return t1})),link:()=>Promise.resolve().then((function(){return n1})),linkedin:()=>Promise.resolve().then((function(){return o1})),"list-check":()=>Promise.resolve().then((function(){return i1})),"list-checks":()=>Promise.resolve().then((function(){return c1})),"list-collapse":()=>Promise.resolve().then((function(){return u1})),"list-end":()=>Promise.resolve().then((function(){return p1})),"list-filter":()=>Promise.resolve().then((function(){return v1})),"list-minus":()=>Promise.resolve().then((function(){return y1})),"list-music":()=>Promise.resolve().then((function(){return k1})),"list-ordered":()=>Promise.resolve().then((function(){return w1})),"list-plus":()=>Promise.resolve().then((function(){return _1})),"list-restart":()=>Promise.resolve().then((function(){return j1})),"list-start":()=>Promise.resolve().then((function(){return E1})),"list-todo":()=>Promise.resolve().then((function(){return C1})),"list-tree":()=>Promise.resolve().then((function(){return R1})),"list-video":()=>Promise.resolve().then((function(){return L1})),"list-x":()=>Promise.resolve().then((function(){return V1})),list:()=>Promise.resolve().then((function(){return S1})),"loader-circle":()=>Promise.resolve().then((function(){return N1})),"loader-pinwheel":()=>Promise.resolve().then((function(){return D1})),loader:()=>Promise.resolve().then((function(){return F1})),"locate-fixed":()=>Promise.resolve().then((function(){return W1})),"locate-off":()=>Promise.resolve().then((function(){return G1})),locate:()=>Promise.resolve().then((function(){return Y1})),"lock-keyhole-open":()=>Promise.resolve().then((function(){return X1})),"lock-keyhole":()=>Promise.resolve().then((function(){return J1})),"lock-open":()=>Promise.resolve().then((function(){return t0})),lock:()=>Promise.resolve().then((function(){return n0})),"log-in":()=>Promise.resolve().then((function(){return o0})),"log-out":()=>Promise.resolve().then((function(){return i0})),logs:()=>Promise.resolve().then((function(){return c0})),lollipop:()=>Promise.resolve().then((function(){return u0})),luggage:()=>Promise.resolve().then((function(){return p0})),magnet:()=>Promise.resolve().then((function(){return v0})),"mail-check":()=>Promise.resolve().then((function(){return y0})),"mail-minus":()=>Promise.resolve().then((function(){return k0})),"mail-open":()=>Promise.resolve().then((function(){return w0})),"mail-plus":()=>Promise.resolve().then((function(){return _0})),"mail-question":()=>Promise.resolve().then((function(){return j0})),"mail-search":()=>Promise.resolve().then((function(){return E0})),"mail-warning":()=>Promise.resolve().then((function(){return C0})),"mail-x":()=>Promise.resolve().then((function(){return R0})),mail:()=>Promise.resolve().then((function(){return L0})),mailbox:()=>Promise.resolve().then((function(){return V0})),mails:()=>Promise.resolve().then((function(){return S0})),"map-pin-check-inside":()=>Promise.resolve().then((function(){return N0})),"map-pin-check":()=>Promise.resolve().then((function(){return D0})),"map-pin-house":()=>Promise.resolve().then((function(){return F0})),"map-pin-minus-inside":()=>Promise.resolve().then((function(){return W0})),"map-pin-minus":()=>Promise.resolve().then((function(){return G0})),"map-pin-off":()=>Promise.resolve().then((function(){return Y0})),"map-pin-plus-inside":()=>Promise.resolve().then((function(){return X0})),"map-pin-plus":()=>Promise.resolve().then((function(){return J0})),"map-pin-x-inside":()=>Promise.resolve().then((function(){return t2})),"map-pin-x":()=>Promise.resolve().then((function(){return n2})),"map-pin":()=>Promise.resolve().then((function(){return o2})),"map-pinned":()=>Promise.resolve().then((function(){return i2})),map:()=>Promise.resolve().then((function(){return c2})),martini:()=>Promise.resolve().then((function(){return u2})),"maximize-2":()=>Promise.resolve().then((function(){return p2})),maximize:()=>Promise.resolve().then((function(){return v2})),medal:()=>Promise.resolve().then((function(){return y2})),"megaphone-off":()=>Promise.resolve().then((function(){return k2})),megaphone:()=>Promise.resolve().then((function(){return w2})),meh:()=>Promise.resolve().then((function(){return _2})),"memory-stick":()=>Promise.resolve().then((function(){return j2})),menu:()=>Promise.resolve().then((function(){return E2})),merge:()=>Promise.resolve().then((function(){return C2})),"message-circle-code":()=>Promise.resolve().then((function(){return R2})),"message-circle-dashed":()=>Promise.resolve().then((function(){return L2})),"message-circle-heart":()=>Promise.resolve().then((function(){return V2})),"message-circle-more":()=>Promise.resolve().then((function(){return S2})),"message-circle-off":()=>Promise.resolve().then((function(){return N2})),"message-circle-plus":()=>Promise.resolve().then((function(){return D2})),"message-circle-question":()=>Promise.resolve().then((function(){return F2})),"message-circle-reply":()=>Promise.resolve().then((function(){return W2})),"message-circle-warning":()=>Promise.resolve().then((function(){return G2})),"message-circle-x":()=>Promise.resolve().then((function(){return Y2})),"message-circle":()=>Promise.resolve().then((function(){return X2})),"message-square-code":()=>Promise.resolve().then((function(){return J2})),"message-square-dashed":()=>Promise.resolve().then((function(){return t5})),"message-square-diff":()=>Promise.resolve().then((function(){return n5})),"message-square-dot":()=>Promise.resolve().then((function(){return o5})),"message-square-heart":()=>Promise.resolve().then((function(){return i5})),"message-square-lock":()=>Promise.resolve().then((function(){return c5})),"message-square-more":()=>Promise.resolve().then((function(){return u5})),"message-square-off":()=>Promise.resolve().then((function(){return p5})),"message-square-plus":()=>Promise.resolve().then((function(){return v5})),"message-square-quote":()=>Promise.resolve().then((function(){return y5})),"message-square-reply":()=>Promise.resolve().then((function(){return k5})),"message-square-share":()=>Promise.resolve().then((function(){return w5})),"message-square-text":()=>Promise.resolve().then((function(){return _5})),"message-square-warning":()=>Promise.resolve().then((function(){return j5})),"message-square-x":()=>Promise.resolve().then((function(){return E5})),"message-square":()=>Promise.resolve().then((function(){return C5})),"messages-square":()=>Promise.resolve().then((function(){return R5})),"mic-off":()=>Promise.resolve().then((function(){return L5})),"mic-vocal":()=>Promise.resolve().then((function(){return V5})),mic:()=>Promise.resolve().then((function(){return S5})),microchip:()=>Promise.resolve().then((function(){return N5})),microscope:()=>Promise.resolve().then((function(){return D5})),microwave:()=>Promise.resolve().then((function(){return F5})),milestone:()=>Promise.resolve().then((function(){return W5})),"milk-off":()=>Promise.resolve().then((function(){return G5})),milk:()=>Promise.resolve().then((function(){return Y5})),"minimize-2":()=>Promise.resolve().then((function(){return X5})),minimize:()=>Promise.resolve().then((function(){return J5})),minus:()=>Promise.resolve().then((function(){return t7})),"monitor-check":()=>Promise.resolve().then((function(){return n7})),"monitor-cog":()=>Promise.resolve().then((function(){return o7})),"monitor-dot":()=>Promise.resolve().then((function(){return i7})),"monitor-down":()=>Promise.resolve().then((function(){return c7})),"monitor-off":()=>Promise.resolve().then((function(){return u7})),"monitor-pause":()=>Promise.resolve().then((function(){return p7})),"monitor-play":()=>Promise.resolve().then((function(){return v7})),"monitor-smartphone":()=>Promise.resolve().then((function(){return y7})),"monitor-speaker":()=>Promise.resolve().then((function(){return k7})),"monitor-stop":()=>Promise.resolve().then((function(){return w7})),"monitor-up":()=>Promise.resolve().then((function(){return _7})),"monitor-x":()=>Promise.resolve().then((function(){return j7})),monitor:()=>Promise.resolve().then((function(){return E7})),"moon-star":()=>Promise.resolve().then((function(){return C7})),moon:()=>Promise.resolve().then((function(){return R7})),"mountain-snow":()=>Promise.resolve().then((function(){return L7})),mountain:()=>Promise.resolve().then((function(){return V7})),"mouse-off":()=>Promise.resolve().then((function(){return S7})),"mouse-pointer-2":()=>Promise.resolve().then((function(){return N7})),"mouse-pointer-ban":()=>Promise.resolve().then((function(){return D7})),"mouse-pointer-click":()=>Promise.resolve().then((function(){return F7})),"mouse-pointer":()=>Promise.resolve().then((function(){return W7})),mouse:()=>Promise.resolve().then((function(){return G7})),"move-3d":()=>Promise.resolve().then((function(){return Y7})),"move-diagonal-2":()=>Promise.resolve().then((function(){return X7})),"move-diagonal":()=>Promise.resolve().then((function(){return J7})),"move-down-left":()=>Promise.resolve().then((function(){return t4})),"move-down-right":()=>Promise.resolve().then((function(){return n4})),"move-down":()=>Promise.resolve().then((function(){return o4})),"move-horizontal":()=>Promise.resolve().then((function(){return i4})),"move-left":()=>Promise.resolve().then((function(){return c4})),"move-right":()=>Promise.resolve().then((function(){return u4})),"move-up-left":()=>Promise.resolve().then((function(){return p4})),"move-up-right":()=>Promise.resolve().then((function(){return v4})),"move-up":()=>Promise.resolve().then((function(){return y4})),"move-vertical":()=>Promise.resolve().then((function(){return k4})),move:()=>Promise.resolve().then((function(){return w4})),"music-2":()=>Promise.resolve().then((function(){return _4})),"music-3":()=>Promise.resolve().then((function(){return j4})),"music-4":()=>Promise.resolve().then((function(){return E4})),music:()=>Promise.resolve().then((function(){return C4})),"navigation-2-off":()=>Promise.resolve().then((function(){return R4})),"navigation-2":()=>Promise.resolve().then((function(){return L4})),"navigation-off":()=>Promise.resolve().then((function(){return V4})),navigation:()=>Promise.resolve().then((function(){return S4})),network:()=>Promise.resolve().then((function(){return N4})),newspaper:()=>Promise.resolve().then((function(){return D4})),nfc:()=>Promise.resolve().then((function(){return F4})),"notebook-pen":()=>Promise.resolve().then((function(){return W4})),"notebook-tabs":()=>Promise.resolve().then((function(){return G4})),"notebook-text":()=>Promise.resolve().then((function(){return Y4})),notebook:()=>Promise.resolve().then((function(){return X4})),"notepad-text-dashed":()=>Promise.resolve().then((function(){return J4})),"notepad-text":()=>Promise.resolve().then((function(){return t3})),"nut-off":()=>Promise.resolve().then((function(){return n3})),nut:()=>Promise.resolve().then((function(){return o3})),"octagon-alert":()=>Promise.resolve().then((function(){return i3})),"octagon-minus":()=>Promise.resolve().then((function(){return c3})),"octagon-pause":()=>Promise.resolve().then((function(){return u3})),"octagon-x":()=>Promise.resolve().then((function(){return p3})),octagon:()=>Promise.resolve().then((function(){return v3})),omega:()=>Promise.resolve().then((function(){return y3})),option:()=>Promise.resolve().then((function(){return k3})),orbit:()=>Promise.resolve().then((function(){return w3})),origami:()=>Promise.resolve().then((function(){return _3})),"package-2":()=>Promise.resolve().then((function(){return j3})),"package-check":()=>Promise.resolve().then((function(){return E3})),"package-minus":()=>Promise.resolve().then((function(){return C3})),"package-open":()=>Promise.resolve().then((function(){return R3})),"package-plus":()=>Promise.resolve().then((function(){return L3})),"package-search":()=>Promise.resolve().then((function(){return V3})),"package-x":()=>Promise.resolve().then((function(){return S3})),package:()=>Promise.resolve().then((function(){return N3})),"paint-bucket":()=>Promise.resolve().then((function(){return D3})),"paint-roller":()=>Promise.resolve().then((function(){return F3})),"paintbrush-vertical":()=>Promise.resolve().then((function(){return W3})),paintbrush:()=>Promise.resolve().then((function(){return G3})),palette:()=>Promise.resolve().then((function(){return Y3})),"panel-bottom-close":()=>Promise.resolve().then((function(){return X3})),"panel-bottom-dashed":()=>Promise.resolve().then((function(){return J3})),"panel-bottom-open":()=>Promise.resolve().then((function(){return t6})),"panel-bottom":()=>Promise.resolve().then((function(){return n6})),"panel-left-close":()=>Promise.resolve().then((function(){return o6})),"panel-left-dashed":()=>Promise.resolve().then((function(){return i6})),"panel-left-open":()=>Promise.resolve().then((function(){return c6})),"panel-left":()=>Promise.resolve().then((function(){return u6})),"panel-right-close":()=>Promise.resolve().then((function(){return p6})),"panel-right-dashed":()=>Promise.resolve().then((function(){return v6})),"panel-right-open":()=>Promise.resolve().then((function(){return y6})),"panel-right":()=>Promise.resolve().then((function(){return k6})),"panel-top-close":()=>Promise.resolve().then((function(){return w6})),"panel-top-dashed":()=>Promise.resolve().then((function(){return _6})),"panel-top-open":()=>Promise.resolve().then((function(){return j6})),"panel-top":()=>Promise.resolve().then((function(){return E6})),"panels-left-bottom":()=>Promise.resolve().then((function(){return C6})),"panels-right-bottom":()=>Promise.resolve().then((function(){return R6})),"panels-top-left":()=>Promise.resolve().then((function(){return L6})),paperclip:()=>Promise.resolve().then((function(){return V6})),parentheses:()=>Promise.resolve().then((function(){return S6})),"parking-meter":()=>Promise.resolve().then((function(){return N6})),"party-popper":()=>Promise.resolve().then((function(){return D6})),pause:()=>Promise.resolve().then((function(){return F6})),"paw-print":()=>Promise.resolve().then((function(){return W6})),"pc-case":()=>Promise.resolve().then((function(){return G6})),"pen-line":()=>Promise.resolve().then((function(){return Y6})),"pen-off":()=>Promise.resolve().then((function(){return X6})),"pen-tool":()=>Promise.resolve().then((function(){return J6})),pen:()=>Promise.resolve().then((function(){return t8})),"pencil-line":()=>Promise.resolve().then((function(){return n8})),"pencil-off":()=>Promise.resolve().then((function(){return o8})),"pencil-ruler":()=>Promise.resolve().then((function(){return i8})),pencil:()=>Promise.resolve().then((function(){return c8})),pentagon:()=>Promise.resolve().then((function(){return u8})),percent:()=>Promise.resolve().then((function(){return p8})),"person-standing":()=>Promise.resolve().then((function(){return v8})),"philippine-peso":()=>Promise.resolve().then((function(){return y8})),"phone-call":()=>Promise.resolve().then((function(){return k8})),"phone-forwarded":()=>Promise.resolve().then((function(){return w8})),"phone-incoming":()=>Promise.resolve().then((function(){return _8})),"phone-missed":()=>Promise.resolve().then((function(){return j8})),"phone-off":()=>Promise.resolve().then((function(){return E8})),"phone-outgoing":()=>Promise.resolve().then((function(){return C8})),phone:()=>Promise.resolve().then((function(){return R8})),pi:()=>Promise.resolve().then((function(){return L8})),piano:()=>Promise.resolve().then((function(){return V8})),pickaxe:()=>Promise.resolve().then((function(){return S8})),"picture-in-picture-2":()=>Promise.resolve().then((function(){return N8})),"picture-in-picture":()=>Promise.resolve().then((function(){return D8})),"piggy-bank":()=>Promise.resolve().then((function(){return F8})),"pilcrow-left":()=>Promise.resolve().then((function(){return W8})),"pilcrow-right":()=>Promise.resolve().then((function(){return G8})),pilcrow:()=>Promise.resolve().then((function(){return Y8})),"pill-bottle":()=>Promise.resolve().then((function(){return X8})),pill:()=>Promise.resolve().then((function(){return J8})),"pin-off":()=>Promise.resolve().then((function(){return t9})),pin:()=>Promise.resolve().then((function(){return n9})),pipette:()=>Promise.resolve().then((function(){return o9})),pizza:()=>Promise.resolve().then((function(){return i9})),"plane-landing":()=>Promise.resolve().then((function(){return c9})),"plane-takeoff":()=>Promise.resolve().then((function(){return u9})),plane:()=>Promise.resolve().then((function(){return p9})),play:()=>Promise.resolve().then((function(){return v9})),"plug-2":()=>Promise.resolve().then((function(){return y9})),"plug-zap":()=>Promise.resolve().then((function(){return k9})),plug:()=>Promise.resolve().then((function(){return w9})),plus:()=>Promise.resolve().then((function(){return _9})),"pocket-knife":()=>Promise.resolve().then((function(){return j9})),pocket:()=>Promise.resolve().then((function(){return E9})),podcast:()=>Promise.resolve().then((function(){return C9})),"pointer-off":()=>Promise.resolve().then((function(){return R9})),pointer:()=>Promise.resolve().then((function(){return L9})),popcorn:()=>Promise.resolve().then((function(){return V9})),popsicle:()=>Promise.resolve().then((function(){return S9})),"pound-sterling":()=>Promise.resolve().then((function(){return N9})),"power-off":()=>Promise.resolve().then((function(){return D9})),power:()=>Promise.resolve().then((function(){return F9})),presentation:()=>Promise.resolve().then((function(){return W9})),"printer-check":()=>Promise.resolve().then((function(){return G9})),printer:()=>Promise.resolve().then((function(){return Y9})),projector:()=>Promise.resolve().then((function(){return X9})),proportions:()=>Promise.resolve().then((function(){return J9})),puzzle:()=>Promise.resolve().then((function(){return tee})),pyramid:()=>Promise.resolve().then((function(){return nee})),"qr-code":()=>Promise.resolve().then((function(){return oee})),quote:()=>Promise.resolve().then((function(){return iee})),rabbit:()=>Promise.resolve().then((function(){return cee})),radar:()=>Promise.resolve().then((function(){return uee})),radiation:()=>Promise.resolve().then((function(){return pee})),radical:()=>Promise.resolve().then((function(){return vee})),"radio-receiver":()=>Promise.resolve().then((function(){return yee})),"radio-tower":()=>Promise.resolve().then((function(){return kee})),radio:()=>Promise.resolve().then((function(){return wee})),radius:()=>Promise.resolve().then((function(){return _ee})),"rail-symbol":()=>Promise.resolve().then((function(){return jee})),rainbow:()=>Promise.resolve().then((function(){return Eee})),rat:()=>Promise.resolve().then((function(){return Cee})),ratio:()=>Promise.resolve().then((function(){return Ree})),"receipt-cent":()=>Promise.resolve().then((function(){return Lee})),"receipt-euro":()=>Promise.resolve().then((function(){return Vee})),"receipt-indian-rupee":()=>Promise.resolve().then((function(){return See})),"receipt-japanese-yen":()=>Promise.resolve().then((function(){return Nee})),"receipt-pound-sterling":()=>Promise.resolve().then((function(){return Dee})),"receipt-russian-ruble":()=>Promise.resolve().then((function(){return Fee})),"receipt-swiss-franc":()=>Promise.resolve().then((function(){return Wee})),"receipt-text":()=>Promise.resolve().then((function(){return Gee})),receipt:()=>Promise.resolve().then((function(){return Yee})),"rectangle-ellipsis":()=>Promise.resolve().then((function(){return Xee})),"rectangle-horizontal":()=>Promise.resolve().then((function(){return Jee})),"rectangle-vertical":()=>Promise.resolve().then((function(){return tte})),recycle:()=>Promise.resolve().then((function(){return nte})),"redo-2":()=>Promise.resolve().then((function(){return ote})),"redo-dot":()=>Promise.resolve().then((function(){return ite})),redo:()=>Promise.resolve().then((function(){return cte})),"refresh-ccw-dot":()=>Promise.resolve().then((function(){return ute})),"refresh-ccw":()=>Promise.resolve().then((function(){return pte})),"refresh-cw-off":()=>Promise.resolve().then((function(){return vte})),"refresh-cw":()=>Promise.resolve().then((function(){return yte})),refrigerator:()=>Promise.resolve().then((function(){return kte})),regex:()=>Promise.resolve().then((function(){return wte})),"remove-formatting":()=>Promise.resolve().then((function(){return _te})),"repeat-1":()=>Promise.resolve().then((function(){return jte})),"repeat-2":()=>Promise.resolve().then((function(){return Ete})),repeat:()=>Promise.resolve().then((function(){return Cte})),"replace-all":()=>Promise.resolve().then((function(){return Rte})),replace:()=>Promise.resolve().then((function(){return Lte})),"reply-all":()=>Promise.resolve().then((function(){return Vte})),reply:()=>Promise.resolve().then((function(){return Ste})),rewind:()=>Promise.resolve().then((function(){return Nte})),ribbon:()=>Promise.resolve().then((function(){return Dte})),rocket:()=>Promise.resolve().then((function(){return Fte})),"rocking-chair":()=>Promise.resolve().then((function(){return Wte})),"roller-coaster":()=>Promise.resolve().then((function(){return Gte})),"rotate-3d":()=>Promise.resolve().then((function(){return Yte})),"rotate-ccw-square":()=>Promise.resolve().then((function(){return Xte})),"rotate-ccw":()=>Promise.resolve().then((function(){return Jte})),"rotate-cw-square":()=>Promise.resolve().then((function(){return tre})),"rotate-cw":()=>Promise.resolve().then((function(){return nre})),"route-off":()=>Promise.resolve().then((function(){return ore})),route:()=>Promise.resolve().then((function(){return ire})),router:()=>Promise.resolve().then((function(){return cre})),"rows-2":()=>Promise.resolve().then((function(){return ure})),"rows-3":()=>Promise.resolve().then((function(){return pre})),"rows-4":()=>Promise.resolve().then((function(){return vre})),rss:()=>Promise.resolve().then((function(){return yre})),ruler:()=>Promise.resolve().then((function(){return kre})),"russian-ruble":()=>Promise.resolve().then((function(){return wre})),sailboat:()=>Promise.resolve().then((function(){return _re})),salad:()=>Promise.resolve().then((function(){return jre})),sandwich:()=>Promise.resolve().then((function(){return Ere})),"satellite-dish":()=>Promise.resolve().then((function(){return Cre})),satellite:()=>Promise.resolve().then((function(){return Rre})),"save-all":()=>Promise.resolve().then((function(){return Lre})),"save-off":()=>Promise.resolve().then((function(){return Vre})),save:()=>Promise.resolve().then((function(){return Sre})),"scale-3d":()=>Promise.resolve().then((function(){return Nre})),scale:()=>Promise.resolve().then((function(){return Dre})),scaling:()=>Promise.resolve().then((function(){return Fre})),"scan-barcode":()=>Promise.resolve().then((function(){return Wre})),"scan-eye":()=>Promise.resolve().then((function(){return Gre})),"scan-face":()=>Promise.resolve().then((function(){return Yre})),"scan-line":()=>Promise.resolve().then((function(){return Xre})),"scan-qr-code":()=>Promise.resolve().then((function(){return Jre})),"scan-search":()=>Promise.resolve().then((function(){return tne})),"scan-text":()=>Promise.resolve().then((function(){return nne})),scan:()=>Promise.resolve().then((function(){return one})),school:()=>Promise.resolve().then((function(){return ine})),"scissors-line-dashed":()=>Promise.resolve().then((function(){return cne})),scissors:()=>Promise.resolve().then((function(){return une})),"screen-share-off":()=>Promise.resolve().then((function(){return pne})),"screen-share":()=>Promise.resolve().then((function(){return vne})),"scroll-text":()=>Promise.resolve().then((function(){return yne})),scroll:()=>Promise.resolve().then((function(){return kne})),"search-check":()=>Promise.resolve().then((function(){return wne})),"search-code":()=>Promise.resolve().then((function(){return _ne})),"search-slash":()=>Promise.resolve().then((function(){return jne})),"search-x":()=>Promise.resolve().then((function(){return Ene})),search:()=>Promise.resolve().then((function(){return Cne})),section:()=>Promise.resolve().then((function(){return Rne})),"send-horizontal":()=>Promise.resolve().then((function(){return Lne})),"send-to-back":()=>Promise.resolve().then((function(){return Vne})),send:()=>Promise.resolve().then((function(){return Sne})),"separator-horizontal":()=>Promise.resolve().then((function(){return Nne})),"separator-vertical":()=>Promise.resolve().then((function(){return Dne})),"server-cog":()=>Promise.resolve().then((function(){return Fne})),"server-crash":()=>Promise.resolve().then((function(){return Wne})),"server-off":()=>Promise.resolve().then((function(){return Gne})),server:()=>Promise.resolve().then((function(){return Yne})),"settings-2":()=>Promise.resolve().then((function(){return Xne})),settings:()=>Promise.resolve().then((function(){return Jne})),shapes:()=>Promise.resolve().then((function(){return tae})),"share-2":()=>Promise.resolve().then((function(){return nae})),share:()=>Promise.resolve().then((function(){return oae})),sheet:()=>Promise.resolve().then((function(){return iae})),shell:()=>Promise.resolve().then((function(){return cae})),"shield-alert":()=>Promise.resolve().then((function(){return uae})),"shield-ban":()=>Promise.resolve().then((function(){return pae})),"shield-check":()=>Promise.resolve().then((function(){return vae})),"shield-ellipsis":()=>Promise.resolve().then((function(){return yae})),"shield-half":()=>Promise.resolve().then((function(){return kae})),"shield-minus":()=>Promise.resolve().then((function(){return wae})),"shield-off":()=>Promise.resolve().then((function(){return _ae})),"shield-plus":()=>Promise.resolve().then((function(){return jae})),"shield-question":()=>Promise.resolve().then((function(){return Eae})),"shield-x":()=>Promise.resolve().then((function(){return Cae})),shield:()=>Promise.resolve().then((function(){return Rae})),"ship-wheel":()=>Promise.resolve().then((function(){return Lae})),ship:()=>Promise.resolve().then((function(){return Vae})),shirt:()=>Promise.resolve().then((function(){return Sae})),"shopping-bag":()=>Promise.resolve().then((function(){return Nae})),"shopping-basket":()=>Promise.resolve().then((function(){return Dae})),"shopping-cart":()=>Promise.resolve().then((function(){return Fae})),shovel:()=>Promise.resolve().then((function(){return Wae})),"shower-head":()=>Promise.resolve().then((function(){return Gae})),shrink:()=>Promise.resolve().then((function(){return Yae})),shrub:()=>Promise.resolve().then((function(){return Xae})),shuffle:()=>Promise.resolve().then((function(){return Jae})),sigma:()=>Promise.resolve().then((function(){return toe})),"signal-high":()=>Promise.resolve().then((function(){return noe})),"signal-low":()=>Promise.resolve().then((function(){return ooe})),"signal-medium":()=>Promise.resolve().then((function(){return ioe})),"signal-zero":()=>Promise.resolve().then((function(){return coe})),signal:()=>Promise.resolve().then((function(){return uoe})),signature:()=>Promise.resolve().then((function(){return poe})),"signpost-big":()=>Promise.resolve().then((function(){return voe})),signpost:()=>Promise.resolve().then((function(){return yoe})),siren:()=>Promise.resolve().then((function(){return koe})),"skip-back":()=>Promise.resolve().then((function(){return woe})),"skip-forward":()=>Promise.resolve().then((function(){return _oe})),skull:()=>Promise.resolve().then((function(){return joe})),slack:()=>Promise.resolve().then((function(){return Eoe})),slash:()=>Promise.resolve().then((function(){return Coe})),slice:()=>Promise.resolve().then((function(){return Roe})),"sliders-horizontal":()=>Promise.resolve().then((function(){return Loe})),"sliders-vertical":()=>Promise.resolve().then((function(){return Voe})),"smartphone-charging":()=>Promise.resolve().then((function(){return Soe})),"smartphone-nfc":()=>Promise.resolve().then((function(){return Noe})),smartphone:()=>Promise.resolve().then((function(){return Doe})),"smile-plus":()=>Promise.resolve().then((function(){return Foe})),smile:()=>Promise.resolve().then((function(){return Woe})),snail:()=>Promise.resolve().then((function(){return Goe})),snowflake:()=>Promise.resolve().then((function(){return Yoe})),sofa:()=>Promise.resolve().then((function(){return Xoe})),soup:()=>Promise.resolve().then((function(){return Joe})),space:()=>Promise.resolve().then((function(){return tle})),spade:()=>Promise.resolve().then((function(){return nle})),sparkle:()=>Promise.resolve().then((function(){return ole})),sparkles:()=>Promise.resolve().then((function(){return ile})),speaker:()=>Promise.resolve().then((function(){return cle})),speech:()=>Promise.resolve().then((function(){return ule})),"spell-check-2":()=>Promise.resolve().then((function(){return ple})),"spell-check":()=>Promise.resolve().then((function(){return vle})),spline:()=>Promise.resolve().then((function(){return yle})),split:()=>Promise.resolve().then((function(){return kle})),"spray-can":()=>Promise.resolve().then((function(){return wle})),sprout:()=>Promise.resolve().then((function(){return _le})),"square-activity":()=>Promise.resolve().then((function(){return jle})),"square-arrow-down-left":()=>Promise.resolve().then((function(){return Ele})),"square-arrow-down-right":()=>Promise.resolve().then((function(){return Cle})),"square-arrow-down":()=>Promise.resolve().then((function(){return Rle})),"square-arrow-left":()=>Promise.resolve().then((function(){return Lle})),"square-arrow-out-down-left":()=>Promise.resolve().then((function(){return Vle})),"square-arrow-out-down-right":()=>Promise.resolve().then((function(){return Sle})),"square-arrow-out-up-left":()=>Promise.resolve().then((function(){return Nle})),"square-arrow-out-up-right":()=>Promise.resolve().then((function(){return Dle})),"square-arrow-right":()=>Promise.resolve().then((function(){return Fle})),"square-arrow-up-left":()=>Promise.resolve().then((function(){return Wle})),"square-arrow-up-right":()=>Promise.resolve().then((function(){return Gle})),"square-arrow-up":()=>Promise.resolve().then((function(){return Yle})),"square-asterisk":()=>Promise.resolve().then((function(){return Xle})),"square-bottom-dashed-scissors":()=>Promise.resolve().then((function(){return Jle})),"square-chart-gantt":()=>Promise.resolve().then((function(){return tie})),"square-check-big":()=>Promise.resolve().then((function(){return nie})),"square-check":()=>Promise.resolve().then((function(){return oie})),"square-chevron-down":()=>Promise.resolve().then((function(){return iie})),"square-chevron-left":()=>Promise.resolve().then((function(){return cie})),"square-chevron-right":()=>Promise.resolve().then((function(){return uie})),"square-chevron-up":()=>Promise.resolve().then((function(){return pie})),"square-code":()=>Promise.resolve().then((function(){return vie})),"square-dashed-bottom-code":()=>Promise.resolve().then((function(){return yie})),"square-dashed-bottom":()=>Promise.resolve().then((function(){return kie})),"square-dashed-kanban":()=>Promise.resolve().then((function(){return wie})),"square-dashed-mouse-pointer":()=>Promise.resolve().then((function(){return _ie})),"square-dashed":()=>Promise.resolve().then((function(){return jie})),"square-divide":()=>Promise.resolve().then((function(){return Eie})),"square-dot":()=>Promise.resolve().then((function(){return Cie})),"square-equal":()=>Promise.resolve().then((function(){return Rie})),"square-function":()=>Promise.resolve().then((function(){return Lie})),"square-kanban":()=>Promise.resolve().then((function(){return Vie})),"square-library":()=>Promise.resolve().then((function(){return Sie})),"square-m":()=>Promise.resolve().then((function(){return Nie})),"square-menu":()=>Promise.resolve().then((function(){return Die})),"square-minus":()=>Promise.resolve().then((function(){return Fie})),"square-mouse-pointer":()=>Promise.resolve().then((function(){return Wie})),"square-parking-off":()=>Promise.resolve().then((function(){return Gie})),"square-parking":()=>Promise.resolve().then((function(){return Yie})),"square-pen":()=>Promise.resolve().then((function(){return Xie})),"square-percent":()=>Promise.resolve().then((function(){return Jie})),"square-pi":()=>Promise.resolve().then((function(){return tse})),"square-pilcrow":()=>Promise.resolve().then((function(){return nse})),"square-play":()=>Promise.resolve().then((function(){return ose})),"square-plus":()=>Promise.resolve().then((function(){return ise})),"square-power":()=>Promise.resolve().then((function(){return cse})),"square-radical":()=>Promise.resolve().then((function(){return use})),"square-scissors":()=>Promise.resolve().then((function(){return pse})),"square-sigma":()=>Promise.resolve().then((function(){return vse})),"square-slash":()=>Promise.resolve().then((function(){return yse})),"square-split-horizontal":()=>Promise.resolve().then((function(){return kse})),"square-split-vertical":()=>Promise.resolve().then((function(){return wse})),"square-square":()=>Promise.resolve().then((function(){return _se})),"square-stack":()=>Promise.resolve().then((function(){return jse})),"square-terminal":()=>Promise.resolve().then((function(){return Ese})),"square-user-round":()=>Promise.resolve().then((function(){return Cse})),"square-user":()=>Promise.resolve().then((function(){return Rse})),"square-x":()=>Promise.resolve().then((function(){return Lse})),square:()=>Promise.resolve().then((function(){return Vse})),squircle:()=>Promise.resolve().then((function(){return Sse})),squirrel:()=>Promise.resolve().then((function(){return Nse})),stamp:()=>Promise.resolve().then((function(){return Dse})),"star-half":()=>Promise.resolve().then((function(){return Fse})),"star-off":()=>Promise.resolve().then((function(){return Wse})),star:()=>Promise.resolve().then((function(){return Gse})),"step-back":()=>Promise.resolve().then((function(){return Yse})),"step-forward":()=>Promise.resolve().then((function(){return Xse})),stethoscope:()=>Promise.resolve().then((function(){return Jse})),sticker:()=>Promise.resolve().then((function(){return tce})),"sticky-note":()=>Promise.resolve().then((function(){return nce})),store:()=>Promise.resolve().then((function(){return oce})),"stretch-horizontal":()=>Promise.resolve().then((function(){return ice})),"stretch-vertical":()=>Promise.resolve().then((function(){return cce})),strikethrough:()=>Promise.resolve().then((function(){return uce})),subscript:()=>Promise.resolve().then((function(){return pce})),"sun-dim":()=>Promise.resolve().then((function(){return vce})),"sun-medium":()=>Promise.resolve().then((function(){return yce})),"sun-moon":()=>Promise.resolve().then((function(){return kce})),"sun-snow":()=>Promise.resolve().then((function(){return wce})),sun:()=>Promise.resolve().then((function(){return _ce})),sunrise:()=>Promise.resolve().then((function(){return jce})),sunset:()=>Promise.resolve().then((function(){return Ece})),superscript:()=>Promise.resolve().then((function(){return Cce})),"swatch-book":()=>Promise.resolve().then((function(){return Rce})),"swiss-franc":()=>Promise.resolve().then((function(){return Lce})),"switch-camera":()=>Promise.resolve().then((function(){return Vce})),sword:()=>Promise.resolve().then((function(){return Sce})),swords:()=>Promise.resolve().then((function(){return Nce})),syringe:()=>Promise.resolve().then((function(){return Dce})),"table-2":()=>Promise.resolve().then((function(){return Fce})),"table-cells-merge":()=>Promise.resolve().then((function(){return Wce})),"table-cells-split":()=>Promise.resolve().then((function(){return Gce})),"table-columns-split":()=>Promise.resolve().then((function(){return Yce})),"table-of-contents":()=>Promise.resolve().then((function(){return Xce})),"table-properties":()=>Promise.resolve().then((function(){return Jce})),"table-rows-split":()=>Promise.resolve().then((function(){return tde})),table:()=>Promise.resolve().then((function(){return nde})),"tablet-smartphone":()=>Promise.resolve().then((function(){return ode})),tablet:()=>Promise.resolve().then((function(){return ide})),tablets:()=>Promise.resolve().then((function(){return cde})),tag:()=>Promise.resolve().then((function(){return ude})),tags:()=>Promise.resolve().then((function(){return pde})),"tally-1":()=>Promise.resolve().then((function(){return vde})),"tally-2":()=>Promise.resolve().then((function(){return yde})),"tally-3":()=>Promise.resolve().then((function(){return kde})),"tally-4":()=>Promise.resolve().then((function(){return wde})),"tally-5":()=>Promise.resolve().then((function(){return _de})),tangent:()=>Promise.resolve().then((function(){return jde})),target:()=>Promise.resolve().then((function(){return Ede})),telescope:()=>Promise.resolve().then((function(){return Cde})),"tent-tree":()=>Promise.resolve().then((function(){return Rde})),tent:()=>Promise.resolve().then((function(){return Lde})),terminal:()=>Promise.resolve().then((function(){return Vde})),"test-tube-diagonal":()=>Promise.resolve().then((function(){return Sde})),"test-tube":()=>Promise.resolve().then((function(){return Nde})),"test-tubes":()=>Promise.resolve().then((function(){return Dde})),"text-cursor-input":()=>Promise.resolve().then((function(){return Fde})),"text-cursor":()=>Promise.resolve().then((function(){return Wde})),"text-quote":()=>Promise.resolve().then((function(){return Gde})),"text-search":()=>Promise.resolve().then((function(){return Yde})),"text-select":()=>Promise.resolve().then((function(){return Xde})),text:()=>Promise.resolve().then((function(){return Jde})),theater:()=>Promise.resolve().then((function(){return tue})),"thermometer-snowflake":()=>Promise.resolve().then((function(){return nue})),"thermometer-sun":()=>Promise.resolve().then((function(){return oue})),thermometer:()=>Promise.resolve().then((function(){return iue})),"thumbs-down":()=>Promise.resolve().then((function(){return cue})),"thumbs-up":()=>Promise.resolve().then((function(){return uue})),"ticket-check":()=>Promise.resolve().then((function(){return pue})),"ticket-minus":()=>Promise.resolve().then((function(){return vue})),"ticket-percent":()=>Promise.resolve().then((function(){return yue})),"ticket-plus":()=>Promise.resolve().then((function(){return kue})),"ticket-slash":()=>Promise.resolve().then((function(){return wue})),"ticket-x":()=>Promise.resolve().then((function(){return _ue})),ticket:()=>Promise.resolve().then((function(){return jue})),"tickets-plane":()=>Promise.resolve().then((function(){return Eue})),tickets:()=>Promise.resolve().then((function(){return Cue})),"timer-off":()=>Promise.resolve().then((function(){return Rue})),"timer-reset":()=>Promise.resolve().then((function(){return Lue})),timer:()=>Promise.resolve().then((function(){return Vue})),"toggle-left":()=>Promise.resolve().then((function(){return Sue})),"toggle-right":()=>Promise.resolve().then((function(){return Nue})),toilet:()=>Promise.resolve().then((function(){return Due})),tornado:()=>Promise.resolve().then((function(){return Fue})),torus:()=>Promise.resolve().then((function(){return Wue})),"touchpad-off":()=>Promise.resolve().then((function(){return Gue})),touchpad:()=>Promise.resolve().then((function(){return Yue})),"tower-control":()=>Promise.resolve().then((function(){return Xue})),"toy-brick":()=>Promise.resolve().then((function(){return Jue})),tractor:()=>Promise.resolve().then((function(){return the})),"traffic-cone":()=>Promise.resolve().then((function(){return nhe})),"train-front-tunnel":()=>Promise.resolve().then((function(){return ohe})),"train-front":()=>Promise.resolve().then((function(){return ihe})),"train-track":()=>Promise.resolve().then((function(){return che})),"tram-front":()=>Promise.resolve().then((function(){return uhe})),"trash-2":()=>Promise.resolve().then((function(){return phe})),trash:()=>Promise.resolve().then((function(){return vhe})),"tree-deciduous":()=>Promise.resolve().then((function(){return yhe})),"tree-palm":()=>Promise.resolve().then((function(){return khe})),"tree-pine":()=>Promise.resolve().then((function(){return whe})),trees:()=>Promise.resolve().then((function(){return _he})),trello:()=>Promise.resolve().then((function(){return jhe})),"trending-down":()=>Promise.resolve().then((function(){return Ehe})),"trending-up-down":()=>Promise.resolve().then((function(){return Che})),"trending-up":()=>Promise.resolve().then((function(){return Rhe})),"triangle-alert":()=>Promise.resolve().then((function(){return Lhe})),"triangle-right":()=>Promise.resolve().then((function(){return Vhe})),triangle:()=>Promise.resolve().then((function(){return She})),trophy:()=>Promise.resolve().then((function(){return Nhe})),truck:()=>Promise.resolve().then((function(){return Dhe})),turtle:()=>Promise.resolve().then((function(){return Fhe})),"tv-minimal-play":()=>Promise.resolve().then((function(){return Whe})),"tv-minimal":()=>Promise.resolve().then((function(){return Ghe})),tv:()=>Promise.resolve().then((function(){return Yhe})),twitch:()=>Promise.resolve().then((function(){return Xhe})),twitter:()=>Promise.resolve().then((function(){return Jhe})),"type-outline":()=>Promise.resolve().then((function(){return tpe})),type:()=>Promise.resolve().then((function(){return npe})),"umbrella-off":()=>Promise.resolve().then((function(){return ope})),umbrella:()=>Promise.resolve().then((function(){return ipe})),underline:()=>Promise.resolve().then((function(){return cpe})),"undo-2":()=>Promise.resolve().then((function(){return upe})),"undo-dot":()=>Promise.resolve().then((function(){return ppe})),undo:()=>Promise.resolve().then((function(){return vpe})),"unfold-horizontal":()=>Promise.resolve().then((function(){return ype})),"unfold-vertical":()=>Promise.resolve().then((function(){return kpe})),ungroup:()=>Promise.resolve().then((function(){return wpe})),university:()=>Promise.resolve().then((function(){return _pe})),"unlink-2":()=>Promise.resolve().then((function(){return jpe})),unlink:()=>Promise.resolve().then((function(){return Epe})),unplug:()=>Promise.resolve().then((function(){return Cpe})),upload:()=>Promise.resolve().then((function(){return Rpe})),usb:()=>Promise.resolve().then((function(){return Lpe})),"user-check":()=>Promise.resolve().then((function(){return Vpe})),"user-cog":()=>Promise.resolve().then((function(){return Spe})),"user-minus":()=>Promise.resolve().then((function(){return Npe})),"user-pen":()=>Promise.resolve().then((function(){return Dpe})),"user-plus":()=>Promise.resolve().then((function(){return Fpe})),"user-round-check":()=>Promise.resolve().then((function(){return Wpe})),"user-round-cog":()=>Promise.resolve().then((function(){return Gpe})),"user-round-minus":()=>Promise.resolve().then((function(){return Ype})),"user-round-pen":()=>Promise.resolve().then((function(){return Xpe})),"user-round-plus":()=>Promise.resolve().then((function(){return Jpe})),"user-round-search":()=>Promise.resolve().then((function(){return tfe})),"user-round-x":()=>Promise.resolve().then((function(){return nfe})),"user-round":()=>Promise.resolve().then((function(){return ofe})),"user-search":()=>Promise.resolve().then((function(){return ife})),"user-x":()=>Promise.resolve().then((function(){return cfe})),user:()=>Promise.resolve().then((function(){return ufe})),"users-round":()=>Promise.resolve().then((function(){return pfe})),users:()=>Promise.resolve().then((function(){return vfe})),"utensils-crossed":()=>Promise.resolve().then((function(){return yfe})),utensils:()=>Promise.resolve().then((function(){return kfe})),"utility-pole":()=>Promise.resolve().then((function(){return wfe})),variable:()=>Promise.resolve().then((function(){return _fe})),vault:()=>Promise.resolve().then((function(){return jfe})),vegan:()=>Promise.resolve().then((function(){return Efe})),"venetian-mask":()=>Promise.resolve().then((function(){return Cfe})),"vibrate-off":()=>Promise.resolve().then((function(){return Rfe})),vibrate:()=>Promise.resolve().then((function(){return Lfe})),"video-off":()=>Promise.resolve().then((function(){return Vfe})),video:()=>Promise.resolve().then((function(){return Sfe})),videotape:()=>Promise.resolve().then((function(){return Nfe})),view:()=>Promise.resolve().then((function(){return Dfe})),voicemail:()=>Promise.resolve().then((function(){return Ffe})),volleyball:()=>Promise.resolve().then((function(){return Wfe})),"volume-1":()=>Promise.resolve().then((function(){return Gfe})),"volume-2":()=>Promise.resolve().then((function(){return Yfe})),"volume-off":()=>Promise.resolve().then((function(){return Xfe})),"volume-x":()=>Promise.resolve().then((function(){return Jfe})),volume:()=>Promise.resolve().then((function(){return tve})),vote:()=>Promise.resolve().then((function(){return nve})),"wallet-cards":()=>Promise.resolve().then((function(){return ove})),"wallet-minimal":()=>Promise.resolve().then((function(){return ive})),wallet:()=>Promise.resolve().then((function(){return cve})),wallpaper:()=>Promise.resolve().then((function(){return uve})),"wand-sparkles":()=>Promise.resolve().then((function(){return pve})),wand:()=>Promise.resolve().then((function(){return vve})),warehouse:()=>Promise.resolve().then((function(){return yve})),"washing-machine":()=>Promise.resolve().then((function(){return kve})),watch:()=>Promise.resolve().then((function(){return wve})),waves:()=>Promise.resolve().then((function(){return _ve})),waypoints:()=>Promise.resolve().then((function(){return jve})),webcam:()=>Promise.resolve().then((function(){return Eve})),"webhook-off":()=>Promise.resolve().then((function(){return Cve})),webhook:()=>Promise.resolve().then((function(){return Rve})),weight:()=>Promise.resolve().then((function(){return Lve})),"wheat-off":()=>Promise.resolve().then((function(){return Vve})),wheat:()=>Promise.resolve().then((function(){return Sve})),"whole-word":()=>Promise.resolve().then((function(){return Nve})),"wifi-high":()=>Promise.resolve().then((function(){return Dve})),"wifi-low":()=>Promise.resolve().then((function(){return Fve})),"wifi-off":()=>Promise.resolve().then((function(){return Wve})),"wifi-zero":()=>Promise.resolve().then((function(){return Gve})),wifi:()=>Promise.resolve().then((function(){return Yve})),"wind-arrow-down":()=>Promise.resolve().then((function(){return Xve})),wind:()=>Promise.resolve().then((function(){return Jve})),"wine-off":()=>Promise.resolve().then((function(){return tme})),wine:()=>Promise.resolve().then((function(){return nme})),workflow:()=>Promise.resolve().then((function(){return ome})),worm:()=>Promise.resolve().then((function(){return ime})),"wrap-text":()=>Promise.resolve().then((function(){return cme})),wrench:()=>Promise.resolve().then((function(){return ume})),x:()=>Promise.resolve().then((function(){return pme})),youtube:()=>Promise.resolve().then((function(){return vme})),"zap-off":()=>Promise.resolve().then((function(){return yme})),zap:()=>Promise.resolve().then((function(){return kme})),"zoom-in":()=>Promise.resolve().then((function(){return wme})),"zoom-out":()=>Promise.resolve().then((function(){return _me}))};
|
|
9270
9270
|
/**
|
|
9271
9271
|
* @license lucide-react v0.460.0 - ISC
|
|
9272
9272
|
*
|
|
9273
9273
|
* This source code is licensed under the ISC license.
|
|
9274
9274
|
* See the LICENSE file in the root directory of this source tree.
|
|
9275
|
-
*/var zZe=Object.freeze({__proto__:null,default:EZe});exports.ActionButton=Tme,exports.AlertDialog=pze,exports.AlertDialogAction=xze,exports.AlertDialogCancel=_ze,exports.AlertDialogContent=yze,exports.AlertDialogDescription=wze,exports.AlertDialogFooter=kze,exports.AlertDialogHeader=gze,exports.AlertDialogOverlay=mze,exports.AlertDialogPortal=vze,exports.AlertDialogTitle=bze,exports.AlertDialogTrigger=fze,exports.Avatar=({text:e,imageUrl:r,icon:n,fallback:a,size:o,rounded:l,className:i,imageClassName:s,fallbackClassName:c,type:d="text",children:u,style:h})=>{const p=dge({size:o,rounded:l});return t.jsx(ige,{className:s_(p,i),style:h,children:u||t.jsxs(t.Fragment,{children:["image"===d&&t.jsxs(t.Fragment,{children:[t.jsx(sge,{src:r,className:s_(s)}),t.jsx(cge,{className:s_(c),children:"string"==typeof a?uge(a):a})]}),"text"===d&&uge(null!=e?e:""),"icon"===d&&n]})})},exports.AvatarGroup=({borderWidth:r=2,borderColor:n="white",maxDisplay:a=4,children:o,remainingText:l,remainingAvatar:i})=>{const s=e.Children.toArray(o),c=s.slice(0,a),d=Math.max(0,s.length-a),u=i||e.cloneElement(c[0],{style:{borderWidth:r,borderColor:n},className:"relative z-0",children:l||`+${d}`});return t.jsxs("div",{className:"flex items-center -space-x-2",children:[c.map(((a,o)=>t.jsx("div",{className:"relative",style:{zIndex:s.length-o},children:e.cloneElement(a,{style:{borderWidth:r,borderColor:n}})},o))),d>0&&u]})},exports.Button=d_,exports.Calendar=_be,exports.Checkbox=Nye,exports.Collapsible=wge,exports.DataTable=function({data:r,columns:n,manualSorting:a=!1,onSorting:o,fetchMoreData:i}){var s;const c=e.useRef(null),[d,u]=e.useState([]),[h,p]=e.useState([]),[f,v]=e.useState({}),[m,y]=e.useState({}),g=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=l.useState((()=>({current:kOe(t)}))),[n,a]=l.useState((()=>r.current.initialState));return r.current.setOptions((t=>({...t,...e,state:{...n,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),r.current}({data:r,columns:n,manualSorting:a,onSortingChange:u,onColumnFiltersChange:p,getCoreRowModel:e=>jje((()=>[e.options.data]),(t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(t,a,o){void 0===a&&(a=0);const l=[];for(let s=0;s<t.length;s++){const c=Rje(e,e._getRowId(t[s],s,o),t[s],s,a,0,null==o?void 0:o.id);var i;r.flatRows.push(c),r.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(i=c.originalSubRows)&&i.length&&(c.subRows=n(c.originalSubRows,a+1,c)))}return l};return r.rows=n(t),r}),Oje(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>jje((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,r)=>{if(!r.rows.length||null==t||!t.length)return r;const n=e.getState().sorting,a=[],o=n.filter((t=>{var r;return null==(r=e.getColumn(t.id))?void 0:r.getCanSort()})),l={};o.forEach((t=>{const r=e.getColumn(t.id);r&&(l[t.id]={sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortingFn:r.getSortingFn()})}));const i=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let n=0;n<o.length;n+=1){var r;const a=o[n],i=l[a.id],s=i.sortUndefined,c=null!=(r=null==a?void 0:a.desc)&&r;let d=0;if(s){const r=void 0===e.getValue(a.id),n=void 0===t.getValue(a.id);if(r||n){if("first"===s)return r?-1:1;if("last"===s)return r?1:-1;d=r&&n?0:r?s:-s}}if(0===d&&(d=i.sortingFn(e,t,a.id)),0!==d)return c&&(d*=-1),i.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;a.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=i(e.subRows))})),t};return{rows:i(r.rows),flatRows:a,rowsById:r.rowsById}}),Oje(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),getFilteredRowModel:e=>jje((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,r,n)=>{if(!t.rows.length||(null==r||!r.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const a=[],o=[];(null!=r?r:[]).forEach((t=>{var r;const n=e.getColumn(t.id);if(!n)return;const o=n.getFilterFn();o?a.push({id:t.id,filterFn:o,resolvedValue:null!=(r=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?r:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${n.id}.`)}));const l=(null!=r?r:[]).map((e=>e.id)),i=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,d;n&&i&&s.length&&(l.push("__global__"),s.forEach((e=>{var t;o.push({id:e.id,filterFn:i,resolvedValue:null!=(t=null==i.resolveFilterValue?void 0:i.resolveFilterValue(n))?t:n})})));for(let e=0;e<t.flatRows.length;e++){const r=t.flatRows[e];if(r.columnFilters={},a.length)for(let e=0;e<a.length;e++){c=a[e];const t=c.id;r.columnFilters[t]=c.filterFn(r,t,c.resolvedValue,(e=>{r.columnFiltersMeta[t]=e}))}if(o.length){for(let e=0;e<o.length;e++){d=o[e];const t=d.id;if(d.filterFn(r,t,d.resolvedValue,(e=>{r.columnFiltersMeta[t]=e}))){r.columnFilters.__global__=!0;break}}!0!==r.columnFilters.__global__&&(r.columnFilters.__global__=!1)}}return bOe(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),Oje(e.options,"debugTable","getFilteredRowModel",(()=>e._autoResetPageIndex()))),onColumnVisibilityChange:v,onRowSelectionChange:y,state:{sorting:d,columnFilters:h,columnVisibility:f,rowSelection:m}});e.useEffect((()=>{null==o||o(d)}),[d,o]),e.useEffect((()=>{const e=()=>{if(c.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=c.current;e+r>=t-10&&(null==i||i())}},t=c.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[i]);const k=0===(null===(s=g.getRowModel().rows)||void 0===s?void 0:s.length);return t.jsx("div",{className:"flex w-full h-full rounded-xl overflow-hidden border border-primary-10",children:t.jsxs(fje,{className:k?"h-full":"",rootRef:c,children:[t.jsx(vje,{className:"sticky top-0",children:g.getHeaderGroups().map((e=>t.jsx(gje,{className:"",children:e.headers.map(((e,r)=>{var n;return t.jsx(kje,{children:t.jsxs("div",{className:"flex flex-row items-center cursor-pointer",onClick:e.column.getToggleSortingHandler(),children:[e.isPlaceholder?null:wOe(e.column.columnDef.header,e.getContext()),null!==(n={asc:t.jsx(Fe,{className:"ml-3 h-4 w-4"}),desc:t.jsx(L,{className:"ml-3 h-4 w-4"})}[e.column.getIsSorted()])&&void 0!==n?n:e.column.getCanSort()?t.jsx(ot,{className:"ml-3 h-4 w-4 text-text-g-contrast-high"}):null]})},e.id)}))},e.id)))}),t.jsx(mje,{className:"overflow-y-scroll",children:k?t.jsx(gje,{className:"h-full self-stretch",children:t.jsx(bje,{colSpan:n.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full",children:t.jsxs("div",{className:"flex flex-1 h-full flex-col items-center justify-center gap-3",children:[t.jsx(On,{className:"w-8 text-secondary-120"}),"There is no information yet."]})})}):g.getRowModel().rows.map((e=>t.jsx(gje,{"data-state":e.getIsSelected()&&"selected",className:"",children:e.getVisibleCells().map((e=>t.jsx(bje,{children:wOe(e.column.columnDef.cell,e.getContext())},e.id)))},e.id)))})]})})},exports.DatePicker=r=>{var{date:n,onSelect:a,textInputProps:o,popoverContentProps:l}=r,i=o_(r,["date","onSelect","textInputProps","popoverContentProps"]);const[s,c]=e.useState(!1);return t.jsx("div",{children:t.jsxs(pMe,{modal:!0,open:s,onOpenChange:c,children:[t.jsx(fMe,{asChild:!0,children:t.jsx("div",{className:"flex",children:t.jsx(Mme,Object.assign({fullwidth:!0,id:"date-picker",readOnly:!0,label:"Date",size:"md",value:n?cje(n,"dd MMM yyyy"):s?" ":"",hasClearIcon:!1,endIcon:t.jsx(Er,{fill:"inherit",className:"cursor-pointer"})},o,{labelClassName:s_("pointer-events-none",null==o?void 0:o.labelClassName)}))})}),t.jsx(vMe,Object.assign({className:"w-auto p-0 z-[100]"},l,{children:t.jsx(_be,Object.assign({defaultMonth:n},i,{mode:"single",selected:n,onSelect:(...e)=>{null==a||a(...e),c(!1)}}))}))]})})},exports.Dialog=PEe,exports.DialogBody=SEe,exports.DialogClose=LEe,exports.DialogContent=VEe,exports.DialogDescription=qEe,exports.DialogFooter=ZEe,exports.DialogHeader=HEe,exports.DialogOverlay=IEe,exports.DialogPortal=AEe,exports.DialogTitle=NEe,exports.DialogTrigger=REe,exports.Dropdown=sye,exports.DropdownMenu=FAe,exports.DropdownMenuCheckboxItem=JAe,exports.DropdownMenuContent=XAe,exports.DropdownMenuGroup=WAe,exports.DropdownMenuItem=QAe,exports.DropdownMenuLabel=tLe,exports.DropdownMenuPortal=UAe,exports.DropdownMenuRadioGroup=$Ae,exports.DropdownMenuRadioItem=eLe,exports.DropdownMenuSeparator=rLe,exports.DropdownMenuShortcut=nLe,exports.DropdownMenuSub=GAe,exports.DropdownMenuSubContent=KAe,exports.DropdownMenuSubTrigger=YAe,exports.DropdownMenuTrigger=TAe,exports.Field=({name:r,component:n,componentProps:a,rules:o,defaultValue:l,disabled:i=!1,shouldUnregister:s=!1,id:c,describedBy:d,valuePropName:u="value",changePropName:h="onChange",blurPropName:p="onBlur",refPropName:f="ref",errorMessagePropName:v="errorMessage",invalidPropName:m="error",parseValue:y,formatValue:g,onChange:k,onBlur:b})=>{const w=e.useId(),x=c||`${r.replace(/\./g,"-")}-${w}`,{field:_,fieldState:{error:M,invalid:j}}=zSe({name:r,rules:o,disabled:i,defaultValue:l,shouldUnregister:s}),O=()=>{_.onBlur(),null==b||b()},E=g?g(_.value):_.value,z=Object.assign(Object.assign({},a),{id:x,name:_.name,disabled:i,"aria-invalid":j||void 0,"aria-describedby":d});return z[u]=E,z[h]=e=>{const t=(e=>{if(e&&"object"==typeof e&&"target"in e&&e.target&&"object"==typeof e.target){const t=e.target;return"checkbox"===t.type?t.checked:t.value}return e})(e),r=y?y(t,e):t;_.onChange(r),null==k||k(r,e)},p&&(z[p]=O),f&&(z[f]=_.ref),v&&(z[v]=null==M?void 0:M.message),m&&(z[m]=j),t.jsx(n,Object.assign({},z))},exports.FieldMessage=r=>{var{name:n,className:a}=r,o=o_(r,["name","className"]);const{getFieldState:l,formState:i}=e.useContext(CSe),{error:s}=l(n,i);return(null==s?void 0:s.message)?t.jsx("p",Object.assign({},o,{className:s_("text-sm text-input-error mt-1",a),role:"alert",children:s.message})):null},exports.FocusedScrollView=({selectedKey:r,children:n,direction:a="vertical",className:o,containerProps:l,scrollAlign:i="center"})=>{const s=e.useRef(null),c=e.useRef({});e.useEffect((()=>{r&&(e=>{const t=s.current,r=c.current[e];if(t&&r)if("vertical"===a){const e=t.getBoundingClientRect().top,n=r.getBoundingClientRect().top-e+t.scrollTop,a=t.clientHeight,o=r.offsetHeight;let l=n;"center"===i?l=n-(a/2-o/2):"end"===i&&(l=n+(o-a)),t.scrollTo({top:l,behavior:"smooth"})}else if("horizontal"===a){const e=t.getBoundingClientRect().left,n=r.getBoundingClientRect().left-e+t.scrollLeft,a=t.clientWidth,o=r.offsetWidth;let l=n;"center"===i?l=n-(a/2-o/2):"end"===i&&(l=n+(o-a)),t.scrollTo({left:l,behavior:"smooth"})}})(r)}),[r,a,i]);const d=Array.isArray(n)?n.map((t=>e.isValidElement(t)&&t.key?e.cloneElement(t,{ref:e=>{c.current[String(t.key)]=e}}):t)):n;return t.jsx("div",Object.assign({ref:s,className:`overflow-auto ${"vertical"===a?"max-h-60":"max-w-full whitespace-nowrap"} ${null!=o?o:""}`},l,{children:d}))},exports.Footer=({children:e,className:r,variant:n="default",copyright:a,center:o,leftNav:l,rightNav:i,position:s,container:c=!1,containerClassName:d,leftNavClassName:u,centerClassName:h,rightNavClassName:p})=>{const f="simple"===n,v="transparent"===n,m=l||a,y=f&&null!=a?a:o,g=f?null:i;return t.jsxs("footer",{className:s_("relative w-full px-4 py-6 box-border overflow-hidden typography-subtitle2 border-solid border-t-2 text-[var(--footer-text-color)] border-t-[var(--footer-border-color)]",f?"h-[var(--footer-height-simple)]":"h-[var(--footer-height)]",{position:s},r),children:[!v&&t.jsx("div",{className:"absolute inset-0 -z-10 bg-[var(--footer-bg-color)]","aria-hidden":!0}),t.jsx("div",{className:s_("absolute inset-0 -z-[5] pointer-events-none",r),"aria-hidden":!0}),t.jsx("div",{className:s_("relative mx-auto flex h-full items-center",f?"justify-center":"justify-between",{container:c},d),children:null!=e?e:f?t.jsx("div",{className:s_("text-center",h),children:y}):t.jsxs(t.Fragment,{children:[t.jsx("nav",{className:s_("flex w-1/2 items-center gap-x-[var(--footer-gap)] text-xl",u),children:a&&l?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"flex-shrink-0",children:a}),l]}):m}),t.jsx("div",{className:s_("flex flex-shrink-0 flex-wrap justify-center",h),children:y}),t.jsx("nav",{className:s_("flex w-1/2 justify-end gap-x-[var(--footer-gap)] text-xl",p),children:g})]})})]})},exports.Form=kZe,exports.Icon=Rme,exports.Input=Uye,exports.InputFilter=Oze,exports.Label=Tye,exports.Loading=c_,exports.MaskedTextInput=zme,exports.Menu=aye,exports.MenuItem=oye,exports.MenuLabel=iye,exports.MenuSeparator=lye,exports.Navbar=({children:r,className:n,variant:a="default",scrollShadow:o=!1,center:l,leftNav:i,rightNav:s,position:c,container:d=!1,containerClassName:u,leftNavClassName:h,centerClassName:p,rightNavClassName:f})=>{const[v,m]=e.useState(!1);e.useEffect((()=>{if(!o||"undefined"==typeof window)return;const e=()=>{m(window.scrollY>4)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),[o]);const y="transparent"===a;return t.jsxs("header",{className:s_("relative w-full px-4 py-6 h-[var(--navbar-height)] box-border overflow-hidden typography-subtitle2 border-solid border-b-2 text-[rgb(var(--navbar-text-color))] border-b-[rgb(var(--navbar-border-color))] transition-shadow duration-200",{position:c},o&&v&&"shadow-[var(--navbar-shadow-scrolled)]",n),children:[!y&&t.jsx("div",{className:"absolute inset-0 -z-10 bg-[rgb(var(--navbar-bg-color))]","aria-hidden":!0}),t.jsx("div",{className:s_("absolute inset-0 -z-[5] pointer-events-none",n),"aria-hidden":!0}),t.jsx("div",{className:s_("relative mx-auto flex h-full justify-between items-center",{container:d},u),children:r||t.jsxs(t.Fragment,{children:[t.jsx("nav",{className:s_("flex w-1/2 gap-x-[var(--navbar-gap)] text-xl",h),children:i}),t.jsx("div",{className:s_("flex flex-shrink-0 flex-wrap justify-center",p),children:l}),t.jsx("nav",{className:s_("flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl",f),children:s})]})})]})},exports.NumberInput=Lme,exports.OtpInput=hje,exports.OtpInputGroup=pje,exports.PasswordInput=Ame,exports.Popover=pMe,exports.PopoverContent=vMe,exports.PopoverTrigger=fMe,exports.ProgressBar=({progress:r=0,color:n,gradientStart:a,gradientEnd:o,animationDuration:l=.5,height:i=8,trackClassName:s,progressClassName:c})=>{const[d,u]=e.useState(0);e.useEffect((()=>{u(r)}),[r]);return t.jsx("div",{className:s_("w-full bg-grey2-transparent-16 rounded-full overflow-hidden",s),style:{height:`${i}px`},children:t.jsx("div",{className:s_("h-full rounded-full transition-all ease-out bg-primary",c),style:{width:`${d}%`,background:a&&o?`linear-gradient(to right, ${a}, ${o})`:n,transition:`width ${l}s ease-out`}})})},exports.RadioGroup=qHe,exports.RadioGroupItem=DHe,exports.Search=Mze,exports.Slider=cCe,exports.Switch=OCe,exports.THEME_COLOR_KEYS=jZe,exports.Table=fje,exports.TableBody=mje,exports.TableCaption=wje,exports.TableCell=bje,exports.TableFooter=yje,exports.TableHead=kje,exports.TableHeader=vje,exports.TableRow=gje,exports.Tabs=({tabs:r=[],value:n,initialTab:a=0,tabBarSize:o=38,enableBorderLine:l=!0,enableAddTabButton:i=!1,keepIconSpace:s=!1,disabled:c=!1,keepMounted:d=!1,tabMode:u="start",className:h,tabBarClassName:p,tabBarContainerClassName:f,tabBarWrapperClassName:v,tabButtonClassName:m,tabButtonActiveClassName:y,tabButtonActiveDisableClassName:g,tabButtonDisableClassName:k,tabContentClassName:b,addTabButtonWrapperClassName:w,borderSliderClassName:x,leftAction:_,rightAction:M,onAddTab:j,onTabChange:O})=>{var E;const[z,C]=e.useState(a),[P,R]=e.useState(null),[A,L]=e.useState({width:"0px",transform:"translateX(0px)"}),I=e.useRef([]),V=e.useRef(!0);e.useEffect((()=>{void 0!==n&&C(n)}),[n]);const H=()=>{const e=I.current[z];e&&L({width:`${e.offsetWidth}px`,transform:`translateX(${e.offsetLeft}px)`})};return e.useEffect((()=>{let e;if(V.current){V.current=!1;const t=I.current[z];t&&(L({width:"0px",transform:`translateX(${t.offsetLeft+t.offsetWidth/2}px)`}),e=setTimeout((()=>{H()}),50))}else H();const t=()=>{H()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e&&clearTimeout(e)}}),[z,r,u,s]),t.jsxs("div",{className:s_("w-full",h),children:[t.jsxs("div",{className:s_(" relative flex flex-row w-full",{"border-b-[1px] border-base-stroke":l,"border-state-disable-outline":c,"flex-1":"justify"===u},f),children:[_,t.jsx("div",{className:s_("relative flex flex-row overflow-x-auto",{"flex-1":"justify"===u},v),children:t.jsxs("div",{className:s_("tabs-scrollbar overflow-x-auto w-full",`relative flex gap-3 h-[${o}px] box-border`,{"gap-0":"justify"===u},p),style:{justifyContent:"justify"===u?"stretch":u},role:"tablist",children:[r.map(((e,r)=>{var n,a,o,l,i,d,h,p;return t.jsxs("button",{ref:e=>I.current[r]=e,role:"tab","aria-selected":r===z,"aria-controls":`tab-content-${r}`,disabled:c||e.disabled,id:`tab-${r}`,className:s_("group relative flex justify-center flex-row items-center py-3 cursor-pointer transition-colors duration-300 box-border gap-1 flex-shrink-0 typography-subtitle6",{"text-text-contrast-max":r===z,"text-text-g-contrast-medium":r!==z,"text-state-disable-outline pointer-events-none":c||e.disabled,[null!==(a=null!==(n=e.disableClassName)&&void 0!==n?n:k)&&void 0!==a?a:""]:c||e.disabled,"text-state-disable-outline":r===z&&(c||e.disabled),[null!==(l=null!==(o=e.activeDisableClassName)&&void 0!==o?o:g)&&void 0!==l?l:""]:r===z&&(c||e.disabled),[null!==(d=null!==(i=e.className)&&void 0!==i?i:m)&&void 0!==d?d:""]:!0,[null!==(p=null!==(h=e.activeClassName)&&void 0!==h?h:y)&&void 0!==p?p:""]:r===z,"flex-1":"justify"===u}),onClick:()=>{C(r),null==O||O(r)},onMouseEnter:()=>R(r),onMouseLeave:()=>R(null),children:[(s||e.startTabContent)&&t.jsx("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.isLoading?t.jsx(c_,{size:12}):e.startTabContent}),e.label,(s||e.endTabContent)&&t.jsx("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.endTabContent}),!c&&!e.disabled&&r!==z&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] rounded-[1px] bg-function-default-hover opacity-0 transition-opacity duration-150 group-hover:opacity-100"})]},r)})),t.jsx("div",{className:s_("absolute left-0 bottom-0 h-[2px] rounded-[1px] bg-function-active-solid transition-all duration-300 ease-in-out",{hidden:c||(null===(E=r[z])||void 0===E?void 0:E.disabled),"bg-function-active-hover":P===z&&!c},x),style:A})]})}),i&&t.jsx("div",{className:s_("sticky right-0 flex content-center items-center mx-4",w),children:t.jsx(Tme,{variant:"outline",size:"sm",onClick:()=>null==j?void 0:j(),disabled:c,children:t.jsx(Rme,{name:"plus"})})}),M]}),t.jsx("div",{className:s_("mt-4 text-text-g-contrast-high",b),role:"tabpanel",id:`tab-content-${z}`,"aria-labelledby":`tab-${z}`,children:r.map(((e,r)=>{var n;return d||z===r?t.jsx("div",{className:"transition "+(z===r?"block":"hidden"),children:e.content},null!==(n=e.id)&&void 0!==n?n:r):null}))})]})},exports.Text=Bme,exports.TextArea=Nme,exports.TextInput=Mme,exports.Toast=PVe,exports.ToastAction=RVe,exports.ToastClose=AVe,exports.ToastDescription=IVe,exports.ToastProvider=zVe,exports.ToastTitle=LVe,exports.ToastViewport=CVe,exports.Toaster=function(e){var{viewportClassName:r,titleClassName:n,descriptionClassName:a,contentClassName:o,iconWrapperClassName:l,actionWrapperClassName:i}=e,s=o_(e,["viewportClassName","titleClassName","descriptionClassName","contentClassName","iconWrapperClassName","actionWrapperClassName"]);const{toasts:c,position:d}=FVe();return t.jsxs(zVe,Object.assign({},s,{children:[c.map((function(e){var{id:r,title:s,description:c,action:d,contentMode:u="horizontal",iconProps:h,renderIcon:p}=e,f=o_(e,["id","title","description","action","contentMode","iconProps","renderIcon"]);const v="error"===f.variant?"circle-x":"warning"===f.variant?"circle-alert":"info"===f.variant?"info":"circle-check",m="error"===f.variant?"text-error":"warning"===f.variant?"text-warning":"info"===f.variant?"text-info":"success"===f.variant?"text-success":"text-text-g-contrast-high";return t.jsxs(PVe,Object.assign({},f,{children:[t.jsx("div",{className:s_(OVe({variant:f.variant}),l),children:p?null==p?void 0:p():t.jsx(Rme,Object.assign({type:"lucide",name:v,className:"size-[22px]"},h))}),t.jsxs("div",{className:s_(EVe({contentMode:u}),o),children:[s&&t.jsx(LVe,{className:s_(m,n),children:s}),c&&t.jsx(IVe,{className:a,children:c})]}),d?t.jsx("div",{className:s_("self-center mx-5",i),children:d}):null,t.jsx(AVe,{})]}),r)})),t.jsx(CVe,{position:d,className:r})]}))},exports.Tooltip=vIe,exports.TooltipArrow=yIe,exports.TooltipContent=gIe,exports.TooltipProvider=fIe,exports.TooltipSimple=function(e){var{children:r,content:n,open:a,defaultOpen:o,onOpenChange:l}=e,i=o_(e,["children","content","open","defaultOpen","onOpenChange"]);return t.jsx(fIe,{children:t.jsxs(vIe,{open:a,defaultOpen:o,onOpenChange:l,children:[t.jsx(mIe,{asChild:!0,children:r}),t.jsxs(gIe,Object.assign({side:"top",align:"center"},i,{children:[n,t.jsx(yIe,{width:11,height:5})]}))]})})},exports.TooltipTrigger=mIe,exports.Tree=({classes:r,data:n,defaultExpandedId:a,defaultCheckedId:o,checkedId:l,loadingId:i,lineSize:s,horizontalLineWidth:c,expandButtonSize:d,spacing:u,renderIcon:h,renderRightSection:p,renderElement:f,renderTitle:v,onExpandChange:m,onCheckedChange:y,onClickItem:g,onCheckedItem:k,defaultExpandAll:b=!1,defaultCheckAll:w=!1,hierarchicalCheck:x=!1,showIcon:_=!0,disabled:M,enableSeparatorLine:j=!0,checkable:O=!0,maxLevel:E,mode:z="checkbox",autoDisabled:C=!1,checkedAll:P=!1})=>{const[R,A]=e.useState({}),[L,I]=e.useState({}),V=(e,t)=>{e.forEach((e=>{t(e),e.children&&V(e.children,t)}))};e.useEffect((()=>{if(n.length&&b){const e={};V(n,(t=>{e[t.id]=!0})),I(e)}else if(null==a?void 0:a.length){const e=a.reduce(((e,t)=>(e[t]=!0,e)),{});I(e)}}),[n,a,b]),e.useEffect((()=>{var e;if(n.length&&w){const e={};V(n,(t=>{e[t.id]=!0})),A(e)}else if(0===(null===(e=Object.keys(R))||void 0===e?void 0:e.length)&&(null==o?void 0:o.length)){const e=o.reduce(((e,t)=>(e[t]=!0,e)),{});A(e)}}),[n,o,w]),e.useEffect((()=>{void 0!==l&&A(l.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!0})),{}))}),[l]),e.useEffect((()=>{if(!x)return;const e={},t=(r,a)=>{V(n,(n=>{n.id===r&&n.children&&n.children.forEach((r=>{e[r.id]=a,t(r.id,a)}))}))};A((r=>(Object.keys(r).filter((e=>r[e])).map((e=>{t(e,!0)})),Object.assign(Object.assign({},r),e))))}),[n,x]);const H=WVe(P);e.useEffect((()=>{if(void 0!==H&&H!==P)if(P){const e={};V(n,(t=>{t.id&&(e[t.id]=!0)})),A(e),null==y||y(e,void 0,null)}else{let e={};A((t=>(e=Object.keys(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!1})),{}),e))),null==y||y(e,void 0,null)}}),[n,P,H]);const S=e.useCallback(((e,t,r)=>{null==m||m(e,t,r),I((r=>Object.assign(Object.assign({},r),{[e]:t})))}),[m]),Z=e.useCallback(((e,t,r)=>{if("radio"===z){let n={[e]:t};return null==k||k(e,t,r),A(n),void(null==y||y(n,e,r))}null==k||k(e,t,r);let a=Object.assign(Object.assign({},R),{[e]:t});if(x){a=((e,t,r)=>{r[e]=t;const a=(e,t)=>{V(n,(n=>{n.id===e&&n.children&&n.children.forEach((e=>{r[e.id]=t,a(e.id,t)}))}))},o=(e,t)=>{V(n,(r=>{var n;if(null===(n=r.children)||void 0===n?void 0:n.some((t=>t.id===e))){const e=r.children.every((e=>t[e.id]));t[r.id]=e,o(r.id,t)}}))};return a(e,t),o(e,r),r})(e,t,a)}A(a),y&&(null==y||y(a,e,r))}),[R,n,y,x,k,z,C]),N=e.useCallback((e=>!!L[e]),[L]),q=e.useCallback((e=>l?l.includes(e):!!R[e]),[l,R]),D=e.useCallback((e=>{if(i)return i.includes(e)}),[i]),B=e.useCallback((e=>{var t;return!(!C||!Object.values(R).filter(Boolean).length)&&(null!==(t=!(null==R?void 0:R[e])||M)&&void 0!==t&&t)}),[R,M,C]);return t.jsx("div",{className:s_("w-full",null==r?void 0:r.container),children:n.map(((e,a)=>t.jsx(TVe,Object.assign({classes:r,isFirstLevel:!0,isLastItem:a===n.length-1,checkIsExpanded:N,checkIsChecked:q,onExpandChange:S,onCheckedChange:Z,checkAutoDisabled:B,checkIsLoading:D,renderIcon:h,renderElement:f,renderTitle:v,renderRightSection:p,enableSeparatorLine:j,disabled:B(e.id),showIcon:_,lineSize:s,horizontalLineWidth:c,expandButtonSize:d,spacing:u,notifyClickItem:g,maxLevel:E,currentLevel:1,checkable:O},e),e.id)))})},exports.TreeItem=TVe,exports.ValidationHintList=({values:e,rules:r,mode:n=["pending","valid","invalid"],className:a,itemClassName:o})=>{const l=new Set(n);return t.jsx("ul",{className:s_("mt-2 flex flex-col gap-3",a),children:r.map((r=>{const n=((e,t)=>!t.when||t.when(e)?t.validate(e)?"valid":"invalid":"pending")(e,r),a=l.has(n)?n:"pending";return t.jsxs("li",{className:s_("flex items-center gap-2 typography-small2",bZe[a],o),children:[t.jsx(Jf,{className:s_("size-4",wZe[a])}),t.jsx("span",{children:r.label})]},r.id)}))})},exports.cn=s_,exports.createControlledForm=gZe,exports.createYupResolver=yZe,exports.getEndDateOfDay=MZe,exports.getLucideIconNames=async function(){const{default:e}=await Promise.resolve().then((function(){return zZe}));return Object.keys(e)},exports.getStartDateOfDay=_Ze,exports.getStartEndTimestampOfDay=()=>{const e=_Ze(new Date);return{startTime:e,endTime:MZe(e)}},exports.getThemeColor=OZe,exports.getThemeColors=function(e=Object.keys(jZe),t){return e.reduce(((e,r)=>(e[r]=OZe(r,t),e)),{})},exports.getTimestampUTC=e=>{const t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return xZe(t)},exports.reducer=ZVe,exports.resloveTimestamp=xZe,exports.srgbToHex=e=>{if(e.startsWith("color(")){const t=e.match(/([\d.]+)/g);if(t&&t.length>=3){const[e,r,n]=t.slice(0,3).map((e=>Math.round(255*parseFloat(e))));let a=`#${[e,r,n].map((e=>("0"+e.toString(16)).slice(-2))).join("")}`;if(4===t.length){a+=("0"+Math.round(255*parseFloat(t[3])).toString(16)).slice(-2)}return a}}else{if(e.startsWith("#"))return e;{const t=e.match(/\d+/g);if(t&&t.length>=3)return`#${t.slice(0,3).map((e=>("0"+parseInt(e).toString(16)).slice(-2))).join("")}`}}return e},exports.toast=BVe,exports.useControlledForm=({defaultValues:e,controllerRef:t,resolver:r,validationSchema:n,mode:a="onSubmit",reValidateMode:o="onChange"})=>{const l=uZe({defaultValues:e,resolver:null!=r?r:n?yZe(n):void 0,mode:a,reValidateMode:o});return gZe({methods:l,defaultValues:e,controllerRef:t})},exports.useOptionBridge=({options:t,loading:r=!1,buildFallbackOption:n})=>{const a=e.useMemo((()=>new Map(t.map((e=>[e.value,e])))),[t]),o=e=>{if(null!=e)return a.get(e)};return{toOption:o,toOptionWithFallback:e=>{var t;if(null!=e)return null!==(t=o(e))&&void 0!==t?t:null==n?void 0:n(e,r)},toValue:e=>null==e?void 0:e.value,optionsByValue:a}},exports.usePrevious=WVe,exports.useToast=FVe;
|
|
9275
|
+
*/var zZe=Object.freeze({__proto__:null,default:EZe});exports.ActionButton=Tme,exports.AlertDialog=pze,exports.AlertDialogAction=xze,exports.AlertDialogCancel=_ze,exports.AlertDialogContent=yze,exports.AlertDialogDescription=wze,exports.AlertDialogFooter=kze,exports.AlertDialogHeader=gze,exports.AlertDialogOverlay=mze,exports.AlertDialogPortal=vze,exports.AlertDialogTitle=bze,exports.AlertDialogTrigger=fze,exports.Avatar=({text:e,imageUrl:r,icon:n,fallback:a,size:o,rounded:l,className:i,imageClassName:s,fallbackClassName:c,type:d="text",children:u,style:h})=>{const p=dge({size:o,rounded:l});return t.jsx(ige,{className:s_(p,i),style:h,children:u||t.jsxs(t.Fragment,{children:["image"===d&&t.jsxs(t.Fragment,{children:[t.jsx(sge,{src:r,className:s_(s)}),t.jsx(cge,{className:s_(c),children:"string"==typeof a?uge(a):a})]}),"text"===d&&uge(null!=e?e:""),"icon"===d&&n]})})},exports.AvatarGroup=({borderWidth:r=2,borderColor:n="white",maxDisplay:a=4,children:o,remainingText:l,remainingAvatar:i})=>{const s=e.Children.toArray(o),c=s.slice(0,a),d=Math.max(0,s.length-a),u=i||e.cloneElement(c[0],{style:{borderWidth:r,borderColor:n},className:"relative z-0",children:l||`+${d}`});return t.jsxs("div",{className:"flex items-center -space-x-2",children:[c.map(((a,o)=>t.jsx("div",{className:"relative",style:{zIndex:s.length-o},children:e.cloneElement(a,{style:{borderWidth:r,borderColor:n}})},o))),d>0&&u]})},exports.Button=d_,exports.Calendar=_be,exports.Checkbox=Nye,exports.Collapsible=wge,exports.DataTable=function({data:r,columns:n,manualSorting:a=!1,onSorting:o,fetchMoreData:i}){var s;const c=e.useRef(null),[d,u]=e.useState([]),[h,p]=e.useState([]),[f,v]=e.useState({}),[m,y]=e.useState({}),g=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=l.useState((()=>({current:kOe(t)}))),[n,a]=l.useState((()=>r.current.initialState));return r.current.setOptions((t=>({...t,...e,state:{...n,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),r.current}({data:r,columns:n,manualSorting:a,onSortingChange:u,onColumnFiltersChange:p,getCoreRowModel:e=>jje((()=>[e.options.data]),(t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(t,a,o){void 0===a&&(a=0);const l=[];for(let s=0;s<t.length;s++){const c=Rje(e,e._getRowId(t[s],s,o),t[s],s,a,0,null==o?void 0:o.id);var i;r.flatRows.push(c),r.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(i=c.originalSubRows)&&i.length&&(c.subRows=n(c.originalSubRows,a+1,c)))}return l};return r.rows=n(t),r}),Oje(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>jje((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,r)=>{if(!r.rows.length||null==t||!t.length)return r;const n=e.getState().sorting,a=[],o=n.filter((t=>{var r;return null==(r=e.getColumn(t.id))?void 0:r.getCanSort()})),l={};o.forEach((t=>{const r=e.getColumn(t.id);r&&(l[t.id]={sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortingFn:r.getSortingFn()})}));const i=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let n=0;n<o.length;n+=1){var r;const a=o[n],i=l[a.id],s=i.sortUndefined,c=null!=(r=null==a?void 0:a.desc)&&r;let d=0;if(s){const r=void 0===e.getValue(a.id),n=void 0===t.getValue(a.id);if(r||n){if("first"===s)return r?-1:1;if("last"===s)return r?1:-1;d=r&&n?0:r?s:-s}}if(0===d&&(d=i.sortingFn(e,t,a.id)),0!==d)return c&&(d*=-1),i.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;a.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=i(e.subRows))})),t};return{rows:i(r.rows),flatRows:a,rowsById:r.rowsById}}),Oje(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),getFilteredRowModel:e=>jje((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,r,n)=>{if(!t.rows.length||(null==r||!r.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const a=[],o=[];(null!=r?r:[]).forEach((t=>{var r;const n=e.getColumn(t.id);if(!n)return;const o=n.getFilterFn();o?a.push({id:t.id,filterFn:o,resolvedValue:null!=(r=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?r:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${n.id}.`)}));const l=(null!=r?r:[]).map((e=>e.id)),i=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,d;n&&i&&s.length&&(l.push("__global__"),s.forEach((e=>{var t;o.push({id:e.id,filterFn:i,resolvedValue:null!=(t=null==i.resolveFilterValue?void 0:i.resolveFilterValue(n))?t:n})})));for(let e=0;e<t.flatRows.length;e++){const r=t.flatRows[e];if(r.columnFilters={},a.length)for(let e=0;e<a.length;e++){c=a[e];const t=c.id;r.columnFilters[t]=c.filterFn(r,t,c.resolvedValue,(e=>{r.columnFiltersMeta[t]=e}))}if(o.length){for(let e=0;e<o.length;e++){d=o[e];const t=d.id;if(d.filterFn(r,t,d.resolvedValue,(e=>{r.columnFiltersMeta[t]=e}))){r.columnFilters.__global__=!0;break}}!0!==r.columnFilters.__global__&&(r.columnFilters.__global__=!1)}}return bOe(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),Oje(e.options,"debugTable","getFilteredRowModel",(()=>e._autoResetPageIndex()))),onColumnVisibilityChange:v,onRowSelectionChange:y,state:{sorting:d,columnFilters:h,columnVisibility:f,rowSelection:m}});e.useEffect((()=>{null==o||o(d)}),[d,o]),e.useEffect((()=>{const e=()=>{if(c.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=c.current;e+r>=t-10&&(null==i||i())}},t=c.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[i]);const k=0===(null===(s=g.getRowModel().rows)||void 0===s?void 0:s.length);return t.jsx("div",{className:"flex w-full h-full rounded-xl overflow-hidden border border-primary-10",children:t.jsxs(fje,{className:k?"h-full":"",rootRef:c,children:[t.jsx(vje,{className:"sticky top-0",children:g.getHeaderGroups().map((e=>t.jsx(gje,{className:"",children:e.headers.map(((e,r)=>{var n;return t.jsx(kje,{children:t.jsxs("div",{className:"flex flex-row items-center cursor-pointer",onClick:e.column.getToggleSortingHandler(),children:[e.isPlaceholder?null:wOe(e.column.columnDef.header,e.getContext()),null!==(n={asc:t.jsx(Fe,{className:"ml-3 h-4 w-4"}),desc:t.jsx(L,{className:"ml-3 h-4 w-4"})}[e.column.getIsSorted()])&&void 0!==n?n:e.column.getCanSort()?t.jsx(ot,{className:"ml-3 h-4 w-4 text-text-g-contrast-high"}):null]})},e.id)}))},e.id)))}),t.jsx(mje,{className:"overflow-y-scroll",children:k?t.jsx(gje,{className:"h-full self-stretch",children:t.jsx(bje,{colSpan:n.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full",children:t.jsxs("div",{className:"flex flex-1 h-full flex-col items-center justify-center gap-3",children:[t.jsx(On,{className:"w-8 text-secondary-120"}),"There is no information yet."]})})}):g.getRowModel().rows.map((e=>t.jsx(gje,{"data-state":e.getIsSelected()&&"selected",className:"",children:e.getVisibleCells().map((e=>t.jsx(bje,{children:wOe(e.column.columnDef.cell,e.getContext())},e.id)))},e.id)))})]})})},exports.DatePicker=r=>{var{date:n,onSelect:a,textInputProps:o,popoverContentProps:l}=r,i=o_(r,["date","onSelect","textInputProps","popoverContentProps"]);const[s,c]=e.useState(!1);return t.jsx("div",{children:t.jsxs(pMe,{modal:!0,open:s,onOpenChange:c,children:[t.jsx(fMe,{asChild:!0,children:t.jsx("div",{className:"flex",children:t.jsx(Mme,Object.assign({fullwidth:!0,id:"date-picker",readOnly:!0,label:"Date",size:"md",value:n?cje(n,"dd MMM yyyy"):s?" ":"",hasClearIcon:!1,endIcon:t.jsx(Er,{fill:"inherit",className:"cursor-pointer"})},o,{labelClassName:s_("pointer-events-none",null==o?void 0:o.labelClassName)}))})}),t.jsx(vMe,Object.assign({className:"w-auto p-0 z-[100]"},l,{children:t.jsx(_be,Object.assign({defaultMonth:n},i,{mode:"single",selected:n,onSelect:(...e)=>{null==a||a(...e),c(!1)}}))}))]})})},exports.Dialog=PEe,exports.DialogBody=SEe,exports.DialogClose=LEe,exports.DialogContent=VEe,exports.DialogDescription=qEe,exports.DialogFooter=ZEe,exports.DialogHeader=HEe,exports.DialogOverlay=IEe,exports.DialogPortal=AEe,exports.DialogTitle=NEe,exports.DialogTrigger=REe,exports.Dropdown=sye,exports.DropdownMenu=FAe,exports.DropdownMenuCheckboxItem=JAe,exports.DropdownMenuContent=XAe,exports.DropdownMenuGroup=WAe,exports.DropdownMenuItem=QAe,exports.DropdownMenuLabel=tLe,exports.DropdownMenuPortal=UAe,exports.DropdownMenuRadioGroup=$Ae,exports.DropdownMenuRadioItem=eLe,exports.DropdownMenuSeparator=rLe,exports.DropdownMenuShortcut=nLe,exports.DropdownMenuSub=GAe,exports.DropdownMenuSubContent=KAe,exports.DropdownMenuSubTrigger=YAe,exports.DropdownMenuTrigger=TAe,exports.Field=({name:r,component:n,componentProps:a,rules:o,defaultValue:l,disabled:i=!1,shouldUnregister:s=!1,id:c,describedBy:d,valuePropName:u="value",changePropName:h="onChange",blurPropName:p="onBlur",refPropName:f="ref",errorMessagePropName:v="errorMessage",invalidPropName:m="error",parseValue:y,formatValue:g,onChange:k,onBlur:b})=>{const w=e.useId(),x=c||`${r.replace(/\./g,"-")}-${w}`,{field:_,fieldState:{error:M,invalid:j}}=zSe({name:r,rules:o,disabled:i,defaultValue:l,shouldUnregister:s}),O=()=>{_.onBlur(),null==b||b()},E=g?g(_.value):_.value,z=Object.assign(Object.assign({},a),{id:x,name:_.name,disabled:i,"aria-invalid":j||void 0,"aria-describedby":d});return z[u]=E,z[h]=e=>{const t=(e=>{if(e&&"object"==typeof e&&"target"in e&&e.target&&"object"==typeof e.target){const t=e.target;return"checkbox"===t.type?t.checked:t.value}return e})(e),r=y?y(t,e):t;_.onChange(r),null==k||k(r,e)},p&&(z[p]=O),f&&(z[f]=_.ref),v&&(z[v]=null==M?void 0:M.message),m&&(z[m]=j),t.jsx(n,Object.assign({},z))},exports.FieldMessage=r=>{var{name:n,className:a}=r,o=o_(r,["name","className"]);const{getFieldState:l,formState:i}=e.useContext(CSe),{error:s}=l(n,i);return(null==s?void 0:s.message)?t.jsx("p",Object.assign({},o,{className:s_("text-sm text-input-error mt-1",a),role:"alert",children:s.message})):null},exports.FocusedScrollView=({selectedKey:r,children:n,direction:a="vertical",className:o,containerProps:l,scrollAlign:i="center"})=>{const s=e.useRef(null),c=e.useRef({});e.useEffect((()=>{r&&(e=>{const t=s.current,r=c.current[e];if(t&&r)if("vertical"===a){const e=t.getBoundingClientRect().top,n=r.getBoundingClientRect().top-e+t.scrollTop,a=t.clientHeight,o=r.offsetHeight;let l=n;"center"===i?l=n-(a/2-o/2):"end"===i&&(l=n+(o-a)),t.scrollTo({top:l,behavior:"smooth"})}else if("horizontal"===a){const e=t.getBoundingClientRect().left,n=r.getBoundingClientRect().left-e+t.scrollLeft,a=t.clientWidth,o=r.offsetWidth;let l=n;"center"===i?l=n-(a/2-o/2):"end"===i&&(l=n+(o-a)),t.scrollTo({left:l,behavior:"smooth"})}})(r)}),[r,a,i]);const d=Array.isArray(n)?n.map((t=>e.isValidElement(t)&&t.key?e.cloneElement(t,{ref:e=>{c.current[String(t.key)]=e}}):t)):n;return t.jsx("div",Object.assign({ref:s,className:`overflow-auto ${"vertical"===a?"max-h-60":"max-w-full whitespace-nowrap"} ${null!=o?o:""}`},l,{children:d}))},exports.Footer=({children:e,className:r,variant:n="default",copyright:a,center:o,leftNav:l,rightNav:i,position:s,container:c=!1,containerClassName:d,leftNavClassName:u,centerClassName:h,rightNavClassName:p})=>{const f="simple"===n,v="transparent"===n,m=l||a,y=f&&null!=a?a:o,g=f?null:i;return t.jsxs("footer",{className:s_("relative w-full px-4 py-6 box-border overflow-hidden typography-subtitle2 border-solid border-t-2 text-[var(--footer-text-color)] border-t-[var(--footer-border-color)]",f?"h-[var(--footer-height-simple)]":"h-[var(--footer-height)]",{position:s},r),children:[!v&&t.jsx("div",{className:"absolute inset-0 -z-10 bg-[var(--footer-bg-color)]","aria-hidden":!0}),t.jsx("div",{className:s_("absolute inset-0 -z-[5] pointer-events-none",r),"aria-hidden":!0}),t.jsx("div",{className:s_("relative mx-auto flex h-full items-center",f?"justify-center":"justify-between",{container:c},d),children:null!=e?e:f?t.jsx("div",{className:s_("text-center",h),children:y}):t.jsxs(t.Fragment,{children:[t.jsx("nav",{className:s_("flex w-1/2 items-center gap-x-[var(--footer-gap)] text-xl",u),children:a&&l?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"flex-shrink-0",children:a}),l]}):m}),t.jsx("div",{className:s_("flex flex-shrink-0 flex-wrap justify-center",h),children:y}),t.jsx("nav",{className:s_("flex w-1/2 justify-end gap-x-[var(--footer-gap)] text-xl",p),children:g})]})})]})},exports.Form=kZe,exports.Icon=Rme,exports.Input=Uye,exports.InputFilter=Oze,exports.Label=Tye,exports.Loading=c_,exports.MaskedTextInput=zme,exports.Menu=aye,exports.MenuItem=oye,exports.MenuLabel=iye,exports.MenuSeparator=lye,exports.Navbar=({children:r,className:n,variant:a="default",scrollShadow:o=!1,center:l,leftNav:i,rightNav:s,position:c,container:d=!1,containerClassName:u,leftNavClassName:h,centerClassName:p,rightNavClassName:f})=>{const[v,m]=e.useState(!1);e.useEffect((()=>{if(!o||"undefined"==typeof window)return;const e=()=>{m(window.scrollY>4)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),[o]);const y="transparent"===a;return t.jsxs("header",{className:s_("relative w-full px-4 py-6 h-[var(--navbar-height)] box-border overflow-hidden typography-subtitle2 border-solid border-b-2 text-[rgb(var(--navbar-text-color))] border-b-[rgb(var(--navbar-border-color))] transition-shadow duration-200",{position:c},o&&v&&"shadow-[var(--navbar-shadow-scrolled)]",n),children:[!y&&t.jsx("div",{className:"absolute inset-0 -z-10 bg-[rgb(var(--navbar-bg-color))]","aria-hidden":!0}),t.jsx("div",{className:s_("absolute inset-0 -z-[5] pointer-events-none",n),"aria-hidden":!0}),t.jsx("div",{className:s_("relative mx-auto flex h-full justify-between items-center",{container:d},u),children:r||t.jsxs(t.Fragment,{children:[t.jsx("nav",{className:s_("flex w-1/2 gap-x-[var(--navbar-gap)] text-xl",h),children:i}),t.jsx("div",{className:s_("flex flex-shrink-0 flex-wrap justify-center",p),children:l}),t.jsx("nav",{className:s_("flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl",f),children:s})]})})]})},exports.NumberInput=Lme,exports.OtpInput=hje,exports.OtpInputGroup=pje,exports.PasswordInput=Ame,exports.Popover=pMe,exports.PopoverContent=vMe,exports.PopoverTrigger=fMe,exports.ProgressBar=({progress:r=0,color:n,gradientStart:a,gradientEnd:o,animationDuration:l=.5,height:i=8,trackClassName:s,progressClassName:c})=>{const[d,u]=e.useState(0);e.useEffect((()=>{u(r)}),[r]);return t.jsx("div",{className:s_("w-full bg-grey2-transparent-16 rounded-full overflow-hidden",s),style:{height:`${i}px`},children:t.jsx("div",{className:s_("h-full rounded-full transition-all ease-out bg-primary",c),style:{width:`${d}%`,background:a&&o?`linear-gradient(to right, ${a}, ${o})`:n,transition:`width ${l}s ease-out`}})})},exports.RadioGroup=qHe,exports.RadioGroupItem=DHe,exports.Search=Mze,exports.Slider=cCe,exports.Switch=OCe,exports.THEME_COLOR_KEYS=jZe,exports.Table=fje,exports.TableBody=mje,exports.TableCaption=wje,exports.TableCell=bje,exports.TableFooter=yje,exports.TableHead=kje,exports.TableHeader=vje,exports.TableRow=gje,exports.Tabs=({tabs:r=[],value:n,initialTab:a=0,tabBarSize:o=38,enableBorderLine:l=!0,enableAddTabButton:i=!1,keepIconSpace:s=!1,disabled:c=!1,keepMounted:d=!1,tabMode:u="start",className:h,tabBarClassName:p,tabBarContainerClassName:f,tabBarWrapperClassName:v,tabButtonClassName:m,tabButtonActiveClassName:y,tabButtonActiveDisableClassName:g,tabButtonDisableClassName:k,tabContentClassName:b,addTabButtonWrapperClassName:w,borderSliderClassName:x,leftAction:_,rightAction:M,onAddTab:j,onTabChange:O})=>{var E;const[z,C]=e.useState(a),[P,R]=e.useState(null),[A,L]=e.useState({width:"0px",transform:"translateX(0px)"}),I=e.useRef([]),V=e.useRef(!0);e.useEffect((()=>{void 0!==n&&C(n)}),[n]);const H=()=>{const e=I.current[z];e&&L({width:`${e.offsetWidth}px`,transform:`translateX(${e.offsetLeft}px)`})};return e.useEffect((()=>{let e;if(V.current){V.current=!1;const t=I.current[z];t&&(L({width:"0px",transform:`translateX(${t.offsetLeft+t.offsetWidth/2}px)`}),e=setTimeout((()=>{H()}),50))}else H();const t=()=>{H()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e&&clearTimeout(e)}}),[z,r,u,s]),t.jsxs("div",{className:s_("w-full",h),children:[t.jsxs("div",{className:s_(" relative flex flex-row w-full",{"border-b-[1px] border-base-stroke":l,"border-state-disable-outline":c,"flex-1":"justify"===u},f),children:[_,t.jsx("div",{className:s_("relative flex flex-row overflow-x-auto",{"flex-1":"justify"===u},v),children:t.jsxs("div",{className:s_("tabs-scrollbar overflow-x-auto w-full",`relative flex gap-3 h-[${o}px] box-border`,{"gap-0":"justify"===u},p),style:{justifyContent:"justify"===u?"stretch":u},role:"tablist",children:[r.map(((e,r)=>{var n,a,o,l,i,d,h,p;return t.jsxs("button",{ref:e=>I.current[r]=e,role:"tab","aria-selected":r===z,"aria-controls":`tab-content-${r}`,disabled:c||e.disabled,id:`tab-${r}`,className:s_("group relative flex justify-center flex-row items-center py-3 cursor-pointer transition-colors duration-300 box-border gap-1 flex-shrink-0 typography-subtitle6",{"text-text-contrast-max":r===z,"text-text-g-contrast-medium":r!==z,"text-state-disable-outline pointer-events-none":c||e.disabled,[null!==(a=null!==(n=e.disableClassName)&&void 0!==n?n:k)&&void 0!==a?a:""]:c||e.disabled,"text-state-disable-outline":r===z&&(c||e.disabled),[null!==(l=null!==(o=e.activeDisableClassName)&&void 0!==o?o:g)&&void 0!==l?l:""]:r===z&&(c||e.disabled),[null!==(d=null!==(i=e.className)&&void 0!==i?i:m)&&void 0!==d?d:""]:!0,[null!==(p=null!==(h=e.activeClassName)&&void 0!==h?h:y)&&void 0!==p?p:""]:r===z,"flex-1":"justify"===u}),onClick:()=>{C(r),null==O||O(r)},onMouseEnter:()=>R(r),onMouseLeave:()=>R(null),children:[(s||e.startTabContent)&&t.jsx("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.isLoading?t.jsx(c_,{size:12}):e.startTabContent}),e.label,(s||e.endTabContent)&&t.jsx("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.endTabContent}),!c&&!e.disabled&&r!==z&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] rounded-[1px] bg-function-default-hover opacity-0 transition-opacity duration-150 group-hover:opacity-100"})]},r)})),t.jsx("div",{className:s_("absolute left-0 bottom-0 h-[2px] rounded-[1px] bg-function-active-solid transition-all duration-300 ease-in-out",{hidden:c||(null===(E=r[z])||void 0===E?void 0:E.disabled),"bg-function-active-hover":P===z&&!c},x),style:A})]})}),i&&t.jsx("div",{className:s_("sticky right-0 flex content-center items-center mx-4",w),children:t.jsx(Tme,{variant:"outline",size:"sm",onClick:()=>null==j?void 0:j(),disabled:c,children:t.jsx(Rme,{name:"plus"})})}),M]}),t.jsx("div",{className:s_("mt-4 text-text-g-contrast-high",b),role:"tabpanel",id:`tab-content-${z}`,"aria-labelledby":`tab-${z}`,children:r.map(((e,r)=>{var n;return d||z===r?t.jsx("div",{className:"transition "+(z===r?"block":"hidden"),children:e.content},null!==(n=e.id)&&void 0!==n?n:r):null}))})]})},exports.Text=Bme,exports.TextArea=Nme,exports.TextInput=Mme,exports.Toast=PVe,exports.ToastAction=RVe,exports.ToastClose=AVe,exports.ToastDescription=IVe,exports.ToastProvider=zVe,exports.ToastTitle=LVe,exports.ToastViewport=CVe,exports.Toaster=function(e){var{viewportClassName:r,titleClassName:n,descriptionClassName:a,contentClassName:o,iconWrapperClassName:l,actionWrapperClassName:i}=e,s=o_(e,["viewportClassName","titleClassName","descriptionClassName","contentClassName","iconWrapperClassName","actionWrapperClassName"]);const{toasts:c,position:d}=FVe();return t.jsxs(zVe,Object.assign({},s,{children:[c.map((function(e){var{id:r,title:s,description:c,action:d,contentMode:u="horizontal",iconProps:h,renderIcon:p}=e,f=o_(e,["id","title","description","action","contentMode","iconProps","renderIcon"]);const v="error"===f.variant?"circle-x":"warning"===f.variant?"circle-alert":"info"===f.variant?"info":"circle-check",m="error"===f.variant?"text-error":"warning"===f.variant?"text-warning":"info"===f.variant?"text-info":"success"===f.variant?"text-success":"text-text-g-contrast-high";return t.jsxs(PVe,Object.assign({},f,{children:[t.jsx("div",{className:s_(OVe({variant:f.variant}),l),children:p?null==p?void 0:p():t.jsx(Rme,Object.assign({type:"lucide",name:v,className:"size-[22px]"},h))}),t.jsxs("div",{className:s_(EVe({contentMode:u}),o),children:[s&&t.jsx(LVe,{className:s_(m,n),children:s}),c&&t.jsx(IVe,{className:a,children:c})]}),d?t.jsx("div",{className:s_("self-center mx-5",i),children:d}):null,t.jsx(AVe,{})]}),r)})),t.jsx(CVe,{position:d,className:r})]}))},exports.Tooltip=vIe,exports.TooltipArrow=yIe,exports.TooltipContent=gIe,exports.TooltipProvider=fIe,exports.TooltipSimple=function(e){var{children:r,content:n,open:a,defaultOpen:o,onOpenChange:l}=e,i=o_(e,["children","content","open","defaultOpen","onOpenChange"]);return t.jsx(fIe,{children:t.jsxs(vIe,{open:a,defaultOpen:o,onOpenChange:l,children:[t.jsx(mIe,{asChild:!0,children:r}),t.jsxs(gIe,Object.assign({side:"top",align:"center"},i,{children:[n,t.jsx(yIe,{width:11,height:5})]}))]})})},exports.TooltipTrigger=mIe,exports.Tree=({classes:r,data:n,defaultExpandedId:a,defaultCheckedId:o,checkedId:l,loadingId:i,lineSize:s,horizontalLineWidth:c,expandButtonSize:d,spacing:u,renderIcon:h,renderRightSection:p,renderElement:f,renderTitle:v,onExpandChange:m,onCheckedChange:y,onClickItem:g,onCheckedItem:k,defaultExpandAll:b=!1,defaultCheckAll:w=!1,hierarchicalCheck:x=!1,showIcon:_=!0,disabled:M,enableSeparatorLine:j=!0,checkable:O=!0,maxLevel:E,mode:z="checkbox",autoDisabled:C=!1,checkedAll:P=!1})=>{const[R,A]=e.useState({}),[L,I]=e.useState({}),V=(e,t)=>{e.forEach((e=>{t(e),e.children&&V(e.children,t)}))};e.useEffect((()=>{if(n.length&&b){const e={};V(n,(t=>{e[t.id]=!0})),I(e)}else if(null==a?void 0:a.length){const e=a.reduce(((e,t)=>(e[t]=!0,e)),{});I(e)}}),[n,a,b]),e.useEffect((()=>{var e;if(n.length&&w){const e={};V(n,(t=>{e[t.id]=!0})),A(e)}else if(0===(null===(e=Object.keys(R))||void 0===e?void 0:e.length)&&(null==o?void 0:o.length)){const e=o.reduce(((e,t)=>(e[t]=!0,e)),{});A(e)}}),[n,o,w]),e.useEffect((()=>{void 0!==l&&A(l.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!0})),{}))}),[l]),e.useEffect((()=>{if(!x)return;const e={},t=(r,a)=>{V(n,(n=>{n.id===r&&n.children&&n.children.forEach((r=>{e[r.id]=a,t(r.id,a)}))}))};A((r=>(Object.keys(r).filter((e=>r[e])).map((e=>{t(e,!0)})),Object.assign(Object.assign({},r),e))))}),[n,x]);const H=WVe(P);e.useEffect((()=>{if(void 0!==H&&H!==P)if(P){const e={};V(n,(t=>{t.id&&(e[t.id]=!0)})),A(e),null==y||y(e,void 0,null)}else{let e={};A((t=>(e=Object.keys(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!1})),{}),e))),null==y||y(e,void 0,null)}}),[n,P,H]);const S=e.useCallback(((e,t,r)=>{null==m||m(e,t,r),I((r=>Object.assign(Object.assign({},r),{[e]:t})))}),[m]),Z=e.useCallback(((e,t,r)=>{if("radio"===z){let n={[e]:t};return null==k||k(e,t,r),A(n),void(null==y||y(n,e,r))}null==k||k(e,t,r);let a=Object.assign(Object.assign({},R),{[e]:t});if(x){a=((e,t,r)=>{r[e]=t;const a=(e,t)=>{V(n,(n=>{n.id===e&&n.children&&n.children.forEach((e=>{r[e.id]=t,a(e.id,t)}))}))},o=(e,t)=>{V(n,(r=>{var n;if(null===(n=r.children)||void 0===n?void 0:n.some((t=>t.id===e))){const e=r.children.every((e=>t[e.id]));t[r.id]=e,o(r.id,t)}}))};return a(e,t),o(e,r),r})(e,t,a)}A(a),y&&(null==y||y(a,e,r))}),[R,n,y,x,k,z,C]),N=e.useCallback((e=>!!L[e]),[L]),q=e.useCallback((e=>l?l.includes(e):!!R[e]),[l,R]),D=e.useCallback((e=>{if(i)return i.includes(e)}),[i]),B=e.useCallback((e=>{var t;return!(!C||!Object.values(R).filter(Boolean).length)&&(null!==(t=!(null==R?void 0:R[e])||M)&&void 0!==t&&t)}),[R,M,C]);return t.jsx("div",{className:s_("w-full",null==r?void 0:r.container),children:n.map(((e,a)=>t.jsx(TVe,Object.assign({classes:r,isFirstLevel:!0,isLastItem:a===n.length-1,checkIsExpanded:N,checkIsChecked:q,onExpandChange:S,onCheckedChange:Z,checkAutoDisabled:B,checkIsLoading:D,renderIcon:h,renderElement:f,renderTitle:v,renderRightSection:p,enableSeparatorLine:j,disabled:B(e.id),showIcon:_,lineSize:s,horizontalLineWidth:c,expandButtonSize:d,spacing:u,notifyClickItem:g,maxLevel:E,currentLevel:1,checkable:O},e),e.id)))})},exports.TreeItem=TVe,exports.ValidationHintList=({values:e,rules:r,mode:n=["pending","valid","invalid"],className:a,itemClassName:o,labelStateClassName:l,iconStateClassName:i})=>{const s=new Set(n);return t.jsx("ul",{className:s_("mt-2 flex flex-col gap-3",a),children:r.map((r=>{const n=((e,t)=>!t.when||t.when(e)?t.validate(e)?"valid":"invalid":"pending")(e,r),a=s.has(n)?n:"pending";return t.jsxs("li",{className:s_("flex items-center gap-2 typography-small2 ",bZe[a],null==l?void 0:l[a],o),children:[t.jsx(UV,{className:s_("size-4",wZe[a],null==i?void 0:i[a])}),t.jsx("span",{children:r.label})]},r.id)}))})},exports.cn=s_,exports.createControlledForm=gZe,exports.createYupResolver=yZe,exports.getEndDateOfDay=MZe,exports.getLucideIconNames=async function(){const{default:e}=await Promise.resolve().then((function(){return zZe}));return Object.keys(e)},exports.getStartDateOfDay=_Ze,exports.getStartEndTimestampOfDay=()=>{const e=_Ze(new Date);return{startTime:e,endTime:MZe(e)}},exports.getThemeColor=OZe,exports.getThemeColors=function(e=Object.keys(jZe),t){return e.reduce(((e,r)=>(e[r]=OZe(r,t),e)),{})},exports.getTimestampUTC=e=>{const t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return xZe(t)},exports.reducer=ZVe,exports.resloveTimestamp=xZe,exports.srgbToHex=e=>{if(e.startsWith("color(")){const t=e.match(/([\d.]+)/g);if(t&&t.length>=3){const[e,r,n]=t.slice(0,3).map((e=>Math.round(255*parseFloat(e))));let a=`#${[e,r,n].map((e=>("0"+e.toString(16)).slice(-2))).join("")}`;if(4===t.length){a+=("0"+Math.round(255*parseFloat(t[3])).toString(16)).slice(-2)}return a}}else{if(e.startsWith("#"))return e;{const t=e.match(/\d+/g);if(t&&t.length>=3)return`#${t.slice(0,3).map((e=>("0"+parseInt(e).toString(16)).slice(-2))).join("")}`}}return e},exports.toast=BVe,exports.useControlledForm=({defaultValues:e,controllerRef:t,resolver:r,validationSchema:n,mode:a="onSubmit",reValidateMode:o="onChange"})=>{const l=uZe({defaultValues:e,resolver:null!=r?r:n?yZe(n):void 0,mode:a,reValidateMode:o});return gZe({methods:l,defaultValues:e,controllerRef:t})},exports.useOptionBridge=({options:t,loading:r=!1,buildFallbackOption:n})=>{const a=e.useMemo((()=>new Map(t.map((e=>[e.value,e])))),[t]),o=e=>{if(null!=e)return a.get(e)};return{toOption:o,toOptionWithFallback:e=>{var t;if(null!=e)return null!==(t=o(e))&&void 0!==t?t:null==n?void 0:n(e,r)},toValue:e=>null==e?void 0:e.value,optionsByValue:a}},exports.usePrevious=WVe,exports.useToast=FVe;
|
|
9276
9276
|
//# sourceMappingURL=bundle.js.map
|