@rovula/ui 0.1.29 → 0.1.30

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.
@@ -9244,7 +9244,7 @@ import*as e from"react";import t,{forwardRef as r,useRef as n,useCallback as a,c
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 Ume=Gx("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 Gme=Object.freeze({__proto__:null,default:Ume});const Yme=r(((e,t)=>{var{id:r,label:o,size:i="md",rounded:s="normal",variant:c="outline",type:d="text",iconMode:u="flat",helperText:h,errorMessage:f,warningMessage:p,status:v,fullwidth:m=!0,disabled:y=!1,error:g=!1,warning:b=!1,required:k=!0,isFloatingLabel:w=!0,keepCloseIconOnValue:M=!1,keepFooterSpace:j=!0,hasClearIcon:E=!0,hasSearchIcon:O=!1,startIcon:C,endIcon:z,labelClassName:P,onClickStartIcon:R,onClickEndIcon:A,renderStartIcon:I,renderEndIcon:L,classes:S,normalize:V,format:H,trimOnCommit:N,normalizeOnCommit:Z,placeholder:D}=e,B=zx(e,["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","placeholder"]);const q=n(null),T=r||`${d}-${o}-input`,F=function(...e){const t=n();return t.current=function(...e){return t=>{e.forEach((e=>{e&&("function"==typeof e?e(t):e.current=t)}))}}(...e),a((e=>{var r;null===(r=t.current)||void 0===r||r.call(t,e)}),[])}(t,q),W=!!C||!!I,$=!!z||!!L,U=v||(g||f?"error":b||p?"warning":"default"),G="error"===U,Y="warning"===U,K="error"===U?f:"warning"===U?p:h,X=Sx({size:i,rounded:s,variant:c,fullwidth:m,disabled:y,error:G,warning:Y,hasSearchIcon:"flat"===u&&W||O,hasClearIcon:"flat"===u&&$||E,leftSectionIcon:"solid"===u&&W,rightSectionIcon:"solid"===u&&$,floatingLabelPlaceholder:w}),Q=Vx({size:i,disabled:y,error:G,hasSearchIcon:"flat"===u&&W||O,hasLeftSectionIcon:"solid"===u&&W,isFloatingLabel:w}),J=Hx({size:i,error:G,warning:Y,disabled:y}),ee=Zx({size:i}),te=Dx({size:i}),re=Bx({size:i}),ne=qx({size:i}),ae=Tx({size:i,rounded:s,error:G,warning:Y,position:"start"}),oe=Tx({size:i,rounded:s,error:G,warning:Y,position:"end"}),le=a((e=>{var t;V&&(e.target.value=V(e.target.value)),null===(t=B.onChange)||void 0===t||t.call(B,e)}),[V,B.onChange]),ie=a((e=>{var t;const r=e.currentTarget;let n=r.value;N&&(n=n.trim()),Z&&(n=Z(n)),n!==r.value&&(r.value=n,null===(t=B.onChange)||void 0===t||t.call(B,Object.assign(Object.assign({},e),{target:r})))}),[N,Z,B.onChange]),se=a((e=>{var t;(N||Z)&&ie(e),null===(t=B.onBlur)||void 0===t||t.call(B,e)}),[N,Z,ie,B.onBlur]),ce=a((e=>{var t;(N||Z)&&"Enter"===e.key&&ie(e),null===(t=B.onKeyDown)||void 0===t||t.call(B,e)}),[N,Z,ie,B.onKeyDown]),de=H&&"string"==typeof B.value?H(B.value):B.value,ue=a((()=>{q.current&&(q.current.value="",B.onChange&&(new Event("input",{bubbles:!0}),B.onChange({target:{value:""}})))}),[B.onChange]),he=a((()=>{y||(null==R||R(),q.current&&q.current.focus())}),[y,R]),fe=a((()=>{y||(null==A||A(),q.current&&q.current.focus())}),[y,A]),pe=l((()=>{if(W)return _("div",I?{className:Ax(te,"flex",null==S?void 0:S.iconSearchWrapper),children:I()}:"flat"===u?{className:Ax(te,null==S?void 0:S.iconSearchWrapper),children:_("div",{className:Ax(re,null==S?void 0:S.icon),onClick:he,children:C})}:{className:Ax(ae,null==S?void 0:S.startIconWrapper),onClick:he,children:C})}),[W,C,u,te,ae,re,I,he]),ve=l((()=>{if($)return _("div",L?{className:Ax(ee,"flex",null==S?void 0:S.iconWrapper),children:L()}:"flat"===u?{className:Ax(ee,"flex",null==S?void 0:S.iconWrapper),children:_("div",{className:Ax(re,null==S?void 0:S.icon),onClick:fe,children:z})}:{className:Ax(oe,null==S?void 0:S.endIconWrapper),onClick:fe,children:z})}),[$,z,u,ee,oe,re,L,fe]),me=w||null!=o&&""!==String(o);return x("div",{className:"inline-flex flex-col "+(m?"w-full":""),children:[x("div",{className:"relative",children:[_("input",Object.assign({},B,{placeholder:w?" ":null!=D?D:"",ref:F,type:d,id:T,disabled:y,value:de,className:Ax(X,B.className),onChange:V?le:B.onChange,onBlur:N||Z?se:B.onBlur,onKeyDown:N||Z?ce:B.onKeyDown})),O&&!W&&_("div",{className:Ax(te,null==S?void 0:S.iconSearchWrapper),children:_(Jne,{className:Ax(ne,null==S?void 0:S.icon)})}),pe,E&&!$&&_("div",{className:Ax(ee,null==S?void 0:S.iconWrapper),style:{display:M&&B.value?"flex":void 0},children:_(xH,{className:Ax(re,null==S?void 0:S.icon),onMouseDown:ue})}),ve,me&&x("label",{htmlFor:T,className:Ax(Q,P),children:[o," ",k&&_("span",{className:Ax("text-input-error",{"text-input-disable-text":y}),children:"*"})]})]}),(K||j)&&x("span",{className:J,children:[K&&_("span",{className:"h-full shrink-0",children:_(XS,{width:14,height:14,className:Ax("fill-none stroke-current",G?"text-input-error":Y?"text-warning":"text-input-filled-text")})}),j&&!K&&_("span",{className:"block min-h-[14px]","aria-hidden":!0}),K||""]})]})})),Kme={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"}},Xme=(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},Qme=(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},Jme=r(((e,r)=>{var{mask:o,maskChar:l="_",showMask:d=!0,guide:u=!0,keepCharPositions:h=!1,rules:f,onMaskedChange:p,onChange:v,value:m,defaultValue:y}=e,g=zx(e,["mask","maskChar","showMask","guide","keepCharPositions","rules","onMaskedChange","onChange","value","defaultValue"]);const b=n(null),[k,w]=i(""),[x,M]=i(""),j=t.useMemo((()=>o?((e,t)=>{const r=Object.assign(Object.assign({},Kme),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})(o,f):null),[o,f]);s((()=>{const e=m||y||"";if(j&&e){const t=Xme(e,j,l,d,u),r=Qme(t,j);w(t),M(r)}else w(e),M(e)}),[j,l,d,u,m,y]),c(r,(()=>null==b?void 0:b.current));const E=a((e=>{const t=e.target.value;if(!j)return w(t),M(t),null==v||v(e),void(null==p||p(t,t));const r=Xme(t,j,l,d,u),n=Qme(r,j);w(r),M(n);const a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:r})});null==v||v(a),null==p||p(r,n),setTimeout((()=>{if(b.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,j);b.current.setSelectionRange(t,t)}}),0)}),[j,l,d,u,v,p]),O=a((e=>{var t,r,n;if(!j)return void(null===(t=g.onKeyDown)||void 0===t||t.call(g,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=g.onKeyDown)||void 0===r||r.call(g,e));let s=i;for(;s<j.length&&j[s].isLiteral;)s++;if(s<j.length){const t=j[s];if(!(t.validator?t.validator(a):t.pattern.test(a)))return void e.preventDefault()}null===(n=g.onKeyDown)||void 0===n||n.call(g,e)}),[j,g]);return _(Yme,Object.assign({},g,{ref:b,value:k,onChange:E,onKeyDown:O,className:Ax(g.className)}))}));async function eye(){const{default:e}=await Promise.resolve().then((function(){return EUe}));return Object.keys(e)}Jme.displayName="MaskedTextInput";const tye=j(["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"}}),rye={sm:16,md:24,lg:32},nye=e=>{var{name:r,type:n="heroicons",color:a="inherit",variant:o="solid",size:l="md",className:i}=e,s=zx(e,["name","type","color","variant","size","className"]);const[c,d]=t.useState(null);if(t.useEffect((()=>{if("lucide"===n)return void Promise.resolve().then((function(){return EUe})).then((({default:e})=>{const t=e[r];t?t().then((e=>{d((()=>e.default))})):console.warn(`Lucide icon "${r}" not found.`)}));const e=((e,t,r)=>{var n,a;return null===(a=null===(n=wx[e])||void 0===n?void 0:n[t])||void 0===a?void 0:a[r]})(n,r,o);e?d((()=>e)):console.warn(`Icon "${r}" from "${n}" not found.`)}),[r,n,o]),"lucide"===n){if(!c)return _("span",{className:Ax(tye({color:a,size:l}),i)});const e="inherit"===l?24:rye[l];return _(c,Object.assign({},s,{size:e,strokeWidth:e<=16?1.5:2,absoluteStrokeWidth:!0,shapeRendering:"geometricPrecision",className:Ax(tye({color:a,size:l}),"stroke-current",i)}))}return _(c||"svg",Object.assign({className:Ax(tye({color:a,size:l}),i)},s))},aye=r(((e,t)=>{var r,{showToggle:a=!0,hasClearIcon:o=!1,hideIcon:l,showIcon:s,endIcon:d,renderEndIcon:u,onClickEndIcon:h}=e,f=zx(e,["showToggle","hasClearIcon","hideIcon","showIcon","endIcon","renderEndIcon","onClickEndIcon"]);const p=n(null),[v,m]=i(!1);c(t,(()=>null==p?void 0:p.current));const y=v?null!=s?s:_(nye,{name:"eye",type:"lucide",size:"inherit",className:"size-full","aria-label":"Hide password"}):null!=l?l:_(nye,{name:"eye-closed",type:"lucide",size:"inherit",className:"size-full","aria-label":"Show password"});return _(Yme,Object.assign({iconMode:"flat"},f,{ref:p,type:v?"text":"password",hasClearIcon:o,endIcon:a?y:d,renderEndIcon:u,onClickEndIcon:a?()=>{var e;f.disabled||(m((e=>!e)),null===(e=p.current)||void 0===e||e.focus(),null==h||h())}:h,autoComplete:null!==(r=f.autoComplete)&&void 0!==r?r:"current-password"}))}));aye.displayName="PasswordInput";const oye=r(((e,r)=>{var o,{value:l,defaultValue:s,min:d,max:u,step:h=1,precision:f,hideControls:p=!1,allowDecimal:v=!0,allowNegative:m=!0,formatDisplay:y=!1,thousandSeparator:g=",",decimalSeparator:b=".",prefix:k="",suffix:w="",disabled:M=!1,onChange:j,onValueChange:E,className:O,size:C="md"}=e,z=zx(e,["value","defaultValue","min","max","step","precision","hideControls","allowDecimal","allowNegative","formatDisplay","thousandSeparator","decimalSeparator","prefix","suffix","disabled","onChange","onValueChange","className","size"]);const P=n(null),[R,A]=i((null!==(o=null!=l?l:s)&&void 0!==o?o:"").toString()),[I,L]=i(!1);c(r,(()=>null==P?void 0:P.current));const S=a((e=>{let t=e;return k&&(t=t.replace(k,"")),w&&(t=t.replace(w,"")),g&&(t=t.split(g).join("")),"."!==b&&(t=t.replace(b,".")),t.trim()}),[k,w,g,b]),V=a((e=>{if(!y||""===e||"-"===e)return e;const t=parseFloat(e);if(isNaN(t))return e;let r=t.toString();void 0!==f&&(r=t.toFixed(f));const n=r.split(".");let a=n[0];const o=n[1];return g&&(a=a.replace(/\B(?=(\d{3})+(?!\d))/g,g)),r=o?`${a}${b}${o}`:a,k&&(r=`${k}${r}`),w&&(r=`${r}${w}`),r}),[y,f,g,b,k,w]),H=a((e=>{if(""===e||"-"===e)return e;let t=parseFloat(e);return isNaN(t)?R:(void 0!==d&&t<d&&(t=d),void 0!==u&&t>u&&(t=u),void 0!==f&&(t=parseFloat(t.toFixed(f))),t.toString())}),[d,u,f,R]),N=a((e=>{let t=e.target.value;if(y&&(t=S(t)),""===t)return A(""),null==j||j(void 0),void(null==E||E(""));if(m&&"-"===t)return A("-"),void(null==E||E("-"));if(!(v?m?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/:m?/^-?\d*$/:/^\d*$/).test(t))return;A(t),null==E||E(t);const r=parseFloat(t);isNaN(r)||null==j||j(r)}),[v,m,y,S,j,E]),Z=a((e=>{var t;L(!0),null===(t=z.onFocus)||void 0===t||t.call(z,e)}),[z]),D=a((e=>{var t;L(!1);const r=H(R);A(r);const n=parseFloat(r);isNaN(n)||null==j||j(n),null===(t=z.onBlur)||void 0===t||t.call(z,e)}),[R,H,j,z]),B=a((e=>{if(M)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(R)||0)+h;void 0!==u&&t>u&&(t=u);const r=H(t.toString());A(r),null==j||j(parseFloat(r)),null==E||E(r)}),[R,h,u,M,H,j,E]),q=a((e=>{if(M)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(R)||0)-h;void 0!==d&&t<d&&(t=d);const r=H(t.toString());A(r),null==j||j(parseFloat(r)),null==E||E(r)}),[R,h,d,M,H,j,E]),T=a((e=>{var t;switch(e.key){case"ArrowUp":B(e);break;case"ArrowDown":q(e);break;case"Enter":e.currentTarget.blur()}null===(t=z.onKeyDown)||void 0===t||t.call(z,e)}),[B,q,z]);t.useEffect((()=>{void 0!==l&&A(l.toString())}),[l]);const F=t.useMemo((()=>I||!y?R:V(R)),[I,y,R,V]),W={sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6"}[C],$={sm:"absolute top-0.5",md:"absolute top-1",lg:"absolute top-1"}[C];return _(Yme,Object.assign({},z,{ref:P,type:"text",inputMode:"decimal",value:F,onChange:N,onFocus:Z,onBlur:D,onKeyDown:T,disabled:M,size:C,hasClearIcon:!1,endIcon:p?null:x("div",{className:Ax("flex flex-col","flat"===z.iconMode&&$),children:[_("button",{type:"button",onClick:B,disabled:M||void 0!==u&&parseFloat(R)>=u,className:Ax(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:_(Fn,{className:W})}),_("button",{type:"button",onClick:q,disabled:M||void 0!==d&&parseFloat(R)<=d,className:Ax(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:_(Vn,{className:W})})]}),className:Ax(O)}))}));oye.displayName="NumberInput";const lye=j(["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}}),iye=j(["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}}),sye=j(["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"}}),cye=j(["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"}}),dye=j(["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}}),uye=r(((e,t)=>{var{id:r,label:o,size:i="md",rounded:s="normal",variant:d="outline",helperText:u,errorMessage:h,fullwidth:f=!0,disabled:p=!1,error:v=!1,required:m=!0,isFloatingLabel:y=!0,keepCloseIconOnValue:g=!1,hasClearIcon:b=!0,labelClassName:k,className:w,normalize:M,format:j,trimOnCommit:E,normalizeOnCommit:O}=e,C=zx(e,["id","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","required","isFloatingLabel","keepCloseIconOnValue","hasClearIcon","labelClassName","className","normalize","format","trimOnCommit","normalizeOnCommit"]);const z=n(null),P=r||`textarea-${null!=o?o:""}`;c(t,(()=>null==z?void 0:z.current));const R=a((e=>{var t;M&&(e.target.value=M(e.target.value)),null===(t=C.onChange)||void 0===t||t.call(C,e)}),[M,C.onChange]),A=a((e=>{var t;const r=e.currentTarget;let n=r.value;E&&(n=n.trim()),O&&(n=O(n)),n!==r.value&&(r.value=n,null===(t=C.onChange)||void 0===t||t.call(C,Object.assign(Object.assign({},e),{target:r})))}),[E,O,C.onChange]),I=a((e=>{var t;(E||O)&&A(e),null===(t=C.onBlur)||void 0===t||t.call(C,e)}),[E,O,A,C.onBlur]),L=j&&"string"==typeof C.value?j(C.value):C.value,S=l((()=>"inline-flex flex-col "+(f?"w-full":"")),[f]),V=lye({size:i,rounded:s,variant:d,fullwidth:f,disabled:p,error:v,hasClearIcon:b,isFloatingLabel:y});return x("div",{className:S,children:[x("div",{className:"relative",children:[_("textarea",Object.assign({},C,{id:P,ref:z,disabled:p,placeholder:y?" ":C.placeholder,className:Ax(V,w),value:L,onChange:M?R:C.onChange,onBlur:E||O?I:C.onBlur})),b&&_("div",{className:sye({size:i}),style:{display:g&&C.value?"flex":void 0},children:_(vu,{type:"button",className:cye({size:i}),onMouseDown:e=>{if(e.preventDefault(),z.current){const e=z.current.value;z.current.value="",C.onChange&&""!==e&&C.onChange({target:{value:""}}),z.current.focus()}}})}),o&&x("label",{htmlFor:P,className:Ax(iye({size:i,disabled:p,error:v,isFloatingLabel:y}),k),children:[o," ",m&&_("span",{className:Ax("text-error",{"text-input-disable-text":p}),children:"*"})]})]}),(h||u)&&_("span",{className:dye({size:i,disabled:p,error:v}),children:h||u})]})})),hye=j(["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"}}}),fye={subtitile1:"subtitle1",subtitile2:"subtitle2",subtitile3:"subtitle3",subtitile4:"subtitle4",subtitile5:"subtitle5",subtitile6:"subtitle6"},pye=r(((e,t)=>{var r,{variant:n="body1",tag:a="p",children:o,className:l="",color:i,style:s}=e,c=zx(e,["variant","tag","children","className","color","style"]);const d=null!==(r=fye[n])&&void 0!==r?r:n;return _(a,Object.assign({ref:t,className:Ax(`typography-${d}`,hye({color:i}),l),style:s},c,{children:o}))})),vye=j(["box-border flex items-center justify-center outline-none focus-visible:outline-none"],{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","focus-visible:ring-none focus-visible:ring-offset-2 focus-visible:ring-[var(--action-button-solid-default-border)]"],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)]","focus-visible:ring-none focus-visible:ring-[var(--action-button-outline-default-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","focus-visible:ring-none focus-visible:ring-offset-2 focus-visible:ring-[var(--action-button-icon-default-border)]"]},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","focus-visible:ring-[var(--action-button-solid-active-border)]"]},{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)]","focus-visible:ring-[var(--action-button-outline-active-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","focus-visible:ring-[var(--action-button-icon-active-border)]"]},{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}}),mye=r(((e,t)=>{var{children:r,disabled:n,active:a,className:o,size:l,shape:i,variant:s}=e,c=zx(e,["children","disabled","active","className","size","shape","variant"]);const d=vye({size:l,shape:i,variant:s,active:a,disabled:n});return _("button",Object.assign({},c,{ref:t,type:"button","aria-disabled":n||void 0,disabled:n,tabIndex:n?-1:0,className:Ax(".action-button",d,o),children:r}))})),yye=({tabs:e=[],value:t,initialTab:r=0,tabBarSize:a=38,enableBorderLine:o=!0,enableAddTabButton:l=!1,keepIconSpace:c=!1,disabled:d=!1,keepMounted:u=!1,tabMode:h="start",className:f,tabBarClassName:p,tabBarContainerClassName:v,tabBarWrapperClassName:m,tabButtonClassName:y,tabButtonActiveClassName:g,tabButtonActiveDisableClassName:b,tabButtonDisableClassName:k,tabContentClassName:w,addTabButtonWrapperClassName:M,borderSliderClassName:j,leftAction:E,rightAction:O,onAddTab:C,onTabChange:z})=>{var P;const[R,A]=i(r),[I,L]=i(null),[S,V]=i({width:"0px",transform:"translateX(0px)"}),H=n([]),N=n(!0);s((()=>{void 0!==t&&A(t)}),[t]);const Z=()=>{const e=H.current[R];e&&V({width:`${e.offsetWidth}px`,transform:`translateX(${e.offsetLeft}px)`})};return s((()=>{let e;if(N.current){N.current=!1;const t=H.current[R];t&&(V({width:"0px",transform:`translateX(${t.offsetLeft+t.offsetWidth/2}px)`}),e=setTimeout((()=>{Z()}),50))}else Z();const t=()=>{Z()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e&&clearTimeout(e)}}),[R,e,h,c]),x("div",{className:Ax("w-full",f),children:[x("div",{className:Ax(" relative flex flex-row w-full",{"border-b-[1px] border-base-stroke":o,"border-state-disable-outline":d,"flex-1":"justify"===h},v),children:[E,_("div",{className:Ax("relative flex flex-row overflow-x-auto",{"flex-1":"justify"===h},m),children:x("div",{className:Ax("tabs-scrollbar overflow-x-auto w-full",`relative flex gap-3 h-[${a}px] box-border`,{"gap-0":"justify"===h},p),style:{justifyContent:"justify"===h?"stretch":h},role:"tablist",children:[e.map(((e,t)=>{var r,n,a,o,l,i,s,u;return x("button",{ref:e=>H.current[t]=e,role:"tab","aria-selected":t===R,"aria-controls":`tab-content-${t}`,disabled:d||e.disabled,id:`tab-${t}`,className:Ax("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":t===R,"text-text-g-contrast-medium":t!==R,"text-state-disable-outline pointer-events-none":d||e.disabled,[null!==(n=null!==(r=e.disableClassName)&&void 0!==r?r:k)&&void 0!==n?n:""]:d||e.disabled,"text-state-disable-outline":t===R&&(d||e.disabled),[null!==(o=null!==(a=e.activeDisableClassName)&&void 0!==a?a:b)&&void 0!==o?o:""]:t===R&&(d||e.disabled),[null!==(i=null!==(l=e.className)&&void 0!==l?l:y)&&void 0!==i?i:""]:!0,[null!==(u=null!==(s=e.activeClassName)&&void 0!==s?s:g)&&void 0!==u?u:""]:t===R,"flex-1":"justify"===h}),onClick:()=>{A(t),null==z||z(t)},onMouseEnter:()=>L(t),onMouseLeave:()=>L(null),children:[(c||e.startTabContent)&&_("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.isLoading?_(Ix,{size:12}):e.startTabContent}),e.label,(c||e.endTabContent)&&_("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.endTabContent}),!d&&!e.disabled&&t!==R&&_("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"})]},t)})),_("div",{className:Ax("absolute left-0 bottom-0 h-[2px] rounded-[1px] bg-function-active-solid transition-all duration-300 ease-in-out",{hidden:d||(null===(P=e[R])||void 0===P?void 0:P.disabled),"bg-function-active-hover":I===R&&!d},j),style:S})]})}),l&&_("div",{className:Ax("sticky right-0 flex content-center items-center mx-4",M),children:_(mye,{variant:"outline",size:"sm",onClick:()=>null==C?void 0:C(),disabled:d,children:_(nye,{name:"plus"})})}),O]}),_("div",{className:Ax("mt-4 text-text-g-contrast-high",w),role:"tabpanel",id:`tab-content-${R}`,"aria-labelledby":`tab-${R}`,children:e.map(((e,t)=>{var r;return u||R===t?_("div",{className:"transition "+(R===t?"block":"hidden"),children:e.content},null!==(r=e.id)&&void 0!==r?r:t):null}))})]})},gye="undefined"!=typeof document?t.useLayoutEffect:()=>{};const bye=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},kye=e=>{if(e&&"window"in e&&e.window===e)return e;return bye(e).defaultView||window};function wye(e){let t=null;return()=>(null==t&&(t=e()),t)}const _ye=wye((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}(/^Mac/i)})),xye=wye((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));class Mye{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function jye(e){let t=n({isFocused:!1,observer:null});gye((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=function(e){const t=n(null);return gye((()=>{t.current=e}),[e]),a(((...e)=>{const r=t.current;return null==r?void 0:r(...e)}),[])}((t=>{null==e||e(t)}));return a((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,a=e=>{t.current.isFocused=!1,n.disabled&&r(new Mye("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let Eye=null,Oye=new Set,Cye=new Map,zye=!1,Pye=!1;const Rye={Tab:!0,Escape:!0};function Aye(e,t){for(let r of Oye)r(e,t)}function Iye(e){zye=!0,function(e){return!(e.metaKey||!_ye()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Eye="keyboard",Aye("keyboard",e))}function Lye(e){Eye="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(zye=!0,Aye("pointer",e))}function Sye(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(xye()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(zye=!0,Eye="virtual")}function Vye(e){e.target!==window&&e.target!==document&&(zye||Pye||(Eye="virtual",Aye("virtual",e)),zye=!1,Pye=!1)}function Hye(){zye=!1,Pye=!0}function Nye(e){if("undefined"==typeof window||Cye.get(kye(e)))return;const t=kye(e),r=bye(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){zye=!0,n.apply(this,arguments)},r.addEventListener("keydown",Iye,!0),r.addEventListener("keyup",Iye,!0),r.addEventListener("click",Sye,!0),t.addEventListener("focus",Vye,!0),t.addEventListener("blur",Hye,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",Lye,!0),r.addEventListener("pointermove",Lye,!0),r.addEventListener("pointerup",Lye,!0)):(r.addEventListener("mousedown",Lye,!0),r.addEventListener("mousemove",Lye,!0),r.addEventListener("mouseup",Lye,!0)),t.addEventListener("beforeunload",(()=>{Zye(e)}),{once:!0}),Cye.set(t,{focus:n})}const Zye=(e,t)=>{const r=kye(e),n=bye(e);t&&n.removeEventListener("DOMContentLoaded",t),Cye.has(r)&&(r.HTMLElement.prototype.focus=Cye.get(r).focus,n.removeEventListener("keydown",Iye,!0),n.removeEventListener("keyup",Iye,!0),n.removeEventListener("click",Sye,!0),r.removeEventListener("focus",Vye,!0),r.removeEventListener("blur",Hye,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",Lye,!0),n.removeEventListener("pointermove",Lye,!0),n.removeEventListener("pointerup",Lye,!0)):(n.removeEventListener("mousedown",Lye,!0),n.removeEventListener("mousemove",Lye,!0),n.removeEventListener("mouseup",Lye,!0)),Cye.delete(r))};function Dye(){return"pointer"!==Eye}"undefined"!=typeof document&&function(e){const t=bye(e);let r;"loading"!==t.readyState?Nye(e):(r=()=>{Nye(e)},t.addEventListener("DOMContentLoaded",r))}();const Bye=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qye(e,t,r){Nye(),s((()=>{let t=(t,n)=>{(function(e,t,r){var n;const a="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLElement:HTMLElement,i="undefined"!=typeof window?kye(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof a&&!Bye.has(null==r||null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof o||(null==r?void 0:r.target)instanceof l&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof i&&!Rye[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(Dye())};return Oye.add(t),()=>{Oye.delete(t)}}),t)}let Tye=!1,Fye=0;function Wye(){Tye=!0,setTimeout((()=>{Tye=!1}),50)}function $ye(e){"touch"===e.pointerType&&Wye()}function Uye(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",$ye):document.addEventListener("touchend",Wye),Fye++,()=>{Fye--,Fye>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",$ye):document.removeEventListener("touchend",Wye))}}function Gye(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:a,isDisabled:o}=e,[c,d]=i(!1),u=n({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s(Uye,[]);let{hoverProps:h,triggerHoverEnd:f}=l((()=>{let e=(e,n)=>{if(u.pointerType=n,o||"touch"===n||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let a=e.currentTarget;u.target=a,t&&t({type:"hoverstart",target:a,pointerType:n}),r&&r(!0),d(!0)},n=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let n=e.currentTarget;a&&a({type:"hoverend",target:n,pointerType:t}),r&&r(!1),d(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{Tye&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(l.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||Tye||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:l,triggerHoverEnd:n}}),[t,r,a,o,u]);return s((()=>{o&&f({currentTarget:u.target},u.pointerType)}),[o]),{hoverProps:h,isHovered:c}}function Yye(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,l=n({isFocused:!1,isFocusVisible:t||Dye()}),[s,c]=i(!1),[d,u]=i((()=>l.current.isFocused&&l.current.isFocusVisible)),h=a((()=>u(l.current.isFocused&&l.current.isFocusVisible)),[]),f=a((e=>{l.current.isFocused=e,c(e),h()}),[h]);qye((e=>{l.current.isFocusVisible=e,h()}),[],{isTextInput:r});let{focusProps:p}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const l=a((e=>{if(e.target===e.currentTarget)return n&&n(e),o&&o(!1),!0}),[n,o]),i=jye(l),s=a((e=>{const t=bye(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),o&&o(!0),i(e))}),[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:t||!n&&!o?void 0:l}}}({isDisabled:o,onFocusChange:f}),{focusWithinProps:v}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:l}=e,i=n({isFocusWithin:!1}),s=a((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),l&&l(!1))}),[r,l,i]),c=jye(s),d=a((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),l&&l(!0),i.current.isFocusWithin=!0,c(e))}),[o,l,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}({isDisabled:!o,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:d,focusProps:o?v:p}}var Kye=Object.defineProperty,Xye=(e,t,r)=>(((e,t,r)=>{t in e?Kye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Qye=new class{constructor(){Xye(this,"current",this.detect()),Xye(this,"handoffState","pending"),Xye(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Jye(e){return Qye.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ege(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function tge(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add((()=>e.removeEventListener(r,n,a)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return ege((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=tge();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function rge(){let[e]=i(tge);return s((()=>()=>e.dispose()),[e]),e}let nge=(e,t)=>{Qye.isServer?s(e,t):d(e,t)};function age(e){let t=n(e);return nge((()=>{t.current=e}),[e]),t}let oge=function(e){let r=age(e);return t.useCallback(((...e)=>r.current(...e)),[r])};let lge=h(void 0);function ige(){return u(lge)}function sge(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function cge(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,cge),n}var dge=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dge||{}),uge=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(uge||{});function hge(){let e=function(){let e=n([]),t=a((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}),[]);return(...r)=>{if(!r.every((e=>null==e)))return e.current=r,t}}();return a((t=>function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l,mergeRefs:i}){i=null!=i?i:pge;let s=vge(t,e);if(o)return fge(s,r,n,l,i);let c=null!=a?a:0;if(2&c){let{static:e=!1,...t}=s;if(e)return fge(t,r,n,l,i)}if(1&c){let{unmount:e=!0,...t}=s;return cge(e?0:1,{0:()=>null,1:()=>fge({...t,hidden:!0,style:{display:"none"}},r,n,l,i)})}return fge(s,r,n,l,i)}({mergeRefs:e,...t})),[e])}function fge(e,t={},r,n,a){let{as:l=r,children:i,refName:s="ref",...c}=bge(e,["unmount","static"]),d=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof i?i(t):i;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){h["data-headlessui-state"]=r.join(" ");for(let e of r)h[`data-${e}`]=""}}if(l===f&&(Object.keys(gge(c)).length>0||Object.keys(gge(h)).length>0)){if(p(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>sge(t(...e),c.className):sge(t,c.className),n=r?{className:r}:{},o=vge(u.props,gge(bge(c,["ref"])));for(let e in h)e in o&&delete h[e];return v(u,Object.assign({},o,h,d,{ref:a(kge(u),d.ref)},n))}if(Object.keys(gge(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(gge(c)).concat(Object.keys(gge(h))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return o(l,Object.assign({},bge(c,["ref"]),l!==f&&d,l!==f&&h),u)}function pge(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function vge(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function mge(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){let n=r[e];for(let e of n)null==e||e(...t)}});return t}function yge(e){var t;return Object.assign(r(e),{displayName:null!=(t=e.displayName)?t:e.name})}function gge(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function bge(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function kge(e){return t.version.split(".")[0]>="19"?e.props.ref:e.ref}function wge(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))xge(r,_ge(t,n),a);return r}function _ge(e,t){return e?e+"["+t+"]":t}function xge(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())xge(e,_ge(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):wge(r,t,e)}var Mge=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Mge||{});let jge=yge((function(e,t){var r;let{features:n=1,...a}=e,o={ref:t,"aria-hidden":!(2&~n)||(null!=(r=a["aria-hidden"])?r:void 0),hidden:!(4&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}};return hge()({ourProps:o,theirProps:a,slot:{},defaultTag:"span",name:"Hidden"})})),Ege=h(null);function Oge({children:e}){let r=u(Ege);if(!r)return t.createElement(t.Fragment,null,e);let{target:n}=r;return n?z(t.createElement(t.Fragment,null,e),n):null}function Cge({data:e,form:r,disabled:n,onReset:a,overrides:o}){let[l,c]=i(null),d=rge();return s((()=>{if(a&&l)return d.addEventListener(l,"reset",a)}),[l,r,a]),t.createElement(Oge,null,t.createElement(zge,{setForm:c,formId:r}),wge(e).map((([e,a])=>t.createElement(jge,{features:Mge.Hidden,...gge({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:n,name:e,value:a,...o})}))))}function zge({setForm:e,formId:r}){return s((()=>{if(r){let t=document.getElementById(r);t&&e(t)}}),[e,r]),r?null:t.createElement(jge,{features:Mge.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let r=t.closest("form");r&&e(r)}})}let Pge=h(void 0);function Rge(){return u(Pge)}function Age(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}let Ige=Symbol();function Lge(...e){let t=n(e);s((()=>{t.current=e}),[e]);let r=oge((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Ige])))?void 0:r}let Sge=h(null);function Vge(){let e=u(Sge);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vge),e}return e}Sge.displayName="DescriptionContext";let Hge=yge((function(e,t){let r=m(),n=ige(),{id:a=`headlessui-description-${r}`,...o}=e,i=Vge(),s=Lge(t);nge((()=>i.register(a)),[a,i.register]);let c=n||!1,d=l((()=>({...i.slot,disabled:c})),[i.slot,c]),u={ref:s,...i.props,id:a};return hge()({ourProps:u,theirProps:o,slot:d,defaultTag:"p",name:i.name||"Description"})}));Object.assign(Hge,{});var Nge=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Nge||{});let Zge=h(null);function Dge(){let e=u(Zge);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Dge),e}return e}function Bge(e){var t,r,n;let a=null!=(r=null==(t=u(Zge))?void 0:t.value)?r:void 0;return(null!=(n=null==e?void 0:e.length)?n:0)>0?[a,...e].filter(Boolean).join(" "):a}Zge.displayName="LabelContext";let qge=yge((function(e,t){var r;let n=m(),a=Dge(),o=Rge(),i=ige(),{id:s=`headlessui-label-${n}`,htmlFor:c=(null!=o?o:null==(r=a.props)?void 0:r.htmlFor),passive:d=!1,...u}=e,h=Lge(t);nge((()=>a.register(s)),[s,a.register]);let f=oge((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=i||!1,v=l((()=>({...a.slot,disabled:p})),[a.slot,p]),y={ref:h,...a.props,id:s,htmlFor:c,onClick:f};return d&&("onClick"in y&&(delete y.htmlFor,delete y.onClick),"onClick"in u&&delete u.onClick),hge()({ourProps:y,theirProps:u,slot:v,defaultTag:c?"label":"div",name:a.name||"Label"})})),Tge=Object.assign(qge,{});function Fge(e,t,r){let n,a=r.initialDeps??[];return()=>{var o,l,i,s;let c;r.key&&(null==(o=r.debug)?void 0:o.call(r))&&(c=Date.now());const d=e(),u=d.length!==a.length||d.some(((e,t)=>a[t]!==e));if(!u)return n;let h;if(a=d,r.key&&(null==(l=r.debug)?void 0:l.call(r))&&(h=Date.now()),n=t(...d),r.key&&(null==(i=r.debug)?void 0:i.call(r))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-h))/100,n=t/16,a=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${a(t,5)} /${a(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return null==(s=null==r?void 0:r.onChange)||s.call(r,n),n}}function Wge(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const $ge=(e,t,r)=>{let n;return function(...a){e.clearTimeout(n),n=e.setTimeout((()=>t.apply(this,a)),r)}},Uge=e=>e,Gge=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},Yge=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const a=e=>{const{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(a(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void a({width:e.inlineSize,height:e.blockSize})}a(r.getBoundingClientRect())}));return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},Kge={passive:!0},Xge="undefined"==typeof window||"onscrollend"in window,Qge=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let a=0;const o=e.options.useScrollendEvent&&Xge?()=>{}:$ge(n,(()=>{t(a,!1)}),e.options.isScrollingResetDelay),l=n=>()=>{const{horizontal:l,isRtl:i}=e.options;a=l?r.scrollLeft*(i?-1:1):r.scrollTop,o(),t(a,n)},i=l(!0),s=l(!1);return s(),r.addEventListener("scroll",i,Kge),r.addEventListener("scrollend",s,Kge),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",s)}},Jge=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},ebe=(e,{adjustments:t=0,behavior:r},n)=>{var a,o;const l=e+t;null==(o=null==(a=n.scrollElement)?void 0:a.scrollTo)||o.call(a,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class tbe{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,r])=>{void 0===r&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Uge,rangeExtractor:Gge,onChange:()=>{},measureElement:Jge,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=Fge((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const r=new Map,n=new Map;for(let a=t-1;a>=0;a--){const t=e[a];if(r.has(t.lane))continue;const o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=Fge((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,r,n,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a})),{key:!1}),this.getMeasurements=Fge((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a},o)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const i=this.measurementsCache.slice(0,l);for(let a=l;a<e;a++){const e=n(a),l=1===this.options.lanes?i[a-1]:this.getFurthestMeasurement(i,a),s=l?l.end+this.options.gap:t+r,c=o.get(e),d="number"==typeof c?c:this.options.estimateSize(a),u=s+d,h=l?l.lane:a%this.options.lanes;i[a]={index:a,start:s,size:d,end:u,key:e,lane:h}}return this.measurementsCache=i,i}),{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Fge((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((e,t,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,a=t=>e[t].start,o=rbe(0,n,a,r);let l=o;for(;l<n&&e[l].end<r+t;)l++;return{startIndex:o,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:r}):null),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Fge((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,r,n)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:r,count:n})),{key:"production"!==process.env.NODE_ENV&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const r=this.indexFromElement(e),n=this.measurementsCache[r];if(!n)return;const a=n.key,o=this.elementsCache.get(a);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const r=this.measurementsCache[e];if(!r)return;const n=t-(this.itemSizeCache.get(r.key)??r.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,n,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",n),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=Fge((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const r=[];for(let n=0,a=e.length;n<a;n++){const a=t[e[n]];r.push(a)}return r}),{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Wge(t[rbe(0,t.length-1,(e=>Wge(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>{const r=this.getSize(),n=this.getScrollOffset();"auto"===t&&(t=e<=n?"start":e>=n+r?"end":"start"),"start"===t||("end"===t?e-=r:"center"===t&&(e-=r/2));const a=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.measurementsCache[e];if(!r)return;const n=this.getSize(),a=this.getScrollOffset();if("auto"===t)if(r.end>=a+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=a+this.options.scrollPaddingStart))return[a,t];t="start"}const o="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(e,t);if(!n)return;const[a,o]=n;this._scrollToOffset(a,{adjustments:void 0,behavior:r}),"smooth"!==r&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[t]=Wge(this.getOffsetForIndex(e,o));((e,t)=>Math.abs(e-t)<1)(t,this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:r})}else this.scrollToIndex(e,{align:o,behavior:r})})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let r;return r=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const rbe=(e,t,r,n)=>{for(;e<=t;){const a=(e+t)/2|0,o=r(a);if(o<n)e=a+1;else{if(!(o>n))return a;t=a-1}}return e>0?e-1:0};const nbe="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function abe(t){return function(t){const r=e.useReducer((()=>({})),{})[1],n={...t,onChange:(e,n)=>{var a;n?P(r):r(),null==(a=t.onChange)||a.call(t,e,n)}},[a]=e.useState((()=>new tbe(n)));return a.setOptions(n),nbe((()=>a._didMount()),[]),nbe((()=>a._willUpdate())),a}({observeElementRect:Yge,observeElementOffset:Qge,scrollToFn:ebe,...t})}function obe(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function lbe(e,t=!1){let[r,n]=y((()=>({})),{}),a=l((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}(e)),[e,r]);return nge((()=>{if(!e)return;let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}let ibe=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function sbe(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...a){let o=t[e].call(r,...a);o&&(r=o,n.forEach((e=>e())))}}}function cbe(e){return g(e.subscribe,e.getSnapshot,e.getSnapshot)}let dbe=new ibe((()=>sbe((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let r=this.slice();return r.splice(t,1),r}})));function ube(e,t){let r=dbe.get(t),n=m(),a=cbe(r);if(nge((()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)}),[r,e]),!e)return!1;let o=a.indexOf(n),l=a.length;return-1===o&&(o=l,l+=1),o===l-1}let hbe=new Map,fbe=new Map;function pbe(e){var t;let r=null!=(t=fbe.get(e))?t:0;return fbe.set(e,r+1),0!==r||(hbe.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>vbe(e)}function vbe(e){var t;let r=null!=(t=fbe.get(e))?t:1;if(1===r?fbe.delete(e):fbe.set(e,r-1),1!==r)return;let n=hbe.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,hbe.delete(e))}function mbe(e,{allowed:t,disallowed:r}={}){let n=ube(e,"inert-others");nge((()=>{var e,a;if(!n)return;let o=tge();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(pbe(t));let l=null!=(a=null==t?void 0:t())?a:[];for(let e of l){if(!e)continue;let t=Jye(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)l.some((t=>e.contains(t)))||o.add(pbe(e));r=r.parentElement}}return o.dispose}),[n,t,r])}let ybe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var gbe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(gbe||{}),bbe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(bbe||{}),kbe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(kbe||{}),wbe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wbe||{});var _be=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_be||{});function xbe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Mbe(){return xbe()||/Android/gi.test(window.navigator.userAgent)}function jbe(e,t,r,n){let a=age(r);s((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));function Ebe(e,t,r){let o=ube(e,"outside-click"),l=age(r),i=a((function(e,r){if(e.defaultPrevented)return;let n=r(e);if(null===n||!n.getRootNode().contains(n)||!n.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of a)if(null!==t&&(t.contains(n)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var r;return e!==(null==(r=Jye(e))?void 0:r.body)&&cge(t,{0:()=>e.matches(ybe),1(){let t=e;for(;null!==t;){if(t.matches(ybe))return!0;t=t.parentElement}return!1}})}(n,wbe.Loose)&&-1!==n.tabIndex&&e.preventDefault(),l.current(e,n)}),[l,t]),c=n(null);jbe(o,"pointerdown",(e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),jbe(o,"mousedown",(e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),jbe(o,"click",(e=>{Mbe()||c.current&&(i(e,(()=>c.current)),c.current=null)}),!0);let d=n({x:0,y:0});jbe(o,"touchstart",(e=>{d.current.x=e.touches[0].clientX,d.current.y=e.touches[0].clientY}),!0),jbe(o,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-d.current.x)>=30||Math.abs(r-d.current.y)>=30))return i(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,r,n){let a=age(r);s((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}(o,"blur",(e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Obe(...e){return l((()=>Jye(...e)),[...e])}function Cbe(e){let t=n({value:"",selectionStart:null,selectionEnd:null});return function(e,t,r,n){let a=age(r);s((()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}(e,"blur",(e=>{let r=e.target;r instanceof HTMLInputElement&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})})),oge((()=>{if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:r,selectionEnd:n}=t.current;null!==r&&null!==n&&e.setSelectionRange(r,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}}))}function zbe(e,t){return l((()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Pbe(){let e;return{before({doc:t}){var r;let n=t.documentElement,a=null!=(r=t.defaultView)?r:window;e=Math.max(0,a.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-a);r.style(n,"paddingRight",`${o}px`)}}}function Rbe(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Abe=sbe((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:tge(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:Rbe(r)},a=[xbe()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=tge();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),l=e.querySelector(a);l&&!n(l)&&(o=l)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},Pbe(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach((({before:e})=>null==e?void 0:e(n))),a.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Ibe(e,t,r=()=>[document.body]){!function(e,t,r=()=>({containers:[]})){let n=cbe(Abe),a=t?n.get(t):void 0,o=!!a&&a.count>0;nge((()=>{if(t&&e)return Abe.dispatch("PUSH",t,r),()=>Abe.dispatch("POP",t,r)}),[e,t])}(ube(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}function Lbe(e){return[e.screenX,e.screenY]}var Sbe,Vbe;Abe.subscribe((()=>{let e=Abe.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&Abe.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&Abe.dispatch("TEARDOWN",r)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Sbe=null==process?void 0:process.env)?void 0:Sbe.NODE_ENV)&&void 0===(null==(Vbe=null==Element?void 0:Element.prototype)?void 0:Vbe.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Hbe=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Hbe||{});function Nbe(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Zbe(e,t,r,o){let[l,s]=i(r),{hasFlag:c,addFlag:d,removeFlag:u}=function(e=0){let[t,r]=i(e),n=a((e=>r(e)),[t]),o=a((e=>r((t=>t|e))),[t]),l=a((e=>(t&e)===e),[t]),s=a((e=>r((t=>t&~e))),[r]),c=a((e=>r((t=>t^e))),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:l,removeFlag:s,toggleFlag:c}}(e&&l?3:0),h=n(!1),f=n(!1),p=rge();return nge((()=>{if(e)return r&&s(!0),t?(null==void 0||undefined.call(o,r),function(e,{prepare:t,run:r,done:n,inFlight:a}){let o=tge();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:a}),o.nextFrame((()=>{r(),o.requestAnimationFrame((()=>{o.add(function(e,t){var r,n;let a=tge();if(!e)return a.dispose;let o=!1;a.add((()=>{o=!0}));let l=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter((e=>e instanceof CSSTransition)))?n:[];return 0===l.length?(t(),a.dispose):(Promise.allSettled(l.map((e=>e.finished))).then((()=>{o||t()})),a.dispose)}(e,n))}))})),o.dispose}(t,{inFlight:h,prepare(){f.current?f.current=!1:f.current=h.current,h.current=!0,!f.current&&(r?(d(3),u(4)):(d(4),u(2)))},run(){f.current?r?(u(3),d(4)):(u(4),d(3)):r?u(1):d(1)},done(){f.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(h.current=!1,u(7),r||s(!1),null==void 0||undefined.call(o,r))}})):void(r&&d(3))}),[e,r,t,p]),e?[l,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Dbe(e,t){let r=n([]),a=oge(e);s((()=>{let e=[...r.current];for(let[n,o]of t.entries())if(r.current[n]!==o){let n=a(t,e);return r.current=t,n}}),[a,...t])}function Bbe(){return"undefined"!=typeof window}function qbe(e){return Wbe(e)?(e.nodeName||"").toLowerCase():"#document"}function Tbe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fbe(e){var t;return null==(t=(Wbe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wbe(e){return!!Bbe()&&(e instanceof Node||e instanceof Tbe(e).Node)}function $be(e){return!!Bbe()&&(e instanceof Element||e instanceof Tbe(e).Element)}function Ube(e){return!!Bbe()&&(e instanceof HTMLElement||e instanceof Tbe(e).HTMLElement)}function Gbe(e){return!(!Bbe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Tbe(e).ShadowRoot)}function Ybe(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=tke(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Kbe(e){return["table","td","th"].includes(qbe(e))}function Xbe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Qbe(e){const t=Jbe(),r=$be(e)?tke(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 Jbe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function eke(e){return["html","body","#document"].includes(qbe(e))}function tke(e){return Tbe(e).getComputedStyle(e)}function rke(e){return $be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nke(e){if("html"===qbe(e))return e;const t=e.assignedSlot||e.parentNode||Gbe(e)&&e.host||Fbe(e);return Gbe(t)?t.host:t}function ake(e){const t=nke(e);return eke(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ube(t)&&Ybe(t)?t:ake(t)}function oke(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=ake(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),l=Tbe(a);if(o){const e=lke(l);return t.concat(l,l.visualViewport||[],Ybe(a)?a:[],e&&r?oke(e):[])}return t.concat(a,oke(a,[],r))}function lke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ike=["top","right","bottom","left"],ske=Math.min,cke=Math.max,dke=Math.round,uke=Math.floor,hke=e=>({x:e,y:e}),fke={left:"right",right:"left",bottom:"top",top:"bottom"},pke={start:"end",end:"start"};function vke(e,t,r){return cke(e,ske(t,r))}function mke(e,t){return"function"==typeof e?e(t):e}function yke(e){return e.split("-")[0]}function gke(e){return e.split("-")[1]}function bke(e){return"x"===e?"y":"x"}function kke(e){return"y"===e?"height":"width"}function wke(e){return["top","bottom"].includes(yke(e))?"y":"x"}function _ke(e){return bke(wke(e))}function xke(e){return e.replace(/start|end/g,(e=>pke[e]))}function Mke(e){return e.replace(/left|right|bottom|top/g,(e=>fke[e]))}function jke(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 Eke(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 Oke(e,t,r){let{reference:n,floating:a}=e;const o=wke(t),l=_ke(t),i=kke(l),s=yke(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 f;switch(s){case"top":f={x:d,y:n.y-a.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-a.width,y:u};break;default:f={x:n.x,y:n.y}}switch(gke(t)){case"start":f[l]-=h*(r&&c?-1:1);break;case"end":f[l]+=h*(r&&c?-1:1)}return f}async function Cke(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:f=0}=mke(t,e),p=jke(f),v=i[h?"floating"===u?"reference":"floating":u],m=Eke(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)),b=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},k=Eke(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-k.top+p.top)/b.y,bottom:(k.bottom-m.bottom+p.bottom)/b.y,left:(m.left-k.left+p.left)/b.x,right:(k.right-m.right+p.right)/b.x}}function zke(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pke(e){return ike.some((t=>e[t]>=0))}function Rke(e){const t=tke(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Ube(e),o=a?e.offsetWidth:r,l=a?e.offsetHeight:n,i=dke(r)!==o||dke(n)!==l;return i&&(r=o,n=l),{width:r,height:n,$:i}}function Ake(e){return $be(e)?e:e.contextElement}function Ike(e){const t=Ake(e);if(!Ube(t))return hke(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Rke(t);let l=(o?dke(r.width):r.width)/n,i=(o?dke(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const Lke=hke(0);function Ske(e){const t=Tbe(e);return Jbe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Lke}function Vke(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=Ake(e);let l=hke(1);t&&(n?$be(n)&&(l=Ike(n)):l=Ike(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Tbe(e))&&t}(o,r,n)?Ske(o):hke(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=Tbe(o),t=n&&$be(n)?Tbe(n):n;let r=e,a=lke(r);for(;a&&n&&t!==r;){const e=Ike(a),t=a.getBoundingClientRect(),n=tke(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=Tbe(a),a=lke(r)}}return Eke({width:d,height:u,x:s,y:c})}function Hke(e,t){const r=rke(e).scrollLeft;return t?t.left+r:Vke(Fbe(e)).left+r}function Nke(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Hke(e,n)),y:n.top+t.scrollTop}}function Zke(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Tbe(e),n=Fbe(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=Jbe();(!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=Fbe(e),r=rke(e),n=e.ownerDocument.body,a=cke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=cke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Hke(e);const i=-r.scrollTop;return"rtl"===tke(n).direction&&(l+=cke(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:i}}(Fbe(e));else if($be(t))n=function(e,t){const r=Vke(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=Ube(e)?Ike(e):hke(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=Ske(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Eke(n)}function Dke(e,t){const r=nke(e);return!(r===t||!$be(r)||eke(r))&&("fixed"===tke(r).position||Dke(r,t))}function Bke(e,t,r){const n=Ube(t),a=Fbe(t),o="fixed"===r,l=Vke(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const s=hke(0);if(n||!n&&!o)if(("body"!==qbe(t)||Ybe(a))&&(i=rke(t)),n){const e=Vke(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=Hke(a));const c=!a||n||o?hke(0):Nke(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 qke(e){return"static"===tke(e).position}function Tke(e,t){if(!Ube(e)||"fixed"===tke(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Fbe(e)===r&&(r=r.ownerDocument.body),r}function Fke(e,t){const r=Tbe(e);if(Xbe(e))return r;if(!Ube(e)){let t=nke(e);for(;t&&!eke(t);){if($be(t)&&!qke(t))return t;t=nke(t)}return r}let n=Tke(e,t);for(;n&&Kbe(n)&&qke(n);)n=Tke(n,t);return n&&eke(n)&&qke(n)&&!Qbe(n)?r:n||function(e){let t=nke(e);for(;Ube(t)&&!eke(t);){if(Qbe(t))return t;if(Xbe(t))return null;t=nke(t)}return null}(e)||r}const Wke={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o="fixed"===a,l=Fbe(n),i=!!t&&Xbe(t.floating);if(n===l||i&&o)return r;let s={scrollLeft:0,scrollTop:0},c=hke(1);const d=hke(0),u=Ube(n);if((u||!u&&!o)&&(("body"!==qbe(n)||Ybe(l))&&(s=rke(n)),Ube(n))){const e=Vke(n);c=Ike(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const h=!l||u||o?hke(0):Nke(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:Fbe,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[..."clippingAncestors"===r?Xbe(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=oke(e,[],!1).filter((e=>$be(e)&&"body"!==qbe(e))),a=null;const o="fixed"===tke(e).position;let l=o?nke(e):e;for(;$be(l)&&!eke(l);){const t=tke(l),r=Qbe(l);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Ybe(l)&&!r&&Dke(e,l))?n=n.filter((e=>e!==l)):a=t,l=nke(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],i=o.reduce(((e,r)=>{const n=Zke(t,r,a);return e.top=cke(n.top,e.top),e.right=ske(n.right,e.right),e.bottom=ske(n.bottom,e.bottom),e.left=cke(n.left,e.left),e}),Zke(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Fke,getElementRects:async function(e){const t=this.getOffsetParent||Fke,r=this.getDimensions,n=await r(e.floating);return{reference:Bke(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}=Rke(e);return{width:t,height:r}},getScale:Ike,isElement:$be,isRTL:function(e){return"rtl"===tke(e).direction}};function $ke(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=Ake(e),d=a||o?[...c?oke(c):[],...oke(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=Fbe(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 f={rootMargin:-uke(d)+"px "+-uke(a.clientWidth-(c+u))+"px "+-uke(a.clientHeight-(d+h))+"px "+-uke(c)+"px",threshold:cke(0,ske(1,s))||1};let p=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!p)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),1e3)}p=!1}try{n=new IntersectionObserver(v,{...f,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,f)}n.observe(e)}(!0),o}(c,r):null;let h,f=-1,p=null;l&&(p=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),r()})),c&&!s&&p.observe(c),p.observe(t));let v=s?Vke(e):null;return s&&function t(){const n=Vke(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=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const Uke=Cke,Gke=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=yke(r),i=gke(r),s="y"===wke(r),c=["left","top"].includes(l)?-1:1,d=o&&s?-1:1,u=mke(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof p&&(f="end"===i?-1*p:p),s?{x:f*d,y:h*c}:{x:h*c,y:f*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}}}}},Yke=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}=mke(e,t),c={x:r,y:n},d=await Cke(t,s),u=wke(yke(a)),h=bke(u);let f=c[h],p=c[u];if(o){const e="y"===h?"bottom":"right";f=vke(f+d["y"===h?"top":"left"],f,f-d[e])}if(l){const e="y"===u?"bottom":"right";p=vke(p+d["y"===u?"top":"left"],p,p-d[e])}const v=i.fn({...t,[h]:f,[u]:p});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:o,[u]:l}}}}}},Kke=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:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...m}=mke(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const y=yke(a),g=wke(i),b=yke(i)===i,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=h||(b||!v?[Mke(i)]:function(e){const t=Mke(e);return[xke(e),t,xke(t)]}(i)),_="none"!==p;!h&&_&&w.push(...function(e,t,r,n){const a=gke(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[]}}(yke(e),"start"===r,n);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(xke)))),o}(i,v,p,k));const x=[i,...w],M=await Cke(t,m),j=[];let E=(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=gke(e),a=_ke(e),o=kke(a);let l="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Mke(l)),[l,Mke(l)]}(a,l,k);j.push(M[e[0]],M[e[1]])}if(E=[...E,{placement:a,overflows:j}],!j.every((e=>e<=0))){var O,C;const e=((null==(O=o.flip)?void 0:O.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(C=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!r)switch(f){case"bestFit":{var z;const e=null==(z=E.filter((e=>{if(_){const t=wke(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:z[0];e&&(r=e);break}case"initialPlacement":r=i}if(a!==r)return{reset:{placement:r}}}return{}}}},Xke=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}=mke(e,t),d=await Cke(t,c),u=yke(a),h=gke(a),f="y"===wke(a),{width:p,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,b=p-d.left-d.right,k=ske(v-d[m],g),w=ske(p-d[y],b),_=!t.middlewareData.shift;let x=k,M=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(x=g),_&&!h){const e=cke(d.left,0),t=cke(d.right,0),r=cke(d.top,0),n=cke(d.bottom,0);f?M=p-2*(0!==e||0!==t?e+t:cke(d.left,d.right)):x=v-2*(0!==r||0!==n?r+n:cke(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:x});const j=await l.getDimensions(i.floating);return p!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}},Qke=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=mke(e,t);switch(n){case"referenceHidden":{const e=zke(await Cke(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pke(e)}}}case"escaped":{const e=zke(await Cke(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Pke(e)}}}default:return{}}}}},Jke=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}=mke(e,t)||{};if(null==c)return{};const u=jke(d),h={x:r,y:n},f=_ke(a),p=kke(f),v=await l.getDimensions(c),m="y"===f,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",k=o.reference[p]+o.reference[f]-h[f]-o.floating[p],w=h[f]-o.reference[f],_=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=_?_[b]:0;x&&await(null==l.isElement?void 0:l.isElement(_))||(x=i.floating[b]||o.floating[p]);const M=k/2-w/2,j=x/2-v[p]/2-1,E=ske(u[y],j),O=ske(u[g],j),C=E,z=x-v[p]-O,P=x/2-v[p]/2+M,R=vke(C,P,z),A=!s.arrow&&null!=gke(a)&&P!==R&&o.reference[p]/2-(P<C?E:O)-v[p]/2<0,I=A?P<C?P-C:P-z:0;return{[f]:h[f]+I,data:{[f]:R,centerOffset:P-R-I,...A&&{alignmentOffset:I}},reset:A}}}),ewe=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}=mke(e,t),d={x:r,y:n},u=wke(a),h=bke(u);let f=d[h],p=d[u];const v=mke(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;f<t?f=t:f>r&&(f=r)}if(c){var y,g;const e="y"===h?"width":"height",t=["top","left"].includes(yke(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);p<r?p=r:p>n&&(p=n)}return{[h]:f,[u]:p}}}},twe=(e,t,r)=>{const n=new Map,a={platform:Wke,...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}=Oke(c,n,s),h=n,f={},p=0;for(let r=0;r<i.length;r++){const{name:o,fn:v}=i[r],{x:m,y:y,data:g,reset:b}=await v({x:d,y:u,initialPlacement:n,placement:h,strategy:a,middlewareData:f,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=y?y:u,f={...f,[o]:{...f[o],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:d,y:u}=Oke(c,h,s))),r=-1)}return{x:d,y:u,placement:h,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var rwe="undefined"!=typeof document?d:s;function nwe(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(!nwe(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)&&!nwe(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function awe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function owe(e,t){const r=awe(e);return Math.round(t*r)/r}function lwe(t){const r=e.useRef(t);return rwe((()=>{r.current=t})),r}function iwe(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=t,[u,h]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,p]=e.useState(a);nwe(f,a)||p(a);const[v,m]=e.useState(null),[y,g]=e.useState(null),b=e.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),k=e.useCallback((e=>{e!==M.current&&(M.current=e,g(e))}),[]),w=l||v,_=i||y,x=e.useRef(null),M=e.useRef(null),j=e.useRef(u),E=null!=c,C=lwe(c),z=lwe(o),P=lwe(d),R=e.useCallback((()=>{if(!x.current||!M.current)return;const e={placement:r,strategy:n,middleware:f};z.current&&(e.platform=z.current),twe(x.current,M.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!nwe(j.current,t)&&(j.current=t,O.flushSync((()=>{h(t)})))}))}),[f,r,n,z,P]);rwe((()=>{!1===d&&j.current.isPositioned&&(j.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const A=e.useRef(!1);rwe((()=>(A.current=!0,()=>{A.current=!1})),[]),rwe((()=>{if(w&&(x.current=w),_&&(M.current=_),w&&_){if(C.current)return C.current(w,_,R);R()}}),[w,_,R,C,E]);const I=e.useMemo((()=>({reference:x,floating:M,setReference:b,setFloating:k})),[b,k]),L=e.useMemo((()=>({reference:w,floating:_})),[w,_]),S=e.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=owe(L.floating,u.x),r=owe(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...awe(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:R,refs:I,elements:L,floatingStyles:S})),[u,R,I,L,S])}const swe=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?Jke({element:r.current,padding:n}).fn(t):{}:r?Jke({element:r,padding:n}).fn(t):{};var a}}),cwe=(e,t)=>({...Gke(e),options:[e,t]}),dwe=(e,t)=>({...Yke(e),options:[e,t]}),uwe=(e,t)=>({...ewe(e),options:[e,t]}),hwe=(e,t)=>({...Kke(e),options:[e,t]}),fwe=(e,t)=>({...Xke(e),options:[e,t]}),pwe=(e,t)=>({...Qke(e),options:[e,t]}),vwe=(e,t)=>({...swe(e),options:[e,t]}),mwe={...e},ywe=mwe.useInsertionEffect||(e=>e());function gwe(t){const r=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ywe((()=>{r.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current(...t)}),[])}var bwe="undefined"!=typeof document?d:s;let kwe=!1,wwe=0;const _we=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wwe++;const xwe=mwe.useId||function(){const[t,r]=e.useState((()=>kwe?_we():void 0));return bwe((()=>{null==t&&r(_we())}),[]),e.useEffect((()=>{kwe=!0}),[]),t};let Mwe;"production"!==process.env.NODE_ENV&&(Mwe=new Set);const jwe=e.createContext(null),Ewe=e.createContext(null),Owe="data-floating-ui-focusable";function Cwe(t){const{open:r=!1,onOpenChange:n,elements:a}=t,o=xwe(),l=e.useRef({}),[i]=e.useState((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),s=null!=((null==(c=e.useContext(jwe))?void 0:c.id)||null);var c;if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!$be(e)&&function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a="Floating UI: "+r.join(" ");var o;null!=(e=Mwe)&&e.has(a)||(null==(o=Mwe)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[d,u]=e.useState(a.reference),h=gwe(((e,t,r)=>{l.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),f=e.useMemo((()=>({setPositionReference:u})),[]),p=e.useMemo((()=>({reference:d||a.reference||null,floating:a.floating||null,domReference:a.reference})),[d,a.reference,a.floating]);return e.useMemo((()=>({dataRef:l,open:r,onOpenChange:h,elements:p,events:i,floatingId:o,refs:f})),[r,h,p,i,o,f])}function zwe(t){void 0===t&&(t={});const{nodeId:r}=t,n=Cwe({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||n,o=a.elements,[l,i]=e.useState(null),[s,c]=e.useState(null),d=(null==o?void 0:o.domReference)||l,u=e.useRef(null),h=e.useContext(Ewe);bwe((()=>{d&&(u.current=d)}),[d]);const f=iwe({...t,elements:{...o,...s&&{reference:s}}}),p=e.useCallback((e=>{const t=$be(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),v=e.useCallback((e=>{($be(e)||null===e)&&(u.current=e,i(e)),($be(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!$be(e))&&f.refs.setReference(e)}),[f.refs]),m=e.useMemo((()=>({...f.refs,setReference:v,setPositionReference:p,domReference:u})),[f.refs,v,p]),y=e.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),g=e.useMemo((()=>({...f,...a,refs:m,elements:y,nodeId:r})),[f,m,y,r,a]);return bwe((()=>{a.dataRef.current.floatingContext=g;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===r));e&&(e.context=g)})),e.useMemo((()=>({...f,context:g,refs:m,elements:y})),[f,m,y,g])}const Pwe="active",Rwe="selected";function Awe(e,t,r){const n=new Map,a="item"===r;let o=e;if(a&&e){const{[Pwe]:t,[Rwe]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,[Owe]:""},...o,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,o]=t;var l;a&&[Pwe,Rwe].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof o&&(null==(l=n.get(r))||l.push(o),e[r]=function(){for(var e,t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[r]=o)})),e):e),{})}}function Iwe(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Lwe=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:a,offset:o=0,index:l=0,minItemsVisible:i=4,referenceOverflowThreshold:s=0,scrollRef:c,...d}=mke(e,t),{rects:u,elements:{floating:h}}=t,f=r.current[l],p=(null==c?void 0:c.current)||h,v=h.clientTop||p.clientTop,m=0!==h.clientTop,y=0!==p.clientTop,g=h===p;if("production"!==process.env.NODE_ENV&&(t.placement.startsWith("bottom")||function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a="Floating UI: "+r.join(" ");var o;null!=(e=Mwe)&&e.has(a)||(null==(o=Mwe)||o.add(a),console.warn(a))}('`placement` side must be "bottom" when using the `inner`',"middleware.")),!f)return{};const b={...t,...await cwe(-f.offsetTop-h.clientTop-u.reference.height/2-f.offsetHeight/2-o).fn(t)},k=await Uke(Iwe(b,p.scrollHeight+v+h.clientTop),d),w=await Uke(b,{...d,elementContext:"reference"}),_=cke(0,k.top),x=b.y+_,M=p.scrollHeight>p.clientHeight?e=>e:dke,j=M(cke(0,p.scrollHeight+(m&&g||y?2*v:0)-_-cke(0,k.bottom)));if(p.style.maxHeight=j+"px",p.scrollTop=_,a){const e=p.offsetHeight<f.offsetHeight*ske(i,r.current.length)-1||w.top>=-s||w.bottom>=-s;O.flushSync((()=>a(e)))}return n&&(n.current=await Uke(Iwe({...b,y:x},p.offsetHeight+v+h.clientTop),d)),{y:x}}});function Swe(t,r){const{open:n,elements:a}=t,{enabled:o=!0,overflowRef:l,scrollRef:i,onChange:s}=r,c=gwe(s),d=e.useRef(!1),u=e.useRef(null),h=e.useRef(null);e.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==l.current)return;const r=e.deltaY,n=l.current.top>=-.5,a=l.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,i=r<0?-1:1,s=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!a&&r<0?(e.preventDefault(),O.flushSync((()=>{c((e=>e+Math[s](r,o*i)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==i?void 0:i.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=l.current&&(h.current={...l.current})})),()=>{u.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,a.floating,l,i,c]);const f=e.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==i?void 0:i.current)||a.floating;if(l.current&&e&&d.current){if(null!==u.current){const t=e.scrollTop-u.current;(l.current.bottom<-.5&&t<-1||l.current.top<-.5&&t>1)&&O.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[a.floating,c,l,i]);return e.useMemo((()=>o?{floating:f}:{}),[o,f])}let Vwe=h({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Vwe.displayName="FloatingContext";let Hwe=h(null);Hwe.displayName="PlacementContext";function Nwe({children:t,enabled:r=!0}){let[a,o]=i(null),[s,c]=i(0),d=n(null),[u,h]=i(null);!function(e){nge((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(u);let f=r&&null!==a&&null!==u,{to:p="bottom",gap:v=0,offset:m=0,padding:y=0,inner:g}=function(e,t){var r,n,a;let o=Zwe(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),l=Zwe(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),i=Zwe(null!=(a=null==e?void 0:e.padding)?a:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:l,padding:i}}(a,u),[b,k="center"]=p.split(" ");nge((()=>{f&&c(0)}),[f]);let{refs:w,floatingStyles:_,context:x}=zwe({open:f,placement:"selection"===b?"center"===k?"bottom":`bottom-${k}`:"center"===k?`${b}`:`${b}-${k}`,strategy:"absolute",transform:!1,middleware:[cwe({mainAxis:"selection"===b?0:v,crossAxis:m}),dwe({padding:y}),"selection"!==b&&hwe({padding:y}),"selection"===b&&g?Lwe({...g,padding:y,overflowRef:d,offset:s,minItemsVisible:4,referenceOverflowThreshold:y,onFallbackChange(e){var t,r;if(!e)return;let n=x.elements.floating;if(!n)return;let a=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,o=Math.min(4,n.childElementCount),l=0,i=0;for(let e of null!=(r=null==(t=x.elements.floating)?void 0:t.childNodes)?r:[])if(e instanceof HTMLElement){let t=e.offsetTop,r=t+e.clientHeight+a,s=n.scrollTop,c=s+n.clientHeight;if(!(t>=s&&r<=c)){i=Math.max(0,Math.min(r,c)-Math.max(t,s)),l=e.clientHeight;break}o--}o>=1&&c((e=>{let t=l*o-i+a;return e>=t?e:t}))}}):null,fwe({padding:y,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:$ke}),[M=b,j=k]=x.placement.split("-");"selection"===b&&(M="selection");let E=l((()=>({anchor:[M,j].filter(Boolean).join(" ")})),[M,j]),O=Swe(x,{overflowRef:d,onChange:c}),{getReferenceProps:C,getFloatingProps:z}=function(t){void 0===t&&(t=[]);const r=t.map((e=>null==e?void 0:e.reference)),n=t.map((e=>null==e?void 0:e.floating)),a=t.map((e=>null==e?void 0:e.item)),o=e.useCallback((e=>Awe(e,t,"reference")),r),l=e.useCallback((e=>Awe(e,t,"floating")),n),i=e.useCallback((e=>Awe(e,t,"item")),a);return e.useMemo((()=>({getReferenceProps:o,getFloatingProps:l,getItemProps:i})),[o,l,i])}([O]),P=oge((e=>{h(e),w.setFloating(e)}));return e.createElement(Hwe.Provider,{value:o},e.createElement(Vwe.Provider,{value:{setFloating:P,setReference:w.setReference,styles:_,getReferenceProps:C,getFloatingProps:z,slot:E}},t))}function Zwe(e,t,r=void 0){let n=rge(),a=oge(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let a=Bwe(e,t);return[a,r=>{let o=Dwe(e);{let l=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));n.requestAnimationFrame((function i(){n.nextFrame(i);let s=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(l[e]!==n){l[e]=n,s=!0;break}}if(!s)return;let c=Bwe(e,t);a!==c&&(r(c),a=c)}))}return n.dispose}]}return[r,null]})),o=l((()=>a(e,t)[0]),[e,t]),[s=o,c]=i();return nge((()=>{let[r,n]=a(e,t);if(c(r),n)return n(c)}),[e,t]),s}function Dwe(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...Dwe(n)]:[r]}return[]}function Bwe(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function qwe({children:e,freeze:r}){let n=Twe(r,e);return t.createElement(t.Fragment,null,n)}function Twe(e,t){let[r,n]=i(t);return!e&&r!==t&&n(t),e?r:t}let Fwe=h(null);Fwe.displayName="OpenClosedContext";var Wwe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wwe||{});function $we({value:e,children:r}){return t.createElement(Fwe.Provider,{value:e},r)}let Uwe=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||Uwe[0]===e.target)return;let t=e.target;t=t.closest(ybe),Uwe.unshift(null!=t?t:e.target),Uwe=Uwe.filter((e=>null!=e&&e.isConnected)),Uwe.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var Gwe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Gwe||{});function Ywe(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}var Kwe=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Kwe||{});function Xwe(){let t=function(){let t="undefined"==typeof document;return"useSyncExternalStore"in e&&e.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!t))}(),[r,n]=e.useState(Qye.isHandoffComplete);return r&&!1===Qye.isHandoffComplete&&n(!1),e.useEffect((()=>{!0!==r&&n(!0)}),[r]),e.useEffect((()=>Qye.handoff()),[]),!t&&r}let Qwe=h(!1);function Jwe(){return u(Qwe)}function e_e(e){let t=Jwe(),r=u(a_e),n=Obe(e),[a,o]=i((()=>{var e;if(!t&&null!==r)return null!=(e=r.current)?e:null;if(Qye.isServer)return null;let a=null==n?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(null===n)return null;let o=n.createElement("div");return o.setAttribute("id","headlessui-portal-root"),n.body.appendChild(o)}));return s((()=>{null!==a&&(null!=n&&n.body.contains(a)||null==n||n.body.appendChild(a))}),[a,n]),s((()=>{t||null!==r&&o(r.current)}),[r,o,t]),a}let t_e=f,r_e=yge((function(e,t){let r=e,a=n(null),o=Lge(function(e,t=!0){return Object.assign(e,{[Ige]:t})}((e=>{a.current=e})),t),l=Obe(a),c=e_e(a),[d]=i((()=>{var e;return Qye.isServer?null:null!=(e=null==l?void 0:l.createElement("div"))?e:null})),h=u(o_e),f=Xwe();nge((()=>{!c||!d||c.contains(d)||(d.setAttribute("data-headlessui-portal",""),c.appendChild(d))}),[c,d]),nge((()=>{if(d&&h)return h.register(d)}),[h,d]),function(e){let t=oge(e),r=n(!1);s((()=>(r.current=!1,()=>{r.current=!0,ege((()=>{r.current&&t()}))})),[t])}((()=>{var e;!c||!d||(d instanceof Node&&c.contains(d)&&c.removeChild(d),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}));let p=hge();return f&&c&&d?z(p({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:t_e,name:"Portal"}),d):null}));let n_e=f,a_e=h(null);let o_e=h(null),l_e=yge((function(e,r){let n=Lge(r),{enabled:a=!0,...o}=e,l=hge();return a?t.createElement(r_e,{...o,ref:n}):l({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:t_e,name:"Portal"})})),i_e=yge((function(e,r){let{target:n,...a}=e,o={ref:Lge(r)},l=hge();return t.createElement(a_e.Provider,{value:n},l({ourProps:o,theirProps:a,defaultTag:n_e,name:"Popover.Group"}))})),s_e=Object.assign(l_e,{Group:i_e});var c_e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(c_e||{}),d_e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(d_e||{}),u_e=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(u_e||{}),h_e=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",e[e.SetInputElement=8]="SetInputElement",e[e.SetButtonElement=9]="SetButtonElement",e[e.SetOptionsElement=10]="SetOptionsElement",e))(h_e||{});function f_e(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),a=n.length>0&&null!==n[0].dataRef.current.order?n.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):function(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(n,(e=>e.dataRef.current.domRef.current)),o=r?a.indexOf(r):null;return-1===o&&(o=null),{options:a,activeOptionIndex:o}}let p_e={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var r,n,a,o;if(null!=(r=e.dataRef.current)&&r.disabled||e.optionsElement&&(null==(n=e.dataRef.current)||!n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:r,disabled:n}=e.virtual,o=t.focus===Gwe.Specific?t.idx:Ywe(t,{resolveItems:()=>r,resolveActiveIndex:()=>{var t,a;return null!=(a=null!=(t=e.activeOptionIndex)?t:r.findIndex((e=>!n(e))))?a:null},resolveDisabled:n,resolveId(){throw new Error("Function not implemented.")}}),l=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===o&&e.activationTrigger===l?e:{...e,activeOptionIndex:o,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=f_e(e);if(null===l.activeOptionIndex){let e=l.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(l.activeOptionIndex=e)}let i=t.focus===Gwe.Specific?t.idx:Ywe(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),s=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===s?e:{...e,...l,isTyping:!1,activeOptionIndex:i,activationTrigger:s,__demoMode:!1}},4:(e,t)=>{var r,n,a;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,l=f_e(e,(e=>(e.push(o),e)));null===e.activeOptionIndex&&null!=(n=e.dataRef.current)&&n.isSelected(t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(o));let i={...e,...l,activationTrigger:2};return null!=(a=e.dataRef.current)&&a.__demoMode&&void 0===e.dataRef.current.value&&(i.activeOptionIndex=0),i},5:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let n=f_e(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...n,activationTrigger:2}},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var r,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let a=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);a=-1!==r?r:null}return{...e,activeOptionIndex:a,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},8:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},9:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},10:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},v_e=h(null);function m_e(e){let t=u(v_e);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,m_e),t}return t}v_e.displayName="ComboboxActionsContext";let y_e=h(null);function g_e(e){let r=k_e("VirtualProvider"),{options:n}=r.virtual,[a,o]=l((()=>{let e=r.optionsElement;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[r.optionsElement]),s=abe({enabled:0!==n.length,scrollPaddingStart:a,scrollPaddingEnd:o,count:n.length,estimateSize:()=>40,getScrollElement:()=>r.optionsElement,overscan:12}),[c,d]=i(0);nge((()=>{d((e=>e+1))}),[n]);let u=s.getVirtualItems();return 0===u.length?null:t.createElement(y_e.Provider,{value:s},t.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&0!==r.activationTrigger&&null!==r.activeOptionIndex&&n.length>r.activeOptionIndex&&s.scrollToIndex(r.activeOptionIndex)}},u.map((r=>{var a;return t.createElement(f,{key:r.key},t.cloneElement(null==(a=e.children)?void 0:a.call(e,{...e.slot,option:n[r.index]}),{key:`${c}-${r.key}`,"data-index":r.index,"aria-setsize":n.length,"aria-posinset":r.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${r.start}px)`,overflowAnchor:"none"}}))}))))}let b_e=h(null);function k_e(e){let t=u(b_e);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,k_e),t}return t}function w_e(e,t){return cge(t.type,p_e,e,t)}b_e.displayName="ComboboxDataContext";let __e=f;let x_e=dge.RenderStrategy|dge.Static;let M_e=yge((function(e,r){var o,s;let c=ige(),{value:d,defaultValue:u,onChange:h,form:f,name:p,by:v,disabled:m=c||!1,onClose:g,__demoMode:k=!1,multiple:w=!1,immediate:_=!1,virtual:x=null,nullable:M,...j}=e,E=function(e){let[t]=i(e);return t}(u),[O=(w?[]:void 0),C]=function(e,t,r){let[a,o]=i(r),l=void 0!==e,s=n(l),c=n(!1),d=n(!1);return!l||s.current||c.current?!l&&s.current&&!d.current&&(d.current=!0,s.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:a,oge((e=>(l||o(e),null==t?void 0:t(e))))]}(d,h,E),[z,P]=y(w_e,{dataRef:b(),comboboxState:k?0:1,isTyping:!1,options:[],virtual:x?{options:x.options,disabled:null!=(o=x.disabled)?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:k}),R=n(!1),A=n({static:!1,hold:!1}),I=function(e=obe){return a(((t,r)=>{if("string"==typeof e){let n=e;return(null==t?void 0:t[n])===(null==r?void 0:r[n])}return e(t,r)}),[e])}(v),L=oge((e=>x?null===v?x.options.indexOf(e):x.options.findIndex((t=>I(t,e))):z.options.findIndex((t=>I(t.dataRef.current.value,e))))),S=a((e=>cge(H.mode,{1:()=>O.some((t=>I(t,e))),0:()=>I(O,e)})),[O]),V=oge((e=>z.activeOptionIndex===L(e))),H=l((()=>({...z,immediate:_,optionsPropsRef:A,value:O,defaultValue:E,disabled:m,mode:w?1:0,virtual:x?z.virtual:null,get activeOptionIndex(){if(R.current&&null===z.activeOptionIndex&&(x?x.options.length>0:z.options.length>0)){if(x){let e=x.options.findIndex((e=>{var t,r;return!(null!=(r=null==(t=x.disabled)?void 0:t.call(x,e))&&r)}));if(-1!==e)return e}let e=z.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return z.activeOptionIndex},calculateIndex:L,compare:I,isSelected:S,isActive:V})),[O,E,m,w,k,z,x]);nge((()=>{var e;x&&P({type:7,options:x.options,disabled:null!=(e=x.disabled)?e:null})}),[x,null==x?void 0:x.options,null==x?void 0:x.disabled]),nge((()=>{z.dataRef.current=H}),[H]),Ebe(0===H.comboboxState,[H.buttonElement,H.inputElement,H.optionsElement],(()=>K.closeCombobox()));let N=l((()=>{var e,t,r;return{open:0===H.comboboxState,disabled:m,activeIndex:H.activeOptionIndex,activeOption:null===H.activeOptionIndex?null:H.virtual?H.virtual.options[null!=(e=H.activeOptionIndex)?e:0]:null!=(r=null==(t=H.options[H.activeOptionIndex])?void 0:t.dataRef.current.value)?r:null,value:O}}),[H,m,O]),Z=oge((()=>{if(null!==H.activeOptionIndex){if(K.setIsTyping(!1),H.virtual)W(H.virtual.options[H.activeOptionIndex]);else{let{dataRef:e}=H.options[H.activeOptionIndex];W(e.current.value)}K.goToOption(Gwe.Specific,H.activeOptionIndex)}})),D=oge((()=>{P({type:0}),R.current=!0})),B=oge((()=>{P({type:1}),R.current=!1,null==g||g()})),q=oge((e=>{P({type:3,isTyping:e})})),T=oge(((e,t,r)=>(R.current=!1,e===Gwe.Specific?P({type:2,focus:Gwe.Specific,idx:t,trigger:r}):P({type:2,focus:e,trigger:r})))),F=oge(((e,t)=>(P({type:4,payload:{id:e,dataRef:t}}),()=>{H.isActive(t.current.value)&&(R.current=!0),P({type:5,id:e})}))),W=oge((e=>cge(H.mode,{0:()=>null==C?void 0:C(e),1(){let t=H.value.slice(),r=t.findIndex((t=>I(t,e)));return-1===r?t.push(e):t.splice(r,1),null==C?void 0:C(t)}}))),$=oge((e=>{P({type:6,trigger:e})})),U=oge((e=>{P({type:8,element:e})})),G=oge((e=>{P({type:9,element:e})})),Y=oge((e=>{P({type:10,element:e})})),K=l((()=>({onChange:W,registerOption:F,goToOption:T,setIsTyping:q,closeCombobox:B,openCombobox:D,setActivationTrigger:$,selectActiveOption:Z,setInputElement:U,setButtonElement:G,setOptionsElement:Y})),[]),[X,Q]=function({inherit:e=!1}={}){let r=Bge(),[n,a]=i([]),o=e?[r,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,l((()=>function(e){let r=oge((e=>(a((t=>[...t,e])),()=>a((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),n=l((()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value})),[r,e.slot,e.name,e.props,e.value]);return t.createElement(Zge.Provider,{value:n},e.children)}),[a])]}(),J=null===r?{}:{ref:r},ee=a((()=>{if(void 0!==E)return null==C?void 0:C(E)}),[C,E]),te=hge();return t.createElement(Q,{value:X,props:{htmlFor:null==(s=H.inputElement)?void 0:s.id},slot:{open:0===H.comboboxState,disabled:m}},t.createElement(Nwe,null,t.createElement(v_e.Provider,{value:K},t.createElement(b_e.Provider,{value:H},t.createElement($we,{value:cge(H.comboboxState,{0:Wwe.Open,1:Wwe.Closed})},null!=p&&t.createElement(Cge,{disabled:m,data:null!=O?{[p]:O}:{},form:f,onReset:ee}),te({ourProps:J,theirProps:j,slot:N,defaultTag:__e,name:"Combobox"}))))))})),j_e=yge((function(e,t){var r;let a=k_e("Combobox.Button"),o=m_e("Combobox.Button"),s=Lge(t,o.setButtonElement),c=m(),{id:d=`headlessui-combobox-button-${c}`,disabled:u=a.disabled||!1,autoFocus:h=!1,...f}=e,p=Cbe(a.inputElement),v=oge((e=>{switch(e.key){case Nge.Space:case Nge.Enter:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&P((()=>o.openCombobox())),void p();case Nge.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(P((()=>o.openCombobox())),a.value||o.goToOption(Gwe.First)),void p();case Nge.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(P((()=>o.openCombobox())),a.value||o.goToOption(Gwe.Last)),void p();case Nge.Escape:if(0!==a.comboboxState)return;return e.preventDefault(),a.optionsElement&&!a.optionsPropsRef.current.static&&e.stopPropagation(),P((()=>o.closeCombobox())),void p();default:return}})),y=oge((e=>{e.preventDefault(),!Age(e.currentTarget)&&(e.button===Kwe.Left&&(0===a.comboboxState?o.closeCombobox():o.openCombobox()),p())})),g=Bge([d]),{isFocusVisible:b,focusProps:k}=Yye({autoFocus:h}),{isHovered:w,hoverProps:_}=Gye({isDisabled:u}),{pressed:x,pressProps:M}=function({disabled:e=!1}={}){let t=n(null),[r,a]=i(!1),o=rge(),l=oge((()=>{t.current=null,a(!1),o.dispose()})),s=oge((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let r=Jye(e.currentTarget);o.addEventListener(r,"pointerup",l,!1),o.addEventListener(r,"pointermove",(e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);a(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(r,"pointercancel",l,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:l,onClick:l}}}({disabled:u}),j=l((()=>({open:0===a.comboboxState,active:x||0===a.comboboxState,disabled:u,value:a.value,hover:w,focus:b})),[a,w,b,x,u]),E=mge({ref:s,id:d,type:zbe(e,a.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=a.optionsElement)?void 0:r.id,"aria-expanded":0===a.comboboxState,"aria-labelledby":g,disabled:u||void 0,autoFocus:h,onMouseDown:y,onKeyDown:v},k,_,M);return hge()({ourProps:E,theirProps:f,slot:j,defaultTag:"button",name:"Combobox.Button"})})),E_e=yge((function(e,t){var r,a,o,i,s;let c=k_e("Combobox.Input"),d=m_e("Combobox.Input"),h=m(),f=Rge(),{id:p=f||`headlessui-combobox-input-${h}`,onChange:v,displayValue:y,disabled:g=c.disabled||!1,autoFocus:b=!1,type:k="text",...w}=e,_=n(null),x=Lge(_,t,u(Vwe).setReference,d.setInputElement),M=Obe(c.inputElement),j=rge(),E=oge((()=>{d.onChange(null),c.optionsElement&&(c.optionsElement.scrollTop=0),d.goToOption(Gwe.Nothing)})),O=l((()=>{var e;return"function"==typeof y&&void 0!==c.value?null!=(e=y(c.value))?e:"":"string"==typeof c.value?c.value:""}),[c.value,y]);Dbe((([e,t],[r,n])=>{if(c.isTyping)return;let a=_.current;a&&((0===n&&1===t||e!==r)&&(a.value=e),requestAnimationFrame((()=>{if(c.isTyping||!a||(null==M?void 0:M.activeElement)!==a)return;let{selectionStart:e,selectionEnd:t}=a;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&a.setSelectionRange(a.value.length,a.value.length)})))}),[O,c.comboboxState,M,c.isTyping]),Dbe((([e],[t])=>{if(0===e&&1===t){if(c.isTyping)return;let e=_.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:a}=e;e.value="",e.value=t,null!==a?e.setSelectionRange(r,n,a):e.setSelectionRange(r,n)}}),[c.comboboxState]);let C=n(!1),z=oge((()=>{C.current=!0})),R=oge((()=>{j.nextFrame((()=>{C.current=!1}))})),A=oge((e=>{switch(d.setIsTyping(!0),e.key){case Nge.Enter:if(0!==c.comboboxState||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===c.activeOptionIndex)return void d.closeCombobox();d.selectActiveOption(),0===c.mode&&d.closeCombobox();break;case Nge.ArrowDown:return e.preventDefault(),e.stopPropagation(),cge(c.comboboxState,{0:()=>d.goToOption(Gwe.Next),1:()=>d.openCombobox()});case Nge.ArrowUp:return e.preventDefault(),e.stopPropagation(),cge(c.comboboxState,{0:()=>d.goToOption(Gwe.Previous),1:()=>{P((()=>d.openCombobox())),c.value||d.goToOption(Gwe.Last)}});case Nge.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.First);case Nge.PageUp:return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.First);case Nge.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.Last);case Nge.PageDown:return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.Last);case Nge.Escape:return 0!==c.comboboxState?void 0:(e.preventDefault(),c.optionsElement&&!c.optionsPropsRef.current.static&&e.stopPropagation(),0===c.mode&&null===c.value&&E(),d.closeCombobox());case Nge.Tab:if(0!==c.comboboxState)return;0===c.mode&&1!==c.activationTrigger&&d.selectActiveOption(),d.closeCombobox()}})),I=oge((e=>{null==v||v(e),0===c.mode&&""===e.target.value&&E(),d.openCombobox()})),L=oge((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:Uwe.find((t=>t!==e.currentTarget));if(!(null!=(r=c.optionsElement)&&r.contains(a)||null!=(n=c.buttonElement)&&n.contains(a)||0!==c.comboboxState))return e.preventDefault(),0===c.mode&&null===c.value&&E(),d.closeCombobox()})),S=oge((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:Uwe.find((t=>t!==e.currentTarget));null!=(r=c.buttonElement)&&r.contains(a)||null!=(n=c.optionsElement)&&n.contains(a)||c.disabled||c.immediate&&0!==c.comboboxState&&j.microTask((()=>{P((()=>d.openCombobox())),d.setActivationTrigger(1)}))})),V=Bge(),H=function(){var e,t;return null!=(t=null==(e=u(Sge))?void 0:e.value)?t:void 0}(),{isFocused:N,focusProps:Z}=Yye({autoFocus:b}),{isHovered:D,hoverProps:B}=Gye({isDisabled:g}),q=l((()=>({open:0===c.comboboxState,disabled:g,hover:D,focus:N,autofocus:b})),[c,D,N,b,g]),T=mge({ref:x,id:p,role:"combobox",type:k,"aria-controls":null==(r=c.optionsElement)?void 0:r.id,"aria-expanded":0===c.comboboxState,"aria-activedescendant":null===c.activeOptionIndex?void 0:c.virtual?null==(a=c.options.find((e=>!e.dataRef.current.disabled&&c.compare(e.dataRef.current.value,c.virtual.options[c.activeOptionIndex]))))?void 0:a.id:null==(o=c.options[c.activeOptionIndex])?void 0:o.id,"aria-labelledby":V,"aria-describedby":H,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(i=e.defaultValue)?i:void 0!==c.defaultValue?null==y?void 0:y(c.defaultValue):null)?s:c.defaultValue,disabled:g||void 0,autoFocus:b,onCompositionStart:z,onCompositionEnd:R,onKeyDown:A,onChange:I,onFocus:S,onBlur:L},Z,B);return hge()({ourProps:T,theirProps:w,slot:q,defaultTag:"input",name:"Combobox.Input"})})),O_e=Tge,C_e=yge((function(e,r){var o,c,d;let h=m(),{id:f=`headlessui-combobox-options-${h}`,hold:p=!1,anchor:v,portal:y=!1,modal:g=!0,transition:b=!1,...k}=e,w=k_e("Combobox.Options"),_=m_e("Combobox.Options"),x=function(e){return l((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(v);x&&(y=!0);let[M,j]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=u(Hwe),r=l((()=>e),[JSON.stringify(e,((e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t}))]);nge((()=>{null==t||t(null!=r?r:null)}),[t,r]);let n=u(Vwe);return l((()=>[n.setFloating,e?n.styles:{}]),[n.setFloating,e,n.styles])}(x),[E,O]=i(null),C=function(){let{getFloatingProps:e,slot:t}=u(Vwe);return a(((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor})),[e,t])}(),z=Lge(r,x?M:null,_.setOptionsElement,O),P=Obe(w.optionsElement),R=u(Fwe),[A,I]=Zbe(b,E,null!==R?(R&Wwe.Open)===Wwe.Open:0===w.comboboxState);!function(e,t,r){let n=age((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));s((()=>{if(!e)return;let r=null===t?null:t instanceof HTMLElement?t:t.current;if(!r)return;let a=tge();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}return()=>a.dispose()}),[t,n,e])}(A,w.inputElement,_.closeCombobox),Ibe(!w.__demoMode&&(g&&0===w.comboboxState),P),mbe(!w.__demoMode&&(g&&0===w.comboboxState),{allowed:a((()=>[w.inputElement,w.buttonElement,w.optionsElement]),[w.inputElement,w.buttonElement,w.optionsElement])}),nge((()=>{var t;w.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[w.optionsPropsRef,e.static]),nge((()=>{w.optionsPropsRef.current.hold=p}),[w.optionsPropsRef,p]),function(e,{container:t,accept:r,walk:a}){let o=n(r),l=n(a);s((()=>{o.current=r,l.current=a}),[r,a]),nge((()=>{if(!t||!e)return;let r=Jye(t);if(!r)return;let n=o.current,a=l.current,i=Object.assign((e=>n(e)),{acceptNode:n}),s=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)a(s.currentNode)}),[t,e,o,l])}(0===w.comboboxState,{container:w.optionsElement,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let L=Bge([null==(o=w.buttonElement)?void 0:o.id]),S=l((()=>({open:0===w.comboboxState,option:void 0})),[w.comboboxState]),V=oge((()=>{_.setActivationTrigger(0)})),H=oge((e=>{e.preventDefault(),_.setActivationTrigger(0)})),N=mge(x?C():{},{"aria-labelledby":L,role:"listbox","aria-multiselectable":1===w.mode||void 0,id:f,ref:z,style:{...k.style,...j,"--input-width":lbe(w.inputElement,!0).width,"--button-width":lbe(w.buttonElement,!0).width},onWheel:0===w.activationTrigger?void 0:V,onMouseDown:H,...Nbe(I)}),Z=A&&1===w.comboboxState,D=Twe(Z,null==(c=w.virtual)?void 0:c.options),B=Twe(Z,w.value),q=oge((e=>w.compare(B,e)));if(w.virtual){if(void 0===D)throw new Error("Missing `options` in virtual mode");Object.assign(k,{children:t.createElement(b_e.Provider,{value:D!==w.virtual.options?{...w,virtual:{...w.virtual,options:D}}:w},t.createElement(g_e,{slot:S},k.children))})}let T=hge();return t.createElement(s_e,{enabled:!!y&&(e.static||A)},t.createElement(b_e.Provider,{value:1===w.mode?w:{...w,isSelected:q}},T({ourProps:N,theirProps:{...k,children:t.createElement(qwe,{freeze:Z},"function"==typeof k.children?null==(d=k.children)?void 0:d.call(k,S):k.children)},slot:S,defaultTag:"div",features:x_e,visible:A,name:"Combobox.Options"})))})),z_e=yge((function(e,t){var r,a,o,i;let s=k_e("Combobox.Option"),c=m_e("Combobox.Option"),d=m(),{id:h=`headlessui-combobox-option-${d}`,value:f,disabled:p=null!=(o=null==(a=null==(r=s.virtual)?void 0:r.disabled)?void 0:a.call(r,f))&&o,order:v=null,...y}=e,g=Cbe(s.inputElement),b=s.virtual?s.activeOptionIndex===s.calculateIndex(f):null!==s.activeOptionIndex&&(null==(i=s.options[s.activeOptionIndex])?void 0:i.id)===h,k=s.isSelected(f),w=n(null),_=age({disabled:p,value:f,domRef:w,order:v}),x=u(y_e),M=Lge(t,w,x?x.measureElement:null),j=oge((()=>{c.setIsTyping(!1),c.onChange(f)}));nge((()=>c.registerOption(h,_)),[_,h]);let E=n(!(s.virtual||s.__demoMode));nge((()=>{if(!s.virtual&&!s.__demoMode)return tge().requestAnimationFrame((()=>{E.current=!0}))}),[s.virtual,s.__demoMode]),nge((()=>{if(E.current&&0===s.comboboxState&&b&&0!==s.activationTrigger)return tge().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[w,b,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let O=oge((e=>{e.preventDefault(),e.button===Kwe.Left&&(p||(j(),Mbe()||requestAnimationFrame((()=>g())),0===s.mode&&c.closeCombobox()))})),C=oge((()=>{if(p)return c.goToOption(Gwe.Nothing);let e=s.calculateIndex(f);c.goToOption(Gwe.Specific,e)})),z=function(){let e=n([-1,-1]);return{wasMoved(t){let r=Lbe(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=Lbe(t)}}}(),P=oge((e=>z.update(e))),R=oge((e=>{if(!z.wasMoved(e)||p||b)return;let t=s.calculateIndex(f);c.goToOption(Gwe.Specific,t,0)})),A=oge((e=>{z.wasMoved(e)&&(p||b&&(s.optionsPropsRef.current.hold||c.goToOption(Gwe.Nothing)))})),I=l((()=>({active:b,focus:b,selected:k,disabled:p})),[b,k,p]),L={id:h,ref:M,role:"option",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,"aria-selected":k,disabled:void 0,onMouseDown:O,onFocus:C,onPointerEnter:P,onMouseEnter:P,onPointerMove:R,onMouseMove:R,onPointerLeave:A,onMouseLeave:A};return hge()({ourProps:L,theirProps:y,slot:I,defaultTag:"div",name:"Combobox.Option"})})),P_e=Object.assign(M_e,{Input:E_e,Button:j_e,Label:O_e,Options:C_e,Option:z_e});j(["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 R_e=j(["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}}),A_e=j([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[68px]"}},defaultVariants:{size:"md"}}),I_e=Ax("relative flex gap-1 cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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)]"),L_e=r(((e,t)=>{var{id:r,options:o=[],value:d,label:u,size:h="md",rounded:p="normal",variant:v="outline",helperText:m,errorMessage:y,fullwidth:g=!0,disabled:b=!1,error:k=!1,filterMode:w=!1,required:j=!0,modal:E,onChangeText:O,onSelect:C,renderOptions:z,optionContainerClassName:P,optionItemClassName:R,optionNotFoundItemClassName:A,segmentedInput:I=!0,keepOpenAfterSelect:L=!1,portal:S=!1}=e,V=zx(e,["id","options","value","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","modal","onChangeText","onSelect","renderOptions","optionContainerClassName","optionItemClassName","optionNotFoundItemClassName","segmentedInput","keepOpenAfterSelect","portal"]);const H=r||`${u}-select`,[N,Z]=i(null),[D,B]=i(""),q=n(null);c(t,(()=>q.current),[]),s((()=>{Z(null!=d?d:null)}),[d]);const T=l((()=>w&&D?o.filter((e=>e.label.toLowerCase().includes(D.toLowerCase()))):o),[o,w,D]),F=a((e=>{Z(e),B(""),e&&(null==C||C(e),L||setTimeout((()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.blur()}),0))}),[C,L]),W=a((e=>{w&&B(e.target.value),null==O||O(e)}),[w,O]);return _(P_e,{value:N,onChange:F,immediate:!0,by:"value",disabled:b,children:({open:e})=>x("div",{className:Ax("relative",g&&"w-full"),children:[_(E_e,Object.assign({as:Yme,ref:q,hasClearIcon:!1,endIcon:_(Vn,{className:R_e({isFocus:e})}),label:u,autoComplete:"off",rounded:p,variant:v,helperText:m,errorMessage:y,fullwidth:g,error:k,required:j,id:H,disabled:b,size:h,className:I?A_e({size:h}):void 0,displayValue:e=>{var t;return null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""},readOnly:!w,onChange:W},V)),_(C_e,Object.assign({},S?{portal:!0,anchor:{to:"bottom start",gap:4}}:{},{className:Ax(!S&&"absolute top-full left-0 w-full -mt-3 z-[51]",S&&"z-[51] !max-h-60 w-[var(--input-width)]","min-w-[154px] max-h-60 overflow-y-auto","rounded-md bg-modal-dropdown-surface border border-bg-stroke3 text-text-g-contrast-high",P),style:{boxShadow:"var(--dropdown-menu-shadow)"},children:z?z({optionsFiltered:T,selectedOption:N,onClick:F}):0===T.length?_("div",{className:Ax("px-4 py-14 text-center text-input-text",A),children:"Not found"}):T.map((e=>e.renderLabel?_(f,{children:e.renderLabel({value:e.value,label:e.label,handleOnClick:()=>F(e),className:Ax(I_e,(null==N?void 0:N.value)===e.value&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)]",R)})},e.value):_(z_e,{value:e,className:({focus:t,selected:r})=>Ax(I_e,(r||(null==N?void 0:N.value)===e.value)&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)]",t&&"bg-[var(--dropdown-menu-hover-bg)] text-[var(--dropdown-menu-hover-text)]",R),children:({selected:t})=>x(M,{children:[_("span",{className:"shrink-0 size-4 flex items-center justify-center",children:(t||(null==N?void 0:N.value)===e.value)&&_(nye,{type:"heroicons",name:"check",className:"size-4 text-[var(--dropdown-menu-selected-text)]"})}),e.label]})},e.value)))}))]})})}));function S_e(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function V_e(...t){return e.useCallback(S_e(...t),t)}function H_e(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;n=[...n,a];const i=r=>{const{scope:n,children:a,...i}=r,s=n?.[t]?.[l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})};return i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t]?.[l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},N_e(a,...r)]}function N_e(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}function Z_e(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function D_e(t){const r=e.useRef(t);return e.useEffect((()=>{r.current=t})),e.useMemo((()=>(...e)=>r.current?.(...e)),[])}function B_e({prop:t,defaultProp:r,onChange:n=()=>{}}){const[a,o]=function({defaultProp:t,onChange:r}){const n=e.useState(t),[a]=n,o=e.useRef(a),l=D_e(r);return e.useEffect((()=>{o.current!==a&&(l(a),o.current=a)}),[a,o,l]),n}({defaultProp:r,onChange:n}),l=void 0!==t,i=l?t:a,s=D_e(n);return[i,e.useCallback((e=>{if(l){const r="function"==typeof e?e(t):e;r!==t&&s(r)}else o(e)}),[l,t,o,s])]}function q_e(t){const r=e.useRef({value:t,previous:t});return e.useMemo((()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous)),[t])}L_e.displayName="Dropdown";var T_e=Boolean(globalThis?.document)?e.useLayoutEffect:()=>{};function F_e(t){const[r,n]=e.useState(void 0);return T_e((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),r}var W_e=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=$_e(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=$_e(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=$_e(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=$_e(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function $_e(e){return e?.animationName||"none"}W_e.displayName="Presence";var U_e=e.forwardRef(((t,r)=>{const{children:n,...a}=t,o=e.Children.toArray(n),l=o.find(K_e);if(l){const t=l.props.children,n=o.map((r=>r===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r));return _(G_e,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,n):null})}return _(G_e,{...a,ref:r,children:n})}));U_e.displayName="Slot";var G_e=e.forwardRef(((t,r)=>{const{children:n,...a}=t;if(e.isValidElement(n)){const t=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}(n);return e.cloneElement(n,{...X_e(a,n.props),ref:r?S_e(r,t):t})}return e.Children.count(n)>1?e.Children.only(null):null}));G_e.displayName="SlotClone";var Y_e=({children:e})=>_(M,{children:e});function K_e(t){return e.isValidElement(t)&&t.type===Y_e}function X_e(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 Q_e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),J_e="Checkbox",[exe]=H_e(J_e),[txe,rxe]=exe(J_e),nxe=e.forwardRef(((t,r)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:l,required:i,disabled:s,value:c="on",onCheckedChange:d,form:u,...h}=t,[f,p]=e.useState(null),v=V_e(r,(e=>p(e))),m=e.useRef(!1),y=!f||(u||!!f.closest("form")),[g=!1,b]=B_e({prop:o,defaultProp:l,onChange:d}),k=e.useRef(g);return e.useEffect((()=>{const e=f?.form;if(e){const t=()=>b(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,b]),x(txe,{scope:n,state:g,disabled:s,children:[_(Q_e.button,{type:"button",role:"checkbox","aria-checked":ixe(g)?"mixed":g,"aria-required":i,"data-state":sxe(g),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onKeyDown:Z_e(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Z_e(t.onClick,(e=>{b((e=>!!ixe(e)||!e)),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&_(lxe,{control:f,bubbles:!m.current,name:a,value:c,checked:g,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!ixe(l)&&l})]})}));nxe.displayName=J_e;var axe="CheckboxIndicator",oxe=e.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...a}=e,o=rxe(axe,r);return _(W_e,{present:n||ixe(o.state)||!0===o.state,children:_(Q_e.span,{"data-state":sxe(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));oxe.displayName=axe;var lxe=t=>{const{control:r,checked:n,bubbles:a=!0,defaultChecked:o,...l}=t,i=e.useRef(null),s=q_e(n),c=F_e(r);e.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});e.indeterminate=ixe(n),r.call(e,!ixe(n)&&n),e.dispatchEvent(t)}}),[s,n,a]);const d=e.useRef(!ixe(n)&&n);return _("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...l,tabIndex:-1,ref:i,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ixe(e){return"indeterminate"===e}function sxe(e){return ixe(e)?"indeterminate":e?"checked":"unchecked"}var cxe=nxe,dxe=oxe;const uxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(cxe,Object.assign({ref:t,className:Ax("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":!n.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":!n.disabled},r)},n,{children:x(dxe,{className:Ax("flex size-[14px] items-center justify-center text-current","[&[data-state=checked]_.checkbox-check-icon]:block","[&[data-state=indeterminate]_.checkbox-minus-icon]:block"),children:[_(En,{className:"checkbox-check-icon hidden size-[14px]"}),_(ts,{className:"checkbox-minus-icon hidden size-[14px]"})]})}))}));uxe.displayName=cxe.displayName;var hxe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),fxe=e.forwardRef(((e,t)=>_(hxe.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));fxe.displayName="Label";var pxe=fxe;const vxe=j(["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}}),mxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(pxe,Object.assign({ref:t,className:Ax(vxe({size:n.size,disabled:n.disabled,error:n.error,isFloatable:n.isFloatable}),r)},n))}));mxe.displayName=pxe.displayName;const yxe=j(["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}}),gxe=r(((e,t)=>{var{className:r,type:n="text",size:a="md",variant:o="outline",rounded:l="normal",fullwidth:i=!1,disabled:s=!1,error:c=!1,required:d=!1,hiddenPlaceholder:u=!1}=e,h=zx(e,["className","type","size","variant","rounded","fullwidth","disabled","error","required","hiddenPlaceholder"]);return _("input",Object.assign({type:n,className:Ax(yxe({size:a,variant:o,fullwidth:i,error:c,hiddenPlaceholder:u,disabled:s,rounded:l}),r),ref:t,disabled:s},h))}));gxe.displayName="Input";const bxe=({children:e,className:t,variant:r="default",scrollShadow:n=!1,center:a,leftNav:o,rightNav:l,position:c,container:d=!1,containerClassName:u,leftNavClassName:h,centerClassName:f,rightNavClassName:p})=>{const[v,m]=i(!1);s((()=>{if(!n||"undefined"==typeof window)return;const e=()=>{m(window.scrollY>4)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),[n]);const y="transparent"===r;return x("header",{className:Ax("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},n&&v&&"shadow-[var(--navbar-shadow-scrolled)]",t),children:[!y&&_("div",{className:"absolute inset-0 -z-10 bg-[rgb(var(--navbar-bg-color))]","aria-hidden":!0}),_("div",{className:Ax("absolute inset-0 -z-[5] pointer-events-none",t),"aria-hidden":!0}),_("div",{className:Ax("relative mx-auto flex h-full justify-between items-center",{container:d},u),children:e||x(M,{children:[_("nav",{className:Ax("flex w-1/2 gap-x-[var(--navbar-gap)] text-xl",h),children:o}),_("div",{className:Ax("flex flex-shrink-0 flex-wrap justify-center",f),children:a}),_("nav",{className:Ax("flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl",p),children:l})]})})]})},kxe=({children:e,className:t,variant:r="default",copyright:n,center:a,leftNav:o,rightNav:l,position:i,container:s=!1,containerClassName:c,leftNavClassName:d,centerClassName:u,rightNavClassName:h})=>{const f="simple"===r,p="transparent"===r,v=o||n,m=f&&null!=n?n:a,y=f?null:l;return x("footer",{className:Ax("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:i},t),children:[!p&&_("div",{className:"absolute inset-0 -z-10 bg-[var(--footer-bg-color)]","aria-hidden":!0}),_("div",{className:Ax("absolute inset-0 -z-[5] pointer-events-none",t),"aria-hidden":!0}),_("div",{className:Ax("relative mx-auto flex h-full items-center",f?"justify-center":"justify-between",{container:s},c),children:null!=e?e:f?_("div",{className:Ax("text-center",u),children:m}):x(M,{children:[_("nav",{className:Ax("flex w-1/2 items-center gap-x-[var(--footer-gap)] text-xl",d),children:n&&o?x(M,{children:[_("span",{className:"flex-shrink-0",children:n}),o]}):v}),_("div",{className:Ax("flex flex-shrink-0 flex-wrap justify-center",u),children:m}),_("nav",{className:Ax("flex w-1/2 justify-end gap-x-[var(--footer-gap)] text-xl",h),children:y})]})})]})};var wxe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),_xe="Avatar",[xxe]=H_e(_xe),[Mxe,jxe]=xxe(_xe),Exe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,...a}=t,[o,l]=e.useState("idle");return _(Mxe,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:_(wxe.span,{...a,ref:r})})}));Exe.displayName=_xe;var Oxe="AvatarImage",Cxe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:o=()=>{},...l}=t,i=jxe(Oxe,n),s=function(t,r){const[n,a]=e.useState("idle");return T_e((()=>{if(!t)return void a("error");let e=!0;const n=new window.Image,o=t=>()=>{e&&a(t)};return a("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=t,r&&(n.referrerPolicy=r),()=>{e=!1}}),[t,r]),n}(a,l.referrerPolicy),c=D_e((e=>{o(e),i.onImageLoadingStatusChange(e)}));return T_e((()=>{"idle"!==s&&c(s)}),[s,c]),"loaded"===s?_(wxe.img,{...l,ref:r,src:a}):null}));Cxe.displayName=Oxe;var zxe="AvatarFallback",Pxe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,delayMs:a,...o}=t,l=jxe(zxe,n),[i,s]=e.useState(void 0===a);return e.useEffect((()=>{if(void 0!==a){const e=window.setTimeout((()=>s(!0)),a);return()=>window.clearTimeout(e)}}),[a]),i&&"loaded"!==l.imageLoadingStatus?_(wxe.span,{...o,ref:r}):null}));Pxe.displayName=zxe;var Rxe=Exe,Axe=Cxe,Ixe=Pxe;const Lxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Rxe,Object.assign({ref:t,className:Ax("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",r)},n))}));Lxe.displayName=Rxe.displayName;const Sxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Axe,Object.assign({ref:t,className:Ax("object-cover object-top h-full w-full",r)},n))}));Sxe.displayName=Axe.displayName;const Vxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Ixe,Object.assign({ref:t,className:Ax("flex h-full w-full items-center justify-center rounded-full bg-inherit text-inherit",r)},n))}));Vxe.displayName=Ixe.displayName;const Hxe=j(["flex items-center justify-center bg-grey2-900 text-text-white typography-subtitle6 truncate"],{variants:{size:{xxs:"w-[24px] h-[24px] typography-small3",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"},hasImage:{true:"bg-white"}},defaultVariants:{size:"md",rounded:"normal"}}),Nxe=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:""}`},Zxe=({text:e,imageUrl:t,icon:r,fallback:n,size:a,rounded:o,className:l,imageClassName:i,fallbackClassName:s,type:c="text",children:d,style:u})=>{const h=Hxe({size:a,rounded:o,hasImage:!!t});return _(Lxe,{className:Ax(h,l),style:u,children:d||x(M,{children:["image"===c&&x(M,{children:[_(Sxe,{src:t,className:Ax(i)}),_(Vxe,{className:Ax(s),children:"string"==typeof n?Nxe(n):n})]}),"text"===c&&Nxe(null!=e?e:""),"icon"===c&&r]})})},Dxe=({borderWidth:e=2,borderColor:t="white",maxDisplay:r=4,children:n,remainingText:a,remainingAvatar:o})=>{const l=k.toArray(n),i=l.slice(0,r),s=Math.max(0,l.length-r),c=o||v(i[0],{style:{borderWidth:e,borderColor:t},className:"relative z-0",children:a||`+${s}`});return x("div",{className:"flex items-center -space-x-2",children:[i.map(((r,n)=>_("div",{className:"relative",style:{zIndex:l.length-n},children:v(r,{style:{borderWidth:e,borderColor:t}})},n))),s>0&&c]})},Bxe=j(["inline-flex items-center justify-center rounded-lg px-3 py-1","typography-body3"],{variants:{color:{default:["bg-[var(--badge-default-bg)]","text-[var(--badge-default-text)]"],success:["bg-[var(--badge-success-bg)]","text-[var(--badge-success-text)]"],warning:["bg-[var(--badge-warning-bg)]","text-[var(--badge-warning-text)]"],info:["bg-[var(--badge-info-bg)]","text-[var(--badge-info-text)]"],error:["bg-[var(--badge-error-bg)]","text-[var(--badge-error-text)]"]},clickable:{true:"border border-solid",false:""}},compoundVariants:[{color:"default",clickable:!0,className:"border-[var(--badge-default-border)]"},{color:"success",clickable:!0,className:"border-[var(--badge-success-border)]"},{color:"warning",clickable:!0,className:"border-[var(--badge-warning-border)]"},{color:"info",clickable:!0,className:"border-[var(--badge-info-border)]"},{color:"error",clickable:!0,className:"border-[var(--badge-error-border)]"}],defaultVariants:{color:"default",clickable:!1}}),qxe=j(["inline-flex items-center justify-center rounded px-1 py-0.5","typography-small6 text-[var(--badge-severity-text)]"],{variants:{severity:{highest:"bg-[var(--badge-severity-highest-bg)]",high:"bg-[var(--badge-severity-high-bg)]",medium:"bg-[var(--badge-severity-medium-bg)]",low:"bg-[var(--badge-severity-low-bg)]",lowest:"bg-[var(--badge-severity-lowest-bg)]"}},defaultVariants:{severity:"medium"}}),Txe=e.forwardRef(((e,t)=>{var{label:r,color:n="default",clickable:a=!1,percent:o,className:l}=e,i=zx(e,["label","color","clickable","percent","className"]);const s=void 0!==o;return x("span",Object.assign({ref:t,className:Ax(Bxe({color:n,clickable:a}),s&&"flex-col gap-0.5",a&&"cursor-pointer gap-1",l)},i,{children:[x("span",{className:"flex items-center gap-1",children:[r,a&&_(Vn,{className:"size-4 shrink-0","aria-hidden":!0})]}),s&&x("span",{className:"tabular-nums",children:[o,"%"]})]}))}));Txe.displayName="Badge";const Fxe={highest:"Highest",high:"High",medium:"Medium",low:"Low",lowest:"Lowest"},Wxe=e.forwardRef(((e,t)=>{var{severity:r,className:n}=e,a=zx(e,["severity","className"]);return _("span",Object.assign({ref:t,className:Ax(qxe({severity:r}),n)},a,{children:Fxe[r]}))}));Wxe.displayName="SeverityBadge";const $xe=h(void 0),Uxe=()=>{const e=u($xe);if(!e)throw new Error("useCollapsible must be used within a CollapsibleProvider");return e},Gxe=({size:e,children:t,isExpandControlled:r,onToggle:n})=>{const[a,o]=i(!1);return s((()=>{void 0!==r&&o(r)}),[r]),_($xe.Provider,{value:{size:e,isExpand:a,toggle:()=>{o((e=>!e)),n&&n(!a)},setIsExpand:o},children:t})},Yxe=j(["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"}}),Kxe=j(["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}}),Xxe=j(["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"}}),Qxe=j(["flex flex-col border border-secondary rounded overflow-hidden"]),Jxe=r((({children:e,className:t,hideExpandIcon:r=!1},n)=>{const{toggle:a,isExpand:o,size:l}=Uxe(),i=Yxe({size:l}),s=Kxe({isExpand:o,size:l});return x("button",{onClick:a,className:Ax(i,t),ref:n,children:[_("span",{className:"flex flex-1",children:e}),!r&&_("span",{className:Ax(s),children:_(Vn,{className:Ax("size-full")})})]})}));Jxe.displayName="CollapsibleButton";const eMe=r((({children:e,className:t},r)=>{const{isExpand:a,size:o}=Uxe(),l=Xxe({size:o}),[c,d]=i("0px"),u=n(null);return s((()=>{u.current&&d(a?`${u.current.scrollHeight}px`:"0px")}),[a,e]),_("div",{ref:r,className:Ax("overflow-hidden transition-all ease-in-out"),style:{height:c},children:_("div",{ref:u,className:Ax(l,t),children:e})})}));eMe.displayName="CollapsiblePanel";const tMe=r((({children:e,isExpand:t,size:r,className:n,onToggle:a},o)=>{const l=Qxe();return _(Gxe,{size:r,isExpandControlled:t,onToggle:a,children:_("div",{ref:o,className:Ax(l,n),children:e})})}));var rMe,nMe,aMe;tMe.displayName="Collapsible",tMe.Button=Jxe,tMe.Panel=eMe,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"}(rMe||(rMe={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(nMe||(nMe={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(aMe||(aMe={}));const oMe=6048e5,lMe=Symbol.for("constructDateFrom");function iMe(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&lMe in e?e[lMe](t):e instanceof Date?new e.constructor(t):new Date(t)}function sMe(e,t){return iMe(t||e,e)}function cMe(e,t,r){const n=sMe(e,r?.in);return isNaN(t)?iMe(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function dMe(e,t,r){const n=sMe(e,r?.in);if(isNaN(t))return iMe(e,NaN);if(!t)return n;const a=n.getDate(),o=iMe(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return a>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}let uMe={};function hMe(){return uMe}function fMe(e,t){const r=hMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=sMe(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 pMe(e,t){return fMe(e,{...t,weekStartsOn:1})}function vMe(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=iMe(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=pMe(a),l=iMe(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const i=pMe(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function mMe(e){const t=sMe(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 yMe(e,...t){const r=iMe.bind(null,t.find((e=>"object"==typeof e)));return t.map(r)}function gMe(e,t){const r=sMe(e,t?.in);return r.setHours(0,0,0,0),r}function bMe(e,t,r){const[n,a]=yMe(0,e,t),o=gMe(n),l=gMe(a),i=+o-mMe(o),s=+l-mMe(l);return Math.round((i-s)/864e5)}function kMe(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wMe(e,t){const r=sMe(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function _Me(e,t){const r=hMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=sMe(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 xMe={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 MMe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const jMe={date:MMe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:MMe({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:MMe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},EMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function OMe(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 CMe={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:OMe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:OMe({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:OMe({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:OMe({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:OMe({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 zMe(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 PMe={ordinalNumber:(RMe={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(RMe.matchPattern);if(!r)return null;const n=r[0],a=e.match(RMe.parsePattern);if(!a)return null;let o=RMe.valueCallback?RMe.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:zMe({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:zMe({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:zMe({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:zMe({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:zMe({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 RMe;const AMe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=xMe[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:jMe,formatRelative:(e,t,r,n)=>EMe[e],localize:CMe,match:PMe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function IMe(e,t){const r=sMe(e,t?.in),n=+pMe(r)-+function(e,t){const r=vMe(e,t),n=iMe(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),pMe(n)}(r);return Math.round(n/oMe)+1}function LMe(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=hMe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=iMe(t?.in||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=fMe(l,t),s=iMe(t?.in||e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=fMe(s,t);return+r>=+i?n+1:+r>=+c?n:n-1}function SMe(e,t){const r=sMe(e,t?.in),n=+fMe(r,t)-+function(e,t){const r=hMe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=LMe(e,t),o=iMe(t?.in||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),fMe(o,t)}(r,t);return Math.round(n/oMe)+1}function VMe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const HMe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return VMe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):VMe(r+1,2)},d:(e,t)=>VMe(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)=>VMe(e.getHours()%12||12,t.length),H:(e,t)=>VMe(e.getHours(),t.length),m:(e,t)=>VMe(e.getMinutes(),t.length),s:(e,t)=>VMe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return VMe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},NMe="midnight",ZMe="noon",DMe="morning",BMe="afternoon",qMe="evening",TMe="night",FMe={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 HMe.y(e,t)},Y:function(e,t,r,n){const a=LMe(e,n),o=a>0?a:1-a;if("YY"===t){return VMe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):VMe(o,t.length)},R:function(e,t){return VMe(vMe(e),t.length)},u:function(e,t){return VMe(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 VMe(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 VMe(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 HMe.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 VMe(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=SMe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):VMe(a,t.length)},I:function(e,t,r){const n=IMe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):VMe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):HMe.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=sMe(e,t?.in);return bMe(r,wMe(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):VMe(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 VMe(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 VMe(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 VMe(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?ZMe:0===n?NMe: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?qMe:n>=12?BMe:n>=4?DMe:TMe,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 HMe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):HMe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):VMe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):VMe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):HMe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):HMe.s(e,t)},S:function(e,t){return HMe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return $Me(n);case"XXXX":case"XX":return UMe(n);default:return UMe(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return $Me(n);case"xxxx":case"xx":return UMe(n);default:return UMe(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WMe(n,":");default:return"GMT"+UMe(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WMe(n,":");default:return"GMT"+UMe(n,":")}},t:function(e,t,r){return VMe(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return VMe(+e,t.length)}};function WMe(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+VMe(o,2)}function $Me(e,t){if(e%60==0){return(e>0?"-":"+")+VMe(Math.abs(e)/60,2)}return UMe(e,t)}function UMe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+VMe(Math.trunc(n/60),2)+t+VMe(n%60,2)}const GMe=(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"})}},YMe=(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"})}},KMe={p:YMe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return GMe(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}}",GMe(n,t)).replace("{{time}}",YMe(a,t))}},XMe=/^D+$/,QMe=/^Y+$/,JMe=["D","DD","YY","YYYY"];const eje=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tje=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rje=/^'([^]*?)'?$/,nje=/''/g,aje=/[a-zA-Z]/;function oje(e,t,r){const n=hMe(),a=r?.locale??n.locale??AMe,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=sMe(e,r?.in);if(!function(e){return!(!kMe(e)&&"number"!=typeof e||isNaN(+sMe(e)))}(i))throw new RangeError("Invalid time value");let s=t.match(tje).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,KMe[t])(e,a.formatLong)}return e})).join("").match(eje).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:lje(e)};if(FMe[t])return{isToken:!0,value:e};if(t.match(aje))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 QMe.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return XMe.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),JMe.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,FMe[o[0]])(i,o,a.localize,c)})).join("")}function lje(e){const t=e.match(rje);return t?t[1].replace(nje,"'"):e}function ije(e,t,r){const n=sMe(e,r?.in),a=n.getFullYear(),o=n.getDate(),l=iMe(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const i=function(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=r.getMonth(),o=iMe(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 sje(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 cje{constructor(e,t){this.Date=Date,this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):cMe(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):dMe(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,r){return cMe(e,7*t,r)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,r){return dMe(e,12*t,r)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):bMe(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t){const[r,n]=yMe(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=sje(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 _Me(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const r=sMe(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):_Me(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const r=sMe(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):oje(e,t,this.options),this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):IMe(e),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):SMe(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+sMe(e)>+sMe(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+sMe(e)<+sMe(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):kMe(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[r,n]=yMe(0,e,t);return+gMe(r)==+gMe(n)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[r,n]=yMe(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]=yMe(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=iMe.bind(null,e));const t=sMe(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),iMe(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=iMe.bind(null,e));const t=sMe(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),iMe(n,r||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):ije(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,r){const n=sMe(e,r?.in);return isNaN(+n)?iMe(e,NaN):(n.setFullYear(t),n)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):sje(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):gMe(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):pMe(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const r=sMe(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):fMe(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):wMe(e),this.options={locale:AMe,...e},this.overrides=t}}const dje=new cje;const uje=h(void 0);function hje(){const e=u(uje);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var fje=Object.freeze({__proto__:null,Button:function(e){return t.createElement("button",{...e})},CaptionLabel:function(e){return t.createElement("span",{...e})},Chevron:function(e){const{size:r=24,orientation:n="left",className:a}=e;return t.createElement("svg",{className:a,width:r,height:r,viewBox:"0 0 24 24"},"up"===n&&t.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&t.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&t.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&t.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(e){const{day:r,modifiers:n,...a}=e;return t.createElement("td",{...a})},DayButton:function(e){const{day:r,modifiers:n,...a}=e,o=t.useRef(null);return t.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),t.createElement("button",{ref:o,...a})},Dropdown:function(e){const{options:r,className:n,components:a,classNames:o,...l}=e,i=[o[rMe.Dropdown],n].join(" "),s=r?.find((({value:e})=>e===l.value));return t.createElement("span",{"data-disabled":l.disabled,className:o[rMe.DropdownRoot]},t.createElement(a.Select,{className:i,...l},r?.map((({value:e,label:r,disabled:n})=>t.createElement(a.Option,{key:e,value:e,disabled:n},r)))),t.createElement("span",{className:o[rMe.CaptionLabel],"aria-hidden":!0},s?.label,t.createElement(a.Chevron,{orientation:"down",size:18,className:o[rMe.Chevron]})))},DropdownNav:function(e){return t.createElement("div",{...e})},Footer:function(e){return t.createElement("div",{...e})},Month:function(e){const{calendarMonth:r,displayIndex:n,...a}=e;return t.createElement("div",{...a},e.children)},MonthCaption:function(e){const{calendarMonth:r,displayIndex:n,...a}=e;return t.createElement("div",{...a})},MonthGrid:function(e){return t.createElement("table",{...e})},Months:function(e){return t.createElement("div",{...e})},MonthsDropdown:function(e){const{components:r}=hje();return t.createElement(r.Dropdown,{...e})},Nav:function(e){const{onPreviousClick:r,onNextClick:n,previousMonth:a,nextMonth:o,...l}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:d}}=hje();return t.createElement("nav",{...l},t.createElement(i.PreviousMonthButton,{type:"button",className:s[rMe.PreviousMonthButton],tabIndex:a?void 0:-1,disabled:!a||void 0,"aria-label":c(a),onClick:e.onPreviousClick},t.createElement(i.Chevron,{disabled:!a||void 0,className:s[rMe.Chevron],orientation:"left"})),t.createElement(i.NextMonthButton,{type:"button",className:s[rMe.NextMonthButton],tabIndex:o?void 0:-1,disabled:!o||void 0,"aria-label":d(o),onClick:e.onNextClick},t.createElement(i.Chevron,{disabled:!o||void 0,orientation:"right",className:s[rMe.Chevron]})))},NextMonthButton:function(e){const{components:r}=hje();return t.createElement(r.Button,{...e})},Option:function(e){return t.createElement("option",{...e})},PreviousMonthButton:function(e){const{components:r}=hje();return t.createElement(r.Button,{...e})},Root:function(e){return t.createElement("div",{...e})},Select:function(e){return t.createElement("select",{...e})},Week:function(e){const{week:r,...n}=e;return t.createElement("tr",{...n})},WeekNumber:function(e){const{week:r,...n}=e;return t.createElement("th",{...n})},WeekNumberHeader:function(e){return t.createElement("th",{...e})},Weekday:function(e){return t.createElement("th",{...e})},Weekdays:function(e){return t.createElement("thead",{"aria-hidden":!0},t.createElement("tr",{...e}))},Weeks:function(e){return t.createElement("tbody",{...e})},YearsDropdown:function(e){const{components:r}=hje();return t.createElement(r.Dropdown,{...e})}});function pje(e){return{...fje,...e}}function vje(){const e={};for(const t in rMe)e[rMe[t]]=`rdp-${rMe[t]}`;for(const t in nMe)e[nMe[t]]=`rdp-${nMe[t]}`;for(const t in aMe)e[aMe[t]]=`rdp-${aMe[t]}`;return e}function mje(e,t,r){return(r??new cje(t)).format(e,"LLLL y")}const yje=mje;function gje(e){return e.toString()}const bje=gje;var kje=Object.freeze({__proto__:null,formatCaption:mje,formatDay:function(e,t,r){return(r??new cje(t)).format(e,"d")},formatMonthCaption:yje,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 cje(t)).format(e,"cccccc")},formatYearCaption:bje,formatYearDropdown:gje});const wje={},_je={};function xje(e,t){try{const r=(wje[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in _je?_je[r]:jje(r,r.split(":"))}catch{if(e in _je)return _je[e];const t=e?.match(Mje);return t?jje(e,t.slice(1)):NaN}}const Mje=/([+-]\d\d):?(\d\d)?/;function jje(e,t){const r=+t[0],n=+(t[1]||0);return _je[e]=r>0?60*r+n:60*r-n}class Eje extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(xje(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)),zje(this),Cje(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Eje(...t,e):new Eje(Date.now(),e)}withTimeZone(e){return new Eje(+this,e)}getTimezoneOffset(){return-xje(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Cje(this),+this}[Symbol.for("constructDateFrom")](e){return new Eje(+new Date(e),this.timeZone)}}const Oje=/^(get|set)(?!UTC)/;function Cje(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function zje(e){const t=xje(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=xje(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-xje(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(!Oje.test(e))return;const t=e.replace(Oje,"$1UTC");Eje.prototype[t]&&(e.startsWith("get")?Eje.prototype[e]=function(){return this.internal[t]()}:(Eje.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zje(e)}(this),+this},Eje.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cje(this),+this}))}));class Pje extends Eje{static tz(e,...t){return t.length?new Pje(...t,e):new Pje(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} (${function(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}(this.timeZone,this)})`}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 Pje(+this,e)}[Symbol.for("constructDateFrom")](e){return new Pje(+new Date(e),this.timeZone)}}function Rje(e,t,r){return(r??new cje(t)).format(e,"LLLL y")}const Aje=Rje;function Ije(e,t,r,n){let a=(n??new cje(r)).format(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a}const Lje=Ije;var Sje=Object.freeze({__proto__:null,labelCaption:Aje,labelDay:Lje,labelDayButton:Ije,labelGrid:Rje,labelGridcell:function(e,t,r,n){let a=(n??new cje(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 cje(t)).format(e,"cccc")},labelYearDropdown:function(e){return"Choose the Year"}});function Vje(e,t){const{month:r,defaultMonth:n,today:a=(e.timeZone?Pje.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 Hje{constructor(e,t,r=dje){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 Nje{constructor(e,t){this.date=e,this.weeks=t}}class Zje{constructor(e,t){this.days=t,this.weekNumber=e}}function Dje(e,t){const[r,n]=i(e);return[void 0===t?r:t,n]}function Bje(e,t){const[r,n]=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:f}=e;!r&&h&&(r=h),!r&&d&&(r=new Date(d,0,1)),!n&&f&&(n=f),!n&&u&&(n=new Date(u,11,31));const p=e.captionLayout?.startsWith("dropdown");r?r=l(r):d?r=new Date(d,0,1):!r&&p&&(r=a(s(e.today??(e.timeZone?Pje.tz(e.timeZone):t.Date?new t.Date:new Date),-100)));n?n=i(n):u?n=new Date(u,11,31):!n&&p&&(n=c(e.today??(e.timeZone?Pje.tz(e.timeZone):t.Date?new t.Date:new Date)));return[r?o(r):r,n?o(n):n]}(e,t),{startOfMonth:a,endOfMonth:o}=t,l=Vje(e,t),[i,c]=Dje(l,e.month?a(e.month):void 0);s((()=>{const r=Vje(e,t);c(r)}),[e.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}(i,n,e,t),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:f,endOfMonth:p,endOfWeek:v,isAfter:m,startOfBroadcastWeek:y,startOfISOWeek:g,startOfWeek:b}=n,k=s?y(a,n):l?g(a):b(a),w=d(s?h(o,n):l?f(p(o)):v(p(o)),k),_=u(o,a)+1,x=[];for(let e=0;e<=w;e++){const r=c(k,e);if(t&&m(r,t))break;x.push(r)}const M=(s?35:42)*_;if(i&&x.length<M){const e=M-x.length;for(let t=0;t<e;t++){const e=c(x[x.length-1],1);x.push(e)}}return x}(d,e.endMonth?o(e.endMonth):void 0,e,t),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:f}=n,p=e.reduce(((e,p)=>{const v=r.broadcastCalendar?u(p,n):r.ISOWeek?h(p):f(p),m=r.broadcastCalendar?o(p,n):r.ISOWeek?l(i(p)):s(i(p)),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 b=y.reduce(((e,t)=>{const a=r.ISOWeek?c(t):d(t),o=e.find((e=>e.weekNumber===a)),l=new Hje(t,p,n);return o?o.days.push(l):e.push(new Zje(a,[l])),e}),[]),k=new Nje(p,b);return e.push(k),e}),[]);return r.reverseMonths?p.reverse():p}(d,u,e,t),f=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(h),p=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)}(i,r,e,t),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)}(i,n,e,t),{disableNavigation:y,onMonthChange:g}=e,b=e=>{if(y)return;let t=a(e);r&&t<a(r)&&(t=a(r)),n&&t>a(n)&&(t=a(n)),c(t),g?.(t)},k={months:h,weeks:f,days:p,navStart:r,navEnd:n,previousMonth:v,nextMonth:m,goToMonth:b,goToDay:e=>{(e=>f.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||b(e.date)}};return k}function qje(e,t,r=!1,n=dje){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 Tje(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function Fje(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function Wje(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function $je(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function Uje(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function Gje(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Yje(e,t,r=dje){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(Gje(t,r))return t.includes(e);if(Fje(t))return qje(t,e,!1,r);if(Uje(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Tje(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 Wje(t)?o(e,t.after)>0:$je(t)?o(t.before,e)>0:"function"==typeof t&&t(e)}))}function Kje(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:f,endOfISOWeek:p,endOfWeek:v,max:m,min:y,startOfBroadcastWeek:g,startOfISOWeek:b,startOfWeek:k}=l,w={day:c,week:u,month:d,year:h,startOfWeek:e=>s?g(e,l):i?b(e):k(e),endOfWeek:e=>s?f(e,l):i?p(e):v(e)};let _=w[e](r,"after"===t?1:-1);return"before"===t&&n?_=m([n,_]):"after"===t&&a&&(_=y([a,_])),_}(e,t,r.date,n,a,o,l),c=Boolean(o.disabled&&Yje(s,o.disabled,l)),d=Boolean(o.hidden&&Yje(s,o.hidden,l)),u=new Hje(s,s,l);return c||d?Kje(e,t,u,n,a,o,l,i+1):u}function Xje(e,t,r,n,a){const{autoFocus:o}=e,[l,s]=i(),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[nMe.disabled]||s[nMe.hidden]||s[nMe.outside]||(s[nMe.focused]||n?.isEqualTo(i)||r(i.date)||s[nMe.today])&&(a=i,l=!0),o++}return a||(a=e.find((e=>{const r=t(e);return!r[nMe.disabled]&&!r[nMe.hidden]&&!r[nMe.outside]}))),a}(t.days,r,n||(()=>!1),l),[d,u]=i(o?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{s(d),u(void 0)},moveFocus:(r,n)=>{if(!d)return;const o=Kje(r,n,d,t.navStart,t.navEnd,e,a);o&&(t.goToDay(o),u(o))}}}function Qje(e,t,r=dje){return qje(e,t.from,!1,r)||qje(e,t.to,!1,r)||qje(t,e.from,!1,r)||qje(t,e.to,!1,r)}function Jje(e,t,r=dje){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 qje(e,t,!1,r);if(Gje(t,r))return t.some((t=>qje(e,t,!1,r)));if(Fje(t))return!(!t.from||!t.to)&&Qje(e,{from:t.from,to:t.to},r);if(Uje(t))return function(e,t,r=dje){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(Tje(t)){return r.isAfter(t.before,t.after)?Qje(e,{from:r.addDays(t.after,1),to:r.addDays(t.before,-1)},r):Yje(e.from,t,r)||Yje(e.to,t,r)}return!(!Wje(t)&&!$je(t))&&(Yje(e.from,t,r)||Yje(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 eEe(e,t){const{disabled:r,excludeDisabled:n,selected:a,required:o,onSelect:l}=e,[i,s]=Dje(a,l?a:void 0),c=l?a:i;return{selected:c,select:(a,i,d)=>{const{min:u,max:h}=e,f=a?function(e,t,r=0,n=0,a=!1,o=dje){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&&f?.from&&f.to&&Jje({from:f.from,to:f.to},r,t)&&(f.from=a,f.to=void 0),l||s(f),l?.(f,a,i,d),f},isSelected:e=>c&&qje(c,e,!1,t)}}function tEe(e,t){const r=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=Dje(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]=Dje(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=eEe(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return a;default:return}}function rEe(e){const{components:r,formatters:n,labels:o,dateLib:i,locale:s,classNames:c}=l((()=>{const t={...AMe,...e.locale};return{dateLib:new cje({locale:t,weekStartsOn:e.broadcastCalendar?1:e.weekStartsOn,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens},e.dateLib),components:pje(e.components),formatters:(r=e.formatters,r?.formatMonthCaption&&!r.formatCaption&&(r.formatCaption=r.formatMonthCaption),r?.formatYearCaption&&!r.formatYearDropdown&&(r.formatYearDropdown=r.formatYearCaption),{...kje,...r}),labels:{...Sje,...e.labels},locale:t,classNames:{...vje(),...e.classNames}};var r}),[e.classNames,e.components,e.dateLib,e.firstWeekContainsDate,e.formatters,e.labels,e.locale,e.useAdditionalDayOfYearTokens,e.useAdditionalWeekYearTokens,e.weekStartsOn,e.broadcastCalendar]),{captionLayout:d,mode:u,onDayBlur:h,onDayClick:f,onDayFocus:p,onDayKeyDown:v,onDayMouseEnter:m,onDayMouseLeave:y,onNextClick:g,onPrevClick:b,showWeekNumber:k,styles:w}=e,{formatCaption:_,formatDay:x,formatMonthDropdown:M,formatWeekNumber:j,formatWeekNumberHeader:E,formatWeekdayName:O,formatYearDropdown:C}=n,z=Bje(e,i),{days:P,months:R,navStart:A,navEnd:I,previousMonth:L,nextMonth:S,goToMonth:V}=z,H=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:f,isAfter:p}=r,v=t.startMonth&&u(t.startMonth),m=t.endMonth&&f(t.endMonth),y={[nMe.focused]:[],[nMe.outside]:[],[nMe.disabled]:[],[nMe.hidden]:[],[nMe.today]:[]},g={};for(const u of e){const{date:e,displayMonth:f}=u,b=Boolean(f&&!d(e,f)),k=Boolean(v&&h(e,v)),w=Boolean(m&&p(e,m)),_=Boolean(n&&Yje(e,n,r)),x=Boolean(a&&Yje(e,a,r))||k||w||!i&&!l&&b||i&&!1===l&&b,M=c(e,s??(t.timeZone?Pje.tz(t.timeZone):r.Date?new r.Date:new Date));b&&y.outside.push(u),_&&y.disabled.push(u),x&&y.hidden.push(u),M&&y.today.push(u),o&&Object.keys(o).forEach((t=>{const n=o?.[t];n&&Yje(e,n,r)&&(g[t]?g[t].push(u):g[t]=[u])}))}return e=>{const t={[nMe.focused]:!1,[nMe.disabled]:!1,[nMe.hidden]:!1,[nMe.outside]:!1,[nMe.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}}}(P,e,i),{isSelected:N,select:Z,selected:D}=tEe(e,i)??{},{blur:B,focused:q,isFocusTarget:T,moveFocus:F,setFocused:W}=Xje(e,z,H,N??(()=>!1),i),{labelDayButton:$,labelGridcell:U,labelGrid:G,labelMonthDropdown:Y,labelNav:K,labelWeekday:X,labelWeekNumber:Q,labelWeekNumberHeader:J,labelYearDropdown:ee}=o,te=l((()=>function(e,t,r){const n=r?Pje.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}(i,e.ISOWeek,e.timeZone)),[i,e.ISOWeek,e.timeZone]),re=void 0!==u||void 0!==f,ne=a((()=>{L&&(V(L),b?.(L))}),[L,V,b]),ae=a((()=>{S&&(V(S),g?.(S))}),[V,S,g]),oe=a(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),W(e),Z?.(e.date,t,r),f?.(e.date,t,r)}),[Z,f,W]),le=a(((e,t)=>r=>{W(e),p?.(e.date,t,r)}),[p,W]),ie=a(((e,t)=>r=>{B(),h?.(e.date,t,r)}),[B,h]),se=a(((t,r)=>n=>{const a={ArrowLeft:["day","rtl"===e.dir?"after":"before"],ArrowRight:["day","rtl"===e.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];F(e,t)}v?.(t.date,r,n)}),[F,v,e.dir]),ce=a(((e,t)=>r=>{m?.(e.date,t,r)}),[m]),de=a(((e,t)=>r=>{y?.(e.date,t,r)}),[y]),ue=a((e=>t=>{const r=Number(t.target.value),n=i.setMonth(i.startOfMonth(e),r);V(n)}),[i,V]),he=a((e=>t=>{const r=Number(t.target.value),n=i.setYear(i.startOfMonth(e),r);V(n)}),[i,V]),{className:fe,style:pe}=l((()=>({className:[c[rMe.Root],e.className].filter(Boolean).join(" "),style:{...w?.[rMe.Root],...e.style}})),[c,e.className,e.style,w]),ve=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}(e),me={dayPickerProps:e,selected:D,select:Z,isSelected:N,months:R,nextMonth:S,previousMonth:L,goToMonth:V,getModifiers:H,components:r,classNames:c,styles:w,labels:o,formatters:n};return t.createElement(uje.Provider,{value:me},t.createElement(r.Root,{className:fe,style:pe,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],...ve},t.createElement(r.Months,{className:c[rMe.Months],style:w?.[rMe.Months]},!e.hideNavigation&&t.createElement(r.Nav,{className:c[rMe.Nav],style:w?.[rMe.Nav],"aria-label":K(),onPreviousClick:ne,onNextClick:ae,previousMonth:L,nextMonth:S}),R.map(((a,o)=>{const l=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)),u=d.map((e=>{const o=n.formatMonthDropdown(e,a.options.locale??AMe),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 u}(a.date,A,I,n,i),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})))}(A,I,n,i);return t.createElement(r.Month,{className:c[rMe.Month],style:w?.[rMe.Month],key:o,displayIndex:o,calendarMonth:a},t.createElement(r.MonthCaption,{className:c[rMe.MonthCaption],style:w?.[rMe.MonthCaption],calendarMonth:a,displayIndex:o},d?.startsWith("dropdown")?t.createElement(r.DropdownNav,{className:c[rMe.Dropdowns],style:w?.[rMe.Dropdowns]},"dropdown"===d||"dropdown-months"===d?t.createElement(r.MonthsDropdown,{className:c[rMe.MonthsDropdown],"aria-label":Y(),classNames:c,components:r,disabled:Boolean(e.disableNavigation),onChange:ue(a.date),options:l,style:w?.[rMe.Dropdown],value:a.date.getMonth()}):t.createElement("span",{role:"status","aria-live":"polite"},M(a.date.getMonth(),s)),"dropdown"===d||"dropdown-years"===d?t.createElement(r.YearsDropdown,{className:c[rMe.YearsDropdown],"aria-label":ee(i.options),classNames:c,components:r,disabled:Boolean(e.disableNavigation),onChange:he(a.date),options:h,style:w?.[rMe.Dropdown],value:a.date.getFullYear()}):t.createElement("span",{role:"status","aria-live":"polite"},C(a.date.getFullYear()))):t.createElement(r.CaptionLabel,{className:c[rMe.CaptionLabel],role:"status","aria-live":"polite"},_(a.date,i.options,i))),t.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===u||"range"===u,"aria-label":G(a.date,i.options,i)||void 0,className:c[rMe.MonthGrid],style:w?.[rMe.MonthGrid]},!e.hideWeekdays&&t.createElement(r.Weekdays,{className:c[rMe.Weekdays],style:w?.[rMe.Weekdays]},k&&t.createElement(r.WeekNumberHeader,{"aria-label":J(i.options),className:c[rMe.WeekNumberHeader],style:w?.[rMe.WeekNumberHeader],scope:"col"},E()),te.map(((e,n)=>t.createElement(r.Weekday,{"aria-label":X(e,i.options,i),className:c[rMe.Weekday],key:n,style:w?.[rMe.Weekday],scope:"col"},O(e,i.options,i))))),t.createElement(r.Weeks,{className:c[rMe.Weeks],style:w?.[rMe.Weeks]},a.weeks.map(((n,a)=>t.createElement(r.Week,{className:c[rMe.Week],key:n.weekNumber,style:w?.[rMe.Week],week:n},k&&t.createElement(r.WeekNumber,{week:n,style:w?.[rMe.WeekNumber],"aria-label":Q(n.weekNumber,{locale:s}),className:c[rMe.WeekNumber],scope:"row",role:"rowheader"},j(n.weekNumber)),n.days.map((n=>{const{date:a}=n,o=H(n);if(o[nMe.focused]=!o.hidden&&Boolean(q?.isEqualTo(n)),o[aMe.selected]=!o.disabled&&(N?.(a)||o.selected),Fje(D)){const{from:e,to:t}=D;o[aMe.range_start]=Boolean(e&&t&&i.isSameDay(a,e)),o[aMe.range_end]=Boolean(e&&t&&i.isSameDay(a,t)),o[aMe.range_middle]=qje(D,a,!0,i)}const l=function(e,t={},r={}){let n={...t?.[rMe.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{n={...n,...r?.[e]}})),n}(o,w,e.modifiersStyles),s=function(e,t,r={}){const n=Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[n])=>(r[n]?e.push(r[n]):t[nMe[n]]?e.push(t[nMe[n]]):t[aMe[n]]&&e.push(t[aMe[n]]),e)),[t[rMe.Day]]);return n}(o,c,e.modifiersClassNames),d=re||o.hidden?void 0:U(a,o,i.options,i);return t.createElement(r.Day,{key:`${i.format(a,"yyyy-MM-dd")}_${i.format(n.displayMonth,"yyyy-MM")}`,day:n,modifiers:o,className:s.join(" "),style:l,role:"gridcell","aria-selected":o.selected||void 0,"aria-label":d,"data-day":i.format(a,"yyyy-MM-dd"),"data-month":n.outside?i.format(a,"yyyy-MM"):void 0,"data-selected":o.selected||void 0,"data-disabled":o.disabled||void 0,"data-hidden":o.hidden||void 0,"data-outside":n.outside||void 0,"data-focused":o.focused||void 0,"data-today":o.today||void 0},!o.hidden&&re?t.createElement(r.DayButton,{className:c[rMe.DayButton],style:w?.[rMe.DayButton],type:"button",day:n,modifiers:o,disabled:o.disabled||void 0,tabIndex:T(n)?0:-1,"aria-label":$(a,o,i.options,i),onClick:oe(n,o),onBlur:ie(n,o),onFocus:le(n,o),onKeyDown:se(n,o),onMouseEnter:ce(n,o),onMouseLeave:de(n,o)},x(a,i.options,i)):!o.hidden&&x(n.date,i.options,i))}))))))))}))),e.footer&&t.createElement(r.Footer,{className:c[rMe.Footer],style:w?.[rMe.Footer],role:"status","aria-live":"polite"},e.footer)))}function nEe(e){var{className:t,classNames:r,showOutsideDays:n=!0}=e,a=zx(e,["className","classNames","showOutsideDays"]);const o=vje();return _(rEe,Object.assign({showOutsideDays:n,captionLayout:"dropdown-years"},a,{className:Ax("bg-bg-bg1 text-common-black border-bg-bg1",t),classNames:Object.assign(Object.assign(Object.assign({},o),{day_button:Ax(o.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:Ax(o.month_caption,"h-[54px]"),outside:"text-gray-400",nav:Ax(o.nav,"gap-6 absolute flex right-0"),chevron:"fill-primary",root:Ax(o.root,"px-6 py-4"),caption_label:Ax(o.caption_label,"gap-2 flex items-center"),months:"flex flex-col relative",disabled:"[&_button]:rounded-full [&_button]:!text-input-disable-text"}),r),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"}}}))}nEe.displayName="Calendar";var aEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function oEe(t,r=globalThis?.document){const n=D_e(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})}),[n,r])}var lEe,iEe="dismissableLayer.update",sEe="dismissableLayer.pointerDownOutside",cEe="dismissableLayer.focusOutside",dEe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uEe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(dEe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){fEe(sEe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){fEe(cEe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(lEe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),hEe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=lEe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),hEe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(iEe,e),()=>document.removeEventListener(iEe,e)}),[]),_(aEe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));uEe.displayName="DismissableLayer";function hEe(){const e=new CustomEvent(iEe);document.dispatchEvent(e)}function fEe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(dEe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(aEe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var pEe=0;function vEe(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mEe()),document.body.insertAdjacentElement("beforeend",e[1]??mEe()),pEe++,()=>{1===pEe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),pEe--}}),[])}function mEe(){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 yEe="focusScope.autoFocusOnMount",gEe="focusScope.autoFocusOnUnmount",bEe={bubbles:!1,cancelable:!0},kEe=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:MEe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||MEe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&MEe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){jEe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(yEe,bEe);s.addEventListener(yEe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(MEe(n,{select:t}),document.activeElement!==r)return}((e=wEe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&MEe(s))}return()=>{s.removeEventListener(yEe,d),setTimeout((()=>{const e=new CustomEvent(gEe,bEe);s.addEventListener(gEe,u),s.dispatchEvent(e),e.defaultPrevented||MEe(t??document.body,{select:!0}),s.removeEventListener(gEe,u),jEe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=wEe(e),r=_Ee(t,e),n=_Ee(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&MEe(o,{select:!0})):(e.preventDefault(),n&&MEe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(aEe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function wEe(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 _Ee(e,t){for(const r of e)if(!xEe(r,{upTo:t}))return r}function xEe(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 MEe(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()}}kEe.displayName="FocusScope";var jEe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=EEe(e,t),e.unshift(t)},remove(t){e=EEe(e,t),e[0]?.resume()}}}();function EEe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var OEe=e["useId".toString()]||(()=>{}),CEe=0;function zEe(t){const[r,n]=e.useState(OEe());return T_e((()=>{n((e=>e??String(CEe++)))}),[t]),r?`radix-${r}`:""}var PEe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(aEe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));PEe.displayName="Arrow";var REe=PEe;function AEe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var IEe="Popper",[LEe,SEe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},AEe(a,...r)]}(IEe),[VEe,HEe]=LEe(IEe),NEe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(VEe,{scope:r,anchor:a,onAnchorChange:o,children:n})};NEe.displayName=IEe;var ZEe="PopperAnchor",DEe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=HEe(ZEe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(aEe.div,{...o,ref:s})}));DEe.displayName=ZEe;var BEe="PopperContent",[qEe,TEe]=LEe(BEe),FEe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=HEe(BEe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(GEe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),YEe({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=KEe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(qEe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(aEe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));FEe.displayName=BEe;var WEe="PopperArrow",$Ee={top:"bottom",right:"left",bottom:"top",left:"right"},UEe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=TEe(WEe,r),o=$Ee[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(REe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function GEe(e){return null!==e}UEe.displayName=WEe;var YEe=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]=KEe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function KEe(e){const[t,r="center"]=e.split("-");return[t,r]}var XEe=NEe,QEe=DEe,JEe=FEe,eOe=UEe,tOe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(aEe.div,{...a,ref:r}),i):null}));tOe.displayName="Portal";var rOe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=nOe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=nOe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=nOe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=nOe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function nOe(e){return e?.animationName||"none"}rOe.displayName="Presence";var aOe=new WeakMap,oOe=new WeakMap,lOe={},iOe=0,sOe=function(e){return e&&(e.host||sOe(e.parentNode))},cOe=function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=sOe(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]);lOe[r]||(lOe[r]=new WeakMap);var o=lOe[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=(aOe.get(e)||0)+1,c=(o.get(e)||0)+1;aOe.set(e,s),o.set(e,c),l.push(e),1===s&&a&&oOe.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(),iOe++,function(){l.forEach((function(e){var t=aOe.get(e)-1,a=o.get(e)-1;aOe.set(e,t),o.set(e,a),t||(oOe.has(e)||e.removeAttribute(n),oOe.delete(e)),a||e.removeAttribute(r)})),--iOe||(aOe=new WeakMap,aOe=new WeakMap,oOe=new WeakMap,lOe={})}},dOe=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]"))),cOe(n,a,r,"aria-hidden")):function(){return null}},uOe="right-scroll-bar-position",hOe="width-before-scroll-bar";function fOe(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var pOe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vOe=new WeakMap;function mOe(e,t){var r,n,a,o=(r=null,n=function(t){return e.forEach((function(e){return fOe(e,t)}))},(a=i((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return pOe((function(){var t=vOe.get(o);if(t){var r=new Set(t),n=new Set(e),a=o.current;r.forEach((function(e){n.has(e)||fOe(e,null)})),n.forEach((function(e){r.has(e)||fOe(e,a)}))}vOe.set(o,e)}),[e]),o}function yOe(e){return e}var gOe=function(t){var r=t.sideCar,n=zx(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return e.createElement(a,Cx({},n))};gOe.isSideCarExport=!0;var bOe=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=yOe);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=Cx({async:!0,ssr:!1},e),t}(),kOe=function(){},wOe=e.forwardRef((function(t,r){var n=e.useRef(null),a=e.useState({onScrollCapture:kOe,onWheelCapture:kOe,onTouchMoveCapture:kOe}),o=a[0],l=a[1],i=t.forwardProps,s=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,h=t.shards,f=t.sideCar,p=t.noIsolation,v=t.inert,m=t.allowPinchZoom,y=t.as,g=void 0===y?"div":y,b=t.gapMode,k=zx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,_=mOe([n,r]),x=Cx(Cx({},k),o);return e.createElement(e.Fragment,null,u&&e.createElement(w,{sideCar:bOe,removeScrollBar:d,shards:h,noIsolation:p,inert:v,setCallbacks:l,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?e.cloneElement(e.Children.only(s),Cx(Cx({},x),{ref:_})):e.createElement(g,Cx({},x,{className:c,ref:_}),s))}));wOe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wOe.classNames={fullWidth:hOe,zeroRight:uOe};function _Oe(){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 xOe=function(){var e=0,t=null;return{add:function(r){0==e&&(t=_Oe())&&(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)}}},MOe=function(){var t=function(){var t=xOe();return function(r,n){e.useEffect((function(){return t.add(r),function(){t.remove()}}),[r&&n])}}();return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},jOe={left:0,top:0,right:0,gap:0},EOe=function(e){return parseInt(e||"",10)||0},OOe=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return jOe;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[EOe(r),EOe(n),EOe(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])}},COe=MOe(),zOe="data-scroll-locked",POe=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(zOe,"] {\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(uOe," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(hOe," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(uOe," .").concat(uOe," {\n right: 0 ").concat(n,";\n }\n \n .").concat(hOe," .").concat(hOe," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(zOe,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},ROe=function(){var e=parseInt(document.body.getAttribute(zOe)||"0",10);return isFinite(e)?e:0},AOe=function(t){var r=t.noRelative,n=t.noImportant,a=t.gapMode,o=void 0===a?"margin":a;e.useEffect((function(){return document.body.setAttribute(zOe,(ROe()+1).toString()),function(){var e=ROe()-1;e<=0?document.body.removeAttribute(zOe):document.body.setAttribute(zOe,e.toString())}}),[]);var l=e.useMemo((function(){return OOe(o)}),[o]);return e.createElement(COe,{styles:POe(l,!r,o,n?"":"!important")})},IOe=!1;if("undefined"!=typeof window)try{var LOe=Object.defineProperty({},"passive",{get:function(){return IOe=!0,!0}});window.addEventListener("test",LOe,LOe),window.removeEventListener("test",LOe,LOe)}catch(e){IOe=!1}var SOe=!!IOe&&{passive:!1},VOe=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])},HOe=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),NOe(e,n)){var a=ZOe(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NOe=function(e,t){return"v"===e?function(e){return VOe(e,"overflowY")}(t):function(e){return VOe(e,"overflowX")}(t)},ZOe=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},DOe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BOe=function(e){return[e.deltaX,e.deltaY]},qOe=function(e){return e&&"current"in e?e.current:e},TOe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},FOe=0,WOe=[];function $Oe(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var UOe,GOe=(UOe=function(t){var r=e.useRef([]),n=e.useRef([0,0]),a=e.useRef(),o=e.useState(FOe++)[0],l=e.useState(MOe)[0],i=e.useRef(t);e.useEffect((function(){i.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var e=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))}([t.lockRef.current],(t.shards||[]).map(qOe),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var r,o=DOe(e),l=n.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=HOe(u,d);if(!h)return!0;if(h?r=u:(r="v"===u?"h":"v",h=HOe(u,d)),!h)return!1;if(!a.current&&"changedTouches"in e&&(s||c)&&(a.current=r),!r)return!0;var f=a.current||r;return function(e,t,r,n){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*n,l=r.target,i=t.contains(l),s=!1,c=o>0,d=0,u=0;do{var h=ZOe(e,l),f=h[0],p=h[1]-h[2]-a*f;(f||p)&&NOe(e,l)&&(d+=p,u+=f),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!i&&l!==document.body||i&&(t.contains(l)||t===l));return(c&&Math.abs(d)<1||!c&&Math.abs(u)<1)&&(s=!0),s}(f,t,e,"h"===f?s:c)}),[]),c=e.useCallback((function(e){var t=e;if(WOe.length&&WOe[WOe.length-1]===l){var n="deltaY"in t?BOe(t):DOe(t),a=r.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(a&&a.should)t.cancelable&&t.preventDefault();else if(!a){var o=(i.current.shards||[]).map(qOe).filter(Boolean).filter((function(e){return e.contains(t.target)}));(o.length>0?s(t,o[0]):!i.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),d=e.useCallback((function(e,t,n,a){var o={name:e,delta:t,target:n,should:a,shadowParent:$Oe(n)};r.current.push(o),setTimeout((function(){r.current=r.current.filter((function(e){return e!==o}))}),1)}),[]),u=e.useCallback((function(e){n.current=DOe(e),a.current=void 0}),[]),h=e.useCallback((function(e){d(e.type,BOe(e),e.target,s(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){d(e.type,DOe(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return WOe.push(l),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,SOe),document.addEventListener("touchmove",c,SOe),document.addEventListener("touchstart",u,SOe),function(){WOe=WOe.filter((function(e){return e!==l})),document.removeEventListener("wheel",c,SOe),document.removeEventListener("touchmove",c,SOe),document.removeEventListener("touchstart",u,SOe)}}),[]);var p=t.removeScrollBar,v=t.inert;return e.createElement(e.Fragment,null,v?e.createElement(l,{styles:TOe(o)}):null,p?e.createElement(AOe,{gapMode:t.gapMode}):null)},bOe.useMedium(UOe),gOe),YOe=e.forwardRef((function(t,r){return e.createElement(wOe,Cx({},t,{ref:r,sideCar:GOe}))}));YOe.classNames=wOe.classNames;var KOe="Popover",[XOe]=H_e(KOe,[SEe]),QOe=SEe(),[JOe,eCe]=XOe(KOe),tCe=t=>{const{__scopePopover:r,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:i=!1}=t,s=QOe(r),c=e.useRef(null),[d,u]=e.useState(!1),[h=!1,f]=B_e({prop:a,defaultProp:o,onChange:l});return _(XEe,{...s,children:_(JOe,{scope:r,contentId:zEe(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>u(!1)),[]),modal:i,children:n})})};tCe.displayName=KOe;var rCe="PopoverAnchor";e.forwardRef(((t,r)=>{const{__scopePopover:n,...a}=t,o=eCe(rCe,n),l=QOe(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return e.useEffect((()=>(i(),()=>s())),[i,s]),_(QEe,{...l,...a,ref:r})})).displayName=rCe;var nCe="PopoverTrigger",aCe=e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=eCe(nCe,r),o=QOe(r),l=V_e(t,a.triggerRef),i=_(aEe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":vCe(a.open),...n,ref:l,onClick:Z_e(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?i:_(QEe,{asChild:!0,...o,children:i})}));aCe.displayName=nCe;var oCe="PopoverPortal",[lCe,iCe]=XOe(oCe,{forceMount:void 0}),sCe=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=eCe(oCe,t);return _(lCe,{scope:t,forceMount:r,children:_(rOe,{present:r||o.open,children:_(tOe,{asChild:!0,container:a,children:n})})})};sCe.displayName=oCe;var cCe="PopoverContent",dCe=e.forwardRef(((e,t)=>{const r=iCe(cCe,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=eCe(cCe,e.__scopePopover);return _(rOe,{present:n||o.open,children:o.modal?_(uCe,{...a,ref:t}):_(hCe,{...a,ref:t})})}));dCe.displayName=cCe;var uCe=e.forwardRef(((t,r)=>{const n=eCe(cCe,t.__scopePopover),a=e.useRef(null),o=V_e(r,a),l=e.useRef(!1);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(YOe,{as:U_e,allowPinchZoom:!0,children:_(fCe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()})),onPointerDownOutside:Z_e(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;l.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),hCe=e.forwardRef(((t,r)=>{const n=eCe(cCe,t.__scopePopover),a=e.useRef(!1),o=e.useRef(!1);return _(fCe,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||n.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const r=e.target,l=n.triggerRef.current?.contains(r);l&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})})),fCe=e.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...u}=e,h=eCe(cCe,r),f=QOe(r);return vEe(),_(kEe,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:_(uEe,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:_(JEe,{"data-state":vCe(h.open),role:"dialog",id:h.contentId,...f,...u,ref:t,style:{...u.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)"}})})})})),pCe="PopoverClose";e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=eCe(pCe,r);return _(aEe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=pCe;function vCe(e){return e?"open":"closed"}e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=QOe(r);return _(eOe,{...a,...n,ref:t})})).displayName="PopoverArrow";var mCe=sCe,yCe=dCe;const gCe=tCe,bCe=aCe,kCe=e.forwardRef(((e,t)=>{var{className:r,align:n="center",sideOffset:a=4}=e,o=zx(e,["className","align","sideOffset"]);return _(mCe,{children:_(yCe,Object.assign({ref:t,align:n,sideOffset:a,className:Ax("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",r)},o))})}));kCe.displayName=yCe.displayName;const wCe={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 _Ce(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const xCe={date:_Ce({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_Ce({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:_Ce({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},MCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jCe(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 ECe={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:jCe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jCe({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:jCe({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:jCe({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:jCe({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 OCe(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 CCe={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:OCe({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:OCe({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:OCe({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:OCe({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:OCe({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"})},zCe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=wCe[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:xCe,formatRelative:(e,t,r,n)=>MCe[e],localize:ECe,match:CCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};let PCe={};function RCe(){return PCe}const ACe=6048e5;function ICe(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 LCe(e){const t=ICe(e);return t.setHours(0,0,0,0),t}function SCe(e){const t=ICe(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 VCe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function HCe(e){const t=ICe(e),r=function(e,t){const r=LCe(e),n=LCe(t),a=+r-SCe(r),o=+n-SCe(n);return Math.round((a-o)/864e5)}(t,function(e){const t=ICe(e),r=VCe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t));return r+1}function NCe(e,t){const r=RCe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=ICe(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 ZCe(e){return NCe(e,{weekStartsOn:1})}function DCe(e){const t=ICe(e),r=t.getFullYear(),n=VCe(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=ZCe(n),o=VCe(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=ZCe(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function BCe(e){const t=ICe(e),r=+ZCe(t)-+function(e){const t=DCe(e),r=VCe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),ZCe(r)}(t);return Math.round(r/ACe)+1}function qCe(e,t){const r=ICe(e),n=r.getFullYear(),a=RCe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=VCe(e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=NCe(l,t),s=VCe(e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=NCe(s,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function TCe(e,t){const r=ICe(e),n=+NCe(r,t)-+function(e,t){const r=RCe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=qCe(e,t),o=VCe(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),NCe(o,t)}(r,t);return Math.round(n/ACe)+1}function FCe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const WCe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return FCe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):FCe(r+1,2)},d:(e,t)=>FCe(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)=>FCe(e.getHours()%12||12,t.length),H:(e,t)=>FCe(e.getHours(),t.length),m:(e,t)=>FCe(e.getMinutes(),t.length),s:(e,t)=>FCe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return FCe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},$Ce="midnight",UCe="noon",GCe="morning",YCe="afternoon",KCe="evening",XCe="night",QCe={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 WCe.y(e,t)},Y:function(e,t,r,n){const a=qCe(e,n),o=a>0?a:1-a;if("YY"===t){return FCe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):FCe(o,t.length)},R:function(e,t){return FCe(DCe(e),t.length)},u:function(e,t){return FCe(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 FCe(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 FCe(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 WCe.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 FCe(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=TCe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):FCe(a,t.length)},I:function(e,t,r){const n=BCe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):FCe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):WCe.d(e,t)},D:function(e,t,r){const n=HCe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):FCe(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 FCe(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 FCe(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 FCe(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?UCe:0===n?$Ce: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?KCe:n>=12?YCe:n>=4?GCe:XCe,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 WCe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):WCe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):FCe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):FCe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):WCe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):WCe.s(e,t)},S:function(e,t){return WCe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return eze(n);case"XXXX":case"XX":return tze(n);default:return tze(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return eze(n);case"xxxx":case"xx":return tze(n);default:return tze(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+JCe(n,":");default:return"GMT"+tze(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+JCe(n,":");default:return"GMT"+tze(n,":")}},t:function(e,t,r){return FCe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return FCe(e.getTime(),t.length)}};function JCe(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+FCe(o,2)}function eze(e,t){if(e%60==0){return(e>0?"-":"+")+FCe(Math.abs(e)/60,2)}return tze(e,t)}function tze(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+FCe(Math.trunc(n/60),2)+t+FCe(n%60,2)}const rze=(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"})}},nze=(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"})}},aze={p:nze,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return rze(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}}",rze(n,t)).replace("{{time}}",nze(a,t))}},oze=/^D+$/,lze=/^Y+$/,ize=["D","DD","YY","YYYY"];function sze(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=ICe(e);return!isNaN(Number(r))}const cze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uze=/^'([^]*?)'?$/,hze=/''/g,fze=/[a-zA-Z]/;function pze(e,t,r){const n=RCe(),a=n.locale??zCe,o=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=ICe(e);if(!sze(i))throw new RangeError("Invalid time value");let s=t.match(dze).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,aze[t])(e,a.formatLong)}return e})).join("").match(cze).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:vze(e)};if(QCe[t])return{isToken:!0,value:e};if(t.match(fze))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 lze.test(e)}(n)||function(e){return oze.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),ize.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,QCe[n[0]])(i,n,a.localize,c)})).join("")}function vze(e){const t=e.match(uze);return t?t[1].replace(hze,"'"):e}const mze=e=>{var{date:t,onSelect:r,textInputProps:n,popoverContentProps:a}=e,o=zx(e,["date","onSelect","textInputProps","popoverContentProps"]);const[l,s]=i(!1);return _("div",{children:x(gCe,{modal:!0,open:l,onOpenChange:s,children:[_(bCe,{asChild:!0,children:_("div",{className:"flex",children:_(Yme,Object.assign({fullwidth:!0,id:"date-picker",readOnly:!0,label:"Date",size:"md",value:t?pze(t,"dd MMM yyyy"):l?" ":"",hasClearIcon:!1,endIcon:_(Xr,{fill:"inherit",className:"cursor-pointer"})},n,{labelClassName:Ax("pointer-events-none",null==n?void 0:n.labelClassName)}))})}),_(kCe,Object.assign({className:"w-auto p-0 z-[100]"},a,{children:_(nEe,Object.assign({defaultMonth:t},o,{mode:"single",selected:t,onSelect:(...e)=>{null==r||r(...e),s(!1)}}))}))]})})},yze=(e,t,r)=>Array.from(e).filter((e=>t.test(e))).slice(0,r),gze=r((({value:e,onChange:t,onBlur:r,onComplete:a,length:o=6,disabled:i=!1,invalid:s=!1,autoFocus:d=!1,inputMode:u="numeric",charPattern:h=/^\d$/,className:f,inputClassName:p},v)=>{const m=n([]),y=n(null),g=l((()=>{const t=e||"";return Array.from({length:o},((e,r)=>t[r]||""))}),[o,e]);c(v,(()=>m.current[0]),[]);const b=e=>{const r=e.join("");t(r),a&&e.every((e=>""!==e))&&a(r)},k=e=>{var t,r;const n=Math.max(0,Math.min(o-1,e));null===(t=m.current[n])||void 0===t||t.focus(),null===(r=m.current[n])||void 0===r||r.select()};return _("div",{className:Ax("flex items-center gap-3",f),ref:y,children:g.map(((e,t)=>_("input",{ref:e=>{m.current[t]=e},type:"text",inputMode:u,autoComplete:0===t?"one-time-code":"off",value:e,maxLength:1,disabled:i,autoFocus:d&&0===t,"aria-invalid":s||void 0,className:Ax("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 n=e.relatedTarget;n&&(null===(t=y.current)||void 0===t?void 0:t.contains(n))||null==r||r()},onChange:e=>((e,t)=>{if(i)return;if(!t){const t=[...g];return t[e]="",void b(t)}const r=yze(t,h,o);if(!r.length)return;const n=[...g];let a=e;r.forEach((e=>{a<o&&(n[a]=e,a+=1)})),b(n),k(a<o?a:o-1)})(t,e.target.value),onPaste:e=>((e,t)=>{if(t.preventDefault(),i)return;const r=t.clipboardData.getData("text"),n=yze(r,h,o-e);if(!n.length)return;const a=[...g];n.forEach(((t,r)=>{a[e+r]=t})),b(a);const l=Math.min(e+n.length,o-1);k(l)})(t,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(g[e]){t.preventDefault();const r=[...g];return r[e]="",void b(r)}if(e>0){t.preventDefault();const r=[...g];r[e-1]="",b(r),k(e-1)}}}})(t,e)},t)))})}));gze.displayName="OtpInput";const bze=t.forwardRef(((e,t)=>{var{id:r,label:n,required:a=!1,helperText:o,error:l=!1,errorMessage:i,keepFooterSpace:s=!0,wrapperClassName:c,labelClassName:d,messageClassName:u}=e,h=zx(e,["id","label","required","helperText","error","errorMessage","keepFooterSpace","wrapperClassName","labelClassName","messageClassName"]);const f=Boolean(l||i),p=f?i:o;return x("div",{className:Ax("inline-flex w-full flex-col gap-2",c),children:[n&&x("label",{htmlFor:r,className:Ax("typography-overline text-input-default-text",f&&"text-input-error",d),children:[n,a&&_("span",{className:"ml-1 text-input-error",children:"*"})]}),_(gze,Object.assign({},h,{ref:t,invalid:f})),(p||s)&&_("div",{className:Ax("typography-small2 min-h-[18px]",f?"text-input-error":"text-text-g-contrast-medium",u),role:f?"alert":void 0,children:p||" "})]})}));bze.displayName="OtpInputGroup";const kze=({progress:e=0,color:t,gradientStart:r,gradientEnd:n,animationDuration:a=.5,height:o=8,trackClassName:l,progressClassName:c})=>{const[d,u]=i(0);s((()=>{u(e)}),[e]);return _("div",{className:Ax("w-full bg-grey2-transparent-16 rounded-full overflow-hidden",l),style:{height:`${o}px`},children:_("div",{className:Ax("h-full rounded-full transition-all ease-out bg-primary",c),style:{width:`${d}%`,background:r&&n?`linear-gradient(to right, ${r}, ${n})`:t,transition:`width ${a}s ease-out`}})})},wze=e.forwardRef(((e,t)=>{var{rootClassName:r,className:n,rootRef:a,bordered:o=!1,scrollableWrapper:l=!0}=e,i=zx(e,["rootClassName","className","rootRef","bordered","scrollableWrapper"]);const s=Ax("relative h-full w-full min-h-0 overflow-auto","ui-scrollbar ui-scrollbar-x-m ui-scrollbar-y-s"),c=Ax("min-w-full caption-bottom border-separate border-spacing-0",n),d=_("table",Object.assign({ref:t,className:c},i));return o||!1!==l?_("div",o?{className:Ax("relative flex h-full w-full min-h-0 flex-col overflow-hidden rounded-md border border-table-c-border",r),ref:a,children:_("div",{className:s,children:d})}:{className:Ax(s,r),ref:a,children:d}):_("table",Object.assign({ref:t,className:Ax(c,r)},i))}));wze.displayName="Table";const _ze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("thead",Object.assign({ref:t,className:Ax("[&_tr>th]:border-b [&_tr>th]:border-b-table-c-header-line",r)},n))}));_ze.displayName="TableHeader";const xze=e.forwardRef(((e,t)=>{var{className:r,striped:n=!1}=e,a=zx(e,["className","striped"]);return _("tbody",Object.assign({ref:t,className:Ax("[&_tr:last-child>td]:border-b-0 [&_tr:last-child>th]:border-b-0","[&_tr]:bg-table-c-row-bg","[&_tr:hover]:!bg-table-c-hover","[&_tr[data-state=selected]]:!bg-table-c-selected","[&_tr[data-highlighted=true]]:!bg-table-c-selected",n&&["[&_tr:nth-child(odd)]:bg-table-c-row-bg","[&_tr:nth-child(even)]:bg-table-c-row-bg-even","[&_tr>td]:border-b-0"],r)},a))}));xze.displayName="TableBody";const Mze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("tfoot",Object.assign({ref:t,className:Ax("bg-table-c-header-bg border-t border-t-table-c-header-line font-medium [&>tr]:last:border-b-0",r)},n))}));Mze.displayName="TableFooter";const jze=e.forwardRef(((e,t)=>{var{className:r,divided:n=!0,colDivided:a=!1}=e,o=zx(e,["className","divided","colDivided"]);return _("tr",Object.assign({ref:t,className:Ax("transition-colors",n&&["[&>td]:border-b [&>td]:border-b-table-c-row-line","[&>th]:border-b [&>th]:border-b-table-c-row-line"],a&&["[&>td:not(:last-child)]:border-r [&>td:not(:last-child)]:border-r-table-c-col-line","[&>th:not(:last-child)]:border-r [&>th:not(:last-child)]:border-r-table-c-col-line"],r)},o))}));jze.displayName="TableRow";const Eze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("th",Object.assign({ref:t,className:Ax("h-[44px] box-border py-3 px-3 text-left align-middle","typography-body2 text-text-contrast-max","bg-table-c-header-bg","[&:has([role=checkbox])]:px-3 [&:has([role=checkbox])]:min-w-10",r)},n))}));Eze.displayName="TableHead";const Oze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("td",Object.assign({ref:t,className:Ax("h-[42px] box-border py-3 px-3 text-left align-middle","typography-body3 text-text-contrast-max","bg-inherit","[&:has([role=checkbox])]:px-3 [&:has([role=checkbox])]:min-w-10",r)},n))}));Oze.displayName="TableCell";const Cze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("caption",Object.assign({ref:t,className:Ax("mt-4 pb-3 text-sm text-text-g-contrast-medium",r)},n))}));Cze.displayName="TableCaption";const zze=e.forwardRef((({pageIndex:e,pageSize:t,totalCount:r,pageSizeOptions:n=[10,20,50,100],onPageChange:a,onPageSizeChange:o,className:l},i)=>{const s=Math.max(1,Math.ceil(r/t)),c=0===r?0:e*t+1,d=Math.min((e+1)*t,r);return x("div",{ref:i,className:Ax("flex items-center justify-end gap-8 px-6 py-2","bg-table-c-header-bg","border-t border-t-table-c-header-line",l),children:[x("div",{className:"flex items-center gap-3",children:[_("span",{className:"typography-subtitle4 text-text-g-contrast-high whitespace-nowrap",children:"items per page"}),x("div",{className:"relative",children:[_("select",{value:t,onChange:e=>{o(Number(e.target.value)),a(0)},className:Ax("appearance-none w-[72px] rounded-md border border-input-default-stroke","bg-table-c-header-bg p-2 pr-7","typography-small2 text-text-g-contrast-high","cursor-pointer focus:outline-none focus:ring-1 focus:ring-input-active-stroke"),children:n.map((e=>_("option",{value:e,children:e},e)))}),_(fS,{className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 size-[14px] text-text-g-contrast-high","aria-hidden":!0})]})]}),x("span",{className:"typography-subtitle4 text-text-g-contrast-high whitespace-nowrap tabular-nums",children:[c,"–",d," of ",r," items"]}),x("div",{className:"flex items-center gap-2",children:[_(mye,{variant:"icon",size:"sm",onClick:()=>a(0),disabled:0===e,"aria-label":"First page",children:_(vS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(e-1),disabled:0===e,"aria-label":"Previous page",children:_(bS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(e+1),disabled:e>=s-1,"aria-label":"Next page",children:_(wS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(s-1),disabled:e>=s-1,"aria-label":"Last page",children:_(yS,{})})]})]})}));
9247
+ */const Ume=Gx("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 Gme=Object.freeze({__proto__:null,default:Ume});const Yme=r(((e,t)=>{var{id:r,label:o,size:i="md",rounded:s="normal",variant:c="outline",type:d="text",iconMode:u="flat",helperText:h,errorMessage:f,warningMessage:p,status:v,fullwidth:m=!0,disabled:y=!1,error:g=!1,warning:b=!1,required:k=!0,isFloatingLabel:w=!0,keepCloseIconOnValue:M=!1,keepFooterSpace:j=!0,hasClearIcon:E=!0,hasSearchIcon:O=!1,startIcon:C,endIcon:z,labelClassName:P,onClickStartIcon:R,onClickEndIcon:A,renderStartIcon:I,renderEndIcon:L,classes:S,normalize:V,format:H,trimOnCommit:N,normalizeOnCommit:Z,placeholder:D}=e,B=zx(e,["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","placeholder"]);const q=n(null),T=r||`${d}-${o}-input`,F=function(...e){const t=n();return t.current=function(...e){return t=>{e.forEach((e=>{e&&("function"==typeof e?e(t):e.current=t)}))}}(...e),a((e=>{var r;null===(r=t.current)||void 0===r||r.call(t,e)}),[])}(t,q),W=!!C||!!I,$=!!z||!!L,U=v||(g||f?"error":b||p?"warning":"default"),G="error"===U,Y="warning"===U,K="error"===U?f:"warning"===U?p:h,X=Sx({size:i,rounded:s,variant:c,fullwidth:m,disabled:y,error:G,warning:Y,hasSearchIcon:"flat"===u&&W||O,hasClearIcon:"flat"===u&&$||E,leftSectionIcon:"solid"===u&&W,rightSectionIcon:"solid"===u&&$,floatingLabelPlaceholder:w}),Q=Vx({size:i,disabled:y,error:G,hasSearchIcon:"flat"===u&&W||O,hasLeftSectionIcon:"solid"===u&&W,isFloatingLabel:w}),J=Hx({size:i,error:G,warning:Y,disabled:y}),ee=Zx({size:i}),te=Dx({size:i}),re=Bx({size:i}),ne=qx({size:i}),ae=Tx({size:i,rounded:s,error:G,warning:Y,position:"start"}),oe=Tx({size:i,rounded:s,error:G,warning:Y,position:"end"}),le=a((e=>{var t;V&&(e.target.value=V(e.target.value)),null===(t=B.onChange)||void 0===t||t.call(B,e)}),[V,B.onChange]),ie=a((e=>{var t;const r=e.currentTarget;let n=r.value;N&&(n=n.trim()),Z&&(n=Z(n)),n!==r.value&&(r.value=n,null===(t=B.onChange)||void 0===t||t.call(B,Object.assign(Object.assign({},e),{target:r})))}),[N,Z,B.onChange]),se=a((e=>{var t;(N||Z)&&ie(e),null===(t=B.onBlur)||void 0===t||t.call(B,e)}),[N,Z,ie,B.onBlur]),ce=a((e=>{var t;(N||Z)&&"Enter"===e.key&&ie(e),null===(t=B.onKeyDown)||void 0===t||t.call(B,e)}),[N,Z,ie,B.onKeyDown]),de=H&&"string"==typeof B.value?H(B.value):B.value,ue=a((()=>{q.current&&(q.current.value="",B.onChange&&(new Event("input",{bubbles:!0}),B.onChange({target:{value:""}})))}),[B.onChange]),he=a((()=>{y||(null==R||R(),q.current&&q.current.focus())}),[y,R]),fe=a((()=>{y||(null==A||A(),q.current&&q.current.focus())}),[y,A]),pe=l((()=>{if(W)return _("div",I?{className:Ax(te,"flex",null==S?void 0:S.iconSearchWrapper),children:I()}:"flat"===u?{className:Ax(te,null==S?void 0:S.iconSearchWrapper),children:_("div",{className:Ax(re,null==S?void 0:S.icon),onClick:he,children:C})}:{className:Ax(ae,null==S?void 0:S.startIconWrapper),onClick:he,children:C})}),[W,C,u,te,ae,re,I,he]),ve=l((()=>{if($)return _("div",L?{className:Ax(ee,"flex",null==S?void 0:S.iconWrapper),children:L()}:"flat"===u?{className:Ax(ee,"flex",null==S?void 0:S.iconWrapper),children:_("div",{className:Ax(re,null==S?void 0:S.icon),onClick:fe,children:z})}:{className:Ax(oe,null==S?void 0:S.endIconWrapper),onClick:fe,children:z})}),[$,z,u,ee,oe,re,L,fe]),me=w||null!=o&&""!==String(o);return x("div",{className:"inline-flex flex-col "+(m?"w-full":""),children:[x("div",{className:"relative",children:[_("input",Object.assign({},B,{placeholder:w?" ":null!=D?D:"",ref:F,type:d,id:T,disabled:y,value:de,className:Ax(X,B.className),onChange:V?le:B.onChange,onBlur:N||Z?se:B.onBlur,onKeyDown:N||Z?ce:B.onKeyDown})),O&&!W&&_("div",{className:Ax(te,null==S?void 0:S.iconSearchWrapper),children:_(Jne,{className:Ax(ne,null==S?void 0:S.icon)})}),pe,E&&!$&&_("div",{className:Ax(ee,null==S?void 0:S.iconWrapper),style:{display:M&&B.value?"flex":void 0},children:_(xH,{className:Ax(re,null==S?void 0:S.icon),onMouseDown:ue})}),ve,me&&x("label",{htmlFor:T,className:Ax(Q,P),children:[o," ",k&&_("span",{className:Ax("text-input-error",{"text-input-disable-text":y}),children:"*"})]})]}),(K||j)&&x("span",{className:J,children:[K&&_("span",{className:"h-full shrink-0",children:_(XS,{width:14,height:14,className:Ax("fill-none stroke-current",G?"text-input-error":Y?"text-warning":"text-input-filled-text")})}),j&&!K&&_("span",{className:"block min-h-[14px]","aria-hidden":!0}),K||""]})]})})),Kme={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"}},Xme=(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},Qme=(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},Jme=r(((e,r)=>{var{mask:o,maskChar:l="_",showMask:d=!0,guide:u=!0,keepCharPositions:h=!1,rules:f,onMaskedChange:p,onChange:v,value:m,defaultValue:y}=e,g=zx(e,["mask","maskChar","showMask","guide","keepCharPositions","rules","onMaskedChange","onChange","value","defaultValue"]);const b=n(null),[k,w]=i(""),[x,M]=i(""),j=t.useMemo((()=>o?((e,t)=>{const r=Object.assign(Object.assign({},Kme),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})(o,f):null),[o,f]);s((()=>{const e=m||y||"";if(j&&e){const t=Xme(e,j,l,d,u),r=Qme(t,j);w(t),M(r)}else w(e),M(e)}),[j,l,d,u,m,y]),c(r,(()=>null==b?void 0:b.current));const E=a((e=>{const t=e.target.value;if(!j)return w(t),M(t),null==v||v(e),void(null==p||p(t,t));const r=Xme(t,j,l,d,u),n=Qme(r,j);w(r),M(n);const a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:r})});null==v||v(a),null==p||p(r,n),setTimeout((()=>{if(b.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,j);b.current.setSelectionRange(t,t)}}),0)}),[j,l,d,u,v,p]),O=a((e=>{var t,r,n;if(!j)return void(null===(t=g.onKeyDown)||void 0===t||t.call(g,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=g.onKeyDown)||void 0===r||r.call(g,e));let s=i;for(;s<j.length&&j[s].isLiteral;)s++;if(s<j.length){const t=j[s];if(!(t.validator?t.validator(a):t.pattern.test(a)))return void e.preventDefault()}null===(n=g.onKeyDown)||void 0===n||n.call(g,e)}),[j,g]);return _(Yme,Object.assign({},g,{ref:b,value:k,onChange:E,onKeyDown:O,className:Ax(g.className)}))}));async function eye(){const{default:e}=await Promise.resolve().then((function(){return EUe}));return Object.keys(e)}Jme.displayName="MaskedTextInput";const tye=j(["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"}}),rye={sm:16,md:24,lg:32},nye=e=>{var{name:r,type:n="heroicons",color:a="inherit",variant:o="solid",size:l="md",className:i}=e,s=zx(e,["name","type","color","variant","size","className"]);const[c,d]=t.useState(null);if(t.useEffect((()=>{if("lucide"===n)return void Promise.resolve().then((function(){return EUe})).then((({default:e})=>{const t=e[r];t?t().then((e=>{d((()=>e.default))})):console.warn(`Lucide icon "${r}" not found.`)}));const e=((e,t,r)=>{var n,a;return null===(a=null===(n=wx[e])||void 0===n?void 0:n[t])||void 0===a?void 0:a[r]})(n,r,o);e?d((()=>e)):console.warn(`Icon "${r}" from "${n}" not found.`)}),[r,n,o]),"lucide"===n){if(!c)return _("span",{className:Ax(tye({color:a,size:l}),i)});const e="inherit"===l?24:rye[l];return _(c,Object.assign({},s,{size:e,strokeWidth:e<=16?1.5:2,absoluteStrokeWidth:!0,shapeRendering:"geometricPrecision",className:Ax(tye({color:a,size:l}),"stroke-current",i)}))}return _(c||"svg",Object.assign({className:Ax(tye({color:a,size:l}),i)},s))},aye=r(((e,t)=>{var r,{showToggle:a=!0,hasClearIcon:o=!1,hideIcon:l,showIcon:s,endIcon:d,renderEndIcon:u,onClickEndIcon:h}=e,f=zx(e,["showToggle","hasClearIcon","hideIcon","showIcon","endIcon","renderEndIcon","onClickEndIcon"]);const p=n(null),[v,m]=i(!1);c(t,(()=>null==p?void 0:p.current));const y=v?null!=s?s:_(nye,{name:"eye",type:"lucide",size:"inherit",className:"size-full","aria-label":"Hide password"}):null!=l?l:_(nye,{name:"eye-closed",type:"lucide",size:"inherit",className:"size-full","aria-label":"Show password"});return _(Yme,Object.assign({iconMode:"flat"},f,{ref:p,type:v?"text":"password",hasClearIcon:o,endIcon:a?y:d,renderEndIcon:u,onClickEndIcon:a?()=>{var e;f.disabled||(m((e=>!e)),null===(e=p.current)||void 0===e||e.focus(),null==h||h())}:h,autoComplete:null!==(r=f.autoComplete)&&void 0!==r?r:"current-password"}))}));aye.displayName="PasswordInput";const oye=r(((e,r)=>{var o,{value:l,defaultValue:s,min:d,max:u,step:h=1,precision:f,hideControls:p=!1,allowDecimal:v=!0,allowNegative:m=!0,formatDisplay:y=!1,thousandSeparator:g=",",decimalSeparator:b=".",prefix:k="",suffix:w="",disabled:M=!1,onChange:j,onValueChange:E,className:O,size:C="md"}=e,z=zx(e,["value","defaultValue","min","max","step","precision","hideControls","allowDecimal","allowNegative","formatDisplay","thousandSeparator","decimalSeparator","prefix","suffix","disabled","onChange","onValueChange","className","size"]);const P=n(null),[R,A]=i((null!==(o=null!=l?l:s)&&void 0!==o?o:"").toString()),[I,L]=i(!1);c(r,(()=>null==P?void 0:P.current));const S=a((e=>{let t=e;return k&&(t=t.replace(k,"")),w&&(t=t.replace(w,"")),g&&(t=t.split(g).join("")),"."!==b&&(t=t.replace(b,".")),t.trim()}),[k,w,g,b]),V=a((e=>{if(!y||""===e||"-"===e)return e;const t=parseFloat(e);if(isNaN(t))return e;let r=t.toString();void 0!==f&&(r=t.toFixed(f));const n=r.split(".");let a=n[0];const o=n[1];return g&&(a=a.replace(/\B(?=(\d{3})+(?!\d))/g,g)),r=o?`${a}${b}${o}`:a,k&&(r=`${k}${r}`),w&&(r=`${r}${w}`),r}),[y,f,g,b,k,w]),H=a((e=>{if(""===e||"-"===e)return e;let t=parseFloat(e);return isNaN(t)?R:(void 0!==d&&t<d&&(t=d),void 0!==u&&t>u&&(t=u),void 0!==f&&(t=parseFloat(t.toFixed(f))),t.toString())}),[d,u,f,R]),N=a((e=>{let t=e.target.value;if(y&&(t=S(t)),""===t)return A(""),null==j||j(void 0),void(null==E||E(""));if(m&&"-"===t)return A("-"),void(null==E||E("-"));if(!(v?m?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/:m?/^-?\d*$/:/^\d*$/).test(t))return;A(t),null==E||E(t);const r=parseFloat(t);isNaN(r)||null==j||j(r)}),[v,m,y,S,j,E]),Z=a((e=>{var t;L(!0),null===(t=z.onFocus)||void 0===t||t.call(z,e)}),[z]),D=a((e=>{var t;L(!1);const r=H(R);A(r);const n=parseFloat(r);isNaN(n)||null==j||j(n),null===(t=z.onBlur)||void 0===t||t.call(z,e)}),[R,H,j,z]),B=a((e=>{if(M)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(R)||0)+h;void 0!==u&&t>u&&(t=u);const r=H(t.toString());A(r),null==j||j(parseFloat(r)),null==E||E(r)}),[R,h,u,M,H,j,E]),q=a((e=>{if(M)return;e.stopPropagation(),e.preventDefault();let t=(parseFloat(R)||0)-h;void 0!==d&&t<d&&(t=d);const r=H(t.toString());A(r),null==j||j(parseFloat(r)),null==E||E(r)}),[R,h,d,M,H,j,E]),T=a((e=>{var t;switch(e.key){case"ArrowUp":B(e);break;case"ArrowDown":q(e);break;case"Enter":e.currentTarget.blur()}null===(t=z.onKeyDown)||void 0===t||t.call(z,e)}),[B,q,z]);t.useEffect((()=>{void 0!==l&&A(l.toString())}),[l]);const F=t.useMemo((()=>I||!y?R:V(R)),[I,y,R,V]),W={sm:"w-3 h-3",md:"w-4 h-4",lg:"w-6 h-6"}[C],$={sm:"absolute top-0.5",md:"absolute top-1",lg:"absolute top-1"}[C];return _(Yme,Object.assign({},z,{ref:P,type:"text",inputMode:"decimal",value:F,onChange:N,onFocus:Z,onBlur:D,onKeyDown:T,disabled:M,size:C,hasClearIcon:!1,endIcon:p?null:x("div",{className:Ax("flex flex-col","flat"===z.iconMode&&$),children:[_("button",{type:"button",onClick:B,disabled:M||void 0!==u&&parseFloat(R)>=u,className:Ax(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:_(Fn,{className:W})}),_("button",{type:"button",onClick:q,disabled:M||void 0!==d&&parseFloat(R)<=d,className:Ax(" hover:bg-input-active-stroke/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors rounded-full text-input-filled-text"),tabIndex:-1,children:_(Vn,{className:W})})]}),className:Ax(O)}))}));oye.displayName="NumberInput";const lye=j(["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}}),iye=j(["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}}),sye=j(["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"}}),cye=j(["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"}}),dye=j(["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}}),uye=r(((e,t)=>{var{id:r,label:o,size:i="md",rounded:s="normal",variant:d="outline",helperText:u,errorMessage:h,fullwidth:f=!0,disabled:p=!1,error:v=!1,required:m=!0,isFloatingLabel:y=!0,keepCloseIconOnValue:g=!1,hasClearIcon:b=!0,labelClassName:k,className:w,normalize:M,format:j,trimOnCommit:E,normalizeOnCommit:O}=e,C=zx(e,["id","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","required","isFloatingLabel","keepCloseIconOnValue","hasClearIcon","labelClassName","className","normalize","format","trimOnCommit","normalizeOnCommit"]);const z=n(null),P=r||`textarea-${null!=o?o:""}`;c(t,(()=>null==z?void 0:z.current));const R=a((e=>{var t;M&&(e.target.value=M(e.target.value)),null===(t=C.onChange)||void 0===t||t.call(C,e)}),[M,C.onChange]),A=a((e=>{var t;const r=e.currentTarget;let n=r.value;E&&(n=n.trim()),O&&(n=O(n)),n!==r.value&&(r.value=n,null===(t=C.onChange)||void 0===t||t.call(C,Object.assign(Object.assign({},e),{target:r})))}),[E,O,C.onChange]),I=a((e=>{var t;(E||O)&&A(e),null===(t=C.onBlur)||void 0===t||t.call(C,e)}),[E,O,A,C.onBlur]),L=j&&"string"==typeof C.value?j(C.value):C.value,S=l((()=>"inline-flex flex-col "+(f?"w-full":"")),[f]),V=lye({size:i,rounded:s,variant:d,fullwidth:f,disabled:p,error:v,hasClearIcon:b,isFloatingLabel:y});return x("div",{className:S,children:[x("div",{className:"relative",children:[_("textarea",Object.assign({},C,{id:P,ref:z,disabled:p,placeholder:y?" ":C.placeholder,className:Ax(V,w),value:L,onChange:M?R:C.onChange,onBlur:E||O?I:C.onBlur})),b&&_("div",{className:sye({size:i}),style:{display:g&&C.value?"flex":void 0},children:_(vu,{type:"button",className:cye({size:i}),onMouseDown:e=>{if(e.preventDefault(),z.current){const e=z.current.value;z.current.value="",C.onChange&&""!==e&&C.onChange({target:{value:""}}),z.current.focus()}}})}),o&&x("label",{htmlFor:P,className:Ax(iye({size:i,disabled:p,error:v,isFloatingLabel:y}),k),children:[o," ",m&&_("span",{className:Ax("text-error",{"text-input-disable-text":p}),children:"*"})]})]}),(h||u)&&_("span",{className:dye({size:i,disabled:p,error:v}),children:h||u})]})})),hye=j(["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"}}}),fye={subtitile1:"subtitle1",subtitile2:"subtitle2",subtitile3:"subtitle3",subtitile4:"subtitle4",subtitile5:"subtitle5",subtitile6:"subtitle6"},pye=r(((e,t)=>{var r,{variant:n="body1",tag:a="p",children:o,className:l="",color:i,style:s}=e,c=zx(e,["variant","tag","children","className","color","style"]);const d=null!==(r=fye[n])&&void 0!==r?r:n;return _(a,Object.assign({ref:t,className:Ax(`typography-${d}`,hye({color:i}),l),style:s},c,{children:o}))})),vye=j(["box-border flex items-center justify-center outline-none focus-visible:outline-none"],{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","focus-visible:ring-none focus-visible:ring-offset-2 focus-visible:ring-[var(--action-button-solid-default-border)]"],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)]","focus-visible:ring-none focus-visible:ring-[var(--action-button-outline-default-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","focus-visible:ring-none focus-visible:ring-offset-2 focus-visible:ring-[var(--action-button-icon-default-border)]"]},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","focus-visible:ring-[var(--action-button-solid-active-border)]"]},{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)]","focus-visible:ring-[var(--action-button-outline-active-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","focus-visible:ring-[var(--action-button-icon-active-border)]"]},{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}}),mye=r(((e,t)=>{var{children:r,disabled:n,active:a,className:o,size:l,shape:i,variant:s}=e,c=zx(e,["children","disabled","active","className","size","shape","variant"]);const d=vye({size:l,shape:i,variant:s,active:a,disabled:n});return _("button",Object.assign({},c,{ref:t,type:"button","aria-disabled":n||void 0,disabled:n,tabIndex:n?-1:0,className:Ax(".action-button",d,o),children:r}))})),yye=({tabs:e=[],value:t,initialTab:r=0,tabBarSize:a=38,enableBorderLine:o=!0,enableAddTabButton:l=!1,keepIconSpace:c=!1,disabled:d=!1,keepMounted:u=!1,tabMode:h="start",className:f,tabBarClassName:p,tabBarContainerClassName:v,tabBarWrapperClassName:m,tabButtonClassName:y,tabButtonActiveClassName:g,tabButtonActiveDisableClassName:b,tabButtonDisableClassName:k,tabContentClassName:w,addTabButtonWrapperClassName:M,borderSliderClassName:j,leftAction:E,rightAction:O,onAddTab:C,onTabChange:z})=>{var P;const[R,A]=i(r),[I,L]=i(null),[S,V]=i({width:"0px",transform:"translateX(0px)"}),H=n([]),N=n(!0);s((()=>{void 0!==t&&A(t)}),[t]);const Z=()=>{const e=H.current[R];e&&V({width:`${e.offsetWidth}px`,transform:`translateX(${e.offsetLeft}px)`})};return s((()=>{let e;if(N.current){N.current=!1;const t=H.current[R];t&&(V({width:"0px",transform:`translateX(${t.offsetLeft+t.offsetWidth/2}px)`}),e=setTimeout((()=>{Z()}),50))}else Z();const t=()=>{Z()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e&&clearTimeout(e)}}),[R,e,h,c]),x("div",{className:Ax("w-full",f),children:[x("div",{className:Ax(" relative flex flex-row w-full",{"border-b-[1px] border-base-stroke":o,"border-state-disable-outline":d,"flex-1":"justify"===h},v),children:[E,_("div",{className:Ax("relative flex flex-row overflow-x-auto",{"flex-1":"justify"===h},m),children:x("div",{className:Ax("tabs-scrollbar overflow-x-auto w-full",`relative flex gap-3 h-[${a}px] box-border`,{"gap-0":"justify"===h},p),style:{justifyContent:"justify"===h?"stretch":h},role:"tablist",children:[e.map(((e,t)=>{var r,n,a,o,l,i,s,u;return x("button",{ref:e=>H.current[t]=e,role:"tab","aria-selected":t===R,"aria-controls":`tab-content-${t}`,disabled:d||e.disabled,id:`tab-${t}`,className:Ax("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":t===R,"text-text-g-contrast-medium":t!==R,"text-state-disable-outline pointer-events-none":d||e.disabled,[null!==(n=null!==(r=e.disableClassName)&&void 0!==r?r:k)&&void 0!==n?n:""]:d||e.disabled,"text-state-disable-outline":t===R&&(d||e.disabled),[null!==(o=null!==(a=e.activeDisableClassName)&&void 0!==a?a:b)&&void 0!==o?o:""]:t===R&&(d||e.disabled),[null!==(i=null!==(l=e.className)&&void 0!==l?l:y)&&void 0!==i?i:""]:!0,[null!==(u=null!==(s=e.activeClassName)&&void 0!==s?s:g)&&void 0!==u?u:""]:t===R,"flex-1":"justify"===h}),onClick:()=>{A(t),null==z||z(t)},onMouseEnter:()=>L(t),onMouseLeave:()=>L(null),children:[(c||e.startTabContent)&&_("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.isLoading?_(Ix,{size:12}):e.startTabContent}),e.label,(c||e.endTabContent)&&_("div",{className:"h-full w-3 flex items-center justify-center [&_svg]:size-3 [&_svg]:stroke-current [&_svg]:text-current",children:e.endTabContent}),!d&&!e.disabled&&t!==R&&_("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"})]},t)})),_("div",{className:Ax("absolute left-0 bottom-0 h-[2px] rounded-[1px] bg-function-active-solid transition-all duration-300 ease-in-out",{hidden:d||(null===(P=e[R])||void 0===P?void 0:P.disabled),"bg-function-active-hover":I===R&&!d},j),style:S})]})}),l&&_("div",{className:Ax("sticky right-0 flex content-center items-center mx-4",M),children:_(mye,{variant:"outline",size:"sm",onClick:()=>null==C?void 0:C(),disabled:d,children:_(nye,{name:"plus"})})}),O]}),_("div",{className:Ax("mt-4 text-text-g-contrast-high",w),role:"tabpanel",id:`tab-content-${R}`,"aria-labelledby":`tab-${R}`,children:e.map(((e,t)=>{var r;return u||R===t?_("div",{className:"transition "+(R===t?"block":"hidden"),children:e.content},null!==(r=e.id)&&void 0!==r?r:t):null}))})]})},gye="undefined"!=typeof document?t.useLayoutEffect:()=>{};const bye=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},kye=e=>{if(e&&"window"in e&&e.window===e)return e;return bye(e).defaultView||window};function wye(e){let t=null;return()=>(null==t&&(t=e()),t)}const _ye=wye((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}(/^Mac/i)})),xye=wye((function(){return function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)}));class Mye{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function jye(e){let t=n({isFocused:!1,observer:null});gye((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=function(e){const t=n(null);return gye((()=>{t.current=e}),[e]),a(((...e)=>{const r=t.current;return null==r?void 0:r(...e)}),[])}((t=>{null==e||e(t)}));return a((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,a=e=>{t.current.isFocused=!1,n.disabled&&r(new Mye("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let Eye=null,Oye=new Set,Cye=new Map,zye=!1,Pye=!1;const Rye={Tab:!0,Escape:!0};function Aye(e,t){for(let r of Oye)r(e,t)}function Iye(e){zye=!0,function(e){return!(e.metaKey||!_ye()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Eye="keyboard",Aye("keyboard",e))}function Lye(e){Eye="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(zye=!0,Aye("pointer",e))}function Sye(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(xye()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(zye=!0,Eye="virtual")}function Vye(e){e.target!==window&&e.target!==document&&(zye||Pye||(Eye="virtual",Aye("virtual",e)),zye=!1,Pye=!1)}function Hye(){zye=!1,Pye=!0}function Nye(e){if("undefined"==typeof window||Cye.get(kye(e)))return;const t=kye(e),r=bye(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){zye=!0,n.apply(this,arguments)},r.addEventListener("keydown",Iye,!0),r.addEventListener("keyup",Iye,!0),r.addEventListener("click",Sye,!0),t.addEventListener("focus",Vye,!0),t.addEventListener("blur",Hye,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",Lye,!0),r.addEventListener("pointermove",Lye,!0),r.addEventListener("pointerup",Lye,!0)):(r.addEventListener("mousedown",Lye,!0),r.addEventListener("mousemove",Lye,!0),r.addEventListener("mouseup",Lye,!0)),t.addEventListener("beforeunload",(()=>{Zye(e)}),{once:!0}),Cye.set(t,{focus:n})}const Zye=(e,t)=>{const r=kye(e),n=bye(e);t&&n.removeEventListener("DOMContentLoaded",t),Cye.has(r)&&(r.HTMLElement.prototype.focus=Cye.get(r).focus,n.removeEventListener("keydown",Iye,!0),n.removeEventListener("keyup",Iye,!0),n.removeEventListener("click",Sye,!0),r.removeEventListener("focus",Vye,!0),r.removeEventListener("blur",Hye,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",Lye,!0),n.removeEventListener("pointermove",Lye,!0),n.removeEventListener("pointerup",Lye,!0)):(n.removeEventListener("mousedown",Lye,!0),n.removeEventListener("mousemove",Lye,!0),n.removeEventListener("mouseup",Lye,!0)),Cye.delete(r))};function Dye(){return"pointer"!==Eye}"undefined"!=typeof document&&function(e){const t=bye(e);let r;"loading"!==t.readyState?Nye(e):(r=()=>{Nye(e)},t.addEventListener("DOMContentLoaded",r))}();const Bye=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qye(e,t,r){Nye(),s((()=>{let t=(t,n)=>{(function(e,t,r){var n;const a="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?kye(null==r?void 0:r.target).HTMLElement:HTMLElement,i="undefined"!=typeof window?kye(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof a&&!Bye.has(null==r||null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof o||(null==r?void 0:r.target)instanceof l&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof i&&!Rye[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(Dye())};return Oye.add(t),()=>{Oye.delete(t)}}),t)}let Tye=!1,Fye=0;function Wye(){Tye=!0,setTimeout((()=>{Tye=!1}),50)}function $ye(e){"touch"===e.pointerType&&Wye()}function Uye(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",$ye):document.addEventListener("touchend",Wye),Fye++,()=>{Fye--,Fye>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",$ye):document.removeEventListener("touchend",Wye))}}function Gye(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:a,isDisabled:o}=e,[c,d]=i(!1),u=n({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s(Uye,[]);let{hoverProps:h,triggerHoverEnd:f}=l((()=>{let e=(e,n)=>{if(u.pointerType=n,o||"touch"===n||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let a=e.currentTarget;u.target=a,t&&t({type:"hoverstart",target:a,pointerType:n}),r&&r(!0),d(!0)},n=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let n=e.currentTarget;a&&a({type:"hoverend",target:n,pointerType:t}),r&&r(!1),d(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{Tye&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(l.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||Tye||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:l,triggerHoverEnd:n}}),[t,r,a,o,u]);return s((()=>{o&&f({currentTarget:u.target},u.pointerType)}),[o]),{hoverProps:h,isHovered:c}}function Yye(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,l=n({isFocused:!1,isFocusVisible:t||Dye()}),[s,c]=i(!1),[d,u]=i((()=>l.current.isFocused&&l.current.isFocusVisible)),h=a((()=>u(l.current.isFocused&&l.current.isFocusVisible)),[]),f=a((e=>{l.current.isFocused=e,c(e),h()}),[h]);qye((e=>{l.current.isFocusVisible=e,h()}),[],{isTextInput:r});let{focusProps:p}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const l=a((e=>{if(e.target===e.currentTarget)return n&&n(e),o&&o(!1),!0}),[n,o]),i=jye(l),s=a((e=>{const t=bye(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),o&&o(!0),i(e))}),[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:t||!n&&!o?void 0:l}}}({isDisabled:o,onFocusChange:f}),{focusWithinProps:v}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:l}=e,i=n({isFocusWithin:!1}),s=a((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(e),l&&l(!1))}),[r,l,i]),c=jye(s),d=a((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),l&&l(!0),i.current.isFocusWithin=!0,c(e))}),[o,l,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}({isDisabled:!o,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:d,focusProps:o?v:p}}var Kye=Object.defineProperty,Xye=(e,t,r)=>(((e,t,r)=>{t in e?Kye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Qye=new class{constructor(){Xye(this,"current",this.detect()),Xye(this,"handoffState","pending"),Xye(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Jye(e){return Qye.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ege(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function tge(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add((()=>e.removeEventListener(r,n,a)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return ege((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=tge();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function rge(){let[e]=i(tge);return s((()=>()=>e.dispose()),[e]),e}let nge=(e,t)=>{Qye.isServer?s(e,t):d(e,t)};function age(e){let t=n(e);return nge((()=>{t.current=e}),[e]),t}let oge=function(e){let r=age(e);return t.useCallback(((...e)=>r.current(...e)),[r])};let lge=h(void 0);function ige(){return u(lge)}function sge(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function cge(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,cge),n}var dge=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dge||{}),uge=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(uge||{});function hge(){let e=function(){let e=n([]),t=a((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}),[]);return(...r)=>{if(!r.every((e=>null==e)))return e.current=r,t}}();return a((t=>function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:l,mergeRefs:i}){i=null!=i?i:pge;let s=vge(t,e);if(o)return fge(s,r,n,l,i);let c=null!=a?a:0;if(2&c){let{static:e=!1,...t}=s;if(e)return fge(t,r,n,l,i)}if(1&c){let{unmount:e=!0,...t}=s;return cge(e?0:1,{0:()=>null,1:()=>fge({...t,hidden:!0,style:{display:"none"}},r,n,l,i)})}return fge(s,r,n,l,i)}({mergeRefs:e,...t})),[e])}function fge(e,t={},r,n,a){let{as:l=r,children:i,refName:s="ref",...c}=bge(e,["unmount","static"]),d=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof i?i(t):i;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){h["data-headlessui-state"]=r.join(" ");for(let e of r)h[`data-${e}`]=""}}if(l===f&&(Object.keys(gge(c)).length>0||Object.keys(gge(h)).length>0)){if(p(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>sge(t(...e),c.className):sge(t,c.className),n=r?{className:r}:{},o=vge(u.props,gge(bge(c,["ref"])));for(let e in h)e in o&&delete h[e];return v(u,Object.assign({},o,h,d,{ref:a(kge(u),d.ref)},n))}if(Object.keys(gge(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(gge(c)).concat(Object.keys(gge(h))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return o(l,Object.assign({},bge(c,["ref"]),l!==f&&d,l!==f&&h),u)}function pge(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function vge(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function mge(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){let n=r[e];for(let e of n)null==e||e(...t)}});return t}function yge(e){var t;return Object.assign(r(e),{displayName:null!=(t=e.displayName)?t:e.name})}function gge(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function bge(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function kge(e){return t.version.split(".")[0]>="19"?e.props.ref:e.ref}function wge(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))xge(r,_ge(t,n),a);return r}function _ge(e,t){return e?e+"["+t+"]":t}function xge(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())xge(e,_ge(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):wge(r,t,e)}var Mge=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Mge||{});let jge=yge((function(e,t){var r;let{features:n=1,...a}=e,o={ref:t,"aria-hidden":!(2&~n)||(null!=(r=a["aria-hidden"])?r:void 0),hidden:!(4&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}};return hge()({ourProps:o,theirProps:a,slot:{},defaultTag:"span",name:"Hidden"})})),Ege=h(null);function Oge({children:e}){let r=u(Ege);if(!r)return t.createElement(t.Fragment,null,e);let{target:n}=r;return n?z(t.createElement(t.Fragment,null,e),n):null}function Cge({data:e,form:r,disabled:n,onReset:a,overrides:o}){let[l,c]=i(null),d=rge();return s((()=>{if(a&&l)return d.addEventListener(l,"reset",a)}),[l,r,a]),t.createElement(Oge,null,t.createElement(zge,{setForm:c,formId:r}),wge(e).map((([e,a])=>t.createElement(jge,{features:Mge.Hidden,...gge({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:n,name:e,value:a,...o})}))))}function zge({setForm:e,formId:r}){return s((()=>{if(r){let t=document.getElementById(r);t&&e(t)}}),[e,r]),r?null:t.createElement(jge,{features:Mge.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let r=t.closest("form");r&&e(r)}})}let Pge=h(void 0);function Rge(){return u(Pge)}function Age(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}let Ige=Symbol();function Lge(...e){let t=n(e);s((()=>{t.current=e}),[e]);let r=oge((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Ige])))?void 0:r}let Sge=h(null);function Vge(){let e=u(Sge);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vge),e}return e}Sge.displayName="DescriptionContext";let Hge=yge((function(e,t){let r=m(),n=ige(),{id:a=`headlessui-description-${r}`,...o}=e,i=Vge(),s=Lge(t);nge((()=>i.register(a)),[a,i.register]);let c=n||!1,d=l((()=>({...i.slot,disabled:c})),[i.slot,c]),u={ref:s,...i.props,id:a};return hge()({ourProps:u,theirProps:o,slot:d,defaultTag:"p",name:i.name||"Description"})}));Object.assign(Hge,{});var Nge=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Nge||{});let Zge=h(null);function Dge(){let e=u(Zge);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Dge),e}return e}function Bge(e){var t,r,n;let a=null!=(r=null==(t=u(Zge))?void 0:t.value)?r:void 0;return(null!=(n=null==e?void 0:e.length)?n:0)>0?[a,...e].filter(Boolean).join(" "):a}Zge.displayName="LabelContext";let qge=yge((function(e,t){var r;let n=m(),a=Dge(),o=Rge(),i=ige(),{id:s=`headlessui-label-${n}`,htmlFor:c=(null!=o?o:null==(r=a.props)?void 0:r.htmlFor),passive:d=!1,...u}=e,h=Lge(t);nge((()=>a.register(s)),[s,a.register]);let f=oge((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=i||!1,v=l((()=>({...a.slot,disabled:p})),[a.slot,p]),y={ref:h,...a.props,id:s,htmlFor:c,onClick:f};return d&&("onClick"in y&&(delete y.htmlFor,delete y.onClick),"onClick"in u&&delete u.onClick),hge()({ourProps:y,theirProps:u,slot:v,defaultTag:c?"label":"div",name:a.name||"Label"})})),Tge=Object.assign(qge,{});function Fge(e,t,r){let n,a=r.initialDeps??[];return()=>{var o,l,i,s;let c;r.key&&(null==(o=r.debug)?void 0:o.call(r))&&(c=Date.now());const d=e(),u=d.length!==a.length||d.some(((e,t)=>a[t]!==e));if(!u)return n;let h;if(a=d,r.key&&(null==(l=r.debug)?void 0:l.call(r))&&(h=Date.now()),n=t(...d),r.key&&(null==(i=r.debug)?void 0:i.call(r))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-h))/100,n=t/16,a=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${a(t,5)} /${a(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return null==(s=null==r?void 0:r.onChange)||s.call(r,n),n}}function Wge(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const $ge=(e,t,r)=>{let n;return function(...a){e.clearTimeout(n),n=e.setTimeout((()=>t.apply(this,a)),r)}},Uge=e=>e,Gge=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},Yge=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const a=e=>{const{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(a(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const o=new n.ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void a({width:e.inlineSize,height:e.blockSize})}a(r.getBoundingClientRect())}));return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},Kge={passive:!0},Xge="undefined"==typeof window||"onscrollend"in window,Qge=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let a=0;const o=e.options.useScrollendEvent&&Xge?()=>{}:$ge(n,(()=>{t(a,!1)}),e.options.isScrollingResetDelay),l=n=>()=>{const{horizontal:l,isRtl:i}=e.options;a=l?r.scrollLeft*(i?-1:1):r.scrollTop,o(),t(a,n)},i=l(!0),s=l(!1);return s(),r.addEventListener("scroll",i,Kge),r.addEventListener("scrollend",s,Kge),()=>{r.removeEventListener("scroll",i),r.removeEventListener("scrollend",s)}},Jge=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},ebe=(e,{adjustments:t=0,behavior:r},n)=>{var a,o;const l=e+t;null==(o=null==(a=n.scrollElement)?void 0:a.scrollTo)||o.call(a,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class tbe{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,r])=>{void 0===r&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Uge,rangeExtractor:Gge,onChange:()=>{},measureElement:Jge,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=Fge((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const r=new Map,n=new Map;for(let a=t-1;a>=0;a--){const t=e[a];if(r.has(t.lane))continue;const o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=Fge((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,r,n,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a})),{key:!1}),this.getMeasurements=Fge((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:a},o)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const i=this.measurementsCache.slice(0,l);for(let a=l;a<e;a++){const e=n(a),l=1===this.options.lanes?i[a-1]:this.getFurthestMeasurement(i,a),s=l?l.end+this.options.gap:t+r,c=o.get(e),d="number"==typeof c?c:this.options.estimateSize(a),u=s+d,h=l?l.lane:a%this.options.lanes;i[a]={index:a,start:s,size:d,end:u,key:e,lane:h}}return this.measurementsCache=i,i}),{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Fge((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((e,t,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,a=t=>e[t].start,o=rbe(0,n,a,r);let l=o;for(;l<n&&e[l].end<r+t;)l++;return{startIndex:o,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:r}):null),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Fge((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,r,n)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:r,count:n})),{key:"production"!==process.env.NODE_ENV&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const r=this.indexFromElement(e),n=this.measurementsCache[r];if(!n)return;const a=n.key,o=this.elementsCache.get(a);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const r=this.measurementsCache[e];if(!r)return;const n=t-(this.itemSizeCache.get(r.key)??r.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,n,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",n),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=Fge((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const r=[];for(let n=0,a=e.length;n<a;n++){const a=t[e[n]];r.push(a)}return r}),{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Wge(t[rbe(0,t.length-1,(e=>Wge(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>{const r=this.getSize(),n=this.getScrollOffset();"auto"===t&&(t=e<=n?"start":e>=n+r?"end":"start"),"start"===t||("end"===t?e-=r:"center"===t&&(e-=r/2));const a=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.measurementsCache[e];if(!r)return;const n=this.getSize(),a=this.getScrollOffset();if("auto"===t)if(r.end>=a+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=a+this.options.scrollPaddingStart))return[a,t];t="start"}const o="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(e,t);if(!n)return;const[a,o]=n;this._scrollToOffset(a,{adjustments:void 0,behavior:r}),"smooth"!==r&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[t]=Wge(this.getOffsetForIndex(e,o));((e,t)=>Math.abs(e-t)<1)(t,this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:r})}else this.scrollToIndex(e,{align:o,behavior:r})})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let r;return r=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const rbe=(e,t,r,n)=>{for(;e<=t;){const a=(e+t)/2|0,o=r(a);if(o<n)e=a+1;else{if(!(o>n))return a;t=a-1}}return e>0?e-1:0};const nbe="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function abe(t){return function(t){const r=e.useReducer((()=>({})),{})[1],n={...t,onChange:(e,n)=>{var a;n?P(r):r(),null==(a=t.onChange)||a.call(t,e,n)}},[a]=e.useState((()=>new tbe(n)));return a.setOptions(n),nbe((()=>a._didMount()),[]),nbe((()=>a._willUpdate())),a}({observeElementRect:Yge,observeElementOffset:Qge,scrollToFn:ebe,...t})}function obe(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function lbe(e,t=!1){let[r,n]=y((()=>({})),{}),a=l((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}(e)),[e,r]);return nge((()=>{if(!e)return;let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}let ibe=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function sbe(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...a){let o=t[e].call(r,...a);o&&(r=o,n.forEach((e=>e())))}}}function cbe(e){return g(e.subscribe,e.getSnapshot,e.getSnapshot)}let dbe=new ibe((()=>sbe((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let r=this.slice();return r.splice(t,1),r}})));function ube(e,t){let r=dbe.get(t),n=m(),a=cbe(r);if(nge((()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)}),[r,e]),!e)return!1;let o=a.indexOf(n),l=a.length;return-1===o&&(o=l,l+=1),o===l-1}let hbe=new Map,fbe=new Map;function pbe(e){var t;let r=null!=(t=fbe.get(e))?t:0;return fbe.set(e,r+1),0!==r||(hbe.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>vbe(e)}function vbe(e){var t;let r=null!=(t=fbe.get(e))?t:1;if(1===r?fbe.delete(e):fbe.set(e,r-1),1!==r)return;let n=hbe.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,hbe.delete(e))}function mbe(e,{allowed:t,disallowed:r}={}){let n=ube(e,"inert-others");nge((()=>{var e,a;if(!n)return;let o=tge();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(pbe(t));let l=null!=(a=null==t?void 0:t())?a:[];for(let e of l){if(!e)continue;let t=Jye(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)l.some((t=>e.contains(t)))||o.add(pbe(e));r=r.parentElement}}return o.dispose}),[n,t,r])}let ybe=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var gbe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(gbe||{}),bbe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(bbe||{}),kbe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(kbe||{}),wbe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wbe||{});var _be=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_be||{});function xbe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Mbe(){return xbe()||/Android/gi.test(window.navigator.userAgent)}function jbe(e,t,r,n){let a=age(r);s((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));function Ebe(e,t,r){let o=ube(e,"outside-click"),l=age(r),i=a((function(e,r){if(e.defaultPrevented)return;let n=r(e);if(null===n||!n.getRootNode().contains(n)||!n.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of a)if(null!==t&&(t.contains(n)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var r;return e!==(null==(r=Jye(e))?void 0:r.body)&&cge(t,{0:()=>e.matches(ybe),1(){let t=e;for(;null!==t;){if(t.matches(ybe))return!0;t=t.parentElement}return!1}})}(n,wbe.Loose)&&-1!==n.tabIndex&&e.preventDefault(),l.current(e,n)}),[l,t]),c=n(null);jbe(o,"pointerdown",(e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),jbe(o,"mousedown",(e=>{var t,r;c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),jbe(o,"click",(e=>{Mbe()||c.current&&(i(e,(()=>c.current)),c.current=null)}),!0);let d=n({x:0,y:0});jbe(o,"touchstart",(e=>{d.current.x=e.touches[0].clientX,d.current.y=e.touches[0].clientY}),!0),jbe(o,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-d.current.x)>=30||Math.abs(r-d.current.y)>=30))return i(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,r,n){let a=age(r);s((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}(o,"blur",(e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Obe(...e){return l((()=>Jye(...e)),[...e])}function Cbe(e){let t=n({value:"",selectionStart:null,selectionEnd:null});return function(e,t,r,n){let a=age(r);s((()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}(e,"blur",(e=>{let r=e.target;r instanceof HTMLInputElement&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})})),oge((()=>{if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:r,selectionEnd:n}=t.current;null!==r&&null!==n&&e.setSelectionRange(r,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}}))}function zbe(e,t){return l((()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Pbe(){let e;return{before({doc:t}){var r;let n=t.documentElement,a=null!=(r=t.defaultView)?r:window;e=Math.max(0,a.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-a);r.style(n,"paddingRight",`${o}px`)}}}function Rbe(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Abe=sbe((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:tge(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:Rbe(r)},a=[xbe()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=tge();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),l=e.querySelector(a);l&&!n(l)&&(o=l)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},Pbe(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach((({before:e})=>null==e?void 0:e(n))),a.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Ibe(e,t,r=()=>[document.body]){!function(e,t,r=()=>({containers:[]})){let n=cbe(Abe),a=t?n.get(t):void 0,o=!!a&&a.count>0;nge((()=>{if(t&&e)return Abe.dispatch("PUSH",t,r),()=>Abe.dispatch("POP",t,r)}),[e,t])}(ube(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}function Lbe(e){return[e.screenX,e.screenY]}var Sbe,Vbe;Abe.subscribe((()=>{let e=Abe.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&Abe.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&Abe.dispatch("TEARDOWN",r)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Sbe=null==process?void 0:process.env)?void 0:Sbe.NODE_ENV)&&void 0===(null==(Vbe=null==Element?void 0:Element.prototype)?void 0:Vbe.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Hbe=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Hbe||{});function Nbe(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Zbe(e,t,r,o){let[l,s]=i(r),{hasFlag:c,addFlag:d,removeFlag:u}=function(e=0){let[t,r]=i(e),n=a((e=>r(e)),[t]),o=a((e=>r((t=>t|e))),[t]),l=a((e=>(t&e)===e),[t]),s=a((e=>r((t=>t&~e))),[r]),c=a((e=>r((t=>t^e))),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:l,removeFlag:s,toggleFlag:c}}(e&&l?3:0),h=n(!1),f=n(!1),p=rge();return nge((()=>{if(e)return r&&s(!0),t?(null==void 0||undefined.call(o,r),function(e,{prepare:t,run:r,done:n,inFlight:a}){let o=tge();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:a}),o.nextFrame((()=>{r(),o.requestAnimationFrame((()=>{o.add(function(e,t){var r,n;let a=tge();if(!e)return a.dispose;let o=!1;a.add((()=>{o=!0}));let l=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter((e=>e instanceof CSSTransition)))?n:[];return 0===l.length?(t(),a.dispose):(Promise.allSettled(l.map((e=>e.finished))).then((()=>{o||t()})),a.dispose)}(e,n))}))})),o.dispose}(t,{inFlight:h,prepare(){f.current?f.current=!1:f.current=h.current,h.current=!0,!f.current&&(r?(d(3),u(4)):(d(4),u(2)))},run(){f.current?r?(u(3),d(4)):(u(4),d(3)):r?u(1):d(1)},done(){f.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(h.current=!1,u(7),r||s(!1),null==void 0||undefined.call(o,r))}})):void(r&&d(3))}),[e,r,t,p]),e?[l,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Dbe(e,t){let r=n([]),a=oge(e);s((()=>{let e=[...r.current];for(let[n,o]of t.entries())if(r.current[n]!==o){let n=a(t,e);return r.current=t,n}}),[a,...t])}function Bbe(){return"undefined"!=typeof window}function qbe(e){return Wbe(e)?(e.nodeName||"").toLowerCase():"#document"}function Tbe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fbe(e){var t;return null==(t=(Wbe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wbe(e){return!!Bbe()&&(e instanceof Node||e instanceof Tbe(e).Node)}function $be(e){return!!Bbe()&&(e instanceof Element||e instanceof Tbe(e).Element)}function Ube(e){return!!Bbe()&&(e instanceof HTMLElement||e instanceof Tbe(e).HTMLElement)}function Gbe(e){return!(!Bbe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Tbe(e).ShadowRoot)}function Ybe(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=tke(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Kbe(e){return["table","td","th"].includes(qbe(e))}function Xbe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Qbe(e){const t=Jbe(),r=$be(e)?tke(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 Jbe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function eke(e){return["html","body","#document"].includes(qbe(e))}function tke(e){return Tbe(e).getComputedStyle(e)}function rke(e){return $be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nke(e){if("html"===qbe(e))return e;const t=e.assignedSlot||e.parentNode||Gbe(e)&&e.host||Fbe(e);return Gbe(t)?t.host:t}function ake(e){const t=nke(e);return eke(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ube(t)&&Ybe(t)?t:ake(t)}function oke(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=ake(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),l=Tbe(a);if(o){const e=lke(l);return t.concat(l,l.visualViewport||[],Ybe(a)?a:[],e&&r?oke(e):[])}return t.concat(a,oke(a,[],r))}function lke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ike=["top","right","bottom","left"],ske=Math.min,cke=Math.max,dke=Math.round,uke=Math.floor,hke=e=>({x:e,y:e}),fke={left:"right",right:"left",bottom:"top",top:"bottom"},pke={start:"end",end:"start"};function vke(e,t,r){return cke(e,ske(t,r))}function mke(e,t){return"function"==typeof e?e(t):e}function yke(e){return e.split("-")[0]}function gke(e){return e.split("-")[1]}function bke(e){return"x"===e?"y":"x"}function kke(e){return"y"===e?"height":"width"}function wke(e){return["top","bottom"].includes(yke(e))?"y":"x"}function _ke(e){return bke(wke(e))}function xke(e){return e.replace(/start|end/g,(e=>pke[e]))}function Mke(e){return e.replace(/left|right|bottom|top/g,(e=>fke[e]))}function jke(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 Eke(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 Oke(e,t,r){let{reference:n,floating:a}=e;const o=wke(t),l=_ke(t),i=kke(l),s=yke(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 f;switch(s){case"top":f={x:d,y:n.y-a.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-a.width,y:u};break;default:f={x:n.x,y:n.y}}switch(gke(t)){case"start":f[l]-=h*(r&&c?-1:1);break;case"end":f[l]+=h*(r&&c?-1:1)}return f}async function Cke(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:f=0}=mke(t,e),p=jke(f),v=i[h?"floating"===u?"reference":"floating":u],m=Eke(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)),b=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},k=Eke(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:g,strategy:s}):y);return{top:(m.top-k.top+p.top)/b.y,bottom:(k.bottom-m.bottom+p.bottom)/b.y,left:(m.left-k.left+p.left)/b.x,right:(k.right-m.right+p.right)/b.x}}function zke(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pke(e){return ike.some((t=>e[t]>=0))}function Rke(e){const t=tke(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Ube(e),o=a?e.offsetWidth:r,l=a?e.offsetHeight:n,i=dke(r)!==o||dke(n)!==l;return i&&(r=o,n=l),{width:r,height:n,$:i}}function Ake(e){return $be(e)?e:e.contextElement}function Ike(e){const t=Ake(e);if(!Ube(t))return hke(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Rke(t);let l=(o?dke(r.width):r.width)/n,i=(o?dke(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const Lke=hke(0);function Ske(e){const t=Tbe(e);return Jbe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Lke}function Vke(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),o=Ake(e);let l=hke(1);t&&(n?$be(n)&&(l=Ike(n)):l=Ike(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Tbe(e))&&t}(o,r,n)?Ske(o):hke(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=Tbe(o),t=n&&$be(n)?Tbe(n):n;let r=e,a=lke(r);for(;a&&n&&t!==r;){const e=Ike(a),t=a.getBoundingClientRect(),n=tke(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=Tbe(a),a=lke(r)}}return Eke({width:d,height:u,x:s,y:c})}function Hke(e,t){const r=rke(e).scrollLeft;return t?t.left+r:Vke(Fbe(e)).left+r}function Nke(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Hke(e,n)),y:n.top+t.scrollTop}}function Zke(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Tbe(e),n=Fbe(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=Jbe();(!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=Fbe(e),r=rke(e),n=e.ownerDocument.body,a=cke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=cke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+Hke(e);const i=-r.scrollTop;return"rtl"===tke(n).direction&&(l+=cke(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:i}}(Fbe(e));else if($be(t))n=function(e,t){const r=Vke(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=Ube(e)?Ike(e):hke(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=Ske(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Eke(n)}function Dke(e,t){const r=nke(e);return!(r===t||!$be(r)||eke(r))&&("fixed"===tke(r).position||Dke(r,t))}function Bke(e,t,r){const n=Ube(t),a=Fbe(t),o="fixed"===r,l=Vke(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const s=hke(0);if(n||!n&&!o)if(("body"!==qbe(t)||Ybe(a))&&(i=rke(t)),n){const e=Vke(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=Hke(a));const c=!a||n||o?hke(0):Nke(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 qke(e){return"static"===tke(e).position}function Tke(e,t){if(!Ube(e)||"fixed"===tke(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Fbe(e)===r&&(r=r.ownerDocument.body),r}function Fke(e,t){const r=Tbe(e);if(Xbe(e))return r;if(!Ube(e)){let t=nke(e);for(;t&&!eke(t);){if($be(t)&&!qke(t))return t;t=nke(t)}return r}let n=Tke(e,t);for(;n&&Kbe(n)&&qke(n);)n=Tke(n,t);return n&&eke(n)&&qke(n)&&!Qbe(n)?r:n||function(e){let t=nke(e);for(;Ube(t)&&!eke(t);){if(Qbe(t))return t;if(Xbe(t))return null;t=nke(t)}return null}(e)||r}const Wke={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const o="fixed"===a,l=Fbe(n),i=!!t&&Xbe(t.floating);if(n===l||i&&o)return r;let s={scrollLeft:0,scrollTop:0},c=hke(1);const d=hke(0),u=Ube(n);if((u||!u&&!o)&&(("body"!==qbe(n)||Ybe(l))&&(s=rke(n)),Ube(n))){const e=Vke(n);c=Ike(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const h=!l||u||o?hke(0):Nke(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:Fbe,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[..."clippingAncestors"===r?Xbe(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=oke(e,[],!1).filter((e=>$be(e)&&"body"!==qbe(e))),a=null;const o="fixed"===tke(e).position;let l=o?nke(e):e;for(;$be(l)&&!eke(l);){const t=tke(l),r=Qbe(l);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Ybe(l)&&!r&&Dke(e,l))?n=n.filter((e=>e!==l)):a=t,l=nke(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],i=o.reduce(((e,r)=>{const n=Zke(t,r,a);return e.top=cke(n.top,e.top),e.right=ske(n.right,e.right),e.bottom=ske(n.bottom,e.bottom),e.left=cke(n.left,e.left),e}),Zke(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Fke,getElementRects:async function(e){const t=this.getOffsetParent||Fke,r=this.getDimensions,n=await r(e.floating);return{reference:Bke(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}=Rke(e);return{width:t,height:r}},getScale:Ike,isElement:$be,isRTL:function(e){return"rtl"===tke(e).direction}};function $ke(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=Ake(e),d=a||o?[...c?oke(c):[],...oke(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=Fbe(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 f={rootMargin:-uke(d)+"px "+-uke(a.clientWidth-(c+u))+"px "+-uke(a.clientHeight-(d+h))+"px "+-uke(c)+"px",threshold:cke(0,ske(1,s))||1};let p=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!p)return l();t?l(!1,t):r=setTimeout((()=>{l(!1,1e-7)}),1e3)}p=!1}try{n=new IntersectionObserver(v,{...f,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(v,f)}n.observe(e)}(!0),o}(c,r):null;let h,f=-1,p=null;l&&(p=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),r()})),c&&!s&&p.observe(c),p.observe(t));let v=s?Vke(e):null;return s&&function t(){const n=Vke(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=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const Uke=Cke,Gke=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=yke(r),i=gke(r),s="y"===wke(r),c=["left","top"].includes(l)?-1:1,d=o&&s?-1:1,u=mke(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof p&&(f="end"===i?-1*p:p),s?{x:f*d,y:h*c}:{x:h*c,y:f*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}}}}},Yke=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}=mke(e,t),c={x:r,y:n},d=await Cke(t,s),u=wke(yke(a)),h=bke(u);let f=c[h],p=c[u];if(o){const e="y"===h?"bottom":"right";f=vke(f+d["y"===h?"top":"left"],f,f-d[e])}if(l){const e="y"===u?"bottom":"right";p=vke(p+d["y"===u?"top":"left"],p,p-d[e])}const v=i.fn({...t,[h]:f,[u]:p});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[h]:o,[u]:l}}}}}},Kke=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:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...m}=mke(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const y=yke(a),g=wke(i),b=yke(i)===i,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=h||(b||!v?[Mke(i)]:function(e){const t=Mke(e);return[xke(e),t,xke(t)]}(i)),_="none"!==p;!h&&_&&w.push(...function(e,t,r,n){const a=gke(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[]}}(yke(e),"start"===r,n);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(xke)))),o}(i,v,p,k));const x=[i,...w],M=await Cke(t,m),j=[];let E=(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=gke(e),a=_ke(e),o=kke(a);let l="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Mke(l)),[l,Mke(l)]}(a,l,k);j.push(M[e[0]],M[e[1]])}if(E=[...E,{placement:a,overflows:j}],!j.every((e=>e<=0))){var O,C;const e=((null==(O=o.flip)?void 0:O.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(C=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!r)switch(f){case"bestFit":{var z;const e=null==(z=E.filter((e=>{if(_){const t=wke(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:z[0];e&&(r=e);break}case"initialPlacement":r=i}if(a!==r)return{reset:{placement:r}}}return{}}}},Xke=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}=mke(e,t),d=await Cke(t,c),u=yke(a),h=gke(a),f="y"===wke(a),{width:p,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,b=p-d.left-d.right,k=ske(v-d[m],g),w=ske(p-d[y],b),_=!t.middlewareData.shift;let x=k,M=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(x=g),_&&!h){const e=cke(d.left,0),t=cke(d.right,0),r=cke(d.top,0),n=cke(d.bottom,0);f?M=p-2*(0!==e||0!==t?e+t:cke(d.left,d.right)):x=v-2*(0!==r||0!==n?r+n:cke(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:x});const j=await l.getDimensions(i.floating);return p!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}},Qke=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=mke(e,t);switch(n){case"referenceHidden":{const e=zke(await Cke(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pke(e)}}}case"escaped":{const e=zke(await Cke(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Pke(e)}}}default:return{}}}}},Jke=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}=mke(e,t)||{};if(null==c)return{};const u=jke(d),h={x:r,y:n},f=_ke(a),p=kke(f),v=await l.getDimensions(c),m="y"===f,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",k=o.reference[p]+o.reference[f]-h[f]-o.floating[p],w=h[f]-o.reference[f],_=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=_?_[b]:0;x&&await(null==l.isElement?void 0:l.isElement(_))||(x=i.floating[b]||o.floating[p]);const M=k/2-w/2,j=x/2-v[p]/2-1,E=ske(u[y],j),O=ske(u[g],j),C=E,z=x-v[p]-O,P=x/2-v[p]/2+M,R=vke(C,P,z),A=!s.arrow&&null!=gke(a)&&P!==R&&o.reference[p]/2-(P<C?E:O)-v[p]/2<0,I=A?P<C?P-C:P-z:0;return{[f]:h[f]+I,data:{[f]:R,centerOffset:P-R-I,...A&&{alignmentOffset:I}},reset:A}}}),ewe=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}=mke(e,t),d={x:r,y:n},u=wke(a),h=bke(u);let f=d[h],p=d[u];const v=mke(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;f<t?f=t:f>r&&(f=r)}if(c){var y,g;const e="y"===h?"width":"height",t=["top","left"].includes(yke(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);p<r?p=r:p>n&&(p=n)}return{[h]:f,[u]:p}}}},twe=(e,t,r)=>{const n=new Map,a={platform:Wke,...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}=Oke(c,n,s),h=n,f={},p=0;for(let r=0;r<i.length;r++){const{name:o,fn:v}=i[r],{x:m,y:y,data:g,reset:b}=await v({x:d,y:u,initialPlacement:n,placement:h,strategy:a,middlewareData:f,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=y?y:u,f={...f,[o]:{...f[o],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:d,y:u}=Oke(c,h,s))),r=-1)}return{x:d,y:u,placement:h,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var rwe="undefined"!=typeof document?d:s;function nwe(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(!nwe(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)&&!nwe(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function awe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function owe(e,t){const r=awe(e);return Math.round(t*r)/r}function lwe(t){const r=e.useRef(t);return rwe((()=>{r.current=t})),r}function iwe(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=t,[u,h]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,p]=e.useState(a);nwe(f,a)||p(a);const[v,m]=e.useState(null),[y,g]=e.useState(null),b=e.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),k=e.useCallback((e=>{e!==M.current&&(M.current=e,g(e))}),[]),w=l||v,_=i||y,x=e.useRef(null),M=e.useRef(null),j=e.useRef(u),E=null!=c,C=lwe(c),z=lwe(o),P=lwe(d),R=e.useCallback((()=>{if(!x.current||!M.current)return;const e={placement:r,strategy:n,middleware:f};z.current&&(e.platform=z.current),twe(x.current,M.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!nwe(j.current,t)&&(j.current=t,O.flushSync((()=>{h(t)})))}))}),[f,r,n,z,P]);rwe((()=>{!1===d&&j.current.isPositioned&&(j.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[d]);const A=e.useRef(!1);rwe((()=>(A.current=!0,()=>{A.current=!1})),[]),rwe((()=>{if(w&&(x.current=w),_&&(M.current=_),w&&_){if(C.current)return C.current(w,_,R);R()}}),[w,_,R,C,E]);const I=e.useMemo((()=>({reference:x,floating:M,setReference:b,setFloating:k})),[b,k]),L=e.useMemo((()=>({reference:w,floating:_})),[w,_]),S=e.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=owe(L.floating,u.x),r=owe(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...awe(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:R,refs:I,elements:L,floatingStyles:S})),[u,R,I,L,S])}const swe=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?Jke({element:r.current,padding:n}).fn(t):{}:r?Jke({element:r,padding:n}).fn(t):{};var a}}),cwe=(e,t)=>({...Gke(e),options:[e,t]}),dwe=(e,t)=>({...Yke(e),options:[e,t]}),uwe=(e,t)=>({...ewe(e),options:[e,t]}),hwe=(e,t)=>({...Kke(e),options:[e,t]}),fwe=(e,t)=>({...Xke(e),options:[e,t]}),pwe=(e,t)=>({...Qke(e),options:[e,t]}),vwe=(e,t)=>({...swe(e),options:[e,t]}),mwe={...e},ywe=mwe.useInsertionEffect||(e=>e());function gwe(t){const r=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ywe((()=>{r.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return null==r.current?void 0:r.current(...t)}),[])}var bwe="undefined"!=typeof document?d:s;let kwe=!1,wwe=0;const _we=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wwe++;const xwe=mwe.useId||function(){const[t,r]=e.useState((()=>kwe?_we():void 0));return bwe((()=>{null==t&&r(_we())}),[]),e.useEffect((()=>{kwe=!0}),[]),t};let Mwe;"production"!==process.env.NODE_ENV&&(Mwe=new Set);const jwe=e.createContext(null),Ewe=e.createContext(null),Owe="data-floating-ui-focusable";function Cwe(t){const{open:r=!1,onOpenChange:n,elements:a}=t,o=xwe(),l=e.useRef({}),[i]=e.useState((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),s=null!=((null==(c=e.useContext(jwe))?void 0:c.id)||null);var c;if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!$be(e)&&function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a="Floating UI: "+r.join(" ");var o;null!=(e=Mwe)&&e.has(a)||(null==(o=Mwe)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[d,u]=e.useState(a.reference),h=gwe(((e,t,r)=>{l.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),f=e.useMemo((()=>({setPositionReference:u})),[]),p=e.useMemo((()=>({reference:d||a.reference||null,floating:a.floating||null,domReference:a.reference})),[d,a.reference,a.floating]);return e.useMemo((()=>({dataRef:l,open:r,onOpenChange:h,elements:p,events:i,floatingId:o,refs:f})),[r,h,p,i,o,f])}function zwe(t){void 0===t&&(t={});const{nodeId:r}=t,n=Cwe({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||n,o=a.elements,[l,i]=e.useState(null),[s,c]=e.useState(null),d=(null==o?void 0:o.domReference)||l,u=e.useRef(null),h=e.useContext(Ewe);bwe((()=>{d&&(u.current=d)}),[d]);const f=iwe({...t,elements:{...o,...s&&{reference:s}}}),p=e.useCallback((e=>{const t=$be(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),v=e.useCallback((e=>{($be(e)||null===e)&&(u.current=e,i(e)),($be(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!$be(e))&&f.refs.setReference(e)}),[f.refs]),m=e.useMemo((()=>({...f.refs,setReference:v,setPositionReference:p,domReference:u})),[f.refs,v,p]),y=e.useMemo((()=>({...f.elements,domReference:d})),[f.elements,d]),g=e.useMemo((()=>({...f,...a,refs:m,elements:y,nodeId:r})),[f,m,y,r,a]);return bwe((()=>{a.dataRef.current.floatingContext=g;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===r));e&&(e.context=g)})),e.useMemo((()=>({...f,context:g,refs:m,elements:y})),[f,m,y,g])}const Pwe="active",Rwe="selected";function Awe(e,t,r){const n=new Map,a="item"===r;let o=e;if(a&&e){const{[Pwe]:t,[Rwe]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,[Owe]:""},...o,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,o]=t;var l;a&&[Pwe,Rwe].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof o&&(null==(l=n.get(r))||l.push(o),e[r]=function(){for(var e,t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[r]=o)})),e):e),{})}}function Iwe(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Lwe=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:a,offset:o=0,index:l=0,minItemsVisible:i=4,referenceOverflowThreshold:s=0,scrollRef:c,...d}=mke(e,t),{rects:u,elements:{floating:h}}=t,f=r.current[l],p=(null==c?void 0:c.current)||h,v=h.clientTop||p.clientTop,m=0!==h.clientTop,y=0!==p.clientTop,g=h===p;if("production"!==process.env.NODE_ENV&&(t.placement.startsWith("bottom")||function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a="Floating UI: "+r.join(" ");var o;null!=(e=Mwe)&&e.has(a)||(null==(o=Mwe)||o.add(a),console.warn(a))}('`placement` side must be "bottom" when using the `inner`',"middleware.")),!f)return{};const b={...t,...await cwe(-f.offsetTop-h.clientTop-u.reference.height/2-f.offsetHeight/2-o).fn(t)},k=await Uke(Iwe(b,p.scrollHeight+v+h.clientTop),d),w=await Uke(b,{...d,elementContext:"reference"}),_=cke(0,k.top),x=b.y+_,M=p.scrollHeight>p.clientHeight?e=>e:dke,j=M(cke(0,p.scrollHeight+(m&&g||y?2*v:0)-_-cke(0,k.bottom)));if(p.style.maxHeight=j+"px",p.scrollTop=_,a){const e=p.offsetHeight<f.offsetHeight*ske(i,r.current.length)-1||w.top>=-s||w.bottom>=-s;O.flushSync((()=>a(e)))}return n&&(n.current=await Uke(Iwe({...b,y:x},p.offsetHeight+v+h.clientTop),d)),{y:x}}});function Swe(t,r){const{open:n,elements:a}=t,{enabled:o=!0,overflowRef:l,scrollRef:i,onChange:s}=r,c=gwe(s),d=e.useRef(!1),u=e.useRef(null),h=e.useRef(null);e.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==l.current)return;const r=e.deltaY,n=l.current.top>=-.5,a=l.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,i=r<0?-1:1,s=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!a&&r<0?(e.preventDefault(),O.flushSync((()=>{c((e=>e+Math[s](r,o*i)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==i?void 0:i.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=l.current&&(h.current={...l.current})})),()=>{u.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,a.floating,l,i,c]);const f=e.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==i?void 0:i.current)||a.floating;if(l.current&&e&&d.current){if(null!==u.current){const t=e.scrollTop-u.current;(l.current.bottom<-.5&&t<-1||l.current.top<-.5&&t>1)&&O.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[a.floating,c,l,i]);return e.useMemo((()=>o?{floating:f}:{}),[o,f])}let Vwe=h({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Vwe.displayName="FloatingContext";let Hwe=h(null);Hwe.displayName="PlacementContext";function Nwe({children:t,enabled:r=!0}){let[a,o]=i(null),[s,c]=i(0),d=n(null),[u,h]=i(null);!function(e){nge((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(u);let f=r&&null!==a&&null!==u,{to:p="bottom",gap:v=0,offset:m=0,padding:y=0,inner:g}=function(e,t){var r,n,a;let o=Zwe(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),l=Zwe(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),i=Zwe(null!=(a=null==e?void 0:e.padding)?a:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:l,padding:i}}(a,u),[b,k="center"]=p.split(" ");nge((()=>{f&&c(0)}),[f]);let{refs:w,floatingStyles:_,context:x}=zwe({open:f,placement:"selection"===b?"center"===k?"bottom":`bottom-${k}`:"center"===k?`${b}`:`${b}-${k}`,strategy:"absolute",transform:!1,middleware:[cwe({mainAxis:"selection"===b?0:v,crossAxis:m}),dwe({padding:y}),"selection"!==b&&hwe({padding:y}),"selection"===b&&g?Lwe({...g,padding:y,overflowRef:d,offset:s,minItemsVisible:4,referenceOverflowThreshold:y,onFallbackChange(e){var t,r;if(!e)return;let n=x.elements.floating;if(!n)return;let a=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,o=Math.min(4,n.childElementCount),l=0,i=0;for(let e of null!=(r=null==(t=x.elements.floating)?void 0:t.childNodes)?r:[])if(e instanceof HTMLElement){let t=e.offsetTop,r=t+e.clientHeight+a,s=n.scrollTop,c=s+n.clientHeight;if(!(t>=s&&r<=c)){i=Math.max(0,Math.min(r,c)-Math.max(t,s)),l=e.clientHeight;break}o--}o>=1&&c((e=>{let t=l*o-i+a;return e>=t?e:t}))}}):null,fwe({padding:y,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:$ke}),[M=b,j=k]=x.placement.split("-");"selection"===b&&(M="selection");let E=l((()=>({anchor:[M,j].filter(Boolean).join(" ")})),[M,j]),O=Swe(x,{overflowRef:d,onChange:c}),{getReferenceProps:C,getFloatingProps:z}=function(t){void 0===t&&(t=[]);const r=t.map((e=>null==e?void 0:e.reference)),n=t.map((e=>null==e?void 0:e.floating)),a=t.map((e=>null==e?void 0:e.item)),o=e.useCallback((e=>Awe(e,t,"reference")),r),l=e.useCallback((e=>Awe(e,t,"floating")),n),i=e.useCallback((e=>Awe(e,t,"item")),a);return e.useMemo((()=>({getReferenceProps:o,getFloatingProps:l,getItemProps:i})),[o,l,i])}([O]),P=oge((e=>{h(e),w.setFloating(e)}));return e.createElement(Hwe.Provider,{value:o},e.createElement(Vwe.Provider,{value:{setFloating:P,setReference:w.setReference,styles:_,getReferenceProps:C,getFloatingProps:z,slot:E}},t))}function Zwe(e,t,r=void 0){let n=rge(),a=oge(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let a=Bwe(e,t);return[a,r=>{let o=Dwe(e);{let l=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));n.requestAnimationFrame((function i(){n.nextFrame(i);let s=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(l[e]!==n){l[e]=n,s=!0;break}}if(!s)return;let c=Bwe(e,t);a!==c&&(r(c),a=c)}))}return n.dispose}]}return[r,null]})),o=l((()=>a(e,t)[0]),[e,t]),[s=o,c]=i();return nge((()=>{let[r,n]=a(e,t);if(c(r),n)return n(c)}),[e,t]),s}function Dwe(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...Dwe(n)]:[r]}return[]}function Bwe(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function qwe({children:e,freeze:r}){let n=Twe(r,e);return t.createElement(t.Fragment,null,n)}function Twe(e,t){let[r,n]=i(t);return!e&&r!==t&&n(t),e?r:t}let Fwe=h(null);Fwe.displayName="OpenClosedContext";var Wwe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wwe||{});function $we({value:e,children:r}){return t.createElement(Fwe.Provider,{value:e},r)}let Uwe=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||Uwe[0]===e.target)return;let t=e.target;t=t.closest(ybe),Uwe.unshift(null!=t?t:e.target),Uwe=Uwe.filter((e=>null!=e&&e.isConnected)),Uwe.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var Gwe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Gwe||{});function Ywe(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}var Kwe=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Kwe||{});function Xwe(){let t=function(){let t="undefined"==typeof document;return"useSyncExternalStore"in e&&e.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!t))}(),[r,n]=e.useState(Qye.isHandoffComplete);return r&&!1===Qye.isHandoffComplete&&n(!1),e.useEffect((()=>{!0!==r&&n(!0)}),[r]),e.useEffect((()=>Qye.handoff()),[]),!t&&r}let Qwe=h(!1);function Jwe(){return u(Qwe)}function e_e(e){let t=Jwe(),r=u(a_e),n=Obe(e),[a,o]=i((()=>{var e;if(!t&&null!==r)return null!=(e=r.current)?e:null;if(Qye.isServer)return null;let a=null==n?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(null===n)return null;let o=n.createElement("div");return o.setAttribute("id","headlessui-portal-root"),n.body.appendChild(o)}));return s((()=>{null!==a&&(null!=n&&n.body.contains(a)||null==n||n.body.appendChild(a))}),[a,n]),s((()=>{t||null!==r&&o(r.current)}),[r,o,t]),a}let t_e=f,r_e=yge((function(e,t){let r=e,a=n(null),o=Lge(function(e,t=!0){return Object.assign(e,{[Ige]:t})}((e=>{a.current=e})),t),l=Obe(a),c=e_e(a),[d]=i((()=>{var e;return Qye.isServer?null:null!=(e=null==l?void 0:l.createElement("div"))?e:null})),h=u(o_e),f=Xwe();nge((()=>{!c||!d||c.contains(d)||(d.setAttribute("data-headlessui-portal",""),c.appendChild(d))}),[c,d]),nge((()=>{if(d&&h)return h.register(d)}),[h,d]),function(e){let t=oge(e),r=n(!1);s((()=>(r.current=!1,()=>{r.current=!0,ege((()=>{r.current&&t()}))})),[t])}((()=>{var e;!c||!d||(d instanceof Node&&c.contains(d)&&c.removeChild(d),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}));let p=hge();return f&&c&&d?z(p({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:t_e,name:"Portal"}),d):null}));let n_e=f,a_e=h(null);let o_e=h(null),l_e=yge((function(e,r){let n=Lge(r),{enabled:a=!0,...o}=e,l=hge();return a?t.createElement(r_e,{...o,ref:n}):l({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:t_e,name:"Portal"})})),i_e=yge((function(e,r){let{target:n,...a}=e,o={ref:Lge(r)},l=hge();return t.createElement(a_e.Provider,{value:n},l({ourProps:o,theirProps:a,defaultTag:n_e,name:"Popover.Group"}))})),s_e=Object.assign(l_e,{Group:i_e});var c_e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(c_e||{}),d_e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(d_e||{}),u_e=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(u_e||{}),h_e=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",e[e.SetInputElement=8]="SetInputElement",e[e.SetButtonElement=9]="SetButtonElement",e[e.SetOptionsElement=10]="SetOptionsElement",e))(h_e||{});function f_e(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),a=n.length>0&&null!==n[0].dataRef.current.order?n.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):function(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(n,(e=>e.dataRef.current.domRef.current)),o=r?a.indexOf(r):null;return-1===o&&(o=null),{options:a,activeOptionIndex:o}}let p_e={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var r,n,a,o;if(null!=(r=e.dataRef.current)&&r.disabled||e.optionsElement&&(null==(n=e.dataRef.current)||!n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:r,disabled:n}=e.virtual,o=t.focus===Gwe.Specific?t.idx:Ywe(t,{resolveItems:()=>r,resolveActiveIndex:()=>{var t,a;return null!=(a=null!=(t=e.activeOptionIndex)?t:r.findIndex((e=>!n(e))))?a:null},resolveDisabled:n,resolveId(){throw new Error("Function not implemented.")}}),l=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===o&&e.activationTrigger===l?e:{...e,activeOptionIndex:o,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=f_e(e);if(null===l.activeOptionIndex){let e=l.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(l.activeOptionIndex=e)}let i=t.focus===Gwe.Specific?t.idx:Ywe(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),s=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===s?e:{...e,...l,isTyping:!1,activeOptionIndex:i,activationTrigger:s,__demoMode:!1}},4:(e,t)=>{var r,n,a;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,l=f_e(e,(e=>(e.push(o),e)));null===e.activeOptionIndex&&null!=(n=e.dataRef.current)&&n.isSelected(t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(o));let i={...e,...l,activationTrigger:2};return null!=(a=e.dataRef.current)&&a.__demoMode&&void 0===e.dataRef.current.value&&(i.activeOptionIndex=0),i},5:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let n=f_e(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...n,activationTrigger:2}},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var r,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let a=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);a=-1!==r?r:null}return{...e,activeOptionIndex:a,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},8:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},9:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},10:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},v_e=h(null);function m_e(e){let t=u(v_e);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,m_e),t}return t}v_e.displayName="ComboboxActionsContext";let y_e=h(null);function g_e(e){let r=k_e("VirtualProvider"),{options:n}=r.virtual,[a,o]=l((()=>{let e=r.optionsElement;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[r.optionsElement]),s=abe({enabled:0!==n.length,scrollPaddingStart:a,scrollPaddingEnd:o,count:n.length,estimateSize:()=>40,getScrollElement:()=>r.optionsElement,overscan:12}),[c,d]=i(0);nge((()=>{d((e=>e+1))}),[n]);let u=s.getVirtualItems();return 0===u.length?null:t.createElement(y_e.Provider,{value:s},t.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&0!==r.activationTrigger&&null!==r.activeOptionIndex&&n.length>r.activeOptionIndex&&s.scrollToIndex(r.activeOptionIndex)}},u.map((r=>{var a;return t.createElement(f,{key:r.key},t.cloneElement(null==(a=e.children)?void 0:a.call(e,{...e.slot,option:n[r.index]}),{key:`${c}-${r.key}`,"data-index":r.index,"aria-setsize":n.length,"aria-posinset":r.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${r.start}px)`,overflowAnchor:"none"}}))}))))}let b_e=h(null);function k_e(e){let t=u(b_e);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,k_e),t}return t}function w_e(e,t){return cge(t.type,p_e,e,t)}b_e.displayName="ComboboxDataContext";let __e=f;let x_e=dge.RenderStrategy|dge.Static;let M_e=yge((function(e,r){var o,s;let c=ige(),{value:d,defaultValue:u,onChange:h,form:f,name:p,by:v,disabled:m=c||!1,onClose:g,__demoMode:k=!1,multiple:w=!1,immediate:_=!1,virtual:x=null,nullable:M,...j}=e,E=function(e){let[t]=i(e);return t}(u),[O=(w?[]:void 0),C]=function(e,t,r){let[a,o]=i(r),l=void 0!==e,s=n(l),c=n(!1),d=n(!1);return!l||s.current||c.current?!l&&s.current&&!d.current&&(d.current=!0,s.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:a,oge((e=>(l||o(e),null==t?void 0:t(e))))]}(d,h,E),[z,P]=y(w_e,{dataRef:b(),comboboxState:k?0:1,isTyping:!1,options:[],virtual:x?{options:x.options,disabled:null!=(o=x.disabled)?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:k}),R=n(!1),A=n({static:!1,hold:!1}),I=function(e=obe){return a(((t,r)=>{if("string"==typeof e){let n=e;return(null==t?void 0:t[n])===(null==r?void 0:r[n])}return e(t,r)}),[e])}(v),L=oge((e=>x?null===v?x.options.indexOf(e):x.options.findIndex((t=>I(t,e))):z.options.findIndex((t=>I(t.dataRef.current.value,e))))),S=a((e=>cge(H.mode,{1:()=>O.some((t=>I(t,e))),0:()=>I(O,e)})),[O]),V=oge((e=>z.activeOptionIndex===L(e))),H=l((()=>({...z,immediate:_,optionsPropsRef:A,value:O,defaultValue:E,disabled:m,mode:w?1:0,virtual:x?z.virtual:null,get activeOptionIndex(){if(R.current&&null===z.activeOptionIndex&&(x?x.options.length>0:z.options.length>0)){if(x){let e=x.options.findIndex((e=>{var t,r;return!(null!=(r=null==(t=x.disabled)?void 0:t.call(x,e))&&r)}));if(-1!==e)return e}let e=z.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return z.activeOptionIndex},calculateIndex:L,compare:I,isSelected:S,isActive:V})),[O,E,m,w,k,z,x]);nge((()=>{var e;x&&P({type:7,options:x.options,disabled:null!=(e=x.disabled)?e:null})}),[x,null==x?void 0:x.options,null==x?void 0:x.disabled]),nge((()=>{z.dataRef.current=H}),[H]),Ebe(0===H.comboboxState,[H.buttonElement,H.inputElement,H.optionsElement],(()=>K.closeCombobox()));let N=l((()=>{var e,t,r;return{open:0===H.comboboxState,disabled:m,activeIndex:H.activeOptionIndex,activeOption:null===H.activeOptionIndex?null:H.virtual?H.virtual.options[null!=(e=H.activeOptionIndex)?e:0]:null!=(r=null==(t=H.options[H.activeOptionIndex])?void 0:t.dataRef.current.value)?r:null,value:O}}),[H,m,O]),Z=oge((()=>{if(null!==H.activeOptionIndex){if(K.setIsTyping(!1),H.virtual)W(H.virtual.options[H.activeOptionIndex]);else{let{dataRef:e}=H.options[H.activeOptionIndex];W(e.current.value)}K.goToOption(Gwe.Specific,H.activeOptionIndex)}})),D=oge((()=>{P({type:0}),R.current=!0})),B=oge((()=>{P({type:1}),R.current=!1,null==g||g()})),q=oge((e=>{P({type:3,isTyping:e})})),T=oge(((e,t,r)=>(R.current=!1,e===Gwe.Specific?P({type:2,focus:Gwe.Specific,idx:t,trigger:r}):P({type:2,focus:e,trigger:r})))),F=oge(((e,t)=>(P({type:4,payload:{id:e,dataRef:t}}),()=>{H.isActive(t.current.value)&&(R.current=!0),P({type:5,id:e})}))),W=oge((e=>cge(H.mode,{0:()=>null==C?void 0:C(e),1(){let t=H.value.slice(),r=t.findIndex((t=>I(t,e)));return-1===r?t.push(e):t.splice(r,1),null==C?void 0:C(t)}}))),$=oge((e=>{P({type:6,trigger:e})})),U=oge((e=>{P({type:8,element:e})})),G=oge((e=>{P({type:9,element:e})})),Y=oge((e=>{P({type:10,element:e})})),K=l((()=>({onChange:W,registerOption:F,goToOption:T,setIsTyping:q,closeCombobox:B,openCombobox:D,setActivationTrigger:$,selectActiveOption:Z,setInputElement:U,setButtonElement:G,setOptionsElement:Y})),[]),[X,Q]=function({inherit:e=!1}={}){let r=Bge(),[n,a]=i([]),o=e?[r,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,l((()=>function(e){let r=oge((e=>(a((t=>[...t,e])),()=>a((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),n=l((()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value})),[r,e.slot,e.name,e.props,e.value]);return t.createElement(Zge.Provider,{value:n},e.children)}),[a])]}(),J=null===r?{}:{ref:r},ee=a((()=>{if(void 0!==E)return null==C?void 0:C(E)}),[C,E]),te=hge();return t.createElement(Q,{value:X,props:{htmlFor:null==(s=H.inputElement)?void 0:s.id},slot:{open:0===H.comboboxState,disabled:m}},t.createElement(Nwe,null,t.createElement(v_e.Provider,{value:K},t.createElement(b_e.Provider,{value:H},t.createElement($we,{value:cge(H.comboboxState,{0:Wwe.Open,1:Wwe.Closed})},null!=p&&t.createElement(Cge,{disabled:m,data:null!=O?{[p]:O}:{},form:f,onReset:ee}),te({ourProps:J,theirProps:j,slot:N,defaultTag:__e,name:"Combobox"}))))))})),j_e=yge((function(e,t){var r;let a=k_e("Combobox.Button"),o=m_e("Combobox.Button"),s=Lge(t,o.setButtonElement),c=m(),{id:d=`headlessui-combobox-button-${c}`,disabled:u=a.disabled||!1,autoFocus:h=!1,...f}=e,p=Cbe(a.inputElement),v=oge((e=>{switch(e.key){case Nge.Space:case Nge.Enter:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&P((()=>o.openCombobox())),void p();case Nge.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(P((()=>o.openCombobox())),a.value||o.goToOption(Gwe.First)),void p();case Nge.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(P((()=>o.openCombobox())),a.value||o.goToOption(Gwe.Last)),void p();case Nge.Escape:if(0!==a.comboboxState)return;return e.preventDefault(),a.optionsElement&&!a.optionsPropsRef.current.static&&e.stopPropagation(),P((()=>o.closeCombobox())),void p();default:return}})),y=oge((e=>{e.preventDefault(),!Age(e.currentTarget)&&(e.button===Kwe.Left&&(0===a.comboboxState?o.closeCombobox():o.openCombobox()),p())})),g=Bge([d]),{isFocusVisible:b,focusProps:k}=Yye({autoFocus:h}),{isHovered:w,hoverProps:_}=Gye({isDisabled:u}),{pressed:x,pressProps:M}=function({disabled:e=!1}={}){let t=n(null),[r,a]=i(!1),o=rge(),l=oge((()=>{t.current=null,a(!1),o.dispose()})),s=oge((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let r=Jye(e.currentTarget);o.addEventListener(r,"pointerup",l,!1),o.addEventListener(r,"pointermove",(e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);a(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(r,"pointercancel",l,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:l,onClick:l}}}({disabled:u}),j=l((()=>({open:0===a.comboboxState,active:x||0===a.comboboxState,disabled:u,value:a.value,hover:w,focus:b})),[a,w,b,x,u]),E=mge({ref:s,id:d,type:zbe(e,a.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=a.optionsElement)?void 0:r.id,"aria-expanded":0===a.comboboxState,"aria-labelledby":g,disabled:u||void 0,autoFocus:h,onMouseDown:y,onKeyDown:v},k,_,M);return hge()({ourProps:E,theirProps:f,slot:j,defaultTag:"button",name:"Combobox.Button"})})),E_e=yge((function(e,t){var r,a,o,i,s;let c=k_e("Combobox.Input"),d=m_e("Combobox.Input"),h=m(),f=Rge(),{id:p=f||`headlessui-combobox-input-${h}`,onChange:v,displayValue:y,disabled:g=c.disabled||!1,autoFocus:b=!1,type:k="text",...w}=e,_=n(null),x=Lge(_,t,u(Vwe).setReference,d.setInputElement),M=Obe(c.inputElement),j=rge(),E=oge((()=>{d.onChange(null),c.optionsElement&&(c.optionsElement.scrollTop=0),d.goToOption(Gwe.Nothing)})),O=l((()=>{var e;return"function"==typeof y&&void 0!==c.value?null!=(e=y(c.value))?e:"":"string"==typeof c.value?c.value:""}),[c.value,y]);Dbe((([e,t],[r,n])=>{if(c.isTyping)return;let a=_.current;a&&((0===n&&1===t||e!==r)&&(a.value=e),requestAnimationFrame((()=>{if(c.isTyping||!a||(null==M?void 0:M.activeElement)!==a)return;let{selectionStart:e,selectionEnd:t}=a;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&a.setSelectionRange(a.value.length,a.value.length)})))}),[O,c.comboboxState,M,c.isTyping]),Dbe((([e],[t])=>{if(0===e&&1===t){if(c.isTyping)return;let e=_.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:a}=e;e.value="",e.value=t,null!==a?e.setSelectionRange(r,n,a):e.setSelectionRange(r,n)}}),[c.comboboxState]);let C=n(!1),z=oge((()=>{C.current=!0})),R=oge((()=>{j.nextFrame((()=>{C.current=!1}))})),A=oge((e=>{switch(d.setIsTyping(!0),e.key){case Nge.Enter:if(0!==c.comboboxState||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===c.activeOptionIndex)return void d.closeCombobox();d.selectActiveOption(),0===c.mode&&d.closeCombobox();break;case Nge.ArrowDown:return e.preventDefault(),e.stopPropagation(),cge(c.comboboxState,{0:()=>d.goToOption(Gwe.Next),1:()=>d.openCombobox()});case Nge.ArrowUp:return e.preventDefault(),e.stopPropagation(),cge(c.comboboxState,{0:()=>d.goToOption(Gwe.Previous),1:()=>{P((()=>d.openCombobox())),c.value||d.goToOption(Gwe.Last)}});case Nge.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.First);case Nge.PageUp:return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.First);case Nge.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.Last);case Nge.PageDown:return e.preventDefault(),e.stopPropagation(),d.goToOption(Gwe.Last);case Nge.Escape:return 0!==c.comboboxState?void 0:(e.preventDefault(),c.optionsElement&&!c.optionsPropsRef.current.static&&e.stopPropagation(),0===c.mode&&null===c.value&&E(),d.closeCombobox());case Nge.Tab:if(0!==c.comboboxState)return;0===c.mode&&1!==c.activationTrigger&&d.selectActiveOption(),d.closeCombobox()}})),I=oge((e=>{null==v||v(e),0===c.mode&&""===e.target.value&&E(),d.openCombobox()})),L=oge((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:Uwe.find((t=>t!==e.currentTarget));if(!(null!=(r=c.optionsElement)&&r.contains(a)||null!=(n=c.buttonElement)&&n.contains(a)||0!==c.comboboxState))return e.preventDefault(),0===c.mode&&null===c.value&&E(),d.closeCombobox()})),S=oge((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:Uwe.find((t=>t!==e.currentTarget));null!=(r=c.buttonElement)&&r.contains(a)||null!=(n=c.optionsElement)&&n.contains(a)||c.disabled||c.immediate&&0!==c.comboboxState&&j.microTask((()=>{P((()=>d.openCombobox())),d.setActivationTrigger(1)}))})),V=Bge(),H=function(){var e,t;return null!=(t=null==(e=u(Sge))?void 0:e.value)?t:void 0}(),{isFocused:N,focusProps:Z}=Yye({autoFocus:b}),{isHovered:D,hoverProps:B}=Gye({isDisabled:g}),q=l((()=>({open:0===c.comboboxState,disabled:g,hover:D,focus:N,autofocus:b})),[c,D,N,b,g]),T=mge({ref:x,id:p,role:"combobox",type:k,"aria-controls":null==(r=c.optionsElement)?void 0:r.id,"aria-expanded":0===c.comboboxState,"aria-activedescendant":null===c.activeOptionIndex?void 0:c.virtual?null==(a=c.options.find((e=>!e.dataRef.current.disabled&&c.compare(e.dataRef.current.value,c.virtual.options[c.activeOptionIndex]))))?void 0:a.id:null==(o=c.options[c.activeOptionIndex])?void 0:o.id,"aria-labelledby":V,"aria-describedby":H,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(i=e.defaultValue)?i:void 0!==c.defaultValue?null==y?void 0:y(c.defaultValue):null)?s:c.defaultValue,disabled:g||void 0,autoFocus:b,onCompositionStart:z,onCompositionEnd:R,onKeyDown:A,onChange:I,onFocus:S,onBlur:L},Z,B);return hge()({ourProps:T,theirProps:w,slot:q,defaultTag:"input",name:"Combobox.Input"})})),O_e=Tge,C_e=yge((function(e,r){var o,c,d;let h=m(),{id:f=`headlessui-combobox-options-${h}`,hold:p=!1,anchor:v,portal:y=!1,modal:g=!0,transition:b=!1,...k}=e,w=k_e("Combobox.Options"),_=m_e("Combobox.Options"),x=function(e){return l((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(v);x&&(y=!0);let[M,j]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=u(Hwe),r=l((()=>e),[JSON.stringify(e,((e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t}))]);nge((()=>{null==t||t(null!=r?r:null)}),[t,r]);let n=u(Vwe);return l((()=>[n.setFloating,e?n.styles:{}]),[n.setFloating,e,n.styles])}(x),[E,O]=i(null),C=function(){let{getFloatingProps:e,slot:t}=u(Vwe);return a(((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor})),[e,t])}(),z=Lge(r,x?M:null,_.setOptionsElement,O),P=Obe(w.optionsElement),R=u(Fwe),[A,I]=Zbe(b,E,null!==R?(R&Wwe.Open)===Wwe.Open:0===w.comboboxState);!function(e,t,r){let n=age((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));s((()=>{if(!e)return;let r=null===t?null:t instanceof HTMLElement?t:t.current;if(!r)return;let a=tge();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}return()=>a.dispose()}),[t,n,e])}(A,w.inputElement,_.closeCombobox),Ibe(!w.__demoMode&&(g&&0===w.comboboxState),P),mbe(!w.__demoMode&&(g&&0===w.comboboxState),{allowed:a((()=>[w.inputElement,w.buttonElement,w.optionsElement]),[w.inputElement,w.buttonElement,w.optionsElement])}),nge((()=>{var t;w.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[w.optionsPropsRef,e.static]),nge((()=>{w.optionsPropsRef.current.hold=p}),[w.optionsPropsRef,p]),function(e,{container:t,accept:r,walk:a}){let o=n(r),l=n(a);s((()=>{o.current=r,l.current=a}),[r,a]),nge((()=>{if(!t||!e)return;let r=Jye(t);if(!r)return;let n=o.current,a=l.current,i=Object.assign((e=>n(e)),{acceptNode:n}),s=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)a(s.currentNode)}),[t,e,o,l])}(0===w.comboboxState,{container:w.optionsElement,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let L=Bge([null==(o=w.buttonElement)?void 0:o.id]),S=l((()=>({open:0===w.comboboxState,option:void 0})),[w.comboboxState]),V=oge((()=>{_.setActivationTrigger(0)})),H=oge((e=>{e.preventDefault(),_.setActivationTrigger(0)})),N=mge(x?C():{},{"aria-labelledby":L,role:"listbox","aria-multiselectable":1===w.mode||void 0,id:f,ref:z,style:{...k.style,...j,"--input-width":lbe(w.inputElement,!0).width,"--button-width":lbe(w.buttonElement,!0).width},onWheel:0===w.activationTrigger?void 0:V,onMouseDown:H,...Nbe(I)}),Z=A&&1===w.comboboxState,D=Twe(Z,null==(c=w.virtual)?void 0:c.options),B=Twe(Z,w.value),q=oge((e=>w.compare(B,e)));if(w.virtual){if(void 0===D)throw new Error("Missing `options` in virtual mode");Object.assign(k,{children:t.createElement(b_e.Provider,{value:D!==w.virtual.options?{...w,virtual:{...w.virtual,options:D}}:w},t.createElement(g_e,{slot:S},k.children))})}let T=hge();return t.createElement(s_e,{enabled:!!y&&(e.static||A)},t.createElement(b_e.Provider,{value:1===w.mode?w:{...w,isSelected:q}},T({ourProps:N,theirProps:{...k,children:t.createElement(qwe,{freeze:Z},"function"==typeof k.children?null==(d=k.children)?void 0:d.call(k,S):k.children)},slot:S,defaultTag:"div",features:x_e,visible:A,name:"Combobox.Options"})))})),z_e=yge((function(e,t){var r,a,o,i;let s=k_e("Combobox.Option"),c=m_e("Combobox.Option"),d=m(),{id:h=`headlessui-combobox-option-${d}`,value:f,disabled:p=null!=(o=null==(a=null==(r=s.virtual)?void 0:r.disabled)?void 0:a.call(r,f))&&o,order:v=null,...y}=e,g=Cbe(s.inputElement),b=s.virtual?s.activeOptionIndex===s.calculateIndex(f):null!==s.activeOptionIndex&&(null==(i=s.options[s.activeOptionIndex])?void 0:i.id)===h,k=s.isSelected(f),w=n(null),_=age({disabled:p,value:f,domRef:w,order:v}),x=u(y_e),M=Lge(t,w,x?x.measureElement:null),j=oge((()=>{c.setIsTyping(!1),c.onChange(f)}));nge((()=>c.registerOption(h,_)),[_,h]);let E=n(!(s.virtual||s.__demoMode));nge((()=>{if(!s.virtual&&!s.__demoMode)return tge().requestAnimationFrame((()=>{E.current=!0}))}),[s.virtual,s.__demoMode]),nge((()=>{if(E.current&&0===s.comboboxState&&b&&0!==s.activationTrigger)return tge().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[w,b,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let O=oge((e=>{e.preventDefault(),e.button===Kwe.Left&&(p||(j(),Mbe()||requestAnimationFrame((()=>g())),0===s.mode&&c.closeCombobox()))})),C=oge((()=>{if(p)return c.goToOption(Gwe.Nothing);let e=s.calculateIndex(f);c.goToOption(Gwe.Specific,e)})),z=function(){let e=n([-1,-1]);return{wasMoved(t){let r=Lbe(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=Lbe(t)}}}(),P=oge((e=>z.update(e))),R=oge((e=>{if(!z.wasMoved(e)||p||b)return;let t=s.calculateIndex(f);c.goToOption(Gwe.Specific,t,0)})),A=oge((e=>{z.wasMoved(e)&&(p||b&&(s.optionsPropsRef.current.hold||c.goToOption(Gwe.Nothing)))})),I=l((()=>({active:b,focus:b,selected:k,disabled:p})),[b,k,p]),L={id:h,ref:M,role:"option",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,"aria-selected":k,disabled:void 0,onMouseDown:O,onFocus:C,onPointerEnter:P,onMouseEnter:P,onPointerMove:R,onMouseMove:R,onPointerLeave:A,onMouseLeave:A};return hge()({ourProps:L,theirProps:y,slot:I,defaultTag:"div",name:"Combobox.Option"})})),P_e=Object.assign(M_e,{Input:E_e,Button:j_e,Label:O_e,Options:C_e,Option:z_e});j(["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 R_e=j(["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}}),A_e=j([],{variants:{size:{sm:"pe-[30px]",md:"pe-[40px]",lg:"pe-[68px]"}},defaultVariants:{size:"md"}}),I_e=Ax("relative flex gap-1 cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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)]"),L_e=r(((e,t)=>{var{id:r,options:o=[],value:d,label:u,size:h="md",rounded:p="normal",variant:v="outline",helperText:m,errorMessage:y,fullwidth:g=!0,disabled:b=!1,error:k=!1,filterMode:w=!1,required:j=!0,modal:E,onChangeText:O,onSelect:C,renderOptions:z,optionContainerClassName:P,optionItemClassName:R,optionNotFoundItemClassName:A,segmentedInput:I=!0,keepOpenAfterSelect:L=!1,portal:S=!1}=e,V=zx(e,["id","options","value","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","modal","onChangeText","onSelect","renderOptions","optionContainerClassName","optionItemClassName","optionNotFoundItemClassName","segmentedInput","keepOpenAfterSelect","portal"]);const H=r||`${u}-select`,[N,Z]=i(null),[D,B]=i(""),q=n(null);c(t,(()=>q.current),[]),s((()=>{Z(null!=d?d:null)}),[d]);const T=l((()=>w&&D?o.filter((e=>e.label.toLowerCase().includes(D.toLowerCase()))):o),[o,w,D]),F=a((e=>{Z(e),B(""),e&&(null==C||C(e),L||setTimeout((()=>{var e;return null===(e=q.current)||void 0===e?void 0:e.blur()}),0))}),[C,L]),W=a((e=>{w&&B(e.target.value),null==O||O(e)}),[w,O]);return _(P_e,{value:N,onChange:F,immediate:!0,by:"value",disabled:b,children:({open:e})=>x("div",{className:Ax("relative",g&&"w-full"),children:[_(E_e,Object.assign({as:Yme,ref:q,hasClearIcon:!1,endIcon:_(Vn,{className:R_e({isFocus:e})}),label:u,autoComplete:"off",rounded:p,variant:v,helperText:m,errorMessage:y,fullwidth:g,error:k,required:j,id:H,disabled:b,size:h,className:I?A_e({size:h}):void 0,displayValue:e=>{var t;return null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""},readOnly:!w,onChange:W},V)),_(C_e,Object.assign({},S?{portal:!0,anchor:{to:"bottom start",gap:4}}:{},{className:Ax(!S&&"absolute top-full left-0 w-full -mt-3 z-[51]",S&&"z-[51] !max-h-60 w-[var(--input-width)]","min-w-[154px] max-h-60 overflow-y-auto","rounded-md bg-modal-dropdown-surface border border-bg-stroke3 text-text-g-contrast-high",P),style:{boxShadow:"var(--dropdown-menu-shadow)"},children:z?z({optionsFiltered:T,selectedOption:N,onClick:F}):0===T.length?_("div",{className:Ax("px-4 py-14 text-center text-input-text",A),children:"Not found"}):T.map((e=>e.renderLabel?_(f,{children:e.renderLabel({value:e.value,label:e.label,handleOnClick:()=>F(e),className:Ax(I_e,(null==N?void 0:N.value)===e.value&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)]",R)})},e.value):_(z_e,{value:e,className:({focus:t,selected:r})=>Ax(I_e,(r||(null==N?void 0:N.value)===e.value)&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)]",t&&"bg-[var(--dropdown-menu-hover-bg)] text-[var(--dropdown-menu-hover-text)]",R),children:({selected:t})=>x(M,{children:[_("span",{className:"shrink-0 size-4 flex items-center justify-center",children:(t||(null==N?void 0:N.value)===e.value)&&_(nye,{type:"heroicons",name:"check",className:"size-4 text-[var(--dropdown-menu-selected-text)]"})}),e.label]})},e.value)))}))]})})}));function S_e(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function V_e(...t){return e.useCallback(S_e(...t),t)}function H_e(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;n=[...n,a];const i=r=>{const{scope:n,children:a,...i}=r,s=n?.[t]?.[l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})};return i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t]?.[l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},N_e(a,...r)]}function N_e(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}function Z_e(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function D_e(t){const r=e.useRef(t);return e.useEffect((()=>{r.current=t})),e.useMemo((()=>(...e)=>r.current?.(...e)),[])}function B_e({prop:t,defaultProp:r,onChange:n=()=>{}}){const[a,o]=function({defaultProp:t,onChange:r}){const n=e.useState(t),[a]=n,o=e.useRef(a),l=D_e(r);return e.useEffect((()=>{o.current!==a&&(l(a),o.current=a)}),[a,o,l]),n}({defaultProp:r,onChange:n}),l=void 0!==t,i=l?t:a,s=D_e(n);return[i,e.useCallback((e=>{if(l){const r="function"==typeof e?e(t):e;r!==t&&s(r)}else o(e)}),[l,t,o,s])]}function q_e(t){const r=e.useRef({value:t,previous:t});return e.useMemo((()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous)),[t])}L_e.displayName="Dropdown";var T_e=Boolean(globalThis?.document)?e.useLayoutEffect:()=>{};function F_e(t){const[r,n]=e.useState(void 0);return T_e((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),r}var W_e=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=$_e(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=$_e(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=$_e(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=$_e(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function $_e(e){return e?.animationName||"none"}W_e.displayName="Presence";var U_e=e.forwardRef(((t,r)=>{const{children:n,...a}=t,o=e.Children.toArray(n),l=o.find(K_e);if(l){const t=l.props.children,n=o.map((r=>r===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r));return _(G_e,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,n):null})}return _(G_e,{...a,ref:r,children:n})}));U_e.displayName="Slot";var G_e=e.forwardRef(((t,r)=>{const{children:n,...a}=t;if(e.isValidElement(n)){const t=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}(n);return e.cloneElement(n,{...X_e(a,n.props),ref:r?S_e(r,t):t})}return e.Children.count(n)>1?e.Children.only(null):null}));G_e.displayName="SlotClone";var Y_e=({children:e})=>_(M,{children:e});function K_e(t){return e.isValidElement(t)&&t.type===Y_e}function X_e(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 Q_e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),J_e="Checkbox",[exe]=H_e(J_e),[txe,rxe]=exe(J_e),nxe=e.forwardRef(((t,r)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:l,required:i,disabled:s,value:c="on",onCheckedChange:d,form:u,...h}=t,[f,p]=e.useState(null),v=V_e(r,(e=>p(e))),m=e.useRef(!1),y=!f||(u||!!f.closest("form")),[g=!1,b]=B_e({prop:o,defaultProp:l,onChange:d}),k=e.useRef(g);return e.useEffect((()=>{const e=f?.form;if(e){const t=()=>b(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,b]),x(txe,{scope:n,state:g,disabled:s,children:[_(Q_e.button,{type:"button",role:"checkbox","aria-checked":ixe(g)?"mixed":g,"aria-required":i,"data-state":sxe(g),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onKeyDown:Z_e(t.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Z_e(t.onClick,(e=>{b((e=>!!ixe(e)||!e)),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&_(lxe,{control:f,bubbles:!m.current,name:a,value:c,checked:g,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!ixe(l)&&l})]})}));nxe.displayName=J_e;var axe="CheckboxIndicator",oxe=e.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...a}=e,o=rxe(axe,r);return _(W_e,{present:n||ixe(o.state)||!0===o.state,children:_(Q_e.span,{"data-state":sxe(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));oxe.displayName=axe;var lxe=t=>{const{control:r,checked:n,bubbles:a=!0,defaultChecked:o,...l}=t,i=e.useRef(null),s=q_e(n),c=F_e(r);e.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});e.indeterminate=ixe(n),r.call(e,!ixe(n)&&n),e.dispatchEvent(t)}}),[s,n,a]);const d=e.useRef(!ixe(n)&&n);return _("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...l,tabIndex:-1,ref:i,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ixe(e){return"indeterminate"===e}function sxe(e){return ixe(e)?"indeterminate":e?"checked":"unchecked"}var cxe=nxe,dxe=oxe;const uxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(cxe,Object.assign({ref:t,className:Ax("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":!n.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":!n.disabled},r)},n,{children:x(dxe,{className:Ax("flex size-[14px] items-center justify-center text-current","[&[data-state=checked]_.checkbox-check-icon]:block","[&[data-state=indeterminate]_.checkbox-minus-icon]:block"),children:[_(En,{className:"checkbox-check-icon hidden size-[14px]"}),_(ts,{className:"checkbox-minus-icon hidden size-[14px]"})]})}))}));uxe.displayName=cxe.displayName;var hxe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),fxe=e.forwardRef(((e,t)=>_(hxe.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));fxe.displayName="Label";var pxe=fxe;const vxe=j(["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}}),mxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(pxe,Object.assign({ref:t,className:Ax(vxe({size:n.size,disabled:n.disabled,error:n.error,isFloatable:n.isFloatable}),r)},n))}));mxe.displayName=pxe.displayName;const yxe=j(["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}}),gxe=r(((e,t)=>{var{className:r,type:n="text",size:a="md",variant:o="outline",rounded:l="normal",fullwidth:i=!1,disabled:s=!1,error:c=!1,required:d=!1,hiddenPlaceholder:u=!1}=e,h=zx(e,["className","type","size","variant","rounded","fullwidth","disabled","error","required","hiddenPlaceholder"]);return _("input",Object.assign({type:n,className:Ax(yxe({size:a,variant:o,fullwidth:i,error:c,hiddenPlaceholder:u,disabled:s,rounded:l}),r),ref:t,disabled:s},h))}));gxe.displayName="Input";const bxe=({children:e,className:t,variant:r="default",scrollShadow:n=!1,center:a,leftNav:o,rightNav:l,position:c,container:d=!1,containerClassName:u,leftNavClassName:h,centerClassName:f,rightNavClassName:p})=>{const[v,m]=i(!1);s((()=>{if(!n||"undefined"==typeof window)return;const e=()=>{m(window.scrollY>4)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),[n]);const y="transparent"===r;return x("header",{className:Ax("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},n&&v&&"shadow-[var(--navbar-shadow-scrolled)]",t),children:[!y&&_("div",{className:"absolute inset-0 -z-10 bg-[rgb(var(--navbar-bg-color))]","aria-hidden":!0}),_("div",{className:Ax("absolute inset-0 -z-[5] pointer-events-none",t),"aria-hidden":!0}),_("div",{className:Ax("relative mx-auto flex h-full justify-between items-center",{container:d},u),children:e||x(M,{children:[_("nav",{className:Ax("flex w-1/2 gap-x-[var(--navbar-gap)] text-xl",h),children:o}),_("div",{className:Ax("flex flex-shrink-0 flex-wrap justify-center",f),children:a}),_("nav",{className:Ax("flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl",p),children:l})]})})]})},kxe=({children:e,className:t,variant:r="default",copyright:n,center:a,leftNav:o,rightNav:l,position:i,container:s=!1,containerClassName:c,leftNavClassName:d,centerClassName:u,rightNavClassName:h})=>{const f="simple"===r,p="transparent"===r,v=o||n,m=f&&null!=n?n:a,y=f?null:l;return x("footer",{className:Ax("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:i},t),children:[!p&&_("div",{className:"absolute inset-0 -z-10 bg-[var(--footer-bg-color)]","aria-hidden":!0}),_("div",{className:Ax("absolute inset-0 -z-[5] pointer-events-none",t),"aria-hidden":!0}),_("div",{className:Ax("relative mx-auto flex h-full items-center",f?"justify-center":"justify-between",{container:s},c),children:null!=e?e:f?_("div",{className:Ax("text-center",u),children:m}):x(M,{children:[_("nav",{className:Ax("flex w-1/2 items-center gap-x-[var(--footer-gap)] text-xl",d),children:n&&o?x(M,{children:[_("span",{className:"flex-shrink-0",children:n}),o]}):v}),_("div",{className:Ax("flex flex-shrink-0 flex-wrap justify-center",u),children:m}),_("nav",{className:Ax("flex w-1/2 justify-end gap-x-[var(--footer-gap)] text-xl",h),children:y})]})})]})};var wxe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),_xe="Avatar",[xxe]=H_e(_xe),[Mxe,jxe]=xxe(_xe),Exe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,...a}=t,[o,l]=e.useState("idle");return _(Mxe,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:l,children:_(wxe.span,{...a,ref:r})})}));Exe.displayName=_xe;var Oxe="AvatarImage",Cxe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:o=()=>{},...l}=t,i=jxe(Oxe,n),s=function(t,r){const[n,a]=e.useState("idle");return T_e((()=>{if(!t)return void a("error");let e=!0;const n=new window.Image,o=t=>()=>{e&&a(t)};return a("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=t,r&&(n.referrerPolicy=r),()=>{e=!1}}),[t,r]),n}(a,l.referrerPolicy),c=D_e((e=>{o(e),i.onImageLoadingStatusChange(e)}));return T_e((()=>{"idle"!==s&&c(s)}),[s,c]),"loaded"===s?_(wxe.img,{...l,ref:r,src:a}):null}));Cxe.displayName=Oxe;var zxe="AvatarFallback",Pxe=e.forwardRef(((t,r)=>{const{__scopeAvatar:n,delayMs:a,...o}=t,l=jxe(zxe,n),[i,s]=e.useState(void 0===a);return e.useEffect((()=>{if(void 0!==a){const e=window.setTimeout((()=>s(!0)),a);return()=>window.clearTimeout(e)}}),[a]),i&&"loaded"!==l.imageLoadingStatus?_(wxe.span,{...o,ref:r}):null}));Pxe.displayName=zxe;var Rxe=Exe,Axe=Cxe,Ixe=Pxe;const Lxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Rxe,Object.assign({ref:t,className:Ax("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",r)},n))}));Lxe.displayName=Rxe.displayName;const Sxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Axe,Object.assign({ref:t,className:Ax("object-cover object-top h-full w-full",r)},n))}));Sxe.displayName=Axe.displayName;const Vxe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Ixe,Object.assign({ref:t,className:Ax("flex h-full w-full items-center justify-center rounded-full bg-inherit text-inherit",r)},n))}));Vxe.displayName=Ixe.displayName;const Hxe=j(["flex items-center justify-center bg-grey2-900 text-text-white typography-subtitle6 truncate"],{variants:{size:{xxs:"w-[24px] h-[24px] typography-small3",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"},hasImage:{true:"bg-white"}},defaultVariants:{size:"md",rounded:"normal"}}),Nxe=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:""}`},Zxe=({text:e,imageUrl:t,icon:r,fallback:n,size:a,rounded:o,className:l,imageClassName:i,fallbackClassName:s,type:c="text",children:d,style:u})=>{const h=Hxe({size:a,rounded:o,hasImage:!!t});return _(Lxe,{className:Ax(h,l),style:u,children:d||x(M,{children:["image"===c&&x(M,{children:[_(Sxe,{src:t,className:Ax(i)}),_(Vxe,{className:Ax(s),children:"string"==typeof n?Nxe(n):n})]}),"text"===c&&Nxe(null!=e?e:""),"icon"===c&&r]})})},Dxe=({borderWidth:e=2,borderColor:t="white",maxDisplay:r=4,children:n,remainingText:a,remainingAvatar:o})=>{const l=k.toArray(n),i=l.slice(0,r),s=Math.max(0,l.length-r),c=o||v(i[0],{style:{borderWidth:e,borderColor:t},className:"relative z-0",children:a||`+${s}`});return x("div",{className:"flex items-center -space-x-2",children:[i.map(((r,n)=>_("div",{className:"relative",style:{zIndex:l.length-n},children:v(r,{style:{borderWidth:e,borderColor:t}})},n))),s>0&&c]})},Bxe=j(["inline-flex items-center justify-center rounded-lg px-3 py-1","typography-body3"],{variants:{color:{default:["bg-[var(--badge-default-bg)]","text-[var(--badge-default-text)]"],success:["bg-[var(--badge-success-bg)]","text-[var(--badge-success-text)]"],warning:["bg-[var(--badge-warning-bg)]","text-[var(--badge-warning-text)]"],info:["bg-[var(--badge-info-bg)]","text-[var(--badge-info-text)]"],error:["bg-[var(--badge-error-bg)]","text-[var(--badge-error-text)]"]},clickable:{true:"border border-solid",false:""}},compoundVariants:[{color:"default",clickable:!0,className:"border-[var(--badge-default-border)]"},{color:"success",clickable:!0,className:"border-[var(--badge-success-border)]"},{color:"warning",clickable:!0,className:"border-[var(--badge-warning-border)]"},{color:"info",clickable:!0,className:"border-[var(--badge-info-border)]"},{color:"error",clickable:!0,className:"border-[var(--badge-error-border)]"}],defaultVariants:{color:"default",clickable:!1}}),qxe=j(["inline-flex items-center justify-center rounded px-1 py-0.5","typography-small6 text-[var(--badge-severity-text)]"],{variants:{severity:{highest:"bg-[var(--badge-severity-highest-bg)]",high:"bg-[var(--badge-severity-high-bg)]",medium:"bg-[var(--badge-severity-medium-bg)]",low:"bg-[var(--badge-severity-low-bg)]",lowest:"bg-[var(--badge-severity-lowest-bg)]"}},defaultVariants:{severity:"medium"}}),Txe=e.forwardRef(((e,t)=>{var{label:r,color:n="default",clickable:a=!1,percent:o,className:l}=e,i=zx(e,["label","color","clickable","percent","className"]);const s=void 0!==o;return x("span",Object.assign({ref:t,className:Ax(Bxe({color:n,clickable:a}),s&&"flex-col gap-0.5",a&&"cursor-pointer gap-1",l)},i,{children:[x("span",{className:"flex items-center gap-1",children:[r,a&&_(Vn,{className:"size-4 shrink-0","aria-hidden":!0})]}),s&&x("span",{className:"tabular-nums",children:[o,"%"]})]}))}));Txe.displayName="Badge";const Fxe={highest:"Highest",high:"High",medium:"Medium",low:"Low",lowest:"Lowest"},Wxe=e.forwardRef(((e,t)=>{var{severity:r,className:n}=e,a=zx(e,["severity","className"]);return _("span",Object.assign({ref:t,className:Ax(qxe({severity:r}),n)},a,{children:Fxe[r]}))}));Wxe.displayName="SeverityBadge";const $xe=h(void 0),Uxe=()=>{const e=u($xe);if(!e)throw new Error("useCollapsible must be used within a CollapsibleProvider");return e},Gxe=({size:e,children:t,isExpandControlled:r,onToggle:n})=>{const[a,o]=i(!1);return s((()=>{void 0!==r&&o(r)}),[r]),_($xe.Provider,{value:{size:e,isExpand:a,toggle:()=>{o((e=>!e)),n&&n(!a)},setIsExpand:o},children:t})},Yxe=j(["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"}}),Kxe=j(["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}}),Xxe=j(["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"}}),Qxe=j(["flex flex-col border border-secondary rounded overflow-hidden"]),Jxe=r((({children:e,className:t,hideExpandIcon:r=!1},n)=>{const{toggle:a,isExpand:o,size:l}=Uxe(),i=Yxe({size:l}),s=Kxe({isExpand:o,size:l});return x("button",{onClick:a,className:Ax(i,t),ref:n,children:[_("span",{className:"flex flex-1",children:e}),!r&&_("span",{className:Ax(s),children:_(Vn,{className:Ax("size-full")})})]})}));Jxe.displayName="CollapsibleButton";const eMe=r((({children:e,className:t},r)=>{const{isExpand:a,size:o}=Uxe(),l=Xxe({size:o}),[c,d]=i("0px"),u=n(null);return s((()=>{u.current&&d(a?`${u.current.scrollHeight}px`:"0px")}),[a,e]),_("div",{ref:r,className:Ax("overflow-hidden transition-all ease-in-out"),style:{height:c},children:_("div",{ref:u,className:Ax(l,t),children:e})})}));eMe.displayName="CollapsiblePanel";const tMe=r((({children:e,isExpand:t,size:r,className:n,onToggle:a},o)=>{const l=Qxe();return _(Gxe,{size:r,isExpandControlled:t,onToggle:a,children:_("div",{ref:o,className:Ax(l,n),children:e})})}));var rMe,nMe,aMe;tMe.displayName="Collapsible",tMe.Button=Jxe,tMe.Panel=eMe,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"}(rMe||(rMe={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(nMe||(nMe={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(aMe||(aMe={}));const oMe=6048e5,lMe=Symbol.for("constructDateFrom");function iMe(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&lMe in e?e[lMe](t):e instanceof Date?new e.constructor(t):new Date(t)}function sMe(e,t){return iMe(t||e,e)}function cMe(e,t,r){const n=sMe(e,r?.in);return isNaN(t)?iMe(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function dMe(e,t,r){const n=sMe(e,r?.in);if(isNaN(t))return iMe(e,NaN);if(!t)return n;const a=n.getDate(),o=iMe(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return a>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}let uMe={};function hMe(){return uMe}function fMe(e,t){const r=hMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=sMe(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 pMe(e,t){return fMe(e,{...t,weekStartsOn:1})}function vMe(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=iMe(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const o=pMe(a),l=iMe(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const i=pMe(l);return r.getTime()>=o.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function mMe(e){const t=sMe(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 yMe(e,...t){const r=iMe.bind(null,t.find((e=>"object"==typeof e)));return t.map(r)}function gMe(e,t){const r=sMe(e,t?.in);return r.setHours(0,0,0,0),r}function bMe(e,t,r){const[n,a]=yMe(0,e,t),o=gMe(n),l=gMe(a),i=+o-mMe(o),s=+l-mMe(l);return Math.round((i-s)/864e5)}function kMe(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wMe(e,t){const r=sMe(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function _Me(e,t){const r=hMe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=sMe(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 xMe={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 MMe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const jMe={date:MMe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:MMe({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:MMe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},EMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function OMe(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 CMe={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:OMe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:OMe({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:OMe({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:OMe({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:OMe({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 zMe(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 PMe={ordinalNumber:(RMe={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(RMe.matchPattern);if(!r)return null;const n=r[0],a=e.match(RMe.parsePattern);if(!a)return null;let o=RMe.valueCallback?RMe.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:zMe({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:zMe({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:zMe({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:zMe({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:zMe({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 RMe;const AMe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=xMe[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:jMe,formatRelative:(e,t,r,n)=>EMe[e],localize:CMe,match:PMe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function IMe(e,t){const r=sMe(e,t?.in),n=+pMe(r)-+function(e,t){const r=vMe(e,t),n=iMe(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),pMe(n)}(r);return Math.round(n/oMe)+1}function LMe(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=hMe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=iMe(t?.in||e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=fMe(l,t),s=iMe(t?.in||e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=fMe(s,t);return+r>=+i?n+1:+r>=+c?n:n-1}function SMe(e,t){const r=sMe(e,t?.in),n=+fMe(r,t)-+function(e,t){const r=hMe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=LMe(e,t),o=iMe(t?.in||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),fMe(o,t)}(r,t);return Math.round(n/oMe)+1}function VMe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const HMe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return VMe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):VMe(r+1,2)},d:(e,t)=>VMe(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)=>VMe(e.getHours()%12||12,t.length),H:(e,t)=>VMe(e.getHours(),t.length),m:(e,t)=>VMe(e.getMinutes(),t.length),s:(e,t)=>VMe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return VMe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},NMe="midnight",ZMe="noon",DMe="morning",BMe="afternoon",qMe="evening",TMe="night",FMe={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 HMe.y(e,t)},Y:function(e,t,r,n){const a=LMe(e,n),o=a>0?a:1-a;if("YY"===t){return VMe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):VMe(o,t.length)},R:function(e,t){return VMe(vMe(e),t.length)},u:function(e,t){return VMe(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 VMe(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 VMe(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 HMe.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 VMe(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=SMe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):VMe(a,t.length)},I:function(e,t,r){const n=IMe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):VMe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):HMe.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=sMe(e,t?.in);return bMe(r,wMe(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):VMe(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 VMe(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 VMe(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 VMe(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?ZMe:0===n?NMe: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?qMe:n>=12?BMe:n>=4?DMe:TMe,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 HMe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):HMe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):VMe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):VMe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):HMe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):HMe.s(e,t)},S:function(e,t){return HMe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return $Me(n);case"XXXX":case"XX":return UMe(n);default:return UMe(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return $Me(n);case"xxxx":case"xx":return UMe(n);default:return UMe(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WMe(n,":");default:return"GMT"+UMe(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WMe(n,":");default:return"GMT"+UMe(n,":")}},t:function(e,t,r){return VMe(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return VMe(+e,t.length)}};function WMe(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+VMe(o,2)}function $Me(e,t){if(e%60==0){return(e>0?"-":"+")+VMe(Math.abs(e)/60,2)}return UMe(e,t)}function UMe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+VMe(Math.trunc(n/60),2)+t+VMe(n%60,2)}const GMe=(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"})}},YMe=(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"})}},KMe={p:YMe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return GMe(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}}",GMe(n,t)).replace("{{time}}",YMe(a,t))}},XMe=/^D+$/,QMe=/^Y+$/,JMe=["D","DD","YY","YYYY"];const eje=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tje=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rje=/^'([^]*?)'?$/,nje=/''/g,aje=/[a-zA-Z]/;function oje(e,t,r){const n=hMe(),a=r?.locale??n.locale??AMe,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=sMe(e,r?.in);if(!function(e){return!(!kMe(e)&&"number"!=typeof e||isNaN(+sMe(e)))}(i))throw new RangeError("Invalid time value");let s=t.match(tje).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,KMe[t])(e,a.formatLong)}return e})).join("").match(eje).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:lje(e)};if(FMe[t])return{isToken:!0,value:e};if(t.match(aje))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 QMe.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return XMe.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),JMe.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,FMe[o[0]])(i,o,a.localize,c)})).join("")}function lje(e){const t=e.match(rje);return t?t[1].replace(nje,"'"):e}function ije(e,t,r){const n=sMe(e,r?.in),a=n.getFullYear(),o=n.getDate(),l=iMe(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const i=function(e,t){const r=sMe(e,t?.in),n=r.getFullYear(),a=r.getMonth(),o=iMe(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 sje(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 cje{constructor(e,t){this.Date=Date,this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):cMe(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):dMe(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,r){return cMe(e,7*t,r)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,r){return dMe(e,12*t,r)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):bMe(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t){const[r,n]=yMe(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=sje(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 _Me(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const r=sMe(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):_Me(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const r=sMe(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):oje(e,t,this.options),this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):IMe(e),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):SMe(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+sMe(e)>+sMe(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+sMe(e)<+sMe(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):kMe(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[r,n]=yMe(0,e,t);return+gMe(r)==+gMe(n)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[r,n]=yMe(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]=yMe(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=iMe.bind(null,e));const t=sMe(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),iMe(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=iMe.bind(null,e));const t=sMe(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),iMe(n,r||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):ije(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,r){const n=sMe(e,r?.in);return isNaN(+n)?iMe(e,NaN):(n.setFullYear(t),n)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):sje(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):gMe(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):pMe(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const r=sMe(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):fMe(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):wMe(e),this.options={locale:AMe,...e},this.overrides=t}}const dje=new cje;const uje=h(void 0);function hje(){const e=u(uje);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var fje=Object.freeze({__proto__:null,Button:function(e){return t.createElement("button",{...e})},CaptionLabel:function(e){return t.createElement("span",{...e})},Chevron:function(e){const{size:r=24,orientation:n="left",className:a}=e;return t.createElement("svg",{className:a,width:r,height:r,viewBox:"0 0 24 24"},"up"===n&&t.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&t.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&t.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&t.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(e){const{day:r,modifiers:n,...a}=e;return t.createElement("td",{...a})},DayButton:function(e){const{day:r,modifiers:n,...a}=e,o=t.useRef(null);return t.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),t.createElement("button",{ref:o,...a})},Dropdown:function(e){const{options:r,className:n,components:a,classNames:o,...l}=e,i=[o[rMe.Dropdown],n].join(" "),s=r?.find((({value:e})=>e===l.value));return t.createElement("span",{"data-disabled":l.disabled,className:o[rMe.DropdownRoot]},t.createElement(a.Select,{className:i,...l},r?.map((({value:e,label:r,disabled:n})=>t.createElement(a.Option,{key:e,value:e,disabled:n},r)))),t.createElement("span",{className:o[rMe.CaptionLabel],"aria-hidden":!0},s?.label,t.createElement(a.Chevron,{orientation:"down",size:18,className:o[rMe.Chevron]})))},DropdownNav:function(e){return t.createElement("div",{...e})},Footer:function(e){return t.createElement("div",{...e})},Month:function(e){const{calendarMonth:r,displayIndex:n,...a}=e;return t.createElement("div",{...a},e.children)},MonthCaption:function(e){const{calendarMonth:r,displayIndex:n,...a}=e;return t.createElement("div",{...a})},MonthGrid:function(e){return t.createElement("table",{...e})},Months:function(e){return t.createElement("div",{...e})},MonthsDropdown:function(e){const{components:r}=hje();return t.createElement(r.Dropdown,{...e})},Nav:function(e){const{onPreviousClick:r,onNextClick:n,previousMonth:a,nextMonth:o,...l}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:d}}=hje();return t.createElement("nav",{...l},t.createElement(i.PreviousMonthButton,{type:"button",className:s[rMe.PreviousMonthButton],tabIndex:a?void 0:-1,disabled:!a||void 0,"aria-label":c(a),onClick:e.onPreviousClick},t.createElement(i.Chevron,{disabled:!a||void 0,className:s[rMe.Chevron],orientation:"left"})),t.createElement(i.NextMonthButton,{type:"button",className:s[rMe.NextMonthButton],tabIndex:o?void 0:-1,disabled:!o||void 0,"aria-label":d(o),onClick:e.onNextClick},t.createElement(i.Chevron,{disabled:!o||void 0,orientation:"right",className:s[rMe.Chevron]})))},NextMonthButton:function(e){const{components:r}=hje();return t.createElement(r.Button,{...e})},Option:function(e){return t.createElement("option",{...e})},PreviousMonthButton:function(e){const{components:r}=hje();return t.createElement(r.Button,{...e})},Root:function(e){return t.createElement("div",{...e})},Select:function(e){return t.createElement("select",{...e})},Week:function(e){const{week:r,...n}=e;return t.createElement("tr",{...n})},WeekNumber:function(e){const{week:r,...n}=e;return t.createElement("th",{...n})},WeekNumberHeader:function(e){return t.createElement("th",{...e})},Weekday:function(e){return t.createElement("th",{...e})},Weekdays:function(e){return t.createElement("thead",{"aria-hidden":!0},t.createElement("tr",{...e}))},Weeks:function(e){return t.createElement("tbody",{...e})},YearsDropdown:function(e){const{components:r}=hje();return t.createElement(r.Dropdown,{...e})}});function pje(e){return{...fje,...e}}function vje(){const e={};for(const t in rMe)e[rMe[t]]=`rdp-${rMe[t]}`;for(const t in nMe)e[nMe[t]]=`rdp-${nMe[t]}`;for(const t in aMe)e[aMe[t]]=`rdp-${aMe[t]}`;return e}function mje(e,t,r){return(r??new cje(t)).format(e,"LLLL y")}const yje=mje;function gje(e){return e.toString()}const bje=gje;var kje=Object.freeze({__proto__:null,formatCaption:mje,formatDay:function(e,t,r){return(r??new cje(t)).format(e,"d")},formatMonthCaption:yje,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 cje(t)).format(e,"cccccc")},formatYearCaption:bje,formatYearDropdown:gje});const wje={},_je={};function xje(e,t){try{const r=(wje[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in _je?_je[r]:jje(r,r.split(":"))}catch{if(e in _je)return _je[e];const t=e?.match(Mje);return t?jje(e,t.slice(1)):NaN}}const Mje=/([+-]\d\d):?(\d\d)?/;function jje(e,t){const r=+t[0],n=+(t[1]||0);return _je[e]=r>0?60*r+n:60*r-n}class Eje extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(xje(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)),zje(this),Cje(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Eje(...t,e):new Eje(Date.now(),e)}withTimeZone(e){return new Eje(+this,e)}getTimezoneOffset(){return-xje(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Cje(this),+this}[Symbol.for("constructDateFrom")](e){return new Eje(+new Date(e),this.timeZone)}}const Oje=/^(get|set)(?!UTC)/;function Cje(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function zje(e){const t=xje(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=xje(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-xje(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(!Oje.test(e))return;const t=e.replace(Oje,"$1UTC");Eje.prototype[t]&&(e.startsWith("get")?Eje.prototype[e]=function(){return this.internal[t]()}:(Eje.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zje(e)}(this),+this},Eje.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cje(this),+this}))}));class Pje extends Eje{static tz(e,...t){return t.length?new Pje(...t,e):new Pje(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} (${function(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}(this.timeZone,this)})`}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 Pje(+this,e)}[Symbol.for("constructDateFrom")](e){return new Pje(+new Date(e),this.timeZone)}}function Rje(e,t,r){return(r??new cje(t)).format(e,"LLLL y")}const Aje=Rje;function Ije(e,t,r,n){let a=(n??new cje(r)).format(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a}const Lje=Ije;var Sje=Object.freeze({__proto__:null,labelCaption:Aje,labelDay:Lje,labelDayButton:Ije,labelGrid:Rje,labelGridcell:function(e,t,r,n){let a=(n??new cje(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 cje(t)).format(e,"cccc")},labelYearDropdown:function(e){return"Choose the Year"}});function Vje(e,t){const{month:r,defaultMonth:n,today:a=(e.timeZone?Pje.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 Hje{constructor(e,t,r=dje){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 Nje{constructor(e,t){this.date=e,this.weeks=t}}class Zje{constructor(e,t){this.days=t,this.weekNumber=e}}function Dje(e,t){const[r,n]=i(e);return[void 0===t?r:t,n]}function Bje(e,t){const[r,n]=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:f}=e;!r&&h&&(r=h),!r&&d&&(r=new Date(d,0,1)),!n&&f&&(n=f),!n&&u&&(n=new Date(u,11,31));const p=e.captionLayout?.startsWith("dropdown");r?r=l(r):d?r=new Date(d,0,1):!r&&p&&(r=a(s(e.today??(e.timeZone?Pje.tz(e.timeZone):t.Date?new t.Date:new Date),-100)));n?n=i(n):u?n=new Date(u,11,31):!n&&p&&(n=c(e.today??(e.timeZone?Pje.tz(e.timeZone):t.Date?new t.Date:new Date)));return[r?o(r):r,n?o(n):n]}(e,t),{startOfMonth:a,endOfMonth:o}=t,l=Vje(e,t),[i,c]=Dje(l,e.month?a(e.month):void 0);s((()=>{const r=Vje(e,t);c(r)}),[e.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}(i,n,e,t),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:f,endOfMonth:p,endOfWeek:v,isAfter:m,startOfBroadcastWeek:y,startOfISOWeek:g,startOfWeek:b}=n,k=s?y(a,n):l?g(a):b(a),w=d(s?h(o,n):l?f(p(o)):v(p(o)),k),_=u(o,a)+1,x=[];for(let e=0;e<=w;e++){const r=c(k,e);if(t&&m(r,t))break;x.push(r)}const M=(s?35:42)*_;if(i&&x.length<M){const e=M-x.length;for(let t=0;t<e;t++){const e=c(x[x.length-1],1);x.push(e)}}return x}(d,e.endMonth?o(e.endMonth):void 0,e,t),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:f}=n,p=e.reduce(((e,p)=>{const v=r.broadcastCalendar?u(p,n):r.ISOWeek?h(p):f(p),m=r.broadcastCalendar?o(p,n):r.ISOWeek?l(i(p)):s(i(p)),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 b=y.reduce(((e,t)=>{const a=r.ISOWeek?c(t):d(t),o=e.find((e=>e.weekNumber===a)),l=new Hje(t,p,n);return o?o.days.push(l):e.push(new Zje(a,[l])),e}),[]),k=new Nje(p,b);return e.push(k),e}),[]);return r.reverseMonths?p.reverse():p}(d,u,e,t),f=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(h),p=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)}(i,r,e,t),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)}(i,n,e,t),{disableNavigation:y,onMonthChange:g}=e,b=e=>{if(y)return;let t=a(e);r&&t<a(r)&&(t=a(r)),n&&t>a(n)&&(t=a(n)),c(t),g?.(t)},k={months:h,weeks:f,days:p,navStart:r,navEnd:n,previousMonth:v,nextMonth:m,goToMonth:b,goToDay:e=>{(e=>f.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||b(e.date)}};return k}function qje(e,t,r=!1,n=dje){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 Tje(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function Fje(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function Wje(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function $je(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function Uje(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function Gje(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Yje(e,t,r=dje){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(Gje(t,r))return t.includes(e);if(Fje(t))return qje(t,e,!1,r);if(Uje(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Tje(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 Wje(t)?o(e,t.after)>0:$je(t)?o(t.before,e)>0:"function"==typeof t&&t(e)}))}function Kje(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:f,endOfISOWeek:p,endOfWeek:v,max:m,min:y,startOfBroadcastWeek:g,startOfISOWeek:b,startOfWeek:k}=l,w={day:c,week:u,month:d,year:h,startOfWeek:e=>s?g(e,l):i?b(e):k(e),endOfWeek:e=>s?f(e,l):i?p(e):v(e)};let _=w[e](r,"after"===t?1:-1);return"before"===t&&n?_=m([n,_]):"after"===t&&a&&(_=y([a,_])),_}(e,t,r.date,n,a,o,l),c=Boolean(o.disabled&&Yje(s,o.disabled,l)),d=Boolean(o.hidden&&Yje(s,o.hidden,l)),u=new Hje(s,s,l);return c||d?Kje(e,t,u,n,a,o,l,i+1):u}function Xje(e,t,r,n,a){const{autoFocus:o}=e,[l,s]=i(),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[nMe.disabled]||s[nMe.hidden]||s[nMe.outside]||(s[nMe.focused]||n?.isEqualTo(i)||r(i.date)||s[nMe.today])&&(a=i,l=!0),o++}return a||(a=e.find((e=>{const r=t(e);return!r[nMe.disabled]&&!r[nMe.hidden]&&!r[nMe.outside]}))),a}(t.days,r,n||(()=>!1),l),[d,u]=i(o?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{s(d),u(void 0)},moveFocus:(r,n)=>{if(!d)return;const o=Kje(r,n,d,t.navStart,t.navEnd,e,a);o&&(t.goToDay(o),u(o))}}}function Qje(e,t,r=dje){return qje(e,t.from,!1,r)||qje(e,t.to,!1,r)||qje(t,e.from,!1,r)||qje(t,e.to,!1,r)}function Jje(e,t,r=dje){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 qje(e,t,!1,r);if(Gje(t,r))return t.some((t=>qje(e,t,!1,r)));if(Fje(t))return!(!t.from||!t.to)&&Qje(e,{from:t.from,to:t.to},r);if(Uje(t))return function(e,t,r=dje){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(Tje(t)){return r.isAfter(t.before,t.after)?Qje(e,{from:r.addDays(t.after,1),to:r.addDays(t.before,-1)},r):Yje(e.from,t,r)||Yje(e.to,t,r)}return!(!Wje(t)&&!$je(t))&&(Yje(e.from,t,r)||Yje(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 eEe(e,t){const{disabled:r,excludeDisabled:n,selected:a,required:o,onSelect:l}=e,[i,s]=Dje(a,l?a:void 0),c=l?a:i;return{selected:c,select:(a,i,d)=>{const{min:u,max:h}=e,f=a?function(e,t,r=0,n=0,a=!1,o=dje){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&&f?.from&&f.to&&Jje({from:f.from,to:f.to},r,t)&&(f.from=a,f.to=void 0),l||s(f),l?.(f,a,i,d),f},isSelected:e=>c&&qje(c,e,!1,t)}}function tEe(e,t){const r=function(e,t){const{selected:r,required:n,onSelect:a}=e,[o,l]=Dje(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]=Dje(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=eEe(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return a;default:return}}function rEe(e){const{components:r,formatters:n,labels:o,dateLib:i,locale:s,classNames:c}=l((()=>{const t={...AMe,...e.locale};return{dateLib:new cje({locale:t,weekStartsOn:e.broadcastCalendar?1:e.weekStartsOn,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens},e.dateLib),components:pje(e.components),formatters:(r=e.formatters,r?.formatMonthCaption&&!r.formatCaption&&(r.formatCaption=r.formatMonthCaption),r?.formatYearCaption&&!r.formatYearDropdown&&(r.formatYearDropdown=r.formatYearCaption),{...kje,...r}),labels:{...Sje,...e.labels},locale:t,classNames:{...vje(),...e.classNames}};var r}),[e.classNames,e.components,e.dateLib,e.firstWeekContainsDate,e.formatters,e.labels,e.locale,e.useAdditionalDayOfYearTokens,e.useAdditionalWeekYearTokens,e.weekStartsOn,e.broadcastCalendar]),{captionLayout:d,mode:u,onDayBlur:h,onDayClick:f,onDayFocus:p,onDayKeyDown:v,onDayMouseEnter:m,onDayMouseLeave:y,onNextClick:g,onPrevClick:b,showWeekNumber:k,styles:w}=e,{formatCaption:_,formatDay:x,formatMonthDropdown:M,formatWeekNumber:j,formatWeekNumberHeader:E,formatWeekdayName:O,formatYearDropdown:C}=n,z=Bje(e,i),{days:P,months:R,navStart:A,navEnd:I,previousMonth:L,nextMonth:S,goToMonth:V}=z,H=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:f,isAfter:p}=r,v=t.startMonth&&u(t.startMonth),m=t.endMonth&&f(t.endMonth),y={[nMe.focused]:[],[nMe.outside]:[],[nMe.disabled]:[],[nMe.hidden]:[],[nMe.today]:[]},g={};for(const u of e){const{date:e,displayMonth:f}=u,b=Boolean(f&&!d(e,f)),k=Boolean(v&&h(e,v)),w=Boolean(m&&p(e,m)),_=Boolean(n&&Yje(e,n,r)),x=Boolean(a&&Yje(e,a,r))||k||w||!i&&!l&&b||i&&!1===l&&b,M=c(e,s??(t.timeZone?Pje.tz(t.timeZone):r.Date?new r.Date:new Date));b&&y.outside.push(u),_&&y.disabled.push(u),x&&y.hidden.push(u),M&&y.today.push(u),o&&Object.keys(o).forEach((t=>{const n=o?.[t];n&&Yje(e,n,r)&&(g[t]?g[t].push(u):g[t]=[u])}))}return e=>{const t={[nMe.focused]:!1,[nMe.disabled]:!1,[nMe.hidden]:!1,[nMe.outside]:!1,[nMe.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}}}(P,e,i),{isSelected:N,select:Z,selected:D}=tEe(e,i)??{},{blur:B,focused:q,isFocusTarget:T,moveFocus:F,setFocused:W}=Xje(e,z,H,N??(()=>!1),i),{labelDayButton:$,labelGridcell:U,labelGrid:G,labelMonthDropdown:Y,labelNav:K,labelWeekday:X,labelWeekNumber:Q,labelWeekNumberHeader:J,labelYearDropdown:ee}=o,te=l((()=>function(e,t,r){const n=r?Pje.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}(i,e.ISOWeek,e.timeZone)),[i,e.ISOWeek,e.timeZone]),re=void 0!==u||void 0!==f,ne=a((()=>{L&&(V(L),b?.(L))}),[L,V,b]),ae=a((()=>{S&&(V(S),g?.(S))}),[V,S,g]),oe=a(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),W(e),Z?.(e.date,t,r),f?.(e.date,t,r)}),[Z,f,W]),le=a(((e,t)=>r=>{W(e),p?.(e.date,t,r)}),[p,W]),ie=a(((e,t)=>r=>{B(),h?.(e.date,t,r)}),[B,h]),se=a(((t,r)=>n=>{const a={ArrowLeft:["day","rtl"===e.dir?"after":"before"],ArrowRight:["day","rtl"===e.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];F(e,t)}v?.(t.date,r,n)}),[F,v,e.dir]),ce=a(((e,t)=>r=>{m?.(e.date,t,r)}),[m]),de=a(((e,t)=>r=>{y?.(e.date,t,r)}),[y]),ue=a((e=>t=>{const r=Number(t.target.value),n=i.setMonth(i.startOfMonth(e),r);V(n)}),[i,V]),he=a((e=>t=>{const r=Number(t.target.value),n=i.setYear(i.startOfMonth(e),r);V(n)}),[i,V]),{className:fe,style:pe}=l((()=>({className:[c[rMe.Root],e.className].filter(Boolean).join(" "),style:{...w?.[rMe.Root],...e.style}})),[c,e.className,e.style,w]),ve=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}(e),me={dayPickerProps:e,selected:D,select:Z,isSelected:N,months:R,nextMonth:S,previousMonth:L,goToMonth:V,getModifiers:H,components:r,classNames:c,styles:w,labels:o,formatters:n};return t.createElement(uje.Provider,{value:me},t.createElement(r.Root,{className:fe,style:pe,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],...ve},t.createElement(r.Months,{className:c[rMe.Months],style:w?.[rMe.Months]},!e.hideNavigation&&t.createElement(r.Nav,{className:c[rMe.Nav],style:w?.[rMe.Nav],"aria-label":K(),onPreviousClick:ne,onNextClick:ae,previousMonth:L,nextMonth:S}),R.map(((a,o)=>{const l=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)),u=d.map((e=>{const o=n.formatMonthDropdown(e,a.options.locale??AMe),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 u}(a.date,A,I,n,i),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})))}(A,I,n,i);return t.createElement(r.Month,{className:c[rMe.Month],style:w?.[rMe.Month],key:o,displayIndex:o,calendarMonth:a},t.createElement(r.MonthCaption,{className:c[rMe.MonthCaption],style:w?.[rMe.MonthCaption],calendarMonth:a,displayIndex:o},d?.startsWith("dropdown")?t.createElement(r.DropdownNav,{className:c[rMe.Dropdowns],style:w?.[rMe.Dropdowns]},"dropdown"===d||"dropdown-months"===d?t.createElement(r.MonthsDropdown,{className:c[rMe.MonthsDropdown],"aria-label":Y(),classNames:c,components:r,disabled:Boolean(e.disableNavigation),onChange:ue(a.date),options:l,style:w?.[rMe.Dropdown],value:a.date.getMonth()}):t.createElement("span",{role:"status","aria-live":"polite"},M(a.date.getMonth(),s)),"dropdown"===d||"dropdown-years"===d?t.createElement(r.YearsDropdown,{className:c[rMe.YearsDropdown],"aria-label":ee(i.options),classNames:c,components:r,disabled:Boolean(e.disableNavigation),onChange:he(a.date),options:h,style:w?.[rMe.Dropdown],value:a.date.getFullYear()}):t.createElement("span",{role:"status","aria-live":"polite"},C(a.date.getFullYear()))):t.createElement(r.CaptionLabel,{className:c[rMe.CaptionLabel],role:"status","aria-live":"polite"},_(a.date,i.options,i))),t.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===u||"range"===u,"aria-label":G(a.date,i.options,i)||void 0,className:c[rMe.MonthGrid],style:w?.[rMe.MonthGrid]},!e.hideWeekdays&&t.createElement(r.Weekdays,{className:c[rMe.Weekdays],style:w?.[rMe.Weekdays]},k&&t.createElement(r.WeekNumberHeader,{"aria-label":J(i.options),className:c[rMe.WeekNumberHeader],style:w?.[rMe.WeekNumberHeader],scope:"col"},E()),te.map(((e,n)=>t.createElement(r.Weekday,{"aria-label":X(e,i.options,i),className:c[rMe.Weekday],key:n,style:w?.[rMe.Weekday],scope:"col"},O(e,i.options,i))))),t.createElement(r.Weeks,{className:c[rMe.Weeks],style:w?.[rMe.Weeks]},a.weeks.map(((n,a)=>t.createElement(r.Week,{className:c[rMe.Week],key:n.weekNumber,style:w?.[rMe.Week],week:n},k&&t.createElement(r.WeekNumber,{week:n,style:w?.[rMe.WeekNumber],"aria-label":Q(n.weekNumber,{locale:s}),className:c[rMe.WeekNumber],scope:"row",role:"rowheader"},j(n.weekNumber)),n.days.map((n=>{const{date:a}=n,o=H(n);if(o[nMe.focused]=!o.hidden&&Boolean(q?.isEqualTo(n)),o[aMe.selected]=!o.disabled&&(N?.(a)||o.selected),Fje(D)){const{from:e,to:t}=D;o[aMe.range_start]=Boolean(e&&t&&i.isSameDay(a,e)),o[aMe.range_end]=Boolean(e&&t&&i.isSameDay(a,t)),o[aMe.range_middle]=qje(D,a,!0,i)}const l=function(e,t={},r={}){let n={...t?.[rMe.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{n={...n,...r?.[e]}})),n}(o,w,e.modifiersStyles),s=function(e,t,r={}){const n=Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[n])=>(r[n]?e.push(r[n]):t[nMe[n]]?e.push(t[nMe[n]]):t[aMe[n]]&&e.push(t[aMe[n]]),e)),[t[rMe.Day]]);return n}(o,c,e.modifiersClassNames),d=re||o.hidden?void 0:U(a,o,i.options,i);return t.createElement(r.Day,{key:`${i.format(a,"yyyy-MM-dd")}_${i.format(n.displayMonth,"yyyy-MM")}`,day:n,modifiers:o,className:s.join(" "),style:l,role:"gridcell","aria-selected":o.selected||void 0,"aria-label":d,"data-day":i.format(a,"yyyy-MM-dd"),"data-month":n.outside?i.format(a,"yyyy-MM"):void 0,"data-selected":o.selected||void 0,"data-disabled":o.disabled||void 0,"data-hidden":o.hidden||void 0,"data-outside":n.outside||void 0,"data-focused":o.focused||void 0,"data-today":o.today||void 0},!o.hidden&&re?t.createElement(r.DayButton,{className:c[rMe.DayButton],style:w?.[rMe.DayButton],type:"button",day:n,modifiers:o,disabled:o.disabled||void 0,tabIndex:T(n)?0:-1,"aria-label":$(a,o,i.options,i),onClick:oe(n,o),onBlur:ie(n,o),onFocus:le(n,o),onKeyDown:se(n,o),onMouseEnter:ce(n,o),onMouseLeave:de(n,o)},x(a,i.options,i)):!o.hidden&&x(n.date,i.options,i))}))))))))}))),e.footer&&t.createElement(r.Footer,{className:c[rMe.Footer],style:w?.[rMe.Footer],role:"status","aria-live":"polite"},e.footer)))}function nEe(e){var{className:t,classNames:r,showOutsideDays:n=!0}=e,a=zx(e,["className","classNames","showOutsideDays"]);const o=vje();return _(rEe,Object.assign({showOutsideDays:n,captionLayout:"dropdown-years"},a,{className:Ax("bg-bg-bg1 text-common-black border-bg-bg1",t),classNames:Object.assign(Object.assign(Object.assign({},o),{day_button:Ax(o.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:Ax(o.month_caption,"h-[54px]"),outside:"text-gray-400",nav:Ax(o.nav,"gap-6 absolute flex right-0"),chevron:"fill-primary",root:Ax(o.root,"px-6 py-4"),caption_label:Ax(o.caption_label,"gap-2 flex items-center"),months:"flex flex-col relative",disabled:"[&_button]:rounded-full [&_button]:!text-input-disable-text"}),r),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"}}}))}nEe.displayName="Calendar";var aEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function oEe(t,r=globalThis?.document){const n=D_e(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})}),[n,r])}var lEe,iEe="dismissableLayer.update",sEe="dismissableLayer.pointerDownOutside",cEe="dismissableLayer.focusOutside",dEe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uEe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(dEe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){fEe(sEe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){fEe(cEe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(lEe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),hEe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=lEe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),hEe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(iEe,e),()=>document.removeEventListener(iEe,e)}),[]),_(aEe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));uEe.displayName="DismissableLayer";function hEe(){const e=new CustomEvent(iEe);document.dispatchEvent(e)}function fEe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(dEe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(aEe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var pEe=0;function vEe(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mEe()),document.body.insertAdjacentElement("beforeend",e[1]??mEe()),pEe++,()=>{1===pEe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),pEe--}}),[])}function mEe(){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 yEe="focusScope.autoFocusOnMount",gEe="focusScope.autoFocusOnUnmount",bEe={bubbles:!1,cancelable:!0},kEe=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:MEe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||MEe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&MEe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){jEe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(yEe,bEe);s.addEventListener(yEe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(MEe(n,{select:t}),document.activeElement!==r)return}((e=wEe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&MEe(s))}return()=>{s.removeEventListener(yEe,d),setTimeout((()=>{const e=new CustomEvent(gEe,bEe);s.addEventListener(gEe,u),s.dispatchEvent(e),e.defaultPrevented||MEe(t??document.body,{select:!0}),s.removeEventListener(gEe,u),jEe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=wEe(e),r=_Ee(t,e),n=_Ee(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&MEe(o,{select:!0})):(e.preventDefault(),n&&MEe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(aEe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function wEe(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 _Ee(e,t){for(const r of e)if(!xEe(r,{upTo:t}))return r}function xEe(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 MEe(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()}}kEe.displayName="FocusScope";var jEe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=EEe(e,t),e.unshift(t)},remove(t){e=EEe(e,t),e[0]?.resume()}}}();function EEe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var OEe=e["useId".toString()]||(()=>{}),CEe=0;function zEe(t){const[r,n]=e.useState(OEe());return T_e((()=>{n((e=>e??String(CEe++)))}),[t]),r?`radix-${r}`:""}var PEe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(aEe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));PEe.displayName="Arrow";var REe=PEe;function AEe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var IEe="Popper",[LEe,SEe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},AEe(a,...r)]}(IEe),[VEe,HEe]=LEe(IEe),NEe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(VEe,{scope:r,anchor:a,onAnchorChange:o,children:n})};NEe.displayName=IEe;var ZEe="PopperAnchor",DEe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=HEe(ZEe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(aEe.div,{...o,ref:s})}));DEe.displayName=ZEe;var BEe="PopperContent",[qEe,TEe]=LEe(BEe),FEe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=HEe(BEe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(GEe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),YEe({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=KEe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(qEe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(aEe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));FEe.displayName=BEe;var WEe="PopperArrow",$Ee={top:"bottom",right:"left",bottom:"top",left:"right"},UEe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=TEe(WEe,r),o=$Ee[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(REe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function GEe(e){return null!==e}UEe.displayName=WEe;var YEe=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]=KEe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function KEe(e){const[t,r="center"]=e.split("-");return[t,r]}var XEe=NEe,QEe=DEe,JEe=FEe,eOe=UEe,tOe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(aEe.div,{...a,ref:r}),i):null}));tOe.displayName="Portal";var rOe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=nOe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=nOe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=nOe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=nOe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function nOe(e){return e?.animationName||"none"}rOe.displayName="Presence";var aOe=new WeakMap,oOe=new WeakMap,lOe={},iOe=0,sOe=function(e){return e&&(e.host||sOe(e.parentNode))},cOe=function(e,t,r,n){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=sOe(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]);lOe[r]||(lOe[r]=new WeakMap);var o=lOe[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=(aOe.get(e)||0)+1,c=(o.get(e)||0)+1;aOe.set(e,s),o.set(e,c),l.push(e),1===s&&a&&oOe.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(),iOe++,function(){l.forEach((function(e){var t=aOe.get(e)-1,a=o.get(e)-1;aOe.set(e,t),o.set(e,a),t||(oOe.has(e)||e.removeAttribute(n),oOe.delete(e)),a||e.removeAttribute(r)})),--iOe||(aOe=new WeakMap,aOe=new WeakMap,oOe=new WeakMap,lOe={})}},dOe=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]"))),cOe(n,a,r,"aria-hidden")):function(){return null}},uOe="right-scroll-bar-position",hOe="width-before-scroll-bar";function fOe(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var pOe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vOe=new WeakMap;function mOe(e,t){var r,n,a,o=(r=null,n=function(t){return e.forEach((function(e){return fOe(e,t)}))},(a=i((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return pOe((function(){var t=vOe.get(o);if(t){var r=new Set(t),n=new Set(e),a=o.current;r.forEach((function(e){n.has(e)||fOe(e,null)})),n.forEach((function(e){r.has(e)||fOe(e,a)}))}vOe.set(o,e)}),[e]),o}function yOe(e){return e}var gOe=function(t){var r=t.sideCar,n=zx(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return e.createElement(a,Cx({},n))};gOe.isSideCarExport=!0;var bOe=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=yOe);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=Cx({async:!0,ssr:!1},e),t}(),kOe=function(){},wOe=e.forwardRef((function(t,r){var n=e.useRef(null),a=e.useState({onScrollCapture:kOe,onWheelCapture:kOe,onTouchMoveCapture:kOe}),o=a[0],l=a[1],i=t.forwardProps,s=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,h=t.shards,f=t.sideCar,p=t.noIsolation,v=t.inert,m=t.allowPinchZoom,y=t.as,g=void 0===y?"div":y,b=t.gapMode,k=zx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,_=mOe([n,r]),x=Cx(Cx({},k),o);return e.createElement(e.Fragment,null,u&&e.createElement(w,{sideCar:bOe,removeScrollBar:d,shards:h,noIsolation:p,inert:v,setCallbacks:l,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?e.cloneElement(e.Children.only(s),Cx(Cx({},x),{ref:_})):e.createElement(g,Cx({},x,{className:c,ref:_}),s))}));wOe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wOe.classNames={fullWidth:hOe,zeroRight:uOe};function _Oe(){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 xOe=function(){var e=0,t=null;return{add:function(r){0==e&&(t=_Oe())&&(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)}}},MOe=function(){var t=function(){var t=xOe();return function(r,n){e.useEffect((function(){return t.add(r),function(){t.remove()}}),[r&&n])}}();return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},jOe={left:0,top:0,right:0,gap:0},EOe=function(e){return parseInt(e||"",10)||0},OOe=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return jOe;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[EOe(r),EOe(n),EOe(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])}},COe=MOe(),zOe="data-scroll-locked",POe=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(zOe,"] {\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(uOe," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(hOe," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(uOe," .").concat(uOe," {\n right: 0 ").concat(n,";\n }\n \n .").concat(hOe," .").concat(hOe," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(zOe,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},ROe=function(){var e=parseInt(document.body.getAttribute(zOe)||"0",10);return isFinite(e)?e:0},AOe=function(t){var r=t.noRelative,n=t.noImportant,a=t.gapMode,o=void 0===a?"margin":a;e.useEffect((function(){return document.body.setAttribute(zOe,(ROe()+1).toString()),function(){var e=ROe()-1;e<=0?document.body.removeAttribute(zOe):document.body.setAttribute(zOe,e.toString())}}),[]);var l=e.useMemo((function(){return OOe(o)}),[o]);return e.createElement(COe,{styles:POe(l,!r,o,n?"":"!important")})},IOe=!1;if("undefined"!=typeof window)try{var LOe=Object.defineProperty({},"passive",{get:function(){return IOe=!0,!0}});window.addEventListener("test",LOe,LOe),window.removeEventListener("test",LOe,LOe)}catch(e){IOe=!1}var SOe=!!IOe&&{passive:!1},VOe=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])},HOe=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),NOe(e,n)){var a=ZOe(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NOe=function(e,t){return"v"===e?function(e){return VOe(e,"overflowY")}(t):function(e){return VOe(e,"overflowX")}(t)},ZOe=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},DOe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BOe=function(e){return[e.deltaX,e.deltaY]},qOe=function(e){return e&&"current"in e?e.current:e},TOe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},FOe=0,WOe=[];function $Oe(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var UOe,GOe=(UOe=function(t){var r=e.useRef([]),n=e.useRef([0,0]),a=e.useRef(),o=e.useState(FOe++)[0],l=e.useState(MOe)[0],i=e.useRef(t);e.useEffect((function(){i.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var e=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))}([t.lockRef.current],(t.shards||[]).map(qOe),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var r,o=DOe(e),l=n.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=HOe(u,d);if(!h)return!0;if(h?r=u:(r="v"===u?"h":"v",h=HOe(u,d)),!h)return!1;if(!a.current&&"changedTouches"in e&&(s||c)&&(a.current=r),!r)return!0;var f=a.current||r;return function(e,t,r,n){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*n,l=r.target,i=t.contains(l),s=!1,c=o>0,d=0,u=0;do{var h=ZOe(e,l),f=h[0],p=h[1]-h[2]-a*f;(f||p)&&NOe(e,l)&&(d+=p,u+=f),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!i&&l!==document.body||i&&(t.contains(l)||t===l));return(c&&Math.abs(d)<1||!c&&Math.abs(u)<1)&&(s=!0),s}(f,t,e,"h"===f?s:c)}),[]),c=e.useCallback((function(e){var t=e;if(WOe.length&&WOe[WOe.length-1]===l){var n="deltaY"in t?BOe(t):DOe(t),a=r.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(a&&a.should)t.cancelable&&t.preventDefault();else if(!a){var o=(i.current.shards||[]).map(qOe).filter(Boolean).filter((function(e){return e.contains(t.target)}));(o.length>0?s(t,o[0]):!i.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),d=e.useCallback((function(e,t,n,a){var o={name:e,delta:t,target:n,should:a,shadowParent:$Oe(n)};r.current.push(o),setTimeout((function(){r.current=r.current.filter((function(e){return e!==o}))}),1)}),[]),u=e.useCallback((function(e){n.current=DOe(e),a.current=void 0}),[]),h=e.useCallback((function(e){d(e.type,BOe(e),e.target,s(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){d(e.type,DOe(e),e.target,s(e,t.lockRef.current))}),[]);e.useEffect((function(){return WOe.push(l),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,SOe),document.addEventListener("touchmove",c,SOe),document.addEventListener("touchstart",u,SOe),function(){WOe=WOe.filter((function(e){return e!==l})),document.removeEventListener("wheel",c,SOe),document.removeEventListener("touchmove",c,SOe),document.removeEventListener("touchstart",u,SOe)}}),[]);var p=t.removeScrollBar,v=t.inert;return e.createElement(e.Fragment,null,v?e.createElement(l,{styles:TOe(o)}):null,p?e.createElement(AOe,{gapMode:t.gapMode}):null)},bOe.useMedium(UOe),gOe),YOe=e.forwardRef((function(t,r){return e.createElement(wOe,Cx({},t,{ref:r,sideCar:GOe}))}));YOe.classNames=wOe.classNames;var KOe="Popover",[XOe]=H_e(KOe,[SEe]),QOe=SEe(),[JOe,eCe]=XOe(KOe),tCe=t=>{const{__scopePopover:r,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:i=!1}=t,s=QOe(r),c=e.useRef(null),[d,u]=e.useState(!1),[h=!1,f]=B_e({prop:a,defaultProp:o,onChange:l});return _(XEe,{...s,children:_(JOe,{scope:r,contentId:zEe(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>u(!1)),[]),modal:i,children:n})})};tCe.displayName=KOe;var rCe="PopoverAnchor";e.forwardRef(((t,r)=>{const{__scopePopover:n,...a}=t,o=eCe(rCe,n),l=QOe(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return e.useEffect((()=>(i(),()=>s())),[i,s]),_(QEe,{...l,...a,ref:r})})).displayName=rCe;var nCe="PopoverTrigger",aCe=e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=eCe(nCe,r),o=QOe(r),l=V_e(t,a.triggerRef),i=_(aEe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":vCe(a.open),...n,ref:l,onClick:Z_e(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?i:_(QEe,{asChild:!0,...o,children:i})}));aCe.displayName=nCe;var oCe="PopoverPortal",[lCe,iCe]=XOe(oCe,{forceMount:void 0}),sCe=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=eCe(oCe,t);return _(lCe,{scope:t,forceMount:r,children:_(rOe,{present:r||o.open,children:_(tOe,{asChild:!0,container:a,children:n})})})};sCe.displayName=oCe;var cCe="PopoverContent",dCe=e.forwardRef(((e,t)=>{const r=iCe(cCe,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=eCe(cCe,e.__scopePopover);return _(rOe,{present:n||o.open,children:o.modal?_(uCe,{...a,ref:t}):_(hCe,{...a,ref:t})})}));dCe.displayName=cCe;var uCe=e.forwardRef(((t,r)=>{const n=eCe(cCe,t.__scopePopover),a=e.useRef(null),o=V_e(r,a),l=e.useRef(!1);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(YOe,{as:U_e,allowPinchZoom:!0,children:_(fCe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()})),onPointerDownOutside:Z_e(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;l.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),hCe=e.forwardRef(((t,r)=>{const n=eCe(cCe,t.__scopePopover),a=e.useRef(!1),o=e.useRef(!1);return _(fCe,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||n.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const r=e.target,l=n.triggerRef.current?.contains(r);l&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})})),fCe=e.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...u}=e,h=eCe(cCe,r),f=QOe(r);return vEe(),_(kEe,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:_(uEe,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:_(JEe,{"data-state":vCe(h.open),role:"dialog",id:h.contentId,...f,...u,ref:t,style:{...u.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)"}})})})})),pCe="PopoverClose";e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=eCe(pCe,r);return _(aEe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=pCe;function vCe(e){return e?"open":"closed"}e.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,a=QOe(r);return _(eOe,{...a,...n,ref:t})})).displayName="PopoverArrow";var mCe=sCe,yCe=dCe;const gCe=tCe,bCe=aCe,kCe=e.forwardRef(((e,t)=>{var{className:r,align:n="center",sideOffset:a=4}=e,o=zx(e,["className","align","sideOffset"]);return _(mCe,{children:_(yCe,Object.assign({ref:t,align:n,sideOffset:a,className:Ax("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",r)},o))})}));kCe.displayName=yCe.displayName;const wCe={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 _Ce(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const xCe={date:_Ce({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_Ce({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:_Ce({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},MCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jCe(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 ECe={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:jCe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jCe({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:jCe({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:jCe({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:jCe({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 OCe(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 CCe={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:OCe({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:OCe({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:OCe({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:OCe({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:OCe({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"})},zCe={code:"en-US",formatDistance:(e,t,r)=>{let n;const a=wCe[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:xCe,formatRelative:(e,t,r,n)=>MCe[e],localize:ECe,match:CCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};let PCe={};function RCe(){return PCe}const ACe=6048e5;function ICe(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 LCe(e){const t=ICe(e);return t.setHours(0,0,0,0),t}function SCe(e){const t=ICe(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 VCe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function HCe(e){const t=ICe(e),r=function(e,t){const r=LCe(e),n=LCe(t),a=+r-SCe(r),o=+n-SCe(n);return Math.round((a-o)/864e5)}(t,function(e){const t=ICe(e),r=VCe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t));return r+1}function NCe(e,t){const r=RCe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=ICe(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 ZCe(e){return NCe(e,{weekStartsOn:1})}function DCe(e){const t=ICe(e),r=t.getFullYear(),n=VCe(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=ZCe(n),o=VCe(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=ZCe(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function BCe(e){const t=ICe(e),r=+ZCe(t)-+function(e){const t=DCe(e),r=VCe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),ZCe(r)}(t);return Math.round(r/ACe)+1}function qCe(e,t){const r=ICe(e),n=r.getFullYear(),a=RCe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=VCe(e,0);l.setFullYear(n+1,0,o),l.setHours(0,0,0,0);const i=NCe(l,t),s=VCe(e,0);s.setFullYear(n,0,o),s.setHours(0,0,0,0);const c=NCe(s,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function TCe(e,t){const r=ICe(e),n=+NCe(r,t)-+function(e,t){const r=RCe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=qCe(e,t),o=VCe(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),NCe(o,t)}(r,t);return Math.round(n/ACe)+1}function FCe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const WCe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return FCe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):FCe(r+1,2)},d:(e,t)=>FCe(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)=>FCe(e.getHours()%12||12,t.length),H:(e,t)=>FCe(e.getHours(),t.length),m:(e,t)=>FCe(e.getMinutes(),t.length),s:(e,t)=>FCe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return FCe(Math.trunc(n*Math.pow(10,r-3)),t.length)}},$Ce="midnight",UCe="noon",GCe="morning",YCe="afternoon",KCe="evening",XCe="night",QCe={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 WCe.y(e,t)},Y:function(e,t,r,n){const a=qCe(e,n),o=a>0?a:1-a;if("YY"===t){return FCe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):FCe(o,t.length)},R:function(e,t){return FCe(DCe(e),t.length)},u:function(e,t){return FCe(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 FCe(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 FCe(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 WCe.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 FCe(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=TCe(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):FCe(a,t.length)},I:function(e,t,r){const n=BCe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):FCe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):WCe.d(e,t)},D:function(e,t,r){const n=HCe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):FCe(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 FCe(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 FCe(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 FCe(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?UCe:0===n?$Ce: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?KCe:n>=12?YCe:n>=4?GCe:XCe,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 WCe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):WCe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):FCe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):FCe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):WCe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):WCe.s(e,t)},S:function(e,t){return WCe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return eze(n);case"XXXX":case"XX":return tze(n);default:return tze(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return eze(n);case"xxxx":case"xx":return tze(n);default:return tze(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+JCe(n,":");default:return"GMT"+tze(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+JCe(n,":");default:return"GMT"+tze(n,":")}},t:function(e,t,r){return FCe(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return FCe(e.getTime(),t.length)}};function JCe(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+FCe(o,2)}function eze(e,t){if(e%60==0){return(e>0?"-":"+")+FCe(Math.abs(e)/60,2)}return tze(e,t)}function tze(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+FCe(Math.trunc(n/60),2)+t+FCe(n%60,2)}const rze=(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"})}},nze=(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"})}},aze={p:nze,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return rze(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}}",rze(n,t)).replace("{{time}}",nze(a,t))}},oze=/^D+$/,lze=/^Y+$/,ize=["D","DD","YY","YYYY"];function sze(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=ICe(e);return!isNaN(Number(r))}const cze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uze=/^'([^]*?)'?$/,hze=/''/g,fze=/[a-zA-Z]/;function pze(e,t,r){const n=RCe(),a=n.locale??zCe,o=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=ICe(e);if(!sze(i))throw new RangeError("Invalid time value");let s=t.match(dze).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,aze[t])(e,a.formatLong)}return e})).join("").match(cze).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:vze(e)};if(QCe[t])return{isToken:!0,value:e};if(t.match(fze))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 lze.test(e)}(n)||function(e){return oze.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),ize.includes(e))throw new RangeError(n)}(n,t,String(e));return(0,QCe[n[0]])(i,n,a.localize,c)})).join("")}function vze(e){const t=e.match(uze);return t?t[1].replace(hze,"'"):e}const mze=e=>{var{date:t,onSelect:r,textInputProps:n,popoverContentProps:a}=e,o=zx(e,["date","onSelect","textInputProps","popoverContentProps"]);const[l,s]=i(!1);return _("div",{children:x(gCe,{modal:!0,open:l,onOpenChange:s,children:[_(bCe,{asChild:!0,children:_("div",{className:"flex",children:_(Yme,Object.assign({fullwidth:!0,id:"date-picker",readOnly:!0,label:"Date",size:"md",value:t?pze(t,"dd MMM yyyy"):l?" ":"",hasClearIcon:!1,endIcon:_(Xr,{fill:"inherit",className:"cursor-pointer"})},n,{labelClassName:Ax("pointer-events-none",null==n?void 0:n.labelClassName)}))})}),_(kCe,Object.assign({className:"w-auto p-0 z-[100]"},a,{children:_(nEe,Object.assign({defaultMonth:t},o,{mode:"single",selected:t,onSelect:(...e)=>{null==r||r(...e),s(!1)}}))}))]})})},yze=(e,t,r)=>Array.from(e).filter((e=>t.test(e))).slice(0,r),gze=r((({value:e,onChange:t,onBlur:r,onComplete:a,length:o=6,disabled:i=!1,invalid:s=!1,autoFocus:d=!1,inputMode:u="numeric",charPattern:h=/^\d$/,className:f,inputClassName:p},v)=>{const m=n([]),y=n(null),g=l((()=>{const t=e||"";return Array.from({length:o},((e,r)=>t[r]||""))}),[o,e]);c(v,(()=>m.current[0]),[]);const b=e=>{const r=e.join("");t(r),a&&e.every((e=>""!==e))&&a(r)},k=e=>{var t,r;const n=Math.max(0,Math.min(o-1,e));null===(t=m.current[n])||void 0===t||t.focus(),null===(r=m.current[n])||void 0===r||r.select()};return _("div",{className:Ax("flex items-center gap-3",f),ref:y,children:g.map(((e,t)=>_("input",{ref:e=>{m.current[t]=e},type:"text",inputMode:u,autoComplete:0===t?"one-time-code":"off",value:e,maxLength:1,disabled:i,autoFocus:d&&0===t,"aria-invalid":s||void 0,className:Ax("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 n=e.relatedTarget;n&&(null===(t=y.current)||void 0===t?void 0:t.contains(n))||null==r||r()},onChange:e=>((e,t)=>{if(i)return;if(!t){const t=[...g];return t[e]="",void b(t)}const r=yze(t,h,o);if(!r.length)return;const n=[...g];let a=e;r.forEach((e=>{a<o&&(n[a]=e,a+=1)})),b(n),k(a<o?a:o-1)})(t,e.target.value),onPaste:e=>((e,t)=>{if(t.preventDefault(),i)return;const r=t.clipboardData.getData("text"),n=yze(r,h,o-e);if(!n.length)return;const a=[...g];n.forEach(((t,r)=>{a[e+r]=t})),b(a);const l=Math.min(e+n.length,o-1);k(l)})(t,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(g[e]){t.preventDefault();const r=[...g];return r[e]="",void b(r)}if(e>0){t.preventDefault();const r=[...g];r[e-1]="",b(r),k(e-1)}}}})(t,e)},t)))})}));gze.displayName="OtpInput";const bze=t.forwardRef(((e,t)=>{var{id:r,label:n,required:a=!1,helperText:o,error:l=!1,errorMessage:i,keepFooterSpace:s=!0,wrapperClassName:c,labelClassName:d,messageClassName:u}=e,h=zx(e,["id","label","required","helperText","error","errorMessage","keepFooterSpace","wrapperClassName","labelClassName","messageClassName"]);const f=Boolean(l||i),p=f?i:o;return x("div",{className:Ax("inline-flex w-full flex-col gap-2",c),children:[n&&x("label",{htmlFor:r,className:Ax("typography-overline text-input-default-text",f&&"text-input-error",d),children:[n,a&&_("span",{className:"ml-1 text-input-error",children:"*"})]}),_(gze,Object.assign({},h,{ref:t,invalid:f})),(p||s)&&_("div",{className:Ax("typography-small2 min-h-[18px]",f?"text-input-error":"text-text-g-contrast-medium",u),role:f?"alert":void 0,children:p||" "})]})}));bze.displayName="OtpInputGroup";const kze=({progress:e=0,color:t,gradientStart:r,gradientEnd:n,animationDuration:a=.5,height:o=8,trackClassName:l,progressClassName:c})=>{const[d,u]=i(0);s((()=>{u(e)}),[e]);return _("div",{className:Ax("w-full bg-grey2-transparent-16 rounded-full overflow-hidden",l),style:{height:`${o}px`},children:_("div",{className:Ax("h-full rounded-full transition-all ease-out bg-primary",c),style:{width:`${d}%`,background:r&&n?`linear-gradient(to right, ${r}, ${n})`:t,transition:`width ${a}s ease-out`}})})},wze=e.forwardRef(((e,t)=>{var{rootClassName:r,className:n,rootRef:a,bordered:o=!1,scrollableWrapper:l=!0}=e,i=zx(e,["rootClassName","className","rootRef","bordered","scrollableWrapper"]);const s=Ax("relative h-full w-full min-h-0 overflow-auto","ui-scrollbar ui-scrollbar-x-m ui-scrollbar-y-s"),c=Ax("min-w-full caption-bottom border-separate border-spacing-0",n),d=_("table",Object.assign({ref:t,className:c},i));return o||!1!==l?_("div",o?{className:Ax("relative flex h-full w-full min-h-0 flex-col overflow-hidden rounded-md border border-table-c-border",r),ref:a,children:_("div",{className:s,children:d})}:{className:Ax(s,r),ref:a,children:d}):_("table",Object.assign({ref:t,className:Ax(c,r)},i))}));wze.displayName="Table";const _ze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("thead",Object.assign({ref:t,className:Ax("[&_tr>th]:box-border [&_tr>th]:border-b [&_tr>th]:border-b-table-c-header-line",r)},n))}));_ze.displayName="TableHeader";const xze=e.forwardRef(((e,t)=>{var{className:r,striped:n=!1}=e,a=zx(e,["className","striped"]);return _("tbody",Object.assign({ref:t,className:Ax("[&_tr:last-child>td]:border-b-0 [&_tr:last-child>th]:border-b-0","[&_tr]:bg-table-c-row-bg","[&_tr:hover]:!bg-table-c-hover","[&_tr[data-state=selected]]:!bg-table-c-selected","[&_tr[data-highlighted=true]]:!bg-table-c-selected",n&&["[&_tr:nth-child(odd)]:bg-table-c-row-bg","[&_tr:nth-child(even)]:bg-table-c-row-bg-even","[&_tr>td]:border-b-0"],r)},a))}));xze.displayName="TableBody";const Mze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("tfoot",Object.assign({ref:t,className:Ax("bg-table-c-header-bg border-t border-t-table-c-header-line font-medium [&>tr]:last:border-b-0",r)},n))}));Mze.displayName="TableFooter";const jze=e.forwardRef(((e,t)=>{var{className:r,divided:n=!0,colDivided:a=!1}=e,o=zx(e,["className","divided","colDivided"]);return _("tr",Object.assign({ref:t,className:Ax("transition-colors box-border",n&&["[&>td]:border-b [&>td]:border-b-table-c-row-line","[&>th]:border-b [&>th]:border-b-table-c-row-line"],a&&["[&>td:not(:last-child)]:border-r [&>td:not(:last-child)]:border-r-table-c-col-line","[&>th:not(:last-child)]:border-r [&>th:not(:last-child)]:border-r-table-c-col-line"],r)},o))}));jze.displayName="TableRow";const Eze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("th",Object.assign({ref:t,className:Ax("box-border py-3 px-3 text-left align-middle","typography-body2 text-text-contrast-max","bg-table-c-header-bg","leading-[20px]","[&:has([role=checkbox])]:px-3 [&:has([role=checkbox])]:min-w-10",r)},n))}));Eze.displayName="TableHead";const Oze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("td",Object.assign({ref:t,className:Ax("box-border py-3 px-3 text-left align-middle","typography-body3 text-text-contrast-max","leading-[18px]","bg-inherit","[&:has([role=checkbox])]:px-3 [&:has([role=checkbox])]:min-w-10",r)},n))}));Oze.displayName="TableCell";const Cze=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _("caption",Object.assign({ref:t,className:Ax("mt-4 pb-3 text-sm text-text-g-contrast-medium",r)},n))}));Cze.displayName="TableCaption";const zze=e.forwardRef((({pageIndex:e,pageSize:t,totalCount:r,pageSizeOptions:n=[10,20,50,100],onPageChange:a,onPageSizeChange:o,className:l},i)=>{const s=Math.max(1,Math.ceil(r/t)),c=0===r?0:e*t+1,d=Math.min((e+1)*t,r);return x("div",{ref:i,className:Ax("flex items-center justify-end gap-8 px-6 py-2","bg-table-c-header-bg","border-t border-t-table-c-header-line",l),children:[x("div",{className:"flex items-center gap-3",children:[_("span",{className:"typography-subtitle4 text-text-g-contrast-high whitespace-nowrap",children:"items per page"}),x("div",{className:"relative",children:[_("select",{value:t,onChange:e=>{o(Number(e.target.value)),a(0)},className:Ax("appearance-none w-[72px] rounded-md border border-input-default-stroke","bg-table-c-header-bg p-2 pr-7","typography-small2 text-text-g-contrast-high","cursor-pointer focus:outline-none focus:ring-1 focus:ring-input-active-stroke"),children:n.map((e=>_("option",{value:e,children:e},e)))}),_(fS,{className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 size-[14px] text-text-g-contrast-high","aria-hidden":!0})]})]}),x("span",{className:"typography-subtitle4 text-text-g-contrast-high whitespace-nowrap tabular-nums",children:[c,"–",d," of ",r," items"]}),x("div",{className:"flex items-center gap-2",children:[_(mye,{variant:"icon",size:"sm",onClick:()=>a(0),disabled:0===e,"aria-label":"First page",children:_(vS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(e-1),disabled:0===e,"aria-label":"Previous page",children:_(bS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(e+1),disabled:e>=s-1,"aria-label":"Next page",children:_(wS,{})}),_(mye,{variant:"icon",size:"sm",onClick:()=>a(s-1),disabled:e>=s-1,"aria-label":"Last page",children:_(yS,{})})]})]})}));
9248
9248
  /**
9249
9249
  * table-core
9250
9250
  *
@@ -9266,7 +9266,7 @@ function Pze(e,t){return"function"==typeof e?e(t):e}function Rze(e,t){return r=>
9266
9266
  *
9267
9267
  * @license MIT
9268
9268
  */
9269
- function PPe(t,r){return t?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)}(t)?e.createElement(t,r):t:null}function RPe(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function APe(...e){return t=>{let r=!1;const n=e.map((e=>{const n=RPe(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():RPe(e[t],null)}}}}var IPe=e.forwardRef(((t,r)=>{const{children:n,...a}=t,o=e.Children.toArray(n),l=o.find(VPe);if(l){const t=l.props.children,n=o.map((r=>r===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r));return _(LPe,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,n):null})}return _(LPe,{...a,ref:r,children:n})}));IPe.displayName="Slot";var LPe=e.forwardRef(((t,r)=>{const{children:n,...a}=t;if(e.isValidElement(n)){const t=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}(n);return e.cloneElement(n,{...HPe(a,n.props),ref:r?APe(r,t):t})}return e.Children.count(n)>1?e.Children.only(null):null}));LPe.displayName="SlotClone";var SPe=({children:e})=>_(M,{children:e});function VPe(t){return e.isValidElement(t)&&t.type===SPe}function HPe(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 NPe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?IPe:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),ZPe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(NPe.div,{...a,ref:r}),i):null}));ZPe.displayName="Portal";var DPe=ZPe;const BPe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function qPe(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function TPe(e){return"nodeType"in e}function FPe(e){var t,r;return e?qPe(e)?e:TPe(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function WPe(e){const{Document:t}=FPe(e);return e instanceof t}function $Pe(e){return!qPe(e)&&e instanceof FPe(e).HTMLElement}function UPe(e){return e instanceof FPe(e).SVGElement}function GPe(e){return e?qPe(e)?e.document:TPe(e)?WPe(e)?e:$Pe(e)||UPe(e)?e.ownerDocument:document:document:document}const YPe=BPe?d:s;function KPe(e){const t=n(e);return YPe((()=>{t.current=e})),a((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}function XPe(e,t){void 0===t&&(t=[e]);const r=n(e);return YPe((()=>{r.current!==e&&(r.current=e)}),t),r}function QPe(e,t){const r=n();return l((()=>{const t=e(r.current);return r.current=t,t}),[...t])}function JPe(e){const t=KPe(e),r=n(null),o=a((e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e}),[]);return[r,o]}function eRe(e){const t=n();return s((()=>{t.current=e}),[e]),t.current}let tRe={};function rRe(e,t){return l((()=>{if(t)return t;const r=null==tRe[e]?0:tRe[e]+1;return tRe[e]=r,e+"-"+r}),[e,t])}function nRe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>{const n=Object.entries(r);for(const[r,a]of n){const n=t[r];null!=n&&(t[r]=n+e*a)}return t}),{...t})}}const aRe=nRe(1),oRe=nRe(-1);function lRe(e){if(!e)return!1;const{KeyboardEvent:t}=FPe(e.target);return t&&e instanceof t}function iRe(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=FPe(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const sRe=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[sRe.Translate.toString(e),sRe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),cRe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dRe(e){return e.matches(cRe)?e:e.querySelector(cRe)}const uRe={display:"none"};function hRe(e){let{id:r,value:n}=e;return t.createElement("div",{id:r,style:uRe},n)}function fRe(e){let{id:r,announcement:n,ariaLiveType:a="assertive"}=e;return t.createElement("div",{id:r,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":a,"aria-atomic":!0},n)}const pRe=h(null);const vRe={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},mRe={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function yRe(e){let{announcements:r=mRe,container:n,hiddenTextDescribedById:o,screenReaderInstructions:c=vRe}=e;const{announce:d,announcement:h}=function(){const[e,t]=i("");return{announce:a((e=>{null!=e&&t(e)}),[]),announcement:e}}(),f=rRe("DndLiveRegion"),[p,v]=i(!1);if(s((()=>{v(!0)}),[]),function(e){const t=u(pRe);s((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(l((()=>({onDragStart(e){let{active:t}=e;d(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&d(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;d(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;d(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;d(r.onDragCancel({active:t,over:n}))}})),[d,r])),!p)return null;const m=t.createElement(t.Fragment,null,t.createElement(hRe,{id:o,value:c.draggable}),t.createElement(fRe,{id:f,announcement:h}));return n?z(m,n):m}var gRe;function bRe(){}function kRe(e,t){return l((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function wRe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(gRe||(gRe={}));const _Re=Object.freeze({x:0,y:0});function xRe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function MRe(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function jRe(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function ERe(e){let{left:t,top:r,height:n,width:a}=e;return[{x:t,y:r},{x:t+a,y:r},{x:t,y:r+n},{x:t+a,y:r+n}]}function ORe(e,t){if(!e||0===e.length)return null;const[r]=e;return r[t]}function CRe(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const zRe=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=CRe(t,t.left,t.top),o=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=xRe(CRe(n),a);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(MRe)};function PRe(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),l=a-n,i=o-r;if(n<a&&r<o){const r=t.width*t.height,n=e.width*e.height,a=l*i;return Number((a/(r+n-a)).toFixed(4))}return 0}const RRe=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=[];for(const e of n){const{id:n}=e,o=r.get(n);if(o){const r=PRe(o,t);r>0&&a.push({id:n,data:{droppableContainer:e,value:r}})}}return a.sort(jRe)};function ARe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:_Re}function IRe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x})),{...t})}}const LRe=IRe(1);const SRe={ignoreTransform:!1};function VRe(e,t){void 0===t&&(t=SRe);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=FPe(e).getComputedStyle(e);t&&(r=function(e,t,r){const n=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;const{scaleX:a,scaleY:o,x:l,y:i}=n,s=e.left-l-(1-a)*parseFloat(r),c=e.top-i-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),d=a?e.width/a:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(r,t,n))}const{top:n,left:a,width:o,height:l,bottom:i,right:s}=r;return{top:n,left:a,width:o,height:l,bottom:i,right:s}}function HRe(e){return VRe(e,{ignoreTransform:!0})}function NRe(e,t){const r=[];return e?function n(a){if(null!=t&&r.length>=t)return r;if(!a)return r;if(WPe(a)&&null!=a.scrollingElement&&!r.includes(a.scrollingElement))return r.push(a.scrollingElement),r;if(!$Pe(a)||UPe(a))return r;if(r.includes(a))return r;const o=FPe(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=FPe(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,o)&&r.push(a),function(e,t){return void 0===t&&(t=FPe(e).getComputedStyle(e)),"fixed"===t.position}(a,o)?r:n(a.parentNode)}(e):r}function ZRe(e){const[t]=NRe(e,1);return null!=t?t:null}function DRe(e){return BPe&&e?qPe(e)?e:TPe(e)?WPe(e)||e===GPe(e).scrollingElement?window:$Pe(e)?e:null:null:null}function BRe(e){return qPe(e)?e.scrollX:e.scrollLeft}function qRe(e){return qPe(e)?e.scrollY:e.scrollTop}function TRe(e){return{x:BRe(e),y:qRe(e)}}var FRe;function WRe(e){return!(!BPe||!e)&&e===document.scrollingElement}function $Re(e){const t={x:0,y:0},r=WRe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(FRe||(FRe={}));const URe={x:.2,y:.2};function GRe(e,t,r,n,a){let{top:o,left:l,right:i,bottom:s}=r;void 0===n&&(n=10),void 0===a&&(a=URe);const{isTop:c,isBottom:d,isLeft:u,isRight:h}=$Re(e),f={x:0,y:0},p={x:0,y:0},v=t.height*a.y,m=t.width*a.x;return!c&&o<=t.top+v?(f.y=FRe.Backward,p.y=n*Math.abs((t.top+v-o)/v)):!d&&s>=t.bottom-v&&(f.y=FRe.Forward,p.y=n*Math.abs((t.bottom-v-s)/v)),!h&&i>=t.right-m?(f.x=FRe.Forward,p.x=n*Math.abs((t.right-m-i)/m)):!u&&l<=t.left+m&&(f.x=FRe.Backward,p.x=n*Math.abs((t.left+m-l)/m)),{direction:f,speed:p}}function YRe(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function KRe(e){return e.reduce(((e,t)=>aRe(e,TRe(t))),_Re)}const XRe=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+BRe(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+qRe(t)),0)}]];class QRe{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=NRe(t),n=KRe(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of XRe)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=a(r),l=n[e]-t;return this.rect[o]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class JRe{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function eAe(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}var tAe,rAe;function nAe(e){e.preventDefault()}function aAe(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(tAe||(tAe={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(rAe||(rAe={}));const oAe={start:[rAe.Space,rAe.Enter],cancel:[rAe.Esc],end:[rAe.Space,rAe.Enter,rAe.Tab]},lAe=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case rAe.Right:return{...r,x:r.x+25};case rAe.Left:return{...r,x:r.x-25};case rAe.Down:return{...r,y:r.y+25};case rAe.Up:return{...r,y:r.y-25}}};class iAe{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new JRe(GPe(t)),this.windowListeners=new JRe(FPe(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tAe.Resize,this.handleCancel),this.windowListeners.add(tAe.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(tAe.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=VRe),!e)return;const{top:r,left:n,bottom:a,right:o}=t(e);ZRe(e)&&(a<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(_Re)}handleKeyDown(e){if(lRe(e)){const{active:t,context:r,options:n}=this.props,{keyboardCodes:a=oAe,coordinateGetter:o=lAe,scrollBehavior:l="smooth"}=n,{code:i}=e;if(a.end.includes(i))return void this.handleEnd(e);if(a.cancel.includes(i))return void this.handleCancel(e);const{collisionRect:s}=r.current,c=s?{x:s.left,y:s.top}:_Re;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const t=oRe(d,c),n={x:0,y:0},{scrollableAncestors:a}=r.current;for(const r of a){const a=e.code,{isTop:o,isRight:i,isLeft:s,isBottom:c,maxScroll:u,minScroll:h}=$Re(r),f=YRe(r),p={x:Math.min(a===rAe.Right?f.right-f.width/2:f.right,Math.max(a===rAe.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(a===rAe.Down?f.bottom-f.height/2:f.bottom,Math.max(a===rAe.Down?f.top:f.top+f.height/2,d.y))},v=a===rAe.Right&&!i||a===rAe.Left&&!s,m=a===rAe.Down&&!c||a===rAe.Up&&!o;if(v&&p.x!==d.x){const e=r.scrollLeft+t.x,o=a===rAe.Right&&e<=u.x||a===rAe.Left&&e>=h.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:l});n.x=o?r.scrollLeft-e:a===rAe.Right?r.scrollLeft-u.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:l});break}if(m&&p.y!==d.y){const e=r.scrollTop+t.y,o=a===rAe.Down&&e<=u.y||a===rAe.Up&&e>=h.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:l});n.y=o?r.scrollTop-e:a===rAe.Down?r.scrollTop-u.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:l});break}}this.handleMove(e,aRe(oRe(d,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function sAe(e){return Boolean(e&&"distance"in e)}function cAe(e){return Boolean(e&&"delay"in e)}iAe.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=oAe,onActivation:a}=t,{active:o}=r;const{code:l}=e.nativeEvent;if(n.start.includes(l)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class dAe{constructor(e,t,r){var n;void 0===r&&(r=function(e){const{EventTarget:t}=FPe(e);return e instanceof t?e:GPe(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:o}=a;this.props=e,this.events=t,this.document=GPe(o),this.documentListeners=new JRe(this.document),this.listeners=new JRe(r),this.windowListeners=new JRe(FPe(o)),this.initialCoordinates=null!=(n=iRe(a))?n:_Re,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(tAe.Resize,this.handleCancel),this.windowListeners.add(tAe.DragStart,nAe),this.windowListeners.add(tAe.VisibilityChange,this.handleCancel),this.windowListeners.add(tAe.ContextMenu,nAe),this.documentListeners.add(tAe.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(cAe(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(sAe(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(tAe.Click,aAe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tAe.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:n,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!n)return;const i=null!=(t=iRe(e))?t:_Re,s=oRe(n,i);if(!r&&l){if(sAe(l)){if(null!=l.tolerance&&eAe(s,l.tolerance))return this.handleCancel();if(eAe(s,l.distance))return this.handleStart()}return cAe(l)&&eAe(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),o(i)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===rAe.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const uAe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class hAe extends dAe{constructor(e){const{event:t}=e,r=GPe(t.target);super(e,uAe,r)}}hAe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!(!r.isPrimary||0!==r.button)&&(null==n||n({event:r}),!0)}}];const fAe={move:{name:"mousemove"},end:{name:"mouseup"}};var pAe;!function(e){e[e.RightClick=2]="RightClick"}(pAe||(pAe={}));(class extends dAe{constructor(e){super(e,fAe,GPe(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==pAe.RightClick&&(null==n||n({event:r}),!0)}}];const vAe={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var mAe,yAe;function gAe(e){let{acceleration:t,activator:r=mAe.Pointer,canScroll:o,draggingRect:i,enabled:c,interval:d=5,order:u=yAe.TreeOrder,pointerCoordinates:h,scrollableAncestors:f,scrollableAncestorRects:p,delta:v,threshold:m}=e;const y=function(e){let{delta:t,disabled:r}=e;const n=eRe(t);return QPe((e=>{if(r||!n||!e)return bAe;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[FRe.Backward]:e.x[FRe.Backward]||-1===a.x,[FRe.Forward]:e.x[FRe.Forward]||1===a.x},y:{[FRe.Backward]:e.y[FRe.Backward]||-1===a.y,[FRe.Forward]:e.y[FRe.Forward]||1===a.y}}}),[r,t,n])}({delta:v,disabled:!c}),[g,b]=function(){const e=n(null);return[a(((t,r)=>{e.current=setInterval(t,r)}),[]),a((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),k=n({x:0,y:0}),w=n({x:0,y:0}),_=l((()=>{switch(r){case mAe.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case mAe.DraggableRect:return i}}),[r,i,h]),x=n(null),M=a((()=>{const e=x.current;if(!e)return;const t=k.current.x*w.current.x,r=k.current.y*w.current.y;e.scrollBy(t,r)}),[]),j=l((()=>u===yAe.TreeOrder?[...f].reverse():f),[u,f]);s((()=>{if(c&&f.length&&_){for(const e of j){if(!1===(null==o?void 0:o(e)))continue;const r=f.indexOf(e),n=p[r];if(!n)continue;const{direction:a,speed:l}=GRe(e,n,_,t,m);for(const e of["x","y"])y[e][a[e]]||(l[e]=0,a[e]=0);if(l.x>0||l.y>0)return b(),x.current=e,g(M,d),k.current=l,void(w.current=a)}k.current={x:0,y:0},w.current={x:0,y:0},b()}else b()}),[t,M,o,b,c,d,JSON.stringify(_),JSON.stringify(y),g,f,j,p,JSON.stringify(m)])}(class extends dAe{constructor(e){super(e,vAe)}static setup(){return window.addEventListener(vAe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vAe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:a}=r;return!(a.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(mAe||(mAe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(yAe||(yAe={}));const bAe={x:{[FRe.Backward]:!1,[FRe.Forward]:!1},y:{[FRe.Backward]:!1,[FRe.Forward]:!1}};var kAe,wAe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(kAe||(kAe={})),function(e){e.Optimized="optimized"}(wAe||(wAe={}));const _Ae=new Map;function xAe(e,t){return QPe((r=>e?r||("function"==typeof t?t(e):e):null),[t,e])}function MAe(e){let{callback:t,disabled:r}=e;const n=KPe(t),a=l((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(n)}),[r]);return s((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function jAe(e){return new QRe(VRe(e),e)}function EAe(e,t,r){void 0===t&&(t=jAe);const[n,a]=i(null);function o(){a((n=>{if(!e)return null;var a;if(!1===e.isConnected)return null!=(a=null!=n?n:r)?a:null;const o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o}))}const c=function(e){let{callback:t,disabled:r}=e;const n=KPe(t),a=l((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(n)}),[n,r]);return s((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const r of t){const{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){o();break}}}}),d=MAe({callback:o});return YPe((()=>{o(),e?(null==d||d.observe(e),null==c||c.observe(document.body,{childList:!0,subtree:!0})):(null==d||d.disconnect(),null==c||c.disconnect())}),[e]),n}const OAe=[];function CAe(e,t){void 0===t&&(t=[]);const r=n(null);return s((()=>{r.current=null}),t),s((()=>{const t=e!==_Re;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?oRe(e,r.current):_Re}function zAe(e){return l((()=>e?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null),[e])}const PAe=[];function RAe(e){let{measure:t}=e;const[r,n]=i(null),o=a((e=>{for(const{target:r}of e)if($Pe(r)){n((e=>{const n=t(r);return e?{...e,width:n.width,height:n.height}:n}));break}}),[t]),s=MAe({callback:o}),c=a((e=>{const r=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return $Pe(t)?t:e}(e);null==s||s.disconnect(),r&&(null==s||s.observe(r)),n(r?t(r):null)}),[t,s]),[d,u]=JPe(c);return l((()=>({nodeRef:d,rect:r,setRef:u})),[r,d,u])}const AAe=[{sensor:hAe,options:{}},{sensor:iAe,options:{}}],IAe={current:{}},LAe={draggable:{measure:HRe},droppable:{measure:HRe,strategy:kAe.WhileDragging,frequency:wAe.Optimized},dragOverlay:{measure:VRe}};class SAe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const VAe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new SAe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:bRe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:LAe,measureDroppableContainers:bRe,windowRect:null,measuringScheduled:!1},HAe=h({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:bRe,draggableNodes:new Map,over:null,measureDroppableContainers:bRe}),NAe=h(VAe);function ZAe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new SAe}}}function DAe(e,t){switch(t.type){case gRe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case gRe.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case gRe.DragEnd:case gRe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case gRe.RegisterDroppable:{const{element:r}=t,{id:n}=r,a=new SAe(e.droppable.containers);return a.set(n,r),{...e,droppable:{...e.droppable,containers:a}}}case gRe.SetDroppableDisabled:{const{id:r,key:n,disabled:a}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const l=new SAe(e.droppable.containers);return l.set(r,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:l}}}case gRe.UnregisterDroppable:{const{id:r,key:n}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new SAe(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function BAe(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:a}=u(HAe),o=eRe(n),l=eRe(null==r?void 0:r.id);return s((()=>{if(!t&&!n&&o&&null!=l){if(!lRe(o))return;if(document.activeElement===o.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame((()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=dRe(e);if(t){t.focus();break}}}))}}),[n,t,a,l,o]),null}const qAe=h({..._Re,scaleX:1,scaleY:1});var TAe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(TAe||(TAe={}));const FAe=w((function(e){var r,o,c,d;let{id:u,accessibility:h,autoScroll:f=!0,children:p,sensors:v=AAe,collisionDetection:m=RRe,measuring:g,modifiers:b,...k}=e;const w=y(DAe,void 0,ZAe),[_,x]=w,[M,j]=function(){const[e]=i((()=>new Set)),t=a((t=>(e.add(t),()=>e.delete(t))),[e]),r=a((t=>{let{type:r,event:n}=t;e.forEach((e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)}))}),[e]);return[r,t]}(),[E,O]=i(TAe.Uninitialized),C=E===TAe.Initialized,{draggable:{active:z,nodes:P,translate:A},droppable:{containers:I}}=_,L=null!=z?P.get(z):null,S=n({initial:null,translated:null}),V=l((()=>{var e;return null!=z?{id:z,data:null!=(e=null==L?void 0:L.data)?e:IAe,rect:S}:null}),[z,L]),H=n(null),[N,Z]=i(null),[D,B]=i(null),q=XPe(k,Object.values(k)),T=rRe("DndDescribedBy",u),F=l((()=>I.getEnabled()),[I]),W=l((()=>({draggable:{...LAe.draggable,...null==$?void 0:$.draggable},droppable:{...LAe.droppable,...null==$?void 0:$.droppable},dragOverlay:{...LAe.dragOverlay,...null==$?void 0:$.dragOverlay}})),[null==($=g)?void 0:$.draggable,null==$?void 0:$.droppable,null==$?void 0:$.dragOverlay]);var $;const{droppableRects:U,measureDroppableContainers:G,measuringScheduled:Y}=function(e,t){let{dragging:r,dependencies:o,config:l}=t;const[c,d]=i(null),{frequency:u,measure:h,strategy:f}=l,p=n(e),v=function(){switch(f){case kAe.Always:return!1;case kAe.BeforeDragging:return r;default:return!r}}(),m=XPe(v),y=a((function(e){void 0===e&&(e=[]),m.current||d((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[m]),g=n(null),b=QPe((t=>{if(v&&!r)return _Ae;if(!t||t===_Ae||p.current!==e||null!=c){const t=new Map;for(let r of e){if(!r)continue;if(c&&c.length>0&&!c.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}const e=r.node.current,n=e?new QRe(h(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t}),[e,c,r,v,h]);return s((()=>{p.current=e}),[e]),s((()=>{v||y()}),[r,v]),s((()=>{c&&c.length>0&&d(null)}),[JSON.stringify(c)]),s((()=>{v||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{y(),g.current=null}),u))}),[u,v,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:null!=c}}(F,{dragging:C,dependencies:[A.x,A.y],config:W.droppable}),K=function(e,t){const r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return QPe((e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null}),[n,t])}(P,z),X=l((()=>D?iRe(D):null),[D]),Q=function(){const e=!1===(null==N?void 0:N.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,r=C&&!e&&!t;if("object"==typeof f)return{...f,enabled:r};return{enabled:r}}(),J=function(e,t){return xAe(e,t)}(K,W.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:a,config:o=!0}=e;const l=n(!1),{x:i,y:s}="boolean"==typeof o?{x:o,y:o}:o;YPe((()=>{if(!i&&!s||!t)return void(l.current=!1);if(l.current||!a)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=ARe(r(e),a);if(i||(n.x=0),s||(n.y=0),l.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=ZRe(e);t&&t.scrollBy({top:n.y,left:n.x})}}),[t,i,s,a,r])}({activeNode:null!=z?P.get(z):null,config:Q.layoutShiftCompensation,initialRect:J,measure:W.draggable.measure});const ee=EAe(K,W.draggable.measure,J),te=EAe(K?K.parentElement:null),re=n({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ne=I.getNodeFor(null==(r=re.current.over)?void 0:r.id),ae=RAe({measure:W.dragOverlay.measure}),oe=null!=(o=ae.nodeRef.current)?o:K,le=C?null!=(c=ae.rect)?c:ee:null,ie=Boolean(ae.nodeRef.current&&ae.rect),se=ARe(ce=ie?null:ee,xAe(ce));var ce;const de=zAe(oe?FPe(oe):null),ue=function(e){const t=n(e),r=QPe((r=>e?r&&r!==OAe&&e&&t.current&&e.parentNode===t.current.parentNode?r:NRe(e):OAe),[e]);return s((()=>{t.current=e}),[e]),r}(C?null!=ne?ne:K:null),he=function(e,t){void 0===t&&(t=VRe);const[r]=e,n=zAe(r?FPe(r):null),[a,o]=i(PAe);function l(){o((()=>e.length?e.map((e=>WRe(e)?n:new QRe(t(e),e))):PAe))}const s=MAe({callback:l});return YPe((()=>{null==s||s.disconnect(),l(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),a}(ue),fe=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...n})),r):r}(b,{transform:{x:A.x-se.x,y:A.y-se.y,scaleX:1,scaleY:1},activatorEvent:D,active:V,activeNodeRect:ee,containerNodeRect:te,draggingNodeRect:le,over:re.current.over,overlayNodeRect:ae.rect,scrollableAncestors:ue,scrollableAncestorRects:he,windowRect:de}),pe=X?aRe(X,A):null,ve=function(e){const[t,r]=i(null),o=n(e),c=a((e=>{const t=DRe(e.target);t&&r((e=>e?(e.set(t,TRe(t)),new Map(e)):null))}),[]);return s((()=>{const t=o.current;if(e!==t){n(t);const a=e.map((e=>{const t=DRe(e);return t?(t.addEventListener("scroll",c,{passive:!0}),[t,TRe(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=DRe(e);null==t||t.removeEventListener("scroll",c)}))}}),[c,e]),l((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>aRe(e,t)),_Re):KRe(e):_Re),[e,t])}(ue),me=CAe(ve),ye=CAe(ve,[ee]),ge=aRe(fe,me),be=le?LRe(le,fe):null,ke=V&&be?m({active:V,collisionRect:be,droppableRects:U,droppableContainers:F,pointerCoordinates:pe}):null,we=ORe(ke,"id"),[_e,xe]=i(null),Me=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(ie?fe:aRe(fe,ye),null!=(d=null==_e?void 0:_e.rect)?d:null,ee),je=n(null),Ee=a(((e,t)=>{let{sensor:r,options:n}=t;if(null==H.current)return;const a=P.get(H.current);if(!a)return;const o=e.nativeEvent,l=new r({active:H.current,activeNode:a,event:o,options:n,context:re,onAbort(e){if(!P.get(e))return;const{onDragAbort:t}=q.current,r={id:e};null==t||t(r),M({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!P.get(e))return;const{onDragPending:a}=q.current,o={id:e,constraint:t,initialCoordinates:r,offset:n};null==a||a(o),M({type:"onDragPending",event:o})},onStart(e){const t=H.current;if(null==t)return;const r=P.get(t);if(!r)return;const{onDragStart:n}=q.current,a={activatorEvent:o,active:{id:t,data:r.data,rect:S}};R((()=>{null==n||n(a),O(TAe.Initializing),x({type:gRe.DragStart,initialCoordinates:e,active:t}),M({type:"onDragStart",event:a}),Z(je.current),B(o)}))},onMove(e){x({type:gRe.DragMove,coordinates:e})},onEnd:i(gRe.DragEnd),onCancel:i(gRe.DragCancel)});function i(e){return async function(){const{active:t,collisions:r,over:n,scrollAdjustedTranslate:a}=re.current;let l=null;if(t&&a){const{cancelDrop:i}=q.current;if(l={activatorEvent:o,active:t,collisions:r,delta:a,over:n},e===gRe.DragEnd&&"function"==typeof i){await Promise.resolve(i(l))&&(e=gRe.DragCancel)}}H.current=null,R((()=>{x({type:e}),O(TAe.Uninitialized),xe(null),Z(null),B(null),je.current=null;const t=e===gRe.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=q.current[t];null==e||e(l),M({type:t,event:l})}}))}}je.current=l}),[P]),Oe=a(((e,t)=>(r,n)=>{const a=r.nativeEvent,o=P.get(n);if(null!==H.current||!o||a.dndKit||a.defaultPrevented)return;const l={active:o};!0===e(r,t.options,l)&&(a.dndKit={capturedBy:t.sensor},H.current=n,Ee(r,t))}),[P,Ee]),Ce=function(e,t){return l((()=>e.reduce(((e,r)=>{const{sensor:n}=r;return[...e,...n.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,r)})))]}),[])),[e,t])}(v,Oe);!function(e){s((()=>{if(!BPe)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(v),YPe((()=>{ee&&E===TAe.Initializing&&O(TAe.Initialized)}),[ee,E]),s((()=>{const{onDragMove:e}=q.current,{active:t,activatorEvent:r,collisions:n,over:a}=re.current;if(!t||!r)return;const o={active:t,activatorEvent:r,collisions:n,delta:{x:ge.x,y:ge.y},over:a};R((()=>{null==e||e(o),M({type:"onDragMove",event:o})}))}),[ge.x,ge.y]),s((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:a}=re.current;if(!e||null==H.current||!t||!a)return;const{onDragOver:o}=q.current,l=n.get(we),i=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,activatorEvent:t,collisions:r,delta:{x:a.x,y:a.y},over:i};R((()=>{xe(i),null==o||o(s),M({type:"onDragOver",event:s})}))}),[we]),YPe((()=>{re.current={activatorEvent:D,active:V,activeNode:K,collisionRect:be,collisions:ke,droppableRects:U,draggableNodes:P,draggingNode:oe,draggingNodeRect:le,droppableContainers:I,over:_e,scrollableAncestors:ue,scrollAdjustedTranslate:ge},S.current={initial:le,translated:be}}),[V,K,ke,be,P,oe,le,U,I,_e,ue,ge]),gAe({...Q,delta:A,draggingRect:be,pointerCoordinates:pe,scrollableAncestors:ue,scrollableAncestorRects:he});const ze=l((()=>({active:V,activeNode:K,activeNodeRect:ee,activatorEvent:D,collisions:ke,containerNodeRect:te,dragOverlay:ae,draggableNodes:P,droppableContainers:I,droppableRects:U,over:_e,measureDroppableContainers:G,scrollableAncestors:ue,scrollableAncestorRects:he,measuringConfiguration:W,measuringScheduled:Y,windowRect:de})),[V,K,ee,D,ke,te,ae,P,I,U,_e,G,ue,he,W,Y,de]),Pe=l((()=>({activatorEvent:D,activators:Ce,active:V,activeNodeRect:ee,ariaDescribedById:{draggable:T},dispatch:x,draggableNodes:P,over:_e,measureDroppableContainers:G})),[D,Ce,V,ee,x,T,P,_e,G]);return t.createElement(pRe.Provider,{value:j},t.createElement(HAe.Provider,{value:Pe},t.createElement(NAe.Provider,{value:ze},t.createElement(qAe.Provider,{value:Me},p)),t.createElement(BAe,{disabled:!1===(null==h?void 0:h.restoreFocus)})),t.createElement(yRe,{...h,hiddenTextDescribedById:T}))})),WAe=h(null),$Ae="button";function UAe(e){let{id:t,data:r,disabled:n=!1,attributes:a}=e;const o=rRe("Draggable"),{activators:i,activatorEvent:s,active:c,activeNodeRect:d,ariaDescribedById:h,draggableNodes:f,over:p}=u(HAe),{role:v=$Ae,roleDescription:m="draggable",tabIndex:y=0}=null!=a?a:{},g=(null==c?void 0:c.id)===t,b=u(g?qAe:WAe),[k,w]=JPe(),[_,x]=JPe(),M=function(e,t){return l((()=>e.reduce(((e,r)=>{let{eventName:n,handler:a}=r;return e[n]=e=>{a(e,t)},e}),{})),[e,t])}(i,t),j=XPe(r);YPe((()=>(f.set(t,{id:t,key:o,node:k,activatorNode:_,data:j}),()=>{const e=f.get(t);e&&e.key===o&&f.delete(t)})),[f,t]);return{active:c,activatorEvent:s,activeNodeRect:d,attributes:l((()=>({role:v,tabIndex:y,"aria-disabled":n,"aria-pressed":!(!g||v!==$Ae)||void 0,"aria-roledescription":m,"aria-describedby":h.draggable})),[n,v,y,g,m,h.draggable]),isDragging:g,listeners:n?void 0:M,node:k,over:p,setNodeRef:w,setActivatorNodeRef:x,transform:b}}const GAe={timeout:25};const YAe=e=>{let{containerNodeRect:t,draggingNodeRect:r,transform:n}=e;return r&&t?function(e,t,r){const n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}(n,r,t):n},KAe=e=>{let{transform:t}=e;return{...t,x:0}};function XAe(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function QAe(e,t){return e.reduce(((e,r,n)=>{const a=t.get(r);return a&&(e[n]=a),e}),Array(e.length))}function JAe(e){return null!==e&&e>=0}const eIe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:a}=e;const o=XAe(t,n,r),l=t[a],i=o[a];return i&&l?{x:i.left-l.left,y:i.top-l.top,scaleX:i.width/l.width,scaleY:i.height/l.height}:null},tIe={scaleX:1,scaleY:1},rIe=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:a,rects:o,overIndex:l}=e;const i=null!=(t=o[r])?t:n;if(!i)return null;if(a===r){const e=o[l];return e?{x:0,y:r<l?e.top+e.height-(i.top+i.height):e.top-i.top,...tIe}:null}const s=function(e,t,r){const n=e[t],a=e[t-1],o=e[t+1];if(!n)return 0;if(r<t)return a?n.top-(a.top+a.height):o?o.top-(n.top+n.height):0;return o?o.top-(n.top+n.height):a?n.top-(a.top+a.height):0}(o,a,r);return a>r&&a<=l?{x:0,y:-i.height-s,...tIe}:a<r&&a>=l?{x:0,y:i.height+s,...tIe}:{x:0,y:0,...tIe}};const nIe="Sortable",aIe=t.createContext({activeIndex:-1,containerId:nIe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:eIe,disabled:{draggable:!1,droppable:!1}});function oIe(e){let{children:r,id:a,items:o,strategy:i=eIe,disabled:c=!1}=e;const{active:d,dragOverlay:h,droppableRects:f,over:p,measureDroppableContainers:v}=u(NAe),m=rRe(nIe,a),y=Boolean(null!==h.rect),g=l((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),b=null!=d,k=d?g.indexOf(d.id):-1,w=p?g.indexOf(p.id):-1,_=n(g),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(g,_.current),M=-1!==w&&-1===k||x,j=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(c);YPe((()=>{x&&b&&v(g)}),[x,g,b,v]),s((()=>{_.current=g}),[g]);const E=l((()=>({activeIndex:k,containerId:m,disabled:j,disableTransforms:M,items:g,overIndex:w,useDragOverlay:y,sortedRects:QAe(g,f),strategy:i})),[k,m,j.draggable,j.droppable,M,g,w,f,y,i]);return t.createElement(aIe.Provider,{value:E},r)}const lIe=e=>{let{id:t,items:r,activeIndex:n,overIndex:a}=e;return XAe(r,n,a).indexOf(t)},iIe=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:a,items:o,newIndex:l,previousItems:i,previousContainerId:s,transition:c}=e;return!(!c||!n)&&((i===o||a!==l)&&(!!r||l!==a&&t===s))},sIe={duration:200,easing:"ease"},cIe="transform",dIe=sRe.Transition.toString({property:cIe,duration:0,easing:"linear"}),uIe={roleDescription:"sortable"};function hIe(e){let{animateLayoutChanges:t=iIe,attributes:r,disabled:o,data:c,getNewIndex:d=lIe,id:h,strategy:f,resizeObserverConfig:p,transition:v=sIe}=e;const{items:m,containerId:y,activeIndex:g,disabled:b,disableTransforms:k,sortedRects:w,overIndex:_,useDragOverlay:x,strategy:M}=u(aIe),j=function(e,t){var r,n;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(o,b),E=m.indexOf(h),O=l((()=>({sortable:{containerId:y,index:E,items:m},...c})),[y,c,E,m]),C=l((()=>m.slice(m.indexOf(h))),[m,h]),{rect:z,node:P,isOver:R,setNodeRef:A}=function(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:l}=e;const i=rRe("Droppable"),{active:c,dispatch:d,over:h,measureDroppableContainers:f}=u(HAe),p=n({disabled:r}),v=n(!1),m=n(null),y=n(null),{disabled:g,updateMeasurementsFor:b,timeout:k}={...GAe,...l},w=XPe(null!=b?b:o),_=MAe({callback:a((()=>{v.current?(null!=y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{f(Array.isArray(w.current)?w.current:[w.current]),y.current=null}),k)):v.current=!0}),[k]),disabled:g||!c}),x=a(((e,t)=>{_&&(t&&(_.unobserve(t),v.current=!1),e&&_.observe(e))}),[_]),[M,j]=JPe(x),E=XPe(t);return s((()=>{_&&M.current&&(_.disconnect(),v.current=!1,_.observe(M.current))}),[M,_]),s((()=>(d({type:gRe.RegisterDroppable,element:{id:o,key:i,disabled:r,node:M,rect:m,data:E}}),()=>d({type:gRe.UnregisterDroppable,key:i,id:o}))),[o]),s((()=>{r!==p.current.disabled&&(d({type:gRe.SetDroppableDisabled,id:o,key:i,disabled:r}),p.current.disabled=r)}),[o,i,r,d]),{active:c,rect:m,isOver:(null==h?void 0:h.id)===o,node:M,over:h,setNodeRef:j}}({id:h,data:O,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...p}}),{active:I,activatorEvent:L,activeNodeRect:S,attributes:V,setNodeRef:H,listeners:N,isDragging:Z,over:D,setActivatorNodeRef:B,transform:q}=UAe({id:h,data:O,attributes:{...uIe,...r},disabled:j.draggable}),T=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l((()=>e=>{t.forEach((t=>t(e)))}),t)}(A,H),F=Boolean(I),W=F&&!k&&JAe(g)&&JAe(_),$=!x&&Z,U=$&&W?q:null,G=W?null!=U?U:(null!=f?f:M)({rects:w,activeNodeRect:S,activeIndex:g,overIndex:_,index:E}):null,Y=JAe(g)&&JAe(_)?d({id:h,items:m,activeIndex:g,overIndex:_}):E,K=null==I?void 0:I.id,X=n({activeId:K,items:m,newIndex:Y,containerId:y}),Q=m!==X.current.items,J=t({active:I,containerId:y,isDragging:Z,isSorting:F,id:h,index:E,items:m,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:v,wasDragging:null!=X.current.activeId}),ee=function(e){let{disabled:t,index:r,node:a,rect:o}=e;const[l,c]=i(null),d=n(r);return YPe((()=>{if(!t&&r!==d.current&&a.current){const e=o.current;if(e){const t=VRe(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&c(r)}}r!==d.current&&(d.current=r)}),[t,r,a,o]),s((()=>{l&&c(null)}),[l]),l}({disabled:!J,index:E,node:P,rect:z});return s((()=>{F&&X.current.newIndex!==Y&&(X.current.newIndex=Y),y!==X.current.containerId&&(X.current.containerId=y),m!==X.current.items&&(X.current.items=m)}),[F,Y,y,m]),s((()=>{if(K===X.current.activeId)return;if(null!=K&&null==X.current.activeId)return void(X.current.activeId=K);const e=setTimeout((()=>{X.current.activeId=K}),50);return()=>clearTimeout(e)}),[K]),{active:I,activeIndex:g,attributes:V,data:O,rect:z,index:E,newIndex:Y,items:m,isOver:R,isSorting:F,isDragging:Z,listeners:N,node:P,overIndex:_,over:D,setNodeRef:T,setActivatorNodeRef:B,setDroppableNodeRef:A,setDraggableNodeRef:H,transform:null!=ee?ee:G,transition:function(){if(ee||Q&&X.current.newIndex===E)return dIe;if($&&!lRe(L)||!v)return;if(F||J)return sRe.Transition.toString({...v,property:cIe});return}()}}function fIe(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const pIe=[rAe.Down,rAe.Right,rAe.Up,rAe.Left],vIe=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:a,droppableContainers:o,over:l,scrollableAncestors:i}}=t;if(pIe.includes(e.code)){if(e.preventDefault(),!r||!n)return;const t=[];o.getEnabled().forEach((r=>{if(!r||null!=r&&r.disabled)return;const o=a.get(r.id);if(o)switch(e.code){case rAe.Down:n.top<o.top&&t.push(r);break;case rAe.Up:n.top>o.top&&t.push(r);break;case rAe.Left:n.left>o.left&&t.push(r);break;case rAe.Right:n.left<o.left&&t.push(r)}}));const s=(e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=ERe(t),o=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=ERe(n),l=a.reduce(((e,t,n)=>e+xRe(r[n],t)),0),i=Number((l/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:i}})}}return o.sort(MRe)})({collisionRect:n,droppableRects:a,droppableContainers:t});let c=ORe(s,"id");if(c===(null==l?void 0:l.id)&&s.length>1&&(c=s[1].id),null!=c){const e=o.get(r.id),t=o.get(c),l=t?a.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&l&&e&&t){const r=NRe(s).some(((e,t)=>i[t]!==e)),a=mIe(e,t),o=function(e,t){if(!fIe(e)||!fIe(t))return!1;if(!mIe(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=r||!a?{x:0,y:0}:{x:o?n.width-l.width:0,y:o?n.height-l.height:0},d={x:l.left,y:l.top};return c.x&&c.y?d:oRe(d,c)}}}};function mIe(e,t){return!(!fIe(e)||!fIe(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var yIe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function gIe(e,t){e&&O.flushSync((()=>e.dispatchEvent(t)))}function bIe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}function kIe(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},bIe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}var wIe=e.createContext(void 0);function _Ie(t){const r=e.useContext(wIe);return t||r||"ltr"}var xIe,MIe="dismissableLayer.update",jIe="dismissableLayer.pointerDownOutside",EIe="dismissableLayer.focusOutside",OIe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CIe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(OIe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){PIe(jIe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){PIe(EIe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(xIe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),zIe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=xIe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),zIe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(MIe,e),()=>document.removeEventListener(MIe,e)}),[]),_(yIe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));CIe.displayName="DismissableLayer";function zIe(){const e=new CustomEvent(MIe);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?gIe(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(OIe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(yIe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var RIe="focusScope.autoFocusOnMount",AIe="focusScope.autoFocusOnUnmount",IIe={bubbles:!1,cancelable:!0},LIe=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:NIe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||NIe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&NIe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){ZIe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(RIe,IIe);s.addEventListener(RIe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(NIe(n,{select:t}),document.activeElement!==r)return}((e=SIe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&NIe(s))}return()=>{s.removeEventListener(RIe,d),setTimeout((()=>{const e=new CustomEvent(AIe,IIe);s.addEventListener(AIe,u),s.dispatchEvent(e),e.defaultPrevented||NIe(t??document.body,{select:!0}),s.removeEventListener(AIe,u),ZIe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=SIe(e),r=VIe(t,e),n=VIe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&NIe(o,{select:!0})):(e.preventDefault(),n&&NIe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(yIe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function SIe(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 VIe(e,t){for(const r of e)if(!HIe(r,{upTo:t}))return r}function HIe(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 NIe(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()}}LIe.displayName="FocusScope";var ZIe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=DIe(e,t),e.unshift(t)},remove(t){e=DIe(e,t),e[0]?.resume()}}}();function DIe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var BIe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(yIe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));BIe.displayName="Arrow";var qIe=BIe;function TIe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var FIe="Popper",[WIe,$Ie]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},TIe(a,...r)]}(FIe),[UIe,GIe]=WIe(FIe),YIe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(UIe,{scope:r,anchor:a,onAnchorChange:o,children:n})};YIe.displayName=FIe;var KIe="PopperAnchor",XIe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=GIe(KIe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(yIe.div,{...o,ref:s})}));XIe.displayName=KIe;var QIe="PopperContent",[JIe,eLe]=WIe(QIe),tLe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=GIe(QIe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(oLe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),lLe({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=iLe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(JIe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(yIe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));tLe.displayName=QIe;var rLe="PopperArrow",nLe={top:"bottom",right:"left",bottom:"top",left:"right"},aLe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=eLe(rLe,r),o=nLe[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(qIe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function oLe(e){return null!==e}aLe.displayName=rLe;var lLe=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]=iLe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function iLe(e){const[t,r="center"]=e.split("-");return[t,r]}var sLe=YIe,cLe=XIe,dLe=tLe,uLe=aLe,hLe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(yIe.div,{...a,ref:r}),i):null}));hLe.displayName="Portal";var fLe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=pLe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=pLe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=pLe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=pLe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function pLe(e){return e?.animationName||"none"}function vLe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}fLe.displayName="Presence";var mLe="rovingFocusGroup.onEntryFocus",yLe={bubbles:!1,cancelable:!0},gLe="RovingFocusGroup",[bLe,kLe,wLe]=kIe(gLe),[_Le,xLe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},vLe(a,...r)]}(gLe,[wLe]),[MLe,jLe]=_Le(gLe),ELe=e.forwardRef(((e,t)=>_(bLe.Provider,{scope:e.__scopeRovingFocusGroup,children:_(bLe.Slot,{scope:e.__scopeRovingFocusGroup,children:_(OLe,{...e,ref:t})})})));ELe.displayName=gLe;var OLe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=t,f=e.useRef(null),p=V_e(r,f),v=_Ie(l),[m=null,y]=B_e({prop:i,defaultProp:s,onChange:c}),[g,b]=e.useState(!1),k=D_e(d),w=kLe(n),x=e.useRef(!1),[M,j]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(mLe,k),()=>e.removeEventListener(mLe,k)}),[k]),_(MLe,{scope:n,orientation:a,dir:v,loop:o,currentTabStopId:m,onItemFocus:e.useCallback((e=>y(e)),[y]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>j((e=>e-1))),[]),children:_(yIe.div,{tabIndex:g||0===M?-1:0,"data-orientation":a,...h,ref:p,style:{outline:"none",...t.style},onMouseDown:Z_e(t.onMouseDown,(()=>{x.current=!0})),onFocus:Z_e(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(mLe,yLe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));RLe([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}x.current=!1})),onBlur:Z_e(t.onBlur,(()=>b(!1)))})})})),CLe="RovingFocusGroupItem",zLe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,...i}=t,s=zEe(),c=l||s,d=jLe(CLe,n),u=d.currentTabStopId===c,h=kLe(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=d;return e.useEffect((()=>{if(a)return f(),()=>p()}),[a,f,p]),_(bLe.ItemSlot,{scope:n,id:c,focusable:a,active:o,children:_(yIe.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...i,ref:r,onMouseDown:Z_e(t.onMouseDown,(e=>{a?d.onItemFocus(c):e.preventDefault()})),onFocus:Z_e(t.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Z_e(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.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:PLe[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=d.loop?function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(r,n+1):r.slice(n+1)}setTimeout((()=>RLe(r)))}}))})})}));zLe.displayName=CLe;var PLe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function RLe(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 ALe=ELe,ILe=zLe,LLe=["Enter"," "],SLe=["ArrowUp","PageDown","End"],VLe=["ArrowDown","PageUp","Home",...SLe],HLe={ltr:[...LLe,"ArrowRight"],rtl:[...LLe,"ArrowLeft"]},NLe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ZLe="Menu",[DLe,BLe,qLe]=kIe(ZLe),[TLe,FLe]=H_e(ZLe,[qLe,$Ie,xLe]),WLe=$Ie(),$Le=xLe(),[ULe,GLe]=TLe(ZLe),[YLe,KLe]=TLe(ZLe),XLe=t=>{const{__scopeMenu:r,open:n=!1,children:a,dir:o,onOpenChange:l,modal:i=!0}=t,s=WLe(r),[c,d]=e.useState(null),u=e.useRef(!1),h=D_e(l),f=_Ie(o);return e.useEffect((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.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})}}),[]),_(sLe,{...s,children:_(ULe,{scope:r,open:n,onOpenChange:h,content:c,onContentChange:d,children:_(YLe,{scope:r,onClose:e.useCallback((()=>h(!1)),[h]),isUsingKeyboardRef:u,dir:f,modal:i,children:a})})})};XLe.displayName=ZLe;var QLe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,a=WLe(r);return _(cLe,{...a,...n,ref:t})}));QLe.displayName="MenuAnchor";var JLe="MenuPortal",[eSe,tSe]=TLe(JLe,{forceMount:void 0}),rSe=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=GLe(JLe,t);return _(eSe,{scope:t,forceMount:r,children:_(fLe,{present:r||o.open,children:_(hLe,{asChild:!0,container:a,children:n})})})};rSe.displayName=JLe;var nSe="MenuContent",[aSe,oSe]=TLe(nSe),lSe=e.forwardRef(((e,t)=>{const r=tSe(nSe,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=GLe(nSe,e.__scopeMenu),l=KLe(nSe,e.__scopeMenu);return _(DLe.Provider,{scope:e.__scopeMenu,children:_(fLe,{present:n||o.open,children:_(DLe.Slot,{scope:e.__scopeMenu,children:l.modal?_(iSe,{...a,ref:t}):_(sSe,{...a,ref:t})})})})})),iSe=e.forwardRef(((t,r)=>{const n=GLe(nSe,t.__scopeMenu),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(cSe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),sSe=e.forwardRef(((e,t)=>{const r=GLe(nSe,e.__scopeMenu);return _(cSe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),cSe=e.forwardRef(((t,r)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:p,disableOutsideScroll:v,...m}=t,y=GLe(nSe,n),g=KLe(nSe,n),b=WLe(n),k=$Le(n),w=BLe(n),[x,M]=e.useState(null),j=e.useRef(null),E=V_e(r,j,y.onContentChange),O=e.useRef(0),C=e.useRef(""),z=e.useRef(0),P=e.useRef(null),R=e.useRef("right"),A=e.useRef(0),I=v?YOe:e.Fragment,L=v?{as:U_e,allowPinchZoom:!0}:void 0,S=e=>{const t=C.current+e,r=w().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=function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(e,Math.max(o,0));1===a.length&&(l=l.filter((e=>e!==r)));const i=l.find((e=>e.toLowerCase().startsWith(a.toLowerCase())));return i!==r?i:void 0}(r.map((e=>e.textValue)),t,a),l=r.find((e=>e.textValue===o))?.ref.current;!function e(t){C.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout((()=>e("")),1e3))}(t),l&&setTimeout((()=>l.focus()))};e.useEffect((()=>()=>window.clearTimeout(O.current)),[]),vEe();const V=e.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 _(aSe,{scope:n,searchRef:C,onItemEnter:e.useCallback((e=>{V(e)&&e.preventDefault()}),[V]),onItemLeave:e.useCallback((e=>{V(e)||(j.current?.focus(),M(null))}),[V]),onTriggerLeave:e.useCallback((e=>{V(e)&&e.preventDefault()}),[V]),pointerGraceTimerRef:z,onPointerGraceIntentChange:e.useCallback((e=>{P.current=e}),[]),children:_(I,{...L,children:_(LIe,{asChild:!0,trapped:o,onMountAutoFocus:Z_e(l,(e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:i,children:_(CIe,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:p,children:_(ALe,{asChild:!0,...k,dir:g.dir,orientation:"vertical",loop:a,currentTabStopId:x,onCurrentTabStopIdChange:M,onEntryFocus:Z_e(c,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:_(dLe,{role:"menu","aria-orientation":"vertical","data-state":HSe(y.open),"data-radix-menu-content":"",dir:g.dir,...b,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:Z_e(m.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&&S(e.key));const a=j.current;if(e.target!==a)return;if(!VLe.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));SLe.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:Z_e(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),C.current="")})),onPointerMove:Z_e(t.onPointerMove,DSe((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}})))})})})})})})}));lSe.displayName=nSe;var dSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{role:"group",...n,ref:t})}));dSe.displayName="MenuGroup";var uSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{...n,ref:t})}));uSe.displayName="MenuLabel";var hSe="MenuItem",fSe="menu.itemSelect",pSe=e.forwardRef(((t,r)=>{const{disabled:n=!1,onSelect:a,...o}=t,l=e.useRef(null),i=KLe(hSe,t.__scopeMenu),s=oSe(hSe,t.__scopeMenu),c=V_e(r,l),d=e.useRef(!1);return _(vSe,{...o,ref:c,disabled:n,onClick:Z_e(t.onClick,(()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(fSe,{bubbles:!0,cancelable:!0});e.addEventListener(fSe,(e=>a?.(e)),{once:!0}),gIe(e,t),t.defaultPrevented?d.current=!1:i.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:Z_e(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:Z_e(t.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||LLe.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));pSe.displayName=hSe;var vSe=e.forwardRef(((t,r)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...l}=t,i=oSe(hSe,n),s=$Le(n),c=e.useRef(null),d=V_e(r,c),[u,h]=e.useState(!1),[f,p]=e.useState("");return e.useEffect((()=>{const e=c.current;e&&p((e.textContent??"").trim())}),[l.children]),_(DLe.ItemSlot,{scope:n,disabled:a,textValue:o??f,children:_(ILe,{asChild:!0,...s,focusable:!a,children:_(yIe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...l,ref:d,onPointerMove:Z_e(t.onPointerMove,DSe((e=>{if(a)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Z_e(t.onPointerLeave,DSe((e=>i.onItemLeave(e)))),onFocus:Z_e(t.onFocus,(()=>h(!0))),onBlur:Z_e(t.onBlur,(()=>h(!1)))})})})})),mSe=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return _(MSe,{scope:e.__scopeMenu,checked:r,children:_(pSe,{role:"menuitemcheckbox","aria-checked":NSe(r)?"mixed":r,...a,ref:t,"data-state":ZSe(r),onSelect:Z_e(a.onSelect,(()=>n?.(!!NSe(r)||!r)),{checkForDefaultPrevented:!1})})})}));mSe.displayName="MenuCheckboxItem";var ySe="MenuRadioGroup",[gSe,bSe]=TLe(ySe,{value:void 0,onValueChange:()=>{}}),kSe=e.forwardRef(((e,t)=>{const{value:r,onValueChange:n,...a}=e,o=D_e(n);return _(gSe,{scope:e.__scopeMenu,value:r,onValueChange:o,children:_(dSe,{...a,ref:t})})}));kSe.displayName=ySe;var wSe="MenuRadioItem",_Se=e.forwardRef(((e,t)=>{const{value:r,...n}=e,a=bSe(wSe,e.__scopeMenu),o=r===a.value;return _(MSe,{scope:e.__scopeMenu,checked:o,children:_(pSe,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":ZSe(o),onSelect:Z_e(n.onSelect,(()=>a.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));_Se.displayName=wSe;var xSe="MenuItemIndicator",[MSe,jSe]=TLe(xSe,{checked:!1}),ESe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=jSe(xSe,r);return _(fLe,{present:n||NSe(o.checked)||!0===o.checked,children:_(yIe.span,{...a,ref:t,"data-state":ZSe(o.checked)})})}));ESe.displayName=xSe;var OSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})}));OSe.displayName="MenuSeparator";var CSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,a=WLe(r);return _(uLe,{...a,...n,ref:t})}));CSe.displayName="MenuArrow";var zSe="MenuSub",[PSe,RSe]=TLe(zSe),ASe=t=>{const{__scopeMenu:r,children:n,open:a=!1,onOpenChange:o}=t,l=GLe(zSe,r),i=WLe(r),[s,c]=e.useState(null),[d,u]=e.useState(null),h=D_e(o);return e.useEffect((()=>(!1===l.open&&h(!1),()=>h(!1))),[l.open,h]),_(sLe,{...i,children:_(ULe,{scope:r,open:a,onOpenChange:h,content:d,onContentChange:u,children:_(PSe,{scope:r,contentId:zEe(),triggerId:zEe(),trigger:s,onTriggerChange:c,children:n})})})};ASe.displayName=zSe;var ISe="MenuSubTrigger",LSe=e.forwardRef(((t,r)=>{const n=GLe(ISe,t.__scopeMenu),a=KLe(ISe,t.__scopeMenu),o=RSe(ISe,t.__scopeMenu),l=oSe(ISe,t.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=l,d={__scopeMenu:t.__scopeMenu},u=e.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return e.useEffect((()=>u),[u]),e.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),_(QLe,{asChild:!0,...d,children:_(vSe,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":HSe(n.open),...t,ref:S_e(r,o.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z_e(t.onPointerMove,DSe((e=>{l.onItemEnter(e),e.defaultPrevented||t.disabled||n.open||i.current||(l.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Z_e(t.onPointerLeave,DSe((e=>{u();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,a="right"===r,o=a?-5:5,i=t[a?"left":"right"],c=t[a?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:i,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:Z_e(t.onKeyDown,(e=>{const r=""!==l.searchRef.current;t.disabled||r&&" "===e.key||HLe[a.dir].includes(e.key)&&(n.onOpenChange(!0),n.content?.focus(),e.preventDefault())}))})})}));LSe.displayName=ISe;var SSe="MenuSubContent",VSe=e.forwardRef(((t,r)=>{const n=tSe(nSe,t.__scopeMenu),{forceMount:a=n.forceMount,...o}=t,l=GLe(nSe,t.__scopeMenu),i=KLe(nSe,t.__scopeMenu),s=RSe(SSe,t.__scopeMenu),c=e.useRef(null),d=V_e(r,c);return _(DLe.Provider,{scope:t.__scopeMenu,children:_(fLe,{present:a||l.open,children:_(DLe.Slot,{scope:t.__scopeMenu,children:_(cSe,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:d,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Z_e(t.onFocusOutside,(e=>{e.target!==s.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:Z_e(t.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:Z_e(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=NLe[i.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())}))})})})})}));function HSe(e){return e?"open":"closed"}function NSe(e){return"indeterminate"===e}function ZSe(e){return NSe(e)?"indeterminate":e?"checked":"unchecked"}function DSe(e){return t=>"mouse"===t.pointerType?e(t):void 0}VSe.displayName=SSe;var BSe=XLe,qSe=QLe,TSe=rSe,FSe=lSe,WSe=dSe,$Se=uSe,USe=pSe,GSe=mSe,YSe=kSe,KSe=_Se,XSe=ESe,QSe=OSe,JSe=CSe,eVe=ASe,tVe=LSe,rVe=VSe,nVe="DropdownMenu",[aVe]=H_e(nVe,[FLe]),oVe=FLe(),[lVe,iVe]=aVe(nVe),sVe=t=>{const{__scopeDropdownMenu:r,children:n,dir:a,open:o,defaultOpen:l,onOpenChange:i,modal:s=!0}=t,c=oVe(r),d=e.useRef(null),[u=!1,h]=B_e({prop:o,defaultProp:l,onChange:i});return _(lVe,{scope:r,triggerId:zEe(),triggerRef:d,contentId:zEe(),open:u,onOpenChange:h,onOpenToggle:e.useCallback((()=>h((e=>!e))),[h]),modal:s,children:_(BSe,{...c,open:u,onOpenChange:h,dir:a,modal:s,children:n})})};sVe.displayName=nVe;var cVe="DropdownMenuTrigger",dVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=iVe(cVe,r),l=oVe(r);return _(qSe,{asChild:!0,...l,children:_(yIe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:S_e(t,o.triggerRef),onPointerDown:Z_e(e.onPointerDown,(e=>{n||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())})),onKeyDown:Z_e(e.onKeyDown,(e=>{n||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));dVe.displayName=cVe;var uVe=e=>{const{__scopeDropdownMenu:t,...r}=e,n=oVe(t);return _(TSe,{...n,...r})};uVe.displayName="DropdownMenuPortal";var hVe="DropdownMenuContent",fVe=e.forwardRef(((t,r)=>{const{__scopeDropdownMenu:n,...a}=t,o=iVe(hVe,n),l=oVe(n),i=e.useRef(!1);return _(FSe,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...a,ref:r,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:Z_e(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.modal&&!n||(i.current=!0)})),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));fVe.displayName=hVe;var pVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(WSe,{...a,...n,ref:t})}));pVe.displayName="DropdownMenuGroup";var vVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _($Se,{...a,...n,ref:t})}));vVe.displayName="DropdownMenuLabel";var mVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(USe,{...a,...n,ref:t})}));mVe.displayName="DropdownMenuItem";var yVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(GSe,{...a,...n,ref:t})}));yVe.displayName="DropdownMenuCheckboxItem";var gVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(YSe,{...a,...n,ref:t})}));gVe.displayName="DropdownMenuRadioGroup";var bVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(KSe,{...a,...n,ref:t})}));bVe.displayName="DropdownMenuRadioItem";var kVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(XSe,{...a,...n,ref:t})}));kVe.displayName="DropdownMenuItemIndicator";var wVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(QSe,{...a,...n,ref:t})}));wVe.displayName="DropdownMenuSeparator";e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(JSe,{...a,...n,ref:t})})).displayName="DropdownMenuArrow";var _Ve=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(tVe,{...a,...n,ref:t})}));_Ve.displayName="DropdownMenuSubTrigger";var xVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(rVe,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));xVe.displayName="DropdownMenuSubContent";var MVe=uVe,jVe=fVe,EVe=vVe,OVe=mVe,CVe=yVe,zVe=bVe,PVe=kVe,RVe=wVe,AVe=_Ve,IVe=xVe;const LVe=sVe,SVe=dVe,VVe=pVe,HVe=MVe,NVe=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,l=oVe(t),[i=!1,s]=B_e({prop:n,defaultProp:o,onChange:a});return _(eVe,{...l,open:i,onOpenChange:s,children:r})},ZVe=gVe,DVe=e.forwardRef(((e,t)=>{var{className:r,inset:n,children:a}=e,o=zx(e,["className","inset","children"]);return x(AVe,Object.assign({ref:t,className:Ax("relative flex gap-4 cursor-pointer select-none box-border items-center py-4 pl-4 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)]",n&&"pl-8",r)},o,{children:[a,_(nye,{type:"heroicons",name:"chevron-right",className:"ml-auto h-4 w-4"})]}))}));DVe.displayName=AVe.displayName;const BVe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(IVe,Object.assign({ref:t,className:Ax("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",r)},n,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},n.style)}))}));BVe.displayName=IVe.displayName;const qVe=e.forwardRef(((e,t)=>{var{className:r,sideOffset:n=4}=e,a=zx(e,["className","sideOffset"]);return _(MVe,{children:_(jVe,Object.assign({ref:t,sideOffset:n,className:Ax("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",r)},a,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},a.style)}))})}));qVe.displayName=jVe.displayName;const TVe=e.forwardRef(((e,t)=>{var{className:r,inset:n,selected:a,icon:o,children:l}=e,i=zx(e,["className","inset","selected","icon","children"]);const s=!!o;return x(OVe,Object.assign({ref:t,className:Ax("relative flex cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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)]",a&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n&&"pl-8",r,s?"gap-4":"gap-1")},i,{children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4 flex items-center justify-center",children:a&&_(nye,{type:"heroicons",name:"check",className:"size-4 text-[var(--dropdown-menu-selected-text)]"})}),o]}),l]}))}));TVe.displayName=OVe.displayName;const FVe=e.forwardRef(((e,t)=>{var{className:r,children:n,checked:a,disabled:o}=e,l=zx(e,["className","children","checked","disabled"]);return x(CVe,Object.assign({ref:t,className:Ax("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",r),checked:a,disabled:o},l,{children:[_("span",{className:Ax("shrink-0 size-4 rounded-[2px] border flex items-center justify-center transition-all overflow-hidden",a&&!o&&"bg-[var(--dropdown-menu-checkbox-checked-bg)] border-[var(--dropdown-menu-checkbox-checked-bg)]",a&&o&&"bg-[var(--dropdown-menu-checkbox-disabled-checked-bg)] border-transparent",!a&&o&&"border-[var(--dropdown-menu-checkbox-disabled-border)]",!a&&!o&&"border-[var(--dropdown-menu-checkbox-border)]"),children:_(PVe,{children:_(nye,{type:"heroicons",name:"check",className:"size-3 text-[var(--dropdown-menu-checkbox-checked-icon)]"})})}),n]}))}));FVe.displayName=CVe.displayName;const WVe=e.forwardRef(((e,t)=>{var{className:r,children:n,disabled:a,icon:o}=e,l=zx(e,["className","children","disabled","icon"]);const i=!!o;return x(zVe,Object.assign({ref:t,className:Ax("relative flex cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-radio-disabled-text)]","data-[state='checked']:data-[disabled]:!text-[var(--dropdown-menu-radio-selected-disabled-text)]",r,i?"gap-4":"gap-1")},l,{disabled:a,children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4",children:_(PVe,{className:"shrink-0",children:_(nye,{type:"heroicons",name:"check",className:Ax("size-4",a?"text-[var(--dropdown-menu-radio-selected-disabled-text)]":"text-[var(--dropdown-menu-selected-text)]")})})}),o]}),n]}))}));WVe.displayName=zVe.displayName;const $Ve=e.forwardRef(((e,t)=>{var{className:r,inset:n}=e,a=zx(e,["className","inset"]);return _(EVe,Object.assign({ref:t,className:Ax("px-3 py-2 typography-small4 text-text-g-contrast-high",n&&"pl-8",r)},a))}));$Ve.displayName=EVe.displayName;const UVe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(RVe,Object.assign({ref:t,className:Ax("h-px bg-[var(--dropdown-menu-seperator-bg)]",r)},n))}));UVe.displayName=RVe.displayName;const GVe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("span",Object.assign({className:Ax("ml-auto text-xs tracking-widest opacity-60",t)},r))};GVe.displayName="DropdownMenuShortcut";var YVe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),KVe="Switch",[XVe]=H_e(KVe),[QVe,JVe]=XVe(KVe),eHe=e.forwardRef(((t,r)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:l,required:i,disabled:s,value:c="on",onCheckedChange:d,form:u,...h}=t,[f,p]=e.useState(null),v=V_e(r,(e=>p(e))),m=e.useRef(!1),y=!f||(u||!!f.closest("form")),[g=!1,b]=B_e({prop:o,defaultProp:l,onChange:d});return x(QVe,{scope:n,checked:g,disabled:s,children:[_(YVe.button,{type:"button",role:"switch","aria-checked":g,"aria-required":i,"data-state":aHe(g),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onClick:Z_e(t.onClick,(e=>{b((e=>!e)),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&_(nHe,{control:f,bubbles:!m.current,name:a,value:c,checked:g,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})}));eHe.displayName=KVe;var tHe="SwitchThumb",rHe=e.forwardRef(((e,t)=>{const{__scopeSwitch:r,...n}=e,a=JVe(tHe,r);return _(YVe.span,{"data-state":aHe(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})}));rHe.displayName=tHe;var nHe=t=>{const{control:r,checked:n,bubbles:a=!0,...o}=t,l=e.useRef(null),i=q_e(n),s=F_e(r);return e.useEffect((()=>{const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[i,n,a]),_("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function aHe(e){return e?"checked":"unchecked"}var oHe=eHe,lHe=rHe;const iHe=j(["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}}),sHe=j(["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}}),cHe=j(["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"]),dHe=e.forwardRef(((e,t)=>{var{className:r,forceHover:n=!1}=e,a=zx(e,["className","forceHover"]);return _(oHe,Object.assign({className:Ax(iHe({forceHover:n}),r)},a,{ref:t,children:_(lHe,{className:sHe({forceHover:n}),children:_("span",{"aria-hidden":!0,className:cHe(),children:x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[_("g",{filter:"url(#switch-hover-halo-shadow)",children:_("circle",{cx:"20",cy:"18",r:"12",fill:"currentColor",shapeRendering:"crispEdges"})}),_("defs",{children:x("filter",{id:"switch-hover-halo-shadow",x:"0",y:"0",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[_("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),_("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"}),_("feOffset",{dy:"2"}),_("feGaussianBlur",{stdDeviation:"4"}),_("feComposite",{in2:"hardAlpha",operator:"out"}),_("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"}),_("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),_("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})})})}))}));dHe.displayName=oHe.displayName;const uHe=t.createContext(null);const hHe="__edit_ph__";function fHe(e){return{value:`${hHe}:${e}`,label:e}}function pHe(e,t){if("number"===e){const e=Number(t);return Number.isNaN(e)?0:e}return"checkbox"===e?"true"===t:t}function vHe(e,t,r,n){return e.onCommit?e.onCommit(t,r):{[n]:pHe(e.editVariant,r)}}function mHe({columnId:e,row:t,placeholder:r,autoFocus:n,errorMessage:a,onBlur:o,onKeyDown:l}){var i;const s=String(null!==(i=t.original[e])&&void 0!==i?i:"");return _(Yme,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:s,placeholder:r,"aria-label":r||e,autoFocus:n,error:!!a,errorMessage:a,onBlur:o,onKeyDown:l,className:"rounded-md px-2 py-2 typography-small2"})}function yHe({row:e,columnId:t,col:r,autoFocus:n,onCommit:a,onBlurField:o,onKeyDown:i,keepOpenAfterSelect:s,errorMessage:c}){var d,u,h,f,p;const v=String(null!==(d=e.original[t])&&void 0!==d?d:""),m="function"==typeof(null===(u=r.editSelectProps)||void 0===u?void 0:u.options)?r.editSelectProps.options(e):null!==(f=null===(h=r.editSelectProps)||void 0===h?void 0:h.options)&&void 0!==f?f:[],y=l((()=>{var e,n;return[fHe(null!==(n=null===(e=r.editSelectProps)||void 0===e?void 0:e.placeholder)&&void 0!==n?n:t),...m]}),[m,null===(p=r.editSelectProps)||void 0===p?void 0:p.placeholder,t]),g=l((()=>{var e;const t=v.trim();return t&&null!==(e=y.find((e=>e.label===t)))&&void 0!==e?e:y[0]}),[v,y]);return _("div",{children:_(L_e,{id:`edit-dd-${t}-${e.id}`,options:y,value:g,onSelect:e=>{(function(e){var t;return null!==(t=null==e?void 0:e.value.startsWith(`${hHe}:`))&&void 0!==t&&t})(e)||a(e.label)},size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,required:!1,isFloatingLabel:!1,label:"",keepFooterSpace:!1,segmentedInput:!0,autoFocus:n,onBlur:o,onKeyDown:i,keepOpenAfterSelect:s,portal:!0,error:!!c,errorMessage:c,className:Ax("rounded-md",A_e({size:"sm"}),v.trim().length>0&&"font-medium")})})}function gHe({columnId:e,row:t,col:r,autoFocus:n,errorMessage:a,onBlur:o,onKeyDown:l}){var i;const s=t.original[e],c=""===s||null==s?void 0:Number(s),d=r.editNumberProps;return _(oye,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:c,placeholder:null!==(i=null==d?void 0:d.placeholder)&&void 0!==i?i:e,"aria-label":(null==d?void 0:d.placeholder)||e,autoFocus:n,min:null==d?void 0:d.min,max:null==d?void 0:d.max,step:null==d?void 0:d.step,precision:null==d?void 0:d.precision,allowDecimal:null==d?void 0:d.allowDecimal,allowNegative:null==d?void 0:d.allowNegative,hideControls:!0,error:!!a,errorMessage:a,onBlur:e=>o(e.currentTarget.value.trim()),onKeyDown:l,className:"rounded-md px-2 py-2 typography-small2"})}function bHe({columnId:e,row:t,col:r,errorMessage:n,onCommit:a,onKeyDown:o}){var l;const i=t.original[e],s=!0===i||"true"===i,c=null===(l=r.editCheckboxProps)||void 0===l?void 0:l.label;return x("div",{className:"flex flex-col gap-0.5",children:[x("div",{className:"flex items-center gap-2 min-h-[32px]",children:[_(uxe,{checked:s,onCheckedChange:e=>{a(!0===e)},onKeyDown:o?e=>o(e):void 0,"aria-label":c||e}),c&&_("span",{className:"typography-small2 text-text-contrast-high select-none",children:c})]}),n&&_("span",{className:"typography-small3 text-error-500",children:n})]})}function kHe({row:e,col:t,columnId:r}){var n,a,o,l,i,s,c,d,u,h,f,p;const v=null!==(n=t.editVariant)&&void 0!==n?n:"text";if("select"===v){const n="function"==typeof(null===(a=t.editSelectProps)||void 0===a?void 0:a.options)?t.editSelectProps.options(e):null!==(l=null===(o=t.editSelectProps)||void 0===o?void 0:o.options)&&void 0!==l?l:[],u=[fHe(null!==(s=null===(i=t.editSelectProps)||void 0===i?void 0:i.placeholder)&&void 0!==s?s:r),...n],h=String(null!==(c=e.original[r])&&void 0!==c?c:""),f=null!==(d=u.find((e=>e.label===h.trim())))&&void 0!==d?d:u[0];return _(L_e,{id:`edit-dd-disabled-${r}-${e.id}`,options:u,value:f,onSelect:()=>{},size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,required:!1,isFloatingLabel:!1,label:"",keepFooterSpace:!1,segmentedInput:!0,disabled:!0,className:Ax("rounded-md",A_e({size:"sm"}))})}if("number"===v){const t=e.original[r],n=""===t||null==t?void 0:Number(t);return _(oye,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:n,disabled:!0,hideControls:!0,className:"rounded-md px-2 py-2 typography-small2"})}if("checkbox"===v){const n=e.original[r];return x("div",{className:"flex items-center gap-2 min-h-[32px]",children:[_(uxe,{checked:!0===n||"true"===n,disabled:!0}),(null===(u=t.editCheckboxProps)||void 0===u?void 0:u.label)&&_("span",{className:"typography-small2 text-text-g-contrast-medium select-none",children:t.editCheckboxProps.label})]})}const m=String(null!==(h=e.original[r])&&void 0!==h?h:""),y=null!==(p=null===(f=t.editTextProps)||void 0===f?void 0:f.placeholder)&&void 0!==p?p:"";return _(Yme,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:m,placeholder:y,"aria-label":y||r,disabled:!0,className:"rounded-md px-2 py-2 typography-small2"})}function wHe(e){switch(null==e?void 0:e.align){case"center":return"text-center";case"right":return"text-right";case"left":return"text-left";default:return}}function _He(e){const{row:t,getSubRows:r,firstDataCellId:n,fixedColStyles:a,flexWidth:o,lockPxExactWidth:l,resizable:i,tableLayout:s,resizableSlackGrowColId:c,cellClassName:d,onCellClick:u}=e;return function(e){const t=[];let r=0;for(;r<e.length;){const n=e[r],a=n.column.columnDef.meta;let o=1;if(null!=(null==a?void 0:a.colSpan)){const e="function"==typeof a.colSpan?a.colSpan(n.row):a.colSpan,t=Math.floor(Number(e));Number.isFinite(t)&&t>=1&&(o=t)}const l=e.length-r,i=Math.min(o,l);t.push({cell:n,colSpan:Math.max(1,i)}),r+=Math.max(1,i)}return t}(t.getVisibleCells()).map((({cell:e,colSpan:h})=>{var f;const p=Boolean(r)&&e.id===n(t),v=i&&"equal"!==s&&!(null!=c&&e.column.id===c);return _(Oze,{colSpan:h>1?h:void 0,style:PHe(e.column.columnDef,null==a?void 0:a.get(e.column.id),o,l,v?e.column.getSize():void 0),className:Ax(wHe(e.column.columnDef.meta),null===(f=e.column.columnDef.meta)||void 0===f?void 0:f.cellClassName,null==d?void 0:d(e,t)),onClick:u?r=>u(e,t,r):void 0,children:p?x("div",{className:"flex items-center gap-1",style:{paddingLeft:20*t.depth+"px"},children:[t.getCanExpand()?_("button",{type:"button",onClick:t.getToggleExpandedHandler(),className:"flex items-center justify-center size-5 rounded hover:bg-table-c-hover shrink-0 transition-colors","aria-label":t.getIsExpanded()?"Collapse":"Expand",children:t.getIsExpanded()?_(fS,{className:"size-4"}):_(wS,{className:"size-4"})}):_("span",{className:"size-5 shrink-0"}),PPe(e.column.columnDef.cell,e.getContext())]}):PPe(e.column.columnDef.cell,e.getContext())},e.id)}))}function xHe({rowId:e}){const{attributes:t,listeners:r,setNodeRef:n,isDragging:a}=hIe({id:e});return _(mye,Object.assign({ref:n},t,r,{variant:"icon",size:"sm",active:a,className:Ax("touch-none",a?"cursor-grabbing":"cursor-grab"),"aria-label":"Drag to reorder",children:_(yT,{className:"!size-4"})}))}function MHe(e){var{id:t,children:r}=e,n=zx(e,["id","children"]);const{transform:a,transition:o,isDragging:l,setNodeRef:i}=hIe({id:t}),s={transform:sRe.Transform.toString(a?Object.assign(Object.assign({},a),{scaleX:1,scaleY:1}):null),transition:o,opacity:l?.5:1,position:"relative",zIndex:l?50:void 0};return _(jze,Object.assign({ref:i,style:s},n,{children:r}))}const jHe=["__reorder__","__select__"],EHe=["__actions__"];function OHe(e){const t=e.column.columnDef.header;return"string"==typeof t?t:e.column.id}function CHe(e,t){var r;const n=null===(r=e.meta)||void 0===r?void 0:r.exactWidth;if(null==n)return;const a=null!=zHe(n),o=t&&a,l="number"==typeof n?`${n}px`:n.trim();return o?{width:l,minWidth:l,maxWidth:l,overflow:"hidden",boxSizing:"border-box"}:{width:n}}function zHe(e){if("number"==typeof e)return Number.isFinite(e)?e:null;if("string"==typeof e){const t=e.trim().match(/^(-?\d*\.?\d+)\s*px$/i);return t?parseFloat(t[1]):null}return null}function PHe(e,t,r,n,a){const o=CHe(e,n);if(o)return o;if(null!=a){const t=e.maxSize;return Object.assign({width:a},null!=t&&t!==Number.MAX_SAFE_INTEGER&&{maxWidth:t})}return t||(r?{width:r}:void 0)}function RHe({col:e,label:t,isLastVisible:r,showReorder:n,showVisibility:a}){var o;const{attributes:l,listeners:i,setNodeRef:s,setActivatorNodeRef:c,transform:d,transition:u,isDragging:h}=hIe({id:e.id}),f={transform:h?`translateY(${null!==(o=null==d?void 0:d.y)&&void 0!==o?o:0}px)`:sRe.Transform.toString(d),transition:h?void 0:u};return x("div",{ref:s,style:f,className:Ax("flex h-14 items-center gap-4 pl-6 pr-8 bg-modal-surface","relative select-none",h&&"z-50 border border-primary-500/40 shadow-[0_8px_24px_-4px_rgba(0,0,0,0.24)] scale-[1.01]"),children:[n&&_(mye,Object.assign({ref:c},l,i,{variant:"icon",size:"sm",active:h,"aria-label":`Drag to reorder ${t}`,className:Ax("shrink-0 touch-none",h?"cursor-grabbing":"cursor-grab"),children:_(yT,{className:"size-[14px]"})})),a&&_(dHe,{checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(t),disabled:r}),_("span",{className:Ax("flex-1 typography-subtitle4",h?"text-text-contrast-max":"text-text-g-contrast-high"),children:t})]})}function AHe({table:e,onClose:t,maxListHeight:r=400,options:n={}}){const{reorder:a=!0,visibility:o=!0,hideAll:l=!0,showAll:i=!0}=n,s=e.getAllLeafColumns().filter((e=>e.getCanHide())),c=s.filter((e=>e.getIsVisible())).length,d=e=>{const t=e.columnDef.header;return"string"==typeof t?t:e.id},u=wRe(kRe(hAe),kRe(iAe,{coordinateGetter:vIe}));return x(M,{children:[x("div",{className:"flex items-center gap-2 px-6 pt-4 pb-3 border-b border-modal-line",children:[_("span",{className:"flex-1 typography-subtitle3 text-text-contrast-max",children:"Manage column"}),l&&_(Lx,{variant:"text",color:"secondary",size:"sm",disabled:c<=1,onClick:()=>{var e;const t=null!==(e=s.find((e=>e.getIsVisible())))&&void 0!==e?e:s[0];s.forEach((e=>e.toggleVisibility(e.id===t.id)))},children:"Hide all"}),i&&_(Lx,{variant:"text",color:"primary",size:"sm",onClick:()=>e.toggleAllColumnsVisible(!0),children:"Show all"}),_(Lx,{variant:"outline",color:"primary",size:"sm",onClick:t,children:"Done"})]}),_(FAe,{sensors:u,collisionDetection:zRe,modifiers:[KAe,YAe],onDragEnd:t=>{const{active:r,over:n}=t;if(!n||r.id===n.id)return;const a=e.getAllLeafColumns().map((e=>e.id)),o=a.filter((e=>!jHe.includes(e)&&!EHe.includes(e))),l=o.indexOf(r.id),i=o.indexOf(n.id);if(-1===l||-1===i)return;const s=a.filter((e=>jHe.includes(e))),c=a.filter((e=>EHe.includes(e)));e.setColumnOrder([...s,...XAe(o,l,i),...c])},children:_(oIe,{items:s.map((e=>e.id)),strategy:rIe,children:_("div",{className:"overflow-y-auto ui-scrollbar",style:{maxHeight:r},children:s.map((e=>_(RHe,{col:e,label:d(e),isLastVisible:e.getIsVisible()&&1===c,showReorder:a,showVisibility:o},e.id)))})})})]})}function IHe({data:r,columns:o,manualSorting:c=!1,onSorting:u,paginationMode:h="infinite",totalCount:f,pageIndex:p,pageSize:v,onPaginationChange:m,pageSizeOptions:y,fetchMoreData:g,fetchMoreOffset:b,fetchingMore:k=!1,fetchingMoreLabel:w="Loading more…",loading:j=!1,loadingLabel:E="Loading…",highlightRowId:O,scrollToHighlightOnMouseLeave:C=!1,selectable:z=!1,onRowSelectionChange:P,rowActions:R,reorderable:A=!1,getRowId:I,onRowReorder:L,isRowReorderLocked:S,onRowClick:V,onCellClick:H,getSubRows:N,defaultExpanded:Z,expanded:D,onExpandedChange:B,bordered:q=!0,surface:T="default",striped:F=!1,divided:W=!0,rowClassName:$,cellClassName:U,headerCellClassName:G,headerClassName:Y,headerRowClassName:K,sortIndicatorVisibility:X="hover",tableLayout:Q="auto",columnManagement:J=!1,resizable:ee=!1,columnMinSize:te=60,columnMaxSize:re=Number.MAX_SAFE_INTEGER,virtualized:ne=!1,virtualRowEstimate:ae,className:oe,enableEditing:le=!1,editDisplayMode:ie="cell",editTrigger:se="click",onCellCommit:ce,alwaysEditing:de,enableCellTabTraversal:ue,editableColumnIds:he,testId:fe}){var pe;const ve=n(null),me=n(null),ye=n(!1),ge=n(0),[be,ke]=i(48),we=a((()=>{const e=ve.current;let t=!1;const r=()=>{t||(t=!0,ge.current=Math.max(0,ge.current-1))};null==e||e.addEventListener("scrollend",r,{once:!0}),window.setTimeout(r,550)}),[]),_e=a(((e,t,r)=>{var n,a;const o=r.scrollDirection;if("forward"===o||null===o){const r=null===(n=null==t?void 0:t.borderBoxSize)||void 0===n?void 0:n[0];return r?Math.round(r.blockSize):Math.round(e.getBoundingClientRect().height)}const l=e.getAttribute("data-index"),i=null!=l?Number.parseInt(l,10):NaN,s=r.measurementsCache,c=Number.isFinite(i)&&(null==s?void 0:s[i])?s[i].size:void 0;if("number"==typeof c)return c;const d=null===(a=null==t?void 0:t.borderBoxSize)||void 0===a?void 0:a[0];return d?Math.round(d.blockSize):Math.round(e.getBoundingClientRect().height)}),[]),xe=!!J,Me="object"==typeof J?J:{},[je,Ee]=i([]),[Oe,Ce]=i([]),[ze,Pe]=i({}),[Re,Ae]=i([]),[Ie,Le]=i({}),[Se,Ve]=i({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),[He,Ne]=i({}),[Ze,De]=i(null!==(pe=Z)&&void 0!==pe?pe:{}),Be=void 0!==D,qe=Be?D:Ze,[Te,Fe]=i({pageIndex:null!=p?p:0,pageSize:null!=v?v:10}),[We,$e]=i(!1),[Ue,Ge]=i(null),[Ye,Ke]=i(null),[Xe,Qe]=i({top:0,right:0,maxListHeight:400}),Je=n(new Map),et=a(((e,t)=>{Ke(null);const r=window.innerWidth-t.right,n=Math.min(Math.max(r,8),window.innerWidth-460-8),a=t.bottom+8,o=Math.max(80,window.innerHeight-a-80);Qe({top:a,right:n,maxListHeight:o}),Ge(e),$e(!0)}),[]);s((()=>{if(!We)return;const e=e=>{"Escape"===e.key&&$e(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[We]),s((()=>{"server"===h&&Fe({pageIndex:null!=p?p:0,pageSize:null!=v?v:10})}),[h,p,v]);const tt=t.useMemo((()=>null!=he?he:le?function(e){return e.filter((e=>null!=e.enableEditing||null!=e.editVariant)).map((e=>{var t,r;return null!==(r=null!==(t=e.accessorKey)&&void 0!==t?t:e.id)&&void 0!==r?r:""})).filter(Boolean)}(o):[]),[le,he,o]),rt=function(e){const{enabled:r,editDisplayMode:n,editTrigger:o,editableColumnIds:c}=e,[d,u]=i(null),[h,f]=i(null),p=t.useRef(!1),v=a((e=>{u(e),f(null)}),[]),m=a(((e,t)=>{f({rowId:e,columnId:t}),u(null)}),[]),y=a((()=>{u(null),f(null)}),[]),g=a(((e,t)=>{p.current||"cell"===n&&f(null)}),[n]),b=a(((e,t,r)=>{const n=c.indexOf(t);if(n<0)return f(null),"exited";const a=n+r;return a<0||a>=c.length?(f(null),"exited"):(p.current=!0,f({rowId:e,columnId:c[a]}),requestAnimationFrame((()=>{p.current=!1})),"moved")}),[c]);return s((()=>{if(!r||"row"!==n||!d)return;const e=e=>{"Escape"===e.key&&u(null)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r,n,d]),l((()=>({editingRowId:d,editingCell:h,editDisplayMode:n,editTrigger:o,requestRowEdit:v,requestCellEdit:m,clearEdit:y,onFieldBlur:g,moveCellEdit:b})),[d,h,n,o,v,m,y,g,b])}({enabled:le,editDisplayMode:ie,editTrigger:se,editableColumnIds:tt}),nt=t.useMemo((()=>{let e;var t;return e=le?function(e,t){const{editing:r,onCellCommit:n,alwaysEditing:a,enableCellTabTraversal:o,editableColumnIds:l}=t;return e.map((e=>{var t,i;const s=e.enableEditing;if(null==s&&null==e.editVariant)return e;const c=null!==(i=null!==(t=e.accessorKey)&&void 0!==t?t:e.id)&&void 0!==i?i:"",d=e.cell,u=Object.assign(Object.assign({},e),{cell:t=>{var i,u,h,f,p,v,m,y;const{row:g}=t,b=function(e){const t=e.original;return"string"==typeof t.id?t.id:e.id}(g);if(!("function"==typeof s?s(g):!1!==s)){const n=null!==(i=null==a?void 0:a(g))&&void 0!==i&&i,o=n||r.editingRowId===b||(null===(u=r.editingCell)||void 0===u?void 0:u.rowId)===b;if((n||e.editShowDisabledField&&o)&&(e.editVariant||null!=s))return _(kHe,{row:g,col:e,columnId:c});if(e.displayCell)return e.displayCell(g);if(d)return"function"==typeof d?d(t):d;const l=g.original[c];return _(M,{children:String(null!=l?l:"")})}const k=null!==(h=null==a?void 0:a(g))&&void 0!==h&&h,w=k||function(e,t,r){var n;const a="string"==typeof t.original.id?t.original.id:t.id;return"row"===e.editDisplayMode?e.editingRowId===a:(null===(n=e.editingCell)||void 0===n?void 0:n.rowId)===a&&e.editingCell.columnId===r}(r,g,c);if(!w){const t=e.displayCell?e.displayCell(g):String(null!==(f=g.original[c])&&void 0!==f?f:""),n=()=>{"row"===r.editDisplayMode?r.requestRowEdit(b):r.requestCellEdit(b,c)},a="click"===r.editTrigger?{onClick:n}:{onDoubleClick:n};return _("div",Object.assign({className:Ax("-mx-1 flex min-h-[32px] w-full min-w-0 cursor-pointer items-center rounded-sm px-1","hover:bg-table-c-hover/35")},a,{children:t}))}const x=null!==(p=e.editVariant)&&void 0!==p?p:"text",j=!k&&"cell"===r.editDisplayMode,E=null===(v=e.editError)||void 0===v?void 0:v.call(e,g),O=t=>{const a=vHe(e,g,t,c);null==n||n(b,c,a),k||r.onFieldBlur(b,c)},C=o?(e,t)=>{if("Tab"===e.key){if("row"===r.editDisplayMode){const r=l.indexOf(c);if(r<0)return;const n=r+(e.shiftKey?-1:1);if(n<0||n>=l.length)return;const a=l[n];return t(),e.preventDefault(),void requestAnimationFrame((()=>{const e=document.querySelector(`[data-edit-cell="${b}:${a}"] input, [data-edit-cell="${b}:${a}"] button`);null==e||e.focus()}))}t(),"moved"===r.moveCellEdit(b,c,e.shiftKey?-1:1)&&e.preventDefault()}}:void 0;if("select"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(yHe,{row:g,columnId:c,col:e,autoFocus:j,keepOpenAfterSelect:"row"===r.editDisplayMode||k,onCommit:t=>{var r;const a=String(null!==(r=g.original[c])&&void 0!==r?r:"");if(t.trim()===a.trim())return;const o=vHe(e,g,t,c);null==n||n(b,c,o)},onBlurField:"row"===r.editDisplayMode?void 0:()=>{k||r.onFieldBlur(b,c)},onKeyDown:C?e=>C(e,(()=>{})):void 0,errorMessage:E})});if("number"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(gHe,{columnId:c,row:g,col:e,autoFocus:j,errorMessage:E,onBlur:e=>O(e),onKeyDown:C?t=>C(t,(()=>{const r=t.target.value.trim(),a=vHe(e,g,r,c);null==n||n(b,c,a)})):void 0})});if("checkbox"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(bHe,{columnId:c,row:g,col:e,errorMessage:E,onCommit:t=>{const r=vHe(e,g,String(t),c);null==n||n(b,c,r)},onKeyDown:C?e=>C(e,(()=>{})):void 0})});if("custom"===x&&e.editCustomCell){const t=()=>{k||r.onFieldBlur(b,c)};return _("div",{"data-edit-cell":`${b}:${c}`,children:e.editCustomCell(g,{commit:t=>{const r=vHe(e,g,t,c);null==n||n(b,c,r)},blur:t,columnId:c,autoFocus:j,errorMessage:E,onKeyDown:C?e=>C(e,(()=>{})):void 0})})}return _("div",{"data-edit-cell":`${b}:${c}`,children:_(mHe,{columnId:c,row:g,placeholder:null!==(y=null===(m=e.editTextProps)||void 0===m?void 0:m.placeholder)&&void 0!==y?y:"",autoFocus:j,errorMessage:E,onBlur:e=>O(e.currentTarget.value.trim()),onKeyDown:C?t=>C(t,(()=>{const r=t.target.value.trim(),a=vHe(e,g,r,c);null==n||n(b,c,a)})):void 0})})}});return u}))}(o,{editing:rt,onCellCommit:ce,alwaysEditing:de,enableCellTabTraversal:null==ue||ue,editableColumnIds:tt}):[...o],A&&e.unshift({id:"__reorder__",header:()=>null,cell:({row:e})=>_(xHe,{rowId:e.id}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:54,maxSize:54,minSize:54,meta:{exactWidth:54}}),z&&e.unshift({id:"__select__",header:({table:e})=>_(uxe,{checked:e.getIsSomeRowsSelected()?"indeterminate":e.getIsAllRowsSelected(),onCheckedChange:t=>e.toggleAllRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>_(uxe,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row",disabled:!e.getCanSelect()}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:42,maxSize:42,minSize:42,meta:{exactWidth:42}}),R&&e.push((t=R,{id:"__actions__",header:()=>null,cell:({row:e})=>_("div",{className:"flex items-center justify-center gap-1",children:t(e)}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:80,maxSize:80,minSize:80,meta:{exactWidth:80}})),e}),[o,z,A,R,le,rt,ce,de,ue]),at="client"===h||"server"===h,ot=function(t){const r={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=e.useState((()=>({current:OPe(r)}))),[a,o]=e.useState((()=>n.current.initialState));return n.current.setOptions((e=>({...e,...t,state:{...a,...t.state},onStateChange:e=>{o(e),null==t.onStateChange||t.onStateChange(e)}}))),n.current}(Object.assign(Object.assign(Object.assign(Object.assign({data:r,columns:nt,columnResizeMode:"onChange",defaultColumn:{minSize:te,maxSize:re}},I?{getRowId:e=>I(e)}:{getRowId:e=>e.id}),{manualSorting:c,manualPagination:"server"===h,rowCount:"server"===h?null!=f?f:r.length:void 0,getSubRows:N,onSortingChange:Ee,onColumnFiltersChange:Ce,onColumnVisibilityChange:Pe,onColumnOrderChange:Ae,onColumnSizingChange:Le,onColumnSizingInfoChange:Ve,onRowSelectionChange:Ne,onExpandedChange:e=>{const t="function"==typeof e?e(qe):e;Be||De(t),null==B||B(t)},onPaginationChange:e=>{const t="function"==typeof e?e(Te):e;Fe(t),null==m||m(t)},getCoreRowModel:e=>Ize((()=>[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=Zze(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}),Lze(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Ize((()=>[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}}),Lze(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),getFilteredRowModel:e=>Ize((()=>[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 zPe(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),Lze(e.options,"debugTable","getFilteredRowModel",(()=>e._autoResetPageIndex()))),getExpandedRowModel:e=>Ize((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,r)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:r?CPe(t):t),Lze(e.options,"debugTable","getExpandedRowModel"))}),at?{getPaginationRowModel:e=>Ize((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,r)=>{if(!r.rows.length)return r;const{pageSize:n,pageIndex:a}=t;let{rows:o,flatRows:l,rowsById:i}=r;const s=n*a,c=s+n;let d;o=o.slice(s,c),d=e.options.paginateExpandedRows?{rows:o,flatRows:l,rowsById:i}:CPe({rows:o,flatRows:l,rowsById:i}),d.flatRows=[];const u=e=>{d.flatRows.push(e),e.subRows.length&&e.subRows.forEach(u)};return d.rows.forEach(u),d}),Lze(e.options,"debugTable","getPaginationRowModel"))}:{}),{enableRowSelection:z,enableColumnResizing:ee,state:Object.assign({sorting:je,columnFilters:Oe,columnVisibility:ze,columnOrder:Re,columnSizing:Ie,columnSizingInfo:Se,rowSelection:He,expanded:qe},at?{pagination:Te}:{})})),lt=t.useMemo((()=>{const e=ot.getRowModel().rows;if(!S)return e;const t=e.filter((e=>S(e))),n=e.filter((e=>!S(e)));if(0===t.length)return e;const a=new Map(r.map(((e,t)=>[I?I(e):String(e.id),t])));return t.sort(((e,t)=>{var r,n;return(null!==(r=a.get(e.id))&&void 0!==r?r:0)-(null!==(n=a.get(t.id))&&void 0!==n?n:0)})),[...n,...t]}),[ot.getRowModel().rows,S,r,I]);s((()=>{null==u||u(je)}),[je,u]),s((()=>{null==P||P(He)}),[He,P]),s((()=>{if("infinite"!==h)return;const e=ve.current;if(!e)return;const t=()=>{if(ge.current>0)return;const{scrollTop:t,scrollHeight:r,clientHeight:n}=e;if(k||j)return;t+n>=r-("number"==typeof b?b:10)&&(null==g||g())};return e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}),[h,g,k,j,b]);const it=0===lt.length;d((()=>{if(!ne)return;const e=me.current;if(!e)return;const t=()=>{ke(Math.round(e.getBoundingClientRect().height))};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()}),[ne]);const st=n((()=>{})),ct=n(!1),dt=abe({count:ne?lt.length:0,getScrollElement:()=>ve.current,estimateSize:()=>null!=ae?ae:40,overscan:4,paddingStart:ne?be:0,scrollPaddingStart:0,measureElement:_e,onChange:()=>{var e,t;if(!ne||!O)return;(null!==(t=null===(e=ve.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)<1?ct.current=!1:ct.current||(ct.current=!0,requestAnimationFrame((()=>{ye.current||st.current("auto")})))}}),ut=a(((e="smooth")=>{var t,r;if(!O)return;if(ye.current)return;const n=ve.current;if(!n)return;const a=Array.isArray(O)?O:[O];if(ne){dt.getTotalSize();for(const o of a){const a=lt.findIndex((e=>e.id===o));if(-1!==a){const o=null!=ae?ae:40,l=dt.getOffsetForIndex(a,"start");if(!l)continue;const[i]=l,s=null===(r=null===(t=dt.measurementsCache)||void 0===t?void 0:t[a])||void 0===r?void 0:r.size,c=i+("number"==typeof s?s:o)/2-n.clientHeight/2;return ge.current+=1,we(),void dt.scrollToOffset(Math.max(0,c),{align:"start",behavior:"smooth"===e?"smooth":"auto"})}}}else for(const t of a){const r=n.querySelector(`[data-row-id="${t}"]`);if(r){ge.current+=1,we(),r.scrollIntoView({block:"center",behavior:e});break}}}),[O,lt,ne,dt,ae,be,we]);st.current=ut,d((()=>{ct.current=!1}),[ne,O]),d((()=>{ut("smooth")}),[ne,ut,O]);const ht={pageIndex:Te.pageIndex,pageSize:Te.pageSize,totalCount:"server"===h?null!=f?f:r.length:ot.getFilteredRowModel().rows.length,pageSizeOptions:y,onPageChange:e=>ot.setPagination((t=>Object.assign(Object.assign({},t),{pageIndex:e}))),onPageSizeChange:e=>ot.setPagination({pageIndex:0,pageSize:e})},ft=function(e){return t.useMemo((()=>{var t;const r=e.getVisibleLeafColumns();let n=0,a=0;for(const e of r){const r=null===(t=e.columnDef.meta)||void 0===t?void 0:t.exactWidth,o=zHe(r);null!=o?n+=o:null==r&&(a+=1)}if(0!==a&&0!==n)return`calc((100% - ${n}px) / ${a})`}),[e.getVisibleLeafColumns()])}(ot),pt="equal"===Q?ft:void 0,vt=t.useMemo((()=>{if("fixed"!==Q)return null;const e=ot.getVisibleLeafColumns(),t=e=>{var t;return null!=zHe(null===(t=e.columnDef.meta)||void 0===t?void 0:t.exactWidth)},r=e.map(((e,r)=>t(e)?-1:r)).filter((e=>e>=0)),n=r.length>0?r[r.length-1]:-1,a=new Map;return e.forEach(((e,r)=>{var o,l,i;if(t(e))return;if(r===n)return;const s=null!==(i=null!==(o=e.columnDef.size)&&void 0!==o?o:null===(l=e.getSize)||void 0===l?void 0:l.call(e))&&void 0!==i?i:150,c="number"==typeof s?s:Number.isFinite(parseFloat(String(s)))?parseFloat(String(s)):150;a.set(e.id,{width:`${c}px`,minWidth:`${c}px`,maxWidth:`${c}px`,overflow:"hidden",boxSizing:"border-box"})})),a}),[Q,ot.getVisibleLeafColumns()]),mt=t.useMemo((()=>{var e,t;if(!ee||"equal"===Q)return null;const r=ot.getVisibleLeafColumns(),n=r.map(((e,t)=>{var r;return null==zHe(null===(r=e.columnDef.meta)||void 0===r?void 0:r.exactWidth)?t:-1})).filter((e=>e>=0));return 0===n.length?null:null!==(t=null===(e=r[n[n.length-1]])||void 0===e?void 0:e.id)&&void 0!==t?t:null}),[ee,Q,ot.getVisibleLeafColumns()]),yt=e=>{var t;return null===(t=e.getVisibleCells().find((e=>"__select__"!==e.column.id&&"__actions__"!==e.column.id&&"__reorder__"!==e.column.id)))||void 0===t?void 0:t.id},gt=wRe(kRe(hAe),kRe(iAe,{coordinateGetter:vIe})),bt=t.useMemo((()=>lt.filter((e=>!(null==S?void 0:S(e)))).map((e=>e.id))),[lt,S]),kt="fixed"===Q||ee,wt=xe&&!1!==Me.visibility,_t=xe?ot.getAllLeafColumns().filter((e=>e.getCanHide()&&e.getIsVisible())).length:0,xt=le?rt:null;return _(uHe.Provider,{value:xt,children:x("div",{className:Ax("flex flex-col w-full h-full min-h-0",q&&"overflow-hidden rounded-md border border-table-c-border",!q&&"overflow-hidden rounded-none",oe),"data-surface":"panel"===T?"panel":void 0,"data-testid":fe,children:[_("div",{ref:ve,className:Ax("relative min-h-0 overflow-auto","ui-scrollbar ui-scrollbar-x-m ui-scrollbar-y-s",at?"flex-1":"h-full"),onWheel:C?()=>{ye.current=!0}:void 0,onPointerDownCapture:C?()=>{ye.current=!0}:void 0,onMouseLeave:C?()=>{ye.current=!1,ut("smooth")}:void 0,children:x(wze,{scrollableWrapper:!1,className:Ax(("fixed"===Q||"equal"===Q||ee)&&"table-fixed",it&&"h-full"),style:ee?{width:`max(100%, ${ot.getTotalSize()}px)`}:{width:"100%"},children:["fixed"===Q&&!ee&&_("colgroup",{children:ot.getVisibleLeafColumns().map((e=>{const t=CHe(e.columnDef,kt),r=null!=t?t:null==vt?void 0:vt.get(e.id);return _("col",{style:r},e.id)}))}),ee&&_("colgroup",{children:ot.getVisibleLeafColumns().map((e=>{const t=CHe(e.columnDef,kt);return t?_("col",{style:t},e.id):"equal"===Q||null!=mt&&e.id===mt?_("col",{},e.id):_("col",{style:{width:e.getSize()}},e.id)}))}),_(_ze,{ref:me,className:Ax("sticky top-0 z-10",Y),"data-testid":fe?`${fe}-thead`:void 0,children:ot.getHeaderGroups().map((e=>_(jze,{divided:!1,colDivided:W,className:Ax("hover:bg-transparent",K),children:e.headers.map((e=>{var t;const r=e.column.getCanSort(),n=e.column.getIsSorted(),a=xe&&e.column.getCanHide(),o=ee&&"equal"!==Q&&e.column.getCanResize(),l=e.column.getIsResizing(),i=!ee&&vt?vt.get(e.column.id):void 0,s=ee&&"equal"!==Q&&!(null!=mt&&e.column.id===mt),c=function(e,t,r,n,a){const o=CHe(e,n);if(o)return o;if(null!=a){const t=e.maxSize;return Object.assign({width:a},null!=t&&t!==Number.MAX_SAFE_INTEGER&&{maxWidth:t})}return t?{width:t}:r}(e.column.columnDef,pt,i,kt,s?e.getSize():void 0);return x(Eze,{colSpan:e.colSpan,style:c,className:Ax("relative overflow-visible group/col",l&&"select-none",null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.headerCellClassName,null==G?void 0:G(e)),children:[x("div",{className:"flex flex-row items-center gap-1 group/header",children:[_("div",{className:Ax("flex flex-1 flex-row items-center overflow-hidden",r&&"cursor-pointer select-none",wHe(e.column.columnDef.meta)),onClick:e.column.getToggleSortingHandler(),children:e.isPlaceholder?null:PPe(e.column.columnDef.header,e.getContext())}),r&&_(mye,{variant:"icon",size:"sm",className:Ax("shrink-0 transition-opacity",n||"always"===X?"opacity-100":"opacity-0 group-hover/header:opacity-100"),onClick:e.column.getToggleSortingHandler(),"aria-label":"asc"===n?"Sorted ascending — click to sort descending":"desc"===n?"Sorted descending — click to clear sort":"Sort column",children:"asc"===n?_(zO,{className:"!size-4"}):"desc"===n?_(BE,{className:"!size-4"}):_(uO,{className:"!size-4 text-text-g-contrast-medium"})}),a&&x(LVe,{open:Ye===e.column.id,onOpenChange:t=>Ke(t?e.column.id:null),modal:!1,children:[_(SVe,{asChild:!0,children:_(mye,{variant:"icon",size:"sm",active:We&&Ue===e.column.id||Ye===e.column.id,"aria-haspopup":"menu","aria-expanded":Ye===e.column.id,"aria-label":"Column options",className:"shrink-0",ref:t=>{t?Je.current.set(e.column.id,t):Je.current.delete(e.column.id)},onClick:e=>e.stopPropagation(),children:_(cT,{className:"!size-4"})})}),x(qVe,{align:"end",sideOffset:4,className:"min-w-[220px] py-1",onCloseAutoFocus:e=>e.preventDefault(),children:[wt&&x(TVe,{className:"py-3",disabled:e.column.getIsVisible()&&_t<=1,icon:_(RT,{className:"size-4","aria-hidden":!0}),onSelect:()=>{e.column.toggleVisibility(!1)},children:["Hide ",OHe(e)," ","column"]}),_(TVe,{className:"py-3",icon:_(SZ,{className:"size-4","aria-hidden":!0}),onSelect:()=>{requestAnimationFrame((()=>{const t=Je.current.get(e.column.id);t&&et(e.column.id,t.getBoundingClientRect())}))},children:"Manage columns"})]})]})]}),o&&_("div",{onMouseDown:e.getResizeHandler(document),onTouchStart:e.getResizeHandler(document),onClick:e=>e.stopPropagation(),className:Ax("absolute right-0 top-0 h-full w-[5px] z-10","cursor-col-resize select-none touch-none","flex items-center justify-center group/resize"),children:_("div",{className:Ax("h-4/5 w-1.5 rounded-full transition-all duration-150",l?"opacity-100 w-0.5 bg-primary-500":"opacity-0 bg-table-c-col-line group-hover/col:opacity-100 group-hover/resize:bg-primary-400")})})]},e.id)}))},e.id)))}),_(xze,{striped:F,"data-testid":fe?`${fe}-tbody`:void 0,children:it?_(jze,j?{className:"h-full hover:bg-transparent",divided:!1,children:_(Oze,{colSpan:nt.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full min-h-[200px]",children:x("div",{className:"flex flex-1 min-h-[200px] h-full flex-col items-center justify-center gap-3 py-16",role:"status","aria-live":"polite","aria-busy":"true",children:[_(c0,{className:"size-8 shrink-0 animate-spin text-secondary-120","aria-hidden":!0}),E]})})}:{className:"h-full hover:bg-transparent",divided:!1,children:_(Oze,{colSpan:nt.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full",children:x("div",{className:"flex flex-1 h-full flex-col items-center justify-center gap-3 py-16",children:[_(HH,{className:"w-8 text-secondary-120"}),"There is no information yet."]})})}):ne?(()=>{var e;const t=dt.getVirtualItems();if(!t.length)return null;const r=Math.max(0,t[0].start-be),n=dt.getTotalSize()-(null!==(e=t[t.length-1].end)&&void 0!==e?e:0);return x(M,{children:[r>0&&_("tr",{"aria-hidden":!0,children:_("td",{colSpan:nt.length,style:{height:r}})}),t.map((e=>{const t=lt[e.index],r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=Array.isArray(O)?O.includes(t.id):O===t.id,o={divided:!(!r||F)||!F,colDivided:W,"data-state":t.getIsSelected()?"selected":void 0,"data-highlighted":a?"true":void 0,className:Ax(n,V&&"cursor-pointer",null==$?void 0:$(t,e.index)),onClick:V?e=>V(t,e):void 0};return _(jze,Object.assign({ref:dt.measureElement,"data-index":e.index,"data-row-id":t.id},o,{children:_He({row:t,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H})}),t.id)})),n>0&&_("tr",{"aria-hidden":!0,children:_("td",{colSpan:nt.length,style:{height:n}})})]})})():A?_(FAe,{sensors:gt,collisionDetection:zRe,modifiers:[KAe],onDragEnd:e=>{const{active:t,over:n}=e;if(!n||t.id===n.id||!L)return;const a=r.findIndex((e=>(I?I(e):e.id)===t.id)),o=r.findIndex((e=>(I?I(e):e.id)===n.id));-1!==a&&-1!==o&&L(XAe([...r],a,o))},children:_(oIe,{items:bt,strategy:rIe,children:lt.map(((e,t)=>{const r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=null==S?void 0:S(e),o=Array.isArray(O)?O.includes(e.id):O===e.id,l={divided:!(!r||F)||!F,colDivided:W,"data-state":e.getIsSelected()?"selected":void 0,"data-highlighted":o?"true":void 0,className:Ax(n,V&&"cursor-pointer",null==$?void 0:$(e,t)),onClick:V?t=>V(e,t):void 0},i=_He({row:e,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H});return a?_(jze,Object.assign({"data-row-id":e.id},l,{children:i}),e.id):_(MHe,Object.assign({id:e.id,"data-row-id":e.id},l,{children:i}),e.id)}))})}):lt.map(((e,t)=>{const r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=Array.isArray(O)?O.includes(e.id):O===e.id;return _(jze,{divided:!(!r||F)||!F,colDivided:W,"data-state":e.getIsSelected()?"selected":void 0,className:Ax(n,V&&"cursor-pointer",null==$?void 0:$(e,t)),"data-highlighted":a?"true":void 0,onClick:V?t=>V(e,t):void 0,"data-row-id":e.id,children:_He({row:e,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H})},e.id)}))}),"infinite"===h&&k&&!it&&ot.getVisibleLeafColumns().length>0&&_("tfoot",{className:"[&_tr]:bg-table-c-row-bg",children:_(jze,{divided:!1,className:"hover:!bg-table-c-row-bg border-t border-t-table-c-row-line",children:_(Oze,{colSpan:ot.getVisibleLeafColumns().length,className:"py-3 text-center typography-body3 text-text-g-contrast-medium bg-inherit",children:x("span",{role:"status","aria-live":"polite",className:"inline-flex items-center justify-center gap-2",children:[_(c0,{className:"size-4 shrink-0 animate-spin","aria-hidden":!0}),w]})})})})]})}),at&&_(zze,Object.assign({},ht)),xe&&We&&x(DPe,{children:[_("div",{className:"fixed inset-0 z-40",onClick:()=>$e(!1)}),_("div",{className:"fixed z-50 w-[460px] rounded-lg bg-modal-surface shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] overflow-hidden",style:{top:Xe.top,right:Xe.right},onClick:e=>e.stopPropagation(),children:_(AHe,{table:ot,onClose:()=>$e(!1),maxListHeight:Xe.maxListHeight,options:Me})})]})]})})}var LHe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});var SHe,VHe="dismissableLayer.update",HHe="dismissableLayer.pointerDownOutside",NHe="dismissableLayer.focusOutside",ZHe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DHe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(ZHe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){qHe(HHe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){qHe(NHe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(SHe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),BHe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=SHe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),BHe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(VHe,e),()=>document.removeEventListener(VHe,e)}),[]),_(LHe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));DHe.displayName="DismissableLayer";function BHe(){const e=new CustomEvent(VHe);document.dispatchEvent(e)}function qHe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(ZHe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(LHe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var THe="focusScope.autoFocusOnMount",FHe="focusScope.autoFocusOnUnmount",WHe={bubbles:!1,cancelable:!0},$He=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:KHe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||KHe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&KHe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){XHe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(THe,WHe);s.addEventListener(THe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(KHe(n,{select:t}),document.activeElement!==r)return}((e=UHe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&KHe(s))}return()=>{s.removeEventListener(THe,d),setTimeout((()=>{const e=new CustomEvent(FHe,WHe);s.addEventListener(FHe,u),s.dispatchEvent(e),e.defaultPrevented||KHe(t??document.body,{select:!0}),s.removeEventListener(FHe,u),XHe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=UHe(e),r=GHe(t,e),n=GHe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&KHe(o,{select:!0})):(e.preventDefault(),n&&KHe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(LHe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function UHe(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 GHe(e,t){for(const r of e)if(!YHe(r,{upTo:t}))return r}function YHe(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 KHe(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()}}$He.displayName="FocusScope";var XHe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=QHe(e,t),e.unshift(t)},remove(t){e=QHe(e,t),e[0]?.resume()}}}();function QHe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var JHe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(LHe.div,{...a,ref:r}),i):null}));JHe.displayName="Portal";var eNe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=tNe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=tNe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=tNe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=tNe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function tNe(e){return e?.animationName||"none"}eNe.displayName="Presence";var rNe="Dialog",[nNe,aNe]=H_e(rNe),[oNe,lNe]=nNe(rNe),iNe=t=>{const{__scopeDialog:r,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:i=!0}=t,s=e.useRef(null),c=e.useRef(null),[d=!1,u]=B_e({prop:a,defaultProp:o,onChange:l});return _(oNe,{scope:r,triggerRef:s,contentRef:c,contentId:zEe(),titleId:zEe(),descriptionId:zEe(),open:d,onOpenChange:u,onOpenToggle:e.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};iNe.displayName=rNe;var sNe="DialogTrigger",cNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(sNe,r),o=V_e(t,a.triggerRef);return _(LHe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":CNe(a.open),...n,ref:o,onClick:Z_e(e.onClick,a.onOpenToggle)})}));cNe.displayName=sNe;var dNe="DialogPortal",[uNe,hNe]=nNe(dNe,{forceMount:void 0}),fNe=t=>{const{__scopeDialog:r,forceMount:n,children:a,container:o}=t,l=lNe(dNe,r);return _(uNe,{scope:r,forceMount:n,children:e.Children.map(a,(e=>_(eNe,{present:n||l.open,children:_(JHe,{asChild:!0,container:o,children:e})})))})};fNe.displayName=dNe;var pNe="DialogOverlay",vNe=e.forwardRef(((e,t)=>{const r=hNe(pNe,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=lNe(pNe,e.__scopeDialog);return o.modal?_(eNe,{present:n||o.open,children:_(mNe,{...a,ref:t})}):null}));vNe.displayName=pNe;var mNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(pNe,r);return _(YOe,{as:U_e,allowPinchZoom:!0,shards:[a.contentRef],children:_(LHe.div,{"data-state":CNe(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})})),yNe="DialogContent",gNe=e.forwardRef(((e,t)=>{const r=hNe(yNe,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=lNe(yNe,e.__scopeDialog);return _(eNe,{present:n||o.open,children:o.modal?_(bNe,{...a,ref:t}):_(kNe,{...a,ref:t})})}));gNe.displayName=yNe;var bNe=e.forwardRef(((t,r)=>{const n=lNe(yNe,t.__scopeDialog),a=e.useRef(null),o=V_e(r,n.contentRef,a);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(wNe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Z_e(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()))})})),kNe=e.forwardRef(((t,r)=>{const n=lNe(yNe,t.__scopeDialog),a=e.useRef(!1),o=e.useRef(!1);return _(wNe,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||n.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const r=e.target,l=n.triggerRef.current?.contains(r);l&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})})),wNe=e.forwardRef(((t,r)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=t,s=lNe(yNe,n),c=e.useRef(null),d=V_e(r,c);return vEe(),x(M,{children:[_($He,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:_(DHe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":CNe(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),x(M,{children:[_(ANe,{titleId:s.titleId}),_(INe,{contentRef:c,descriptionId:s.descriptionId})]})]})})),_Ne="DialogTitle",xNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(_Ne,r);return _(LHe.h2,{id:a.titleId,...n,ref:t})}));xNe.displayName=_Ne;var MNe="DialogDescription",jNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(MNe,r);return _(LHe.p,{id:a.descriptionId,...n,ref:t})}));jNe.displayName=MNe;var ENe="DialogClose",ONe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(ENe,r);return _(LHe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,(()=>a.onOpenChange(!1)))})}));function CNe(e){return e?"open":"closed"}ONe.displayName=ENe;var zNe="DialogTitleWarning",[PNe,RNe]=function(t,r){const n=e.createContext(r),a=t=>{const{children:r,...a}=t,o=e.useMemo((()=>a),Object.values(a));return _(n.Provider,{value:o,children:r})};return a.displayName=t+"Provider",[a,function(a){const o=e.useContext(n);if(o)return o;if(void 0!==r)return r;throw new Error(`\`${a}\` must be used within \`${t}\``)}]}(zNe,{contentName:yNe,titleName:_Ne,docsSlug:"dialog"}),ANe=({titleId:t})=>{const r=RNe(zNe),n=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return e.useEffect((()=>{if(t){document.getElementById(t)||console.error(n)}}),[n,t]),null},INe=({contentRef:t,descriptionId:r})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RNe("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=t.current?.getAttribute("aria-describedby");if(r&&e){document.getElementById(r)||console.warn(n)}}),[n,t,r]),null},LNe=iNe,SNe=cNe,VNe=fNe,HNe=vNe,NNe=gNe,ZNe=xNe,DNe=jNe,BNe=ONe;const qNe=LNe,TNe=SNe,FNe=VNe,WNe=BNe,$Ne=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(HNe,Object.assign({ref:t,className:Ax("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",r)},n))}));$Ne.displayName=HNe.displayName;const UNe=e.forwardRef(((e,t)=>{var{className:r,children:n,showCloseButton:a=!1,closeButtonClassName:o}=e,l=zx(e,["className","children","showCloseButton","closeButtonClassName"]);return x(FNe,{children:[_($Ne,{}),x(NNe,Object.assign({ref:t,className:Ax("fixed left-[50%] top-[50%] z-50 flex w-[calc(100%-32px)] max-w-[650px] translate-x-[-50%] translate-y-[-50%] flex-col gap-6 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 focus:outline-none focus-visible:outline-none 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-[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%]",r)},l,{children:[n,a&&x(BNe,{className:Ax("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",o),children:[_(yu,{className:"h-4 w-4"}),_("span",{className:"sr-only",children:"Close"})]})]}))]})}));UNe.displayName=NNe.displayName;const GNe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-col gap-1 text-left",t)},r))};GNe.displayName="DialogHeader";const YNe=e=>{var{className:t,scrollable:r=!1}=e,n=zx(e,["className","scrollable"]);return _("div",Object.assign({className:Ax("flex flex-1 min-h-0 flex-col",r&&"overflow-y-auto",t)},n))};YNe.displayName="DialogBody";const KNe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-row items-center justify-end gap-4",t)},r))};KNe.displayName="DialogFooter";const XNe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(ZNe,Object.assign({ref:t,className:Ax("typography-h6 tracking-tight text-text-contrast-max",r)},n))}));XNe.displayName=ZNe.displayName;const QNe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(DNe,Object.assign({ref:t,className:Ax("typography-body3 text-text-contrast-max",r)},n))}));QNe.displayName=DNe.displayName;var JNe="AlertDialog",[eZe]=H_e(JNe,[aNe]),tZe=aNe(),rZe=e=>{const{__scopeAlertDialog:t,...r}=e,n=tZe(t);return _(LNe,{...n,...r,modal:!0})};rZe.displayName=JNe;var nZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(SNe,{...a,...n,ref:t})}));nZe.displayName="AlertDialogTrigger";var aZe=e=>{const{__scopeAlertDialog:t,...r}=e,n=tZe(t);return _(VNe,{...n,...r})};aZe.displayName="AlertDialogPortal";var oZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(HNe,{...a,...n,ref:t})}));oZe.displayName="AlertDialogOverlay";var lZe="AlertDialogContent",[iZe,sZe]=eZe(lZe),cZe=e.forwardRef(((t,r)=>{const{__scopeAlertDialog:n,children:a,...o}=t,l=tZe(n),i=e.useRef(null),s=V_e(r,i),c=e.useRef(null);return _(PNe,{contentName:lZe,titleName:dZe,docsSlug:"alert-dialog",children:_(iZe,{scope:n,cancelRef:c,children:x(NNe,{role:"alertdialog",...l,...o,ref:s,onOpenAutoFocus:Z_e(o.onOpenAutoFocus,(e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[_(Y_e,{children:a}),_(yZe,{contentRef:i})]})})})}));cZe.displayName=lZe;var dZe="AlertDialogTitle",uZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(ZNe,{...a,...n,ref:t})}));uZe.displayName=dZe;var hZe="AlertDialogDescription",fZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(DNe,{...a,...n,ref:t})}));fZe.displayName=hZe;var pZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(BNe,{...a,...n,ref:t})}));pZe.displayName="AlertDialogAction";var vZe="AlertDialogCancel",mZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=sZe(vZe,r),o=tZe(r),l=V_e(t,a);return _(BNe,{...o,...n,ref:l})}));mZe.displayName=vZe;var yZe=({contentRef:t})=>{const r=`\`${lZe}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${lZe}\` by passing a \`${hZe}\` 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 \`${lZe}\`. 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 e.useEffect((()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)}),[r,t]),null},gZe=oZe,bZe=cZe,kZe=pZe,wZe=mZe,_Ze=uZe,xZe=fZe;const MZe=rZe,jZe=nZe,EZe=aZe,OZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(gZe,Object.assign({className:Ax("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",r)},n,{ref:t}))}));OZe.displayName=gZe.displayName;const CZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return x(EZe,{children:[_(OZe,{}),_(bZe,Object.assign({ref:t,className:Ax("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-32px)] max-w-[460px] translate-x-[-50%] translate-y-[-50%] gap-6 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 focus:outline-none focus-visible:outline-none 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-[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%]",r)},n))]})}));CZe.displayName=bZe.displayName;const zZe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-col items-center gap-2 text-center",t)},r))};zZe.displayName="AlertDialogHeader";const PZe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-row items-center justify-center gap-4",t)},r))};PZe.displayName="AlertDialogFooter";const RZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(_Ze,Object.assign({ref:t,className:Ax("typography-subtitle3 text-text-contrast-max",r)},n))}));RZe.displayName=_Ze.displayName;const AZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(xZe,Object.assign({ref:t,className:Ax("typography-body3 text-text-contrast-max",r)},n))}));AZe.displayName=xZe.displayName;const IZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(kZe,Object.assign({ref:t,className:Ax(Px({fullwidth:!1}),"min-w-[100px] justify-center",r)},n))}));IZe.displayName=kZe.displayName;const LZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(wZe,Object.assign({ref:t,className:Ax(Px({fullwidth:!1,variant:"outline"}),"min-w-[100px] justify-center whitespace-pre-line",r)},n))}));LZe.displayName=wZe.displayName;const SZe=r(((e,t)=>{const{label:r="Search",required:n=!1}=e,a=zx(e,["label","required"]);return _(L_e,Object.assign({label:r,required:n},a,{ref:t,keepCloseIconOnValue:!0,hasClearIcon:!0,hasSearchIcon:!0,endIcon:null,filterMode:!0,isFloatingLabel:!1,segmentedInput:!1}))})),VZe=j(["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}}),HZe=r(((e,t)=>{var{id:r,options:o=[],values:c=[],label:d,size:u="md",rounded:h="normal",variant:p="outline",helperText:v,errorMessage:m,fullwidth:y=!0,disabled:g=!1,error:b=!1,filterMode:k=!1,required:w=!0,onChangeText:M,onSelect:j,renderOptions:E,optionContainerClassName:O}=e,C=zx(e,["id","options","values","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect","renderOptions","optionContainerClassName"]);const z=r||`${d}-select`,[P,R]=i(!1),[A,I]=i(c),[L,S]=i(""),V=n(""),H=n(null);s((()=>{var e;I(null!=c?c:[]),S(null!==(e=null==c?void 0:c.map((e=>e.label)).join(", "))&&void 0!==e?e:"")}),[c]),s((()=>{const e=e=>{H.current&&!H.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const N=a((e=>{null==M||M(e),S(e.target.value),e.target.value||q(e)}),[M]),Z=a((e=>{const t=A.some((t=>t.value===e.value));let r=[...A];t?r=r.filter((t=>t.value!==e.value)):r.push(e),I(r),S(r.map((e=>e.label)).join(", ")),null==j||j(r)}),[A,j]),D=l((()=>{const e=null==L?void 0:L.split(",").pop(),t=null!=e?e:"";return o.filter((e=>{var r;return!k||(null===(r=e.label)||void 0===r?void 0:r.toLowerCase().includes(null==t?void 0:t.toLowerCase()))}))}),[o,k,L]),B=a((e=>{var t;R(!0),null===(t=null==C?void 0:C.onFocus)||void 0===t||t.call(C,e)}),[null==C?void 0:C.onFocus]),q=a((e=>{const t=D.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"!==V.current&&(I(t),S(t.map((e=>e.label)).join(", ")),null==j||j(t))}),[D,L]),T=a((e=>{var t;V.current=e.code,null===(t=null==C?void 0:C.onKeyDown)||void 0===t||t.call(C,e)}),[null==C?void 0:C.onKeyDown]),F=VZe({size:u,rounded:h,error:b,active:!!c.length,disabled:g}),W="lg"===u?"size-8":"md"===u?"size-[22px]":"size-[18px]";return x("div",{ref:H,className:"relative "+(y?"w-full":""),children:[_(Yme,Object.assign({hasClearIcon:!1,endIcon:_(nye,{type:"heroicons",name:"adjustments-horizontal",variant:"outline",color:"inherit",stroke:"inherit",fill:"transparent",className:W}),classes:{endIconWrapper:F}},C,{ref:t,readOnly:!k,value:L,onChange:N,label:d,placeholder:" ",type:"text",rounded:h,variant:p,helperText:v,errorMessage:m,fullwidth:y,error:b,required:w,id:z,disabled:g,size:u,className:A_e({size:u}),onFocus:B,onKeyDown:T})),P&&(E?E({optionsFiltered:D,selectedOptions:A,onClick:Z}):x("ul",{className:Ax("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",O),children:[D.map((e=>e.renderLabel?_(f,{children:e.renderLabel({value:e.value,label:e.label,handleOnClick:()=>Z(e),className:"p-4 typography-subtitle4 hover:bg-gray-100 cursor-pointer flex items-center gap-3 "+(A.some((t=>t.value===e.value))?"bg-gray-200":"")})},e.value):x("li",{onMouseDown:()=>Z(e),className:"p-4 text-text-g-contrast-high typography-subtitle4 hover:bg-primary-hover-bg cursor-pointer flex items-center gap-3 "+(A.some((t=>t.value===e.value))?"bg-modal-highlight":""),children:[_(uxe,{checked:A.some((t=>t.value===e.value))}),e.label]},e.value))),0===D.length&&_("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]}))]})}));function NZe(e,[t,r]){return Math.min(r,Math.max(t,e))}var ZZe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function DZe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var BZe=["PageUp","PageDown"],qZe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],TZe={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},FZe="Slider",[WZe,$Ze,UZe]=function(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},DZe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}(FZe),[GZe]=H_e(FZe,[UZe]),[YZe,KZe]=GZe(FZe),XZe=e.forwardRef(((t,r)=>{const{name:n,min:a=0,max:o=100,step:l=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:d=[a],value:u,onValueChange:h=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:v,...m}=t,y=e.useRef(new Set),g=e.useRef(0),b="horizontal"===i?eDe:tDe,[k=[],w]=B_e({prop:u,defaultProp:d,onChange:e=>{const t=[...y.current];t[g.current]?.focus(),h(e)}}),x=e.useRef(k);function M(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(l),i=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/l)*l+a,n),s=NZe(i,[a,o]);w(((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,c*l)){g.current=n.indexOf(s);const t=String(n)!==String(e);return t&&r&&f(n),t?n:e}return e}))}return _(YZe,{scope:t.__scopeSlider,name:n,disabled:s,min:a,max:o,valueIndexToChangeRef:g,thumbs:y.current,values:k,orientation:i,form:v,children:_(WZe.Provider,{scope:t.__scopeSlider,children:_(WZe.Slot,{scope:t.__scopeSlider,children:_(b,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:r,onPointerDown:Z_e(m.onPointerDown,(()=>{s||(x.current=k)})),min:a,max:o,inverted:p,onSlideStart:s?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)}(k,e);M(e,t)},onSlideMove:s?void 0:function(e){M(e,g.current)},onSlideEnd:s?void 0:function(){const e=x.current[g.current];k[g.current]!==e&&f(k)},onHomeKeyDown:()=>!s&&M(a,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,k.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const r=BZe.includes(e.key)||e.shiftKey&&qZe.includes(e.key)?10:1,n=g.current;M(k[n]+l*r*t,n,{commit:!0})}}})})})})}));XZe.displayName=FZe;var[QZe,JZe]=GZe(FZe,{startEdge:"left",endEdge:"right",size:"width",direction:1}),eDe=e.forwardRef(((t,r)=>{const{min:n,max:a,dir:o,inverted:l,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:d,...u}=t,[h,f]=e.useState(null),p=V_e(r,(e=>f(e))),v=e.useRef(),m=_Ie(o),y="ltr"===m,g=y&&!l||!y&&l;function b(e){const t=v.current||h.getBoundingClientRect(),r=hDe([0,t.width],g?[n,a]:[a,n]);return v.current=t,r(e-t.left)}return _(QZe,{scope:t.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:_(rDe,{dir:m,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);i?.(t)},onSlideMove:e=>{const t=b(e.clientX);s?.(t)},onSlideEnd:()=>{v.current=void 0,c?.()},onStepKeyDown:e=>{const t=TZe[g?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),tDe=e.forwardRef(((t,r)=>{const{min:n,max:a,inverted:o,onSlideStart:l,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...d}=t,u=e.useRef(null),h=V_e(r,u),f=e.useRef(),p=!o;function v(e){const t=f.current||u.current.getBoundingClientRect(),r=hDe([0,t.height],p?[a,n]:[n,a]);return f.current=t,r(e-t.top)}return _(QZe,{scope:t.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:_(rDe,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=v(e.clientY);l?.(t)},onSlideMove:e=>{const t=v(e.clientY);i?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{const t=TZe[p?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),rDe=e.forwardRef(((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:l,onEndKeyDown:i,onStepKeyDown:s,...c}=e,d=KZe(FZe,r);return _(ZZe.span,{...c,ref:t,onKeyDown:Z_e(e.onKeyDown,(e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(i(e),e.preventDefault()):BZe.concat(qZe).includes(e.key)&&(s(e),e.preventDefault())})),onPointerDown:Z_e(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)})),onPointerMove:Z_e(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)})),onPointerUp:Z_e(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))}))})})),nDe="SliderTrack",aDe=e.forwardRef(((e,t)=>{const{__scopeSlider:r,...n}=e,a=KZe(nDe,r);return _(ZZe.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:t})}));aDe.displayName=nDe;var oDe="SliderRange",lDe=e.forwardRef(((t,r)=>{const{__scopeSlider:n,...a}=t,o=KZe(oDe,n),l=JZe(oDe,n),i=V_e(r,e.useRef(null)),s=o.values.length,c=o.values.map((e=>uDe(e,o.min,o.max))),d=s>1?Math.min(...c):0,u=100-Math.max(...c);return _(ZZe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...a,ref:i,style:{...t.style,[l.startEdge]:d+"%",[l.endEdge]:u+"%"}})}));lDe.displayName=oDe;var iDe="SliderThumb",sDe=e.forwardRef(((t,r)=>{const n=$Ze(t.__scopeSlider),[a,o]=e.useState(null),l=V_e(r,(e=>o(e))),i=e.useMemo((()=>a?n().findIndex((e=>e.ref.current===a)):-1),[n,a]);return _(cDe,{...t,ref:l,index:i})})),cDe=e.forwardRef(((t,r)=>{const{__scopeSlider:n,index:a,name:o,...l}=t,i=KZe(iDe,n),s=JZe(iDe,n),[c,d]=e.useState(null),u=V_e(r,(e=>d(e))),h=!c||(i.form||!!c.closest("form")),f=F_e(c),p=i.values[a],v=void 0===p?0:uDe(p,i.min,i.max),m=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,i.values.length),y=f?.[s.size],g=y?function(e,t,r){const n=e/2,a=hDe([0,50],[0,n]);return(n-a(t)*r)*r}(y,v,s.direction):0;return e.useEffect((()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}}),[c,i.thumbs]),x("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${v}% + ${g}px)`},children:[_(WZe.ItemSlot,{scope:t.__scopeSlider,children:_(ZZe.span,{role:"slider","aria-label":t["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":p,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...l,ref:u,style:void 0===p?{display:"none"}:t.style,onFocus:Z_e(t.onFocus,(()=>{i.valueIndexToChangeRef.current=a}))})}),h&&_(dDe,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:p},a)]})}));sDe.displayName=iDe;var dDe=t=>{const{value:r,...n}=t,a=e.useRef(null),o=q_e(r);return e.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]),_("input",{style:{display:"none"},...n,ref:a,defaultValue:r})};function uDe(e,t,r){return NZe(100/(r-t)*(e-t),[0,100])}function hDe(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 fDe=XZe,pDe=aDe,vDe=lDe,mDe=sDe;const yDe=e.forwardRef(((e,t)=>{var{className:r,trackClassName:n,rangeClassName:a,thumbClassName:o,thumbStyle:l,trackStyle:i,rangeStyle:s}=e,c=zx(e,["className","trackClassName","rangeClassName","thumbClassName","thumbStyle","trackStyle","rangeStyle"]);return x(fDe,Object.assign({ref:t,className:Ax("relative flex w-full touch-none select-none items-center",r)},c,{children:[_(pDe,{className:Ax("relative h-2 w-full grow overflow-hidden rounded-full bg-grey-50",n),style:i,children:_(vDe,{className:Ax("absolute h-full bg-primary",a),style:s})}),_(mDe,{className:Ax("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",o),style:l})]}))}));yDe.displayName=fDe.displayName;var gDe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});var bDe,kDe="dismissableLayer.update",wDe="dismissableLayer.pointerDownOutside",_De="dismissableLayer.focusOutside",xDe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MDe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(xDe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){EDe(wDe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){EDe(_De,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(bDe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),jDe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=bDe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),jDe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(kDe,e),()=>document.removeEventListener(kDe,e)}),[]),_(gDe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));MDe.displayName="DismissableLayer";function jDe(){const e=new CustomEvent(kDe);document.dispatchEvent(e)}function EDe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(xDe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(gDe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var ODe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(gDe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));ODe.displayName="Arrow";var CDe=ODe;function zDe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var PDe="Popper",[RDe,ADe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},zDe(a,...r)]}(PDe),[IDe,LDe]=RDe(PDe),SDe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(IDe,{scope:r,anchor:a,onAnchorChange:o,children:n})};SDe.displayName=PDe;var VDe="PopperAnchor",HDe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=LDe(VDe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(gDe.div,{...o,ref:s})}));HDe.displayName=VDe;var NDe="PopperContent",[ZDe,DDe]=RDe(NDe),BDe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=LDe(NDe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(WDe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),$De({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=UDe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(ZDe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(gDe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));BDe.displayName=NDe;var qDe="PopperArrow",TDe={top:"bottom",right:"left",bottom:"top",left:"right"},FDe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=DDe(qDe,r),o=TDe[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(CDe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function WDe(e){return null!==e}FDe.displayName=qDe;var $De=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]=UDe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function UDe(e){const[t,r="center"]=e.split("-");return[t,r]}var GDe=SDe,YDe=HDe,KDe=BDe,XDe=FDe;var QDe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=JDe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=JDe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=JDe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=JDe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function JDe(e){return e?.animationName||"none"}QDe.displayName="Presence";var eBe=e.forwardRef(((e,t)=>_(gDe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));eBe.displayName="VisuallyHidden";var tBe=eBe,[rBe]=H_e("Tooltip",[ADe]),nBe=ADe(),aBe="TooltipProvider",oBe=700,lBe="tooltip.open",[iBe,sBe]=rBe(aBe),cBe=t=>{const{__scopeTooltip:r,delayDuration:n=oBe,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:l}=t,[i,s]=e.useState(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),_(iBe,{scope:r,isOpenDelayed:i,delayDuration:n,onOpen:e.useCallback((()=>{window.clearTimeout(d.current),s(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),a)}),[a]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback((e=>{c.current=e}),[]),disableHoverableContent:o,children:l})};cBe.displayName=aBe;var dBe="Tooltip",[uBe,hBe]=rBe(dBe),fBe=t=>{const{__scopeTooltip:r,children:n,open:a,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=t,c=sBe(dBe,t.__scopeTooltip),d=nBe(r),[u,h]=e.useState(null),f=zEe(),p=e.useRef(0),v=i??c.disableHoverableContent,m=s??c.delayDuration,y=e.useRef(!1),[g=!1,b]=B_e({prop:a,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(lBe))):c.onClose(),l?.(e)}}),k=e.useMemo((()=>g?y.current?"delayed-open":"instant-open":"closed"),[g]),w=e.useCallback((()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,b(!0)}),[b]),x=e.useCallback((()=>{window.clearTimeout(p.current),p.current=0,b(!1)}),[b]),M=e.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{y.current=!0,b(!0),p.current=0}),m)}),[m,b]);return e.useEffect((()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)}),[]),_(GDe,{...d,children:_(uBe,{scope:r,contentId:f,open:g,stateAttribute:k,trigger:u,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{c.isOpenDelayed?M():w()}),[c.isOpenDelayed,M,w]),onTriggerLeave:e.useCallback((()=>{v?x():(window.clearTimeout(p.current),p.current=0)}),[x,v]),onOpen:w,onClose:x,disableHoverableContent:v,children:n})})};fBe.displayName=dBe;var pBe="TooltipTrigger",vBe=e.forwardRef(((t,r)=>{const{__scopeTooltip:n,...a}=t,o=hBe(pBe,n),l=sBe(pBe,n),i=nBe(n),s=V_e(r,e.useRef(null),o.onTriggerChange),c=e.useRef(!1),d=e.useRef(!1),u=e.useCallback((()=>c.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),_(YDe,{asChild:!0,...i,children:_(gDe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:s,onPointerMove:Z_e(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:Z_e(t.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:Z_e(t.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:Z_e(t.onFocus,(()=>{c.current||o.onOpen()})),onBlur:Z_e(t.onBlur,o.onClose),onClick:Z_e(t.onClick,o.onClose)})})}));vBe.displayName=pBe;var[mBe,yBe]=rBe("TooltipPortal",{forceMount:void 0}),gBe="TooltipContent",bBe=e.forwardRef(((e,t)=>{const r=yBe(gBe,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,l=hBe(gBe,e.__scopeTooltip);return _(QDe,{present:n||l.open,children:l.disableHoverableContent?_(xBe,{side:a,...o,ref:t}):_(kBe,{side:a,...o,ref:t})})})),kBe=e.forwardRef(((t,r)=>{const n=hBe(gBe,t.__scopeTooltip),a=sBe(gBe,t.__scopeTooltip),o=e.useRef(null),l=V_e(r,o),[i,s]=e.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:h}=a,f=e.useCallback((()=>{s(null),h(!1)}),[h]),p=e.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())]);s(o),h(!0)}),[h]);return e.useEffect((()=>()=>f()),[f]),e.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,f]),e.useEffect((()=>{if(i){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||u?.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,i);n?f():a&&(f(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,d,f]),_(xBe,{...t,ref:l})})),[wBe,_Be]=rBe(dBe,{isInside:!1}),xBe=e.forwardRef(((t,r)=>{const{__scopeTooltip:n,children:a,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=t,c=hBe(gBe,n),d=nBe(n),{onClose:u}=c;return e.useEffect((()=>(document.addEventListener(lBe,u),()=>document.removeEventListener(lBe,u))),[u]),e.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),_(MDe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:x(KDe,{"data-state":c.stateAttribute,...d,...s,ref:r,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[_(Y_e,{children:a}),_(wBe,{scope:n,isInside:!0,children:_(tBe,{id:c.contentId,role:"tooltip",children:o||a})})]})})}));bBe.displayName=gBe;var MBe="TooltipArrow",jBe=e.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,a=nBe(r);return _Be(MBe,r).isInside?null:_(XDe,{...a,...n,ref:t})}));jBe.displayName=MBe;var EBe=bBe;const OBe=cBe,CBe=fBe,zBe=vBe,PBe=jBe,RBe=e.forwardRef(((e,t)=>{var{className:r,sideOffset:n=4}=e,a=zx(e,["className","sideOffset"]);return _(EBe,Object.assign({ref:t,sideOffset:n,className:Ax("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",r)},a))}));function ABe(e){var{children:t,content:r,open:n,defaultOpen:a,onOpenChange:o}=e,l=zx(e,["children","content","open","defaultOpen","onOpenChange"]);return _(OBe,{children:x(CBe,{open:n,defaultOpen:a,onOpenChange:o,children:[_(zBe,{asChild:!0,children:t}),x(RBe,Object.assign({side:"top",align:"center"},l,{children:[r,_(PBe,{width:11,height:5})]}))]})})}function IBe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}RBe.displayName=EBe.displayName;var LBe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function SBe(e,t){e&&O.flushSync((()=>e.dispatchEvent(t)))}var VBe,HBe="dismissableLayer.update",NBe="dismissableLayer.pointerDownOutside",ZBe="dismissableLayer.focusOutside",DBe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),BBe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(DBe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){FBe(NBe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){FBe(ZBe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(VBe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),TBe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=VBe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),TBe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(HBe,e),()=>document.removeEventListener(HBe,e)}),[]),_(LBe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));BBe.displayName="DismissableLayer";var qBe=e.forwardRef(((t,r)=>{const n=e.useContext(DBe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(LBe.div,{...t,ref:o})}));function TBe(){const e=new CustomEvent(HBe);document.dispatchEvent(e)}function FBe(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?SBe(a,o):a.dispatchEvent(o)}qBe.displayName="DismissableLayerBranch";var WBe=BBe,$Be=qBe,UBe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(LBe.div,{...a,ref:r}),i):null}));UBe.displayName="Portal";var GBe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=YBe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=YBe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=YBe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=YBe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function YBe(e){return e?.animationName||"none"}GBe.displayName="Presence";var KBe=e.forwardRef(((e,t)=>_(LBe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));KBe.displayName="VisuallyHidden";var XBe="ToastProvider",[QBe,JBe,eqe]=function(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},IBe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}("Toast"),[tqe]=H_e("Toast",[eqe]),[rqe,nqe]=tqe(XBe),aqe=t=>{const{__scopeToast:r,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:i}=t,[s,c]=e.useState(null),[d,u]=e.useState(0),h=e.useRef(!1),f=e.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${XBe}\`. Expected non-empty \`string\`.`),_(QBe.Provider,{scope:r,children:_(rqe,{scope:r,label:n,duration:a,swipeDirection:o,swipeThreshold:l,toastCount:d,viewport:s,onViewportChange:c,onToastAdd:e.useCallback((()=>u((e=>e+1))),[]),onToastRemove:e.useCallback((()=>u((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:i})})};aqe.displayName=XBe;var oqe="ToastViewport",lqe=["F8"],iqe="toast.viewportPause",sqe="toast.viewportResume",cqe=e.forwardRef(((t,r)=>{const{__scopeToast:n,hotkey:a=lqe,label:o="Notifications ({hotkey})",...l}=t,i=nqe(oqe,n),s=JBe(n),c=e.useRef(null),d=e.useRef(null),u=e.useRef(null),h=e.useRef(null),f=V_e(r,h,i.onViewportChange),p=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;e.useEffect((()=>{const e=e=>{const t=0!==a.length&&a.every((t=>e[t]||e.code===t));t&&h.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[a]),e.useEffect((()=>{const e=c.current,t=h.current;if(v&&e&&t){const r=()=>{if(!i.isClosePausedRef.current){const e=new CustomEvent(iqe);t.dispatchEvent(e),i.isClosePausedRef.current=!0}},n=()=>{if(i.isClosePausedRef.current){const e=new CustomEvent(sqe);t.dispatchEvent(e),i.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)}}}),[v,i.isClosePausedRef]);const m=e.useCallback((({tabbingDirection:e})=>{const t=s().map((t=>{const r=t.ref.current,n=[r,...Cqe(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[s]);return e.useEffect((()=>{const e=h.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 d.current?.focus();const a=m({tabbingDirection:n?"backwards":"forwards"}),o=a.findIndex((e=>e===r));zqe(a.slice(o+1))?t.preventDefault():n?d.current?.focus():u.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[s,m]),x($Be,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&_(uqe,{ref:d,onFocusFromOutsideViewport:()=>{zqe(m({tabbingDirection:"forwards"}))}}),_(QBe.Slot,{scope:n,children:_(LBe.ol,{tabIndex:-1,...l,ref:f})}),v&&_(uqe,{ref:u,onFocusFromOutsideViewport:()=>{zqe(m({tabbingDirection:"backwards"}))}})]})}));cqe.displayName=oqe;var dqe="ToastFocusProxy",uqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,o=nqe(dqe,r);return _(KBe,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!o.viewport?.contains(t)&&n()}})}));uqe.displayName=dqe;var hqe="Toast",fqe=e.forwardRef(((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:o,...l}=e,[i=!0,s]=B_e({prop:n,defaultProp:a,onChange:o});return _(GBe,{present:r||i,children:_(mqe,{open:i,...l,ref:t,onClose:()=>s(!1),onPause:D_e(e.onPause),onResume:D_e(e.onResume),onSwipeStart:Z_e(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Z_e(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:Z_e(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:Z_e(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`),s(!1)}))})})}));fqe.displayName=hqe;var[pqe,vqe]=tqe(hqe,{onClose(){}}),mqe=e.forwardRef(((t,r)=>{const{__scopeToast:n,type:a="foreground",duration:o,open:l,onClose:i,onEscapeKeyDown:s,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...v}=t,m=nqe(hqe,n),[y,g]=e.useState(null),b=V_e(r,(e=>g(e))),k=e.useRef(null),w=e.useRef(null),j=o||m.duration,E=e.useRef(0),C=e.useRef(j),z=e.useRef(0),{onToastAdd:P,onToastRemove:R}=m,A=D_e((()=>{const e=y?.contains(document.activeElement);e&&m.viewport?.focus(),i()})),I=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(z.current),E.current=(new Date).getTime(),z.current=window.setTimeout(A,e))}),[A]);e.useEffect((()=>{const e=m.viewport;if(e){const t=()=>{I(C.current),d?.()},r=()=>{const e=(new Date).getTime()-E.current;C.current=C.current-e,window.clearTimeout(z.current),c?.()};return e.addEventListener(iqe,r),e.addEventListener(sqe,t),()=>{e.removeEventListener(iqe,r),e.removeEventListener(sqe,t)}}}),[m.viewport,j,c,d,I]),e.useEffect((()=>{l&&!m.isClosePausedRef.current&&I(j)}),[l,j,m.isClosePausedRef,I]),e.useEffect((()=>(P(),()=>R())),[P,R]);const L=e.useMemo((()=>y?jqe(y):null),[y]);return m.viewport?x(M,{children:[L&&_(yqe,{__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite","aria-atomic":!0,children:L}),_(pqe,{scope:n,onClose:A,children:O.createPortal(_(QBe.ItemSlot,{scope:n,children:_(WBe,{asChild:!0,onEscapeKeyDown:Z_e(s,(()=>{m.isFocusedToastEscapeKeyDownRef.current||A(),m.isFocusedToastEscapeKeyDownRef.current=!1})),children:_(LBe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Z_e(t.onKeyDown,(e=>{"Escape"===e.key&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,A()))})),onPointerDown:Z_e(t.onPointerDown,(e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:Z_e(t.onPointerMove,(e=>{if(!k.current)return;const t=e.clientX-k.current.x,r=e.clientY-k.current.y,n=Boolean(w.current),a=["left","right"].includes(m.swipeDirection),o=["left","up"].includes(m.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?(w.current=c,Eqe("toast.swipeMove",h,d,{discrete:!1})):Oqe(c,m.swipeDirection,s)?(w.current=c,Eqe("toast.swipeStart",u,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(k.current=null)})),onPointerUp:Z_e(t.onPointerUp,(e=>{const t=w.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),w.current=null,k.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};Oqe(t,m.swipeDirection,m.swipeThreshold)?Eqe("toast.swipeEnd",p,n,{discrete:!0}):Eqe("toast.swipeCancel",f,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),m.viewport)})]}):null})),yqe=t=>{const{__scopeToast:r,children:n,...a}=t,o=nqe(hqe,r),[l,i]=e.useState(!1),[s,c]=e.useState(!1);return function(e=()=>{}){const t=D_e(e);T_e((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>i(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),s?null:_(UBe,{asChild:!0,children:_(KBe,{...a,children:l&&x(M,{children:[o.label," ",n]})})})},gqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return _(LBe.div,{...n,ref:t})}));gqe.displayName="ToastTitle";var bqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return _(LBe.div,{...n,ref:t})}));bqe.displayName="ToastDescription";var kqe="ToastAction",wqe=e.forwardRef(((e,t)=>{const{altText:r,...n}=e;return r.trim()?_(Mqe,{altText:r,asChild:!0,children:_(xqe,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kqe}\`. Expected non-empty \`string\`.`),null)}));wqe.displayName=kqe;var _qe="ToastClose",xqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e,a=vqe(_qe,r);return _(Mqe,{asChild:!0,children:_(LBe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,a.onClose)})})}));xqe.displayName=_qe;var Mqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return _(LBe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})}));function jqe(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(...jqe(e))}})),t}function Eqe(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?SBe(a,o):a.dispatchEvent(o)}var Oqe=(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 Cqe(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 zqe(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var Pqe=aqe,Rqe=cqe,Aqe=fqe,Iqe=gqe,Lqe=bqe,Sqe=wqe,Vqe=xqe;const Hqe=j(["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}}),Nqe=j(["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"}}),Zqe=j(["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"}}),Dqe=j(["flex flex-1"],{variants:{contentMode:{horizontal:"items-center flex-row gap-2",vertical:"items-start flex-col gap-0"}},defaultVariants:{contentMode:"vertical"}}),Bqe=Pqe,qqe=e.forwardRef(((e,t)=>{var{className:r,position:n}=e,a=zx(e,["className","position"]);return _(Rqe,Object.assign({ref:t,className:Ax(Nqe({position:n}),r)},a))}));qqe.displayName=Rqe.displayName;const Tqe=e.forwardRef(((e,t)=>{var{className:r,variant:n,showBorder:a}=e,o=zx(e,["className","variant","showBorder"]);return _(Aqe,Object.assign({ref:t,className:Ax(Hqe({variant:n,showBorder:a}),r)},o))}));Tqe.displayName=Aqe.displayName;const Fqe=e.forwardRef(((e,t)=>{var{className:r,children:n}=e,a=zx(e,["className","children"]);return _(Sqe,Object.assign({ref:t,className:Ax("",r)},a,{asChild:!0,children:_(Lx,{variant:"outline",color:"secondary",size:"sm",children:n})}))}));Fqe.displayName=Sqe.displayName;const Wqe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Vqe,Object.assign({ref:t,className:Ax("self-center text-text-g-contrast-high",r),"toast-close":""},n,{asChild:!0,children:_(mye,{variant:"icon",size:"sm",children:_(nye,{type:"heroicons",name:"xmark"})})}))}));Wqe.displayName=Vqe.displayName;const $qe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Iqe,Object.assign({ref:t,className:Ax("typography-subtitle6",r)},n))}));$qe.displayName=Iqe.displayName;const Uqe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Lqe,Object.assign({ref:t,className:Ax("typography-subtitle4 text-text-g-contrast-high",r)},n))}));Uqe.displayName=Lqe.displayName;let Gqe=0;const Yqe=new Map,Kqe=e=>{if(Yqe.has(e))return;const t=setTimeout((()=>{Yqe.delete(e),eTe({type:"REMOVE_TOAST",toastId:e})}),3e3);Yqe.set(e,t)},Xqe=(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?Kqe(r):e.toasts.forEach((e=>{Kqe(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})}},Qqe=[];let Jqe={toasts:[],position:void 0};function eTe(e){Jqe=Xqe(Jqe,e),Qqe.forEach((e=>{e(Jqe)}))}function tTe(e){var t=zx(e,[]);const r=(Gqe=(Gqe+1)%Number.MAX_SAFE_INTEGER,Gqe.toString()),n=()=>eTe({type:"DISMISS_TOAST",toastId:r});return eTe({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=>eTe({type:"UPDATE_TOAST",toast:Object.assign(Object.assign({},e),{id:r})})}}function rTe(t){const[r,n]=e.useState(Jqe);return e.useEffect((()=>(Qqe.push(n),()=>{const e=Qqe.indexOf(n);e>-1&&Qqe.splice(e,1)})),[r]),e.useEffect((()=>{eTe({type:"ADD_POSITION",position:null==t?void 0:t.position})}),[null==t?void 0:t.position]),Object.assign(Object.assign({},r),{toast:tTe,dismiss:e=>eTe({type:"DISMISS_TOAST",toastId:e})})}function nTe(e){var{viewportClassName:t,titleClassName:r,descriptionClassName:n,contentClassName:a,iconWrapperClassName:o,actionWrapperClassName:l}=e,i=zx(e,["viewportClassName","titleClassName","descriptionClassName","contentClassName","iconWrapperClassName","actionWrapperClassName"]);const{toasts:s,position:c}=rTe();return x(Bqe,Object.assign({},i,{children:[s.map((function(e){var{id:t,title:i,description:s,action:c,contentMode:d="horizontal",iconProps:u,renderIcon:h}=e,f=zx(e,["id","title","description","action","contentMode","iconProps","renderIcon"]);const p="error"===f.variant?"circle-x":"warning"===f.variant?"circle-alert":"info"===f.variant?"info":"circle-check",v="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 x(Tqe,Object.assign({},f,{children:[_("div",{className:Ax(Zqe({variant:f.variant}),o),children:h?null==h?void 0:h():_(nye,Object.assign({type:"lucide",name:p,className:"size-[22px]"},u))}),x("div",{className:Ax(Dqe({contentMode:d}),a),children:[i&&_($qe,{className:Ax(v,r),children:i}),s&&_(Uqe,{className:n,children:s})]}),c?_("div",{className:Ax("self-center mx-5",l),children:c}):null,_(Wqe,{})]}),t)})),_(qqe,{position:c,className:t})]}))}const aTe=({id:e,title:t,classes:r,children:n,isFirstLevel:o=!1,isLeaf:i=!1,disabled:c,icon:d,showIcon:u,showExpandButton:h,enableSeparatorLine:f=!0,isLastItem:p,checkable:v,checkIsExpanded:m,checkIsChecked:y,checkAutoDisabled:g,checkIsLoading:b,onExpandChange:k,onCheckedChange:w,onClickItem:M,renderIcon:j,renderElement:E,renderTitle:O,renderRightSection:C,lineSize:z=2,horizontalLineWidth:P=4,expandButtonSize:R=30,spacing:A=2,currentLevel:I=1,maxLevel:L=10,notifyClickItem:S,itemData:V})=>{const H=l((()=>null==b?void 0:b(e)),[b,e]),N=l((()=>y(e)),[y,e]),Z=l((()=>m(e)),[m,e]),D=l((()=>!!(null==n?void 0:n.length)),[n]),B=l((()=>(void 0!==h?h:D)&&I<(L||1/0)),[D,h,L,I]),q=l((()=>!!v&&!i),[v,i]),T=i?21.328:0,F=l((()=>({branch:{width:z,borderBottomLeftRadius:p?z/2:0},horizontalLine:{height:z,width:z+P+(B?0:R+A)+T,marginLeft:-z,borderBottomLeftRadius:z/2},expandButton:{width:R,height:R},childPadding:{paddingLeft:o?R/2-z/2:R/2+P-z/2}})),[z,P,R,A,o,p,B,T]),W=a((()=>{null==k||k(e,!Z,V)}),[e,Z,k,V]);s((()=>{!Z||H||D||W()}),[H,W]);const $=a((()=>{null==M||M(e,V),null==S||S(e,V)}),[e,Z,M,S,V]),U=_(nye,{name:Z?"folder-open":"folder",className:"fill-warning size-[18px]"}),G=null!=d?d:null==j?void 0:j({id:e,expanded:Z,selected:N}),Y=null==C?void 0:C({id:e,expanded:Z,selected:N}),K=O?O({id:e,title:t,expanded:Z,selected:N}):t;return X=_("div",{className:Ax("flex flex-row w-full",null==r?void 0:r.elementWrapper),children:x("div",{className:Ax("flex flex-col w-full",null==r?void 0:r.itemWrapper),children:[x("div",{className:Ax("flex flex-row flex-1",null==r?void 0:r.rowWrapperClasses),children:[x("div",{className:Ax("flex flex-col h-full",null==r?void 0:r.columnWrapperClasses),children:[!o&&_("div",{className:Ax("flex w-[2px] h-1/2 bg-grey-150",null==r?void 0:r.branch),style:F.branch}),!o&&!p&&(Z&&(D||H)||!Z)&&_("div",{className:Ax("flex w-[2px] h-1/2 bg-grey-150",null==r?void 0:r.branch),style:F.branch})]}),x("div",{className:Ax("flex flex-1 items-center py-2 min-h-10",null==r?void 0:r.itemContainer),children:[!o&&_("div",{className:Ax("bg-grey-150",null==r?void 0:r.horizontalLine),style:F.horizontalLine}),o&&!B&&_("div",{className:Ax("flex mr-[2px]",null==r?void 0:r.expandButton),style:F.expandButton}),B&&_("div",{className:Ax("flex mr-[2px]",null==r?void 0:r.expandButton),style:F.expandButton,onClick:!H&&W,children:_(mye,{variant:"icon",size:"sm",children:H?_(Ix,{}):_(nye,{name:Z?"chevron-down":"chevron-right"})})}),q?_(uxe,{id:e,className:Ax("size-[16px]",null==r?void 0:r.checkbox),checked:N,disabled:c,onCheckedChange:t=>null==w?void 0:w(e,t,V)}):_("div",{className:o&&v?Ax("size-[16px]",null==r?void 0:r.checkbox):""}),x("div",{className:Ax("ml-2 gap-1 flex flex-1 items-center text-common-black",null==r?void 0:r.item),onClick:$,children:[u?G||U:null,_("div",{className:Ax("flex flex-1 cursor-pointer text-subtitle5 text-ellipsis overflow-hidden break-all text-left",null==r?void 0:r.title),children:K})]}),Y]})]}),Z&&D&&I<(L||1/0)&&x("div",{className:Ax("flex flex-row overflow-hidden",null==r?void 0:r.expandedChildrenWrapper),children:[!o&&!p&&_("div",{className:Ax("flex w-[2px] h-full bg-grey-150",null==r?void 0:r.branch),style:F.branch}),_("div",{className:Ax("flex flex-col overflow-hidden",null==r?void 0:r.expandedChildrenWrapperInner),style:F.childPadding,children:null==n?void 0:n.map(((e,t)=>_(aTe,Object.assign({classes:r,isLastItem:t===n.length-1,checkIsExpanded:m,checkIsChecked:y,checkAutoDisabled:g,checkIsLoading:b,onExpandChange:k,onCheckedChange:w,renderIcon:j,renderElement:E,renderTitle:O,disabled:g(e.id),showIcon:u,lineSize:z,horizontalLineWidth:P,expandButtonSize:R,spacing:A,notifyClickItem:S,maxLevel:L,currentLevel:I+1,checkable:v},e),e.id)))})]}),f&&o&&!p&&_("div",{className:Ax("bg-grey-150 w-full h-[2px] rounded",null==r?void 0:r.separatorLine)})]})}),E?E({id:e,expanded:Z,selected:N,children:X,styles:F,onClick:$}):X;var X};function oTe(e){const t=n();return s((()=>{t.current=e})),t.current}const lTe=({classes:e,data:t,defaultExpandedId:r,defaultCheckedId:n,checkedId:o,loadingId:l,lineSize:c,horizontalLineWidth:d,expandButtonSize:u,spacing:h,renderIcon:f,renderRightSection:p,renderElement:v,renderTitle:m,onExpandChange:y,onCheckedChange:g,onClickItem:b,onCheckedItem:k,defaultExpandAll:w=!1,defaultCheckAll:x=!1,hierarchicalCheck:M=!1,showIcon:j=!0,disabled:E,enableSeparatorLine:O=!0,checkable:C=!0,maxLevel:z,mode:P="checkbox",autoDisabled:R=!1,checkedAll:A=!1})=>{const[I,L]=i({}),[S,V]=i({}),H=(e,t)=>{e.forEach((e=>{t(e),e.children&&H(e.children,t)}))};s((()=>{if(t.length&&w){const e={};H(t,(t=>{e[t.id]=!0})),V(e)}else if(null==r?void 0:r.length){const e=r.reduce(((e,t)=>(e[t]=!0,e)),{});V(e)}}),[t,r,w]),s((()=>{var e;if(t.length&&x){const e={};H(t,(t=>{e[t.id]=!0})),L(e)}else if(0===(null===(e=Object.keys(I))||void 0===e?void 0:e.length)&&(null==n?void 0:n.length)){const e=n.reduce(((e,t)=>(e[t]=!0,e)),{});L(e)}}),[t,n,x]),s((()=>{void 0!==o&&L(o.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!0})),{}))}),[o]),s((()=>{if(!M)return;const e={},r=(n,a)=>{H(t,(t=>{t.id===n&&t.children&&t.children.forEach((t=>{e[t.id]=a,r(t.id,a)}))}))};L((t=>(Object.keys(t).filter((e=>t[e])).map((e=>{r(e,!0)})),Object.assign(Object.assign({},t),e))))}),[t,M]);const N=oTe(A);s((()=>{if(void 0!==N&&N!==A)if(A){const e={};H(t,(t=>{t.id&&(e[t.id]=!0)})),L(e),null==g||g(e,void 0,null)}else{let e={};L((t=>(e=Object.keys(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!1})),{}),e))),null==g||g(e,void 0,null)}}),[t,A,N]);const Z=a(((e,t,r)=>{null==y||y(e,t,r),V((r=>Object.assign(Object.assign({},r),{[e]:t})))}),[y]),D=a(((e,r,n)=>{if("radio"===P){let t={[e]:r};return null==k||k(e,r,n),L(t),void(null==g||g(t,e,n))}null==k||k(e,r,n);let a=Object.assign(Object.assign({},I),{[e]:r});if(M){a=((e,r,n)=>{n[e]=r;const a=(e,r)=>{H(t,(t=>{t.id===e&&t.children&&t.children.forEach((e=>{n[e.id]=r,a(e.id,r)}))}))},o=(e,r)=>{H(t,(t=>{var n;if(null===(n=t.children)||void 0===n?void 0:n.some((t=>t.id===e))){const e=t.children.every((e=>r[e.id]));r[t.id]=e,o(t.id,r)}}))};return a(e,r),o(e,n),n})(e,r,a)}L(a),g&&(null==g||g(a,e,n))}),[I,t,g,M,k,P,R]),B=a((e=>!!S[e]),[S]),q=a((e=>o?o.includes(e):!!I[e]),[o,I]),T=a((e=>{if(l)return l.includes(e)}),[l]),F=a((e=>{var t;return!(!R||!Object.values(I).filter(Boolean).length)&&(null!==(t=!(null==I?void 0:I[e])||E)&&void 0!==t&&t)}),[I,E,R]);return _("div",{className:Ax("w-full",null==e?void 0:e.container),children:t.map(((r,n)=>_(aTe,Object.assign({classes:e,isFirstLevel:!0,isLastItem:n===t.length-1,checkIsExpanded:B,checkIsChecked:q,onExpandChange:Z,onCheckedChange:D,checkAutoDisabled:F,checkIsLoading:T,renderIcon:f,renderElement:v,renderTitle:m,renderRightSection:p,enableSeparatorLine:O,disabled:F(r.id),showIcon:j,lineSize:c,horizontalLineWidth:d,expandButtonSize:u,spacing:h,notifyClickItem:b,maxLevel:z,currentLevel:1,checkable:C},r),r.id)))})},iTe=({selectedKey:e,children:t,direction:r="vertical",className:a,containerProps:o,scrollAlign:l="center"})=>{const i=n(null),c=n({});s((()=>{e&&(e=>{const t=i.current,n=c.current[e];if(t&&n)if("vertical"===r){const e=t.getBoundingClientRect().top,r=n.getBoundingClientRect().top-e+t.scrollTop,a=t.clientHeight,o=n.offsetHeight;let i=r;"center"===l?i=r-(a/2-o/2):"end"===l&&(i=r+(o-a)),t.scrollTo({top:i,behavior:"smooth"})}else if("horizontal"===r){const e=t.getBoundingClientRect().left,r=n.getBoundingClientRect().left-e+t.scrollLeft,a=t.clientWidth,o=n.offsetWidth;let i=r;"center"===l?i=r-(a/2-o/2):"end"===l&&(i=r+(o-a)),t.scrollTo({left:i,behavior:"smooth"})}})(e)}),[e,r,l]);const d=Array.isArray(t)?t.map((e=>p(e)&&e.key?v(e,{ref:t=>{c.current[String(e.key)]=t}}):e)):t;return _("div",Object.assign({ref:i,className:`overflow-auto ${"vertical"===r?"max-h-60":"max-w-full whitespace-nowrap"} ${null!=a?a:""}`},o,{children:d}))},sTe={m:"ui-scrollbar",s:"ui-scrollbar ui-scrollbar-s",xs:"ui-scrollbar ui-scrollbar-xs"},cTe={vertical:"overflow-y-auto overflow-x-hidden",horizontal:"overflow-x-auto overflow-y-hidden",both:"overflow-auto"},dTe=e.forwardRef(((e,t)=>{var{className:r,scrollbarSize:n="m",direction:a="vertical",children:o}=e,l=zx(e,["className","scrollbarSize","direction","children"]);return _("div",Object.assign({ref:t,className:Ax(cTe[a],sTe[n],r)},l,{children:o}))}));dTe.displayName="ScrollArea";var uTe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function hTe(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},fTe(a,...r)]}function fTe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var pTe="rovingFocusGroup.onEntryFocus",vTe={bubbles:!1,cancelable:!0},mTe="RovingFocusGroup",[yTe,gTe,bTe]=function(e){const r=e+"CollectionProvider",[n,a]=hTe(r),[o,l]=n(r,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:r,children:n}=e,a=t.useRef(null),l=t.useRef(new Map).current;return _(o,{scope:r,itemMap:l,collectionRef:a,children:n})};i.displayName=r;const s=e+"CollectionSlot",c=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,l(s,r).collectionRef);return _(U_e,{ref:a,children:n})}));c.displayName=s;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,i=t.useRef(null),s=V_e(r,i),c=l(d,n);return t.useEffect((()=>(c.itemMap.set(i,{ref:i,...o}),()=>{c.itemMap.delete(i)}))),_(U_e,{[u]:"",ref:s,children:a})}));return h.displayName=d,[{Provider:i,Slot:c,ItemSlot:h},function(r){const n=l(e+"CollectionConsumer",r),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},a]}(mTe),[kTe,wTe]=hTe(mTe,[bTe]),[_Te,xTe]=kTe(mTe),MTe=e.forwardRef(((e,t)=>_(yTe.Provider,{scope:e.__scopeRovingFocusGroup,children:_(yTe.Slot,{scope:e.__scopeRovingFocusGroup,children:_(jTe,{...e,ref:t})})})));MTe.displayName=mTe;var jTe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=t,f=e.useRef(null),p=V_e(r,f),v=_Ie(l),[m=null,y]=B_e({prop:i,defaultProp:s,onChange:c}),[g,b]=e.useState(!1),k=D_e(d),w=gTe(n),x=e.useRef(!1),[M,j]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(pTe,k),()=>e.removeEventListener(pTe,k)}),[k]),_(_Te,{scope:n,orientation:a,dir:v,loop:o,currentTabStopId:m,onItemFocus:e.useCallback((e=>y(e)),[y]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>j((e=>e-1))),[]),children:_(uTe.div,{tabIndex:g||0===M?-1:0,"data-orientation":a,...h,ref:p,style:{outline:"none",...t.style},onMouseDown:Z_e(t.onMouseDown,(()=>{x.current=!0})),onFocus:Z_e(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(pTe,vTe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));zTe([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}x.current=!1})),onBlur:Z_e(t.onBlur,(()=>b(!1)))})})})),ETe="RovingFocusGroupItem",OTe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,...i}=t,s=zEe(),c=l||s,d=xTe(ETe,n),u=d.currentTabStopId===c,h=gTe(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=d;return e.useEffect((()=>{if(a)return f(),()=>p()}),[a,f,p]),_(yTe.ItemSlot,{scope:n,id:c,focusable:a,active:o,children:_(uTe.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...i,ref:r,onMouseDown:Z_e(t.onMouseDown,(e=>{a?d.onItemFocus(c):e.preventDefault()})),onFocus:Z_e(t.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Z_e(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.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:CTe[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=d.loop?function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(r,n+1):r.slice(n+1)}setTimeout((()=>zTe(r)))}}))})})}));OTe.displayName=ETe;var CTe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zTe(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 PTe=MTe,RTe=OTe;var ATe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=ITe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=ITe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=ITe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=ITe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function ITe(e){return e?.animationName||"none"}ATe.displayName="Presence";var LTe="Radio",[STe,VTe]=H_e(LTe),[HTe,NTe]=STe(LTe),ZTe=e.forwardRef(((t,r)=>{const{__scopeRadio:n,name:a,checked:o=!1,required:l,disabled:i,value:s="on",onCheck:c,form:d,...u}=t,[h,f]=e.useState(null),p=V_e(r,(e=>f(e))),v=e.useRef(!1),m=!h||(d||!!h.closest("form"));return x(HTe,{scope:n,checked:o,disabled:i,children:[_(uTe.button,{type:"button",role:"radio","aria-checked":o,"data-state":TTe(o),"data-disabled":i?"":void 0,disabled:i,value:s,...u,ref:p,onClick:Z_e(t.onClick,(e=>{o||c?.(),m&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))}),m&&_(qTe,{control:h,bubbles:!v.current,name:a,value:s,checked:o,required:l,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})}));ZTe.displayName=LTe;var DTe="RadioIndicator",BTe=e.forwardRef(((e,t)=>{const{__scopeRadio:r,forceMount:n,...a}=e,o=NTe(DTe,r);return _(ATe,{present:n||o.checked,children:_(uTe.span,{"data-state":TTe(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})}));BTe.displayName=DTe;var qTe=t=>{const{control:r,checked:n,bubbles:a=!0,...o}=t,l=e.useRef(null),i=q_e(n),s=F_e(r);return e.useEffect((()=>{const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[i,n,a]),_("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function TTe(e){return e?"checked":"unchecked"}var FTe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WTe="RadioGroup",[$Te]=H_e(WTe,[wTe,VTe]),UTe=wTe(),GTe=VTe(),[YTe,KTe]=$Te(WTe),XTe=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:a,value:o,required:l=!1,disabled:i=!1,orientation:s,dir:c,loop:d=!0,onValueChange:u,...h}=e,f=UTe(r),p=_Ie(c),[v,m]=B_e({prop:o,defaultProp:a,onChange:u});return _(YTe,{scope:r,name:n,required:l,disabled:i,value:v,onValueChange:m,children:_(PTe,{asChild:!0,...f,orientation:s,dir:p,loop:d,children:_(uTe.div,{role:"radiogroup","aria-required":l,"aria-orientation":s,"data-disabled":i?"":void 0,dir:p,...h,ref:t})})})}));XTe.displayName=WTe;var QTe="RadioGroupItem",JTe=e.forwardRef(((t,r)=>{const{__scopeRadioGroup:n,disabled:a,...o}=t,l=KTe(QTe,n),i=l.disabled||a,s=UTe(n),c=GTe(n),d=e.useRef(null),u=V_e(r,d),h=l.value===o.value,f=e.useRef(!1);return e.useEffect((()=>{const e=e=>{FTe.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)}}),[]),_(RTe,{asChild:!0,...s,focusable:!i,active:h,children:_(ZTe,{disabled:i,required:l.required,checked:h,...c,...o,name:l.name,ref:u,onCheck:()=>l.onValueChange(o.value),onKeyDown:Z_e((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Z_e(o.onFocus,(()=>{f.current&&d.current?.click()}))})})}));JTe.displayName=QTe;var eFe=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,...n}=e,a=GTe(r);return _(BTe,{...a,...n,ref:t})}));eFe.displayName="RadioGroupIndicator";var tFe=XTe,rFe=JTe,nFe=eFe;const aFe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(tFe,Object.assign({className:Ax("grid gap-2",r)},n,{ref:t}))}));aFe.displayName=tFe.displayName;const oFe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(rFe,Object.assign({ref:t,className:Ax("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",r)},n,{children:_(nFe,{className:"flex items-center justify-center",children:_("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:_("circle",{cx:"5",cy:"5",r:"5",fill:"current"})})})}))}));oFe.displayName=rFe.displayName;var lFe=e=>"checkbox"===e.type,iFe=e=>e instanceof Date,sFe=e=>null==e;const cFe=e=>"object"==typeof e;var dFe=e=>!sFe(e)&&!Array.isArray(e)&&cFe(e)&&!iFe(e),uFe=e=>dFe(e)&&e.target?lFe(e.target)?e.target.checked:e.target.value:e,hFe=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),fFe="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function pFe(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(fFe&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||dFe(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return dFe(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]=pFe(e[t]));return n}var vFe=e=>/^\w*$/.test(e),mFe=e=>void 0===e,yFe=e=>Array.isArray(e)?e.filter(Boolean):[],gFe=e=>yFe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bFe=(e,t,r)=>{if(!t||!dFe(e))return r;const n=(vFe(t)?[t]:gFe(t)).reduce(((e,t)=>sFe(e)?e:e[t]),e);return mFe(n)||n===e?mFe(e[t])?r:e[t]:n},kFe=e=>"boolean"==typeof e,wFe=e=>"function"==typeof e,_Fe=(e,t,r)=>{let n=-1;const a=vFe(t)?[t]:gFe(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=dFe(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const xFe="blur",MFe="focusout",jFe="change",EFe="onBlur",OFe="onChange",CFe="onSubmit",zFe="onTouched",PFe="all",RFe="max",AFe="min",IFe="maxLength",LFe="minLength",SFe="pattern",VFe="required",HFe="validate",NFe=t.createContext(null);NFe.displayName="HookFormControlContext";const ZFe=()=>t.useContext(NFe);var DFe=(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]!==PFe&&(t._proxyFormState[a]=!n||PFe),r&&(r[a]=!0),e[a]}});return a};const BFe="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;var qFe=e=>"string"==typeof e,TFe=(e,t,r,n,a)=>qFe(e)?(n&&t.watch.add(e),bFe(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),bFe(r,e)))):(n&&(t.watchAll=!0),r),FFe=e=>sFe(e)||!cFe(e);function WFe(e,t,r=new WeakSet){if(FFe(e)||FFe(t))return Object.is(e,t);if(iFe(e)&&iFe(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(iFe(n)&&iFe(e)||dFe(n)&&dFe(e)||Array.isArray(n)&&Array.isArray(e)?!WFe(n,e,r):!Object.is(n,e))return!1}}return!0}function $Fe(e){const r=ZFe(),{name:n,disabled:a,control:o=r,shouldUnregister:l,defaultValue:i,exact:s=!0}=e,c=hFe(o._names.array,n),d=t.useMemo((()=>bFe(o._formValues,n,bFe(o._defaultValues,n,i))),[o,n,i]),u=function(e){const r=ZFe(),{control:n=r,name:a,defaultValue:o,disabled:l,exact:i,compute:s}=e||{},c=t.useRef(o),d=t.useRef(s),u=t.useRef(void 0),h=t.useRef(n),f=t.useRef(a);d.current=s;const[p,v]=t.useState((()=>{const e=n._getWatch(a,c.current);return d.current?d.current(e):e})),m=t.useCallback((e=>{const t=TFe(a,n._names,e||n._formValues,!1,c.current);return d.current?d.current(t):t}),[n._formValues,n._names,a]),y=t.useCallback((e=>{if(!l){const t=TFe(a,n._names,e||n._formValues,!1,c.current);if(d.current){const e=d.current(t);WFe(e,u.current)||(v(e),u.current=e)}else v(t)}}),[n._formValues,n._names,l,a]);BFe((()=>(h.current===n&&WFe(f.current,a)||(h.current=n,f.current=a,y()),n._subscribe({name:a,formState:{values:!0},exact:i,callback:e=>{y(e.values)}}))),[n,i,a,y]),t.useEffect((()=>n._removeUnmounted()));const g=h.current!==n,b=f.current,k=t.useMemo((()=>{if(l)return null;const e=!g&&!WFe(b,a);return g||e?m():null}),[l,g,a,b,m]);return null!==k?k:p}({control:o,name:n,defaultValue:d,exact:s}),h=function(e){const r=ZFe(),{control:n=r,disabled:a,name:o,exact:l}=e||{},[i,s]=t.useState(n._formState),c=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return BFe((()=>n._subscribe({name:o,formState:c.current,exact:l,callback:e=>{!a&&s({...n._formState,...e})}})),[o,a,l]),t.useEffect((()=>{c.current.isValid&&n._setValid(!0)}),[n]),t.useMemo((()=>DFe(i,n,c.current,!1)),[i,n])}({control:o,name:n,exact:s}),f=t.useRef(e),p=t.useRef(void 0),v=t.useRef(o.register(n,{...e.rules,value:u,...kFe(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=t.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!bFe(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!bFe(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!bFe(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!bFe(h.validatingFields,n)},error:{enumerable:!0,get:()=>bFe(h.errors,n)}})),[h,n]),y=t.useCallback((e=>v.current.onChange({target:{value:uFe(e),name:n},type:jFe})),[n]),g=t.useCallback((()=>v.current.onBlur({target:{value:bFe(o._formValues,n),name:n},type:xFe})),[n,o._formValues]),b=t.useCallback((e=>{const t=bFe(o._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>wFe(e.focus)&&e.focus(),select:()=>wFe(e.select)&&e.select(),setCustomValidity:t=>wFe(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>wFe(e.reportValidity)&&e.reportValidity()})}),[o._fields,n]),k=t.useMemo((()=>({name:n,value:u,...kFe(a)||h.disabled?{disabled:h.disabled||a}:{},onChange:y,onBlur:g,ref:b})),[n,a,h.disabled,y,g,b,u]);return t.useEffect((()=>{const e=o._options.shouldUnregister||l,t=p.current;t&&t!==n&&!c&&o.unregister(t),o.register(n,{...f.current.rules,...kFe(f.current.disabled)?{disabled:f.current.disabled}:{}});const r=(e,t)=>{const r=bFe(o._fields,e);r&&r._f&&(r._f.mount=t)};if(r(n,!0),e){const e=pFe(bFe(o._options.defaultValues,n,f.current.defaultValue));_Fe(o._defaultValues,n,e),mFe(bFe(o._formValues,n))&&_Fe(o._formValues,n,e)}return!c&&o.register(n),p.current=n,()=>{(c?e&&!o._state.action:e)?o.unregister(n):r(n,!1)}}),[n,o,c,l]),t.useEffect((()=>{o._setDisabledField({disabled:a,name:n})}),[a,n,o]),t.useMemo((()=>({field:k,formState:h,fieldState:m})),[k,h,m])}const UFe=t.createContext(null);UFe.displayName="HookFormContext";const GFe=()=>t.useContext(UFe),YFe=e=>{const{children:r,watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:f,unregister:p,control:v,register:m,setFocus:y,subscribe:g}=e;return t.createElement(UFe.Provider,{value:t.useMemo((()=>({watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:f,unregister:p,control:v,register:m,setFocus:y,subscribe:g})),[i,v,d,o,a,f,m,h,u,l,y,s,g,c,p,n])},t.createElement(NFe.Provider,{value:v},r))};var KFe=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},XFe=e=>Array.isArray(e)?e:[e],QFe=()=>{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 JFe(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n],o=t[n];if(a&&dFe(a)&&o){const e=JFe(a,o);dFe(e)&&(r[n]=e)}else e[n]&&(r[n]=o)}return r}var eWe=e=>dFe(e)&&!Object.keys(e).length,tWe=e=>"file"===e.type,rWe=e=>{if(!fFe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},nWe=e=>"select-multiple"===e.type,aWe=e=>"radio"===e.type,oWe=e=>rWe(e)&&e.isConnected;function lWe(e,t){const r=Array.isArray(t)?t:vFe(t)?[t]:gFe(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=mFe(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!==a&&(dFe(n)&&eWe(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!mFe(e[t]))return!1;return!0}(n))&&lWe(e,r.slice(0,-1)),e}function iWe(e){return Array.isArray(e)||dFe(e)&&!(e=>{for(const t in e)if(wFe(e[t]))return!0;return!1})(e)}function sWe(e,t={}){for(const r in e){const n=e[r];iWe(n)?(t[r]=Array.isArray(n)?[]:{},sWe(n,t[r])):mFe(n)||(t[r]=!0)}return t}function cWe(e,t,r){r||(r=sWe(t));for(const n in e){const a=e[n];if(iWe(a))mFe(t)||FFe(r[n])?r[n]=sWe(a,Array.isArray(a)?[]:{}):cWe(a,sFe(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!WFe(a,e)}}return r}const dWe={value:!1,isValid:!1},uWe={value:!0,isValid:!0};var hWe=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&&!mFe(e[0].attributes.value)?mFe(e[0].value)||""===e[0].value?uWe:{value:e[0].value,isValid:!0}:uWe:dWe}return dWe},fWe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>mFe(e)?e:t?""===e?NaN:e?+e:e:r&&qFe(e)?new Date(e):n?n(e):e;const pWe={isValid:!1,value:null};var vWe=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),pWe):pWe;function mWe(e){const t=e.ref;return tWe(t)?t.files:aWe(t)?vWe(e.refs).value:nWe(t)?[...t.selectedOptions].map((({value:e})=>e)):lFe(t)?hWe(e.refs).value:fWe(mFe(t.value)?e.ref.value:t.value,e)}var yWe=e=>e instanceof RegExp,gWe=e=>mFe(e)?e:yWe(e)?e.source:dFe(e)?yWe(e.value)?e.value.source:e.value:e,bWe=e=>({isOnSubmit:!e||e===CFe,isOnBlur:e===EFe,isOnChange:e===OFe,isOnAll:e===PFe,isOnTouch:e===zFe});const kWe="AsyncFunction";var wWe=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const _We=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const r=bFe(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(_We(o,t))break}else if(dFe(o)&&_We(o,t))break}}};function xWe(e,t,r){const n=bFe(e,r);if(n||vFe(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),o=bFe(t,n),l=bFe(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 MWe=(e,t,r)=>{const n=XFe(bFe(e,r));return _Fe(n,"root",t[r]),_Fe(e,r,n),e};function jWe(e,t,r="validate"){if(qFe(e)||Array.isArray(e)&&e.every(qFe)||kFe(e)&&!e)return{type:r,message:qFe(e)?e:"",ref:t}}var EWe=e=>dFe(e)&&!yWe(e)?e:{value:e,message:""},OWe=async(e,t,r,n,a,o)=>{const{ref:l,refs:i,required:s,maxLength:c,minLength:d,min:u,max:h,pattern:f,validate:p,name:v,valueAsNumber:m,mount:y}=e._f,g=bFe(r,v);if(!y||t.has(v))return{};const b=i?i[0]:l,k=e=>{a&&b.reportValidity&&(b.setCustomValidity(kFe(e)?"":e||""),b.reportValidity())},w={},_=aWe(l),x=lFe(l),M=_||x,j=(m||tWe(l))&&mFe(l.value)&&mFe(g)||rWe(l)&&""===l.value||""===g||Array.isArray(g)&&!g.length,E=KFe.bind(null,v,n,w),O=(e,t,r,n=IFe,a=LFe)=>{const o=e?t:r;w[v]={type:e?n:a,message:o,ref:l,...E(e?n:a,o)}};if(o?!Array.isArray(g)||!g.length:s&&(!M&&(j||sFe(g))||kFe(g)&&!g||x&&!hWe(i).isValid||_&&!vWe(i).isValid)){const{value:e,message:t}=qFe(s)?{value:!!s,message:s}:EWe(s);if(e&&(w[v]={type:VFe,message:t,ref:b,...E(VFe,t)},!n))return k(t),w}if(!(j||sFe(u)&&sFe(h))){let e,t;const r=EWe(h),a=EWe(u);if(sFe(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;qFe(r.value)&&g&&(e=i?o(g)>o(r.value):s?g>r.value:n>new Date(r.value)),qFe(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);sFe(r.value)||(e=n>r.value),sFe(a.value)||(t=n<a.value)}if((e||t)&&(O(!!e,r.message,a.message,RFe,AFe),!n))return k(w[v].message),w}if((c||d)&&!j&&(qFe(g)||o&&Array.isArray(g))){const e=EWe(c),t=EWe(d),r=!sFe(e.value)&&g.length>+e.value,a=!sFe(t.value)&&g.length<+t.value;if((r||a)&&(O(r,e.message,t.message),!n))return k(w[v].message),w}if(f&&!j&&qFe(g)){const{value:e,message:t}=EWe(f);if(yWe(e)&&!g.match(e)&&(w[v]={type:SFe,message:t,ref:l,...E(SFe,t)},!n))return k(t),w}if(p)if(wFe(p)){const e=jWe(await p(g,r),b);if(e&&(w[v]={...e,...E(HFe,e.message)},!n))return k(e.message),w}else if(dFe(p)){let e={};for(const t in p){if(!eWe(e)&&!n)break;const a=jWe(await p[t](g,r),b,t);a&&(e={...a,...E(t,a.message)},k(a.message),n&&(w[v]=e))}if(!eWe(e)&&(w[v]={ref:b,...e},!n))return w}return k(!0),w};const CWe={mode:CFe,reValidateMode:OFe,shouldFocusError:!0};function zWe(e={}){let t,r={...CWe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:wFe(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},o=(dFe(r.defaultValues)||dFe(r.values))&&pFe(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:pFe(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 f={array:QFe(),state:QFe()},p=r.criteriaMode===PFe,v=async e=>{if(!i.keepIsValid&&!r.disabled&&(u.isValid||h.isValid||e)){let e;r.resolver?(e=eWe((await k()).errors),m()):e=await w(a,!0),e!==n.isValid&&f.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?_Fe(n.validatingFields,e,t):lWe(n.validatingFields,e))})),f.state.next({validatingFields:n.validatingFields,isValidating:!eWe(n.validatingFields)}))},y=(e,t,r,n)=>{const s=bFe(a,e);if(s){const a=bFe(l,e,mFe(r)?bFe(o,e):r);mFe(a)||n&&n.defaultChecked||t?_Fe(l,e,t?a:mWe(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=_(),s=c!==d.isDirty);const r=WFe(bFe(o,e),t);c=!!bFe(n.dirtyFields,e),r?lWe(n.dirtyFields,e):_Fe(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,s=s||(u.dirtyFields||h.dirtyFields)&&c!==!r}if(a){const t=bFe(n.touchedFields,e);t||(_Fe(n.touchedFields,e,a),d.touchedFields=n.touchedFields,s=s||(u.touchedFields||h.touchedFields)&&t!==a)}s&&i&&f.state.next(d)}return s?d:{}},b=(e,a,o,l)=>{const i=bFe(n.errors,e),s=(u.isValid||h.isValid)&&kFe(a)&&n.isValid!==a;var d;if(r.delayError&&o?(d=()=>((e,t)=>{_Fe(n.errors,e,t),f.state.next({errors:n.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(d,e)},t(r.delayError)):(clearTimeout(c),t=null,o?_Fe(n.errors,e,o):lWe(n.errors,e)),(o?!WFe(i,o):i)||!eWe(l)||s){const t={...l,...s&&kFe(a)?{isValid:a}:{},errors:n.errors,name:e};n={...n,...t},f.state.next(t)}},k=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=bFe(t,r);e&&_Fe(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&&!!(wFe(i.validate)&&i.validate.constructor.name===kWe||dFe(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===kWe))));h&&u.validatingFields&&m([t.name],!0);const f=await OWe(d,s.disabled,l,p,r.shouldUseNativeValidation&&!a,c);if(h&&u.validatingFields&&m([t.name]),f[t.name]&&(o.valid=!1,a||e.shouldUseNativeValidation))break;!a&&(bFe(f,t.name)?c?MWe(n.errors,f,t.name):_Fe(n.errors,t.name,f[t.name]):lWe(n.errors,t.name))}!eWe(c)&&await w(c,a,o)}}var i;return o.valid},_=(e,t)=>!r.disabled&&(e&&t&&_Fe(l,e,t),!WFe(P(),o)),x=(e,t,r)=>TFe(e,s,{...i.mount?l:mFe(t)?o:qFe(e)?{[e]:t}:t},r,t),M=(e,t,r={})=>{const n=bFe(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&_Fe(l,e,fWe(t,r)),o=rWe(r.ref)&&sFe(t)?"":t,nWe(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?lFe(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)):tWe(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||f.state.next({name:e,values:pFe(l)})))}(r.shouldDirty||r.shouldTouch)&&g(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&z(e)},j=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const o=t[n],l=e+"."+n,i=bFe(a,l);(s.array.has(e)||dFe(o)||i&&!i._f)&&!iFe(o)?j(l,o,r):M(l,o,r)}},E=(e,t,r={})=>{const c=bFe(a,e),d=s.array.has(e),p=pFe(t);_Fe(l,e,p),d?(f.array.next({name:e,values:pFe(l)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&r.shouldDirty&&f.state.next({name:e,dirtyFields:cWe(o,l),isDirty:_(e,p)})):!c||c._f||sFe(p)?M(e,p,r):j(e,p,r),wWe(e,s)?f.state.next({...n,name:e,values:pFe(l)}):f.state.next({name:i.mount?e:void 0,values:pFe(l)})},O=async e=>{i.mount=!0;const o=e.target;let c=o.name,d=!0;const y=bFe(a,c),_=e=>{d=Number.isNaN(e)||iFe(e)&&isNaN(e.getTime())||WFe(e,bFe(l,c,e))},x=bWe(r.mode),M=bWe(r.reValidateMode);if(y){let i,j;const E=o.type?mWe(y._f):uFe(e),O=e.type===xFe||e.type===MFe,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(y._f)&&!r.resolver&&!bFe(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))(O,bFe(n.touchedFields,c),n.isSubmitted,M,x),P=wWe(c,s,O);_Fe(l,c,E),O?o&&o.readOnly||(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);const R=g(c,E,O),A=!eWe(R)||P;if(!O&&f.state.next({name:c,type:e.type,values:pFe(l)}),C)return(u.isValid||h.isValid)&&("onBlur"===r.mode?O&&v():O||v()),A&&f.state.next({name:c,...P?{}:R});if(!O&&P&&f.state.next({...n}),r.resolver){const{errors:e}=await k([c]);if(m([c]),_(E),d){const t=xWe(n.errors,a,c),r=xWe(e,a,t.name||c);i=r.error,c=r.name,j=eWe(e)}}else m([c],!0),i=(await OWe(y,s.disabled,l,p,r.shouldUseNativeValidation))[c],m([c]),_(E),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)&&z(y._f.deps),b(c,j,i,R))}},C=(e,t)=>{if(bFe(n.errors,t)&&e.focus)return e.focus(),1},z=async(e,t={})=>{let o,l;const i=XFe(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(m(e),e)for(const r of e){const e=bFe(t,r);e?_Fe(n.errors,r,e):lWe(n.errors,r)}else n.errors=t;return t})(mFe(e)?e:i);o=eWe(t),l=e?!i.some((e=>bFe(t,e))):o}else e?(l=(await Promise.all(i.map((async e=>{const t=bFe(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(l||n.isValid)&&v()):l=o=await w(a);return f.state.next({...!qFe(e)||(u.isValid||h.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!l&&_We(a,C,e?i:s.mount),l},P=(e,t)=>{let r={...i.mount?l:o};return t&&(r=JFe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),mFe(e)?r:qFe(e)?bFe(r,e):e.map((e=>bFe(r,e)))},R=(e,t)=>({invalid:!!bFe((t||n).errors,e),isDirty:!!bFe((t||n).dirtyFields,e),error:bFe((t||n).errors,e),isValidating:!!bFe(n.validatingFields,e),isTouched:!!bFe((t||n).touchedFields,e)}),A=(e,t,r)=>{const o=(bFe(a,e,{_f:{}})._f||{}).ref,l=bFe(n.errors,e)||{},{ref:i,message:s,type:c,...d}=l;_Fe(n.errors,e,{...d,...t,ref:o}),f.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},I=e=>f.state.subscribe({next:t=>{var r,a,i;r=e.name,a=t.name,i=e.exact,r&&a&&r!==a&&!XFe(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 eWe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||PFe)))})(t,e.formState||u,B,e.reRenderRoot)||e.callback({values:{...l},...n,...t,defaultValues:o})}}).unsubscribe,L=(e,t={})=>{for(const i of e?XFe(e):s.mount)s.mount.delete(i),s.array.delete(i),t.keepValue||(lWe(a,i),lWe(l,i)),!t.keepError&&lWe(n.errors,i),!t.keepDirty&&lWe(n.dirtyFields,i),!t.keepTouched&&lWe(n.touchedFields,i),!t.keepIsValidating&&lWe(n.validatingFields,i),!r.shouldUnregister&&!t.keepDefaultValue&&lWe(o,i);f.state.next({values:pFe(l)}),f.state.next({...n,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&v()},S=({disabled:e,name:t})=>{if(kFe(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()}},V=(e,t={})=>{let n=bFe(a,e);const l=kFe(t.disabled)||kFe(r.disabled);return _Fe(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?S({disabled:kFe(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:gWe(t.min),max:gWe(t.max),minLength:gWe(t.minLength),maxLength:gWe(t.maxLength),pattern:gWe(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:l=>{if(l){V(e,t),n=bFe(a,e);const r=mFe(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,i=(e=>aWe(e)||lFe(e))(r),s=n._f.refs||[];if(i?s.find((e=>e===r)):r===n._f.ref)return;_Fe(a,e,{_f:{...n._f,...i?{refs:[...s.filter(oWe),r,...Array.isArray(bFe(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=bFe(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!hFe(s.array,e)||!i.action)&&s.unMount.add(e)}}},H=()=>r.shouldFocusError&&_We(a,C,s.mount),N=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=pFe(l);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await k();m(),n.errors=e,c=pFe(t)}else await w(a);if(s.disabled.size)for(const e of s.disabled)lWe(c,e);if(lWe(n.errors,"root"),eWe(n.errors)){f.state.next({errors:{}});try{await e(c,o)}catch(e){i=e}}else t&&await t({...n.errors},o),H(),setTimeout(H);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eWe(n.errors)&&!i,submitCount:n.submitCount+1,errors:n.errors}),i)throw i},Z=(e,t={})=>{const c=e?pFe(e):o,d=pFe(c),h=eWe(e),p=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(cWe(o,l))]);for(const t of Array.from(e)){const e=bFe(n.dirtyFields,t),r=bFe(l,t),a=bFe(p,t);e&&!mFe(r)?_Fe(p,t,r):e||mFe(a)||E(t,a)}}else{if(fFe&&mFe(e))for(const e of s.mount){const t=bFe(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(rWe(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of s.mount)E(e,bFe(p,e));else a={}}l=r.shouldUnregister?t.keepDefaultValues?pFe(o):{}:pFe(p),f.array.next({values:{...p}}),f.state.next({values:{...p}})}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&&!eWe(p),i.watch=!!r.shouldUnregister,i.keepIsValid=!!t.keepIsValid,i.action=!1,t.keepErrors||(n.errors={}),f.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||WFe(e,o))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&l?cWe(o,l):n.dirtyFields:t.keepDefaultValues&&e?cWe(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})},D=(e,t)=>Z(wFe(e)?e(l):e,{...r.resetOptions,...t}),B=e=>{n={...n,...e}},q={control:{register:V,unregister:L,getFieldState:R,handleSubmit:N,setError:A,_subscribe:I,_runSchema:k,_updateIsValidating:m,_focusError:H,_getWatch:x,_getDirty:_,_setValid:v,_setFieldArray:(e,t=[],s,c,d=!0,p=!0)=>{if(c&&s&&!r.disabled){if(i.action=!0,p&&Array.isArray(bFe(a,e))){const t=s(bFe(a,e),c.argA,c.argB);d&&_Fe(a,e,t)}if(p&&Array.isArray(bFe(n.errors,e))){const t=s(bFe(n.errors,e),c.argA,c.argB);d&&_Fe(n.errors,e,t),((e,t)=>{!yFe(bFe(e,t)).length&&lWe(e,t)})(n.errors,e)}if((u.touchedFields||h.touchedFields)&&p&&Array.isArray(bFe(n.touchedFields,e))){const t=s(bFe(n.touchedFields,e),c.argA,c.argB);d&&_Fe(n.touchedFields,e,t)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=cWe(o,l)),f.state.next({name:e,isDirty:_(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _Fe(l,e,t)},_setDisabledField:S,_setErrors:e=>{n.errors=e,f.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>yFe(bFe(i.mount?l:o,e,r.shouldUnregister?bFe(o,e,[]):[])),_reset:Z,_resetDefaultValues:()=>wFe(r.defaultValues)&&r.defaultValues().then((e=>{D(e,r.resetOptions),f.state.next({isLoading:!1})})),_removeUnmounted:()=>{for(const e of s.unMount){const t=bFe(a,e);t&&(t._f.refs?t._f.refs.every((e=>!oWe(e))):!oWe(t._f.ref))&&L(e)}s.unMount=new Set},_disableForm:e=>{kFe(e)&&(f.state.next({disabled:e}),_We(a,((t,r)=>{const n=bFe(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:f,_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},I({...e,formState:{...d,...e.formState}})),trigger:z,register:V,handleSubmit:N,watch:(e,t)=>wFe(e)?f.state.subscribe({next:r=>"values"in r&&e(x(void 0,t),r)}):x(e,t,!0),setValue:E,getValues:P,reset:D,resetField:(e,t={})=>{bFe(a,e)&&(mFe(t.defaultValue)?E(e,pFe(bFe(o,e))):(E(e,t.defaultValue),_Fe(o,e,pFe(t.defaultValue))),t.keepTouched||lWe(n.touchedFields,e),t.keepDirty||(lWe(n.dirtyFields,e),n.isDirty=t.defaultValue?_(e,pFe(bFe(o,e))):_()),t.keepError||(lWe(n.errors,e),u.isValid&&v()),f.state.next({...n}))},clearErrors:e=>{const t=e?XFe(e):void 0;null==t||t.forEach((e=>lWe(n.errors,e))),t?t.forEach((e=>{f.state.next({name:e,errors:n.errors})})):f.state.next({errors:{}})},unregister:L,setError:A,setFocus:(e,t={})=>{const r=bFe(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout((()=>{e.focus(),t.shouldSelect&&wFe(e.select)&&e.select()}))}},getFieldState:R};return{...q,formControl:q}}function PWe(e={}){const r=t.useRef(void 0),n=t.useRef(void 0),[a,o]=t.useState({isDirty:!1,isValidating:!1,isLoading:wFe(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:wFe(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:a},e.defaultValues&&!wFe(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:t,...n}=zWe(e);r.current={...n,formState:a}}const l=r.current.control;return l._options=e,BFe((()=>{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]),t.useEffect((()=>l._disableForm(e.disabled)),[l,e.disabled]),t.useEffect((()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)}),[l,e.mode,e.reValidateMode]),t.useEffect((()=>{e.errors&&(l._setErrors(e.errors),l._focusError())}),[l,e.errors]),t.useEffect((()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})}),[l,e.shouldUnregister]),t.useEffect((()=>{if(l._proxyFormState.isDirty){const e=l._getDirty();e!==a.isDirty&&l._subjects.state.next({isDirty:e})}}),[l,a.isDirty]),t.useEffect((()=>{var t;e.values&&!WFe(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),(null===(t=l._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||l._setValid(),n.current=e.values,o((e=>({...e})))):l._resetDefaultValues()}),[l,e.values]),t.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=t.useMemo((()=>DFe(a,l)),[l,a]),r.current}const RWe=(e,t,r)=>{if(e&&"reportValidity"in e){const n=bFe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},AWe=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?RWe(n.ref,r,e):n&&n.refs&&n.refs.forEach((t=>RWe(t,r,e)))}},IWe=(e,t)=>{t.shouldUseNativeValidation&&AWe(e,t);const r={};for(const n in e){const a=bFe(t.fields,n),o=Object.assign(e[n]||{},{ref:a&&a.ref});if(LWe(t.names||Object.keys(e),n)){const e=Object.assign({},bFe(r,n));_Fe(e,"root",o),_Fe(r,n,e)}else _Fe(r,n,o)}return r},LWe=(e,t)=>{const r=SWe(t);return e.some((e=>SWe(e).match(`^${r}\\.\\d+`)))};function SWe(e){return e.replace(/\]|\[/g,"")}const VWe=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&&AWe({},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:IWe((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]=KFe(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),HWe=({methods:e,defaultValues:r,controllerRef:n})=>{const a=t.forwardRef(((t,a)=>{var{children:o}=t,l=zx(t,["children"]);return _(DWe,Object.assign({},l,{ref:a,methods:e,defaultValues:r,controllerRef:n,children:o}))}));return a.displayName="ControlledFormRoot",{methods:e,FormRoot:a}},NWe=({defaultValues:e,controllerRef:r,resolver:n,validationSchema:a,mode:o="onSubmit",reValidateMode:l="onChange"})=>{const i=PWe({defaultValues:e,resolver:null!=n?n:a?VWe(a):void 0,mode:o,reValidateMode:l}),s=t.useRef(null);return s.current||(s.current=HWe({methods:i,defaultValues:e,controllerRef:r})),{methods:i,FormRoot:s.current.FormRoot}},ZWe=({onFormStateChange:e})=>{const{formState:r}=GFe();return t.useEffect((()=>{e(r)}),[r,e]),null},DWe=t.forwardRef(((e,r)=>{var{children:n,defaultValues:a,methods:o,controllerRef:l,onSubmit:i,onInvalidSubmit:s,onFormStateChange:c,resolver:d,validationSchema:u,mode:h="onSubmit",reValidateMode:f="onChange",noValidate:p=!0}=e,v=zx(e,["children","defaultValues","methods","controllerRef","onSubmit","onInvalidSubmit","onFormStateChange","resolver","validationSchema","mode","reValidateMode","noValidate"]);const m=PWe({defaultValues:a,resolver:null!=d?d:u?VWe(u):void 0,mode:h,reValidateMode:f}),y=null!=o?o:m,g=t.useMemo((()=>({submit:async()=>{await y.handleSubmit(i,s)()},getValues:()=>y.getValues(),setValue:y.setValue,trigger:y.trigger,reset:y.reset})),[y,i,s]);return t.useImperativeHandle(r,(()=>g),[g]),t.useEffect((()=>{if(l)return l.current=g,()=>{l.current=null}}),[l,g]),_(YFe,Object.assign({},y,{children:x("form",Object.assign({},v,{noValidate:p,onSubmit:y.handleSubmit(i,s),children:[c&&_(ZWe,{onFormStateChange:c}),"function"==typeof n?n(y):n]}))}))})),BWe=({name:e,component:t,componentProps:r,rules:n,defaultValue:a,disabled:o=!1,shouldUnregister:l=!1,id:i,describedBy:s,valuePropName:c="value",changePropName:d="onChange",blurPropName:u="onBlur",refPropName:h="ref",errorMessagePropName:f="errorMessage",invalidPropName:p="error",parseValue:v,formatValue:y,onChange:g,onBlur:b})=>{const k=m(),w=i||`${e.replace(/\./g,"-")}-${k}`,{field:x,fieldState:{error:M,invalid:j}}=$Fe({name:e,rules:n,disabled:o,defaultValue:a,shouldUnregister:l}),E=()=>{x.onBlur(),null==b||b()},O=y?y(x.value):x.value,C=Object.assign(Object.assign({},r),{id:w,name:x.name,disabled:o,"aria-invalid":j||void 0,"aria-describedby":s});return C[c]=O,C[d]=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=v?v(t,e):t;x.onChange(r),null==g||g(r,e)},u&&(C[u]=E),h&&(C[h]=x.ref),f&&(C[f]=null==M?void 0:M.message),p&&(C[p]=j),_(t,Object.assign({},C))},qWe=e=>{var{name:t,className:r}=e,n=zx(e,["name","className"]);const{getFieldState:a,formState:o}=GFe(),{error:l}=a(t,o);return(null==l?void 0:l.message)?_("p",Object.assign({},n,{className:Ax("text-sm text-input-error mt-1",r),role:"alert",children:l.message})):null},TWe={valid:"text-text-g-contrast-high",invalid:"text-input-error",pending:"text-text-g-contrast-high"},FWe={valid:"text-primary",invalid:"text-input-error",pending:"text-text-g-contrast-low"},WWe=({values:e,rules:t,mode:r=["pending","valid","invalid"],className:n,itemClassName:a,labelStateClassName:o,iconStateClassName:l})=>{const i=new Set(r);return _("ul",{className:Ax("mt-2 flex flex-col gap-3",n),children:t.map((t=>{const r=((e,t)=>!t.when||t.when(e)?t.validate(e)?"valid":"invalid":"pending")(e,t),n=i.has(r)?r:"pending";return x("li",{className:Ax("flex items-center gap-2 typography-small2 ",TWe[n],null==o?void 0:o[n],a),children:[_(yV,{className:Ax("size-4",FWe[n],null==l?void 0:l[n])}),_("span",{children:t.label})]},t.id)}))})},$We=({options:e,loading:t=!1,buildFallbackOption:r})=>{const n=l((()=>new Map(e.map((e=>[e.value,e])))),[e]),a=e=>{if(null!=e)return n.get(e)};return{toOption:a,toOptionWithFallback:e=>{var n;if(null!=e)return null!==(n=a(e))&&void 0!==n?n:null==r?void 0:r(e,t)},toValue:e=>null==e?void 0:e.value,optionsByValue:n}};function UWe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GWe(e){this._maxSize=e,this.clear()}GWe.prototype.clear=function(){this._size=0,this._values=Object.create(null)},GWe.prototype.get=function(e){return this._values[e]},GWe.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var YWe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,KWe=/^\d+$/,XWe=/^\d/,QWe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,JWe=/^\s*(['"]?)(.*?)(\1)\s*$/,e$e=new GWe(512);new GWe(512);var t$e=new GWe(512),r$e={split:a$e,normalizePath:n$e,getter:function(e,t){var r=n$e(e);return t$e.get(e)||t$e.set(e,(function(e){for(var n=0,a=r.length;n<a;){if(null==e&&t)return;e=e[r[n++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(o$e(t)||KWe.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var n,a,o,l,i=e.length;for(a=0;a<i;a++)(n=e[a])&&(l$e(n)&&(n='"'+n+'"'),o=!(l=o$e(n))&&/^\d+$/.test(n),t.call(r,n,l,o,a,e))}(Array.isArray(e)?e:a$e(e),t,r)}};function n$e(e){return e$e.get(e)||e$e.set(e,a$e(e).map((function(e){return e.replace(JWe,"$2")})))}function a$e(e){return e.match(YWe)||[""]}function o$e(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function l$e(e){return!o$e(e)&&(function(e){return e.match(XWe)&&!e.match(KWe)}(e)||function(e){return QWe.test(e)}(e))}const i$e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,s$e=e=>e.match(i$e)||[];var c$e=e=>s$e(e).reduce(((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`),""),d$e=e=>((e,t)=>s$e(e).join(t).toLowerCase())(e,"_"),u$e={exports:{}};function h$e(e,t){var r=e.length,n=new Array(r),a={},o=r,l=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),i=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach((function(e){if(!i.has(e[0])||!i.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)a[o]||s(e[o],o,new Set);return n;function s(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!i.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!a[t]){a[t]=!0;var d=l.get(e)||new Set;if(t=(d=Array.from(d)).length){o.add(e);do{var u=d[--t];s(u,i.get(u),o)}while(t);o.delete(e)}n[--r]=e}}}u$e.exports=function(e){return h$e(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},u$e.exports.array=h$e;var f$e=UWe(u$e.exports);const p$e=Object.prototype.toString,v$e=Error.prototype.toString,m$e=RegExp.prototype.toString,y$e="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",g$e=/^Symbol\((.*)\)(.*)$/;function b$e(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return y$e.call(e).replace(g$e,"Symbol($1)");const n=p$e.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+v$e.call(e)+"]":"RegExp"===n?m$e.call(e):null}function k$e(e,t){let r=b$e(e,t);return null!==r?r:JSON.stringify(e,(function(e,r){let n=b$e(this[e],t);return null!==n?n:r}),2)}function w$e(e){return null==e?[]:[].concat(e)}let _$e,x$e,M$e,j$e=/\$\{\s*(\w+)\s*\}/g;_$e=Symbol.toStringTag;class E$e{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_$e]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],w$e(e).forEach((e=>{if(O$e.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}x$e=Symbol.hasInstance,M$e=Symbol.toStringTag;class O$e extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(j$e,((e,r)=>k$e(t[r]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n,a){const o=new E$e(e,t,r,n);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[M$e]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,O$e)}static[x$e](e){return E$e[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let C$e={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=null!=n&&n!==r?` (cast from the value \`${k$e(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${k$e(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${k$e(r,!0)}\``+a}},z$e={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},P$e={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},R$e={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},A$e={notType:e=>{const{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${r.length} for value: \`${k$e(r,!0)}\``;if(r.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${k$e(r,!0)}\``}return O$e.formatError(C$e.notType,e)}};Object.assign(Object.create(null),{mixed:C$e,string:z$e,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:P$e,object:R$e,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:A$e});const I$e=e=>e&&e.__isYupSchema__;class L$e{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:a}=t,o="function"==typeof r?r:(...e)=>e.every((e=>e===r));return new L$e(e,((e,t)=>{var r;let l=o(...e)?n:a;return null!=(r=null==l?void 0:l(t))?r:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!I$e(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}}const S$e="$",V$e=".";class H$e{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===S$e,this.isValue=this.key[0]===V$e,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?S$e:this.isValue?V$e:"";this.path=this.key.slice(r.length),this.getter=this.path&&r$e.getter(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}H$e.prototype.__isYupRef=!0;const N$e=e=>null==e;function Z$e(e){function t({value:t,path:r="",options:n,originalValue:a,schema:o},l,i){const{name:s,test:c,params:d,message:u,skipAbsent:h}=e;let{parent:f,context:p,abortEarly:v=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n;function y(e){return H$e.isRef(e)?e.getValue(t,f,p):e}function g(e={}){const n=Object.assign({value:t,originalValue:a,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},d,e.params);for(const e of Object.keys(n))n[e]=y(n[e]);const l=new O$e(O$e.formatError(e.message||u,n),t,n.path,e.type||s,n.disableStackTrace);return l.params=n,l}const b=v?l:i;let k={path:r,parent:f,type:s,from:n.from,createError:g,resolve:y,options:n,originalValue:a,schema:o};const w=e=>{O$e.isError(e)?b(e):e?i(null):b(g())},_=e=>{O$e.isError(e)?b(e):l(e)};if(h&&N$e(t))return w(!0);let x;try{var M;if(x=c.call(k,t,k),"function"==typeof(null==(M=x)?void 0:M.then)){if(n.sync)throw new Error(`Validation test of type: "${k.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(x).then(w,_)}}catch(e){return void _(e)}w(x)}return t.OPTIONS=e,t}function D$e(e,t,r,n=r){let a,o,l;return t?(r$e.forEach(t,((i,s,c)=>{let d=s?i.slice(1,i.length-1):i,u="tuple"===(e=e.resolve({context:n,parent:a,value:r})).type,h=c?parseInt(d,10):0;if(e.innerType||u){if(u&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${i}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[h],e=u?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${l} which is a type: "${e.type}")`);a=r,r=r&&r[d],e=e.fields[d]}o=d,l=s?"["+i+"]":"."+i})),{schema:e,parent:a,parentPath:o}):{parent:a,parentPath:t,schema:e}}class B$e extends Set{describe(){const e=[];for(const t of this.values())e.push(H$e.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new B$e(this.values())}merge(e,t){const r=this.clone();return e.forEach((e=>r.add(e))),t.forEach((e=>r.delete(e))),r}}function q$e(e,t=new Map){if(I$e(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=q$e(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,a]of e.entries())r.set(n,q$e(a,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(q$e(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(const[n,a]of Object.entries(e))r[n]=q$e(a,t)}return r}class T$e{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new B$e,this._blacklist=new B$e,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(C$e.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=q$e(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const n=Object.assign({},t.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce(((t,r)=>r.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,a;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(a=e.disableStackTrace)?a:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,a=r._cast(e,t);if(!1!==t.assert&&!r.isType(a)){if(n&&N$e(a))return a;let o=k$e(e),l=k$e(a);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(l!==o?`result of cast: ${l}`:""))}return a}_cast(e,t){let r=void 0===e?e:this.transforms.reduce(((t,r)=>r.call(this,t,e,this)),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:a,originalValue:o=e,strict:l=this.spec.strict}=t,i=e;l||(i=this._cast(i,Object.assign({assert:!1},t)));let s=[];for(let e of Object.values(this.internalTests))e&&s.push(e);this.runTests({path:a,value:i,originalValue:o,options:t,tests:s},r,(e=>{if(e.length)return n(e,i);this.runTests({path:a,value:i,originalValue:o,options:t,tests:this.tests},r,n)}))}runTests(e,t,r){let n=!1,{tests:a,value:o,originalValue:l,path:i,options:s}=e,c=e=>{n||(n=!0,t(e,o))},d=e=>{n||(n=!0,r(e,o))},u=a.length,h=[];if(!u)return d([]);let f={value:o,originalValue:l,path:i,options:s,schema:this};for(let e=0;e<a.length;e++){(0,a[e])(f,c,(function(e){e&&(Array.isArray(e)?h.push(...e):h.push(e)),--u<=0&&d(h)}))}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:a,options:o}){const l=null!=e?e:t;if(null==l)throw TypeError("Must include `key` or `index` for nested validations");const i="number"==typeof l;let s=r[l];const c=Object.assign({},o,{strict:!0,parent:r,value:s,originalValue:a[l],key:void 0,[i?"index":"key"]:l,path:i||l.includes(".")?`${n||""}[${i?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(s,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),a=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise(((r,o)=>n._validate(e,t,((e,t)=>{O$e.isError(e)&&(e.value=t),o(e)}),((e,t)=>{e.length?o(new O$e(e,t,void 0,void 0,a)):r(t)}))))}validateSync(e,t){var r;let n,a=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:a.spec.disableStackTrace;return a._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw O$e.isError(e)&&(e.value=t),e}),((t,r)=>{if(t.length)throw new O$e(t,e,void 0,void 0,o);n=r})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(O$e.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(O$e.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):q$e(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=Z$e({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=Z$e({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=C$e.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=C$e.notNull){return this.nullability(!1,e)}required(e=C$e.required){return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=C$e.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Z$e(t),a=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(a)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=w$e(e).map((e=>new H$e(e)));return n.forEach((e=>{e.isSibling&&r.deps.push(e.key)})),r.conditions.push("function"==typeof t?new L$e(n,t):L$e.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=Z$e({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=C$e.oneOf){let r=this.clone();return e.forEach((e=>{r._whitelist.add(e),r._blacklist.delete(e)})),r.internalTests.whiteList=Z$e({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=C$e.notOneOf){let r=this.clone();return e.forEach((e=>{r._blacklist.add(e),r._whitelist.delete(e)})),r.internalTests.blacklist=Z$e({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:a,nullable:o}=t.spec,l={meta:n,label:r,optional:a,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,r)=>r.findIndex((t=>t.name===e.name))===t))};return l}}T$e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])T$e.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:o,schema:l}=D$e(this,t,r,n.context);return l[e](a&&a[o],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])T$e.prototype[e]=T$e.prototype.oneOf;for(const e of["not","nope"])T$e.prototype[e]=T$e.prototype.notOneOf;const F$e=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function W$e(e){var t,r;const n=F$e.exec(e);return n?{year:$$e(n[1]),month:$$e(n[2],1)-1,day:$$e(n[3],1),hour:$$e(n[4]),minute:$$e(n[5]),second:$$e(n[6]),millisecond:n[7]?$$e(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:$$e(n[10]),minuteOffset:$$e(n[11])}:null}function $$e(e,t=0){return Number(e)||t}let U$e=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,G$e=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Y$e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,K$e=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),X$e=e=>N$e(e)||e===e.trim(),Q$e={}.toString();function J$e(){return new eUe}class eUe extends T$e{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation((()=>{this.transform(((e,t,r)=>{if(!r.spec.coerce||r.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Q$e?e:n}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||C$e.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e,t=z$e.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=z$e.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=z$e.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,a=!1;return t&&("object"==typeof t?({excludeEmptyString:a=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||z$e.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&a||-1!==t.search(e)})}email(e=z$e.email){return this.matches(U$e,{name:"email",message:e,excludeEmptyString:!0})}url(e=z$e.url){return this.matches(G$e,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=z$e.uuid){return this.matches(Y$e,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(K$e,{name:"datetime",message:n||z$e.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||z$e.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const r=W$e(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||z$e.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;const t=W$e(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=z$e.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:X$e})}lowercase(e=z$e.lowercase){return this.transform((e=>N$e(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>N$e(e)||e===e.toLowerCase()})}uppercase(e=z$e.uppercase){return this.transform((e=>N$e(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>N$e(e)||e===e.toUpperCase()})}}J$e.prototype=eUe.prototype;let tUe=new Date("");class rUe extends T$e{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,r)=>!r.spec.coerce||r.isType(e)||null===e?e:(e=function(e){const t=W$e(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(e),isNaN(e)?rUe.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let r;if(H$e.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=P$e.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=P$e.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}}function nUe(e,t){let r=1/0;return e.some(((e,n)=>{var a;if(null!=(a=t.path)&&a.includes(e))return r=n,!0})),r}function aUe(e){return(t,r)=>nUe(e,t)-nUe(e,r)}rUe.INVALID_DATE=tUe;const oUe=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(e){}return r.isType(n)?n:e};function lUe(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=lUe(n);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=lUe(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(lUe)}):"optional"in e?e.optional():e}let iUe=e=>"[object Object]"===Object.prototype.toString.call(e);function sUe(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===r.indexOf(e)))}const cUe=aUe([]);function dUe(e){return new uUe(e)}class uUe extends T$e{constructor(e){super({type:"object",check:e=>iUe(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=cUe,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let a=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter((e=>!this._nodes.includes(e)))),i={},s=Object.assign({},t,{parent:i,__validating:t.__validating||!1}),c=!1;for(const e of l){let r=a[e],l=e in n;if(r){let a,o=n[e];s.path=(t.path?`${t.path}.`:"")+e,r=r.resolve({value:o,context:t.context,parent:i});let l=r instanceof T$e?r.spec:void 0,d=null==l?void 0:l.strict;if(null!=l&&l.strip){c=c||e in n;continue}a=t.__validating&&d?n[e]:r.cast(n[e],s),void 0!==a&&(i[e]=a)}else l&&!o&&(i[e]=n[e]);l===e in i&&i[e]===n[e]||(c=!0)}return c?i:n}_validate(e,t={},r,n){let{from:a=[],originalValue:o=e,recursive:l=this.spec.recursive}=t;t.from=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,((e,a)=>{if(!l||!iUe(a))return void n(e,a);o=o||a;let i=[];for(let e of this._nodes){let r=this.fields[e];r&&!H$e.isRef(r)&&i.push(r.asNestedTest({options:t,key:e,parent:a,parentPath:t.path,originalParent:o}))}this.runTests({tests:i,value:a,originalValue:o,options:t},r,(t=>{n(t.sort(this._sortErrors).concat(e),a)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){const n=r[e];r[e]=void 0===n?t:n}return t.withMutation((t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((r=>{var n;const a=this.fields[r];let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=a&&"getDefault"in a?a.getDefault(o):void 0})),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,a=new Set(t.map((([e,t])=>`${e}-${t}`)));function o(e,t){let o=r$e.split(e)[0];n.add(o),a.has(`${t}-${o}`)||r.push([t,o])}for(const t of Object.keys(e)){let r=e[t];n.add(t),H$e.isRef(r)&&r.isSibling?o(r.path,t):I$e(r)&&"deps"in r&&r.deps.forEach((e=>o(e,t)))}return f$e.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=aUe(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation((r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)}))}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return lUe(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter((([t,r])=>e.includes(t)&&e.includes(r))))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=r$e.getter(e,!0);return this.transform((a=>{if(!a)return a;let o=a;return((e,t)=>{const r=[...r$e.normalizePath(t)];if(1===r.length)return r[0]in e;let n=r.pop(),a=r$e.getter(r$e.join(r),!0)(e);return!(!a||!(n in a))})(a,e)&&(o=Object.assign({},a),r||delete o[e],o[t]=n(a)),o}))}json(){return this.transform(oUe)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||R$e.exact,test(e){if(null==e)return!0;const t=sUe(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=R$e.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=sUe(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=R$e.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const r={};for(const n of Object.keys(t))r[e(n)]=t[n];return r}))}camelCase(){return this.transformKeys(c$e)}snakeCase(){return this.transformKeys(d$e)}constantCase(){return this.transformKeys((e=>d$e(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[a,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[a]})),r.fields[a]=o.describe(t)}return r}}dUe.prototype=uUe.prototype;const hUe=({open:t,onOpenChange:r,title:n,description:a,children:o,confirmLabel:l="Confirm",cancelLabel:i="Cancel",onConfirm:s,onCancel:c,onClose:d,trigger:u,typeToConfirm:h,hideCancelButton:f=!1,isLoading:p=!1,testId:v,cancelClassName:m,confirmClassName:y})=>{const g=!!h,b=e.useMemo((()=>dUe({confirmInput:J$e().required("This field is required.").test("type-to-confirm",`Please type '${h}' to proceed`,(e=>e===h))})),[h]),{methods:k,FormRoot:w}=NWe({defaultValues:{confirmInput:""},validationSchema:b,mode:"onTouched",reValidateMode:"onChange"}),M=k.formState.isValid;e.useEffect((()=>{t||k.reset()}),[t]);const j=()=>{null==s||s()};return x(MZe,{open:t,onOpenChange:e=>{p||(e||null==d||d(),null==r||r(e))},children:[u&&_(jZe,{asChild:!0,children:u}),x(CZe,{"data-testid":v,children:[x(zZe,{children:[_(RZe,{"data-testid":v&&`${v}-title`,children:n}),a&&_(AZe,{"data-testid":v&&`${v}-description`,children:a})]}),o,g&&x(w,{className:"flex flex-col gap-4 w-full",onSubmit:j,children:[x("p",{className:"typography-small1 text-text-contrast-max",children:["Type “",h,"” to proceed."]}),_(BWe,{name:"confirmInput",component:Yme,componentProps:{label:"Type to confirm",required:!0,hasClearIcon:!0,keepFooterSpace:!0,fullwidth:!0,testId:v&&`${v}-type-to-confirm-input`},disabled:p})]}),x(PZe,{children:[!f&&_(LZe,{className:m,"data-testid":v&&`${v}-cancel-button`,onClick:()=>{null==c||c(),null==d||d()},disabled:p,children:i}),x(IZe,{type:"button",disabled:p||g&&!M,onClick:e=>{e.preventDefault(),g?k.handleSubmit(j)():null==s||s()},className:y,"data-testid":v&&`${v}-confirm-button`,children:[p&&_(Ix,{}),l]})]})]})]})};hUe.displayName="ConfirmDialog";const fUe=({open:e,onOpenChange:t,title:r,description:n,children:a,trigger:o,confirmAction:l,cancelAction:i,extraAction:s,scrollable:c=!1,className:d,formId:u,testId:h})=>{var f,p,v,m,y,g,b,k,w;const M=l||i||s;return x(qNe,{open:e,onOpenChange:t,children:[o&&_(TNe,{asChild:!0,children:o}),x(UNe,{className:d,"data-testid":h,children:[x(GNe,{children:[r&&_(XNe,{"data-testid":h&&`${h}-title`,children:r}),n&&_(QNe,{"data-testid":h&&`${h}-description`,children:n})]}),a&&_(YNe,{scrollable:c,children:a}),M&&x(KNe,{className:s?"justify-between":void 0,children:[s&&_(Lx,{type:null!==(f=s.type)&&void 0!==f?f:"button",variant:null!==(p=s.variant)&&void 0!==p?p:"outline",color:null!==(v=s.color)&&void 0!==v?v:"secondary",fullwidth:!1,disabled:s.disabled,isLoading:s.isLoading,onClick:s.onClick,className:s.className,"data-testid":h&&`${h}-extra-button`,children:s.label}),x("div",{className:"flex items-center gap-4",children:[i&&_(Lx,{type:null!==(m=i.type)&&void 0!==m?m:"button",variant:null!==(y=i.variant)&&void 0!==y?y:"outline",color:null!==(g=i.color)&&void 0!==g?g:"primary",fullwidth:!1,disabled:i.disabled,isLoading:i.isLoading,onClick:i.onClick,className:i.className,"data-testid":h&&`${h}-cancel-button`,children:i.label}),l&&_(Lx,{type:u?"submit":null!==(b=l.type)&&void 0!==b?b:"button",form:u,variant:null!==(k=l.variant)&&void 0!==k?k:"solid",color:null!==(w=l.color)&&void 0!==w?w:"primary",fullwidth:!1,disabled:l.disabled,isLoading:l.isLoading,onClick:l.onClick,className:l.className,"data-testid":h&&`${h}-confirm-button`,children:l.label})]})]})]})]})};function pUe(e,r,n){const a=[];let o=[];const l=e=>{var t,l;if(0===o.length)return;const i=o;o=[];const s=null!==(l=null===(t=i.find((e=>r.includes(e.value))))||void 0===t?void 0:t.value)&&void 0!==l?l:"";a.push(_(ZVe,{value:s,onValueChange:e=>{var t;const r=i.find((t=>t.value===e));r&&(null==n||n(e,r),null===(t=r.onClick)||void 0===t||t.call(r))},children:i.map((e=>_(WVe,{value:e.value,disabled:e.disabled,icon:e.icon,"data-testid":e.testId,children:e.label},e.value)))},e))};return e.forEach(((e,i)=>{var s;if("item"!==e.type||"radio"!==e.item.type)if(l(`radio-${i}`),"separator"!==e.type)if("label"!==e.type)if("custom"!==e.type)if("submenu"!==e.type){if("item"===e.type){const t=e.item,o=null!==(s=t.checked)&&void 0!==s?s:r.includes(t.value);if("checkbox"===t.type)return void a.push(_(FVe,{checked:o,disabled:t.disabled,"data-testid":t.testId,onCheckedChange:()=>{var e;null==n||n(t.value,t),null===(e=t.onClick)||void 0===e||e.call(t)},children:t.label},t.value));a.push(_(TVe,{selected:o,icon:t.icon,disabled:t.disabled,className:Ax(t.danger&&"text-red-500"),"data-testid":t.testId,onSelect:()=>{var e;null==n||n(t.value,t),null===(e=t.onClick)||void 0===e||e.call(t)},children:t.label},t.value))}}else a.push(x(NVe,{children:[x(DVe,{disabled:e.disabled,children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4"}),e.icon]}),e.label]}),_(BVe,{children:pUe(e.items,r,n)})]},`sub-${i}`));else a.push(_(t.Fragment,{children:e.render()},`custom-${i}`));else a.push(_($Ve,{children:e.label},`lbl-${i}`));else a.push(_(UVe,{},`sep-${i}`));else o.push(e.item)})),l("radio-end"),a}fUe.displayName="FormDialog";const vUe=({trigger:e,items:t,selectedValues:r=[],onSelect:n,header:a,open:o,onOpenChange:l,align:i="start",side:s="bottom",sideOffset:c=4,contentClassName:d,testId:u})=>_("div",{onClick:e=>e.stopPropagation(),children:x(LVe,{open:o,onOpenChange:l,children:[e&&_(SVe,{asChild:!0,children:e}),x(qVe,{align:i,side:s,sideOffset:c,className:d,"data-testid":u,children:[a&&_("div",{className:"sticky top-0 z-10 bg-modal-surface border-b border-[var(--dropdown-menu-seperator-bg)]",children:a}),pUe(t,r,n)]})]})});vUe.displayName="Menu";const mUe=e=>String(e).length>10?e/1e3:e,yUe=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t},gUe=e=>{const t=new Date(e);return t.setHours(23,59,59,999),t},bUe=()=>{const e=yUe(new Date);return{startTime:e,endTime:gUe(e)}},kUe=e=>{const t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return mUe(t)},wUe={"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 _Ue(e,t=document){if("undefined"==typeof window)return"";const r=t instanceof Document?t.documentElement:t,n=e in wUe?wUe[e]:e.startsWith("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(n).trim()}function xUe(e=Object.keys(wUe),t){return e.reduce(((e,r)=>(e[r]=_Ue(r,t),e)),{})}const MUe=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},jUe={"a-arrow-down":()=>Promise.resolve().then((function(){return Kx})),"a-arrow-up":()=>Promise.resolve().then((function(){return Qx})),"a-large-small":()=>Promise.resolve().then((function(){return eM})),accessibility:()=>Promise.resolve().then((function(){return rM})),activity:()=>Promise.resolve().then((function(){return aM})),"air-vent":()=>Promise.resolve().then((function(){return lM})),airplay:()=>Promise.resolve().then((function(){return sM})),"alarm-clock-check":()=>Promise.resolve().then((function(){return dM})),"alarm-clock-minus":()=>Promise.resolve().then((function(){return hM})),"alarm-clock-off":()=>Promise.resolve().then((function(){return pM})),"alarm-clock-plus":()=>Promise.resolve().then((function(){return mM})),"alarm-clock":()=>Promise.resolve().then((function(){return gM})),"alarm-smoke":()=>Promise.resolve().then((function(){return kM})),album:()=>Promise.resolve().then((function(){return _M})),"align-center-horizontal":()=>Promise.resolve().then((function(){return MM})),"align-center-vertical":()=>Promise.resolve().then((function(){return EM})),"align-center":()=>Promise.resolve().then((function(){return CM})),"align-end-horizontal":()=>Promise.resolve().then((function(){return PM})),"align-end-vertical":()=>Promise.resolve().then((function(){return AM})),"align-horizontal-distribute-center":()=>Promise.resolve().then((function(){return LM})),"align-horizontal-distribute-end":()=>Promise.resolve().then((function(){return VM})),"align-horizontal-distribute-start":()=>Promise.resolve().then((function(){return NM})),"align-horizontal-justify-center":()=>Promise.resolve().then((function(){return DM})),"align-horizontal-justify-end":()=>Promise.resolve().then((function(){return qM})),"align-horizontal-justify-start":()=>Promise.resolve().then((function(){return FM})),"align-horizontal-space-around":()=>Promise.resolve().then((function(){return $M})),"align-horizontal-space-between":()=>Promise.resolve().then((function(){return GM})),"align-justify":()=>Promise.resolve().then((function(){return KM})),"align-left":()=>Promise.resolve().then((function(){return QM})),"align-right":()=>Promise.resolve().then((function(){return ej})),"align-start-horizontal":()=>Promise.resolve().then((function(){return rj})),"align-start-vertical":()=>Promise.resolve().then((function(){return aj})),"align-vertical-distribute-center":()=>Promise.resolve().then((function(){return lj})),"align-vertical-distribute-end":()=>Promise.resolve().then((function(){return sj})),"align-vertical-distribute-start":()=>Promise.resolve().then((function(){return dj})),"align-vertical-justify-center":()=>Promise.resolve().then((function(){return hj})),"align-vertical-justify-end":()=>Promise.resolve().then((function(){return pj})),"align-vertical-justify-start":()=>Promise.resolve().then((function(){return mj})),"align-vertical-space-around":()=>Promise.resolve().then((function(){return gj})),"align-vertical-space-between":()=>Promise.resolve().then((function(){return kj})),ambulance:()=>Promise.resolve().then((function(){return _j})),ampersand:()=>Promise.resolve().then((function(){return Mj})),ampersands:()=>Promise.resolve().then((function(){return Ej})),amphora:()=>Promise.resolve().then((function(){return Cj})),anchor:()=>Promise.resolve().then((function(){return Pj})),angry:()=>Promise.resolve().then((function(){return Aj})),annoyed:()=>Promise.resolve().then((function(){return Lj})),antenna:()=>Promise.resolve().then((function(){return Vj})),anvil:()=>Promise.resolve().then((function(){return Nj})),aperture:()=>Promise.resolve().then((function(){return Dj})),"app-window-mac":()=>Promise.resolve().then((function(){return qj})),"app-window":()=>Promise.resolve().then((function(){return Fj})),apple:()=>Promise.resolve().then((function(){return $j})),"archive-restore":()=>Promise.resolve().then((function(){return Gj})),"archive-x":()=>Promise.resolve().then((function(){return Kj})),archive:()=>Promise.resolve().then((function(){return Qj})),armchair:()=>Promise.resolve().then((function(){return eE})),"arrow-big-down-dash":()=>Promise.resolve().then((function(){return rE})),"arrow-big-down":()=>Promise.resolve().then((function(){return aE})),"arrow-big-left-dash":()=>Promise.resolve().then((function(){return lE})),"arrow-big-left":()=>Promise.resolve().then((function(){return sE})),"arrow-big-right-dash":()=>Promise.resolve().then((function(){return dE})),"arrow-big-right":()=>Promise.resolve().then((function(){return hE})),"arrow-big-up-dash":()=>Promise.resolve().then((function(){return pE})),"arrow-big-up":()=>Promise.resolve().then((function(){return mE})),"arrow-down-0-1":()=>Promise.resolve().then((function(){return gE})),"arrow-down-1-0":()=>Promise.resolve().then((function(){return kE})),"arrow-down-a-z":()=>Promise.resolve().then((function(){return _E})),"arrow-down-from-line":()=>Promise.resolve().then((function(){return ME})),"arrow-down-left":()=>Promise.resolve().then((function(){return EE})),"arrow-down-narrow-wide":()=>Promise.resolve().then((function(){return CE})),"arrow-down-right":()=>Promise.resolve().then((function(){return PE})),"arrow-down-to-dot":()=>Promise.resolve().then((function(){return AE})),"arrow-down-to-line":()=>Promise.resolve().then((function(){return LE})),"arrow-down-up":()=>Promise.resolve().then((function(){return VE})),"arrow-down-wide-narrow":()=>Promise.resolve().then((function(){return NE})),"arrow-down-z-a":()=>Promise.resolve().then((function(){return DE})),"arrow-down":()=>Promise.resolve().then((function(){return qE})),"arrow-left-from-line":()=>Promise.resolve().then((function(){return FE})),"arrow-left-right":()=>Promise.resolve().then((function(){return $E})),"arrow-left-to-line":()=>Promise.resolve().then((function(){return GE})),"arrow-left":()=>Promise.resolve().then((function(){return KE})),"arrow-right-from-line":()=>Promise.resolve().then((function(){return QE})),"arrow-right-left":()=>Promise.resolve().then((function(){return eO})),"arrow-right-to-line":()=>Promise.resolve().then((function(){return rO})),"arrow-right":()=>Promise.resolve().then((function(){return aO})),"arrow-up-0-1":()=>Promise.resolve().then((function(){return lO})),"arrow-up-1-0":()=>Promise.resolve().then((function(){return sO})),"arrow-up-a-z":()=>Promise.resolve().then((function(){return dO})),"arrow-up-down":()=>Promise.resolve().then((function(){return hO})),"arrow-up-from-dot":()=>Promise.resolve().then((function(){return pO})),"arrow-up-from-line":()=>Promise.resolve().then((function(){return mO})),"arrow-up-left":()=>Promise.resolve().then((function(){return gO})),"arrow-up-narrow-wide":()=>Promise.resolve().then((function(){return kO})),"arrow-up-right":()=>Promise.resolve().then((function(){return _O})),"arrow-up-to-line":()=>Promise.resolve().then((function(){return MO})),"arrow-up-wide-narrow":()=>Promise.resolve().then((function(){return EO})),"arrow-up-z-a":()=>Promise.resolve().then((function(){return CO})),"arrow-up":()=>Promise.resolve().then((function(){return PO})),"arrows-up-from-line":()=>Promise.resolve().then((function(){return AO})),asterisk:()=>Promise.resolve().then((function(){return LO})),"at-sign":()=>Promise.resolve().then((function(){return VO})),atom:()=>Promise.resolve().then((function(){return NO})),"audio-lines":()=>Promise.resolve().then((function(){return DO})),"audio-waveform":()=>Promise.resolve().then((function(){return qO})),award:()=>Promise.resolve().then((function(){return FO})),axe:()=>Promise.resolve().then((function(){return $O})),"axis-3d":()=>Promise.resolve().then((function(){return GO})),baby:()=>Promise.resolve().then((function(){return KO})),backpack:()=>Promise.resolve().then((function(){return QO})),"badge-alert":()=>Promise.resolve().then((function(){return eC})),"badge-cent":()=>Promise.resolve().then((function(){return rC})),"badge-check":()=>Promise.resolve().then((function(){return aC})),"badge-dollar-sign":()=>Promise.resolve().then((function(){return lC})),"badge-euro":()=>Promise.resolve().then((function(){return sC})),"badge-help":()=>Promise.resolve().then((function(){return dC})),"badge-indian-rupee":()=>Promise.resolve().then((function(){return hC})),"badge-info":()=>Promise.resolve().then((function(){return pC})),"badge-japanese-yen":()=>Promise.resolve().then((function(){return mC})),"badge-minus":()=>Promise.resolve().then((function(){return gC})),"badge-percent":()=>Promise.resolve().then((function(){return kC})),"badge-plus":()=>Promise.resolve().then((function(){return _C})),"badge-pound-sterling":()=>Promise.resolve().then((function(){return MC})),"badge-russian-ruble":()=>Promise.resolve().then((function(){return EC})),"badge-swiss-franc":()=>Promise.resolve().then((function(){return CC})),"badge-x":()=>Promise.resolve().then((function(){return PC})),badge:()=>Promise.resolve().then((function(){return AC})),"baggage-claim":()=>Promise.resolve().then((function(){return LC})),ban:()=>Promise.resolve().then((function(){return VC})),banana:()=>Promise.resolve().then((function(){return NC})),bandage:()=>Promise.resolve().then((function(){return DC})),banknote:()=>Promise.resolve().then((function(){return qC})),barcode:()=>Promise.resolve().then((function(){return FC})),baseline:()=>Promise.resolve().then((function(){return $C})),bath:()=>Promise.resolve().then((function(){return GC})),"battery-charging":()=>Promise.resolve().then((function(){return KC})),"battery-full":()=>Promise.resolve().then((function(){return QC})),"battery-low":()=>Promise.resolve().then((function(){return ez})),"battery-medium":()=>Promise.resolve().then((function(){return rz})),"battery-warning":()=>Promise.resolve().then((function(){return az})),battery:()=>Promise.resolve().then((function(){return lz})),beaker:()=>Promise.resolve().then((function(){return sz})),"bean-off":()=>Promise.resolve().then((function(){return dz})),bean:()=>Promise.resolve().then((function(){return hz})),"bed-double":()=>Promise.resolve().then((function(){return pz})),"bed-single":()=>Promise.resolve().then((function(){return mz})),bed:()=>Promise.resolve().then((function(){return gz})),beef:()=>Promise.resolve().then((function(){return kz})),"beer-off":()=>Promise.resolve().then((function(){return _z})),beer:()=>Promise.resolve().then((function(){return Mz})),"bell-dot":()=>Promise.resolve().then((function(){return Ez})),"bell-electric":()=>Promise.resolve().then((function(){return Cz})),"bell-minus":()=>Promise.resolve().then((function(){return Pz})),"bell-off":()=>Promise.resolve().then((function(){return Az})),"bell-plus":()=>Promise.resolve().then((function(){return Lz})),"bell-ring":()=>Promise.resolve().then((function(){return Vz})),bell:()=>Promise.resolve().then((function(){return Nz})),"between-horizontal-end":()=>Promise.resolve().then((function(){return Dz})),"between-horizontal-start":()=>Promise.resolve().then((function(){return qz})),"between-vertical-end":()=>Promise.resolve().then((function(){return Fz})),"between-vertical-start":()=>Promise.resolve().then((function(){return $z})),"biceps-flexed":()=>Promise.resolve().then((function(){return Gz})),bike:()=>Promise.resolve().then((function(){return Kz})),binary:()=>Promise.resolve().then((function(){return Qz})),binoculars:()=>Promise.resolve().then((function(){return eP})),biohazard:()=>Promise.resolve().then((function(){return rP})),bird:()=>Promise.resolve().then((function(){return aP})),bitcoin:()=>Promise.resolve().then((function(){return lP})),blend:()=>Promise.resolve().then((function(){return sP})),blinds:()=>Promise.resolve().then((function(){return dP})),blocks:()=>Promise.resolve().then((function(){return hP})),"bluetooth-connected":()=>Promise.resolve().then((function(){return pP})),"bluetooth-off":()=>Promise.resolve().then((function(){return mP})),"bluetooth-searching":()=>Promise.resolve().then((function(){return gP})),bluetooth:()=>Promise.resolve().then((function(){return kP})),bold:()=>Promise.resolve().then((function(){return _P})),bolt:()=>Promise.resolve().then((function(){return MP})),bomb:()=>Promise.resolve().then((function(){return EP})),bone:()=>Promise.resolve().then((function(){return CP})),"book-a":()=>Promise.resolve().then((function(){return PP})),"book-audio":()=>Promise.resolve().then((function(){return AP})),"book-check":()=>Promise.resolve().then((function(){return LP})),"book-copy":()=>Promise.resolve().then((function(){return VP})),"book-dashed":()=>Promise.resolve().then((function(){return NP})),"book-down":()=>Promise.resolve().then((function(){return DP})),"book-headphones":()=>Promise.resolve().then((function(){return qP})),"book-heart":()=>Promise.resolve().then((function(){return FP})),"book-image":()=>Promise.resolve().then((function(){return $P})),"book-key":()=>Promise.resolve().then((function(){return GP})),"book-lock":()=>Promise.resolve().then((function(){return KP})),"book-marked":()=>Promise.resolve().then((function(){return QP})),"book-minus":()=>Promise.resolve().then((function(){return eR})),"book-open-check":()=>Promise.resolve().then((function(){return rR})),"book-open-text":()=>Promise.resolve().then((function(){return aR})),"book-open":()=>Promise.resolve().then((function(){return lR})),"book-plus":()=>Promise.resolve().then((function(){return sR})),"book-text":()=>Promise.resolve().then((function(){return dR})),"book-type":()=>Promise.resolve().then((function(){return hR})),"book-up-2":()=>Promise.resolve().then((function(){return pR})),"book-up":()=>Promise.resolve().then((function(){return mR})),"book-user":()=>Promise.resolve().then((function(){return gR})),"book-x":()=>Promise.resolve().then((function(){return kR})),book:()=>Promise.resolve().then((function(){return _R})),"bookmark-check":()=>Promise.resolve().then((function(){return MR})),"bookmark-minus":()=>Promise.resolve().then((function(){return ER})),"bookmark-plus":()=>Promise.resolve().then((function(){return CR})),"bookmark-x":()=>Promise.resolve().then((function(){return PR})),bookmark:()=>Promise.resolve().then((function(){return AR})),"boom-box":()=>Promise.resolve().then((function(){return LR})),"bot-message-square":()=>Promise.resolve().then((function(){return VR})),"bot-off":()=>Promise.resolve().then((function(){return NR})),bot:()=>Promise.resolve().then((function(){return DR})),box:()=>Promise.resolve().then((function(){return qR})),boxes:()=>Promise.resolve().then((function(){return FR})),braces:()=>Promise.resolve().then((function(){return $R})),brackets:()=>Promise.resolve().then((function(){return GR})),"brain-circuit":()=>Promise.resolve().then((function(){return KR})),"brain-cog":()=>Promise.resolve().then((function(){return QR})),brain:()=>Promise.resolve().then((function(){return eA})),"brick-wall":()=>Promise.resolve().then((function(){return rA})),"briefcase-business":()=>Promise.resolve().then((function(){return aA})),"briefcase-conveyor-belt":()=>Promise.resolve().then((function(){return lA})),"briefcase-medical":()=>Promise.resolve().then((function(){return sA})),briefcase:()=>Promise.resolve().then((function(){return dA})),"bring-to-front":()=>Promise.resolve().then((function(){return hA})),brush:()=>Promise.resolve().then((function(){return pA})),"bug-off":()=>Promise.resolve().then((function(){return mA})),"bug-play":()=>Promise.resolve().then((function(){return gA})),bug:()=>Promise.resolve().then((function(){return kA})),"building-2":()=>Promise.resolve().then((function(){return _A})),building:()=>Promise.resolve().then((function(){return MA})),"bus-front":()=>Promise.resolve().then((function(){return EA})),bus:()=>Promise.resolve().then((function(){return CA})),"cable-car":()=>Promise.resolve().then((function(){return PA})),cable:()=>Promise.resolve().then((function(){return AA})),"cake-slice":()=>Promise.resolve().then((function(){return LA})),cake:()=>Promise.resolve().then((function(){return VA})),calculator:()=>Promise.resolve().then((function(){return NA})),"calendar-1":()=>Promise.resolve().then((function(){return DA})),"calendar-arrow-down":()=>Promise.resolve().then((function(){return qA})),"calendar-arrow-up":()=>Promise.resolve().then((function(){return FA})),"calendar-check-2":()=>Promise.resolve().then((function(){return $A})),"calendar-check":()=>Promise.resolve().then((function(){return GA})),"calendar-clock":()=>Promise.resolve().then((function(){return KA})),"calendar-cog":()=>Promise.resolve().then((function(){return QA})),"calendar-days":()=>Promise.resolve().then((function(){return eI})),"calendar-fold":()=>Promise.resolve().then((function(){return rI})),"calendar-heart":()=>Promise.resolve().then((function(){return aI})),"calendar-minus-2":()=>Promise.resolve().then((function(){return lI})),"calendar-minus":()=>Promise.resolve().then((function(){return sI})),"calendar-off":()=>Promise.resolve().then((function(){return dI})),"calendar-plus-2":()=>Promise.resolve().then((function(){return hI})),"calendar-plus":()=>Promise.resolve().then((function(){return pI})),"calendar-range":()=>Promise.resolve().then((function(){return mI})),"calendar-search":()=>Promise.resolve().then((function(){return gI})),"calendar-x-2":()=>Promise.resolve().then((function(){return kI})),"calendar-x":()=>Promise.resolve().then((function(){return _I})),calendar:()=>Promise.resolve().then((function(){return MI})),"camera-off":()=>Promise.resolve().then((function(){return EI})),camera:()=>Promise.resolve().then((function(){return CI})),"candy-cane":()=>Promise.resolve().then((function(){return PI})),"candy-off":()=>Promise.resolve().then((function(){return AI})),candy:()=>Promise.resolve().then((function(){return LI})),cannabis:()=>Promise.resolve().then((function(){return VI})),"captions-off":()=>Promise.resolve().then((function(){return NI})),captions:()=>Promise.resolve().then((function(){return DI})),"car-front":()=>Promise.resolve().then((function(){return qI})),"car-taxi-front":()=>Promise.resolve().then((function(){return FI})),car:()=>Promise.resolve().then((function(){return $I})),caravan:()=>Promise.resolve().then((function(){return GI})),carrot:()=>Promise.resolve().then((function(){return KI})),"case-lower":()=>Promise.resolve().then((function(){return QI})),"case-sensitive":()=>Promise.resolve().then((function(){return eL})),"case-upper":()=>Promise.resolve().then((function(){return rL})),"cassette-tape":()=>Promise.resolve().then((function(){return aL})),cast:()=>Promise.resolve().then((function(){return lL})),castle:()=>Promise.resolve().then((function(){return sL})),cat:()=>Promise.resolve().then((function(){return dL})),cctv:()=>Promise.resolve().then((function(){return hL})),"chart-area":()=>Promise.resolve().then((function(){return pL})),"chart-bar-big":()=>Promise.resolve().then((function(){return mL})),"chart-bar-decreasing":()=>Promise.resolve().then((function(){return gL})),"chart-bar-increasing":()=>Promise.resolve().then((function(){return kL})),"chart-bar-stacked":()=>Promise.resolve().then((function(){return _L})),"chart-bar":()=>Promise.resolve().then((function(){return ML})),"chart-candlestick":()=>Promise.resolve().then((function(){return EL})),"chart-column-big":()=>Promise.resolve().then((function(){return CL})),"chart-column-decreasing":()=>Promise.resolve().then((function(){return PL})),"chart-column-increasing":()=>Promise.resolve().then((function(){return AL})),"chart-column-stacked":()=>Promise.resolve().then((function(){return LL})),"chart-column":()=>Promise.resolve().then((function(){return VL})),"chart-gantt":()=>Promise.resolve().then((function(){return NL})),"chart-line":()=>Promise.resolve().then((function(){return DL})),"chart-network":()=>Promise.resolve().then((function(){return qL})),"chart-no-axes-column-decreasing":()=>Promise.resolve().then((function(){return FL})),"chart-no-axes-column-increasing":()=>Promise.resolve().then((function(){return $L})),"chart-no-axes-column":()=>Promise.resolve().then((function(){return GL})),"chart-no-axes-combined":()=>Promise.resolve().then((function(){return KL})),"chart-no-axes-gantt":()=>Promise.resolve().then((function(){return QL})),"chart-pie":()=>Promise.resolve().then((function(){return eS})),"chart-scatter":()=>Promise.resolve().then((function(){return rS})),"chart-spline":()=>Promise.resolve().then((function(){return aS})),"check-check":()=>Promise.resolve().then((function(){return lS})),check:()=>Promise.resolve().then((function(){return sS})),"chef-hat":()=>Promise.resolve().then((function(){return dS})),cherry:()=>Promise.resolve().then((function(){return hS})),"chevron-down":()=>Promise.resolve().then((function(){return pS})),"chevron-first":()=>Promise.resolve().then((function(){return mS})),"chevron-last":()=>Promise.resolve().then((function(){return gS})),"chevron-left":()=>Promise.resolve().then((function(){return kS})),"chevron-right":()=>Promise.resolve().then((function(){return _S})),"chevron-up":()=>Promise.resolve().then((function(){return MS})),"chevrons-down-up":()=>Promise.resolve().then((function(){return ES})),"chevrons-down":()=>Promise.resolve().then((function(){return CS})),"chevrons-left-right-ellipsis":()=>Promise.resolve().then((function(){return PS})),"chevrons-left-right":()=>Promise.resolve().then((function(){return AS})),"chevrons-left":()=>Promise.resolve().then((function(){return LS})),"chevrons-right-left":()=>Promise.resolve().then((function(){return VS})),"chevrons-right":()=>Promise.resolve().then((function(){return NS})),"chevrons-up-down":()=>Promise.resolve().then((function(){return DS})),"chevrons-up":()=>Promise.resolve().then((function(){return qS})),chrome:()=>Promise.resolve().then((function(){return FS})),church:()=>Promise.resolve().then((function(){return $S})),"cigarette-off":()=>Promise.resolve().then((function(){return GS})),cigarette:()=>Promise.resolve().then((function(){return KS})),"circle-alert":()=>Promise.resolve().then((function(){return QS})),"circle-arrow-down":()=>Promise.resolve().then((function(){return eV})),"circle-arrow-left":()=>Promise.resolve().then((function(){return rV})),"circle-arrow-out-down-left":()=>Promise.resolve().then((function(){return aV})),"circle-arrow-out-down-right":()=>Promise.resolve().then((function(){return lV})),"circle-arrow-out-up-left":()=>Promise.resolve().then((function(){return sV})),"circle-arrow-out-up-right":()=>Promise.resolve().then((function(){return dV})),"circle-arrow-right":()=>Promise.resolve().then((function(){return hV})),"circle-arrow-up":()=>Promise.resolve().then((function(){return pV})),"circle-check-big":()=>Promise.resolve().then((function(){return mV})),"circle-check":()=>Promise.resolve().then((function(){return gV})),"circle-chevron-down":()=>Promise.resolve().then((function(){return kV})),"circle-chevron-left":()=>Promise.resolve().then((function(){return _V})),"circle-chevron-right":()=>Promise.resolve().then((function(){return MV})),"circle-chevron-up":()=>Promise.resolve().then((function(){return EV})),"circle-dashed":()=>Promise.resolve().then((function(){return CV})),"circle-divide":()=>Promise.resolve().then((function(){return PV})),"circle-dollar-sign":()=>Promise.resolve().then((function(){return AV})),"circle-dot-dashed":()=>Promise.resolve().then((function(){return LV})),"circle-dot":()=>Promise.resolve().then((function(){return VV})),"circle-ellipsis":()=>Promise.resolve().then((function(){return NV})),"circle-equal":()=>Promise.resolve().then((function(){return DV})),"circle-fading-arrow-up":()=>Promise.resolve().then((function(){return qV})),"circle-fading-plus":()=>Promise.resolve().then((function(){return FV})),"circle-gauge":()=>Promise.resolve().then((function(){return $V})),"circle-help":()=>Promise.resolve().then((function(){return GV})),"circle-minus":()=>Promise.resolve().then((function(){return KV})),"circle-off":()=>Promise.resolve().then((function(){return QV})),"circle-parking-off":()=>Promise.resolve().then((function(){return eH})),"circle-parking":()=>Promise.resolve().then((function(){return rH})),"circle-pause":()=>Promise.resolve().then((function(){return aH})),"circle-percent":()=>Promise.resolve().then((function(){return lH})),"circle-play":()=>Promise.resolve().then((function(){return sH})),"circle-plus":()=>Promise.resolve().then((function(){return dH})),"circle-power":()=>Promise.resolve().then((function(){return hH})),"circle-slash-2":()=>Promise.resolve().then((function(){return pH})),"circle-slash":()=>Promise.resolve().then((function(){return mH})),"circle-stop":()=>Promise.resolve().then((function(){return gH})),"circle-user-round":()=>Promise.resolve().then((function(){return kH})),"circle-user":()=>Promise.resolve().then((function(){return _H})),"circle-x":()=>Promise.resolve().then((function(){return MH})),circle:()=>Promise.resolve().then((function(){return EH})),"circuit-board":()=>Promise.resolve().then((function(){return CH})),citrus:()=>Promise.resolve().then((function(){return PH})),clapperboard:()=>Promise.resolve().then((function(){return AH})),"clipboard-check":()=>Promise.resolve().then((function(){return LH})),"clipboard-copy":()=>Promise.resolve().then((function(){return VH})),"clipboard-list":()=>Promise.resolve().then((function(){return NH})),"clipboard-minus":()=>Promise.resolve().then((function(){return DH})),"clipboard-paste":()=>Promise.resolve().then((function(){return qH})),"clipboard-pen-line":()=>Promise.resolve().then((function(){return FH})),"clipboard-pen":()=>Promise.resolve().then((function(){return $H})),"clipboard-plus":()=>Promise.resolve().then((function(){return GH})),"clipboard-type":()=>Promise.resolve().then((function(){return KH})),"clipboard-x":()=>Promise.resolve().then((function(){return QH})),clipboard:()=>Promise.resolve().then((function(){return eN})),"clock-1":()=>Promise.resolve().then((function(){return rN})),"clock-10":()=>Promise.resolve().then((function(){return aN})),"clock-11":()=>Promise.resolve().then((function(){return lN})),"clock-12":()=>Promise.resolve().then((function(){return sN})),"clock-2":()=>Promise.resolve().then((function(){return dN})),"clock-3":()=>Promise.resolve().then((function(){return hN})),"clock-4":()=>Promise.resolve().then((function(){return pN})),"clock-5":()=>Promise.resolve().then((function(){return mN})),"clock-6":()=>Promise.resolve().then((function(){return gN})),"clock-7":()=>Promise.resolve().then((function(){return kN})),"clock-8":()=>Promise.resolve().then((function(){return _N})),"clock-9":()=>Promise.resolve().then((function(){return MN})),"clock-alert":()=>Promise.resolve().then((function(){return EN})),"clock-arrow-down":()=>Promise.resolve().then((function(){return CN})),"clock-arrow-up":()=>Promise.resolve().then((function(){return PN})),clock:()=>Promise.resolve().then((function(){return AN})),"cloud-alert":()=>Promise.resolve().then((function(){return LN})),"cloud-cog":()=>Promise.resolve().then((function(){return VN})),"cloud-download":()=>Promise.resolve().then((function(){return NN})),"cloud-drizzle":()=>Promise.resolve().then((function(){return DN})),"cloud-fog":()=>Promise.resolve().then((function(){return qN})),"cloud-hail":()=>Promise.resolve().then((function(){return FN})),"cloud-lightning":()=>Promise.resolve().then((function(){return $N})),"cloud-moon-rain":()=>Promise.resolve().then((function(){return GN})),"cloud-moon":()=>Promise.resolve().then((function(){return KN})),"cloud-off":()=>Promise.resolve().then((function(){return QN})),"cloud-rain-wind":()=>Promise.resolve().then((function(){return eZ})),"cloud-rain":()=>Promise.resolve().then((function(){return rZ})),"cloud-snow":()=>Promise.resolve().then((function(){return aZ})),"cloud-sun-rain":()=>Promise.resolve().then((function(){return lZ})),"cloud-sun":()=>Promise.resolve().then((function(){return sZ})),"cloud-upload":()=>Promise.resolve().then((function(){return dZ})),cloud:()=>Promise.resolve().then((function(){return hZ})),cloudy:()=>Promise.resolve().then((function(){return pZ})),clover:()=>Promise.resolve().then((function(){return mZ})),club:()=>Promise.resolve().then((function(){return gZ})),"code-xml":()=>Promise.resolve().then((function(){return kZ})),code:()=>Promise.resolve().then((function(){return _Z})),codepen:()=>Promise.resolve().then((function(){return MZ})),codesandbox:()=>Promise.resolve().then((function(){return EZ})),coffee:()=>Promise.resolve().then((function(){return CZ})),cog:()=>Promise.resolve().then((function(){return PZ})),coins:()=>Promise.resolve().then((function(){return AZ})),"columns-2":()=>Promise.resolve().then((function(){return LZ})),"columns-3":()=>Promise.resolve().then((function(){return VZ})),"columns-4":()=>Promise.resolve().then((function(){return NZ})),combine:()=>Promise.resolve().then((function(){return DZ})),command:()=>Promise.resolve().then((function(){return qZ})),compass:()=>Promise.resolve().then((function(){return FZ})),component:()=>Promise.resolve().then((function(){return $Z})),computer:()=>Promise.resolve().then((function(){return GZ})),"concierge-bell":()=>Promise.resolve().then((function(){return KZ})),cone:()=>Promise.resolve().then((function(){return QZ})),construction:()=>Promise.resolve().then((function(){return eD})),"contact-round":()=>Promise.resolve().then((function(){return rD})),contact:()=>Promise.resolve().then((function(){return aD})),container:()=>Promise.resolve().then((function(){return lD})),contrast:()=>Promise.resolve().then((function(){return sD})),cookie:()=>Promise.resolve().then((function(){return dD})),"cooking-pot":()=>Promise.resolve().then((function(){return hD})),"copy-check":()=>Promise.resolve().then((function(){return pD})),"copy-minus":()=>Promise.resolve().then((function(){return mD})),"copy-plus":()=>Promise.resolve().then((function(){return gD})),"copy-slash":()=>Promise.resolve().then((function(){return kD})),"copy-x":()=>Promise.resolve().then((function(){return _D})),copy:()=>Promise.resolve().then((function(){return MD})),copyleft:()=>Promise.resolve().then((function(){return ED})),copyright:()=>Promise.resolve().then((function(){return CD})),"corner-down-left":()=>Promise.resolve().then((function(){return PD})),"corner-down-right":()=>Promise.resolve().then((function(){return AD})),"corner-left-down":()=>Promise.resolve().then((function(){return LD})),"corner-left-up":()=>Promise.resolve().then((function(){return VD})),"corner-right-down":()=>Promise.resolve().then((function(){return ND})),"corner-right-up":()=>Promise.resolve().then((function(){return DD})),"corner-up-left":()=>Promise.resolve().then((function(){return qD})),"corner-up-right":()=>Promise.resolve().then((function(){return FD})),cpu:()=>Promise.resolve().then((function(){return $D})),"creative-commons":()=>Promise.resolve().then((function(){return GD})),"credit-card":()=>Promise.resolve().then((function(){return KD})),croissant:()=>Promise.resolve().then((function(){return QD})),crop:()=>Promise.resolve().then((function(){return eB})),cross:()=>Promise.resolve().then((function(){return rB})),crosshair:()=>Promise.resolve().then((function(){return aB})),crown:()=>Promise.resolve().then((function(){return lB})),cuboid:()=>Promise.resolve().then((function(){return sB})),"cup-soda":()=>Promise.resolve().then((function(){return dB})),currency:()=>Promise.resolve().then((function(){return hB})),cylinder:()=>Promise.resolve().then((function(){return pB})),dam:()=>Promise.resolve().then((function(){return mB})),"database-backup":()=>Promise.resolve().then((function(){return gB})),"database-zap":()=>Promise.resolve().then((function(){return kB})),database:()=>Promise.resolve().then((function(){return _B})),delete:()=>Promise.resolve().then((function(){return MB})),dessert:()=>Promise.resolve().then((function(){return EB})),diameter:()=>Promise.resolve().then((function(){return CB})),"diamond-minus":()=>Promise.resolve().then((function(){return PB})),"diamond-percent":()=>Promise.resolve().then((function(){return AB})),"diamond-plus":()=>Promise.resolve().then((function(){return LB})),diamond:()=>Promise.resolve().then((function(){return VB})),"dice-1":()=>Promise.resolve().then((function(){return NB})),"dice-2":()=>Promise.resolve().then((function(){return DB})),"dice-3":()=>Promise.resolve().then((function(){return qB})),"dice-4":()=>Promise.resolve().then((function(){return FB})),"dice-5":()=>Promise.resolve().then((function(){return $B})),"dice-6":()=>Promise.resolve().then((function(){return GB})),dices:()=>Promise.resolve().then((function(){return KB})),diff:()=>Promise.resolve().then((function(){return QB})),"disc-2":()=>Promise.resolve().then((function(){return eq})),"disc-3":()=>Promise.resolve().then((function(){return rq})),"disc-album":()=>Promise.resolve().then((function(){return aq})),disc:()=>Promise.resolve().then((function(){return lq})),divide:()=>Promise.resolve().then((function(){return sq})),"dna-off":()=>Promise.resolve().then((function(){return dq})),dna:()=>Promise.resolve().then((function(){return hq})),dock:()=>Promise.resolve().then((function(){return pq})),dog:()=>Promise.resolve().then((function(){return mq})),"dollar-sign":()=>Promise.resolve().then((function(){return gq})),donut:()=>Promise.resolve().then((function(){return kq})),"door-closed":()=>Promise.resolve().then((function(){return _q})),"door-open":()=>Promise.resolve().then((function(){return Mq})),dot:()=>Promise.resolve().then((function(){return Eq})),download:()=>Promise.resolve().then((function(){return Cq})),"drafting-compass":()=>Promise.resolve().then((function(){return Pq})),drama:()=>Promise.resolve().then((function(){return Aq})),dribbble:()=>Promise.resolve().then((function(){return Lq})),drill:()=>Promise.resolve().then((function(){return Vq})),droplet:()=>Promise.resolve().then((function(){return Nq})),droplets:()=>Promise.resolve().then((function(){return Dq})),drum:()=>Promise.resolve().then((function(){return qq})),drumstick:()=>Promise.resolve().then((function(){return Fq})),dumbbell:()=>Promise.resolve().then((function(){return $q})),"ear-off":()=>Promise.resolve().then((function(){return Gq})),ear:()=>Promise.resolve().then((function(){return Kq})),"earth-lock":()=>Promise.resolve().then((function(){return Qq})),earth:()=>Promise.resolve().then((function(){return eT})),eclipse:()=>Promise.resolve().then((function(){return rT})),"egg-fried":()=>Promise.resolve().then((function(){return aT})),"egg-off":()=>Promise.resolve().then((function(){return lT})),egg:()=>Promise.resolve().then((function(){return sT})),"ellipsis-vertical":()=>Promise.resolve().then((function(){return dT})),ellipsis:()=>Promise.resolve().then((function(){return hT})),"equal-approximately":()=>Promise.resolve().then((function(){return pT})),"equal-not":()=>Promise.resolve().then((function(){return mT})),equal:()=>Promise.resolve().then((function(){return gT})),eraser:()=>Promise.resolve().then((function(){return kT})),"ethernet-port":()=>Promise.resolve().then((function(){return _T})),euro:()=>Promise.resolve().then((function(){return MT})),expand:()=>Promise.resolve().then((function(){return ET})),"external-link":()=>Promise.resolve().then((function(){return CT})),"eye-closed":()=>Promise.resolve().then((function(){return PT})),"eye-off":()=>Promise.resolve().then((function(){return AT})),eye:()=>Promise.resolve().then((function(){return LT})),facebook:()=>Promise.resolve().then((function(){return VT})),factory:()=>Promise.resolve().then((function(){return NT})),fan:()=>Promise.resolve().then((function(){return DT})),"fast-forward":()=>Promise.resolve().then((function(){return qT})),feather:()=>Promise.resolve().then((function(){return FT})),fence:()=>Promise.resolve().then((function(){return $T})),"ferris-wheel":()=>Promise.resolve().then((function(){return GT})),figma:()=>Promise.resolve().then((function(){return KT})),"file-archive":()=>Promise.resolve().then((function(){return QT})),"file-audio-2":()=>Promise.resolve().then((function(){return eF})),"file-audio":()=>Promise.resolve().then((function(){return rF})),"file-axis-3d":()=>Promise.resolve().then((function(){return aF})),"file-badge-2":()=>Promise.resolve().then((function(){return lF})),"file-badge":()=>Promise.resolve().then((function(){return sF})),"file-box":()=>Promise.resolve().then((function(){return dF})),"file-chart-column-increasing":()=>Promise.resolve().then((function(){return hF})),"file-chart-column":()=>Promise.resolve().then((function(){return pF})),"file-chart-line":()=>Promise.resolve().then((function(){return mF})),"file-chart-pie":()=>Promise.resolve().then((function(){return gF})),"file-check-2":()=>Promise.resolve().then((function(){return kF})),"file-check":()=>Promise.resolve().then((function(){return _F})),"file-clock":()=>Promise.resolve().then((function(){return MF})),"file-code-2":()=>Promise.resolve().then((function(){return EF})),"file-code":()=>Promise.resolve().then((function(){return CF})),"file-cog":()=>Promise.resolve().then((function(){return PF})),"file-diff":()=>Promise.resolve().then((function(){return AF})),"file-digit":()=>Promise.resolve().then((function(){return LF})),"file-down":()=>Promise.resolve().then((function(){return VF})),"file-heart":()=>Promise.resolve().then((function(){return NF})),"file-image":()=>Promise.resolve().then((function(){return DF})),"file-input":()=>Promise.resolve().then((function(){return qF})),"file-json-2":()=>Promise.resolve().then((function(){return FF})),"file-json":()=>Promise.resolve().then((function(){return $F})),"file-key-2":()=>Promise.resolve().then((function(){return GF})),"file-key":()=>Promise.resolve().then((function(){return KF})),"file-lock-2":()=>Promise.resolve().then((function(){return QF})),"file-lock":()=>Promise.resolve().then((function(){return eW})),"file-minus-2":()=>Promise.resolve().then((function(){return rW})),"file-minus":()=>Promise.resolve().then((function(){return aW})),"file-music":()=>Promise.resolve().then((function(){return lW})),"file-output":()=>Promise.resolve().then((function(){return sW})),"file-pen-line":()=>Promise.resolve().then((function(){return dW})),"file-pen":()=>Promise.resolve().then((function(){return hW})),"file-plus-2":()=>Promise.resolve().then((function(){return pW})),"file-plus":()=>Promise.resolve().then((function(){return mW})),"file-question":()=>Promise.resolve().then((function(){return gW})),"file-scan":()=>Promise.resolve().then((function(){return kW})),"file-search-2":()=>Promise.resolve().then((function(){return _W})),"file-search":()=>Promise.resolve().then((function(){return MW})),"file-sliders":()=>Promise.resolve().then((function(){return EW})),"file-spreadsheet":()=>Promise.resolve().then((function(){return CW})),"file-stack":()=>Promise.resolve().then((function(){return PW})),"file-symlink":()=>Promise.resolve().then((function(){return AW})),"file-terminal":()=>Promise.resolve().then((function(){return LW})),"file-text":()=>Promise.resolve().then((function(){return VW})),"file-type-2":()=>Promise.resolve().then((function(){return NW})),"file-type":()=>Promise.resolve().then((function(){return DW})),"file-up":()=>Promise.resolve().then((function(){return qW})),"file-user":()=>Promise.resolve().then((function(){return FW})),"file-video-2":()=>Promise.resolve().then((function(){return $W})),"file-video":()=>Promise.resolve().then((function(){return GW})),"file-volume-2":()=>Promise.resolve().then((function(){return KW})),"file-volume":()=>Promise.resolve().then((function(){return QW})),"file-warning":()=>Promise.resolve().then((function(){return e$})),"file-x-2":()=>Promise.resolve().then((function(){return r$})),"file-x":()=>Promise.resolve().then((function(){return a$})),file:()=>Promise.resolve().then((function(){return l$})),files:()=>Promise.resolve().then((function(){return s$})),film:()=>Promise.resolve().then((function(){return d$})),"filter-x":()=>Promise.resolve().then((function(){return h$})),filter:()=>Promise.resolve().then((function(){return p$})),fingerprint:()=>Promise.resolve().then((function(){return m$})),"fire-extinguisher":()=>Promise.resolve().then((function(){return g$})),"fish-off":()=>Promise.resolve().then((function(){return k$})),"fish-symbol":()=>Promise.resolve().then((function(){return _$})),fish:()=>Promise.resolve().then((function(){return M$})),"flag-off":()=>Promise.resolve().then((function(){return E$})),"flag-triangle-left":()=>Promise.resolve().then((function(){return C$})),"flag-triangle-right":()=>Promise.resolve().then((function(){return P$})),flag:()=>Promise.resolve().then((function(){return A$})),"flame-kindling":()=>Promise.resolve().then((function(){return L$})),flame:()=>Promise.resolve().then((function(){return V$})),"flashlight-off":()=>Promise.resolve().then((function(){return N$})),flashlight:()=>Promise.resolve().then((function(){return D$})),"flask-conical-off":()=>Promise.resolve().then((function(){return q$})),"flask-conical":()=>Promise.resolve().then((function(){return F$})),"flask-round":()=>Promise.resolve().then((function(){return $$})),"flip-horizontal-2":()=>Promise.resolve().then((function(){return G$})),"flip-horizontal":()=>Promise.resolve().then((function(){return K$})),"flip-vertical-2":()=>Promise.resolve().then((function(){return Q$})),"flip-vertical":()=>Promise.resolve().then((function(){return eU})),"flower-2":()=>Promise.resolve().then((function(){return rU})),flower:()=>Promise.resolve().then((function(){return aU})),focus:()=>Promise.resolve().then((function(){return lU})),"fold-horizontal":()=>Promise.resolve().then((function(){return sU})),"fold-vertical":()=>Promise.resolve().then((function(){return dU})),"folder-archive":()=>Promise.resolve().then((function(){return hU})),"folder-check":()=>Promise.resolve().then((function(){return pU})),"folder-clock":()=>Promise.resolve().then((function(){return mU})),"folder-closed":()=>Promise.resolve().then((function(){return gU})),"folder-code":()=>Promise.resolve().then((function(){return kU})),"folder-cog":()=>Promise.resolve().then((function(){return _U})),"folder-dot":()=>Promise.resolve().then((function(){return MU})),"folder-down":()=>Promise.resolve().then((function(){return EU})),"folder-git-2":()=>Promise.resolve().then((function(){return CU})),"folder-git":()=>Promise.resolve().then((function(){return PU})),"folder-heart":()=>Promise.resolve().then((function(){return AU})),"folder-input":()=>Promise.resolve().then((function(){return LU})),"folder-kanban":()=>Promise.resolve().then((function(){return VU})),"folder-key":()=>Promise.resolve().then((function(){return NU})),"folder-lock":()=>Promise.resolve().then((function(){return DU})),"folder-minus":()=>Promise.resolve().then((function(){return qU})),"folder-open-dot":()=>Promise.resolve().then((function(){return FU})),"folder-open":()=>Promise.resolve().then((function(){return $U})),"folder-output":()=>Promise.resolve().then((function(){return GU})),"folder-pen":()=>Promise.resolve().then((function(){return KU})),"folder-plus":()=>Promise.resolve().then((function(){return QU})),"folder-root":()=>Promise.resolve().then((function(){return eG})),"folder-search-2":()=>Promise.resolve().then((function(){return rG})),"folder-search":()=>Promise.resolve().then((function(){return aG})),"folder-symlink":()=>Promise.resolve().then((function(){return lG})),"folder-sync":()=>Promise.resolve().then((function(){return sG})),"folder-tree":()=>Promise.resolve().then((function(){return dG})),"folder-up":()=>Promise.resolve().then((function(){return hG})),"folder-x":()=>Promise.resolve().then((function(){return pG})),folder:()=>Promise.resolve().then((function(){return mG})),folders:()=>Promise.resolve().then((function(){return gG})),footprints:()=>Promise.resolve().then((function(){return kG})),forklift:()=>Promise.resolve().then((function(){return _G})),forward:()=>Promise.resolve().then((function(){return MG})),frame:()=>Promise.resolve().then((function(){return EG})),framer:()=>Promise.resolve().then((function(){return CG})),frown:()=>Promise.resolve().then((function(){return PG})),fuel:()=>Promise.resolve().then((function(){return AG})),fullscreen:()=>Promise.resolve().then((function(){return LG})),"gallery-horizontal-end":()=>Promise.resolve().then((function(){return VG})),"gallery-horizontal":()=>Promise.resolve().then((function(){return NG})),"gallery-thumbnails":()=>Promise.resolve().then((function(){return DG})),"gallery-vertical-end":()=>Promise.resolve().then((function(){return qG})),"gallery-vertical":()=>Promise.resolve().then((function(){return FG})),"gamepad-2":()=>Promise.resolve().then((function(){return $G})),gamepad:()=>Promise.resolve().then((function(){return GG})),gauge:()=>Promise.resolve().then((function(){return KG})),gavel:()=>Promise.resolve().then((function(){return QG})),gem:()=>Promise.resolve().then((function(){return eY})),ghost:()=>Promise.resolve().then((function(){return rY})),gift:()=>Promise.resolve().then((function(){return aY})),"git-branch-plus":()=>Promise.resolve().then((function(){return lY})),"git-branch":()=>Promise.resolve().then((function(){return sY})),"git-commit-horizontal":()=>Promise.resolve().then((function(){return dY})),"git-commit-vertical":()=>Promise.resolve().then((function(){return hY})),"git-compare-arrows":()=>Promise.resolve().then((function(){return pY})),"git-compare":()=>Promise.resolve().then((function(){return mY})),"git-fork":()=>Promise.resolve().then((function(){return gY})),"git-graph":()=>Promise.resolve().then((function(){return kY})),"git-merge":()=>Promise.resolve().then((function(){return _Y})),"git-pull-request-arrow":()=>Promise.resolve().then((function(){return MY})),"git-pull-request-closed":()=>Promise.resolve().then((function(){return EY})),"git-pull-request-create-arrow":()=>Promise.resolve().then((function(){return CY})),"git-pull-request-create":()=>Promise.resolve().then((function(){return PY})),"git-pull-request-draft":()=>Promise.resolve().then((function(){return AY})),"git-pull-request":()=>Promise.resolve().then((function(){return LY})),github:()=>Promise.resolve().then((function(){return VY})),gitlab:()=>Promise.resolve().then((function(){return NY})),"glass-water":()=>Promise.resolve().then((function(){return DY})),glasses:()=>Promise.resolve().then((function(){return qY})),"globe-lock":()=>Promise.resolve().then((function(){return FY})),globe:()=>Promise.resolve().then((function(){return $Y})),goal:()=>Promise.resolve().then((function(){return GY})),grab:()=>Promise.resolve().then((function(){return KY})),"graduation-cap":()=>Promise.resolve().then((function(){return QY})),grape:()=>Promise.resolve().then((function(){return eK})),"grid-2x2-check":()=>Promise.resolve().then((function(){return rK})),"grid-2x2-plus":()=>Promise.resolve().then((function(){return aK})),"grid-2x2-x":()=>Promise.resolve().then((function(){return lK})),"grid-2x2":()=>Promise.resolve().then((function(){return sK})),"grid-3x3":()=>Promise.resolve().then((function(){return dK})),"grip-horizontal":()=>Promise.resolve().then((function(){return hK})),"grip-vertical":()=>Promise.resolve().then((function(){return pK})),grip:()=>Promise.resolve().then((function(){return mK})),group:()=>Promise.resolve().then((function(){return gK})),guitar:()=>Promise.resolve().then((function(){return kK})),ham:()=>Promise.resolve().then((function(){return _K})),hammer:()=>Promise.resolve().then((function(){return MK})),"hand-coins":()=>Promise.resolve().then((function(){return EK})),"hand-heart":()=>Promise.resolve().then((function(){return CK})),"hand-helping":()=>Promise.resolve().then((function(){return PK})),"hand-metal":()=>Promise.resolve().then((function(){return AK})),"hand-platter":()=>Promise.resolve().then((function(){return LK})),hand:()=>Promise.resolve().then((function(){return VK})),handshake:()=>Promise.resolve().then((function(){return NK})),"hard-drive-download":()=>Promise.resolve().then((function(){return DK})),"hard-drive-upload":()=>Promise.resolve().then((function(){return qK})),"hard-drive":()=>Promise.resolve().then((function(){return FK})),"hard-hat":()=>Promise.resolve().then((function(){return $K})),hash:()=>Promise.resolve().then((function(){return GK})),haze:()=>Promise.resolve().then((function(){return KK})),"hdmi-port":()=>Promise.resolve().then((function(){return QK})),"heading-1":()=>Promise.resolve().then((function(){return eX})),"heading-2":()=>Promise.resolve().then((function(){return rX})),"heading-3":()=>Promise.resolve().then((function(){return aX})),"heading-4":()=>Promise.resolve().then((function(){return lX})),"heading-5":()=>Promise.resolve().then((function(){return sX})),"heading-6":()=>Promise.resolve().then((function(){return dX})),heading:()=>Promise.resolve().then((function(){return hX})),"headphone-off":()=>Promise.resolve().then((function(){return pX})),headphones:()=>Promise.resolve().then((function(){return mX})),headset:()=>Promise.resolve().then((function(){return gX})),"heart-crack":()=>Promise.resolve().then((function(){return kX})),"heart-handshake":()=>Promise.resolve().then((function(){return _X})),"heart-off":()=>Promise.resolve().then((function(){return MX})),"heart-pulse":()=>Promise.resolve().then((function(){return EX})),heart:()=>Promise.resolve().then((function(){return CX})),heater:()=>Promise.resolve().then((function(){return PX})),hexagon:()=>Promise.resolve().then((function(){return AX})),highlighter:()=>Promise.resolve().then((function(){return LX})),history:()=>Promise.resolve().then((function(){return VX})),"hop-off":()=>Promise.resolve().then((function(){return NX})),hop:()=>Promise.resolve().then((function(){return DX})),hospital:()=>Promise.resolve().then((function(){return qX})),hotel:()=>Promise.resolve().then((function(){return FX})),hourglass:()=>Promise.resolve().then((function(){return $X})),"house-plug":()=>Promise.resolve().then((function(){return GX})),"house-plus":()=>Promise.resolve().then((function(){return KX})),house:()=>Promise.resolve().then((function(){return QX})),"ice-cream-bowl":()=>Promise.resolve().then((function(){return eQ})),"ice-cream-cone":()=>Promise.resolve().then((function(){return rQ})),"id-card":()=>Promise.resolve().then((function(){return aQ})),"image-down":()=>Promise.resolve().then((function(){return lQ})),"image-minus":()=>Promise.resolve().then((function(){return sQ})),"image-off":()=>Promise.resolve().then((function(){return dQ})),"image-play":()=>Promise.resolve().then((function(){return hQ})),"image-plus":()=>Promise.resolve().then((function(){return pQ})),"image-up":()=>Promise.resolve().then((function(){return mQ})),image:()=>Promise.resolve().then((function(){return gQ})),images:()=>Promise.resolve().then((function(){return kQ})),import:()=>Promise.resolve().then((function(){return _Q})),inbox:()=>Promise.resolve().then((function(){return MQ})),"indent-decrease":()=>Promise.resolve().then((function(){return EQ})),"indent-increase":()=>Promise.resolve().then((function(){return CQ})),"indian-rupee":()=>Promise.resolve().then((function(){return PQ})),infinity:()=>Promise.resolve().then((function(){return AQ})),info:()=>Promise.resolve().then((function(){return LQ})),"inspection-panel":()=>Promise.resolve().then((function(){return VQ})),instagram:()=>Promise.resolve().then((function(){return NQ})),italic:()=>Promise.resolve().then((function(){return DQ})),"iteration-ccw":()=>Promise.resolve().then((function(){return qQ})),"iteration-cw":()=>Promise.resolve().then((function(){return FQ})),"japanese-yen":()=>Promise.resolve().then((function(){return $Q})),joystick:()=>Promise.resolve().then((function(){return GQ})),kanban:()=>Promise.resolve().then((function(){return KQ})),"key-round":()=>Promise.resolve().then((function(){return QQ})),"key-square":()=>Promise.resolve().then((function(){return eJ})),key:()=>Promise.resolve().then((function(){return rJ})),"keyboard-music":()=>Promise.resolve().then((function(){return aJ})),"keyboard-off":()=>Promise.resolve().then((function(){return lJ})),keyboard:()=>Promise.resolve().then((function(){return sJ})),"lamp-ceiling":()=>Promise.resolve().then((function(){return dJ})),"lamp-desk":()=>Promise.resolve().then((function(){return hJ})),"lamp-floor":()=>Promise.resolve().then((function(){return pJ})),"lamp-wall-down":()=>Promise.resolve().then((function(){return mJ})),"lamp-wall-up":()=>Promise.resolve().then((function(){return gJ})),lamp:()=>Promise.resolve().then((function(){return kJ})),"land-plot":()=>Promise.resolve().then((function(){return _J})),landmark:()=>Promise.resolve().then((function(){return MJ})),languages:()=>Promise.resolve().then((function(){return EJ})),"laptop-minimal-check":()=>Promise.resolve().then((function(){return CJ})),"laptop-minimal":()=>Promise.resolve().then((function(){return PJ})),laptop:()=>Promise.resolve().then((function(){return AJ})),"lasso-select":()=>Promise.resolve().then((function(){return LJ})),lasso:()=>Promise.resolve().then((function(){return VJ})),laugh:()=>Promise.resolve().then((function(){return NJ})),"layers-2":()=>Promise.resolve().then((function(){return DJ})),"layers-3":()=>Promise.resolve().then((function(){return qJ})),layers:()=>Promise.resolve().then((function(){return FJ})),"layout-dashboard":()=>Promise.resolve().then((function(){return $J})),"layout-grid":()=>Promise.resolve().then((function(){return GJ})),"layout-list":()=>Promise.resolve().then((function(){return KJ})),"layout-panel-left":()=>Promise.resolve().then((function(){return QJ})),"layout-panel-top":()=>Promise.resolve().then((function(){return e1})),"layout-template":()=>Promise.resolve().then((function(){return r1})),leaf:()=>Promise.resolve().then((function(){return a1})),"leafy-green":()=>Promise.resolve().then((function(){return l1})),lectern:()=>Promise.resolve().then((function(){return s1})),"letter-text":()=>Promise.resolve().then((function(){return d1})),"library-big":()=>Promise.resolve().then((function(){return h1})),library:()=>Promise.resolve().then((function(){return p1})),"life-buoy":()=>Promise.resolve().then((function(){return m1})),ligature:()=>Promise.resolve().then((function(){return g1})),"lightbulb-off":()=>Promise.resolve().then((function(){return k1})),lightbulb:()=>Promise.resolve().then((function(){return _1})),"link-2-off":()=>Promise.resolve().then((function(){return M1})),"link-2":()=>Promise.resolve().then((function(){return E1})),link:()=>Promise.resolve().then((function(){return C1})),linkedin:()=>Promise.resolve().then((function(){return P1})),"list-check":()=>Promise.resolve().then((function(){return A1})),"list-checks":()=>Promise.resolve().then((function(){return L1})),"list-collapse":()=>Promise.resolve().then((function(){return V1})),"list-end":()=>Promise.resolve().then((function(){return N1})),"list-filter":()=>Promise.resolve().then((function(){return D1})),"list-minus":()=>Promise.resolve().then((function(){return q1})),"list-music":()=>Promise.resolve().then((function(){return F1})),"list-ordered":()=>Promise.resolve().then((function(){return $1})),"list-plus":()=>Promise.resolve().then((function(){return G1})),"list-restart":()=>Promise.resolve().then((function(){return K1})),"list-start":()=>Promise.resolve().then((function(){return Q1})),"list-todo":()=>Promise.resolve().then((function(){return e0})),"list-tree":()=>Promise.resolve().then((function(){return r0})),"list-video":()=>Promise.resolve().then((function(){return a0})),"list-x":()=>Promise.resolve().then((function(){return l0})),list:()=>Promise.resolve().then((function(){return s0})),"loader-circle":()=>Promise.resolve().then((function(){return d0})),"loader-pinwheel":()=>Promise.resolve().then((function(){return h0})),loader:()=>Promise.resolve().then((function(){return p0})),"locate-fixed":()=>Promise.resolve().then((function(){return m0})),"locate-off":()=>Promise.resolve().then((function(){return g0})),locate:()=>Promise.resolve().then((function(){return k0})),"lock-keyhole-open":()=>Promise.resolve().then((function(){return _0})),"lock-keyhole":()=>Promise.resolve().then((function(){return M0})),"lock-open":()=>Promise.resolve().then((function(){return E0})),lock:()=>Promise.resolve().then((function(){return C0})),"log-in":()=>Promise.resolve().then((function(){return P0})),"log-out":()=>Promise.resolve().then((function(){return A0})),logs:()=>Promise.resolve().then((function(){return L0})),lollipop:()=>Promise.resolve().then((function(){return V0})),luggage:()=>Promise.resolve().then((function(){return N0})),magnet:()=>Promise.resolve().then((function(){return D0})),"mail-check":()=>Promise.resolve().then((function(){return q0})),"mail-minus":()=>Promise.resolve().then((function(){return F0})),"mail-open":()=>Promise.resolve().then((function(){return $0})),"mail-plus":()=>Promise.resolve().then((function(){return G0})),"mail-question":()=>Promise.resolve().then((function(){return K0})),"mail-search":()=>Promise.resolve().then((function(){return Q0})),"mail-warning":()=>Promise.resolve().then((function(){return e2})),"mail-x":()=>Promise.resolve().then((function(){return r2})),mail:()=>Promise.resolve().then((function(){return a2})),mailbox:()=>Promise.resolve().then((function(){return l2})),mails:()=>Promise.resolve().then((function(){return s2})),"map-pin-check-inside":()=>Promise.resolve().then((function(){return d2})),"map-pin-check":()=>Promise.resolve().then((function(){return h2})),"map-pin-house":()=>Promise.resolve().then((function(){return p2})),"map-pin-minus-inside":()=>Promise.resolve().then((function(){return m2})),"map-pin-minus":()=>Promise.resolve().then((function(){return g2})),"map-pin-off":()=>Promise.resolve().then((function(){return k2})),"map-pin-plus-inside":()=>Promise.resolve().then((function(){return _2})),"map-pin-plus":()=>Promise.resolve().then((function(){return M2})),"map-pin-x-inside":()=>Promise.resolve().then((function(){return E2})),"map-pin-x":()=>Promise.resolve().then((function(){return C2})),"map-pin":()=>Promise.resolve().then((function(){return P2})),"map-pinned":()=>Promise.resolve().then((function(){return A2})),map:()=>Promise.resolve().then((function(){return L2})),martini:()=>Promise.resolve().then((function(){return V2})),"maximize-2":()=>Promise.resolve().then((function(){return N2})),maximize:()=>Promise.resolve().then((function(){return D2})),medal:()=>Promise.resolve().then((function(){return q2})),"megaphone-off":()=>Promise.resolve().then((function(){return F2})),megaphone:()=>Promise.resolve().then((function(){return $2})),meh:()=>Promise.resolve().then((function(){return G2})),"memory-stick":()=>Promise.resolve().then((function(){return K2})),menu:()=>Promise.resolve().then((function(){return Q2})),merge:()=>Promise.resolve().then((function(){return e5})),"message-circle-code":()=>Promise.resolve().then((function(){return r5})),"message-circle-dashed":()=>Promise.resolve().then((function(){return a5})),"message-circle-heart":()=>Promise.resolve().then((function(){return l5})),"message-circle-more":()=>Promise.resolve().then((function(){return s5})),"message-circle-off":()=>Promise.resolve().then((function(){return d5})),"message-circle-plus":()=>Promise.resolve().then((function(){return h5})),"message-circle-question":()=>Promise.resolve().then((function(){return p5})),"message-circle-reply":()=>Promise.resolve().then((function(){return m5})),"message-circle-warning":()=>Promise.resolve().then((function(){return g5})),"message-circle-x":()=>Promise.resolve().then((function(){return k5})),"message-circle":()=>Promise.resolve().then((function(){return _5})),"message-square-code":()=>Promise.resolve().then((function(){return M5})),"message-square-dashed":()=>Promise.resolve().then((function(){return E5})),"message-square-diff":()=>Promise.resolve().then((function(){return C5})),"message-square-dot":()=>Promise.resolve().then((function(){return P5})),"message-square-heart":()=>Promise.resolve().then((function(){return A5})),"message-square-lock":()=>Promise.resolve().then((function(){return L5})),"message-square-more":()=>Promise.resolve().then((function(){return V5})),"message-square-off":()=>Promise.resolve().then((function(){return N5})),"message-square-plus":()=>Promise.resolve().then((function(){return D5})),"message-square-quote":()=>Promise.resolve().then((function(){return q5})),"message-square-reply":()=>Promise.resolve().then((function(){return F5})),"message-square-share":()=>Promise.resolve().then((function(){return $5})),"message-square-text":()=>Promise.resolve().then((function(){return G5})),"message-square-warning":()=>Promise.resolve().then((function(){return K5})),"message-square-x":()=>Promise.resolve().then((function(){return Q5})),"message-square":()=>Promise.resolve().then((function(){return e7})),"messages-square":()=>Promise.resolve().then((function(){return r7})),"mic-off":()=>Promise.resolve().then((function(){return a7})),"mic-vocal":()=>Promise.resolve().then((function(){return l7})),mic:()=>Promise.resolve().then((function(){return s7})),microchip:()=>Promise.resolve().then((function(){return d7})),microscope:()=>Promise.resolve().then((function(){return h7})),microwave:()=>Promise.resolve().then((function(){return p7})),milestone:()=>Promise.resolve().then((function(){return m7})),"milk-off":()=>Promise.resolve().then((function(){return g7})),milk:()=>Promise.resolve().then((function(){return k7})),"minimize-2":()=>Promise.resolve().then((function(){return _7})),minimize:()=>Promise.resolve().then((function(){return M7})),minus:()=>Promise.resolve().then((function(){return E7})),"monitor-check":()=>Promise.resolve().then((function(){return C7})),"monitor-cog":()=>Promise.resolve().then((function(){return P7})),"monitor-dot":()=>Promise.resolve().then((function(){return A7})),"monitor-down":()=>Promise.resolve().then((function(){return L7})),"monitor-off":()=>Promise.resolve().then((function(){return V7})),"monitor-pause":()=>Promise.resolve().then((function(){return N7})),"monitor-play":()=>Promise.resolve().then((function(){return D7})),"monitor-smartphone":()=>Promise.resolve().then((function(){return q7})),"monitor-speaker":()=>Promise.resolve().then((function(){return F7})),"monitor-stop":()=>Promise.resolve().then((function(){return $7})),"monitor-up":()=>Promise.resolve().then((function(){return G7})),"monitor-x":()=>Promise.resolve().then((function(){return K7})),monitor:()=>Promise.resolve().then((function(){return Q7})),"moon-star":()=>Promise.resolve().then((function(){return e4})),moon:()=>Promise.resolve().then((function(){return r4})),"mountain-snow":()=>Promise.resolve().then((function(){return a4})),mountain:()=>Promise.resolve().then((function(){return l4})),"mouse-off":()=>Promise.resolve().then((function(){return s4})),"mouse-pointer-2":()=>Promise.resolve().then((function(){return d4})),"mouse-pointer-ban":()=>Promise.resolve().then((function(){return h4})),"mouse-pointer-click":()=>Promise.resolve().then((function(){return p4})),"mouse-pointer":()=>Promise.resolve().then((function(){return m4})),mouse:()=>Promise.resolve().then((function(){return g4})),"move-3d":()=>Promise.resolve().then((function(){return k4})),"move-diagonal-2":()=>Promise.resolve().then((function(){return _4})),"move-diagonal":()=>Promise.resolve().then((function(){return M4})),"move-down-left":()=>Promise.resolve().then((function(){return E4})),"move-down-right":()=>Promise.resolve().then((function(){return C4})),"move-down":()=>Promise.resolve().then((function(){return P4})),"move-horizontal":()=>Promise.resolve().then((function(){return A4})),"move-left":()=>Promise.resolve().then((function(){return L4})),"move-right":()=>Promise.resolve().then((function(){return V4})),"move-up-left":()=>Promise.resolve().then((function(){return N4})),"move-up-right":()=>Promise.resolve().then((function(){return D4})),"move-up":()=>Promise.resolve().then((function(){return q4})),"move-vertical":()=>Promise.resolve().then((function(){return F4})),move:()=>Promise.resolve().then((function(){return $4})),"music-2":()=>Promise.resolve().then((function(){return G4})),"music-3":()=>Promise.resolve().then((function(){return K4})),"music-4":()=>Promise.resolve().then((function(){return Q4})),music:()=>Promise.resolve().then((function(){return e3})),"navigation-2-off":()=>Promise.resolve().then((function(){return r3})),"navigation-2":()=>Promise.resolve().then((function(){return a3})),"navigation-off":()=>Promise.resolve().then((function(){return l3})),navigation:()=>Promise.resolve().then((function(){return s3})),network:()=>Promise.resolve().then((function(){return d3})),newspaper:()=>Promise.resolve().then((function(){return h3})),nfc:()=>Promise.resolve().then((function(){return p3})),"notebook-pen":()=>Promise.resolve().then((function(){return m3})),"notebook-tabs":()=>Promise.resolve().then((function(){return g3})),"notebook-text":()=>Promise.resolve().then((function(){return k3})),notebook:()=>Promise.resolve().then((function(){return _3})),"notepad-text-dashed":()=>Promise.resolve().then((function(){return M3})),"notepad-text":()=>Promise.resolve().then((function(){return E3})),"nut-off":()=>Promise.resolve().then((function(){return C3})),nut:()=>Promise.resolve().then((function(){return P3})),"octagon-alert":()=>Promise.resolve().then((function(){return A3})),"octagon-minus":()=>Promise.resolve().then((function(){return L3})),"octagon-pause":()=>Promise.resolve().then((function(){return V3})),"octagon-x":()=>Promise.resolve().then((function(){return N3})),octagon:()=>Promise.resolve().then((function(){return D3})),omega:()=>Promise.resolve().then((function(){return q3})),option:()=>Promise.resolve().then((function(){return F3})),orbit:()=>Promise.resolve().then((function(){return $3})),origami:()=>Promise.resolve().then((function(){return G3})),"package-2":()=>Promise.resolve().then((function(){return K3})),"package-check":()=>Promise.resolve().then((function(){return Q3})),"package-minus":()=>Promise.resolve().then((function(){return e6})),"package-open":()=>Promise.resolve().then((function(){return r6})),"package-plus":()=>Promise.resolve().then((function(){return a6})),"package-search":()=>Promise.resolve().then((function(){return l6})),"package-x":()=>Promise.resolve().then((function(){return s6})),package:()=>Promise.resolve().then((function(){return d6})),"paint-bucket":()=>Promise.resolve().then((function(){return h6})),"paint-roller":()=>Promise.resolve().then((function(){return p6})),"paintbrush-vertical":()=>Promise.resolve().then((function(){return m6})),paintbrush:()=>Promise.resolve().then((function(){return g6})),palette:()=>Promise.resolve().then((function(){return k6})),"panel-bottom-close":()=>Promise.resolve().then((function(){return _6})),"panel-bottom-dashed":()=>Promise.resolve().then((function(){return M6})),"panel-bottom-open":()=>Promise.resolve().then((function(){return E6})),"panel-bottom":()=>Promise.resolve().then((function(){return C6})),"panel-left-close":()=>Promise.resolve().then((function(){return P6})),"panel-left-dashed":()=>Promise.resolve().then((function(){return A6})),"panel-left-open":()=>Promise.resolve().then((function(){return L6})),"panel-left":()=>Promise.resolve().then((function(){return V6})),"panel-right-close":()=>Promise.resolve().then((function(){return N6})),"panel-right-dashed":()=>Promise.resolve().then((function(){return D6})),"panel-right-open":()=>Promise.resolve().then((function(){return q6})),"panel-right":()=>Promise.resolve().then((function(){return F6})),"panel-top-close":()=>Promise.resolve().then((function(){return $6})),"panel-top-dashed":()=>Promise.resolve().then((function(){return G6})),"panel-top-open":()=>Promise.resolve().then((function(){return K6})),"panel-top":()=>Promise.resolve().then((function(){return Q6})),"panels-left-bottom":()=>Promise.resolve().then((function(){return e8})),"panels-right-bottom":()=>Promise.resolve().then((function(){return r8})),"panels-top-left":()=>Promise.resolve().then((function(){return a8})),paperclip:()=>Promise.resolve().then((function(){return l8})),parentheses:()=>Promise.resolve().then((function(){return s8})),"parking-meter":()=>Promise.resolve().then((function(){return d8})),"party-popper":()=>Promise.resolve().then((function(){return h8})),pause:()=>Promise.resolve().then((function(){return p8})),"paw-print":()=>Promise.resolve().then((function(){return m8})),"pc-case":()=>Promise.resolve().then((function(){return g8})),"pen-line":()=>Promise.resolve().then((function(){return k8})),"pen-off":()=>Promise.resolve().then((function(){return _8})),"pen-tool":()=>Promise.resolve().then((function(){return M8})),pen:()=>Promise.resolve().then((function(){return E8})),"pencil-line":()=>Promise.resolve().then((function(){return C8})),"pencil-off":()=>Promise.resolve().then((function(){return P8})),"pencil-ruler":()=>Promise.resolve().then((function(){return A8})),pencil:()=>Promise.resolve().then((function(){return L8})),pentagon:()=>Promise.resolve().then((function(){return V8})),percent:()=>Promise.resolve().then((function(){return N8})),"person-standing":()=>Promise.resolve().then((function(){return D8})),"philippine-peso":()=>Promise.resolve().then((function(){return q8})),"phone-call":()=>Promise.resolve().then((function(){return F8})),"phone-forwarded":()=>Promise.resolve().then((function(){return $8})),"phone-incoming":()=>Promise.resolve().then((function(){return G8})),"phone-missed":()=>Promise.resolve().then((function(){return K8})),"phone-off":()=>Promise.resolve().then((function(){return Q8})),"phone-outgoing":()=>Promise.resolve().then((function(){return e9})),phone:()=>Promise.resolve().then((function(){return r9})),pi:()=>Promise.resolve().then((function(){return a9})),piano:()=>Promise.resolve().then((function(){return l9})),pickaxe:()=>Promise.resolve().then((function(){return s9})),"picture-in-picture-2":()=>Promise.resolve().then((function(){return d9})),"picture-in-picture":()=>Promise.resolve().then((function(){return h9})),"piggy-bank":()=>Promise.resolve().then((function(){return p9})),"pilcrow-left":()=>Promise.resolve().then((function(){return m9})),"pilcrow-right":()=>Promise.resolve().then((function(){return g9})),pilcrow:()=>Promise.resolve().then((function(){return k9})),"pill-bottle":()=>Promise.resolve().then((function(){return _9})),pill:()=>Promise.resolve().then((function(){return M9})),"pin-off":()=>Promise.resolve().then((function(){return E9})),pin:()=>Promise.resolve().then((function(){return C9})),pipette:()=>Promise.resolve().then((function(){return P9})),pizza:()=>Promise.resolve().then((function(){return A9})),"plane-landing":()=>Promise.resolve().then((function(){return L9})),"plane-takeoff":()=>Promise.resolve().then((function(){return V9})),plane:()=>Promise.resolve().then((function(){return N9})),play:()=>Promise.resolve().then((function(){return D9})),"plug-2":()=>Promise.resolve().then((function(){return q9})),"plug-zap":()=>Promise.resolve().then((function(){return F9})),plug:()=>Promise.resolve().then((function(){return $9})),plus:()=>Promise.resolve().then((function(){return G9})),"pocket-knife":()=>Promise.resolve().then((function(){return K9})),pocket:()=>Promise.resolve().then((function(){return Q9})),podcast:()=>Promise.resolve().then((function(){return eee})),"pointer-off":()=>Promise.resolve().then((function(){return ree})),pointer:()=>Promise.resolve().then((function(){return aee})),popcorn:()=>Promise.resolve().then((function(){return lee})),popsicle:()=>Promise.resolve().then((function(){return see})),"pound-sterling":()=>Promise.resolve().then((function(){return dee})),"power-off":()=>Promise.resolve().then((function(){return hee})),power:()=>Promise.resolve().then((function(){return pee})),presentation:()=>Promise.resolve().then((function(){return mee})),"printer-check":()=>Promise.resolve().then((function(){return gee})),printer:()=>Promise.resolve().then((function(){return kee})),projector:()=>Promise.resolve().then((function(){return _ee})),proportions:()=>Promise.resolve().then((function(){return Mee})),puzzle:()=>Promise.resolve().then((function(){return Eee})),pyramid:()=>Promise.resolve().then((function(){return Cee})),"qr-code":()=>Promise.resolve().then((function(){return Pee})),quote:()=>Promise.resolve().then((function(){return Aee})),rabbit:()=>Promise.resolve().then((function(){return Lee})),radar:()=>Promise.resolve().then((function(){return Vee})),radiation:()=>Promise.resolve().then((function(){return Nee})),radical:()=>Promise.resolve().then((function(){return Dee})),"radio-receiver":()=>Promise.resolve().then((function(){return qee})),"radio-tower":()=>Promise.resolve().then((function(){return Fee})),radio:()=>Promise.resolve().then((function(){return $ee})),radius:()=>Promise.resolve().then((function(){return Gee})),"rail-symbol":()=>Promise.resolve().then((function(){return Kee})),rainbow:()=>Promise.resolve().then((function(){return Qee})),rat:()=>Promise.resolve().then((function(){return ete})),ratio:()=>Promise.resolve().then((function(){return rte})),"receipt-cent":()=>Promise.resolve().then((function(){return ate})),"receipt-euro":()=>Promise.resolve().then((function(){return lte})),"receipt-indian-rupee":()=>Promise.resolve().then((function(){return ste})),"receipt-japanese-yen":()=>Promise.resolve().then((function(){return dte})),"receipt-pound-sterling":()=>Promise.resolve().then((function(){return hte})),"receipt-russian-ruble":()=>Promise.resolve().then((function(){return pte})),"receipt-swiss-franc":()=>Promise.resolve().then((function(){return mte})),"receipt-text":()=>Promise.resolve().then((function(){return gte})),receipt:()=>Promise.resolve().then((function(){return kte})),"rectangle-ellipsis":()=>Promise.resolve().then((function(){return _te})),"rectangle-horizontal":()=>Promise.resolve().then((function(){return Mte})),"rectangle-vertical":()=>Promise.resolve().then((function(){return Ete})),recycle:()=>Promise.resolve().then((function(){return Cte})),"redo-2":()=>Promise.resolve().then((function(){return Pte})),"redo-dot":()=>Promise.resolve().then((function(){return Ate})),redo:()=>Promise.resolve().then((function(){return Lte})),"refresh-ccw-dot":()=>Promise.resolve().then((function(){return Vte})),"refresh-ccw":()=>Promise.resolve().then((function(){return Nte})),"refresh-cw-off":()=>Promise.resolve().then((function(){return Dte})),"refresh-cw":()=>Promise.resolve().then((function(){return qte})),refrigerator:()=>Promise.resolve().then((function(){return Fte})),regex:()=>Promise.resolve().then((function(){return $te})),"remove-formatting":()=>Promise.resolve().then((function(){return Gte})),"repeat-1":()=>Promise.resolve().then((function(){return Kte})),"repeat-2":()=>Promise.resolve().then((function(){return Qte})),repeat:()=>Promise.resolve().then((function(){return ere})),"replace-all":()=>Promise.resolve().then((function(){return rre})),replace:()=>Promise.resolve().then((function(){return are})),"reply-all":()=>Promise.resolve().then((function(){return lre})),reply:()=>Promise.resolve().then((function(){return sre})),rewind:()=>Promise.resolve().then((function(){return dre})),ribbon:()=>Promise.resolve().then((function(){return hre})),rocket:()=>Promise.resolve().then((function(){return pre})),"rocking-chair":()=>Promise.resolve().then((function(){return mre})),"roller-coaster":()=>Promise.resolve().then((function(){return gre})),"rotate-3d":()=>Promise.resolve().then((function(){return kre})),"rotate-ccw-square":()=>Promise.resolve().then((function(){return _re})),"rotate-ccw":()=>Promise.resolve().then((function(){return Mre})),"rotate-cw-square":()=>Promise.resolve().then((function(){return Ere})),"rotate-cw":()=>Promise.resolve().then((function(){return Cre})),"route-off":()=>Promise.resolve().then((function(){return Pre})),route:()=>Promise.resolve().then((function(){return Are})),router:()=>Promise.resolve().then((function(){return Lre})),"rows-2":()=>Promise.resolve().then((function(){return Vre})),"rows-3":()=>Promise.resolve().then((function(){return Nre})),"rows-4":()=>Promise.resolve().then((function(){return Dre})),rss:()=>Promise.resolve().then((function(){return qre})),ruler:()=>Promise.resolve().then((function(){return Fre})),"russian-ruble":()=>Promise.resolve().then((function(){return $re})),sailboat:()=>Promise.resolve().then((function(){return Gre})),salad:()=>Promise.resolve().then((function(){return Kre})),sandwich:()=>Promise.resolve().then((function(){return Qre})),"satellite-dish":()=>Promise.resolve().then((function(){return ene})),satellite:()=>Promise.resolve().then((function(){return rne})),"save-all":()=>Promise.resolve().then((function(){return ane})),"save-off":()=>Promise.resolve().then((function(){return lne})),save:()=>Promise.resolve().then((function(){return sne})),"scale-3d":()=>Promise.resolve().then((function(){return dne})),scale:()=>Promise.resolve().then((function(){return hne})),scaling:()=>Promise.resolve().then((function(){return pne})),"scan-barcode":()=>Promise.resolve().then((function(){return mne})),"scan-eye":()=>Promise.resolve().then((function(){return gne})),"scan-face":()=>Promise.resolve().then((function(){return kne})),"scan-line":()=>Promise.resolve().then((function(){return _ne})),"scan-qr-code":()=>Promise.resolve().then((function(){return Mne})),"scan-search":()=>Promise.resolve().then((function(){return Ene})),"scan-text":()=>Promise.resolve().then((function(){return Cne})),scan:()=>Promise.resolve().then((function(){return Pne})),school:()=>Promise.resolve().then((function(){return Ane})),"scissors-line-dashed":()=>Promise.resolve().then((function(){return Lne})),scissors:()=>Promise.resolve().then((function(){return Vne})),"screen-share-off":()=>Promise.resolve().then((function(){return Nne})),"screen-share":()=>Promise.resolve().then((function(){return Dne})),"scroll-text":()=>Promise.resolve().then((function(){return qne})),scroll:()=>Promise.resolve().then((function(){return Fne})),"search-check":()=>Promise.resolve().then((function(){return $ne})),"search-code":()=>Promise.resolve().then((function(){return Gne})),"search-slash":()=>Promise.resolve().then((function(){return Kne})),"search-x":()=>Promise.resolve().then((function(){return Qne})),search:()=>Promise.resolve().then((function(){return eae})),section:()=>Promise.resolve().then((function(){return rae})),"send-horizontal":()=>Promise.resolve().then((function(){return aae})),"send-to-back":()=>Promise.resolve().then((function(){return lae})),send:()=>Promise.resolve().then((function(){return sae})),"separator-horizontal":()=>Promise.resolve().then((function(){return dae})),"separator-vertical":()=>Promise.resolve().then((function(){return hae})),"server-cog":()=>Promise.resolve().then((function(){return pae})),"server-crash":()=>Promise.resolve().then((function(){return mae})),"server-off":()=>Promise.resolve().then((function(){return gae})),server:()=>Promise.resolve().then((function(){return kae})),"settings-2":()=>Promise.resolve().then((function(){return _ae})),settings:()=>Promise.resolve().then((function(){return Mae})),shapes:()=>Promise.resolve().then((function(){return Eae})),"share-2":()=>Promise.resolve().then((function(){return Cae})),share:()=>Promise.resolve().then((function(){return Pae})),sheet:()=>Promise.resolve().then((function(){return Aae})),shell:()=>Promise.resolve().then((function(){return Lae})),"shield-alert":()=>Promise.resolve().then((function(){return Vae})),"shield-ban":()=>Promise.resolve().then((function(){return Nae})),"shield-check":()=>Promise.resolve().then((function(){return Dae})),"shield-ellipsis":()=>Promise.resolve().then((function(){return qae})),"shield-half":()=>Promise.resolve().then((function(){return Fae})),"shield-minus":()=>Promise.resolve().then((function(){return $ae})),"shield-off":()=>Promise.resolve().then((function(){return Gae})),"shield-plus":()=>Promise.resolve().then((function(){return Kae})),"shield-question":()=>Promise.resolve().then((function(){return Qae})),"shield-x":()=>Promise.resolve().then((function(){return eoe})),shield:()=>Promise.resolve().then((function(){return roe})),"ship-wheel":()=>Promise.resolve().then((function(){return aoe})),ship:()=>Promise.resolve().then((function(){return loe})),shirt:()=>Promise.resolve().then((function(){return soe})),"shopping-bag":()=>Promise.resolve().then((function(){return doe})),"shopping-basket":()=>Promise.resolve().then((function(){return hoe})),"shopping-cart":()=>Promise.resolve().then((function(){return poe})),shovel:()=>Promise.resolve().then((function(){return moe})),"shower-head":()=>Promise.resolve().then((function(){return goe})),shrink:()=>Promise.resolve().then((function(){return koe})),shrub:()=>Promise.resolve().then((function(){return _oe})),shuffle:()=>Promise.resolve().then((function(){return Moe})),sigma:()=>Promise.resolve().then((function(){return Eoe})),"signal-high":()=>Promise.resolve().then((function(){return Coe})),"signal-low":()=>Promise.resolve().then((function(){return Poe})),"signal-medium":()=>Promise.resolve().then((function(){return Aoe})),"signal-zero":()=>Promise.resolve().then((function(){return Loe})),signal:()=>Promise.resolve().then((function(){return Voe})),signature:()=>Promise.resolve().then((function(){return Noe})),"signpost-big":()=>Promise.resolve().then((function(){return Doe})),signpost:()=>Promise.resolve().then((function(){return qoe})),siren:()=>Promise.resolve().then((function(){return Foe})),"skip-back":()=>Promise.resolve().then((function(){return $oe})),"skip-forward":()=>Promise.resolve().then((function(){return Goe})),skull:()=>Promise.resolve().then((function(){return Koe})),slack:()=>Promise.resolve().then((function(){return Qoe})),slash:()=>Promise.resolve().then((function(){return ele})),slice:()=>Promise.resolve().then((function(){return rle})),"sliders-horizontal":()=>Promise.resolve().then((function(){return ale})),"sliders-vertical":()=>Promise.resolve().then((function(){return lle})),"smartphone-charging":()=>Promise.resolve().then((function(){return sle})),"smartphone-nfc":()=>Promise.resolve().then((function(){return dle})),smartphone:()=>Promise.resolve().then((function(){return hle})),"smile-plus":()=>Promise.resolve().then((function(){return ple})),smile:()=>Promise.resolve().then((function(){return mle})),snail:()=>Promise.resolve().then((function(){return gle})),snowflake:()=>Promise.resolve().then((function(){return kle})),sofa:()=>Promise.resolve().then((function(){return _le})),soup:()=>Promise.resolve().then((function(){return Mle})),space:()=>Promise.resolve().then((function(){return Ele})),spade:()=>Promise.resolve().then((function(){return Cle})),sparkle:()=>Promise.resolve().then((function(){return Ple})),sparkles:()=>Promise.resolve().then((function(){return Ale})),speaker:()=>Promise.resolve().then((function(){return Lle})),speech:()=>Promise.resolve().then((function(){return Vle})),"spell-check-2":()=>Promise.resolve().then((function(){return Nle})),"spell-check":()=>Promise.resolve().then((function(){return Dle})),spline:()=>Promise.resolve().then((function(){return qle})),split:()=>Promise.resolve().then((function(){return Fle})),"spray-can":()=>Promise.resolve().then((function(){return $le})),sprout:()=>Promise.resolve().then((function(){return Gle})),"square-activity":()=>Promise.resolve().then((function(){return Kle})),"square-arrow-down-left":()=>Promise.resolve().then((function(){return Qle})),"square-arrow-down-right":()=>Promise.resolve().then((function(){return eie})),"square-arrow-down":()=>Promise.resolve().then((function(){return rie})),"square-arrow-left":()=>Promise.resolve().then((function(){return aie})),"square-arrow-out-down-left":()=>Promise.resolve().then((function(){return lie})),"square-arrow-out-down-right":()=>Promise.resolve().then((function(){return sie})),"square-arrow-out-up-left":()=>Promise.resolve().then((function(){return die})),"square-arrow-out-up-right":()=>Promise.resolve().then((function(){return hie})),"square-arrow-right":()=>Promise.resolve().then((function(){return pie})),"square-arrow-up-left":()=>Promise.resolve().then((function(){return mie})),"square-arrow-up-right":()=>Promise.resolve().then((function(){return gie})),"square-arrow-up":()=>Promise.resolve().then((function(){return kie})),"square-asterisk":()=>Promise.resolve().then((function(){return _ie})),"square-bottom-dashed-scissors":()=>Promise.resolve().then((function(){return Mie})),"square-chart-gantt":()=>Promise.resolve().then((function(){return Eie})),"square-check-big":()=>Promise.resolve().then((function(){return Cie})),"square-check":()=>Promise.resolve().then((function(){return Pie})),"square-chevron-down":()=>Promise.resolve().then((function(){return Aie})),"square-chevron-left":()=>Promise.resolve().then((function(){return Lie})),"square-chevron-right":()=>Promise.resolve().then((function(){return Vie})),"square-chevron-up":()=>Promise.resolve().then((function(){return Nie})),"square-code":()=>Promise.resolve().then((function(){return Die})),"square-dashed-bottom-code":()=>Promise.resolve().then((function(){return qie})),"square-dashed-bottom":()=>Promise.resolve().then((function(){return Fie})),"square-dashed-kanban":()=>Promise.resolve().then((function(){return $ie})),"square-dashed-mouse-pointer":()=>Promise.resolve().then((function(){return Gie})),"square-dashed":()=>Promise.resolve().then((function(){return Kie})),"square-divide":()=>Promise.resolve().then((function(){return Qie})),"square-dot":()=>Promise.resolve().then((function(){return ese})),"square-equal":()=>Promise.resolve().then((function(){return rse})),"square-function":()=>Promise.resolve().then((function(){return ase})),"square-kanban":()=>Promise.resolve().then((function(){return lse})),"square-library":()=>Promise.resolve().then((function(){return sse})),"square-m":()=>Promise.resolve().then((function(){return dse})),"square-menu":()=>Promise.resolve().then((function(){return hse})),"square-minus":()=>Promise.resolve().then((function(){return pse})),"square-mouse-pointer":()=>Promise.resolve().then((function(){return mse})),"square-parking-off":()=>Promise.resolve().then((function(){return gse})),"square-parking":()=>Promise.resolve().then((function(){return kse})),"square-pen":()=>Promise.resolve().then((function(){return _se})),"square-percent":()=>Promise.resolve().then((function(){return Mse})),"square-pi":()=>Promise.resolve().then((function(){return Ese})),"square-pilcrow":()=>Promise.resolve().then((function(){return Cse})),"square-play":()=>Promise.resolve().then((function(){return Pse})),"square-plus":()=>Promise.resolve().then((function(){return Ase})),"square-power":()=>Promise.resolve().then((function(){return Lse})),"square-radical":()=>Promise.resolve().then((function(){return Vse})),"square-scissors":()=>Promise.resolve().then((function(){return Nse})),"square-sigma":()=>Promise.resolve().then((function(){return Dse})),"square-slash":()=>Promise.resolve().then((function(){return qse})),"square-split-horizontal":()=>Promise.resolve().then((function(){return Fse})),"square-split-vertical":()=>Promise.resolve().then((function(){return $se})),"square-square":()=>Promise.resolve().then((function(){return Gse})),"square-stack":()=>Promise.resolve().then((function(){return Kse})),"square-terminal":()=>Promise.resolve().then((function(){return Qse})),"square-user-round":()=>Promise.resolve().then((function(){return ece})),"square-user":()=>Promise.resolve().then((function(){return rce})),"square-x":()=>Promise.resolve().then((function(){return ace})),square:()=>Promise.resolve().then((function(){return lce})),squircle:()=>Promise.resolve().then((function(){return sce})),squirrel:()=>Promise.resolve().then((function(){return dce})),stamp:()=>Promise.resolve().then((function(){return hce})),"star-half":()=>Promise.resolve().then((function(){return pce})),"star-off":()=>Promise.resolve().then((function(){return mce})),star:()=>Promise.resolve().then((function(){return gce})),"step-back":()=>Promise.resolve().then((function(){return kce})),"step-forward":()=>Promise.resolve().then((function(){return _ce})),stethoscope:()=>Promise.resolve().then((function(){return Mce})),sticker:()=>Promise.resolve().then((function(){return Ece})),"sticky-note":()=>Promise.resolve().then((function(){return Cce})),store:()=>Promise.resolve().then((function(){return Pce})),"stretch-horizontal":()=>Promise.resolve().then((function(){return Ace})),"stretch-vertical":()=>Promise.resolve().then((function(){return Lce})),strikethrough:()=>Promise.resolve().then((function(){return Vce})),subscript:()=>Promise.resolve().then((function(){return Nce})),"sun-dim":()=>Promise.resolve().then((function(){return Dce})),"sun-medium":()=>Promise.resolve().then((function(){return qce})),"sun-moon":()=>Promise.resolve().then((function(){return Fce})),"sun-snow":()=>Promise.resolve().then((function(){return $ce})),sun:()=>Promise.resolve().then((function(){return Gce})),sunrise:()=>Promise.resolve().then((function(){return Kce})),sunset:()=>Promise.resolve().then((function(){return Qce})),superscript:()=>Promise.resolve().then((function(){return ede})),"swatch-book":()=>Promise.resolve().then((function(){return rde})),"swiss-franc":()=>Promise.resolve().then((function(){return ade})),"switch-camera":()=>Promise.resolve().then((function(){return lde})),sword:()=>Promise.resolve().then((function(){return sde})),swords:()=>Promise.resolve().then((function(){return dde})),syringe:()=>Promise.resolve().then((function(){return hde})),"table-2":()=>Promise.resolve().then((function(){return pde})),"table-cells-merge":()=>Promise.resolve().then((function(){return mde})),"table-cells-split":()=>Promise.resolve().then((function(){return gde})),"table-columns-split":()=>Promise.resolve().then((function(){return kde})),"table-of-contents":()=>Promise.resolve().then((function(){return _de})),"table-properties":()=>Promise.resolve().then((function(){return Mde})),"table-rows-split":()=>Promise.resolve().then((function(){return Ede})),table:()=>Promise.resolve().then((function(){return Cde})),"tablet-smartphone":()=>Promise.resolve().then((function(){return Pde})),tablet:()=>Promise.resolve().then((function(){return Ade})),tablets:()=>Promise.resolve().then((function(){return Lde})),tag:()=>Promise.resolve().then((function(){return Vde})),tags:()=>Promise.resolve().then((function(){return Nde})),"tally-1":()=>Promise.resolve().then((function(){return Dde})),"tally-2":()=>Promise.resolve().then((function(){return qde})),"tally-3":()=>Promise.resolve().then((function(){return Fde})),"tally-4":()=>Promise.resolve().then((function(){return $de})),"tally-5":()=>Promise.resolve().then((function(){return Gde})),tangent:()=>Promise.resolve().then((function(){return Kde})),target:()=>Promise.resolve().then((function(){return Qde})),telescope:()=>Promise.resolve().then((function(){return eue})),"tent-tree":()=>Promise.resolve().then((function(){return rue})),tent:()=>Promise.resolve().then((function(){return aue})),terminal:()=>Promise.resolve().then((function(){return lue})),"test-tube-diagonal":()=>Promise.resolve().then((function(){return sue})),"test-tube":()=>Promise.resolve().then((function(){return due})),"test-tubes":()=>Promise.resolve().then((function(){return hue})),"text-cursor-input":()=>Promise.resolve().then((function(){return pue})),"text-cursor":()=>Promise.resolve().then((function(){return mue})),"text-quote":()=>Promise.resolve().then((function(){return gue})),"text-search":()=>Promise.resolve().then((function(){return kue})),"text-select":()=>Promise.resolve().then((function(){return _ue})),text:()=>Promise.resolve().then((function(){return Mue})),theater:()=>Promise.resolve().then((function(){return Eue})),"thermometer-snowflake":()=>Promise.resolve().then((function(){return Cue})),"thermometer-sun":()=>Promise.resolve().then((function(){return Pue})),thermometer:()=>Promise.resolve().then((function(){return Aue})),"thumbs-down":()=>Promise.resolve().then((function(){return Lue})),"thumbs-up":()=>Promise.resolve().then((function(){return Vue})),"ticket-check":()=>Promise.resolve().then((function(){return Nue})),"ticket-minus":()=>Promise.resolve().then((function(){return Due})),"ticket-percent":()=>Promise.resolve().then((function(){return que})),"ticket-plus":()=>Promise.resolve().then((function(){return Fue})),"ticket-slash":()=>Promise.resolve().then((function(){return $ue})),"ticket-x":()=>Promise.resolve().then((function(){return Gue})),ticket:()=>Promise.resolve().then((function(){return Kue})),"tickets-plane":()=>Promise.resolve().then((function(){return Que})),tickets:()=>Promise.resolve().then((function(){return ehe})),"timer-off":()=>Promise.resolve().then((function(){return rhe})),"timer-reset":()=>Promise.resolve().then((function(){return ahe})),timer:()=>Promise.resolve().then((function(){return lhe})),"toggle-left":()=>Promise.resolve().then((function(){return she})),"toggle-right":()=>Promise.resolve().then((function(){return dhe})),toilet:()=>Promise.resolve().then((function(){return hhe})),tornado:()=>Promise.resolve().then((function(){return phe})),torus:()=>Promise.resolve().then((function(){return mhe})),"touchpad-off":()=>Promise.resolve().then((function(){return ghe})),touchpad:()=>Promise.resolve().then((function(){return khe})),"tower-control":()=>Promise.resolve().then((function(){return _he})),"toy-brick":()=>Promise.resolve().then((function(){return Mhe})),tractor:()=>Promise.resolve().then((function(){return Ehe})),"traffic-cone":()=>Promise.resolve().then((function(){return Che})),"train-front-tunnel":()=>Promise.resolve().then((function(){return Phe})),"train-front":()=>Promise.resolve().then((function(){return Ahe})),"train-track":()=>Promise.resolve().then((function(){return Lhe})),"tram-front":()=>Promise.resolve().then((function(){return Vhe})),"trash-2":()=>Promise.resolve().then((function(){return Nhe})),trash:()=>Promise.resolve().then((function(){return Dhe})),"tree-deciduous":()=>Promise.resolve().then((function(){return qhe})),"tree-palm":()=>Promise.resolve().then((function(){return Fhe})),"tree-pine":()=>Promise.resolve().then((function(){return $he})),trees:()=>Promise.resolve().then((function(){return Ghe})),trello:()=>Promise.resolve().then((function(){return Khe})),"trending-down":()=>Promise.resolve().then((function(){return Qhe})),"trending-up-down":()=>Promise.resolve().then((function(){return efe})),"trending-up":()=>Promise.resolve().then((function(){return rfe})),"triangle-alert":()=>Promise.resolve().then((function(){return afe})),"triangle-right":()=>Promise.resolve().then((function(){return lfe})),triangle:()=>Promise.resolve().then((function(){return sfe})),trophy:()=>Promise.resolve().then((function(){return dfe})),truck:()=>Promise.resolve().then((function(){return hfe})),turtle:()=>Promise.resolve().then((function(){return pfe})),"tv-minimal-play":()=>Promise.resolve().then((function(){return mfe})),"tv-minimal":()=>Promise.resolve().then((function(){return gfe})),tv:()=>Promise.resolve().then((function(){return kfe})),twitch:()=>Promise.resolve().then((function(){return _fe})),twitter:()=>Promise.resolve().then((function(){return Mfe})),"type-outline":()=>Promise.resolve().then((function(){return Efe})),type:()=>Promise.resolve().then((function(){return Cfe})),"umbrella-off":()=>Promise.resolve().then((function(){return Pfe})),umbrella:()=>Promise.resolve().then((function(){return Afe})),underline:()=>Promise.resolve().then((function(){return Lfe})),"undo-2":()=>Promise.resolve().then((function(){return Vfe})),"undo-dot":()=>Promise.resolve().then((function(){return Nfe})),undo:()=>Promise.resolve().then((function(){return Dfe})),"unfold-horizontal":()=>Promise.resolve().then((function(){return qfe})),"unfold-vertical":()=>Promise.resolve().then((function(){return Ffe})),ungroup:()=>Promise.resolve().then((function(){return $fe})),university:()=>Promise.resolve().then((function(){return Gfe})),"unlink-2":()=>Promise.resolve().then((function(){return Kfe})),unlink:()=>Promise.resolve().then((function(){return Qfe})),unplug:()=>Promise.resolve().then((function(){return epe})),upload:()=>Promise.resolve().then((function(){return rpe})),usb:()=>Promise.resolve().then((function(){return ape})),"user-check":()=>Promise.resolve().then((function(){return lpe})),"user-cog":()=>Promise.resolve().then((function(){return spe})),"user-minus":()=>Promise.resolve().then((function(){return dpe})),"user-pen":()=>Promise.resolve().then((function(){return hpe})),"user-plus":()=>Promise.resolve().then((function(){return ppe})),"user-round-check":()=>Promise.resolve().then((function(){return mpe})),"user-round-cog":()=>Promise.resolve().then((function(){return gpe})),"user-round-minus":()=>Promise.resolve().then((function(){return kpe})),"user-round-pen":()=>Promise.resolve().then((function(){return _pe})),"user-round-plus":()=>Promise.resolve().then((function(){return Mpe})),"user-round-search":()=>Promise.resolve().then((function(){return Epe})),"user-round-x":()=>Promise.resolve().then((function(){return Cpe})),"user-round":()=>Promise.resolve().then((function(){return Ppe})),"user-search":()=>Promise.resolve().then((function(){return Ape})),"user-x":()=>Promise.resolve().then((function(){return Lpe})),user:()=>Promise.resolve().then((function(){return Vpe})),"users-round":()=>Promise.resolve().then((function(){return Npe})),users:()=>Promise.resolve().then((function(){return Dpe})),"utensils-crossed":()=>Promise.resolve().then((function(){return qpe})),utensils:()=>Promise.resolve().then((function(){return Fpe})),"utility-pole":()=>Promise.resolve().then((function(){return $pe})),variable:()=>Promise.resolve().then((function(){return Gpe})),vault:()=>Promise.resolve().then((function(){return Kpe})),vegan:()=>Promise.resolve().then((function(){return Qpe})),"venetian-mask":()=>Promise.resolve().then((function(){return eve})),"vibrate-off":()=>Promise.resolve().then((function(){return rve})),vibrate:()=>Promise.resolve().then((function(){return ave})),"video-off":()=>Promise.resolve().then((function(){return lve})),video:()=>Promise.resolve().then((function(){return sve})),videotape:()=>Promise.resolve().then((function(){return dve})),view:()=>Promise.resolve().then((function(){return hve})),voicemail:()=>Promise.resolve().then((function(){return pve})),volleyball:()=>Promise.resolve().then((function(){return mve})),"volume-1":()=>Promise.resolve().then((function(){return gve})),"volume-2":()=>Promise.resolve().then((function(){return kve})),"volume-off":()=>Promise.resolve().then((function(){return _ve})),"volume-x":()=>Promise.resolve().then((function(){return Mve})),volume:()=>Promise.resolve().then((function(){return Eve})),vote:()=>Promise.resolve().then((function(){return Cve})),"wallet-cards":()=>Promise.resolve().then((function(){return Pve})),"wallet-minimal":()=>Promise.resolve().then((function(){return Ave})),wallet:()=>Promise.resolve().then((function(){return Lve})),wallpaper:()=>Promise.resolve().then((function(){return Vve})),"wand-sparkles":()=>Promise.resolve().then((function(){return Nve})),wand:()=>Promise.resolve().then((function(){return Dve})),warehouse:()=>Promise.resolve().then((function(){return qve})),"washing-machine":()=>Promise.resolve().then((function(){return Fve})),watch:()=>Promise.resolve().then((function(){return $ve})),waves:()=>Promise.resolve().then((function(){return Gve})),waypoints:()=>Promise.resolve().then((function(){return Kve})),webcam:()=>Promise.resolve().then((function(){return Qve})),"webhook-off":()=>Promise.resolve().then((function(){return eme})),webhook:()=>Promise.resolve().then((function(){return rme})),weight:()=>Promise.resolve().then((function(){return ame})),"wheat-off":()=>Promise.resolve().then((function(){return lme})),wheat:()=>Promise.resolve().then((function(){return sme})),"whole-word":()=>Promise.resolve().then((function(){return dme})),"wifi-high":()=>Promise.resolve().then((function(){return hme})),"wifi-low":()=>Promise.resolve().then((function(){return pme})),"wifi-off":()=>Promise.resolve().then((function(){return mme})),"wifi-zero":()=>Promise.resolve().then((function(){return gme})),wifi:()=>Promise.resolve().then((function(){return kme})),"wind-arrow-down":()=>Promise.resolve().then((function(){return _me})),wind:()=>Promise.resolve().then((function(){return Mme})),"wine-off":()=>Promise.resolve().then((function(){return Eme})),wine:()=>Promise.resolve().then((function(){return Cme})),workflow:()=>Promise.resolve().then((function(){return Pme})),worm:()=>Promise.resolve().then((function(){return Ame})),"wrap-text":()=>Promise.resolve().then((function(){return Lme})),wrench:()=>Promise.resolve().then((function(){return Vme})),x:()=>Promise.resolve().then((function(){return Nme})),youtube:()=>Promise.resolve().then((function(){return Dme})),"zap-off":()=>Promise.resolve().then((function(){return qme})),zap:()=>Promise.resolve().then((function(){return Fme})),"zoom-in":()=>Promise.resolve().then((function(){return $me})),"zoom-out":()=>Promise.resolve().then((function(){return Gme}))};
9269
+ function PPe(t,r){return t?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)}(t)?e.createElement(t,r):t:null}function RPe(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function APe(...e){return t=>{let r=!1;const n=e.map((e=>{const n=RPe(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():RPe(e[t],null)}}}}var IPe=e.forwardRef(((t,r)=>{const{children:n,...a}=t,o=e.Children.toArray(n),l=o.find(VPe);if(l){const t=l.props.children,n=o.map((r=>r===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r));return _(LPe,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,n):null})}return _(LPe,{...a,ref:r,children:n})}));IPe.displayName="Slot";var LPe=e.forwardRef(((t,r)=>{const{children:n,...a}=t;if(e.isValidElement(n)){const t=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}(n);return e.cloneElement(n,{...HPe(a,n.props),ref:r?APe(r,t):t})}return e.Children.count(n)>1?e.Children.only(null):null}));LPe.displayName="SlotClone";var SPe=({children:e})=>_(M,{children:e});function VPe(t){return e.isValidElement(t)&&t.type===SPe}function HPe(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 NPe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?IPe:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),ZPe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(NPe.div,{...a,ref:r}),i):null}));ZPe.displayName="Portal";var DPe=ZPe;const BPe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function qPe(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function TPe(e){return"nodeType"in e}function FPe(e){var t,r;return e?qPe(e)?e:TPe(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function WPe(e){const{Document:t}=FPe(e);return e instanceof t}function $Pe(e){return!qPe(e)&&e instanceof FPe(e).HTMLElement}function UPe(e){return e instanceof FPe(e).SVGElement}function GPe(e){return e?qPe(e)?e.document:TPe(e)?WPe(e)?e:$Pe(e)||UPe(e)?e.ownerDocument:document:document:document}const YPe=BPe?d:s;function KPe(e){const t=n(e);return YPe((()=>{t.current=e})),a((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}function XPe(e,t){void 0===t&&(t=[e]);const r=n(e);return YPe((()=>{r.current!==e&&(r.current=e)}),t),r}function QPe(e,t){const r=n();return l((()=>{const t=e(r.current);return r.current=t,t}),[...t])}function JPe(e){const t=KPe(e),r=n(null),o=a((e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e}),[]);return[r,o]}function eRe(e){const t=n();return s((()=>{t.current=e}),[e]),t.current}let tRe={};function rRe(e,t){return l((()=>{if(t)return t;const r=null==tRe[e]?0:tRe[e]+1;return tRe[e]=r,e+"-"+r}),[e,t])}function nRe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>{const n=Object.entries(r);for(const[r,a]of n){const n=t[r];null!=n&&(t[r]=n+e*a)}return t}),{...t})}}const aRe=nRe(1),oRe=nRe(-1);function lRe(e){if(!e)return!1;const{KeyboardEvent:t}=FPe(e.target);return t&&e instanceof t}function iRe(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=FPe(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const sRe=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[sRe.Translate.toString(e),sRe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),cRe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dRe(e){return e.matches(cRe)?e:e.querySelector(cRe)}const uRe={display:"none"};function hRe(e){let{id:r,value:n}=e;return t.createElement("div",{id:r,style:uRe},n)}function fRe(e){let{id:r,announcement:n,ariaLiveType:a="assertive"}=e;return t.createElement("div",{id:r,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":a,"aria-atomic":!0},n)}const pRe=h(null);const vRe={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},mRe={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function yRe(e){let{announcements:r=mRe,container:n,hiddenTextDescribedById:o,screenReaderInstructions:c=vRe}=e;const{announce:d,announcement:h}=function(){const[e,t]=i("");return{announce:a((e=>{null!=e&&t(e)}),[]),announcement:e}}(),f=rRe("DndLiveRegion"),[p,v]=i(!1);if(s((()=>{v(!0)}),[]),function(e){const t=u(pRe);s((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(l((()=>({onDragStart(e){let{active:t}=e;d(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&d(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;d(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;d(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;d(r.onDragCancel({active:t,over:n}))}})),[d,r])),!p)return null;const m=t.createElement(t.Fragment,null,t.createElement(hRe,{id:o,value:c.draggable}),t.createElement(fRe,{id:f,announcement:h}));return n?z(m,n):m}var gRe;function bRe(){}function kRe(e,t){return l((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function wRe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(gRe||(gRe={}));const _Re=Object.freeze({x:0,y:0});function xRe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function MRe(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function jRe(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function ERe(e){let{left:t,top:r,height:n,width:a}=e;return[{x:t,y:r},{x:t+a,y:r},{x:t,y:r+n},{x:t+a,y:r+n}]}function ORe(e,t){if(!e||0===e.length)return null;const[r]=e;return r[t]}function CRe(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const zRe=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=CRe(t,t.left,t.top),o=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=xRe(CRe(n),a);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(MRe)};function PRe(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),l=a-n,i=o-r;if(n<a&&r<o){const r=t.width*t.height,n=e.width*e.height,a=l*i;return Number((a/(r+n-a)).toFixed(4))}return 0}const RRe=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=[];for(const e of n){const{id:n}=e,o=r.get(n);if(o){const r=PRe(o,t);r>0&&a.push({id:n,data:{droppableContainer:e,value:r}})}}return a.sort(jRe)};function ARe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:_Re}function IRe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce(((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x})),{...t})}}const LRe=IRe(1);const SRe={ignoreTransform:!1};function VRe(e,t){void 0===t&&(t=SRe);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=FPe(e).getComputedStyle(e);t&&(r=function(e,t,r){const n=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;const{scaleX:a,scaleY:o,x:l,y:i}=n,s=e.left-l-(1-a)*parseFloat(r),c=e.top-i-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),d=a?e.width/a:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(r,t,n))}const{top:n,left:a,width:o,height:l,bottom:i,right:s}=r;return{top:n,left:a,width:o,height:l,bottom:i,right:s}}function HRe(e){return VRe(e,{ignoreTransform:!0})}function NRe(e,t){const r=[];return e?function n(a){if(null!=t&&r.length>=t)return r;if(!a)return r;if(WPe(a)&&null!=a.scrollingElement&&!r.includes(a.scrollingElement))return r.push(a.scrollingElement),r;if(!$Pe(a)||UPe(a))return r;if(r.includes(a))return r;const o=FPe(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=FPe(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,o)&&r.push(a),function(e,t){return void 0===t&&(t=FPe(e).getComputedStyle(e)),"fixed"===t.position}(a,o)?r:n(a.parentNode)}(e):r}function ZRe(e){const[t]=NRe(e,1);return null!=t?t:null}function DRe(e){return BPe&&e?qPe(e)?e:TPe(e)?WPe(e)||e===GPe(e).scrollingElement?window:$Pe(e)?e:null:null:null}function BRe(e){return qPe(e)?e.scrollX:e.scrollLeft}function qRe(e){return qPe(e)?e.scrollY:e.scrollTop}function TRe(e){return{x:BRe(e),y:qRe(e)}}var FRe;function WRe(e){return!(!BPe||!e)&&e===document.scrollingElement}function $Re(e){const t={x:0,y:0},r=WRe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(FRe||(FRe={}));const URe={x:.2,y:.2};function GRe(e,t,r,n,a){let{top:o,left:l,right:i,bottom:s}=r;void 0===n&&(n=10),void 0===a&&(a=URe);const{isTop:c,isBottom:d,isLeft:u,isRight:h}=$Re(e),f={x:0,y:0},p={x:0,y:0},v=t.height*a.y,m=t.width*a.x;return!c&&o<=t.top+v?(f.y=FRe.Backward,p.y=n*Math.abs((t.top+v-o)/v)):!d&&s>=t.bottom-v&&(f.y=FRe.Forward,p.y=n*Math.abs((t.bottom-v-s)/v)),!h&&i>=t.right-m?(f.x=FRe.Forward,p.x=n*Math.abs((t.right-m-i)/m)):!u&&l<=t.left+m&&(f.x=FRe.Backward,p.x=n*Math.abs((t.left+m-l)/m)),{direction:f,speed:p}}function YRe(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function KRe(e){return e.reduce(((e,t)=>aRe(e,TRe(t))),_Re)}const XRe=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+BRe(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+qRe(t)),0)}]];class QRe{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=NRe(t),n=KRe(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of XRe)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=a(r),l=n[e]-t;return this.rect[o]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class JRe{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function eAe(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}var tAe,rAe;function nAe(e){e.preventDefault()}function aAe(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(tAe||(tAe={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(rAe||(rAe={}));const oAe={start:[rAe.Space,rAe.Enter],cancel:[rAe.Esc],end:[rAe.Space,rAe.Enter,rAe.Tab]},lAe=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case rAe.Right:return{...r,x:r.x+25};case rAe.Left:return{...r,x:r.x-25};case rAe.Down:return{...r,y:r.y+25};case rAe.Up:return{...r,y:r.y-25}}};class iAe{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new JRe(GPe(t)),this.windowListeners=new JRe(FPe(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tAe.Resize,this.handleCancel),this.windowListeners.add(tAe.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(tAe.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=VRe),!e)return;const{top:r,left:n,bottom:a,right:o}=t(e);ZRe(e)&&(a<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(_Re)}handleKeyDown(e){if(lRe(e)){const{active:t,context:r,options:n}=this.props,{keyboardCodes:a=oAe,coordinateGetter:o=lAe,scrollBehavior:l="smooth"}=n,{code:i}=e;if(a.end.includes(i))return void this.handleEnd(e);if(a.cancel.includes(i))return void this.handleCancel(e);const{collisionRect:s}=r.current,c=s?{x:s.left,y:s.top}:_Re;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const t=oRe(d,c),n={x:0,y:0},{scrollableAncestors:a}=r.current;for(const r of a){const a=e.code,{isTop:o,isRight:i,isLeft:s,isBottom:c,maxScroll:u,minScroll:h}=$Re(r),f=YRe(r),p={x:Math.min(a===rAe.Right?f.right-f.width/2:f.right,Math.max(a===rAe.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(a===rAe.Down?f.bottom-f.height/2:f.bottom,Math.max(a===rAe.Down?f.top:f.top+f.height/2,d.y))},v=a===rAe.Right&&!i||a===rAe.Left&&!s,m=a===rAe.Down&&!c||a===rAe.Up&&!o;if(v&&p.x!==d.x){const e=r.scrollLeft+t.x,o=a===rAe.Right&&e<=u.x||a===rAe.Left&&e>=h.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:l});n.x=o?r.scrollLeft-e:a===rAe.Right?r.scrollLeft-u.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:l});break}if(m&&p.y!==d.y){const e=r.scrollTop+t.y,o=a===rAe.Down&&e<=u.y||a===rAe.Up&&e>=h.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:l});n.y=o?r.scrollTop-e:a===rAe.Down?r.scrollTop-u.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:l});break}}this.handleMove(e,aRe(oRe(d,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function sAe(e){return Boolean(e&&"distance"in e)}function cAe(e){return Boolean(e&&"delay"in e)}iAe.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=oAe,onActivation:a}=t,{active:o}=r;const{code:l}=e.nativeEvent;if(n.start.includes(l)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class dAe{constructor(e,t,r){var n;void 0===r&&(r=function(e){const{EventTarget:t}=FPe(e);return e instanceof t?e:GPe(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:o}=a;this.props=e,this.events=t,this.document=GPe(o),this.documentListeners=new JRe(this.document),this.listeners=new JRe(r),this.windowListeners=new JRe(FPe(o)),this.initialCoordinates=null!=(n=iRe(a))?n:_Re,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(tAe.Resize,this.handleCancel),this.windowListeners.add(tAe.DragStart,nAe),this.windowListeners.add(tAe.VisibilityChange,this.handleCancel),this.windowListeners.add(tAe.ContextMenu,nAe),this.documentListeners.add(tAe.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(cAe(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(sAe(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(tAe.Click,aAe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tAe.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:n,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!n)return;const i=null!=(t=iRe(e))?t:_Re,s=oRe(n,i);if(!r&&l){if(sAe(l)){if(null!=l.tolerance&&eAe(s,l.tolerance))return this.handleCancel();if(eAe(s,l.distance))return this.handleStart()}return cAe(l)&&eAe(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),o(i)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===rAe.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const uAe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class hAe extends dAe{constructor(e){const{event:t}=e,r=GPe(t.target);super(e,uAe,r)}}hAe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!(!r.isPrimary||0!==r.button)&&(null==n||n({event:r}),!0)}}];const fAe={move:{name:"mousemove"},end:{name:"mouseup"}};var pAe;!function(e){e[e.RightClick=2]="RightClick"}(pAe||(pAe={}));(class extends dAe{constructor(e){super(e,fAe,GPe(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==pAe.RightClick&&(null==n||n({event:r}),!0)}}];const vAe={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var mAe,yAe;function gAe(e){let{acceleration:t,activator:r=mAe.Pointer,canScroll:o,draggingRect:i,enabled:c,interval:d=5,order:u=yAe.TreeOrder,pointerCoordinates:h,scrollableAncestors:f,scrollableAncestorRects:p,delta:v,threshold:m}=e;const y=function(e){let{delta:t,disabled:r}=e;const n=eRe(t);return QPe((e=>{if(r||!n||!e)return bAe;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[FRe.Backward]:e.x[FRe.Backward]||-1===a.x,[FRe.Forward]:e.x[FRe.Forward]||1===a.x},y:{[FRe.Backward]:e.y[FRe.Backward]||-1===a.y,[FRe.Forward]:e.y[FRe.Forward]||1===a.y}}}),[r,t,n])}({delta:v,disabled:!c}),[g,b]=function(){const e=n(null);return[a(((t,r)=>{e.current=setInterval(t,r)}),[]),a((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),k=n({x:0,y:0}),w=n({x:0,y:0}),_=l((()=>{switch(r){case mAe.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case mAe.DraggableRect:return i}}),[r,i,h]),x=n(null),M=a((()=>{const e=x.current;if(!e)return;const t=k.current.x*w.current.x,r=k.current.y*w.current.y;e.scrollBy(t,r)}),[]),j=l((()=>u===yAe.TreeOrder?[...f].reverse():f),[u,f]);s((()=>{if(c&&f.length&&_){for(const e of j){if(!1===(null==o?void 0:o(e)))continue;const r=f.indexOf(e),n=p[r];if(!n)continue;const{direction:a,speed:l}=GRe(e,n,_,t,m);for(const e of["x","y"])y[e][a[e]]||(l[e]=0,a[e]=0);if(l.x>0||l.y>0)return b(),x.current=e,g(M,d),k.current=l,void(w.current=a)}k.current={x:0,y:0},w.current={x:0,y:0},b()}else b()}),[t,M,o,b,c,d,JSON.stringify(_),JSON.stringify(y),g,f,j,p,JSON.stringify(m)])}(class extends dAe{constructor(e){super(e,vAe)}static setup(){return window.addEventListener(vAe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vAe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:a}=r;return!(a.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(mAe||(mAe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(yAe||(yAe={}));const bAe={x:{[FRe.Backward]:!1,[FRe.Forward]:!1},y:{[FRe.Backward]:!1,[FRe.Forward]:!1}};var kAe,wAe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(kAe||(kAe={})),function(e){e.Optimized="optimized"}(wAe||(wAe={}));const _Ae=new Map;function xAe(e,t){return QPe((r=>e?r||("function"==typeof t?t(e):e):null),[t,e])}function MAe(e){let{callback:t,disabled:r}=e;const n=KPe(t),a=l((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(n)}),[r]);return s((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function jAe(e){return new QRe(VRe(e),e)}function EAe(e,t,r){void 0===t&&(t=jAe);const[n,a]=i(null);function o(){a((n=>{if(!e)return null;var a;if(!1===e.isConnected)return null!=(a=null!=n?n:r)?a:null;const o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o}))}const c=function(e){let{callback:t,disabled:r}=e;const n=KPe(t),a=l((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(n)}),[n,r]);return s((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const r of t){const{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){o();break}}}}),d=MAe({callback:o});return YPe((()=>{o(),e?(null==d||d.observe(e),null==c||c.observe(document.body,{childList:!0,subtree:!0})):(null==d||d.disconnect(),null==c||c.disconnect())}),[e]),n}const OAe=[];function CAe(e,t){void 0===t&&(t=[]);const r=n(null);return s((()=>{r.current=null}),t),s((()=>{const t=e!==_Re;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?oRe(e,r.current):_Re}function zAe(e){return l((()=>e?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null),[e])}const PAe=[];function RAe(e){let{measure:t}=e;const[r,n]=i(null),o=a((e=>{for(const{target:r}of e)if($Pe(r)){n((e=>{const n=t(r);return e?{...e,width:n.width,height:n.height}:n}));break}}),[t]),s=MAe({callback:o}),c=a((e=>{const r=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return $Pe(t)?t:e}(e);null==s||s.disconnect(),r&&(null==s||s.observe(r)),n(r?t(r):null)}),[t,s]),[d,u]=JPe(c);return l((()=>({nodeRef:d,rect:r,setRef:u})),[r,d,u])}const AAe=[{sensor:hAe,options:{}},{sensor:iAe,options:{}}],IAe={current:{}},LAe={draggable:{measure:HRe},droppable:{measure:HRe,strategy:kAe.WhileDragging,frequency:wAe.Optimized},dragOverlay:{measure:VRe}};class SAe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const VAe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new SAe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:bRe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:LAe,measureDroppableContainers:bRe,windowRect:null,measuringScheduled:!1},HAe=h({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:bRe,draggableNodes:new Map,over:null,measureDroppableContainers:bRe}),NAe=h(VAe);function ZAe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new SAe}}}function DAe(e,t){switch(t.type){case gRe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case gRe.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case gRe.DragEnd:case gRe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case gRe.RegisterDroppable:{const{element:r}=t,{id:n}=r,a=new SAe(e.droppable.containers);return a.set(n,r),{...e,droppable:{...e.droppable,containers:a}}}case gRe.SetDroppableDisabled:{const{id:r,key:n,disabled:a}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const l=new SAe(e.droppable.containers);return l.set(r,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:l}}}case gRe.UnregisterDroppable:{const{id:r,key:n}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new SAe(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function BAe(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:a}=u(HAe),o=eRe(n),l=eRe(null==r?void 0:r.id);return s((()=>{if(!t&&!n&&o&&null!=l){if(!lRe(o))return;if(document.activeElement===o.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame((()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=dRe(e);if(t){t.focus();break}}}))}}),[n,t,a,l,o]),null}const qAe=h({..._Re,scaleX:1,scaleY:1});var TAe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(TAe||(TAe={}));const FAe=w((function(e){var r,o,c,d;let{id:u,accessibility:h,autoScroll:f=!0,children:p,sensors:v=AAe,collisionDetection:m=RRe,measuring:g,modifiers:b,...k}=e;const w=y(DAe,void 0,ZAe),[_,x]=w,[M,j]=function(){const[e]=i((()=>new Set)),t=a((t=>(e.add(t),()=>e.delete(t))),[e]),r=a((t=>{let{type:r,event:n}=t;e.forEach((e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)}))}),[e]);return[r,t]}(),[E,O]=i(TAe.Uninitialized),C=E===TAe.Initialized,{draggable:{active:z,nodes:P,translate:A},droppable:{containers:I}}=_,L=null!=z?P.get(z):null,S=n({initial:null,translated:null}),V=l((()=>{var e;return null!=z?{id:z,data:null!=(e=null==L?void 0:L.data)?e:IAe,rect:S}:null}),[z,L]),H=n(null),[N,Z]=i(null),[D,B]=i(null),q=XPe(k,Object.values(k)),T=rRe("DndDescribedBy",u),F=l((()=>I.getEnabled()),[I]),W=l((()=>({draggable:{...LAe.draggable,...null==$?void 0:$.draggable},droppable:{...LAe.droppable,...null==$?void 0:$.droppable},dragOverlay:{...LAe.dragOverlay,...null==$?void 0:$.dragOverlay}})),[null==($=g)?void 0:$.draggable,null==$?void 0:$.droppable,null==$?void 0:$.dragOverlay]);var $;const{droppableRects:U,measureDroppableContainers:G,measuringScheduled:Y}=function(e,t){let{dragging:r,dependencies:o,config:l}=t;const[c,d]=i(null),{frequency:u,measure:h,strategy:f}=l,p=n(e),v=function(){switch(f){case kAe.Always:return!1;case kAe.BeforeDragging:return r;default:return!r}}(),m=XPe(v),y=a((function(e){void 0===e&&(e=[]),m.current||d((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[m]),g=n(null),b=QPe((t=>{if(v&&!r)return _Ae;if(!t||t===_Ae||p.current!==e||null!=c){const t=new Map;for(let r of e){if(!r)continue;if(c&&c.length>0&&!c.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}const e=r.node.current,n=e?new QRe(h(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t}),[e,c,r,v,h]);return s((()=>{p.current=e}),[e]),s((()=>{v||y()}),[r,v]),s((()=>{c&&c.length>0&&d(null)}),[JSON.stringify(c)]),s((()=>{v||"number"!=typeof u||null!==g.current||(g.current=setTimeout((()=>{y(),g.current=null}),u))}),[u,v,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:null!=c}}(F,{dragging:C,dependencies:[A.x,A.y],config:W.droppable}),K=function(e,t){const r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return QPe((e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null}),[n,t])}(P,z),X=l((()=>D?iRe(D):null),[D]),Q=function(){const e=!1===(null==N?void 0:N.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,r=C&&!e&&!t;if("object"==typeof f)return{...f,enabled:r};return{enabled:r}}(),J=function(e,t){return xAe(e,t)}(K,W.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:a,config:o=!0}=e;const l=n(!1),{x:i,y:s}="boolean"==typeof o?{x:o,y:o}:o;YPe((()=>{if(!i&&!s||!t)return void(l.current=!1);if(l.current||!a)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=ARe(r(e),a);if(i||(n.x=0),s||(n.y=0),l.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=ZRe(e);t&&t.scrollBy({top:n.y,left:n.x})}}),[t,i,s,a,r])}({activeNode:null!=z?P.get(z):null,config:Q.layoutShiftCompensation,initialRect:J,measure:W.draggable.measure});const ee=EAe(K,W.draggable.measure,J),te=EAe(K?K.parentElement:null),re=n({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ne=I.getNodeFor(null==(r=re.current.over)?void 0:r.id),ae=RAe({measure:W.dragOverlay.measure}),oe=null!=(o=ae.nodeRef.current)?o:K,le=C?null!=(c=ae.rect)?c:ee:null,ie=Boolean(ae.nodeRef.current&&ae.rect),se=ARe(ce=ie?null:ee,xAe(ce));var ce;const de=zAe(oe?FPe(oe):null),ue=function(e){const t=n(e),r=QPe((r=>e?r&&r!==OAe&&e&&t.current&&e.parentNode===t.current.parentNode?r:NRe(e):OAe),[e]);return s((()=>{t.current=e}),[e]),r}(C?null!=ne?ne:K:null),he=function(e,t){void 0===t&&(t=VRe);const[r]=e,n=zAe(r?FPe(r):null),[a,o]=i(PAe);function l(){o((()=>e.length?e.map((e=>WRe(e)?n:new QRe(t(e),e))):PAe))}const s=MAe({callback:l});return YPe((()=>{null==s||s.disconnect(),l(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),a}(ue),fe=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...n})),r):r}(b,{transform:{x:A.x-se.x,y:A.y-se.y,scaleX:1,scaleY:1},activatorEvent:D,active:V,activeNodeRect:ee,containerNodeRect:te,draggingNodeRect:le,over:re.current.over,overlayNodeRect:ae.rect,scrollableAncestors:ue,scrollableAncestorRects:he,windowRect:de}),pe=X?aRe(X,A):null,ve=function(e){const[t,r]=i(null),o=n(e),c=a((e=>{const t=DRe(e.target);t&&r((e=>e?(e.set(t,TRe(t)),new Map(e)):null))}),[]);return s((()=>{const t=o.current;if(e!==t){n(t);const a=e.map((e=>{const t=DRe(e);return t?(t.addEventListener("scroll",c,{passive:!0}),[t,TRe(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=DRe(e);null==t||t.removeEventListener("scroll",c)}))}}),[c,e]),l((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>aRe(e,t)),_Re):KRe(e):_Re),[e,t])}(ue),me=CAe(ve),ye=CAe(ve,[ee]),ge=aRe(fe,me),be=le?LRe(le,fe):null,ke=V&&be?m({active:V,collisionRect:be,droppableRects:U,droppableContainers:F,pointerCoordinates:pe}):null,we=ORe(ke,"id"),[_e,xe]=i(null),Me=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(ie?fe:aRe(fe,ye),null!=(d=null==_e?void 0:_e.rect)?d:null,ee),je=n(null),Ee=a(((e,t)=>{let{sensor:r,options:n}=t;if(null==H.current)return;const a=P.get(H.current);if(!a)return;const o=e.nativeEvent,l=new r({active:H.current,activeNode:a,event:o,options:n,context:re,onAbort(e){if(!P.get(e))return;const{onDragAbort:t}=q.current,r={id:e};null==t||t(r),M({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!P.get(e))return;const{onDragPending:a}=q.current,o={id:e,constraint:t,initialCoordinates:r,offset:n};null==a||a(o),M({type:"onDragPending",event:o})},onStart(e){const t=H.current;if(null==t)return;const r=P.get(t);if(!r)return;const{onDragStart:n}=q.current,a={activatorEvent:o,active:{id:t,data:r.data,rect:S}};R((()=>{null==n||n(a),O(TAe.Initializing),x({type:gRe.DragStart,initialCoordinates:e,active:t}),M({type:"onDragStart",event:a}),Z(je.current),B(o)}))},onMove(e){x({type:gRe.DragMove,coordinates:e})},onEnd:i(gRe.DragEnd),onCancel:i(gRe.DragCancel)});function i(e){return async function(){const{active:t,collisions:r,over:n,scrollAdjustedTranslate:a}=re.current;let l=null;if(t&&a){const{cancelDrop:i}=q.current;if(l={activatorEvent:o,active:t,collisions:r,delta:a,over:n},e===gRe.DragEnd&&"function"==typeof i){await Promise.resolve(i(l))&&(e=gRe.DragCancel)}}H.current=null,R((()=>{x({type:e}),O(TAe.Uninitialized),xe(null),Z(null),B(null),je.current=null;const t=e===gRe.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=q.current[t];null==e||e(l),M({type:t,event:l})}}))}}je.current=l}),[P]),Oe=a(((e,t)=>(r,n)=>{const a=r.nativeEvent,o=P.get(n);if(null!==H.current||!o||a.dndKit||a.defaultPrevented)return;const l={active:o};!0===e(r,t.options,l)&&(a.dndKit={capturedBy:t.sensor},H.current=n,Ee(r,t))}),[P,Ee]),Ce=function(e,t){return l((()=>e.reduce(((e,r)=>{const{sensor:n}=r;return[...e,...n.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,r)})))]}),[])),[e,t])}(v,Oe);!function(e){s((()=>{if(!BPe)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(v),YPe((()=>{ee&&E===TAe.Initializing&&O(TAe.Initialized)}),[ee,E]),s((()=>{const{onDragMove:e}=q.current,{active:t,activatorEvent:r,collisions:n,over:a}=re.current;if(!t||!r)return;const o={active:t,activatorEvent:r,collisions:n,delta:{x:ge.x,y:ge.y},over:a};R((()=>{null==e||e(o),M({type:"onDragMove",event:o})}))}),[ge.x,ge.y]),s((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:a}=re.current;if(!e||null==H.current||!t||!a)return;const{onDragOver:o}=q.current,l=n.get(we),i=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,activatorEvent:t,collisions:r,delta:{x:a.x,y:a.y},over:i};R((()=>{xe(i),null==o||o(s),M({type:"onDragOver",event:s})}))}),[we]),YPe((()=>{re.current={activatorEvent:D,active:V,activeNode:K,collisionRect:be,collisions:ke,droppableRects:U,draggableNodes:P,draggingNode:oe,draggingNodeRect:le,droppableContainers:I,over:_e,scrollableAncestors:ue,scrollAdjustedTranslate:ge},S.current={initial:le,translated:be}}),[V,K,ke,be,P,oe,le,U,I,_e,ue,ge]),gAe({...Q,delta:A,draggingRect:be,pointerCoordinates:pe,scrollableAncestors:ue,scrollableAncestorRects:he});const ze=l((()=>({active:V,activeNode:K,activeNodeRect:ee,activatorEvent:D,collisions:ke,containerNodeRect:te,dragOverlay:ae,draggableNodes:P,droppableContainers:I,droppableRects:U,over:_e,measureDroppableContainers:G,scrollableAncestors:ue,scrollableAncestorRects:he,measuringConfiguration:W,measuringScheduled:Y,windowRect:de})),[V,K,ee,D,ke,te,ae,P,I,U,_e,G,ue,he,W,Y,de]),Pe=l((()=>({activatorEvent:D,activators:Ce,active:V,activeNodeRect:ee,ariaDescribedById:{draggable:T},dispatch:x,draggableNodes:P,over:_e,measureDroppableContainers:G})),[D,Ce,V,ee,x,T,P,_e,G]);return t.createElement(pRe.Provider,{value:j},t.createElement(HAe.Provider,{value:Pe},t.createElement(NAe.Provider,{value:ze},t.createElement(qAe.Provider,{value:Me},p)),t.createElement(BAe,{disabled:!1===(null==h?void 0:h.restoreFocus)})),t.createElement(yRe,{...h,hiddenTextDescribedById:T}))})),WAe=h(null),$Ae="button";function UAe(e){let{id:t,data:r,disabled:n=!1,attributes:a}=e;const o=rRe("Draggable"),{activators:i,activatorEvent:s,active:c,activeNodeRect:d,ariaDescribedById:h,draggableNodes:f,over:p}=u(HAe),{role:v=$Ae,roleDescription:m="draggable",tabIndex:y=0}=null!=a?a:{},g=(null==c?void 0:c.id)===t,b=u(g?qAe:WAe),[k,w]=JPe(),[_,x]=JPe(),M=function(e,t){return l((()=>e.reduce(((e,r)=>{let{eventName:n,handler:a}=r;return e[n]=e=>{a(e,t)},e}),{})),[e,t])}(i,t),j=XPe(r);YPe((()=>(f.set(t,{id:t,key:o,node:k,activatorNode:_,data:j}),()=>{const e=f.get(t);e&&e.key===o&&f.delete(t)})),[f,t]);return{active:c,activatorEvent:s,activeNodeRect:d,attributes:l((()=>({role:v,tabIndex:y,"aria-disabled":n,"aria-pressed":!(!g||v!==$Ae)||void 0,"aria-roledescription":m,"aria-describedby":h.draggable})),[n,v,y,g,m,h.draggable]),isDragging:g,listeners:n?void 0:M,node:k,over:p,setNodeRef:w,setActivatorNodeRef:x,transform:b}}const GAe={timeout:25};const YAe=e=>{let{containerNodeRect:t,draggingNodeRect:r,transform:n}=e;return r&&t?function(e,t,r){const n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}(n,r,t):n},KAe=e=>{let{transform:t}=e;return{...t,x:0}};function XAe(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function QAe(e,t){return e.reduce(((e,r,n)=>{const a=t.get(r);return a&&(e[n]=a),e}),Array(e.length))}function JAe(e){return null!==e&&e>=0}const eIe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:a}=e;const o=XAe(t,n,r),l=t[a],i=o[a];return i&&l?{x:i.left-l.left,y:i.top-l.top,scaleX:i.width/l.width,scaleY:i.height/l.height}:null},tIe={scaleX:1,scaleY:1},rIe=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:a,rects:o,overIndex:l}=e;const i=null!=(t=o[r])?t:n;if(!i)return null;if(a===r){const e=o[l];return e?{x:0,y:r<l?e.top+e.height-(i.top+i.height):e.top-i.top,...tIe}:null}const s=function(e,t,r){const n=e[t],a=e[t-1],o=e[t+1];if(!n)return 0;if(r<t)return a?n.top-(a.top+a.height):o?o.top-(n.top+n.height):0;return o?o.top-(n.top+n.height):a?n.top-(a.top+a.height):0}(o,a,r);return a>r&&a<=l?{x:0,y:-i.height-s,...tIe}:a<r&&a>=l?{x:0,y:i.height+s,...tIe}:{x:0,y:0,...tIe}};const nIe="Sortable",aIe=t.createContext({activeIndex:-1,containerId:nIe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:eIe,disabled:{draggable:!1,droppable:!1}});function oIe(e){let{children:r,id:a,items:o,strategy:i=eIe,disabled:c=!1}=e;const{active:d,dragOverlay:h,droppableRects:f,over:p,measureDroppableContainers:v}=u(NAe),m=rRe(nIe,a),y=Boolean(null!==h.rect),g=l((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),b=null!=d,k=d?g.indexOf(d.id):-1,w=p?g.indexOf(p.id):-1,_=n(g),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(g,_.current),M=-1!==w&&-1===k||x,j=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(c);YPe((()=>{x&&b&&v(g)}),[x,g,b,v]),s((()=>{_.current=g}),[g]);const E=l((()=>({activeIndex:k,containerId:m,disabled:j,disableTransforms:M,items:g,overIndex:w,useDragOverlay:y,sortedRects:QAe(g,f),strategy:i})),[k,m,j.draggable,j.droppable,M,g,w,f,y,i]);return t.createElement(aIe.Provider,{value:E},r)}const lIe=e=>{let{id:t,items:r,activeIndex:n,overIndex:a}=e;return XAe(r,n,a).indexOf(t)},iIe=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:a,items:o,newIndex:l,previousItems:i,previousContainerId:s,transition:c}=e;return!(!c||!n)&&((i===o||a!==l)&&(!!r||l!==a&&t===s))},sIe={duration:200,easing:"ease"},cIe="transform",dIe=sRe.Transition.toString({property:cIe,duration:0,easing:"linear"}),uIe={roleDescription:"sortable"};function hIe(e){let{animateLayoutChanges:t=iIe,attributes:r,disabled:o,data:c,getNewIndex:d=lIe,id:h,strategy:f,resizeObserverConfig:p,transition:v=sIe}=e;const{items:m,containerId:y,activeIndex:g,disabled:b,disableTransforms:k,sortedRects:w,overIndex:_,useDragOverlay:x,strategy:M}=u(aIe),j=function(e,t){var r,n;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(o,b),E=m.indexOf(h),O=l((()=>({sortable:{containerId:y,index:E,items:m},...c})),[y,c,E,m]),C=l((()=>m.slice(m.indexOf(h))),[m,h]),{rect:z,node:P,isOver:R,setNodeRef:A}=function(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:l}=e;const i=rRe("Droppable"),{active:c,dispatch:d,over:h,measureDroppableContainers:f}=u(HAe),p=n({disabled:r}),v=n(!1),m=n(null),y=n(null),{disabled:g,updateMeasurementsFor:b,timeout:k}={...GAe,...l},w=XPe(null!=b?b:o),_=MAe({callback:a((()=>{v.current?(null!=y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{f(Array.isArray(w.current)?w.current:[w.current]),y.current=null}),k)):v.current=!0}),[k]),disabled:g||!c}),x=a(((e,t)=>{_&&(t&&(_.unobserve(t),v.current=!1),e&&_.observe(e))}),[_]),[M,j]=JPe(x),E=XPe(t);return s((()=>{_&&M.current&&(_.disconnect(),v.current=!1,_.observe(M.current))}),[M,_]),s((()=>(d({type:gRe.RegisterDroppable,element:{id:o,key:i,disabled:r,node:M,rect:m,data:E}}),()=>d({type:gRe.UnregisterDroppable,key:i,id:o}))),[o]),s((()=>{r!==p.current.disabled&&(d({type:gRe.SetDroppableDisabled,id:o,key:i,disabled:r}),p.current.disabled=r)}),[o,i,r,d]),{active:c,rect:m,isOver:(null==h?void 0:h.id)===o,node:M,over:h,setNodeRef:j}}({id:h,data:O,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...p}}),{active:I,activatorEvent:L,activeNodeRect:S,attributes:V,setNodeRef:H,listeners:N,isDragging:Z,over:D,setActivatorNodeRef:B,transform:q}=UAe({id:h,data:O,attributes:{...uIe,...r},disabled:j.draggable}),T=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l((()=>e=>{t.forEach((t=>t(e)))}),t)}(A,H),F=Boolean(I),W=F&&!k&&JAe(g)&&JAe(_),$=!x&&Z,U=$&&W?q:null,G=W?null!=U?U:(null!=f?f:M)({rects:w,activeNodeRect:S,activeIndex:g,overIndex:_,index:E}):null,Y=JAe(g)&&JAe(_)?d({id:h,items:m,activeIndex:g,overIndex:_}):E,K=null==I?void 0:I.id,X=n({activeId:K,items:m,newIndex:Y,containerId:y}),Q=m!==X.current.items,J=t({active:I,containerId:y,isDragging:Z,isSorting:F,id:h,index:E,items:m,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:v,wasDragging:null!=X.current.activeId}),ee=function(e){let{disabled:t,index:r,node:a,rect:o}=e;const[l,c]=i(null),d=n(r);return YPe((()=>{if(!t&&r!==d.current&&a.current){const e=o.current;if(e){const t=VRe(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&c(r)}}r!==d.current&&(d.current=r)}),[t,r,a,o]),s((()=>{l&&c(null)}),[l]),l}({disabled:!J,index:E,node:P,rect:z});return s((()=>{F&&X.current.newIndex!==Y&&(X.current.newIndex=Y),y!==X.current.containerId&&(X.current.containerId=y),m!==X.current.items&&(X.current.items=m)}),[F,Y,y,m]),s((()=>{if(K===X.current.activeId)return;if(null!=K&&null==X.current.activeId)return void(X.current.activeId=K);const e=setTimeout((()=>{X.current.activeId=K}),50);return()=>clearTimeout(e)}),[K]),{active:I,activeIndex:g,attributes:V,data:O,rect:z,index:E,newIndex:Y,items:m,isOver:R,isSorting:F,isDragging:Z,listeners:N,node:P,overIndex:_,over:D,setNodeRef:T,setActivatorNodeRef:B,setDroppableNodeRef:A,setDraggableNodeRef:H,transform:null!=ee?ee:G,transition:function(){if(ee||Q&&X.current.newIndex===E)return dIe;if($&&!lRe(L)||!v)return;if(F||J)return sRe.Transition.toString({...v,property:cIe});return}()}}function fIe(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const pIe=[rAe.Down,rAe.Right,rAe.Up,rAe.Left],vIe=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:a,droppableContainers:o,over:l,scrollableAncestors:i}}=t;if(pIe.includes(e.code)){if(e.preventDefault(),!r||!n)return;const t=[];o.getEnabled().forEach((r=>{if(!r||null!=r&&r.disabled)return;const o=a.get(r.id);if(o)switch(e.code){case rAe.Down:n.top<o.top&&t.push(r);break;case rAe.Up:n.top>o.top&&t.push(r);break;case rAe.Left:n.left>o.left&&t.push(r);break;case rAe.Right:n.left<o.left&&t.push(r)}}));const s=(e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=ERe(t),o=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=ERe(n),l=a.reduce(((e,t,n)=>e+xRe(r[n],t)),0),i=Number((l/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:i}})}}return o.sort(MRe)})({collisionRect:n,droppableRects:a,droppableContainers:t});let c=ORe(s,"id");if(c===(null==l?void 0:l.id)&&s.length>1&&(c=s[1].id),null!=c){const e=o.get(r.id),t=o.get(c),l=t?a.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&l&&e&&t){const r=NRe(s).some(((e,t)=>i[t]!==e)),a=mIe(e,t),o=function(e,t){if(!fIe(e)||!fIe(t))return!1;if(!mIe(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=r||!a?{x:0,y:0}:{x:o?n.width-l.width:0,y:o?n.height-l.height:0},d={x:l.left,y:l.top};return c.x&&c.y?d:oRe(d,c)}}}};function mIe(e,t){return!(!fIe(e)||!fIe(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var yIe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function gIe(e,t){e&&O.flushSync((()=>e.dispatchEvent(t)))}function bIe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}function kIe(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},bIe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}var wIe=e.createContext(void 0);function _Ie(t){const r=e.useContext(wIe);return t||r||"ltr"}var xIe,MIe="dismissableLayer.update",jIe="dismissableLayer.pointerDownOutside",EIe="dismissableLayer.focusOutside",OIe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),CIe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(OIe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){PIe(jIe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){PIe(EIe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(xIe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),zIe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=xIe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),zIe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(MIe,e),()=>document.removeEventListener(MIe,e)}),[]),_(yIe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));CIe.displayName="DismissableLayer";function zIe(){const e=new CustomEvent(MIe);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?gIe(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(OIe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(yIe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var RIe="focusScope.autoFocusOnMount",AIe="focusScope.autoFocusOnUnmount",IIe={bubbles:!1,cancelable:!0},LIe=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:NIe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||NIe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&NIe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){ZIe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(RIe,IIe);s.addEventListener(RIe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(NIe(n,{select:t}),document.activeElement!==r)return}((e=SIe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&NIe(s))}return()=>{s.removeEventListener(RIe,d),setTimeout((()=>{const e=new CustomEvent(AIe,IIe);s.addEventListener(AIe,u),s.dispatchEvent(e),e.defaultPrevented||NIe(t??document.body,{select:!0}),s.removeEventListener(AIe,u),ZIe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=SIe(e),r=VIe(t,e),n=VIe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&NIe(o,{select:!0})):(e.preventDefault(),n&&NIe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(yIe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function SIe(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 VIe(e,t){for(const r of e)if(!HIe(r,{upTo:t}))return r}function HIe(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 NIe(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()}}LIe.displayName="FocusScope";var ZIe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=DIe(e,t),e.unshift(t)},remove(t){e=DIe(e,t),e[0]?.resume()}}}();function DIe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var BIe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(yIe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));BIe.displayName="Arrow";var qIe=BIe;function TIe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var FIe="Popper",[WIe,$Ie]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},TIe(a,...r)]}(FIe),[UIe,GIe]=WIe(FIe),YIe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(UIe,{scope:r,anchor:a,onAnchorChange:o,children:n})};YIe.displayName=FIe;var KIe="PopperAnchor",XIe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=GIe(KIe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(yIe.div,{...o,ref:s})}));XIe.displayName=KIe;var QIe="PopperContent",[JIe,eLe]=WIe(QIe),tLe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=GIe(QIe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(oLe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),lLe({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=iLe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(JIe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(yIe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));tLe.displayName=QIe;var rLe="PopperArrow",nLe={top:"bottom",right:"left",bottom:"top",left:"right"},aLe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=eLe(rLe,r),o=nLe[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(qIe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function oLe(e){return null!==e}aLe.displayName=rLe;var lLe=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]=iLe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function iLe(e){const[t,r="center"]=e.split("-");return[t,r]}var sLe=YIe,cLe=XIe,dLe=tLe,uLe=aLe,hLe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(yIe.div,{...a,ref:r}),i):null}));hLe.displayName="Portal";var fLe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=pLe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=pLe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=pLe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=pLe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function pLe(e){return e?.animationName||"none"}function vLe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}fLe.displayName="Presence";var mLe="rovingFocusGroup.onEntryFocus",yLe={bubbles:!1,cancelable:!0},gLe="RovingFocusGroup",[bLe,kLe,wLe]=kIe(gLe),[_Le,xLe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},vLe(a,...r)]}(gLe,[wLe]),[MLe,jLe]=_Le(gLe),ELe=e.forwardRef(((e,t)=>_(bLe.Provider,{scope:e.__scopeRovingFocusGroup,children:_(bLe.Slot,{scope:e.__scopeRovingFocusGroup,children:_(OLe,{...e,ref:t})})})));ELe.displayName=gLe;var OLe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=t,f=e.useRef(null),p=V_e(r,f),v=_Ie(l),[m=null,y]=B_e({prop:i,defaultProp:s,onChange:c}),[g,b]=e.useState(!1),k=D_e(d),w=kLe(n),x=e.useRef(!1),[M,j]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(mLe,k),()=>e.removeEventListener(mLe,k)}),[k]),_(MLe,{scope:n,orientation:a,dir:v,loop:o,currentTabStopId:m,onItemFocus:e.useCallback((e=>y(e)),[y]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>j((e=>e-1))),[]),children:_(yIe.div,{tabIndex:g||0===M?-1:0,"data-orientation":a,...h,ref:p,style:{outline:"none",...t.style},onMouseDown:Z_e(t.onMouseDown,(()=>{x.current=!0})),onFocus:Z_e(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(mLe,yLe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));RLe([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}x.current=!1})),onBlur:Z_e(t.onBlur,(()=>b(!1)))})})})),CLe="RovingFocusGroupItem",zLe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,...i}=t,s=zEe(),c=l||s,d=jLe(CLe,n),u=d.currentTabStopId===c,h=kLe(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=d;return e.useEffect((()=>{if(a)return f(),()=>p()}),[a,f,p]),_(bLe.ItemSlot,{scope:n,id:c,focusable:a,active:o,children:_(yIe.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...i,ref:r,onMouseDown:Z_e(t.onMouseDown,(e=>{a?d.onItemFocus(c):e.preventDefault()})),onFocus:Z_e(t.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Z_e(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.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:PLe[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=d.loop?function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(r,n+1):r.slice(n+1)}setTimeout((()=>RLe(r)))}}))})})}));zLe.displayName=CLe;var PLe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function RLe(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 ALe=ELe,ILe=zLe,LLe=["Enter"," "],SLe=["ArrowUp","PageDown","End"],VLe=["ArrowDown","PageUp","Home",...SLe],HLe={ltr:[...LLe,"ArrowRight"],rtl:[...LLe,"ArrowLeft"]},NLe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ZLe="Menu",[DLe,BLe,qLe]=kIe(ZLe),[TLe,FLe]=H_e(ZLe,[qLe,$Ie,xLe]),WLe=$Ie(),$Le=xLe(),[ULe,GLe]=TLe(ZLe),[YLe,KLe]=TLe(ZLe),XLe=t=>{const{__scopeMenu:r,open:n=!1,children:a,dir:o,onOpenChange:l,modal:i=!0}=t,s=WLe(r),[c,d]=e.useState(null),u=e.useRef(!1),h=D_e(l),f=_Ie(o);return e.useEffect((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.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})}}),[]),_(sLe,{...s,children:_(ULe,{scope:r,open:n,onOpenChange:h,content:c,onContentChange:d,children:_(YLe,{scope:r,onClose:e.useCallback((()=>h(!1)),[h]),isUsingKeyboardRef:u,dir:f,modal:i,children:a})})})};XLe.displayName=ZLe;var QLe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,a=WLe(r);return _(cLe,{...a,...n,ref:t})}));QLe.displayName="MenuAnchor";var JLe="MenuPortal",[eSe,tSe]=TLe(JLe,{forceMount:void 0}),rSe=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=GLe(JLe,t);return _(eSe,{scope:t,forceMount:r,children:_(fLe,{present:r||o.open,children:_(hLe,{asChild:!0,container:a,children:n})})})};rSe.displayName=JLe;var nSe="MenuContent",[aSe,oSe]=TLe(nSe),lSe=e.forwardRef(((e,t)=>{const r=tSe(nSe,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=GLe(nSe,e.__scopeMenu),l=KLe(nSe,e.__scopeMenu);return _(DLe.Provider,{scope:e.__scopeMenu,children:_(fLe,{present:n||o.open,children:_(DLe.Slot,{scope:e.__scopeMenu,children:l.modal?_(iSe,{...a,ref:t}):_(sSe,{...a,ref:t})})})})})),iSe=e.forwardRef(((t,r)=>{const n=GLe(nSe,t.__scopeMenu),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(cSe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),sSe=e.forwardRef(((e,t)=>{const r=GLe(nSe,e.__scopeMenu);return _(cSe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),cSe=e.forwardRef(((t,r)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:p,disableOutsideScroll:v,...m}=t,y=GLe(nSe,n),g=KLe(nSe,n),b=WLe(n),k=$Le(n),w=BLe(n),[x,M]=e.useState(null),j=e.useRef(null),E=V_e(r,j,y.onContentChange),O=e.useRef(0),C=e.useRef(""),z=e.useRef(0),P=e.useRef(null),R=e.useRef("right"),A=e.useRef(0),I=v?YOe:e.Fragment,L=v?{as:U_e,allowPinchZoom:!0}:void 0,S=e=>{const t=C.current+e,r=w().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=function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(e,Math.max(o,0));1===a.length&&(l=l.filter((e=>e!==r)));const i=l.find((e=>e.toLowerCase().startsWith(a.toLowerCase())));return i!==r?i:void 0}(r.map((e=>e.textValue)),t,a),l=r.find((e=>e.textValue===o))?.ref.current;!function e(t){C.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout((()=>e("")),1e3))}(t),l&&setTimeout((()=>l.focus()))};e.useEffect((()=>()=>window.clearTimeout(O.current)),[]),vEe();const V=e.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 _(aSe,{scope:n,searchRef:C,onItemEnter:e.useCallback((e=>{V(e)&&e.preventDefault()}),[V]),onItemLeave:e.useCallback((e=>{V(e)||(j.current?.focus(),M(null))}),[V]),onTriggerLeave:e.useCallback((e=>{V(e)&&e.preventDefault()}),[V]),pointerGraceTimerRef:z,onPointerGraceIntentChange:e.useCallback((e=>{P.current=e}),[]),children:_(I,{...L,children:_(LIe,{asChild:!0,trapped:o,onMountAutoFocus:Z_e(l,(e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:i,children:_(CIe,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:f,onDismiss:p,children:_(ALe,{asChild:!0,...k,dir:g.dir,orientation:"vertical",loop:a,currentTabStopId:x,onCurrentTabStopIdChange:M,onEntryFocus:Z_e(c,(e=>{g.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:_(dLe,{role:"menu","aria-orientation":"vertical","data-state":HSe(y.open),"data-radix-menu-content":"",dir:g.dir,...b,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:Z_e(m.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&&S(e.key));const a=j.current;if(e.target!==a)return;if(!VLe.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));SLe.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:Z_e(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),C.current="")})),onPointerMove:Z_e(t.onPointerMove,DSe((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}})))})})})})})})}));lSe.displayName=nSe;var dSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{role:"group",...n,ref:t})}));dSe.displayName="MenuGroup";var uSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{...n,ref:t})}));uSe.displayName="MenuLabel";var hSe="MenuItem",fSe="menu.itemSelect",pSe=e.forwardRef(((t,r)=>{const{disabled:n=!1,onSelect:a,...o}=t,l=e.useRef(null),i=KLe(hSe,t.__scopeMenu),s=oSe(hSe,t.__scopeMenu),c=V_e(r,l),d=e.useRef(!1);return _(vSe,{...o,ref:c,disabled:n,onClick:Z_e(t.onClick,(()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(fSe,{bubbles:!0,cancelable:!0});e.addEventListener(fSe,(e=>a?.(e)),{once:!0}),gIe(e,t),t.defaultPrevented?d.current=!1:i.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:Z_e(t.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:Z_e(t.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||LLe.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));pSe.displayName=hSe;var vSe=e.forwardRef(((t,r)=>{const{__scopeMenu:n,disabled:a=!1,textValue:o,...l}=t,i=oSe(hSe,n),s=$Le(n),c=e.useRef(null),d=V_e(r,c),[u,h]=e.useState(!1),[f,p]=e.useState("");return e.useEffect((()=>{const e=c.current;e&&p((e.textContent??"").trim())}),[l.children]),_(DLe.ItemSlot,{scope:n,disabled:a,textValue:o??f,children:_(ILe,{asChild:!0,...s,focusable:!a,children:_(yIe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...l,ref:d,onPointerMove:Z_e(t.onPointerMove,DSe((e=>{if(a)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Z_e(t.onPointerLeave,DSe((e=>i.onItemLeave(e)))),onFocus:Z_e(t.onFocus,(()=>h(!0))),onBlur:Z_e(t.onBlur,(()=>h(!1)))})})})})),mSe=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return _(MSe,{scope:e.__scopeMenu,checked:r,children:_(pSe,{role:"menuitemcheckbox","aria-checked":NSe(r)?"mixed":r,...a,ref:t,"data-state":ZSe(r),onSelect:Z_e(a.onSelect,(()=>n?.(!!NSe(r)||!r)),{checkForDefaultPrevented:!1})})})}));mSe.displayName="MenuCheckboxItem";var ySe="MenuRadioGroup",[gSe,bSe]=TLe(ySe,{value:void 0,onValueChange:()=>{}}),kSe=e.forwardRef(((e,t)=>{const{value:r,onValueChange:n,...a}=e,o=D_e(n);return _(gSe,{scope:e.__scopeMenu,value:r,onValueChange:o,children:_(dSe,{...a,ref:t})})}));kSe.displayName=ySe;var wSe="MenuRadioItem",_Se=e.forwardRef(((e,t)=>{const{value:r,...n}=e,a=bSe(wSe,e.__scopeMenu),o=r===a.value;return _(MSe,{scope:e.__scopeMenu,checked:o,children:_(pSe,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":ZSe(o),onSelect:Z_e(n.onSelect,(()=>a.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));_Se.displayName=wSe;var xSe="MenuItemIndicator",[MSe,jSe]=TLe(xSe,{checked:!1}),ESe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=jSe(xSe,r);return _(fLe,{present:n||NSe(o.checked)||!0===o.checked,children:_(yIe.span,{...a,ref:t,"data-state":ZSe(o.checked)})})}));ESe.displayName=xSe;var OSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return _(yIe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})}));OSe.displayName="MenuSeparator";var CSe=e.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,a=WLe(r);return _(uLe,{...a,...n,ref:t})}));CSe.displayName="MenuArrow";var zSe="MenuSub",[PSe,RSe]=TLe(zSe),ASe=t=>{const{__scopeMenu:r,children:n,open:a=!1,onOpenChange:o}=t,l=GLe(zSe,r),i=WLe(r),[s,c]=e.useState(null),[d,u]=e.useState(null),h=D_e(o);return e.useEffect((()=>(!1===l.open&&h(!1),()=>h(!1))),[l.open,h]),_(sLe,{...i,children:_(ULe,{scope:r,open:a,onOpenChange:h,content:d,onContentChange:u,children:_(PSe,{scope:r,contentId:zEe(),triggerId:zEe(),trigger:s,onTriggerChange:c,children:n})})})};ASe.displayName=zSe;var ISe="MenuSubTrigger",LSe=e.forwardRef(((t,r)=>{const n=GLe(ISe,t.__scopeMenu),a=KLe(ISe,t.__scopeMenu),o=RSe(ISe,t.__scopeMenu),l=oSe(ISe,t.__scopeMenu),i=e.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=l,d={__scopeMenu:t.__scopeMenu},u=e.useCallback((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return e.useEffect((()=>u),[u]),e.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),_(QLe,{asChild:!0,...d,children:_(vSe,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":HSe(n.open),...t,ref:S_e(r,o.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z_e(t.onPointerMove,DSe((e=>{l.onItemEnter(e),e.defaultPrevented||t.disabled||n.open||i.current||(l.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Z_e(t.onPointerLeave,DSe((e=>{u();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,a="right"===r,o=a?-5:5,i=t[a?"left":"right"],c=t[a?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:i,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:Z_e(t.onKeyDown,(e=>{const r=""!==l.searchRef.current;t.disabled||r&&" "===e.key||HLe[a.dir].includes(e.key)&&(n.onOpenChange(!0),n.content?.focus(),e.preventDefault())}))})})}));LSe.displayName=ISe;var SSe="MenuSubContent",VSe=e.forwardRef(((t,r)=>{const n=tSe(nSe,t.__scopeMenu),{forceMount:a=n.forceMount,...o}=t,l=GLe(nSe,t.__scopeMenu),i=KLe(nSe,t.__scopeMenu),s=RSe(SSe,t.__scopeMenu),c=e.useRef(null),d=V_e(r,c);return _(DLe.Provider,{scope:t.__scopeMenu,children:_(fLe,{present:a||l.open,children:_(DLe.Slot,{scope:t.__scopeMenu,children:_(cSe,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:d,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Z_e(t.onFocusOutside,(e=>{e.target!==s.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:Z_e(t.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:Z_e(t.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=NLe[i.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())}))})})})})}));function HSe(e){return e?"open":"closed"}function NSe(e){return"indeterminate"===e}function ZSe(e){return NSe(e)?"indeterminate":e?"checked":"unchecked"}function DSe(e){return t=>"mouse"===t.pointerType?e(t):void 0}VSe.displayName=SSe;var BSe=XLe,qSe=QLe,TSe=rSe,FSe=lSe,WSe=dSe,$Se=uSe,USe=pSe,GSe=mSe,YSe=kSe,KSe=_Se,XSe=ESe,QSe=OSe,JSe=CSe,eVe=ASe,tVe=LSe,rVe=VSe,nVe="DropdownMenu",[aVe]=H_e(nVe,[FLe]),oVe=FLe(),[lVe,iVe]=aVe(nVe),sVe=t=>{const{__scopeDropdownMenu:r,children:n,dir:a,open:o,defaultOpen:l,onOpenChange:i,modal:s=!0}=t,c=oVe(r),d=e.useRef(null),[u=!1,h]=B_e({prop:o,defaultProp:l,onChange:i});return _(lVe,{scope:r,triggerId:zEe(),triggerRef:d,contentId:zEe(),open:u,onOpenChange:h,onOpenToggle:e.useCallback((()=>h((e=>!e))),[h]),modal:s,children:_(BSe,{...c,open:u,onOpenChange:h,dir:a,modal:s,children:n})})};sVe.displayName=nVe;var cVe="DropdownMenuTrigger",dVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=iVe(cVe,r),l=oVe(r);return _(qSe,{asChild:!0,...l,children:_(yIe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:S_e(t,o.triggerRef),onPointerDown:Z_e(e.onPointerDown,(e=>{n||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())})),onKeyDown:Z_e(e.onKeyDown,(e=>{n||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));dVe.displayName=cVe;var uVe=e=>{const{__scopeDropdownMenu:t,...r}=e,n=oVe(t);return _(TSe,{...n,...r})};uVe.displayName="DropdownMenuPortal";var hVe="DropdownMenuContent",fVe=e.forwardRef(((t,r)=>{const{__scopeDropdownMenu:n,...a}=t,o=iVe(hVe,n),l=oVe(n),i=e.useRef(!1);return _(FSe,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...a,ref:r,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:Z_e(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;o.modal&&!n||(i.current=!0)})),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));fVe.displayName=hVe;var pVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(WSe,{...a,...n,ref:t})}));pVe.displayName="DropdownMenuGroup";var vVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _($Se,{...a,...n,ref:t})}));vVe.displayName="DropdownMenuLabel";var mVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(USe,{...a,...n,ref:t})}));mVe.displayName="DropdownMenuItem";var yVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(GSe,{...a,...n,ref:t})}));yVe.displayName="DropdownMenuCheckboxItem";var gVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(YSe,{...a,...n,ref:t})}));gVe.displayName="DropdownMenuRadioGroup";var bVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(KSe,{...a,...n,ref:t})}));bVe.displayName="DropdownMenuRadioItem";var kVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(XSe,{...a,...n,ref:t})}));kVe.displayName="DropdownMenuItemIndicator";var wVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(QSe,{...a,...n,ref:t})}));wVe.displayName="DropdownMenuSeparator";e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(JSe,{...a,...n,ref:t})})).displayName="DropdownMenuArrow";var _Ve=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(tVe,{...a,...n,ref:t})}));_Ve.displayName="DropdownMenuSubTrigger";var xVe=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=oVe(r);return _(rVe,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));xVe.displayName="DropdownMenuSubContent";var MVe=uVe,jVe=fVe,EVe=vVe,OVe=mVe,CVe=yVe,zVe=bVe,PVe=kVe,RVe=wVe,AVe=_Ve,IVe=xVe;const LVe=sVe,SVe=dVe,VVe=pVe,HVe=MVe,NVe=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,l=oVe(t),[i=!1,s]=B_e({prop:n,defaultProp:o,onChange:a});return _(eVe,{...l,open:i,onOpenChange:s,children:r})},ZVe=gVe,DVe=e.forwardRef(((e,t)=>{var{className:r,inset:n,children:a}=e,o=zx(e,["className","inset","children"]);return x(AVe,Object.assign({ref:t,className:Ax("relative flex gap-4 cursor-pointer select-none box-border items-center py-4 pl-4 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)]",n&&"pl-8",r)},o,{children:[a,_(nye,{type:"heroicons",name:"chevron-right",className:"ml-auto h-4 w-4"})]}))}));DVe.displayName=AVe.displayName;const BVe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(IVe,Object.assign({ref:t,className:Ax("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",r)},n,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},n.style)}))}));BVe.displayName=IVe.displayName;const qVe=e.forwardRef(((e,t)=>{var{className:r,sideOffset:n=4}=e,a=zx(e,["className","sideOffset"]);return _(MVe,{children:_(jVe,Object.assign({ref:t,sideOffset:n,className:Ax("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",r)},a,{style:Object.assign({boxShadow:"var(--dropdown-menu-shadow)"},a.style)}))})}));qVe.displayName=jVe.displayName;const TVe=e.forwardRef(((e,t)=>{var{className:r,inset:n,selected:a,icon:o,children:l}=e,i=zx(e,["className","inset","selected","icon","children"]);const s=!!o;return x(OVe,Object.assign({ref:t,className:Ax("relative flex cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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)]",a&&"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5","data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",n&&"pl-8",r,s?"gap-4":"gap-1")},i,{children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4 flex items-center justify-center",children:a&&_(nye,{type:"heroicons",name:"check",className:"size-4 text-[var(--dropdown-menu-selected-text)]"})}),o]}),l]}))}));TVe.displayName=OVe.displayName;const FVe=e.forwardRef(((e,t)=>{var{className:r,children:n,checked:a,disabled:o}=e,l=zx(e,["className","children","checked","disabled"]);return x(CVe,Object.assign({ref:t,className:Ax("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",r),checked:a,disabled:o},l,{children:[_("span",{className:Ax("shrink-0 size-4 rounded-[2px] border flex items-center justify-center transition-all overflow-hidden",a&&!o&&"bg-[var(--dropdown-menu-checkbox-checked-bg)] border-[var(--dropdown-menu-checkbox-checked-bg)]",a&&o&&"bg-[var(--dropdown-menu-checkbox-disabled-checked-bg)] border-transparent",!a&&o&&"border-[var(--dropdown-menu-checkbox-disabled-border)]",!a&&!o&&"border-[var(--dropdown-menu-checkbox-border)]"),children:_(PVe,{children:_(nye,{type:"heroicons",name:"check",className:"size-3 text-[var(--dropdown-menu-checkbox-checked-icon)]"})})}),n]}))}));FVe.displayName=CVe.displayName;const WVe=e.forwardRef(((e,t)=>{var{className:r,children:n,disabled:a,icon:o}=e,l=zx(e,["className","children","disabled","icon"]);const i=!!o;return x(zVe,Object.assign({ref:t,className:Ax("relative flex cursor-pointer select-none box-border items-center py-4 pl-4 pr-8 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-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-radio-disabled-text)]","data-[state='checked']:data-[disabled]:!text-[var(--dropdown-menu-radio-selected-disabled-text)]",r,i?"gap-4":"gap-1")},l,{disabled:a,children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4",children:_(PVe,{className:"shrink-0",children:_(nye,{type:"heroicons",name:"check",className:Ax("size-4",a?"text-[var(--dropdown-menu-radio-selected-disabled-text)]":"text-[var(--dropdown-menu-selected-text)]")})})}),o]}),n]}))}));WVe.displayName=zVe.displayName;const $Ve=e.forwardRef(((e,t)=>{var{className:r,inset:n}=e,a=zx(e,["className","inset"]);return _(EVe,Object.assign({ref:t,className:Ax("px-3 py-2 typography-small4 text-text-g-contrast-high",n&&"pl-8",r)},a))}));$Ve.displayName=EVe.displayName;const UVe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(RVe,Object.assign({ref:t,className:Ax("h-px bg-[var(--dropdown-menu-seperator-bg)]",r)},n))}));UVe.displayName=RVe.displayName;const GVe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("span",Object.assign({className:Ax("ml-auto text-xs tracking-widest opacity-60",t)},r))};GVe.displayName="DropdownMenuShortcut";var YVe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{}),KVe="Switch",[XVe]=H_e(KVe),[QVe,JVe]=XVe(KVe),eHe=e.forwardRef(((t,r)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:l,required:i,disabled:s,value:c="on",onCheckedChange:d,form:u,...h}=t,[f,p]=e.useState(null),v=V_e(r,(e=>p(e))),m=e.useRef(!1),y=!f||(u||!!f.closest("form")),[g=!1,b]=B_e({prop:o,defaultProp:l,onChange:d});return x(QVe,{scope:n,checked:g,disabled:s,children:[_(YVe.button,{type:"button",role:"switch","aria-checked":g,"aria-required":i,"data-state":aHe(g),"data-disabled":s?"":void 0,disabled:s,value:c,...h,ref:v,onClick:Z_e(t.onClick,(e=>{b((e=>!e)),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),y&&_(nHe,{control:f,bubbles:!m.current,name:a,value:c,checked:g,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})}));eHe.displayName=KVe;var tHe="SwitchThumb",rHe=e.forwardRef(((e,t)=>{const{__scopeSwitch:r,...n}=e,a=JVe(tHe,r);return _(YVe.span,{"data-state":aHe(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})}));rHe.displayName=tHe;var nHe=t=>{const{control:r,checked:n,bubbles:a=!0,...o}=t,l=e.useRef(null),i=q_e(n),s=F_e(r);return e.useEffect((()=>{const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[i,n,a]),_("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function aHe(e){return e?"checked":"unchecked"}var oHe=eHe,lHe=rHe;const iHe=j(["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}}),sHe=j(["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}}),cHe=j(["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"]),dHe=e.forwardRef(((e,t)=>{var{className:r,forceHover:n=!1}=e,a=zx(e,["className","forceHover"]);return _(oHe,Object.assign({className:Ax(iHe({forceHover:n}),r)},a,{ref:t,children:_(lHe,{className:sHe({forceHover:n}),children:_("span",{"aria-hidden":!0,className:cHe(),children:x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[_("g",{filter:"url(#switch-hover-halo-shadow)",children:_("circle",{cx:"20",cy:"18",r:"12",fill:"currentColor",shapeRendering:"crispEdges"})}),_("defs",{children:x("filter",{id:"switch-hover-halo-shadow",x:"0",y:"0",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[_("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),_("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"}),_("feOffset",{dy:"2"}),_("feGaussianBlur",{stdDeviation:"4"}),_("feComposite",{in2:"hardAlpha",operator:"out"}),_("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"}),_("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),_("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})})})}))}));dHe.displayName=oHe.displayName;const uHe=t.createContext(null);const hHe="__edit_ph__";function fHe(e){return{value:`${hHe}:${e}`,label:e}}function pHe(e,t){if("number"===e){const e=Number(t);return Number.isNaN(e)?0:e}return"checkbox"===e?"true"===t:t}function vHe(e,t,r,n){return e.onCommit?e.onCommit(t,r):{[n]:pHe(e.editVariant,r)}}function mHe({columnId:e,row:t,placeholder:r,autoFocus:n,errorMessage:a,onBlur:o,onKeyDown:l}){var i;const s=String(null!==(i=t.original[e])&&void 0!==i?i:"");return _(Yme,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:s,placeholder:r,"aria-label":r||e,autoFocus:n,error:!!a,errorMessage:a,onBlur:o,onKeyDown:l,className:"rounded-md px-2 py-2 typography-small2"})}function yHe({row:e,columnId:t,col:r,autoFocus:n,onCommit:a,onBlurField:o,onKeyDown:i,keepOpenAfterSelect:s,errorMessage:c}){var d,u,h,f,p;const v=String(null!==(d=e.original[t])&&void 0!==d?d:""),m="function"==typeof(null===(u=r.editSelectProps)||void 0===u?void 0:u.options)?r.editSelectProps.options(e):null!==(f=null===(h=r.editSelectProps)||void 0===h?void 0:h.options)&&void 0!==f?f:[],y=l((()=>{var e,n;return[fHe(null!==(n=null===(e=r.editSelectProps)||void 0===e?void 0:e.placeholder)&&void 0!==n?n:t),...m]}),[m,null===(p=r.editSelectProps)||void 0===p?void 0:p.placeholder,t]),g=l((()=>{var e;const t=v.trim();return t&&null!==(e=y.find((e=>e.label===t)))&&void 0!==e?e:y[0]}),[v,y]);return _("div",{children:_(L_e,{id:`edit-dd-${t}-${e.id}`,options:y,value:g,onSelect:e=>{(function(e){var t;return null!==(t=null==e?void 0:e.value.startsWith(`${hHe}:`))&&void 0!==t&&t})(e)||a(e.label)},size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,required:!1,isFloatingLabel:!1,label:"",keepFooterSpace:!1,segmentedInput:!0,autoFocus:n,onBlur:o,onKeyDown:i,keepOpenAfterSelect:s,portal:!0,error:!!c,errorMessage:c,className:Ax("rounded-md",A_e({size:"sm"}),v.trim().length>0&&"font-medium")})})}function gHe({columnId:e,row:t,col:r,autoFocus:n,errorMessage:a,onBlur:o,onKeyDown:l}){var i;const s=t.original[e],c=""===s||null==s?void 0:Number(s),d=r.editNumberProps;return _(oye,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:c,placeholder:null!==(i=null==d?void 0:d.placeholder)&&void 0!==i?i:e,"aria-label":(null==d?void 0:d.placeholder)||e,autoFocus:n,min:null==d?void 0:d.min,max:null==d?void 0:d.max,step:null==d?void 0:d.step,precision:null==d?void 0:d.precision,allowDecimal:null==d?void 0:d.allowDecimal,allowNegative:null==d?void 0:d.allowNegative,hideControls:!0,error:!!a,errorMessage:a,onBlur:e=>o(e.currentTarget.value.trim()),onKeyDown:l,className:"rounded-md px-2 py-2 typography-small2"})}function bHe({columnId:e,row:t,col:r,errorMessage:n,onCommit:a,onKeyDown:o}){var l;const i=t.original[e],s=!0===i||"true"===i,c=null===(l=r.editCheckboxProps)||void 0===l?void 0:l.label;return x("div",{className:"flex flex-col gap-0.5",children:[x("div",{className:"flex items-center gap-2 min-h-[32px]",children:[_(uxe,{checked:s,onCheckedChange:e=>{a(!0===e)},onKeyDown:o?e=>o(e):void 0,"aria-label":c||e}),c&&_("span",{className:"typography-small2 text-text-contrast-high select-none",children:c})]}),n&&_("span",{className:"typography-small3 text-error-500",children:n})]})}function kHe({row:e,col:t,columnId:r}){var n,a,o,l,i,s,c,d,u,h,f,p;const v=null!==(n=t.editVariant)&&void 0!==n?n:"text";if("select"===v){const n="function"==typeof(null===(a=t.editSelectProps)||void 0===a?void 0:a.options)?t.editSelectProps.options(e):null!==(l=null===(o=t.editSelectProps)||void 0===o?void 0:o.options)&&void 0!==l?l:[],u=[fHe(null!==(s=null===(i=t.editSelectProps)||void 0===i?void 0:i.placeholder)&&void 0!==s?s:r),...n],h=String(null!==(c=e.original[r])&&void 0!==c?c:""),f=null!==(d=u.find((e=>e.label===h.trim())))&&void 0!==d?d:u[0];return _(L_e,{id:`edit-dd-disabled-${r}-${e.id}`,options:u,value:f,onSelect:()=>{},size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,required:!1,isFloatingLabel:!1,label:"",keepFooterSpace:!1,segmentedInput:!0,disabled:!0,className:Ax("rounded-md",A_e({size:"sm"}))})}if("number"===v){const t=e.original[r],n=""===t||null==t?void 0:Number(t);return _(oye,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:n,disabled:!0,hideControls:!0,className:"rounded-md px-2 py-2 typography-small2"})}if("checkbox"===v){const n=e.original[r];return x("div",{className:"flex items-center gap-2 min-h-[32px]",children:[_(uxe,{checked:!0===n||"true"===n,disabled:!0}),(null===(u=t.editCheckboxProps)||void 0===u?void 0:u.label)&&_("span",{className:"typography-small2 text-text-g-contrast-medium select-none",children:t.editCheckboxProps.label})]})}const m=String(null!==(h=e.original[r])&&void 0!==h?h:""),y=null!==(p=null===(f=t.editTextProps)||void 0===f?void 0:f.placeholder)&&void 0!==p?p:"";return _(Yme,{size:"sm",variant:"outline",rounded:"normal",fullwidth:!0,isFloatingLabel:!1,label:"",required:!1,hasClearIcon:!1,keepFooterSpace:!1,defaultValue:m,placeholder:y,"aria-label":y||r,disabled:!0,className:"rounded-md px-2 py-2 typography-small2"})}function wHe(e){switch(null==e?void 0:e.align){case"center":return"text-center";case"right":return"text-right";case"left":return"text-left";default:return}}function _He(e){const{row:t,getSubRows:r,firstDataCellId:n,fixedColStyles:a,flexWidth:o,lockPxExactWidth:l,resizable:i,tableLayout:s,resizableSlackGrowColId:c,cellClassName:d,onCellClick:u}=e;return function(e){const t=[];let r=0;for(;r<e.length;){const n=e[r],a=n.column.columnDef.meta;let o=1;if(null!=(null==a?void 0:a.colSpan)){const e="function"==typeof a.colSpan?a.colSpan(n.row):a.colSpan,t=Math.floor(Number(e));Number.isFinite(t)&&t>=1&&(o=t)}const l=e.length-r,i=Math.min(o,l);t.push({cell:n,colSpan:Math.max(1,i)}),r+=Math.max(1,i)}return t}(t.getVisibleCells()).map((({cell:e,colSpan:h})=>{var f;const p=Boolean(r)&&e.id===n(t),v=i&&"equal"!==s&&!(null!=c&&e.column.id===c);return _(Oze,{colSpan:h>1?h:void 0,style:PHe(e.column.columnDef,null==a?void 0:a.get(e.column.id),o,l,v?e.column.getSize():void 0),className:Ax(wHe(e.column.columnDef.meta),null===(f=e.column.columnDef.meta)||void 0===f?void 0:f.cellClassName,"function"==typeof d?d(e,t):d),onClick:u?r=>u(e,t,r):void 0,children:p?x("div",{className:"flex items-center gap-1",style:{paddingLeft:20*t.depth+"px"},children:[t.getCanExpand()?_("button",{type:"button",onClick:t.getToggleExpandedHandler(),className:"flex items-center justify-center size-5 rounded hover:bg-table-c-hover shrink-0 transition-colors","aria-label":t.getIsExpanded()?"Collapse":"Expand",children:t.getIsExpanded()?_(fS,{className:"size-4"}):_(wS,{className:"size-4"})}):_("span",{className:"size-5 shrink-0"}),PPe(e.column.columnDef.cell,e.getContext())]}):PPe(e.column.columnDef.cell,e.getContext())},e.id)}))}function xHe({rowId:e}){const{attributes:t,listeners:r,setNodeRef:n,isDragging:a}=hIe({id:e});return _(mye,Object.assign({ref:n},t,r,{variant:"icon",size:"sm",active:a,className:Ax("touch-none",a?"cursor-grabbing":"cursor-grab"),"aria-label":"Drag to reorder",children:_(yT,{className:"!size-4"})}))}function MHe(e){var{id:t,children:r}=e,n=zx(e,["id","children"]);const{transform:a,transition:o,isDragging:l,setNodeRef:i}=hIe({id:t}),s={transform:sRe.Transform.toString(a?Object.assign(Object.assign({},a),{scaleX:1,scaleY:1}):null),transition:o,opacity:l?.5:1,position:"relative",zIndex:l?50:void 0};return _(jze,Object.assign({ref:i,style:s},n,{children:r}))}const jHe=["__reorder__","__select__"],EHe=["__actions__"];function OHe(e){const t=e.column.columnDef.header;return"string"==typeof t?t:e.column.id}function CHe(e,t){var r;const n=null===(r=e.meta)||void 0===r?void 0:r.exactWidth;if(null==n)return;const a=null!=zHe(n),o=t&&a,l="number"==typeof n?`${n}px`:n.trim();return o?{width:l,minWidth:l,maxWidth:l,overflow:"hidden",boxSizing:"border-box"}:{width:n}}function zHe(e){if("number"==typeof e)return Number.isFinite(e)?e:null;if("string"==typeof e){const t=e.trim().match(/^(-?\d*\.?\d+)\s*px$/i);return t?parseFloat(t[1]):null}return null}function PHe(e,t,r,n,a){const o=CHe(e,n);if(o)return o;if(null!=a){const t=e.maxSize;return Object.assign({width:a},null!=t&&t!==Number.MAX_SAFE_INTEGER&&{maxWidth:t})}return t||(r?{width:r}:void 0)}function RHe({col:e,label:t,isLastVisible:r,showReorder:n,showVisibility:a}){var o;const{attributes:l,listeners:i,setNodeRef:s,setActivatorNodeRef:c,transform:d,transition:u,isDragging:h}=hIe({id:e.id}),f={transform:h?`translateY(${null!==(o=null==d?void 0:d.y)&&void 0!==o?o:0}px)`:sRe.Transform.toString(d),transition:h?void 0:u};return x("div",{ref:s,style:f,className:Ax("flex h-14 items-center gap-4 pl-6 pr-8 bg-modal-surface","relative select-none",h&&"z-50 border border-primary-500/40 shadow-[0_8px_24px_-4px_rgba(0,0,0,0.24)] scale-[1.01]"),children:[n&&_(mye,Object.assign({ref:c},l,i,{variant:"icon",size:"sm",active:h,"aria-label":`Drag to reorder ${t}`,className:Ax("shrink-0 touch-none",h?"cursor-grabbing":"cursor-grab"),children:_(yT,{className:"size-[14px]"})})),a&&_(dHe,{checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(t),disabled:r}),_("span",{className:Ax("flex-1 typography-subtitle4",h?"text-text-contrast-max":"text-text-g-contrast-high"),children:t})]})}function AHe({table:e,onClose:t,maxListHeight:r=400,options:n={}}){const{reorder:a=!0,visibility:o=!0,hideAll:l=!0,showAll:i=!0}=n,s=e.getAllLeafColumns().filter((e=>e.getCanHide())),c=s.filter((e=>e.getIsVisible())).length,d=e=>{const t=e.columnDef.header;return"string"==typeof t?t:e.id},u=wRe(kRe(hAe),kRe(iAe,{coordinateGetter:vIe}));return x(M,{children:[x("div",{className:"flex items-center gap-2 px-6 pt-4 pb-3 border-b border-modal-line",children:[_("span",{className:"flex-1 typography-subtitle3 text-text-contrast-max",children:"Manage column"}),l&&_(Lx,{variant:"text",color:"secondary",size:"sm",disabled:c<=1,onClick:()=>{var e;const t=null!==(e=s.find((e=>e.getIsVisible())))&&void 0!==e?e:s[0];s.forEach((e=>e.toggleVisibility(e.id===t.id)))},children:"Hide all"}),i&&_(Lx,{variant:"text",color:"primary",size:"sm",onClick:()=>e.toggleAllColumnsVisible(!0),children:"Show all"}),_(Lx,{variant:"outline",color:"primary",size:"sm",onClick:t,children:"Done"})]}),_(FAe,{sensors:u,collisionDetection:zRe,modifiers:[KAe,YAe],onDragEnd:t=>{const{active:r,over:n}=t;if(!n||r.id===n.id)return;const a=e.getAllLeafColumns().map((e=>e.id)),o=a.filter((e=>!jHe.includes(e)&&!EHe.includes(e))),l=o.indexOf(r.id),i=o.indexOf(n.id);if(-1===l||-1===i)return;const s=a.filter((e=>jHe.includes(e))),c=a.filter((e=>EHe.includes(e)));e.setColumnOrder([...s,...XAe(o,l,i),...c])},children:_(oIe,{items:s.map((e=>e.id)),strategy:rIe,children:_("div",{className:"overflow-y-auto ui-scrollbar",style:{maxHeight:r},children:s.map((e=>_(RHe,{col:e,label:d(e),isLastVisible:e.getIsVisible()&&1===c,showReorder:a,showVisibility:o},e.id)))})})})]})}function IHe({data:r,columns:o,manualSorting:c=!1,onSorting:u,paginationMode:h="infinite",totalCount:f,pageIndex:p,pageSize:v,onPaginationChange:m,pageSizeOptions:y,fetchMoreData:g,fetchMoreOffset:b,fetchingMore:k=!1,fetchingMoreLabel:w="Loading more…",loading:j=!1,loadingLabel:E="Loading…",highlightRowId:O,scrollToHighlightOnMouseLeave:C=!1,selectable:z=!1,onRowSelectionChange:P,rowActions:R,reorderable:A=!1,getRowId:I,onRowReorder:L,isRowReorderLocked:S,onRowClick:V,onCellClick:H,getSubRows:N,defaultExpanded:Z,expanded:D,onExpandedChange:B,bordered:q=!0,surface:T="default",striped:F=!1,divided:W=!0,rowClassName:$,cellClassName:U,headerCellClassName:G,headerClassName:Y,headerRowClassName:K,sortIndicatorVisibility:X="hover",tableLayout:Q="auto",columnManagement:J=!1,resizable:ee=!1,columnMinSize:te=60,columnMaxSize:re=Number.MAX_SAFE_INTEGER,virtualized:ne=!1,virtualRowEstimate:ae,className:oe,enableEditing:le=!1,editDisplayMode:ie="cell",editTrigger:se="click",onCellCommit:ce,alwaysEditing:de,enableCellTabTraversal:ue,editableColumnIds:he,testId:fe}){var pe;const ve=n(null),me=n(null),ye=n(!1),ge=n(0),[be,ke]=i(48),we=a((()=>{const e=ve.current;let t=!1;const r=()=>{t||(t=!0,ge.current=Math.max(0,ge.current-1))};null==e||e.addEventListener("scrollend",r,{once:!0}),window.setTimeout(r,550)}),[]),_e=a(((e,t,r)=>{var n,a;const o=r.scrollDirection;if("forward"===o||null===o){const r=null===(n=null==t?void 0:t.borderBoxSize)||void 0===n?void 0:n[0];return r?Math.round(r.blockSize):Math.round(e.getBoundingClientRect().height)}const l=e.getAttribute("data-index"),i=null!=l?Number.parseInt(l,10):NaN,s=r.measurementsCache,c=Number.isFinite(i)&&(null==s?void 0:s[i])?s[i].size:void 0;if("number"==typeof c)return c;const d=null===(a=null==t?void 0:t.borderBoxSize)||void 0===a?void 0:a[0];return d?Math.round(d.blockSize):Math.round(e.getBoundingClientRect().height)}),[]),xe=!!J,Me="object"==typeof J?J:{},[je,Ee]=i([]),[Oe,Ce]=i([]),[ze,Pe]=i({}),[Re,Ae]=i([]),[Ie,Le]=i({}),[Se,Ve]=i({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),[He,Ne]=i({}),[Ze,De]=i(null!==(pe=Z)&&void 0!==pe?pe:{}),Be=void 0!==D,qe=Be?D:Ze,[Te,Fe]=i({pageIndex:null!=p?p:0,pageSize:null!=v?v:10}),[We,$e]=i(!1),[Ue,Ge]=i(null),[Ye,Ke]=i(null),[Xe,Qe]=i({top:0,right:0,maxListHeight:400}),Je=n(new Map),et=a(((e,t)=>{Ke(null);const r=window.innerWidth-t.right,n=Math.min(Math.max(r,8),window.innerWidth-460-8),a=t.bottom+8,o=Math.max(80,window.innerHeight-a-80);Qe({top:a,right:n,maxListHeight:o}),Ge(e),$e(!0)}),[]);s((()=>{if(!We)return;const e=e=>{"Escape"===e.key&&$e(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[We]),s((()=>{"server"===h&&Fe({pageIndex:null!=p?p:0,pageSize:null!=v?v:10})}),[h,p,v]);const tt=t.useMemo((()=>null!=he?he:le?function(e){return e.filter((e=>null!=e.enableEditing||null!=e.editVariant)).map((e=>{var t,r;return null!==(r=null!==(t=e.accessorKey)&&void 0!==t?t:e.id)&&void 0!==r?r:""})).filter(Boolean)}(o):[]),[le,he,o]),rt=function(e){const{enabled:r,editDisplayMode:n,editTrigger:o,editableColumnIds:c}=e,[d,u]=i(null),[h,f]=i(null),p=t.useRef(!1),v=a((e=>{u(e),f(null)}),[]),m=a(((e,t)=>{f({rowId:e,columnId:t}),u(null)}),[]),y=a((()=>{u(null),f(null)}),[]),g=a(((e,t)=>{p.current||"cell"===n&&f(null)}),[n]),b=a(((e,t,r)=>{const n=c.indexOf(t);if(n<0)return f(null),"exited";const a=n+r;return a<0||a>=c.length?(f(null),"exited"):(p.current=!0,f({rowId:e,columnId:c[a]}),requestAnimationFrame((()=>{p.current=!1})),"moved")}),[c]);return s((()=>{if(!r||"row"!==n||!d)return;const e=e=>{"Escape"===e.key&&u(null)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r,n,d]),l((()=>({editingRowId:d,editingCell:h,editDisplayMode:n,editTrigger:o,requestRowEdit:v,requestCellEdit:m,clearEdit:y,onFieldBlur:g,moveCellEdit:b})),[d,h,n,o,v,m,y,g,b])}({enabled:le,editDisplayMode:ie,editTrigger:se,editableColumnIds:tt}),nt=t.useMemo((()=>{let e;var t;return e=le?function(e,t){const{editing:r,onCellCommit:n,alwaysEditing:a,enableCellTabTraversal:o,editableColumnIds:l}=t;return e.map((e=>{var t,i;const s=e.enableEditing;if(null==s&&null==e.editVariant)return e;const c=null!==(i=null!==(t=e.accessorKey)&&void 0!==t?t:e.id)&&void 0!==i?i:"",d=e.cell,u=Object.assign(Object.assign({},e),{cell:t=>{var i,u,h,f,p,v,m,y;const{row:g}=t,b=function(e){const t=e.original;return"string"==typeof t.id?t.id:e.id}(g);if(!("function"==typeof s?s(g):!1!==s)){const n=null!==(i=null==a?void 0:a(g))&&void 0!==i&&i,o=n||r.editingRowId===b||(null===(u=r.editingCell)||void 0===u?void 0:u.rowId)===b;if((n||e.editShowDisabledField&&o)&&(e.editVariant||null!=s))return _(kHe,{row:g,col:e,columnId:c});if(e.displayCell)return e.displayCell(g);if(d)return"function"==typeof d?d(t):d;const l=g.original[c];return _(M,{children:String(null!=l?l:"")})}const k=null!==(h=null==a?void 0:a(g))&&void 0!==h&&h,w=k||function(e,t,r){var n;const a="string"==typeof t.original.id?t.original.id:t.id;return"row"===e.editDisplayMode?e.editingRowId===a:(null===(n=e.editingCell)||void 0===n?void 0:n.rowId)===a&&e.editingCell.columnId===r}(r,g,c);if(!w){const t=e.displayCell?e.displayCell(g):String(null!==(f=g.original[c])&&void 0!==f?f:""),n=()=>{"row"===r.editDisplayMode?r.requestRowEdit(b):r.requestCellEdit(b,c)},a="click"===r.editTrigger?{onClick:n}:{onDoubleClick:n};return _("div",Object.assign({className:Ax("-mx-1 flex min-h-[32px] w-full min-w-0 cursor-pointer items-center rounded-sm px-1","hover:bg-table-c-hover/35")},a,{children:t}))}const x=null!==(p=e.editVariant)&&void 0!==p?p:"text",j=!k&&"cell"===r.editDisplayMode,E=null===(v=e.editError)||void 0===v?void 0:v.call(e,g),O=t=>{const a=vHe(e,g,t,c);null==n||n(b,c,a),k||r.onFieldBlur(b,c)},C=o?(e,t)=>{if("Tab"===e.key){if("row"===r.editDisplayMode){const r=l.indexOf(c);if(r<0)return;const n=r+(e.shiftKey?-1:1);if(n<0||n>=l.length)return;const a=l[n];return t(),e.preventDefault(),void requestAnimationFrame((()=>{const e=document.querySelector(`[data-edit-cell="${b}:${a}"] input, [data-edit-cell="${b}:${a}"] button`);null==e||e.focus()}))}t(),"moved"===r.moveCellEdit(b,c,e.shiftKey?-1:1)&&e.preventDefault()}}:void 0;if("select"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(yHe,{row:g,columnId:c,col:e,autoFocus:j,keepOpenAfterSelect:"row"===r.editDisplayMode||k,onCommit:t=>{var r;const a=String(null!==(r=g.original[c])&&void 0!==r?r:"");if(t.trim()===a.trim())return;const o=vHe(e,g,t,c);null==n||n(b,c,o)},onBlurField:"row"===r.editDisplayMode?void 0:()=>{k||r.onFieldBlur(b,c)},onKeyDown:C?e=>C(e,(()=>{})):void 0,errorMessage:E})});if("number"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(gHe,{columnId:c,row:g,col:e,autoFocus:j,errorMessage:E,onBlur:e=>O(e),onKeyDown:C?t=>C(t,(()=>{const r=t.target.value.trim(),a=vHe(e,g,r,c);null==n||n(b,c,a)})):void 0})});if("checkbox"===x)return _("div",{"data-edit-cell":`${b}:${c}`,children:_(bHe,{columnId:c,row:g,col:e,errorMessage:E,onCommit:t=>{const r=vHe(e,g,String(t),c);null==n||n(b,c,r)},onKeyDown:C?e=>C(e,(()=>{})):void 0})});if("custom"===x&&e.editCustomCell){const t=()=>{k||r.onFieldBlur(b,c)};return _("div",{"data-edit-cell":`${b}:${c}`,children:e.editCustomCell(g,{commit:t=>{const r=vHe(e,g,t,c);null==n||n(b,c,r)},blur:t,columnId:c,autoFocus:j,errorMessage:E,onKeyDown:C?e=>C(e,(()=>{})):void 0})})}return _("div",{"data-edit-cell":`${b}:${c}`,children:_(mHe,{columnId:c,row:g,placeholder:null!==(y=null===(m=e.editTextProps)||void 0===m?void 0:m.placeholder)&&void 0!==y?y:"",autoFocus:j,errorMessage:E,onBlur:e=>O(e.currentTarget.value.trim()),onKeyDown:C?t=>C(t,(()=>{const r=t.target.value.trim(),a=vHe(e,g,r,c);null==n||n(b,c,a)})):void 0})})}});return u}))}(o,{editing:rt,onCellCommit:ce,alwaysEditing:de,enableCellTabTraversal:null==ue||ue,editableColumnIds:tt}):[...o],A&&e.unshift({id:"__reorder__",header:()=>null,cell:({row:e})=>_(xHe,{rowId:e.id}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:54,maxSize:54,minSize:54,meta:{exactWidth:54}}),z&&e.unshift({id:"__select__",header:({table:e})=>_(uxe,{checked:e.getIsSomeRowsSelected()?"indeterminate":e.getIsAllRowsSelected(),onCheckedChange:t=>e.toggleAllRowsSelected(!!t),"aria-label":"Select all"}),cell:({row:e})=>_(uxe,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":"Select row",disabled:!e.getCanSelect()}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:42,maxSize:42,minSize:42,meta:{exactWidth:42}}),R&&e.push((t=R,{id:"__actions__",header:()=>null,cell:({row:e})=>_("div",{className:"flex items-center justify-center gap-1",children:t(e)}),enableSorting:!1,enableHiding:!1,enableResizing:!1,size:80,maxSize:80,minSize:80,meta:{exactWidth:80}})),e}),[o,z,A,R,le,rt,ce,de,ue]),at="client"===h||"server"===h,ot=function(t){const r={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=e.useState((()=>({current:OPe(r)}))),[a,o]=e.useState((()=>n.current.initialState));return n.current.setOptions((e=>({...e,...t,state:{...a,...t.state},onStateChange:e=>{o(e),null==t.onStateChange||t.onStateChange(e)}}))),n.current}(Object.assign(Object.assign(Object.assign(Object.assign({data:r,columns:nt,columnResizeMode:"onChange",defaultColumn:{minSize:te,maxSize:re}},I?{getRowId:e=>I(e)}:{getRowId:e=>e.id}),{manualSorting:c,manualPagination:"server"===h,rowCount:"server"===h?null!=f?f:r.length:void 0,getSubRows:N,onSortingChange:Ee,onColumnFiltersChange:Ce,onColumnVisibilityChange:Pe,onColumnOrderChange:Ae,onColumnSizingChange:Le,onColumnSizingInfoChange:Ve,onRowSelectionChange:Ne,onExpandedChange:e=>{const t="function"==typeof e?e(qe):e;Be||De(t),null==B||B(t)},onPaginationChange:e=>{const t="function"==typeof e?e(Te):e;Fe(t),null==m||m(t)},getCoreRowModel:e=>Ize((()=>[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=Zze(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}),Lze(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Ize((()=>[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}}),Lze(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),getFilteredRowModel:e=>Ize((()=>[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 zPe(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),Lze(e.options,"debugTable","getFilteredRowModel",(()=>e._autoResetPageIndex()))),getExpandedRowModel:e=>Ize((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,r)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:r?CPe(t):t),Lze(e.options,"debugTable","getExpandedRowModel"))}),at?{getPaginationRowModel:e=>Ize((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,r)=>{if(!r.rows.length)return r;const{pageSize:n,pageIndex:a}=t;let{rows:o,flatRows:l,rowsById:i}=r;const s=n*a,c=s+n;let d;o=o.slice(s,c),d=e.options.paginateExpandedRows?{rows:o,flatRows:l,rowsById:i}:CPe({rows:o,flatRows:l,rowsById:i}),d.flatRows=[];const u=e=>{d.flatRows.push(e),e.subRows.length&&e.subRows.forEach(u)};return d.rows.forEach(u),d}),Lze(e.options,"debugTable","getPaginationRowModel"))}:{}),{enableRowSelection:z,enableColumnResizing:ee,state:Object.assign({sorting:je,columnFilters:Oe,columnVisibility:ze,columnOrder:Re,columnSizing:Ie,columnSizingInfo:Se,rowSelection:He,expanded:qe},at?{pagination:Te}:{})})),lt=t.useMemo((()=>{const e=ot.getRowModel().rows;if(!S)return e;const t=e.filter((e=>S(e))),n=e.filter((e=>!S(e)));if(0===t.length)return e;const a=new Map(r.map(((e,t)=>[I?I(e):String(e.id),t])));return t.sort(((e,t)=>{var r,n;return(null!==(r=a.get(e.id))&&void 0!==r?r:0)-(null!==(n=a.get(t.id))&&void 0!==n?n:0)})),[...n,...t]}),[ot.getRowModel().rows,S,r,I]);s((()=>{null==u||u(je)}),[je,u]),s((()=>{null==P||P(He)}),[He,P]),s((()=>{if("infinite"!==h)return;const e=ve.current;if(!e)return;const t=()=>{if(ge.current>0)return;const{scrollTop:t,scrollHeight:r,clientHeight:n}=e;if(k||j)return;t+n>=r-("number"==typeof b?b:10)&&(null==g||g())};return e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}),[h,g,k,j,b]);const it=0===lt.length;d((()=>{if(!ne)return;const e=me.current;if(!e)return;const t=()=>{ke(Math.round(e.getBoundingClientRect().height))};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()}),[ne]);const st=n((()=>{})),ct=n(!1),dt=abe({count:ne?lt.length:0,getScrollElement:()=>ve.current,estimateSize:()=>null!=ae?ae:40,overscan:4,paddingStart:ne?be:0,scrollPaddingStart:0,measureElement:_e,onChange:()=>{var e,t;if(!ne||!O)return;(null!==(t=null===(e=ve.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)<1?ct.current=!1:ct.current||(ct.current=!0,requestAnimationFrame((()=>{ye.current||st.current("auto")})))}}),ut=a(((e="smooth")=>{var t,r;if(!O)return;if(ye.current)return;const n=ve.current;if(!n)return;const a=Array.isArray(O)?O:[O];if(ne){dt.getTotalSize();for(const o of a){const a=lt.findIndex((e=>e.id===o));if(-1!==a){const o=null!=ae?ae:40,l=dt.getOffsetForIndex(a,"start");if(!l)continue;const[i]=l,s=null===(r=null===(t=dt.measurementsCache)||void 0===t?void 0:t[a])||void 0===r?void 0:r.size,c=i+("number"==typeof s?s:o)/2-n.clientHeight/2;return ge.current+=1,we(),void dt.scrollToOffset(Math.max(0,c),{align:"start",behavior:"smooth"===e?"smooth":"auto"})}}}else for(const t of a){const r=n.querySelector(`[data-row-id="${t}"]`);if(r){ge.current+=1,we(),r.scrollIntoView({block:"center",behavior:e});break}}}),[O,lt,ne,dt,ae,be,we]);st.current=ut,d((()=>{ct.current=!1}),[ne,O]),d((()=>{ut("smooth")}),[ne,ut,O]);const ht={pageIndex:Te.pageIndex,pageSize:Te.pageSize,totalCount:"server"===h?null!=f?f:r.length:ot.getFilteredRowModel().rows.length,pageSizeOptions:y,onPageChange:e=>ot.setPagination((t=>Object.assign(Object.assign({},t),{pageIndex:e}))),onPageSizeChange:e=>ot.setPagination({pageIndex:0,pageSize:e})},ft=function(e){return t.useMemo((()=>{var t;const r=e.getVisibleLeafColumns();let n=0,a=0;for(const e of r){const r=null===(t=e.columnDef.meta)||void 0===t?void 0:t.exactWidth,o=zHe(r);null!=o?n+=o:null==r&&(a+=1)}if(0!==a&&0!==n)return`calc((100% - ${n}px) / ${a})`}),[e.getVisibleLeafColumns()])}(ot),pt="equal"===Q?ft:void 0,vt=t.useMemo((()=>{if("fixed"!==Q)return null;const e=ot.getVisibleLeafColumns(),t=e=>{var t;return null!=zHe(null===(t=e.columnDef.meta)||void 0===t?void 0:t.exactWidth)},r=e.map(((e,r)=>t(e)?-1:r)).filter((e=>e>=0)),n=r.length>0?r[r.length-1]:-1,a=new Map;return e.forEach(((e,r)=>{var o,l,i;if(t(e))return;if(r===n)return;const s=null!==(i=null!==(o=e.columnDef.size)&&void 0!==o?o:null===(l=e.getSize)||void 0===l?void 0:l.call(e))&&void 0!==i?i:150,c="number"==typeof s?s:Number.isFinite(parseFloat(String(s)))?parseFloat(String(s)):150;a.set(e.id,{width:`${c}px`,minWidth:`${c}px`,maxWidth:`${c}px`,overflow:"hidden",boxSizing:"border-box"})})),a}),[Q,ot.getVisibleLeafColumns()]),mt=t.useMemo((()=>{var e,t;if(!ee||"equal"===Q)return null;const r=ot.getVisibleLeafColumns(),n=r.map(((e,t)=>{var r;return null==zHe(null===(r=e.columnDef.meta)||void 0===r?void 0:r.exactWidth)?t:-1})).filter((e=>e>=0));return 0===n.length?null:null!==(t=null===(e=r[n[n.length-1]])||void 0===e?void 0:e.id)&&void 0!==t?t:null}),[ee,Q,ot.getVisibleLeafColumns()]),yt=e=>{var t;return null===(t=e.getVisibleCells().find((e=>"__select__"!==e.column.id&&"__actions__"!==e.column.id&&"__reorder__"!==e.column.id)))||void 0===t?void 0:t.id},gt=wRe(kRe(hAe),kRe(iAe,{coordinateGetter:vIe})),bt=t.useMemo((()=>lt.filter((e=>!(null==S?void 0:S(e)))).map((e=>e.id))),[lt,S]),kt="fixed"===Q||ee,wt=xe&&!1!==Me.visibility,_t=xe?ot.getAllLeafColumns().filter((e=>e.getCanHide()&&e.getIsVisible())).length:0,xt=le?rt:null;return _(uHe.Provider,{value:xt,children:x("div",{className:Ax("flex flex-col w-full h-full min-h-0",q&&"overflow-hidden rounded-md border border-table-c-border",!q&&"overflow-hidden rounded-none",oe),"data-surface":"panel"===T?"panel":void 0,"data-testid":fe,children:[_("div",{ref:ve,className:Ax("relative min-h-0 overflow-auto","ui-scrollbar ui-scrollbar-x-m ui-scrollbar-y-s",at?"flex-1":"h-full"),onWheel:C?()=>{ye.current=!0}:void 0,onPointerDownCapture:C?()=>{ye.current=!0}:void 0,onMouseLeave:C?()=>{ye.current=!1,ut("smooth")}:void 0,children:x(wze,{scrollableWrapper:!1,className:Ax(("fixed"===Q||"equal"===Q||ee)&&"table-fixed",it&&"h-full"),style:ee?{width:`max(100%, ${ot.getTotalSize()}px)`}:{width:"100%"},children:["fixed"===Q&&!ee&&_("colgroup",{children:ot.getVisibleLeafColumns().map((e=>{const t=CHe(e.columnDef,kt),r=null!=t?t:null==vt?void 0:vt.get(e.id);return _("col",{style:r},e.id)}))}),ee&&_("colgroup",{children:ot.getVisibleLeafColumns().map((e=>{const t=CHe(e.columnDef,kt);return t?_("col",{style:t},e.id):"equal"===Q||null!=mt&&e.id===mt?_("col",{},e.id):_("col",{style:{width:e.getSize()}},e.id)}))}),_(_ze,{ref:me,className:Ax("sticky top-0 z-10",Y),"data-testid":fe?`${fe}-thead`:void 0,children:ot.getHeaderGroups().map((e=>_(jze,{divided:!1,colDivided:W,className:Ax("hover:bg-transparent",K),children:e.headers.map((e=>{var t;const r=e.column.getCanSort(),n=e.column.getIsSorted(),a=xe&&e.column.getCanHide(),o=ee&&"equal"!==Q&&e.column.getCanResize(),l=e.column.getIsResizing(),i=!ee&&vt?vt.get(e.column.id):void 0,s=ee&&"equal"!==Q&&!(null!=mt&&e.column.id===mt),c=function(e,t,r,n,a){const o=CHe(e,n);if(o)return o;if(null!=a){const t=e.maxSize;return Object.assign({width:a},null!=t&&t!==Number.MAX_SAFE_INTEGER&&{maxWidth:t})}return t?{width:t}:r}(e.column.columnDef,pt,i,kt,s?e.getSize():void 0);return x(Eze,{colSpan:e.colSpan,style:c,className:Ax("relative overflow-visible group/col whitespace-pre",l&&"select-none",null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.headerCellClassName,"function"==typeof G?G(e):G),children:[x("div",{className:"flex flex-row items-center gap-1 group/header",children:[_("span",{className:Ax("flex flex-1 flex-row items-center overflow-hidden",r&&"cursor-pointer select-none",wHe(e.column.columnDef.meta)),onClick:e.column.getToggleSortingHandler(),children:e.isPlaceholder?null:PPe(e.column.columnDef.header,e.getContext())}),r&&_(mye,{variant:"icon",size:"xs",className:Ax("shrink-0 transition-opacity",n||"always"===X?"opacity-100":"opacity-0 group-hover/header:opacity-100"),onClick:e.column.getToggleSortingHandler(),"aria-label":"asc"===n?"Sorted ascending — click to sort descending":"desc"===n?"Sorted descending — click to clear sort":"Sort column",children:"asc"===n?_(zO,{className:"!size-4"}):"desc"===n?_(BE,{className:"!size-4"}):_(uO,{className:"!size-4 text-text-g-contrast-medium"})}),a&&x(LVe,{open:Ye===e.column.id,onOpenChange:t=>Ke(t?e.column.id:null),modal:!1,children:[_(SVe,{asChild:!0,children:_(mye,{variant:"icon",size:"sm",active:We&&Ue===e.column.id||Ye===e.column.id,"aria-haspopup":"menu","aria-expanded":Ye===e.column.id,"aria-label":"Column options",className:"shrink-0",ref:t=>{t?Je.current.set(e.column.id,t):Je.current.delete(e.column.id)},onClick:e=>e.stopPropagation(),children:_(cT,{className:"!size-4"})})}),x(qVe,{align:"end",sideOffset:4,className:"min-w-[220px] py-1",onCloseAutoFocus:e=>e.preventDefault(),children:[wt&&x(TVe,{className:"py-3",disabled:e.column.getIsVisible()&&_t<=1,icon:_(RT,{className:"size-4","aria-hidden":!0}),onSelect:()=>{e.column.toggleVisibility(!1)},children:["Hide ",OHe(e)," ","column"]}),_(TVe,{className:"py-3",icon:_(SZ,{className:"size-4","aria-hidden":!0}),onSelect:()=>{requestAnimationFrame((()=>{const t=Je.current.get(e.column.id);t&&et(e.column.id,t.getBoundingClientRect())}))},children:"Manage columns"})]})]})]}),o&&_("div",{onMouseDown:e.getResizeHandler(document),onTouchStart:e.getResizeHandler(document),onClick:e=>e.stopPropagation(),className:Ax("absolute right-0 top-0 h-full w-[5px] z-10","cursor-col-resize select-none touch-none","flex items-center justify-center group/resize"),children:_("div",{className:Ax("h-4/5 w-1.5 rounded-full transition-all duration-150",l?"opacity-100 w-0.5 bg-primary-500":"opacity-0 bg-table-c-col-line group-hover/col:opacity-100 group-hover/resize:bg-primary-400")})})]},e.id)}))},e.id)))}),_(xze,{striped:F,"data-testid":fe?`${fe}-tbody`:void 0,children:it?_(jze,j?{className:"h-full hover:bg-transparent",divided:!1,children:_(Oze,{colSpan:nt.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full min-h-[200px]",children:x("div",{className:"flex flex-1 min-h-[200px] h-full flex-col items-center justify-center gap-3 py-16",role:"status","aria-live":"polite","aria-busy":"true",children:[_(c0,{className:"size-8 shrink-0 animate-spin text-secondary-120","aria-hidden":!0}),E]})})}:{className:"h-full hover:bg-transparent",divided:!1,children:_(Oze,{colSpan:nt.length,className:"typography-body1 text-text-g-contrast-medium text-center h-full",children:x("div",{className:"flex flex-1 h-full flex-col items-center justify-center gap-3 py-16",children:[_(HH,{className:"w-8 text-secondary-120"}),"There is no information yet."]})})}):ne?(()=>{var e;const t=dt.getVirtualItems();if(!t.length)return null;const r=Math.max(0,t[0].start-be),n=dt.getTotalSize()-(null!==(e=t[t.length-1].end)&&void 0!==e?e:0);return x(M,{children:[r>0&&_("tr",{"aria-hidden":!0,children:_("td",{colSpan:nt.length,style:{height:r}})}),t.map((e=>{const t=lt[e.index],r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=Array.isArray(O)?O.includes(t.id):O===t.id,o={divided:!(!r||F)||!F,colDivided:W,"data-state":t.getIsSelected()?"selected":void 0,"data-highlighted":a?"true":void 0,className:Ax(n,V&&"cursor-pointer","function"==typeof $?$(t,e.index):$),onClick:V?e=>V(t,e):void 0};return _(jze,Object.assign({ref:dt.measureElement,"data-index":e.index,"data-row-id":t.id},o,{children:_He({row:t,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H})}),t.id)})),n>0&&_("tr",{"aria-hidden":!0,children:_("td",{colSpan:nt.length,style:{height:n}})})]})})():A?_(FAe,{sensors:gt,collisionDetection:zRe,modifiers:[KAe],onDragEnd:e=>{const{active:t,over:n}=e;if(!n||t.id===n.id||!L)return;const a=r.findIndex((e=>(I?I(e):e.id)===t.id)),o=r.findIndex((e=>(I?I(e):e.id)===n.id));-1!==a&&-1!==o&&L(XAe([...r],a,o))},children:_(oIe,{items:bt,strategy:rIe,children:lt.map(((e,t)=>{const r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=null==S?void 0:S(e),o=Array.isArray(O)?O.includes(e.id):O===e.id,l={divided:!(!r||F)||!F,colDivided:W,"data-state":e.getIsSelected()?"selected":void 0,"data-highlighted":o?"true":void 0,className:Ax(n,V&&"cursor-pointer","function"==typeof $?$(e,t):$),onClick:V?t=>V(e,t):void 0},i=_He({row:e,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H});return a?_(jze,Object.assign({"data-row-id":e.id},l,{children:i}),e.id):_(MHe,Object.assign({id:e.id,"data-row-id":e.id},l,{children:i}),e.id)}))})}):lt.map(((e,t)=>{const r=Boolean(N),n=r&&!F?"bg-table-bg-a":void 0,a=Array.isArray(O)?O.includes(e.id):O===e.id;return _(jze,{divided:!(!r||F)||!F,colDivided:W,"data-state":e.getIsSelected()?"selected":void 0,className:Ax(n,V&&"cursor-pointer","function"==typeof $?$(e,t):$),"data-highlighted":a?"true":void 0,onClick:V?t=>V(e,t):void 0,"data-row-id":e.id,children:_He({row:e,getSubRows:N,firstDataCellId:yt,fixedColStyles:vt,flexWidth:pt,lockPxExactWidth:kt,resizable:ee,tableLayout:Q,resizableSlackGrowColId:mt,cellClassName:U,onCellClick:H})},e.id)}))}),"infinite"===h&&k&&!it&&ot.getVisibleLeafColumns().length>0&&_("tfoot",{className:"[&_tr]:bg-table-c-row-bg",children:_(jze,{divided:!1,className:"hover:!bg-table-c-row-bg border-t border-t-table-c-row-line",children:_(Oze,{colSpan:ot.getVisibleLeafColumns().length,className:"py-3 text-center typography-body3 text-text-g-contrast-medium bg-inherit",children:x("span",{role:"status","aria-live":"polite",className:"inline-flex items-center justify-center gap-2",children:[_(c0,{className:"size-4 shrink-0 animate-spin","aria-hidden":!0}),w]})})})})]})}),at&&_(zze,Object.assign({},ht)),xe&&We&&x(DPe,{children:[_("div",{className:"fixed inset-0 z-40",onClick:()=>$e(!1)}),_("div",{className:"fixed z-50 w-[460px] rounded-lg bg-modal-surface shadow-[0px_12px_24px_-4px_rgba(0,0,0,0.12)] overflow-hidden",style:{top:Xe.top,right:Xe.right},onClick:e=>e.stopPropagation(),children:_(AHe,{table:ot,onClose:()=>$e(!1),maxListHeight:Xe.maxListHeight,options:Me})})]})]})})}var LHe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});var SHe,VHe="dismissableLayer.update",HHe="dismissableLayer.pointerDownOutside",NHe="dismissableLayer.focusOutside",ZHe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DHe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(ZHe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){qHe(HHe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){qHe(NHe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(SHe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),BHe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=SHe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),BHe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(VHe,e),()=>document.removeEventListener(VHe,e)}),[]),_(LHe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));DHe.displayName="DismissableLayer";function BHe(){const e=new CustomEvent(VHe);document.dispatchEvent(e)}function qHe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(ZHe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(LHe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var THe="focusScope.autoFocusOnMount",FHe="focusScope.autoFocusOnUnmount",WHe={bubbles:!1,cancelable:!0},$He=e.forwardRef(((t,r)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=t,[s,c]=e.useState(null),d=D_e(o),u=D_e(l),h=e.useRef(null),f=V_e(r,(e=>c(e))),p=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(a){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?h.current=t:KHe(h.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||KHe(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&KHe(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[a,s,p.paused]),e.useEffect((()=>{if(s){XHe.add(p);const t=document.activeElement;if(!s.contains(t)){const r=new CustomEvent(THe,WHe);s.addEventListener(THe,d),s.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(KHe(n,{select:t}),document.activeElement!==r)return}((e=UHe(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&KHe(s))}return()=>{s.removeEventListener(THe,d),setTimeout((()=>{const e=new CustomEvent(FHe,WHe);s.addEventListener(FHe,u),s.dispatchEvent(e),e.defaultPrevented||KHe(t??document.body,{select:!0}),s.removeEventListener(FHe,u),XHe.remove(p)}),0)}}var e}),[s,d,u,p]);const v=e.useCallback((e=>{if(!n&&!a)return;if(p.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=UHe(e),r=GHe(t,e),n=GHe(t.reverse(),e);return[r,n]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&KHe(o,{select:!0})):(e.preventDefault(),n&&KHe(a,{select:!0})):r===t&&e.preventDefault()}}),[n,a,p.paused]);return _(LHe.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})}));function UHe(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 GHe(e,t){for(const r of e)if(!YHe(r,{upTo:t}))return r}function YHe(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 KHe(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()}}$He.displayName="FocusScope";var XHe=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=QHe(e,t),e.unshift(t)},remove(t){e=QHe(e,t),e[0]?.resume()}}}();function QHe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var JHe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(LHe.div,{...a,ref:r}),i):null}));JHe.displayName="Portal";var eNe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=tNe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=tNe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=tNe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=tNe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function tNe(e){return e?.animationName||"none"}eNe.displayName="Presence";var rNe="Dialog",[nNe,aNe]=H_e(rNe),[oNe,lNe]=nNe(rNe),iNe=t=>{const{__scopeDialog:r,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:i=!0}=t,s=e.useRef(null),c=e.useRef(null),[d=!1,u]=B_e({prop:a,defaultProp:o,onChange:l});return _(oNe,{scope:r,triggerRef:s,contentRef:c,contentId:zEe(),titleId:zEe(),descriptionId:zEe(),open:d,onOpenChange:u,onOpenToggle:e.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};iNe.displayName=rNe;var sNe="DialogTrigger",cNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(sNe,r),o=V_e(t,a.triggerRef);return _(LHe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":CNe(a.open),...n,ref:o,onClick:Z_e(e.onClick,a.onOpenToggle)})}));cNe.displayName=sNe;var dNe="DialogPortal",[uNe,hNe]=nNe(dNe,{forceMount:void 0}),fNe=t=>{const{__scopeDialog:r,forceMount:n,children:a,container:o}=t,l=lNe(dNe,r);return _(uNe,{scope:r,forceMount:n,children:e.Children.map(a,(e=>_(eNe,{present:n||l.open,children:_(JHe,{asChild:!0,container:o,children:e})})))})};fNe.displayName=dNe;var pNe="DialogOverlay",vNe=e.forwardRef(((e,t)=>{const r=hNe(pNe,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=lNe(pNe,e.__scopeDialog);return o.modal?_(eNe,{present:n||o.open,children:_(mNe,{...a,ref:t})}):null}));vNe.displayName=pNe;var mNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(pNe,r);return _(YOe,{as:U_e,allowPinchZoom:!0,shards:[a.contentRef],children:_(LHe.div,{"data-state":CNe(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})})),yNe="DialogContent",gNe=e.forwardRef(((e,t)=>{const r=hNe(yNe,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=lNe(yNe,e.__scopeDialog);return _(eNe,{present:n||o.open,children:o.modal?_(bNe,{...a,ref:t}):_(kNe,{...a,ref:t})})}));gNe.displayName=yNe;var bNe=e.forwardRef(((t,r)=>{const n=lNe(yNe,t.__scopeDialog),a=e.useRef(null),o=V_e(r,n.contentRef,a);return e.useEffect((()=>{const e=a.current;if(e)return dOe(e)}),[]),_(wNe,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z_e(t.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Z_e(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()})),onFocusOutside:Z_e(t.onFocusOutside,(e=>e.preventDefault()))})})),kNe=e.forwardRef(((t,r)=>{const n=lNe(yNe,t.__scopeDialog),a=e.useRef(!1),o=e.useRef(!1);return _(wNe,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||n.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(o.current=!0));const r=e.target,l=n.triggerRef.current?.contains(r);l&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})})),wNe=e.forwardRef(((t,r)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=t,s=lNe(yNe,n),c=e.useRef(null),d=V_e(r,c);return vEe(),x(M,{children:[_($He,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:_(DHe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":CNe(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),x(M,{children:[_(ANe,{titleId:s.titleId}),_(INe,{contentRef:c,descriptionId:s.descriptionId})]})]})})),_Ne="DialogTitle",xNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(_Ne,r);return _(LHe.h2,{id:a.titleId,...n,ref:t})}));xNe.displayName=_Ne;var MNe="DialogDescription",jNe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(MNe,r);return _(LHe.p,{id:a.descriptionId,...n,ref:t})}));jNe.displayName=MNe;var ENe="DialogClose",ONe=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,a=lNe(ENe,r);return _(LHe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,(()=>a.onOpenChange(!1)))})}));function CNe(e){return e?"open":"closed"}ONe.displayName=ENe;var zNe="DialogTitleWarning",[PNe,RNe]=function(t,r){const n=e.createContext(r),a=t=>{const{children:r,...a}=t,o=e.useMemo((()=>a),Object.values(a));return _(n.Provider,{value:o,children:r})};return a.displayName=t+"Provider",[a,function(a){const o=e.useContext(n);if(o)return o;if(void 0!==r)return r;throw new Error(`\`${a}\` must be used within \`${t}\``)}]}(zNe,{contentName:yNe,titleName:_Ne,docsSlug:"dialog"}),ANe=({titleId:t})=>{const r=RNe(zNe),n=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return e.useEffect((()=>{if(t){document.getElementById(t)||console.error(n)}}),[n,t]),null},INe=({contentRef:t,descriptionId:r})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RNe("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=t.current?.getAttribute("aria-describedby");if(r&&e){document.getElementById(r)||console.warn(n)}}),[n,t,r]),null},LNe=iNe,SNe=cNe,VNe=fNe,HNe=vNe,NNe=gNe,ZNe=xNe,DNe=jNe,BNe=ONe;const qNe=LNe,TNe=SNe,FNe=VNe,WNe=BNe,$Ne=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(HNe,Object.assign({ref:t,className:Ax("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",r)},n))}));$Ne.displayName=HNe.displayName;const UNe=e.forwardRef(((e,t)=>{var{className:r,children:n,showCloseButton:a=!1,closeButtonClassName:o}=e,l=zx(e,["className","children","showCloseButton","closeButtonClassName"]);return x(FNe,{children:[_($Ne,{}),x(NNe,Object.assign({ref:t,className:Ax("fixed left-[50%] top-[50%] z-50 flex w-[calc(100%-32px)] max-w-[650px] translate-x-[-50%] translate-y-[-50%] flex-col gap-6 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 focus:outline-none focus-visible:outline-none 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-[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%]",r)},l,{children:[n,a&&x(BNe,{className:Ax("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",o),children:[_(yu,{className:"h-4 w-4"}),_("span",{className:"sr-only",children:"Close"})]})]}))]})}));UNe.displayName=NNe.displayName;const GNe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-col gap-1 text-left",t)},r))};GNe.displayName="DialogHeader";const YNe=e=>{var{className:t,scrollable:r=!1}=e,n=zx(e,["className","scrollable"]);return _("div",Object.assign({className:Ax("flex flex-1 min-h-0 flex-col",r&&"overflow-y-auto",t)},n))};YNe.displayName="DialogBody";const KNe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-row items-center justify-end gap-4",t)},r))};KNe.displayName="DialogFooter";const XNe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(ZNe,Object.assign({ref:t,className:Ax("typography-h6 tracking-tight text-text-contrast-max",r)},n))}));XNe.displayName=ZNe.displayName;const QNe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(DNe,Object.assign({ref:t,className:Ax("typography-body3 text-text-contrast-max",r)},n))}));QNe.displayName=DNe.displayName;var JNe="AlertDialog",[eZe]=H_e(JNe,[aNe]),tZe=aNe(),rZe=e=>{const{__scopeAlertDialog:t,...r}=e,n=tZe(t);return _(LNe,{...n,...r,modal:!0})};rZe.displayName=JNe;var nZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(SNe,{...a,...n,ref:t})}));nZe.displayName="AlertDialogTrigger";var aZe=e=>{const{__scopeAlertDialog:t,...r}=e,n=tZe(t);return _(VNe,{...n,...r})};aZe.displayName="AlertDialogPortal";var oZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(HNe,{...a,...n,ref:t})}));oZe.displayName="AlertDialogOverlay";var lZe="AlertDialogContent",[iZe,sZe]=eZe(lZe),cZe=e.forwardRef(((t,r)=>{const{__scopeAlertDialog:n,children:a,...o}=t,l=tZe(n),i=e.useRef(null),s=V_e(r,i),c=e.useRef(null);return _(PNe,{contentName:lZe,titleName:dZe,docsSlug:"alert-dialog",children:_(iZe,{scope:n,cancelRef:c,children:x(NNe,{role:"alertdialog",...l,...o,ref:s,onOpenAutoFocus:Z_e(o.onOpenAutoFocus,(e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[_(Y_e,{children:a}),_(yZe,{contentRef:i})]})})})}));cZe.displayName=lZe;var dZe="AlertDialogTitle",uZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(ZNe,{...a,...n,ref:t})}));uZe.displayName=dZe;var hZe="AlertDialogDescription",fZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(DNe,{...a,...n,ref:t})}));fZe.displayName=hZe;var pZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=tZe(r);return _(BNe,{...a,...n,ref:t})}));pZe.displayName="AlertDialogAction";var vZe="AlertDialogCancel",mZe=e.forwardRef(((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=sZe(vZe,r),o=tZe(r),l=V_e(t,a);return _(BNe,{...o,...n,ref:l})}));mZe.displayName=vZe;var yZe=({contentRef:t})=>{const r=`\`${lZe}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${lZe}\` by passing a \`${hZe}\` 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 \`${lZe}\`. 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 e.useEffect((()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(r)}),[r,t]),null},gZe=oZe,bZe=cZe,kZe=pZe,wZe=mZe,_Ze=uZe,xZe=fZe;const MZe=rZe,jZe=nZe,EZe=aZe,OZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(gZe,Object.assign({className:Ax("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",r)},n,{ref:t}))}));OZe.displayName=gZe.displayName;const CZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return x(EZe,{children:[_(OZe,{}),_(bZe,Object.assign({ref:t,className:Ax("fixed left-[50%] top-[50%] z-50 grid w-[calc(100%-32px)] max-w-[460px] translate-x-[-50%] translate-y-[-50%] gap-6 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 focus:outline-none focus-visible:outline-none 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-[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%]",r)},n))]})}));CZe.displayName=bZe.displayName;const zZe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-col items-center gap-2 text-center",t)},r))};zZe.displayName="AlertDialogHeader";const PZe=e=>{var{className:t}=e,r=zx(e,["className"]);return _("div",Object.assign({className:Ax("flex flex-row items-center justify-center gap-4",t)},r))};PZe.displayName="AlertDialogFooter";const RZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(_Ze,Object.assign({ref:t,className:Ax("typography-subtitle3 text-text-contrast-max",r)},n))}));RZe.displayName=_Ze.displayName;const AZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(xZe,Object.assign({ref:t,className:Ax("typography-body3 text-text-contrast-max",r)},n))}));AZe.displayName=xZe.displayName;const IZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(kZe,Object.assign({ref:t,className:Ax(Px({fullwidth:!1}),"min-w-[100px] justify-center",r)},n))}));IZe.displayName=kZe.displayName;const LZe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(wZe,Object.assign({ref:t,className:Ax(Px({fullwidth:!1,variant:"outline"}),"min-w-[100px] justify-center whitespace-pre-line",r)},n))}));LZe.displayName=wZe.displayName;const SZe=r(((e,t)=>{const{label:r="Search",required:n=!1}=e,a=zx(e,["label","required"]);return _(L_e,Object.assign({label:r,required:n},a,{ref:t,keepCloseIconOnValue:!0,hasClearIcon:!0,hasSearchIcon:!0,endIcon:null,filterMode:!0,isFloatingLabel:!1,segmentedInput:!1}))})),VZe=j(["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}}),HZe=r(((e,t)=>{var{id:r,options:o=[],values:c=[],label:d,size:u="md",rounded:h="normal",variant:p="outline",helperText:v,errorMessage:m,fullwidth:y=!0,disabled:g=!1,error:b=!1,filterMode:k=!1,required:w=!0,onChangeText:M,onSelect:j,renderOptions:E,optionContainerClassName:O}=e,C=zx(e,["id","options","values","label","size","rounded","variant","helperText","errorMessage","fullwidth","disabled","error","filterMode","required","onChangeText","onSelect","renderOptions","optionContainerClassName"]);const z=r||`${d}-select`,[P,R]=i(!1),[A,I]=i(c),[L,S]=i(""),V=n(""),H=n(null);s((()=>{var e;I(null!=c?c:[]),S(null!==(e=null==c?void 0:c.map((e=>e.label)).join(", "))&&void 0!==e?e:"")}),[c]),s((()=>{const e=e=>{H.current&&!H.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const N=a((e=>{null==M||M(e),S(e.target.value),e.target.value||q(e)}),[M]),Z=a((e=>{const t=A.some((t=>t.value===e.value));let r=[...A];t?r=r.filter((t=>t.value!==e.value)):r.push(e),I(r),S(r.map((e=>e.label)).join(", ")),null==j||j(r)}),[A,j]),D=l((()=>{const e=null==L?void 0:L.split(",").pop(),t=null!=e?e:"";return o.filter((e=>{var r;return!k||(null===(r=e.label)||void 0===r?void 0:r.toLowerCase().includes(null==t?void 0:t.toLowerCase()))}))}),[o,k,L]),B=a((e=>{var t;R(!0),null===(t=null==C?void 0:C.onFocus)||void 0===t||t.call(C,e)}),[null==C?void 0:C.onFocus]),q=a((e=>{const t=D.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"!==V.current&&(I(t),S(t.map((e=>e.label)).join(", ")),null==j||j(t))}),[D,L]),T=a((e=>{var t;V.current=e.code,null===(t=null==C?void 0:C.onKeyDown)||void 0===t||t.call(C,e)}),[null==C?void 0:C.onKeyDown]),F=VZe({size:u,rounded:h,error:b,active:!!c.length,disabled:g}),W="lg"===u?"size-8":"md"===u?"size-[22px]":"size-[18px]";return x("div",{ref:H,className:"relative "+(y?"w-full":""),children:[_(Yme,Object.assign({hasClearIcon:!1,endIcon:_(nye,{type:"heroicons",name:"adjustments-horizontal",variant:"outline",color:"inherit",stroke:"inherit",fill:"transparent",className:W}),classes:{endIconWrapper:F}},C,{ref:t,readOnly:!k,value:L,onChange:N,label:d,placeholder:" ",type:"text",rounded:h,variant:p,helperText:v,errorMessage:m,fullwidth:y,error:b,required:w,id:z,disabled:g,size:u,className:A_e({size:u}),onFocus:B,onKeyDown:T})),P&&(E?E({optionsFiltered:D,selectedOptions:A,onClick:Z}):x("ul",{className:Ax("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",O),children:[D.map((e=>e.renderLabel?_(f,{children:e.renderLabel({value:e.value,label:e.label,handleOnClick:()=>Z(e),className:"p-4 typography-subtitle4 hover:bg-gray-100 cursor-pointer flex items-center gap-3 "+(A.some((t=>t.value===e.value))?"bg-gray-200":"")})},e.value):x("li",{onMouseDown:()=>Z(e),className:"p-4 text-text-g-contrast-high typography-subtitle4 hover:bg-primary-hover-bg cursor-pointer flex items-center gap-3 "+(A.some((t=>t.value===e.value))?"bg-modal-highlight":""),children:[_(uxe,{checked:A.some((t=>t.value===e.value))}),e.label]},e.value))),0===D.length&&_("li",{className:"px-4 py-14 text-center text-input-text",children:"Not found"})]}))]})}));function NZe(e,[t,r]){return Math.min(r,Math.max(t,e))}var ZZe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function DZe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var BZe=["PageUp","PageDown"],qZe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],TZe={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},FZe="Slider",[WZe,$Ze,UZe]=function(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},DZe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}(FZe),[GZe]=H_e(FZe,[UZe]),[YZe,KZe]=GZe(FZe),XZe=e.forwardRef(((t,r)=>{const{name:n,min:a=0,max:o=100,step:l=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:d=[a],value:u,onValueChange:h=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:v,...m}=t,y=e.useRef(new Set),g=e.useRef(0),b="horizontal"===i?eDe:tDe,[k=[],w]=B_e({prop:u,defaultProp:d,onChange:e=>{const t=[...y.current];t[g.current]?.focus(),h(e)}}),x=e.useRef(k);function M(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(l),i=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/l)*l+a,n),s=NZe(i,[a,o]);w(((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,c*l)){g.current=n.indexOf(s);const t=String(n)!==String(e);return t&&r&&f(n),t?n:e}return e}))}return _(YZe,{scope:t.__scopeSlider,name:n,disabled:s,min:a,max:o,valueIndexToChangeRef:g,thumbs:y.current,values:k,orientation:i,form:v,children:_(WZe.Provider,{scope:t.__scopeSlider,children:_(WZe.Slot,{scope:t.__scopeSlider,children:_(b,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:r,onPointerDown:Z_e(m.onPointerDown,(()=>{s||(x.current=k)})),min:a,max:o,inverted:p,onSlideStart:s?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)}(k,e);M(e,t)},onSlideMove:s?void 0:function(e){M(e,g.current)},onSlideEnd:s?void 0:function(){const e=x.current[g.current];k[g.current]!==e&&f(k)},onHomeKeyDown:()=>!s&&M(a,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,k.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const r=BZe.includes(e.key)||e.shiftKey&&qZe.includes(e.key)?10:1,n=g.current;M(k[n]+l*r*t,n,{commit:!0})}}})})})})}));XZe.displayName=FZe;var[QZe,JZe]=GZe(FZe,{startEdge:"left",endEdge:"right",size:"width",direction:1}),eDe=e.forwardRef(((t,r)=>{const{min:n,max:a,dir:o,inverted:l,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:d,...u}=t,[h,f]=e.useState(null),p=V_e(r,(e=>f(e))),v=e.useRef(),m=_Ie(o),y="ltr"===m,g=y&&!l||!y&&l;function b(e){const t=v.current||h.getBoundingClientRect(),r=hDe([0,t.width],g?[n,a]:[a,n]);return v.current=t,r(e-t.left)}return _(QZe,{scope:t.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:_(rDe,{dir:m,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);i?.(t)},onSlideMove:e=>{const t=b(e.clientX);s?.(t)},onSlideEnd:()=>{v.current=void 0,c?.()},onStepKeyDown:e=>{const t=TZe[g?"from-left":"from-right"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),tDe=e.forwardRef(((t,r)=>{const{min:n,max:a,inverted:o,onSlideStart:l,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...d}=t,u=e.useRef(null),h=V_e(r,u),f=e.useRef(),p=!o;function v(e){const t=f.current||u.current.getBoundingClientRect(),r=hDe([0,t.height],p?[a,n]:[n,a]);return f.current=t,r(e-t.top)}return _(QZe,{scope:t.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:_(rDe,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=v(e.clientY);l?.(t)},onSlideMove:e=>{const t=v(e.clientY);i?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{const t=TZe[p?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),rDe=e.forwardRef(((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:l,onEndKeyDown:i,onStepKeyDown:s,...c}=e,d=KZe(FZe,r);return _(ZZe.span,{...c,ref:t,onKeyDown:Z_e(e.onKeyDown,(e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(i(e),e.preventDefault()):BZe.concat(qZe).includes(e.key)&&(s(e),e.preventDefault())})),onPointerDown:Z_e(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)})),onPointerMove:Z_e(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)})),onPointerUp:Z_e(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))}))})})),nDe="SliderTrack",aDe=e.forwardRef(((e,t)=>{const{__scopeSlider:r,...n}=e,a=KZe(nDe,r);return _(ZZe.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:t})}));aDe.displayName=nDe;var oDe="SliderRange",lDe=e.forwardRef(((t,r)=>{const{__scopeSlider:n,...a}=t,o=KZe(oDe,n),l=JZe(oDe,n),i=V_e(r,e.useRef(null)),s=o.values.length,c=o.values.map((e=>uDe(e,o.min,o.max))),d=s>1?Math.min(...c):0,u=100-Math.max(...c);return _(ZZe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...a,ref:i,style:{...t.style,[l.startEdge]:d+"%",[l.endEdge]:u+"%"}})}));lDe.displayName=oDe;var iDe="SliderThumb",sDe=e.forwardRef(((t,r)=>{const n=$Ze(t.__scopeSlider),[a,o]=e.useState(null),l=V_e(r,(e=>o(e))),i=e.useMemo((()=>a?n().findIndex((e=>e.ref.current===a)):-1),[n,a]);return _(cDe,{...t,ref:l,index:i})})),cDe=e.forwardRef(((t,r)=>{const{__scopeSlider:n,index:a,name:o,...l}=t,i=KZe(iDe,n),s=JZe(iDe,n),[c,d]=e.useState(null),u=V_e(r,(e=>d(e))),h=!c||(i.form||!!c.closest("form")),f=F_e(c),p=i.values[a],v=void 0===p?0:uDe(p,i.min,i.max),m=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(a,i.values.length),y=f?.[s.size],g=y?function(e,t,r){const n=e/2,a=hDe([0,50],[0,n]);return(n-a(t)*r)*r}(y,v,s.direction):0;return e.useEffect((()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}}),[c,i.thumbs]),x("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${v}% + ${g}px)`},children:[_(WZe.ItemSlot,{scope:t.__scopeSlider,children:_(ZZe.span,{role:"slider","aria-label":t["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":p,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...l,ref:u,style:void 0===p?{display:"none"}:t.style,onFocus:Z_e(t.onFocus,(()=>{i.valueIndexToChangeRef.current=a}))})}),h&&_(dDe,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:p},a)]})}));sDe.displayName=iDe;var dDe=t=>{const{value:r,...n}=t,a=e.useRef(null),o=q_e(r);return e.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]),_("input",{style:{display:"none"},...n,ref:a,defaultValue:r})};function uDe(e,t,r){return NZe(100/(r-t)*(e-t),[0,100])}function hDe(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 fDe=XZe,pDe=aDe,vDe=lDe,mDe=sDe;const yDe=e.forwardRef(((e,t)=>{var{className:r,trackClassName:n,rangeClassName:a,thumbClassName:o,thumbStyle:l,trackStyle:i,rangeStyle:s}=e,c=zx(e,["className","trackClassName","rangeClassName","thumbClassName","thumbStyle","trackStyle","rangeStyle"]);return x(fDe,Object.assign({ref:t,className:Ax("relative flex w-full touch-none select-none items-center",r)},c,{children:[_(pDe,{className:Ax("relative h-2 w-full grow overflow-hidden rounded-full bg-grey-50",n),style:i,children:_(vDe,{className:Ax("absolute h-full bg-primary",a),style:s})}),_(mDe,{className:Ax("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",o),style:l})]}))}));yDe.displayName=fDe.displayName;var gDe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});var bDe,kDe="dismissableLayer.update",wDe="dismissableLayer.pointerDownOutside",_De="dismissableLayer.focusOutside",xDe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MDe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(xDe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){EDe(wDe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){EDe(_De,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(bDe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),jDe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=bDe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),jDe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(kDe,e),()=>document.removeEventListener(kDe,e)}),[]),_(gDe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));MDe.displayName="DismissableLayer";function jDe(){const e=new CustomEvent(kDe);document.dispatchEvent(e)}function EDe(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&&O.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}e.forwardRef(((t,r)=>{const n=e.useContext(xDe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(gDe.div,{...t,ref:o})})).displayName="DismissableLayerBranch";var ODe=e.forwardRef(((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return _(gDe.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_("polygon",{points:"0,0 30,0 15,10"})})}));ODe.displayName="Arrow";var CDe=ODe;function zDe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var PDe="Popper",[RDe,ADe]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},zDe(a,...r)]}(PDe),[IDe,LDe]=RDe(PDe),SDe=t=>{const{__scopePopper:r,children:n}=t,[a,o]=e.useState(null);return _(IDe,{scope:r,anchor:a,onAnchorChange:o,children:n})};SDe.displayName=PDe;var VDe="PopperAnchor",HDe=e.forwardRef(((t,r)=>{const{__scopePopper:n,virtualRef:a,...o}=t,l=LDe(VDe,n),i=e.useRef(null),s=V_e(r,i);return e.useEffect((()=>{l.onAnchorChange(a?.current||i.current)})),a?null:_(gDe.div,{...o,ref:s})}));HDe.displayName=VDe;var NDe="PopperContent",[ZDe,DDe]=RDe(NDe),BDe=e.forwardRef(((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...m}=t,y=LDe(NDe,n),[g,b]=e.useState(null),k=V_e(r,(e=>b(e))),[w,x]=e.useState(null),M=F_e(w),j=M?.width??0,E=M?.height??0,O=a+("center"!==l?"-"+l:""),C="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(d)?d:[d],P=z.length>0,R={padding:C,boundary:z.filter(WDe),altBoundary:P},{refs:A,floatingStyles:I,placement:L,isPositioned:S,middlewareData:V}=iwe({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>$ke(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[cwe({mainAxis:o+E,alignmentAxis:i}),c&&dwe({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?uwe():void 0,...R}),c&&hwe({...R}),fwe({...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`)}}),w&&vwe({element:w,padding:s}),$De({arrowWidth:j,arrowHeight:E}),f&&pwe({strategy:"referenceHidden",...R})]}),[H,N]=UDe(L),Z=D_e(v);T_e((()=>{S&&Z?.()}),[S,Z]);const D=V.arrow?.x,B=V.arrow?.y,q=0!==V.arrow?.centerOffset,[T,F]=e.useState();return T_e((()=>{g&&F(window.getComputedStyle(g).zIndex)}),[g]),_("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:S?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:T,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_(ZDe,{scope:n,placedSide:H,onArrowChange:x,arrowX:D,arrowY:B,shouldHideArrow:q,children:_(gDe.div,{"data-side":H,"data-align":N,...m,ref:k,style:{...m.style,animation:S?void 0:"none"}})})})}));BDe.displayName=NDe;var qDe="PopperArrow",TDe={top:"bottom",right:"left",bottom:"top",left:"right"},FDe=e.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,a=DDe(qDe,r),o=TDe[a.placedSide];return _("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_(CDe,{...n,ref:t,style:{...n.style,display:"block"}})})}));function WDe(e){return null!==e}FDe.displayName=qDe;var $De=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]=UDe(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+l/2,h=(a.arrow?.y??0)+i/2;let f="",p="";return"bottom"===s?(f=o?d:`${u}px`,p=-i+"px"):"top"===s?(f=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===s?(f=-i+"px",p=o?d:`${h}px`):"left"===s&&(f=`${n.floating.width+i}px`,p=o?d:`${h}px`),{data:{x:f,y:p}}}});function UDe(e){const[t,r="center"]=e.split("-");return[t,r]}var GDe=SDe,YDe=HDe,KDe=BDe,XDe=FDe;var QDe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=JDe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=JDe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=JDe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=JDe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function JDe(e){return e?.animationName||"none"}QDe.displayName="Presence";var eBe=e.forwardRef(((e,t)=>_(gDe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));eBe.displayName="VisuallyHidden";var tBe=eBe,[rBe]=H_e("Tooltip",[ADe]),nBe=ADe(),aBe="TooltipProvider",oBe=700,lBe="tooltip.open",[iBe,sBe]=rBe(aBe),cBe=t=>{const{__scopeTooltip:r,delayDuration:n=oBe,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:l}=t,[i,s]=e.useState(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),_(iBe,{scope:r,isOpenDelayed:i,delayDuration:n,onOpen:e.useCallback((()=>{window.clearTimeout(d.current),s(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),a)}),[a]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback((e=>{c.current=e}),[]),disableHoverableContent:o,children:l})};cBe.displayName=aBe;var dBe="Tooltip",[uBe,hBe]=rBe(dBe),fBe=t=>{const{__scopeTooltip:r,children:n,open:a,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=t,c=sBe(dBe,t.__scopeTooltip),d=nBe(r),[u,h]=e.useState(null),f=zEe(),p=e.useRef(0),v=i??c.disableHoverableContent,m=s??c.delayDuration,y=e.useRef(!1),[g=!1,b]=B_e({prop:a,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(lBe))):c.onClose(),l?.(e)}}),k=e.useMemo((()=>g?y.current?"delayed-open":"instant-open":"closed"),[g]),w=e.useCallback((()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,b(!0)}),[b]),x=e.useCallback((()=>{window.clearTimeout(p.current),p.current=0,b(!1)}),[b]),M=e.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{y.current=!0,b(!0),p.current=0}),m)}),[m,b]);return e.useEffect((()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)}),[]),_(GDe,{...d,children:_(uBe,{scope:r,contentId:f,open:g,stateAttribute:k,trigger:u,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{c.isOpenDelayed?M():w()}),[c.isOpenDelayed,M,w]),onTriggerLeave:e.useCallback((()=>{v?x():(window.clearTimeout(p.current),p.current=0)}),[x,v]),onOpen:w,onClose:x,disableHoverableContent:v,children:n})})};fBe.displayName=dBe;var pBe="TooltipTrigger",vBe=e.forwardRef(((t,r)=>{const{__scopeTooltip:n,...a}=t,o=hBe(pBe,n),l=sBe(pBe,n),i=nBe(n),s=V_e(r,e.useRef(null),o.onTriggerChange),c=e.useRef(!1),d=e.useRef(!1),u=e.useCallback((()=>c.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),_(YDe,{asChild:!0,...i,children:_(gDe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:s,onPointerMove:Z_e(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:Z_e(t.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:Z_e(t.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:Z_e(t.onFocus,(()=>{c.current||o.onOpen()})),onBlur:Z_e(t.onBlur,o.onClose),onClick:Z_e(t.onClick,o.onClose)})})}));vBe.displayName=pBe;var[mBe,yBe]=rBe("TooltipPortal",{forceMount:void 0}),gBe="TooltipContent",bBe=e.forwardRef(((e,t)=>{const r=yBe(gBe,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,l=hBe(gBe,e.__scopeTooltip);return _(QDe,{present:n||l.open,children:l.disableHoverableContent?_(xBe,{side:a,...o,ref:t}):_(kBe,{side:a,...o,ref:t})})})),kBe=e.forwardRef(((t,r)=>{const n=hBe(gBe,t.__scopeTooltip),a=sBe(gBe,t.__scopeTooltip),o=e.useRef(null),l=V_e(r,o),[i,s]=e.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:h}=a,f=e.useCallback((()=>{s(null),h(!1)}),[h]),p=e.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())]);s(o),h(!0)}),[h]);return e.useEffect((()=>()=>f()),[f]),e.useEffect((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,f]),e.useEffect((()=>{if(i){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||u?.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,i);n?f():a&&(f(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,i,d,f]),_(xBe,{...t,ref:l})})),[wBe,_Be]=rBe(dBe,{isInside:!1}),xBe=e.forwardRef(((t,r)=>{const{__scopeTooltip:n,children:a,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=t,c=hBe(gBe,n),d=nBe(n),{onClose:u}=c;return e.useEffect((()=>(document.addEventListener(lBe,u),()=>document.removeEventListener(lBe,u))),[u]),e.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),_(MDe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:x(KDe,{"data-state":c.stateAttribute,...d,...s,ref:r,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[_(Y_e,{children:a}),_(wBe,{scope:n,isInside:!0,children:_(tBe,{id:c.contentId,role:"tooltip",children:o||a})})]})})}));bBe.displayName=gBe;var MBe="TooltipArrow",jBe=e.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,a=nBe(r);return _Be(MBe,r).isInside?null:_(XDe,{...a,...n,ref:t})}));jBe.displayName=MBe;var EBe=bBe;const OBe=cBe,CBe=fBe,zBe=vBe,PBe=jBe,RBe=e.forwardRef(((e,t)=>{var{className:r,sideOffset:n=4}=e,a=zx(e,["className","sideOffset"]);return _(EBe,Object.assign({ref:t,sideOffset:n,className:Ax("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",r)},a))}));function ABe(e){var{children:t,content:r,open:n,defaultOpen:a,onOpenChange:o}=e,l=zx(e,["children","content","open","defaultOpen","onOpenChange"]);return _(OBe,{children:x(CBe,{open:n,defaultOpen:a,onOpenChange:o,children:[_(zBe,{asChild:!0,children:t}),x(RBe,Object.assign({side:"top",align:"center"},l,{children:[r,_(PBe,{width:11,height:5})]}))]})})}function IBe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}RBe.displayName=EBe.displayName;var LBe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function SBe(e,t){e&&O.flushSync((()=>e.dispatchEvent(t)))}var VBe,HBe="dismissableLayer.update",NBe="dismissableLayer.pointerDownOutside",ZBe="dismissableLayer.focusOutside",DBe=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),BBe=e.forwardRef(((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...c}=t,d=e.useContext(DBe),[u,h]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=e.useState({}),v=V_e(r,(e=>h(e))),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=u?m.indexOf(u):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,x=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){FBe(NBe,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout((()=>{r.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}}),[r,n]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,r=[...d.branches].some((e=>e.contains(t)));w&&!r&&(o?.(e),i?.(e),e.defaultPrevented||s?.())}),f),M=function(t,r=globalThis?.document){const n=D_e(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){FBe(ZBe,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)}),[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(l?.(e),i?.(e),e.defaultPrevented||s?.())}),f);return oEe((e=>{b===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),e.useEffect((()=>{if(u)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(VBe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),TBe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=VBe)}}),[u,f,n,d]),e.useEffect((()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),TBe())}),[u,d]),e.useEffect((()=>{const e=()=>p({});return document.addEventListener(HBe,e),()=>document.removeEventListener(HBe,e)}),[]),_(LBe.div,{...c,ref:v,style:{pointerEvents:k?w?"auto":"none":void 0,...t.style},onFocusCapture:Z_e(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Z_e(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Z_e(t.onPointerDownCapture,x.onPointerDownCapture)})}));BBe.displayName="DismissableLayer";var qBe=e.forwardRef(((t,r)=>{const n=e.useContext(DBe),a=e.useRef(null),o=V_e(r,a);return e.useEffect((()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),_(LBe.div,{...t,ref:o})}));function TBe(){const e=new CustomEvent(HBe);document.dispatchEvent(e)}function FBe(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?SBe(a,o):a.dispatchEvent(o)}qBe.displayName="DismissableLayerBranch";var WBe=BBe,$Be=qBe,UBe=e.forwardRef(((t,r)=>{const{container:n,...a}=t,[o,l]=e.useState(!1);T_e((()=>l(!0)),[]);const i=n||o&&globalThis?.document?.body;return i?C.createPortal(_(LBe.div,{...a,ref:r}),i):null}));UBe.displayName="Portal";var GBe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=YBe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=YBe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=YBe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=YBe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function YBe(e){return e?.animationName||"none"}GBe.displayName="Presence";var KBe=e.forwardRef(((e,t)=>_(LBe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));KBe.displayName="VisuallyHidden";var XBe="ToastProvider",[QBe,JBe,eqe]=function(r){const n=r+"CollectionProvider",[a,o]=function(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},IBe(a,...r)]}(n),[l,i]=a(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:r,children:n}=e,a=t.useRef(null),o=t.useRef(new Map).current;return _(l,{scope:r,itemMap:o,collectionRef:a,children:n})};s.displayName=n;const c=r+"CollectionSlot",d=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,i(c,r).collectionRef);return _(U_e,{ref:a,children:n})}));d.displayName=c;const u=r+"CollectionItemSlot",h="data-radix-collection-item",f=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,l=t.useRef(null),s=V_e(r,l),c=i(u,n);return t.useEffect((()=>(c.itemMap.set(l,{ref:l,...o}),()=>{c.itemMap.delete(l)}))),_(U_e,{[h]:"",ref:s,children:a})}));return f.displayName=u,[{Provider:s,Slot:d,ItemSlot:f},function(e){const n=i(r+"CollectionConsumer",e),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},o]}("Toast"),[tqe]=H_e("Toast",[eqe]),[rqe,nqe]=tqe(XBe),aqe=t=>{const{__scopeToast:r,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:i}=t,[s,c]=e.useState(null),[d,u]=e.useState(0),h=e.useRef(!1),f=e.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${XBe}\`. Expected non-empty \`string\`.`),_(QBe.Provider,{scope:r,children:_(rqe,{scope:r,label:n,duration:a,swipeDirection:o,swipeThreshold:l,toastCount:d,viewport:s,onViewportChange:c,onToastAdd:e.useCallback((()=>u((e=>e+1))),[]),onToastRemove:e.useCallback((()=>u((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:i})})};aqe.displayName=XBe;var oqe="ToastViewport",lqe=["F8"],iqe="toast.viewportPause",sqe="toast.viewportResume",cqe=e.forwardRef(((t,r)=>{const{__scopeToast:n,hotkey:a=lqe,label:o="Notifications ({hotkey})",...l}=t,i=nqe(oqe,n),s=JBe(n),c=e.useRef(null),d=e.useRef(null),u=e.useRef(null),h=e.useRef(null),f=V_e(r,h,i.onViewportChange),p=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;e.useEffect((()=>{const e=e=>{const t=0!==a.length&&a.every((t=>e[t]||e.code===t));t&&h.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[a]),e.useEffect((()=>{const e=c.current,t=h.current;if(v&&e&&t){const r=()=>{if(!i.isClosePausedRef.current){const e=new CustomEvent(iqe);t.dispatchEvent(e),i.isClosePausedRef.current=!0}},n=()=>{if(i.isClosePausedRef.current){const e=new CustomEvent(sqe);t.dispatchEvent(e),i.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)}}}),[v,i.isClosePausedRef]);const m=e.useCallback((({tabbingDirection:e})=>{const t=s().map((t=>{const r=t.ref.current,n=[r,...Cqe(r)];return"forwards"===e?n:n.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[s]);return e.useEffect((()=>{const e=h.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 d.current?.focus();const a=m({tabbingDirection:n?"backwards":"forwards"}),o=a.findIndex((e=>e===r));zqe(a.slice(o+1))?t.preventDefault():n?d.current?.focus():u.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[s,m]),x($Be,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&_(uqe,{ref:d,onFocusFromOutsideViewport:()=>{zqe(m({tabbingDirection:"forwards"}))}}),_(QBe.Slot,{scope:n,children:_(LBe.ol,{tabIndex:-1,...l,ref:f})}),v&&_(uqe,{ref:u,onFocusFromOutsideViewport:()=>{zqe(m({tabbingDirection:"backwards"}))}})]})}));cqe.displayName=oqe;var dqe="ToastFocusProxy",uqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,o=nqe(dqe,r);return _(KBe,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!o.viewport?.contains(t)&&n()}})}));uqe.displayName=dqe;var hqe="Toast",fqe=e.forwardRef(((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:o,...l}=e,[i=!0,s]=B_e({prop:n,defaultProp:a,onChange:o});return _(GBe,{present:r||i,children:_(mqe,{open:i,...l,ref:t,onClose:()=>s(!1),onPause:D_e(e.onPause),onResume:D_e(e.onResume),onSwipeStart:Z_e(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Z_e(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:Z_e(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:Z_e(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`),s(!1)}))})})}));fqe.displayName=hqe;var[pqe,vqe]=tqe(hqe,{onClose(){}}),mqe=e.forwardRef(((t,r)=>{const{__scopeToast:n,type:a="foreground",duration:o,open:l,onClose:i,onEscapeKeyDown:s,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...v}=t,m=nqe(hqe,n),[y,g]=e.useState(null),b=V_e(r,(e=>g(e))),k=e.useRef(null),w=e.useRef(null),j=o||m.duration,E=e.useRef(0),C=e.useRef(j),z=e.useRef(0),{onToastAdd:P,onToastRemove:R}=m,A=D_e((()=>{const e=y?.contains(document.activeElement);e&&m.viewport?.focus(),i()})),I=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(z.current),E.current=(new Date).getTime(),z.current=window.setTimeout(A,e))}),[A]);e.useEffect((()=>{const e=m.viewport;if(e){const t=()=>{I(C.current),d?.()},r=()=>{const e=(new Date).getTime()-E.current;C.current=C.current-e,window.clearTimeout(z.current),c?.()};return e.addEventListener(iqe,r),e.addEventListener(sqe,t),()=>{e.removeEventListener(iqe,r),e.removeEventListener(sqe,t)}}}),[m.viewport,j,c,d,I]),e.useEffect((()=>{l&&!m.isClosePausedRef.current&&I(j)}),[l,j,m.isClosePausedRef,I]),e.useEffect((()=>(P(),()=>R())),[P,R]);const L=e.useMemo((()=>y?jqe(y):null),[y]);return m.viewport?x(M,{children:[L&&_(yqe,{__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite","aria-atomic":!0,children:L}),_(pqe,{scope:n,onClose:A,children:O.createPortal(_(QBe.ItemSlot,{scope:n,children:_(WBe,{asChild:!0,onEscapeKeyDown:Z_e(s,(()=>{m.isFocusedToastEscapeKeyDownRef.current||A(),m.isFocusedToastEscapeKeyDownRef.current=!1})),children:_(LBe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Z_e(t.onKeyDown,(e=>{"Escape"===e.key&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,A()))})),onPointerDown:Z_e(t.onPointerDown,(e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:Z_e(t.onPointerMove,(e=>{if(!k.current)return;const t=e.clientX-k.current.x,r=e.clientY-k.current.y,n=Boolean(w.current),a=["left","right"].includes(m.swipeDirection),o=["left","up"].includes(m.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?(w.current=c,Eqe("toast.swipeMove",h,d,{discrete:!1})):Oqe(c,m.swipeDirection,s)?(w.current=c,Eqe("toast.swipeStart",u,d,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(k.current=null)})),onPointerUp:Z_e(t.onPointerUp,(e=>{const t=w.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),w.current=null,k.current=null,t){const r=e.currentTarget,n={originalEvent:e,delta:t};Oqe(t,m.swipeDirection,m.swipeThreshold)?Eqe("toast.swipeEnd",p,n,{discrete:!0}):Eqe("toast.swipeCancel",f,n,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),m.viewport)})]}):null})),yqe=t=>{const{__scopeToast:r,children:n,...a}=t,o=nqe(hqe,r),[l,i]=e.useState(!1),[s,c]=e.useState(!1);return function(e=()=>{}){const t=D_e(e);T_e((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>i(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),s?null:_(UBe,{asChild:!0,children:_(KBe,{...a,children:l&&x(M,{children:[o.label," ",n]})})})},gqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return _(LBe.div,{...n,ref:t})}));gqe.displayName="ToastTitle";var bqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e;return _(LBe.div,{...n,ref:t})}));bqe.displayName="ToastDescription";var kqe="ToastAction",wqe=e.forwardRef(((e,t)=>{const{altText:r,...n}=e;return r.trim()?_(Mqe,{altText:r,asChild:!0,children:_(xqe,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${kqe}\`. Expected non-empty \`string\`.`),null)}));wqe.displayName=kqe;var _qe="ToastClose",xqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,...n}=e,a=vqe(_qe,r);return _(Mqe,{asChild:!0,children:_(LBe.button,{type:"button",...n,ref:t,onClick:Z_e(e.onClick,a.onClose)})})}));xqe.displayName=_qe;var Mqe=e.forwardRef(((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return _(LBe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})}));function jqe(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(...jqe(e))}})),t}function Eqe(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?SBe(a,o):a.dispatchEvent(o)}var Oqe=(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 Cqe(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 zqe(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var Pqe=aqe,Rqe=cqe,Aqe=fqe,Iqe=gqe,Lqe=bqe,Sqe=wqe,Vqe=xqe;const Hqe=j(["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}}),Nqe=j(["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"}}),Zqe=j(["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"}}),Dqe=j(["flex flex-1"],{variants:{contentMode:{horizontal:"items-center flex-row gap-2",vertical:"items-start flex-col gap-0"}},defaultVariants:{contentMode:"vertical"}}),Bqe=Pqe,qqe=e.forwardRef(((e,t)=>{var{className:r,position:n}=e,a=zx(e,["className","position"]);return _(Rqe,Object.assign({ref:t,className:Ax(Nqe({position:n}),r)},a))}));qqe.displayName=Rqe.displayName;const Tqe=e.forwardRef(((e,t)=>{var{className:r,variant:n,showBorder:a}=e,o=zx(e,["className","variant","showBorder"]);return _(Aqe,Object.assign({ref:t,className:Ax(Hqe({variant:n,showBorder:a}),r)},o))}));Tqe.displayName=Aqe.displayName;const Fqe=e.forwardRef(((e,t)=>{var{className:r,children:n}=e,a=zx(e,["className","children"]);return _(Sqe,Object.assign({ref:t,className:Ax("",r)},a,{asChild:!0,children:_(Lx,{variant:"outline",color:"secondary",size:"sm",children:n})}))}));Fqe.displayName=Sqe.displayName;const Wqe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Vqe,Object.assign({ref:t,className:Ax("self-center text-text-g-contrast-high",r),"toast-close":""},n,{asChild:!0,children:_(mye,{variant:"icon",size:"sm",children:_(nye,{type:"heroicons",name:"xmark"})})}))}));Wqe.displayName=Vqe.displayName;const $qe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Iqe,Object.assign({ref:t,className:Ax("typography-subtitle6",r)},n))}));$qe.displayName=Iqe.displayName;const Uqe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(Lqe,Object.assign({ref:t,className:Ax("typography-subtitle4 text-text-g-contrast-high",r)},n))}));Uqe.displayName=Lqe.displayName;let Gqe=0;const Yqe=new Map,Kqe=e=>{if(Yqe.has(e))return;const t=setTimeout((()=>{Yqe.delete(e),eTe({type:"REMOVE_TOAST",toastId:e})}),3e3);Yqe.set(e,t)},Xqe=(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?Kqe(r):e.toasts.forEach((e=>{Kqe(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})}},Qqe=[];let Jqe={toasts:[],position:void 0};function eTe(e){Jqe=Xqe(Jqe,e),Qqe.forEach((e=>{e(Jqe)}))}function tTe(e){var t=zx(e,[]);const r=(Gqe=(Gqe+1)%Number.MAX_SAFE_INTEGER,Gqe.toString()),n=()=>eTe({type:"DISMISS_TOAST",toastId:r});return eTe({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=>eTe({type:"UPDATE_TOAST",toast:Object.assign(Object.assign({},e),{id:r})})}}function rTe(t){const[r,n]=e.useState(Jqe);return e.useEffect((()=>(Qqe.push(n),()=>{const e=Qqe.indexOf(n);e>-1&&Qqe.splice(e,1)})),[r]),e.useEffect((()=>{eTe({type:"ADD_POSITION",position:null==t?void 0:t.position})}),[null==t?void 0:t.position]),Object.assign(Object.assign({},r),{toast:tTe,dismiss:e=>eTe({type:"DISMISS_TOAST",toastId:e})})}function nTe(e){var{viewportClassName:t,titleClassName:r,descriptionClassName:n,contentClassName:a,iconWrapperClassName:o,actionWrapperClassName:l}=e,i=zx(e,["viewportClassName","titleClassName","descriptionClassName","contentClassName","iconWrapperClassName","actionWrapperClassName"]);const{toasts:s,position:c}=rTe();return x(Bqe,Object.assign({},i,{children:[s.map((function(e){var{id:t,title:i,description:s,action:c,contentMode:d="horizontal",iconProps:u,renderIcon:h}=e,f=zx(e,["id","title","description","action","contentMode","iconProps","renderIcon"]);const p="error"===f.variant?"circle-x":"warning"===f.variant?"circle-alert":"info"===f.variant?"info":"circle-check",v="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 x(Tqe,Object.assign({},f,{children:[_("div",{className:Ax(Zqe({variant:f.variant}),o),children:h?null==h?void 0:h():_(nye,Object.assign({type:"lucide",name:p,className:"size-[22px]"},u))}),x("div",{className:Ax(Dqe({contentMode:d}),a),children:[i&&_($qe,{className:Ax(v,r),children:i}),s&&_(Uqe,{className:n,children:s})]}),c?_("div",{className:Ax("self-center mx-5",l),children:c}):null,_(Wqe,{})]}),t)})),_(qqe,{position:c,className:t})]}))}const aTe=({id:e,title:t,classes:r,children:n,isFirstLevel:o=!1,isLeaf:i=!1,disabled:c,icon:d,showIcon:u,showExpandButton:h,enableSeparatorLine:f=!0,isLastItem:p,checkable:v,checkIsExpanded:m,checkIsChecked:y,checkAutoDisabled:g,checkIsLoading:b,onExpandChange:k,onCheckedChange:w,onClickItem:M,renderIcon:j,renderElement:E,renderTitle:O,renderRightSection:C,lineSize:z=2,horizontalLineWidth:P=4,expandButtonSize:R=30,spacing:A=2,currentLevel:I=1,maxLevel:L=10,notifyClickItem:S,itemData:V})=>{const H=l((()=>null==b?void 0:b(e)),[b,e]),N=l((()=>y(e)),[y,e]),Z=l((()=>m(e)),[m,e]),D=l((()=>!!(null==n?void 0:n.length)),[n]),B=l((()=>(void 0!==h?h:D)&&I<(L||1/0)),[D,h,L,I]),q=l((()=>!!v&&!i),[v,i]),T=i?21.328:0,F=l((()=>({branch:{width:z,borderBottomLeftRadius:p?z/2:0},horizontalLine:{height:z,width:z+P+(B?0:R+A)+T,marginLeft:-z,borderBottomLeftRadius:z/2},expandButton:{width:R,height:R},childPadding:{paddingLeft:o?R/2-z/2:R/2+P-z/2}})),[z,P,R,A,o,p,B,T]),W=a((()=>{null==k||k(e,!Z,V)}),[e,Z,k,V]);s((()=>{!Z||H||D||W()}),[H,W]);const $=a((()=>{null==M||M(e,V),null==S||S(e,V)}),[e,Z,M,S,V]),U=_(nye,{name:Z?"folder-open":"folder",className:"fill-warning size-[18px]"}),G=null!=d?d:null==j?void 0:j({id:e,expanded:Z,selected:N}),Y=null==C?void 0:C({id:e,expanded:Z,selected:N}),K=O?O({id:e,title:t,expanded:Z,selected:N}):t;return X=_("div",{className:Ax("flex flex-row w-full",null==r?void 0:r.elementWrapper),children:x("div",{className:Ax("flex flex-col w-full",null==r?void 0:r.itemWrapper),children:[x("div",{className:Ax("flex flex-row flex-1",null==r?void 0:r.rowWrapperClasses),children:[x("div",{className:Ax("flex flex-col h-full",null==r?void 0:r.columnWrapperClasses),children:[!o&&_("div",{className:Ax("flex w-[2px] h-1/2 bg-grey-150",null==r?void 0:r.branch),style:F.branch}),!o&&!p&&(Z&&(D||H)||!Z)&&_("div",{className:Ax("flex w-[2px] h-1/2 bg-grey-150",null==r?void 0:r.branch),style:F.branch})]}),x("div",{className:Ax("flex flex-1 items-center py-2 min-h-10",null==r?void 0:r.itemContainer),children:[!o&&_("div",{className:Ax("bg-grey-150",null==r?void 0:r.horizontalLine),style:F.horizontalLine}),o&&!B&&_("div",{className:Ax("flex mr-[2px]",null==r?void 0:r.expandButton),style:F.expandButton}),B&&_("div",{className:Ax("flex mr-[2px]",null==r?void 0:r.expandButton),style:F.expandButton,onClick:!H&&W,children:_(mye,{variant:"icon",size:"sm",children:H?_(Ix,{}):_(nye,{name:Z?"chevron-down":"chevron-right"})})}),q?_(uxe,{id:e,className:Ax("size-[16px]",null==r?void 0:r.checkbox),checked:N,disabled:c,onCheckedChange:t=>null==w?void 0:w(e,t,V)}):_("div",{className:o&&v?Ax("size-[16px]",null==r?void 0:r.checkbox):""}),x("div",{className:Ax("ml-2 gap-1 flex flex-1 items-center text-common-black",null==r?void 0:r.item),onClick:$,children:[u?G||U:null,_("div",{className:Ax("flex flex-1 cursor-pointer text-subtitle5 text-ellipsis overflow-hidden break-all text-left",null==r?void 0:r.title),children:K})]}),Y]})]}),Z&&D&&I<(L||1/0)&&x("div",{className:Ax("flex flex-row overflow-hidden",null==r?void 0:r.expandedChildrenWrapper),children:[!o&&!p&&_("div",{className:Ax("flex w-[2px] h-full bg-grey-150",null==r?void 0:r.branch),style:F.branch}),_("div",{className:Ax("flex flex-col overflow-hidden",null==r?void 0:r.expandedChildrenWrapperInner),style:F.childPadding,children:null==n?void 0:n.map(((e,t)=>_(aTe,Object.assign({classes:r,isLastItem:t===n.length-1,checkIsExpanded:m,checkIsChecked:y,checkAutoDisabled:g,checkIsLoading:b,onExpandChange:k,onCheckedChange:w,renderIcon:j,renderElement:E,renderTitle:O,disabled:g(e.id),showIcon:u,lineSize:z,horizontalLineWidth:P,expandButtonSize:R,spacing:A,notifyClickItem:S,maxLevel:L,currentLevel:I+1,checkable:v},e),e.id)))})]}),f&&o&&!p&&_("div",{className:Ax("bg-grey-150 w-full h-[2px] rounded",null==r?void 0:r.separatorLine)})]})}),E?E({id:e,expanded:Z,selected:N,children:X,styles:F,onClick:$}):X;var X};function oTe(e){const t=n();return s((()=>{t.current=e})),t.current}const lTe=({classes:e,data:t,defaultExpandedId:r,defaultCheckedId:n,checkedId:o,loadingId:l,lineSize:c,horizontalLineWidth:d,expandButtonSize:u,spacing:h,renderIcon:f,renderRightSection:p,renderElement:v,renderTitle:m,onExpandChange:y,onCheckedChange:g,onClickItem:b,onCheckedItem:k,defaultExpandAll:w=!1,defaultCheckAll:x=!1,hierarchicalCheck:M=!1,showIcon:j=!0,disabled:E,enableSeparatorLine:O=!0,checkable:C=!0,maxLevel:z,mode:P="checkbox",autoDisabled:R=!1,checkedAll:A=!1})=>{const[I,L]=i({}),[S,V]=i({}),H=(e,t)=>{e.forEach((e=>{t(e),e.children&&H(e.children,t)}))};s((()=>{if(t.length&&w){const e={};H(t,(t=>{e[t.id]=!0})),V(e)}else if(null==r?void 0:r.length){const e=r.reduce(((e,t)=>(e[t]=!0,e)),{});V(e)}}),[t,r,w]),s((()=>{var e;if(t.length&&x){const e={};H(t,(t=>{e[t.id]=!0})),L(e)}else if(0===(null===(e=Object.keys(I))||void 0===e?void 0:e.length)&&(null==n?void 0:n.length)){const e=n.reduce(((e,t)=>(e[t]=!0,e)),{});L(e)}}),[t,n,x]),s((()=>{void 0!==o&&L(o.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!0})),{}))}),[o]),s((()=>{if(!M)return;const e={},r=(n,a)=>{H(t,(t=>{t.id===n&&t.children&&t.children.forEach((t=>{e[t.id]=a,r(t.id,a)}))}))};L((t=>(Object.keys(t).filter((e=>t[e])).map((e=>{r(e,!0)})),Object.assign(Object.assign({},t),e))))}),[t,M]);const N=oTe(A);s((()=>{if(void 0!==N&&N!==A)if(A){const e={};H(t,(t=>{t.id&&(e[t.id]=!0)})),L(e),null==g||g(e,void 0,null)}else{let e={};L((t=>(e=Object.keys(t).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!1})),{}),e))),null==g||g(e,void 0,null)}}),[t,A,N]);const Z=a(((e,t,r)=>{null==y||y(e,t,r),V((r=>Object.assign(Object.assign({},r),{[e]:t})))}),[y]),D=a(((e,r,n)=>{if("radio"===P){let t={[e]:r};return null==k||k(e,r,n),L(t),void(null==g||g(t,e,n))}null==k||k(e,r,n);let a=Object.assign(Object.assign({},I),{[e]:r});if(M){a=((e,r,n)=>{n[e]=r;const a=(e,r)=>{H(t,(t=>{t.id===e&&t.children&&t.children.forEach((e=>{n[e.id]=r,a(e.id,r)}))}))},o=(e,r)=>{H(t,(t=>{var n;if(null===(n=t.children)||void 0===n?void 0:n.some((t=>t.id===e))){const e=t.children.every((e=>r[e.id]));r[t.id]=e,o(t.id,r)}}))};return a(e,r),o(e,n),n})(e,r,a)}L(a),g&&(null==g||g(a,e,n))}),[I,t,g,M,k,P,R]),B=a((e=>!!S[e]),[S]),q=a((e=>o?o.includes(e):!!I[e]),[o,I]),T=a((e=>{if(l)return l.includes(e)}),[l]),F=a((e=>{var t;return!(!R||!Object.values(I).filter(Boolean).length)&&(null!==(t=!(null==I?void 0:I[e])||E)&&void 0!==t&&t)}),[I,E,R]);return _("div",{className:Ax("w-full",null==e?void 0:e.container),children:t.map(((r,n)=>_(aTe,Object.assign({classes:e,isFirstLevel:!0,isLastItem:n===t.length-1,checkIsExpanded:B,checkIsChecked:q,onExpandChange:Z,onCheckedChange:D,checkAutoDisabled:F,checkIsLoading:T,renderIcon:f,renderElement:v,renderTitle:m,renderRightSection:p,enableSeparatorLine:O,disabled:F(r.id),showIcon:j,lineSize:c,horizontalLineWidth:d,expandButtonSize:u,spacing:h,notifyClickItem:b,maxLevel:z,currentLevel:1,checkable:C},r),r.id)))})},iTe=({selectedKey:e,children:t,direction:r="vertical",className:a,containerProps:o,scrollAlign:l="center"})=>{const i=n(null),c=n({});s((()=>{e&&(e=>{const t=i.current,n=c.current[e];if(t&&n)if("vertical"===r){const e=t.getBoundingClientRect().top,r=n.getBoundingClientRect().top-e+t.scrollTop,a=t.clientHeight,o=n.offsetHeight;let i=r;"center"===l?i=r-(a/2-o/2):"end"===l&&(i=r+(o-a)),t.scrollTo({top:i,behavior:"smooth"})}else if("horizontal"===r){const e=t.getBoundingClientRect().left,r=n.getBoundingClientRect().left-e+t.scrollLeft,a=t.clientWidth,o=n.offsetWidth;let i=r;"center"===l?i=r-(a/2-o/2):"end"===l&&(i=r+(o-a)),t.scrollTo({left:i,behavior:"smooth"})}})(e)}),[e,r,l]);const d=Array.isArray(t)?t.map((e=>p(e)&&e.key?v(e,{ref:t=>{c.current[String(e.key)]=t}}):e)):t;return _("div",Object.assign({ref:i,className:`overflow-auto ${"vertical"===r?"max-h-60":"max-w-full whitespace-nowrap"} ${null!=a?a:""}`},o,{children:d}))},sTe={m:"ui-scrollbar",s:"ui-scrollbar ui-scrollbar-s",xs:"ui-scrollbar ui-scrollbar-xs"},cTe={vertical:"overflow-y-auto overflow-x-hidden",horizontal:"overflow-x-auto overflow-y-hidden",both:"overflow-auto"},dTe=e.forwardRef(((e,t)=>{var{className:r,scrollbarSize:n="m",direction:a="vertical",children:o}=e,l=zx(e,["className","scrollbarSize","direction","children"]);return _("div",Object.assign({ref:t,className:Ax(cTe[a],sTe[n],r)},l,{children:o}))}));dTe.displayName="ScrollArea";var uTe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,r)=>{const n=e.forwardRef(((e,t)=>{const{asChild:n,...a}=e,o=n?U_e:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),_(o,{...a,ref:t})}));return n.displayName=`Primitive.${r}`,{...t,[r]:n}}),{});function hTe(t,r=[]){let n=[];const a=()=>{const r=n.map((t=>e.createContext(t)));return function(n){const a=n?.[t]||r;return e.useMemo((()=>({[`__scope${t}`]:{...n,[t]:a}})),[n,a])}};return a.scopeName=t,[function(r,a){const o=e.createContext(a),l=n.length;function i(r){const{scope:n,children:a,...i}=r,s=n?.[t][l]||o,c=e.useMemo((()=>i),Object.values(i));return _(s.Provider,{value:c,children:a})}return n=[...n,a],i.displayName=r+"Provider",[i,function(n,i){const s=i?.[t][l]||o,c=e.useContext(s);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},fTe(a,...r)]}function fTe(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const a=n.reduce(((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${r.scopeName}`]:a})),[a])}};return n.scopeName=r.scopeName,n}var pTe="rovingFocusGroup.onEntryFocus",vTe={bubbles:!1,cancelable:!0},mTe="RovingFocusGroup",[yTe,gTe,bTe]=function(e){const r=e+"CollectionProvider",[n,a]=hTe(r),[o,l]=n(r,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:r,children:n}=e,a=t.useRef(null),l=t.useRef(new Map).current;return _(o,{scope:r,itemMap:l,collectionRef:a,children:n})};i.displayName=r;const s=e+"CollectionSlot",c=t.forwardRef(((e,t)=>{const{scope:r,children:n}=e,a=V_e(t,l(s,r).collectionRef);return _(U_e,{ref:a,children:n})}));c.displayName=s;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=t.forwardRef(((e,r)=>{const{scope:n,children:a,...o}=e,i=t.useRef(null),s=V_e(r,i),c=l(d,n);return t.useEffect((()=>(c.itemMap.set(i,{ref:i,...o}),()=>{c.itemMap.delete(i)}))),_(U_e,{[u]:"",ref:s,children:a})}));return h.displayName=d,[{Provider:i,Slot:c,ItemSlot:h},function(r){const n=l(e+"CollectionConsumer",r),a=t.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)));return r}),[n.collectionRef,n.itemMap]);return a},a]}(mTe),[kTe,wTe]=hTe(mTe,[bTe]),[_Te,xTe]=kTe(mTe),MTe=e.forwardRef(((e,t)=>_(yTe.Provider,{scope:e.__scopeRovingFocusGroup,children:_(yTe.Slot,{scope:e.__scopeRovingFocusGroup,children:_(jTe,{...e,ref:t})})})));MTe.displayName=mTe;var jTe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:l,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=t,f=e.useRef(null),p=V_e(r,f),v=_Ie(l),[m=null,y]=B_e({prop:i,defaultProp:s,onChange:c}),[g,b]=e.useState(!1),k=D_e(d),w=gTe(n),x=e.useRef(!1),[M,j]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(pTe,k),()=>e.removeEventListener(pTe,k)}),[k]),_(_Te,{scope:n,orientation:a,dir:v,loop:o,currentTabStopId:m,onItemFocus:e.useCallback((e=>y(e)),[y]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>j((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>j((e=>e-1))),[]),children:_(uTe.div,{tabIndex:g||0===M?-1:0,"data-orientation":a,...h,ref:p,style:{outline:"none",...t.style},onMouseDown:Z_e(t.onMouseDown,(()=>{x.current=!0})),onFocus:Z_e(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(pTe,vTe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));zTe([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}x.current=!1})),onBlur:Z_e(t.onBlur,(()=>b(!1)))})})})),ETe="RovingFocusGroupItem",OTe=e.forwardRef(((t,r)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,...i}=t,s=zEe(),c=l||s,d=xTe(ETe,n),u=d.currentTabStopId===c,h=gTe(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=d;return e.useEffect((()=>{if(a)return f(),()=>p()}),[a,f,p]),_(yTe.ItemSlot,{scope:n,id:c,focusable:a,active:o,children:_(uTe.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...i,ref:r,onMouseDown:Z_e(t.onMouseDown,(e=>{a?d.onItemFocus(c):e.preventDefault()})),onFocus:Z_e(t.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Z_e(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.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:CTe[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const n=r.indexOf(e.currentTarget);r=d.loop?function(e,t){return e.map(((r,n)=>e[(t+n)%e.length]))}(r,n+1):r.slice(n+1)}setTimeout((()=>zTe(r)))}}))})})}));OTe.displayName=ETe;var CTe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zTe(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 PTe=MTe,RTe=OTe;var ATe=t=>{const{present:r,children:n}=t,a=function(t){const[r,n]=e.useState(),a=e.useRef({}),o=e.useRef(t),l=e.useRef("none"),i=t?"mounted":"unmounted",[s,c]=function(t,r){return e.useReducer(((e,t)=>r[e][t]??e),t)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=ITe(a.current);l.current="mounted"===s?e:"none"}),[s]),T_e((()=>{const e=a.current,r=o.current;if(r!==t){const n=l.current,a=ITe(e);if(t)c("MOUNT");else if("none"===a||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,c]),T_e((()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const l=ITe(a.current).includes(n.animationName);if(n.target===r&&l&&(c("ANIMATION_END"),!o.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)}))}},i=e=>{e.target===r&&(l.current=ITe(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:e.useCallback((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(r),o="function"==typeof n?n({present:a.isPresent}):e.Children.only(n),l=V_e(a.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}(o));return"function"==typeof n||a.isPresent?e.cloneElement(o,{ref:l}):null};function ITe(e){return e?.animationName||"none"}ATe.displayName="Presence";var LTe="Radio",[STe,VTe]=H_e(LTe),[HTe,NTe]=STe(LTe),ZTe=e.forwardRef(((t,r)=>{const{__scopeRadio:n,name:a,checked:o=!1,required:l,disabled:i,value:s="on",onCheck:c,form:d,...u}=t,[h,f]=e.useState(null),p=V_e(r,(e=>f(e))),v=e.useRef(!1),m=!h||(d||!!h.closest("form"));return x(HTe,{scope:n,checked:o,disabled:i,children:[_(uTe.button,{type:"button",role:"radio","aria-checked":o,"data-state":TTe(o),"data-disabled":i?"":void 0,disabled:i,value:s,...u,ref:p,onClick:Z_e(t.onClick,(e=>{o||c?.(),m&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))}),m&&_(qTe,{control:h,bubbles:!v.current,name:a,value:s,checked:o,required:l,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})}));ZTe.displayName=LTe;var DTe="RadioIndicator",BTe=e.forwardRef(((e,t)=>{const{__scopeRadio:r,forceMount:n,...a}=e,o=NTe(DTe,r);return _(ATe,{present:n||o.checked,children:_(uTe.span,{"data-state":TTe(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})}));BTe.displayName=DTe;var qTe=t=>{const{control:r,checked:n,bubbles:a=!0,...o}=t,l=e.useRef(null),i=q_e(n),s=F_e(r);return e.useEffect((()=>{const e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}}),[i,n,a]),_("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function TTe(e){return e?"checked":"unchecked"}var FTe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WTe="RadioGroup",[$Te]=H_e(WTe,[wTe,VTe]),UTe=wTe(),GTe=VTe(),[YTe,KTe]=$Te(WTe),XTe=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:a,value:o,required:l=!1,disabled:i=!1,orientation:s,dir:c,loop:d=!0,onValueChange:u,...h}=e,f=UTe(r),p=_Ie(c),[v,m]=B_e({prop:o,defaultProp:a,onChange:u});return _(YTe,{scope:r,name:n,required:l,disabled:i,value:v,onValueChange:m,children:_(PTe,{asChild:!0,...f,orientation:s,dir:p,loop:d,children:_(uTe.div,{role:"radiogroup","aria-required":l,"aria-orientation":s,"data-disabled":i?"":void 0,dir:p,...h,ref:t})})})}));XTe.displayName=WTe;var QTe="RadioGroupItem",JTe=e.forwardRef(((t,r)=>{const{__scopeRadioGroup:n,disabled:a,...o}=t,l=KTe(QTe,n),i=l.disabled||a,s=UTe(n),c=GTe(n),d=e.useRef(null),u=V_e(r,d),h=l.value===o.value,f=e.useRef(!1);return e.useEffect((()=>{const e=e=>{FTe.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)}}),[]),_(RTe,{asChild:!0,...s,focusable:!i,active:h,children:_(ZTe,{disabled:i,required:l.required,checked:h,...c,...o,name:l.name,ref:u,onCheck:()=>l.onValueChange(o.value),onKeyDown:Z_e((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Z_e(o.onFocus,(()=>{f.current&&d.current?.click()}))})})}));JTe.displayName=QTe;var eFe=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,...n}=e,a=GTe(r);return _(BTe,{...a,...n,ref:t})}));eFe.displayName="RadioGroupIndicator";var tFe=XTe,rFe=JTe,nFe=eFe;const aFe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(tFe,Object.assign({className:Ax("grid gap-2",r)},n,{ref:t}))}));aFe.displayName=tFe.displayName;const oFe=e.forwardRef(((e,t)=>{var{className:r}=e,n=zx(e,["className"]);return _(rFe,Object.assign({ref:t,className:Ax("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",r)},n,{children:_(nFe,{className:"flex items-center justify-center",children:_("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:_("circle",{cx:"5",cy:"5",r:"5",fill:"current"})})})}))}));oFe.displayName=rFe.displayName;var lFe=e=>"checkbox"===e.type,iFe=e=>e instanceof Date,sFe=e=>null==e;const cFe=e=>"object"==typeof e;var dFe=e=>!sFe(e)&&!Array.isArray(e)&&cFe(e)&&!iFe(e),uFe=e=>dFe(e)&&e.target?lFe(e.target)?e.target.checked:e.target.value:e,hFe=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),fFe="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function pFe(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(fFe&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||dFe(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return dFe(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]=pFe(e[t]));return n}var vFe=e=>/^\w*$/.test(e),mFe=e=>void 0===e,yFe=e=>Array.isArray(e)?e.filter(Boolean):[],gFe=e=>yFe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bFe=(e,t,r)=>{if(!t||!dFe(e))return r;const n=(vFe(t)?[t]:gFe(t)).reduce(((e,t)=>sFe(e)?e:e[t]),e);return mFe(n)||n===e?mFe(e[t])?r:e[t]:n},kFe=e=>"boolean"==typeof e,wFe=e=>"function"==typeof e,_Fe=(e,t,r)=>{let n=-1;const a=vFe(t)?[t]:gFe(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=dFe(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const xFe="blur",MFe="focusout",jFe="change",EFe="onBlur",OFe="onChange",CFe="onSubmit",zFe="onTouched",PFe="all",RFe="max",AFe="min",IFe="maxLength",LFe="minLength",SFe="pattern",VFe="required",HFe="validate",NFe=t.createContext(null);NFe.displayName="HookFormControlContext";const ZFe=()=>t.useContext(NFe);var DFe=(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]!==PFe&&(t._proxyFormState[a]=!n||PFe),r&&(r[a]=!0),e[a]}});return a};const BFe="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;var qFe=e=>"string"==typeof e,TFe=(e,t,r,n,a)=>qFe(e)?(n&&t.watch.add(e),bFe(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),bFe(r,e)))):(n&&(t.watchAll=!0),r),FFe=e=>sFe(e)||!cFe(e);function WFe(e,t,r=new WeakSet){if(FFe(e)||FFe(t))return Object.is(e,t);if(iFe(e)&&iFe(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(iFe(n)&&iFe(e)||dFe(n)&&dFe(e)||Array.isArray(n)&&Array.isArray(e)?!WFe(n,e,r):!Object.is(n,e))return!1}}return!0}function $Fe(e){const r=ZFe(),{name:n,disabled:a,control:o=r,shouldUnregister:l,defaultValue:i,exact:s=!0}=e,c=hFe(o._names.array,n),d=t.useMemo((()=>bFe(o._formValues,n,bFe(o._defaultValues,n,i))),[o,n,i]),u=function(e){const r=ZFe(),{control:n=r,name:a,defaultValue:o,disabled:l,exact:i,compute:s}=e||{},c=t.useRef(o),d=t.useRef(s),u=t.useRef(void 0),h=t.useRef(n),f=t.useRef(a);d.current=s;const[p,v]=t.useState((()=>{const e=n._getWatch(a,c.current);return d.current?d.current(e):e})),m=t.useCallback((e=>{const t=TFe(a,n._names,e||n._formValues,!1,c.current);return d.current?d.current(t):t}),[n._formValues,n._names,a]),y=t.useCallback((e=>{if(!l){const t=TFe(a,n._names,e||n._formValues,!1,c.current);if(d.current){const e=d.current(t);WFe(e,u.current)||(v(e),u.current=e)}else v(t)}}),[n._formValues,n._names,l,a]);BFe((()=>(h.current===n&&WFe(f.current,a)||(h.current=n,f.current=a,y()),n._subscribe({name:a,formState:{values:!0},exact:i,callback:e=>{y(e.values)}}))),[n,i,a,y]),t.useEffect((()=>n._removeUnmounted()));const g=h.current!==n,b=f.current,k=t.useMemo((()=>{if(l)return null;const e=!g&&!WFe(b,a);return g||e?m():null}),[l,g,a,b,m]);return null!==k?k:p}({control:o,name:n,defaultValue:d,exact:s}),h=function(e){const r=ZFe(),{control:n=r,disabled:a,name:o,exact:l}=e||{},[i,s]=t.useState(n._formState),c=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return BFe((()=>n._subscribe({name:o,formState:c.current,exact:l,callback:e=>{!a&&s({...n._formState,...e})}})),[o,a,l]),t.useEffect((()=>{c.current.isValid&&n._setValid(!0)}),[n]),t.useMemo((()=>DFe(i,n,c.current,!1)),[i,n])}({control:o,name:n,exact:s}),f=t.useRef(e),p=t.useRef(void 0),v=t.useRef(o.register(n,{...e.rules,value:u,...kFe(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=t.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!bFe(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!bFe(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!bFe(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!bFe(h.validatingFields,n)},error:{enumerable:!0,get:()=>bFe(h.errors,n)}})),[h,n]),y=t.useCallback((e=>v.current.onChange({target:{value:uFe(e),name:n},type:jFe})),[n]),g=t.useCallback((()=>v.current.onBlur({target:{value:bFe(o._formValues,n),name:n},type:xFe})),[n,o._formValues]),b=t.useCallback((e=>{const t=bFe(o._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>wFe(e.focus)&&e.focus(),select:()=>wFe(e.select)&&e.select(),setCustomValidity:t=>wFe(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>wFe(e.reportValidity)&&e.reportValidity()})}),[o._fields,n]),k=t.useMemo((()=>({name:n,value:u,...kFe(a)||h.disabled?{disabled:h.disabled||a}:{},onChange:y,onBlur:g,ref:b})),[n,a,h.disabled,y,g,b,u]);return t.useEffect((()=>{const e=o._options.shouldUnregister||l,t=p.current;t&&t!==n&&!c&&o.unregister(t),o.register(n,{...f.current.rules,...kFe(f.current.disabled)?{disabled:f.current.disabled}:{}});const r=(e,t)=>{const r=bFe(o._fields,e);r&&r._f&&(r._f.mount=t)};if(r(n,!0),e){const e=pFe(bFe(o._options.defaultValues,n,f.current.defaultValue));_Fe(o._defaultValues,n,e),mFe(bFe(o._formValues,n))&&_Fe(o._formValues,n,e)}return!c&&o.register(n),p.current=n,()=>{(c?e&&!o._state.action:e)?o.unregister(n):r(n,!1)}}),[n,o,c,l]),t.useEffect((()=>{o._setDisabledField({disabled:a,name:n})}),[a,n,o]),t.useMemo((()=>({field:k,formState:h,fieldState:m})),[k,h,m])}const UFe=t.createContext(null);UFe.displayName="HookFormContext";const GFe=()=>t.useContext(UFe),YFe=e=>{const{children:r,watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:f,unregister:p,control:v,register:m,setFocus:y,subscribe:g}=e;return t.createElement(UFe.Provider,{value:t.useMemo((()=>({watch:n,getValues:a,getFieldState:o,setError:l,clearErrors:i,setValue:s,trigger:c,formState:d,resetField:u,reset:h,handleSubmit:f,unregister:p,control:v,register:m,setFocus:y,subscribe:g})),[i,v,d,o,a,f,m,h,u,l,y,s,g,c,p,n])},t.createElement(NFe.Provider,{value:v},r))};var KFe=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},XFe=e=>Array.isArray(e)?e:[e],QFe=()=>{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 JFe(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const a=e[n],o=t[n];if(a&&dFe(a)&&o){const e=JFe(a,o);dFe(e)&&(r[n]=e)}else e[n]&&(r[n]=o)}return r}var eWe=e=>dFe(e)&&!Object.keys(e).length,tWe=e=>"file"===e.type,rWe=e=>{if(!fFe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},nWe=e=>"select-multiple"===e.type,aWe=e=>"radio"===e.type,oWe=e=>rWe(e)&&e.isConnected;function lWe(e,t){const r=Array.isArray(t)?t:vFe(t)?[t]:gFe(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=mFe(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!==a&&(dFe(n)&&eWe(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!mFe(e[t]))return!1;return!0}(n))&&lWe(e,r.slice(0,-1)),e}function iWe(e){return Array.isArray(e)||dFe(e)&&!(e=>{for(const t in e)if(wFe(e[t]))return!0;return!1})(e)}function sWe(e,t={}){for(const r in e){const n=e[r];iWe(n)?(t[r]=Array.isArray(n)?[]:{},sWe(n,t[r])):mFe(n)||(t[r]=!0)}return t}function cWe(e,t,r){r||(r=sWe(t));for(const n in e){const a=e[n];if(iWe(a))mFe(t)||FFe(r[n])?r[n]=sWe(a,Array.isArray(a)?[]:{}):cWe(a,sFe(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!WFe(a,e)}}return r}const dWe={value:!1,isValid:!1},uWe={value:!0,isValid:!0};var hWe=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&&!mFe(e[0].attributes.value)?mFe(e[0].value)||""===e[0].value?uWe:{value:e[0].value,isValid:!0}:uWe:dWe}return dWe},fWe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>mFe(e)?e:t?""===e?NaN:e?+e:e:r&&qFe(e)?new Date(e):n?n(e):e;const pWe={isValid:!1,value:null};var vWe=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),pWe):pWe;function mWe(e){const t=e.ref;return tWe(t)?t.files:aWe(t)?vWe(e.refs).value:nWe(t)?[...t.selectedOptions].map((({value:e})=>e)):lFe(t)?hWe(e.refs).value:fWe(mFe(t.value)?e.ref.value:t.value,e)}var yWe=e=>e instanceof RegExp,gWe=e=>mFe(e)?e:yWe(e)?e.source:dFe(e)?yWe(e.value)?e.value.source:e.value:e,bWe=e=>({isOnSubmit:!e||e===CFe,isOnBlur:e===EFe,isOnChange:e===OFe,isOnAll:e===PFe,isOnTouch:e===zFe});const kWe="AsyncFunction";var wWe=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const _We=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const r=bFe(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(_We(o,t))break}else if(dFe(o)&&_We(o,t))break}}};function xWe(e,t,r){const n=bFe(e,r);if(n||vFe(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),o=bFe(t,n),l=bFe(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 MWe=(e,t,r)=>{const n=XFe(bFe(e,r));return _Fe(n,"root",t[r]),_Fe(e,r,n),e};function jWe(e,t,r="validate"){if(qFe(e)||Array.isArray(e)&&e.every(qFe)||kFe(e)&&!e)return{type:r,message:qFe(e)?e:"",ref:t}}var EWe=e=>dFe(e)&&!yWe(e)?e:{value:e,message:""},OWe=async(e,t,r,n,a,o)=>{const{ref:l,refs:i,required:s,maxLength:c,minLength:d,min:u,max:h,pattern:f,validate:p,name:v,valueAsNumber:m,mount:y}=e._f,g=bFe(r,v);if(!y||t.has(v))return{};const b=i?i[0]:l,k=e=>{a&&b.reportValidity&&(b.setCustomValidity(kFe(e)?"":e||""),b.reportValidity())},w={},_=aWe(l),x=lFe(l),M=_||x,j=(m||tWe(l))&&mFe(l.value)&&mFe(g)||rWe(l)&&""===l.value||""===g||Array.isArray(g)&&!g.length,E=KFe.bind(null,v,n,w),O=(e,t,r,n=IFe,a=LFe)=>{const o=e?t:r;w[v]={type:e?n:a,message:o,ref:l,...E(e?n:a,o)}};if(o?!Array.isArray(g)||!g.length:s&&(!M&&(j||sFe(g))||kFe(g)&&!g||x&&!hWe(i).isValid||_&&!vWe(i).isValid)){const{value:e,message:t}=qFe(s)?{value:!!s,message:s}:EWe(s);if(e&&(w[v]={type:VFe,message:t,ref:b,...E(VFe,t)},!n))return k(t),w}if(!(j||sFe(u)&&sFe(h))){let e,t;const r=EWe(h),a=EWe(u);if(sFe(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;qFe(r.value)&&g&&(e=i?o(g)>o(r.value):s?g>r.value:n>new Date(r.value)),qFe(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);sFe(r.value)||(e=n>r.value),sFe(a.value)||(t=n<a.value)}if((e||t)&&(O(!!e,r.message,a.message,RFe,AFe),!n))return k(w[v].message),w}if((c||d)&&!j&&(qFe(g)||o&&Array.isArray(g))){const e=EWe(c),t=EWe(d),r=!sFe(e.value)&&g.length>+e.value,a=!sFe(t.value)&&g.length<+t.value;if((r||a)&&(O(r,e.message,t.message),!n))return k(w[v].message),w}if(f&&!j&&qFe(g)){const{value:e,message:t}=EWe(f);if(yWe(e)&&!g.match(e)&&(w[v]={type:SFe,message:t,ref:l,...E(SFe,t)},!n))return k(t),w}if(p)if(wFe(p)){const e=jWe(await p(g,r),b);if(e&&(w[v]={...e,...E(HFe,e.message)},!n))return k(e.message),w}else if(dFe(p)){let e={};for(const t in p){if(!eWe(e)&&!n)break;const a=jWe(await p[t](g,r),b,t);a&&(e={...a,...E(t,a.message)},k(a.message),n&&(w[v]=e))}if(!eWe(e)&&(w[v]={ref:b,...e},!n))return w}return k(!0),w};const CWe={mode:CFe,reValidateMode:OFe,shouldFocusError:!0};function zWe(e={}){let t,r={...CWe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:wFe(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},o=(dFe(r.defaultValues)||dFe(r.values))&&pFe(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:pFe(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 f={array:QFe(),state:QFe()},p=r.criteriaMode===PFe,v=async e=>{if(!i.keepIsValid&&!r.disabled&&(u.isValid||h.isValid||e)){let e;r.resolver?(e=eWe((await k()).errors),m()):e=await w(a,!0),e!==n.isValid&&f.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?_Fe(n.validatingFields,e,t):lWe(n.validatingFields,e))})),f.state.next({validatingFields:n.validatingFields,isValidating:!eWe(n.validatingFields)}))},y=(e,t,r,n)=>{const s=bFe(a,e);if(s){const a=bFe(l,e,mFe(r)?bFe(o,e):r);mFe(a)||n&&n.defaultChecked||t?_Fe(l,e,t?a:mWe(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=_(),s=c!==d.isDirty);const r=WFe(bFe(o,e),t);c=!!bFe(n.dirtyFields,e),r?lWe(n.dirtyFields,e):_Fe(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,s=s||(u.dirtyFields||h.dirtyFields)&&c!==!r}if(a){const t=bFe(n.touchedFields,e);t||(_Fe(n.touchedFields,e,a),d.touchedFields=n.touchedFields,s=s||(u.touchedFields||h.touchedFields)&&t!==a)}s&&i&&f.state.next(d)}return s?d:{}},b=(e,a,o,l)=>{const i=bFe(n.errors,e),s=(u.isValid||h.isValid)&&kFe(a)&&n.isValid!==a;var d;if(r.delayError&&o?(d=()=>((e,t)=>{_Fe(n.errors,e,t),f.state.next({errors:n.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(d,e)},t(r.delayError)):(clearTimeout(c),t=null,o?_Fe(n.errors,e,o):lWe(n.errors,e)),(o?!WFe(i,o):i)||!eWe(l)||s){const t={...l,...s&&kFe(a)?{isValid:a}:{},errors:n.errors,name:e};n={...n,...t},f.state.next(t)}},k=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=bFe(t,r);e&&_Fe(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&&!!(wFe(i.validate)&&i.validate.constructor.name===kWe||dFe(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===kWe))));h&&u.validatingFields&&m([t.name],!0);const f=await OWe(d,s.disabled,l,p,r.shouldUseNativeValidation&&!a,c);if(h&&u.validatingFields&&m([t.name]),f[t.name]&&(o.valid=!1,a||e.shouldUseNativeValidation))break;!a&&(bFe(f,t.name)?c?MWe(n.errors,f,t.name):_Fe(n.errors,t.name,f[t.name]):lWe(n.errors,t.name))}!eWe(c)&&await w(c,a,o)}}var i;return o.valid},_=(e,t)=>!r.disabled&&(e&&t&&_Fe(l,e,t),!WFe(P(),o)),x=(e,t,r)=>TFe(e,s,{...i.mount?l:mFe(t)?o:qFe(e)?{[e]:t}:t},r,t),M=(e,t,r={})=>{const n=bFe(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&_Fe(l,e,fWe(t,r)),o=rWe(r.ref)&&sFe(t)?"":t,nWe(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?lFe(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)):tWe(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||f.state.next({name:e,values:pFe(l)})))}(r.shouldDirty||r.shouldTouch)&&g(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&z(e)},j=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const o=t[n],l=e+"."+n,i=bFe(a,l);(s.array.has(e)||dFe(o)||i&&!i._f)&&!iFe(o)?j(l,o,r):M(l,o,r)}},E=(e,t,r={})=>{const c=bFe(a,e),d=s.array.has(e),p=pFe(t);_Fe(l,e,p),d?(f.array.next({name:e,values:pFe(l)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&r.shouldDirty&&f.state.next({name:e,dirtyFields:cWe(o,l),isDirty:_(e,p)})):!c||c._f||sFe(p)?M(e,p,r):j(e,p,r),wWe(e,s)?f.state.next({...n,name:e,values:pFe(l)}):f.state.next({name:i.mount?e:void 0,values:pFe(l)})},O=async e=>{i.mount=!0;const o=e.target;let c=o.name,d=!0;const y=bFe(a,c),_=e=>{d=Number.isNaN(e)||iFe(e)&&isNaN(e.getTime())||WFe(e,bFe(l,c,e))},x=bWe(r.mode),M=bWe(r.reValidateMode);if(y){let i,j;const E=o.type?mWe(y._f):uFe(e),O=e.type===xFe||e.type===MFe,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(y._f)&&!r.resolver&&!bFe(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))(O,bFe(n.touchedFields,c),n.isSubmitted,M,x),P=wWe(c,s,O);_Fe(l,c,E),O?o&&o.readOnly||(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);const R=g(c,E,O),A=!eWe(R)||P;if(!O&&f.state.next({name:c,type:e.type,values:pFe(l)}),C)return(u.isValid||h.isValid)&&("onBlur"===r.mode?O&&v():O||v()),A&&f.state.next({name:c,...P?{}:R});if(!O&&P&&f.state.next({...n}),r.resolver){const{errors:e}=await k([c]);if(m([c]),_(E),d){const t=xWe(n.errors,a,c),r=xWe(e,a,t.name||c);i=r.error,c=r.name,j=eWe(e)}}else m([c],!0),i=(await OWe(y,s.disabled,l,p,r.shouldUseNativeValidation))[c],m([c]),_(E),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)&&z(y._f.deps),b(c,j,i,R))}},C=(e,t)=>{if(bFe(n.errors,t)&&e.focus)return e.focus(),1},z=async(e,t={})=>{let o,l;const i=XFe(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(m(e),e)for(const r of e){const e=bFe(t,r);e?_Fe(n.errors,r,e):lWe(n.errors,r)}else n.errors=t;return t})(mFe(e)?e:i);o=eWe(t),l=e?!i.some((e=>bFe(t,e))):o}else e?(l=(await Promise.all(i.map((async e=>{const t=bFe(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(l||n.isValid)&&v()):l=o=await w(a);return f.state.next({...!qFe(e)||(u.isValid||h.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!l&&_We(a,C,e?i:s.mount),l},P=(e,t)=>{let r={...i.mount?l:o};return t&&(r=JFe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),mFe(e)?r:qFe(e)?bFe(r,e):e.map((e=>bFe(r,e)))},R=(e,t)=>({invalid:!!bFe((t||n).errors,e),isDirty:!!bFe((t||n).dirtyFields,e),error:bFe((t||n).errors,e),isValidating:!!bFe(n.validatingFields,e),isTouched:!!bFe((t||n).touchedFields,e)}),A=(e,t,r)=>{const o=(bFe(a,e,{_f:{}})._f||{}).ref,l=bFe(n.errors,e)||{},{ref:i,message:s,type:c,...d}=l;_Fe(n.errors,e,{...d,...t,ref:o}),f.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},I=e=>f.state.subscribe({next:t=>{var r,a,i;r=e.name,a=t.name,i=e.exact,r&&a&&r!==a&&!XFe(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 eWe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||PFe)))})(t,e.formState||u,B,e.reRenderRoot)||e.callback({values:{...l},...n,...t,defaultValues:o})}}).unsubscribe,L=(e,t={})=>{for(const i of e?XFe(e):s.mount)s.mount.delete(i),s.array.delete(i),t.keepValue||(lWe(a,i),lWe(l,i)),!t.keepError&&lWe(n.errors,i),!t.keepDirty&&lWe(n.dirtyFields,i),!t.keepTouched&&lWe(n.touchedFields,i),!t.keepIsValidating&&lWe(n.validatingFields,i),!r.shouldUnregister&&!t.keepDefaultValue&&lWe(o,i);f.state.next({values:pFe(l)}),f.state.next({...n,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&v()},S=({disabled:e,name:t})=>{if(kFe(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()}},V=(e,t={})=>{let n=bFe(a,e);const l=kFe(t.disabled)||kFe(r.disabled);return _Fe(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),n?S({disabled:kFe(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:gWe(t.min),max:gWe(t.max),minLength:gWe(t.minLength),maxLength:gWe(t.maxLength),pattern:gWe(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:l=>{if(l){V(e,t),n=bFe(a,e);const r=mFe(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,i=(e=>aWe(e)||lFe(e))(r),s=n._f.refs||[];if(i?s.find((e=>e===r)):r===n._f.ref)return;_Fe(a,e,{_f:{...n._f,...i?{refs:[...s.filter(oWe),r,...Array.isArray(bFe(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=bFe(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!hFe(s.array,e)||!i.action)&&s.unMount.add(e)}}},H=()=>r.shouldFocusError&&_We(a,C,s.mount),N=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=pFe(l);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await k();m(),n.errors=e,c=pFe(t)}else await w(a);if(s.disabled.size)for(const e of s.disabled)lWe(c,e);if(lWe(n.errors,"root"),eWe(n.errors)){f.state.next({errors:{}});try{await e(c,o)}catch(e){i=e}}else t&&await t({...n.errors},o),H(),setTimeout(H);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eWe(n.errors)&&!i,submitCount:n.submitCount+1,errors:n.errors}),i)throw i},Z=(e,t={})=>{const c=e?pFe(e):o,d=pFe(c),h=eWe(e),p=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(cWe(o,l))]);for(const t of Array.from(e)){const e=bFe(n.dirtyFields,t),r=bFe(l,t),a=bFe(p,t);e&&!mFe(r)?_Fe(p,t,r):e||mFe(a)||E(t,a)}}else{if(fFe&&mFe(e))for(const e of s.mount){const t=bFe(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(rWe(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of s.mount)E(e,bFe(p,e));else a={}}l=r.shouldUnregister?t.keepDefaultValues?pFe(o):{}:pFe(p),f.array.next({values:{...p}}),f.state.next({values:{...p}})}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&&!eWe(p),i.watch=!!r.shouldUnregister,i.keepIsValid=!!t.keepIsValid,i.action=!1,t.keepErrors||(n.errors={}),f.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||WFe(e,o))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&l?cWe(o,l):n.dirtyFields:t.keepDefaultValues&&e?cWe(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})},D=(e,t)=>Z(wFe(e)?e(l):e,{...r.resetOptions,...t}),B=e=>{n={...n,...e}},q={control:{register:V,unregister:L,getFieldState:R,handleSubmit:N,setError:A,_subscribe:I,_runSchema:k,_updateIsValidating:m,_focusError:H,_getWatch:x,_getDirty:_,_setValid:v,_setFieldArray:(e,t=[],s,c,d=!0,p=!0)=>{if(c&&s&&!r.disabled){if(i.action=!0,p&&Array.isArray(bFe(a,e))){const t=s(bFe(a,e),c.argA,c.argB);d&&_Fe(a,e,t)}if(p&&Array.isArray(bFe(n.errors,e))){const t=s(bFe(n.errors,e),c.argA,c.argB);d&&_Fe(n.errors,e,t),((e,t)=>{!yFe(bFe(e,t)).length&&lWe(e,t)})(n.errors,e)}if((u.touchedFields||h.touchedFields)&&p&&Array.isArray(bFe(n.touchedFields,e))){const t=s(bFe(n.touchedFields,e),c.argA,c.argB);d&&_Fe(n.touchedFields,e,t)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=cWe(o,l)),f.state.next({name:e,isDirty:_(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _Fe(l,e,t)},_setDisabledField:S,_setErrors:e=>{n.errors=e,f.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>yFe(bFe(i.mount?l:o,e,r.shouldUnregister?bFe(o,e,[]):[])),_reset:Z,_resetDefaultValues:()=>wFe(r.defaultValues)&&r.defaultValues().then((e=>{D(e,r.resetOptions),f.state.next({isLoading:!1})})),_removeUnmounted:()=>{for(const e of s.unMount){const t=bFe(a,e);t&&(t._f.refs?t._f.refs.every((e=>!oWe(e))):!oWe(t._f.ref))&&L(e)}s.unMount=new Set},_disableForm:e=>{kFe(e)&&(f.state.next({disabled:e}),_We(a,((t,r)=>{const n=bFe(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:f,_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},I({...e,formState:{...d,...e.formState}})),trigger:z,register:V,handleSubmit:N,watch:(e,t)=>wFe(e)?f.state.subscribe({next:r=>"values"in r&&e(x(void 0,t),r)}):x(e,t,!0),setValue:E,getValues:P,reset:D,resetField:(e,t={})=>{bFe(a,e)&&(mFe(t.defaultValue)?E(e,pFe(bFe(o,e))):(E(e,t.defaultValue),_Fe(o,e,pFe(t.defaultValue))),t.keepTouched||lWe(n.touchedFields,e),t.keepDirty||(lWe(n.dirtyFields,e),n.isDirty=t.defaultValue?_(e,pFe(bFe(o,e))):_()),t.keepError||(lWe(n.errors,e),u.isValid&&v()),f.state.next({...n}))},clearErrors:e=>{const t=e?XFe(e):void 0;null==t||t.forEach((e=>lWe(n.errors,e))),t?t.forEach((e=>{f.state.next({name:e,errors:n.errors})})):f.state.next({errors:{}})},unregister:L,setError:A,setFocus:(e,t={})=>{const r=bFe(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout((()=>{e.focus(),t.shouldSelect&&wFe(e.select)&&e.select()}))}},getFieldState:R};return{...q,formControl:q}}function PWe(e={}){const r=t.useRef(void 0),n=t.useRef(void 0),[a,o]=t.useState({isDirty:!1,isValidating:!1,isLoading:wFe(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:wFe(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:a},e.defaultValues&&!wFe(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:t,...n}=zWe(e);r.current={...n,formState:a}}const l=r.current.control;return l._options=e,BFe((()=>{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]),t.useEffect((()=>l._disableForm(e.disabled)),[l,e.disabled]),t.useEffect((()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)}),[l,e.mode,e.reValidateMode]),t.useEffect((()=>{e.errors&&(l._setErrors(e.errors),l._focusError())}),[l,e.errors]),t.useEffect((()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})}),[l,e.shouldUnregister]),t.useEffect((()=>{if(l._proxyFormState.isDirty){const e=l._getDirty();e!==a.isDirty&&l._subjects.state.next({isDirty:e})}}),[l,a.isDirty]),t.useEffect((()=>{var t;e.values&&!WFe(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),(null===(t=l._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||l._setValid(),n.current=e.values,o((e=>({...e})))):l._resetDefaultValues()}),[l,e.values]),t.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=t.useMemo((()=>DFe(a,l)),[l,a]),r.current}const RWe=(e,t,r)=>{if(e&&"reportValidity"in e){const n=bFe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},AWe=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?RWe(n.ref,r,e):n&&n.refs&&n.refs.forEach((t=>RWe(t,r,e)))}},IWe=(e,t)=>{t.shouldUseNativeValidation&&AWe(e,t);const r={};for(const n in e){const a=bFe(t.fields,n),o=Object.assign(e[n]||{},{ref:a&&a.ref});if(LWe(t.names||Object.keys(e),n)){const e=Object.assign({},bFe(r,n));_Fe(e,"root",o),_Fe(r,n,e)}else _Fe(r,n,o)}return r},LWe=(e,t)=>{const r=SWe(t);return e.some((e=>SWe(e).match(`^${r}\\.\\d+`)))};function SWe(e){return e.replace(/\]|\[/g,"")}const VWe=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&&AWe({},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:IWe((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]=KFe(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),HWe=({methods:e,defaultValues:r,controllerRef:n})=>{const a=t.forwardRef(((t,a)=>{var{children:o}=t,l=zx(t,["children"]);return _(DWe,Object.assign({},l,{ref:a,methods:e,defaultValues:r,controllerRef:n,children:o}))}));return a.displayName="ControlledFormRoot",{methods:e,FormRoot:a}},NWe=({defaultValues:e,controllerRef:r,resolver:n,validationSchema:a,mode:o="onSubmit",reValidateMode:l="onChange"})=>{const i=PWe({defaultValues:e,resolver:null!=n?n:a?VWe(a):void 0,mode:o,reValidateMode:l}),s=t.useRef(null);return s.current||(s.current=HWe({methods:i,defaultValues:e,controllerRef:r})),{methods:i,FormRoot:s.current.FormRoot}},ZWe=({onFormStateChange:e})=>{const{formState:r}=GFe();return t.useEffect((()=>{e(r)}),[r,e]),null},DWe=t.forwardRef(((e,r)=>{var{children:n,defaultValues:a,methods:o,controllerRef:l,onSubmit:i,onInvalidSubmit:s,onFormStateChange:c,resolver:d,validationSchema:u,mode:h="onSubmit",reValidateMode:f="onChange",noValidate:p=!0}=e,v=zx(e,["children","defaultValues","methods","controllerRef","onSubmit","onInvalidSubmit","onFormStateChange","resolver","validationSchema","mode","reValidateMode","noValidate"]);const m=PWe({defaultValues:a,resolver:null!=d?d:u?VWe(u):void 0,mode:h,reValidateMode:f}),y=null!=o?o:m,g=t.useMemo((()=>({submit:async()=>{await y.handleSubmit(i,s)()},getValues:()=>y.getValues(),setValue:y.setValue,trigger:y.trigger,reset:y.reset})),[y,i,s]);return t.useImperativeHandle(r,(()=>g),[g]),t.useEffect((()=>{if(l)return l.current=g,()=>{l.current=null}}),[l,g]),_(YFe,Object.assign({},y,{children:x("form",Object.assign({},v,{noValidate:p,onSubmit:y.handleSubmit(i,s),children:[c&&_(ZWe,{onFormStateChange:c}),"function"==typeof n?n(y):n]}))}))})),BWe=({name:e,component:t,componentProps:r,rules:n,defaultValue:a,disabled:o=!1,shouldUnregister:l=!1,id:i,describedBy:s,valuePropName:c="value",changePropName:d="onChange",blurPropName:u="onBlur",refPropName:h="ref",errorMessagePropName:f="errorMessage",invalidPropName:p="error",parseValue:v,formatValue:y,onChange:g,onBlur:b})=>{const k=m(),w=i||`${e.replace(/\./g,"-")}-${k}`,{field:x,fieldState:{error:M,invalid:j}}=$Fe({name:e,rules:n,disabled:o,defaultValue:a,shouldUnregister:l}),E=()=>{x.onBlur(),null==b||b()},O=y?y(x.value):x.value,C=Object.assign(Object.assign({},r),{id:w,name:x.name,disabled:o,"aria-invalid":j||void 0,"aria-describedby":s});return C[c]=O,C[d]=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=v?v(t,e):t;x.onChange(r),null==g||g(r,e)},u&&(C[u]=E),h&&(C[h]=x.ref),f&&(C[f]=null==M?void 0:M.message),p&&(C[p]=j),_(t,Object.assign({},C))},qWe=e=>{var{name:t,className:r}=e,n=zx(e,["name","className"]);const{getFieldState:a,formState:o}=GFe(),{error:l}=a(t,o);return(null==l?void 0:l.message)?_("p",Object.assign({},n,{className:Ax("text-sm text-input-error mt-1",r),role:"alert",children:l.message})):null},TWe={valid:"text-text-g-contrast-high",invalid:"text-input-error",pending:"text-text-g-contrast-high"},FWe={valid:"text-primary",invalid:"text-input-error",pending:"text-text-g-contrast-low"},WWe=({values:e,rules:t,mode:r=["pending","valid","invalid"],className:n,itemClassName:a,labelStateClassName:o,iconStateClassName:l})=>{const i=new Set(r);return _("ul",{className:Ax("mt-2 flex flex-col gap-3",n),children:t.map((t=>{const r=((e,t)=>!t.when||t.when(e)?t.validate(e)?"valid":"invalid":"pending")(e,t),n=i.has(r)?r:"pending";return x("li",{className:Ax("flex items-center gap-2 typography-small2 ",TWe[n],null==o?void 0:o[n],a),children:[_(yV,{className:Ax("size-4",FWe[n],null==l?void 0:l[n])}),_("span",{children:t.label})]},t.id)}))})},$We=({options:e,loading:t=!1,buildFallbackOption:r})=>{const n=l((()=>new Map(e.map((e=>[e.value,e])))),[e]),a=e=>{if(null!=e)return n.get(e)};return{toOption:a,toOptionWithFallback:e=>{var n;if(null!=e)return null!==(n=a(e))&&void 0!==n?n:null==r?void 0:r(e,t)},toValue:e=>null==e?void 0:e.value,optionsByValue:n}};function UWe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GWe(e){this._maxSize=e,this.clear()}GWe.prototype.clear=function(){this._size=0,this._values=Object.create(null)},GWe.prototype.get=function(e){return this._values[e]},GWe.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var YWe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,KWe=/^\d+$/,XWe=/^\d/,QWe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,JWe=/^\s*(['"]?)(.*?)(\1)\s*$/,e$e=new GWe(512);new GWe(512);var t$e=new GWe(512),r$e={split:a$e,normalizePath:n$e,getter:function(e,t){var r=n$e(e);return t$e.get(e)||t$e.set(e,(function(e){for(var n=0,a=r.length;n<a;){if(null==e&&t)return;e=e[r[n++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(o$e(t)||KWe.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var n,a,o,l,i=e.length;for(a=0;a<i;a++)(n=e[a])&&(l$e(n)&&(n='"'+n+'"'),o=!(l=o$e(n))&&/^\d+$/.test(n),t.call(r,n,l,o,a,e))}(Array.isArray(e)?e:a$e(e),t,r)}};function n$e(e){return e$e.get(e)||e$e.set(e,a$e(e).map((function(e){return e.replace(JWe,"$2")})))}function a$e(e){return e.match(YWe)||[""]}function o$e(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function l$e(e){return!o$e(e)&&(function(e){return e.match(XWe)&&!e.match(KWe)}(e)||function(e){return QWe.test(e)}(e))}const i$e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,s$e=e=>e.match(i$e)||[];var c$e=e=>s$e(e).reduce(((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`),""),d$e=e=>((e,t)=>s$e(e).join(t).toLowerCase())(e,"_"),u$e={exports:{}};function h$e(e,t){var r=e.length,n=new Array(r),a={},o=r,l=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),i=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach((function(e){if(!i.has(e[0])||!i.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)a[o]||s(e[o],o,new Set);return n;function s(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!i.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!a[t]){a[t]=!0;var d=l.get(e)||new Set;if(t=(d=Array.from(d)).length){o.add(e);do{var u=d[--t];s(u,i.get(u),o)}while(t);o.delete(e)}n[--r]=e}}}u$e.exports=function(e){return h$e(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},u$e.exports.array=h$e;var f$e=UWe(u$e.exports);const p$e=Object.prototype.toString,v$e=Error.prototype.toString,m$e=RegExp.prototype.toString,y$e="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",g$e=/^Symbol\((.*)\)(.*)$/;function b$e(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return y$e.call(e).replace(g$e,"Symbol($1)");const n=p$e.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+v$e.call(e)+"]":"RegExp"===n?m$e.call(e):null}function k$e(e,t){let r=b$e(e,t);return null!==r?r:JSON.stringify(e,(function(e,r){let n=b$e(this[e],t);return null!==n?n:r}),2)}function w$e(e){return null==e?[]:[].concat(e)}let _$e,x$e,M$e,j$e=/\$\{\s*(\w+)\s*\}/g;_$e=Symbol.toStringTag;class E$e{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_$e]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],w$e(e).forEach((e=>{if(O$e.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}x$e=Symbol.hasInstance,M$e=Symbol.toStringTag;class O$e extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(j$e,((e,r)=>k$e(t[r]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n,a){const o=new E$e(e,t,r,n);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[M$e]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,O$e)}static[x$e](e){return E$e[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let C$e={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=null!=n&&n!==r?` (cast from the value \`${k$e(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${k$e(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${k$e(r,!0)}\``+a}},z$e={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},P$e={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},R$e={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},A$e={notType:e=>{const{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${r.length} for value: \`${k$e(r,!0)}\``;if(r.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${k$e(r,!0)}\``}return O$e.formatError(C$e.notType,e)}};Object.assign(Object.create(null),{mixed:C$e,string:z$e,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:P$e,object:R$e,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:A$e});const I$e=e=>e&&e.__isYupSchema__;class L$e{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:a}=t,o="function"==typeof r?r:(...e)=>e.every((e=>e===r));return new L$e(e,((e,t)=>{var r;let l=o(...e)?n:a;return null!=(r=null==l?void 0:l(t))?r:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!I$e(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}}const S$e="$",V$e=".";class H$e{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===S$e,this.isValue=this.key[0]===V$e,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?S$e:this.isValue?V$e:"";this.path=this.key.slice(r.length),this.getter=this.path&&r$e.getter(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}H$e.prototype.__isYupRef=!0;const N$e=e=>null==e;function Z$e(e){function t({value:t,path:r="",options:n,originalValue:a,schema:o},l,i){const{name:s,test:c,params:d,message:u,skipAbsent:h}=e;let{parent:f,context:p,abortEarly:v=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n;function y(e){return H$e.isRef(e)?e.getValue(t,f,p):e}function g(e={}){const n=Object.assign({value:t,originalValue:a,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},d,e.params);for(const e of Object.keys(n))n[e]=y(n[e]);const l=new O$e(O$e.formatError(e.message||u,n),t,n.path,e.type||s,n.disableStackTrace);return l.params=n,l}const b=v?l:i;let k={path:r,parent:f,type:s,from:n.from,createError:g,resolve:y,options:n,originalValue:a,schema:o};const w=e=>{O$e.isError(e)?b(e):e?i(null):b(g())},_=e=>{O$e.isError(e)?b(e):l(e)};if(h&&N$e(t))return w(!0);let x;try{var M;if(x=c.call(k,t,k),"function"==typeof(null==(M=x)?void 0:M.then)){if(n.sync)throw new Error(`Validation test of type: "${k.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(x).then(w,_)}}catch(e){return void _(e)}w(x)}return t.OPTIONS=e,t}function D$e(e,t,r,n=r){let a,o,l;return t?(r$e.forEach(t,((i,s,c)=>{let d=s?i.slice(1,i.length-1):i,u="tuple"===(e=e.resolve({context:n,parent:a,value:r})).type,h=c?parseInt(d,10):0;if(e.innerType||u){if(u&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${i}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[h],e=u?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${l} which is a type: "${e.type}")`);a=r,r=r&&r[d],e=e.fields[d]}o=d,l=s?"["+i+"]":"."+i})),{schema:e,parent:a,parentPath:o}):{parent:a,parentPath:t,schema:e}}class B$e extends Set{describe(){const e=[];for(const t of this.values())e.push(H$e.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new B$e(this.values())}merge(e,t){const r=this.clone();return e.forEach((e=>r.add(e))),t.forEach((e=>r.delete(e))),r}}function q$e(e,t=new Map){if(I$e(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=q$e(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,a]of e.entries())r.set(n,q$e(a,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(q$e(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(const[n,a]of Object.entries(e))r[n]=q$e(a,t)}return r}class T$e{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new B$e,this._blacklist=new B$e,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(C$e.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=q$e(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const n=Object.assign({},t.spec,r.spec);return r.spec=n,r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce(((t,r)=>r.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,a;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(a=e.disableStackTrace)?a:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,a=r._cast(e,t);if(!1!==t.assert&&!r.isType(a)){if(n&&N$e(a))return a;let o=k$e(e),l=k$e(a);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(l!==o?`result of cast: ${l}`:""))}return a}_cast(e,t){let r=void 0===e?e:this.transforms.reduce(((t,r)=>r.call(this,t,e,this)),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:a,originalValue:o=e,strict:l=this.spec.strict}=t,i=e;l||(i=this._cast(i,Object.assign({assert:!1},t)));let s=[];for(let e of Object.values(this.internalTests))e&&s.push(e);this.runTests({path:a,value:i,originalValue:o,options:t,tests:s},r,(e=>{if(e.length)return n(e,i);this.runTests({path:a,value:i,originalValue:o,options:t,tests:this.tests},r,n)}))}runTests(e,t,r){let n=!1,{tests:a,value:o,originalValue:l,path:i,options:s}=e,c=e=>{n||(n=!0,t(e,o))},d=e=>{n||(n=!0,r(e,o))},u=a.length,h=[];if(!u)return d([]);let f={value:o,originalValue:l,path:i,options:s,schema:this};for(let e=0;e<a.length;e++){(0,a[e])(f,c,(function(e){e&&(Array.isArray(e)?h.push(...e):h.push(e)),--u<=0&&d(h)}))}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:a,options:o}){const l=null!=e?e:t;if(null==l)throw TypeError("Must include `key` or `index` for nested validations");const i="number"==typeof l;let s=r[l];const c=Object.assign({},o,{strict:!0,parent:r,value:s,originalValue:a[l],key:void 0,[i?"index":"key"]:l,path:i||l.includes(".")?`${n||""}[${i?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(s,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),a=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise(((r,o)=>n._validate(e,t,((e,t)=>{O$e.isError(e)&&(e.value=t),o(e)}),((e,t)=>{e.length?o(new O$e(e,t,void 0,void 0,a)):r(t)}))))}validateSync(e,t){var r;let n,a=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:a.spec.disableStackTrace;return a._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw O$e.isError(e)&&(e.value=t),e}),((t,r)=>{if(t.length)throw new O$e(t,e,void 0,void 0,o);n=r})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(O$e.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(O$e.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):q$e(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=Z$e({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=Z$e({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=C$e.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=C$e.notNull){return this.nullability(!1,e)}required(e=C$e.required){return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=C$e.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=Z$e(t),a=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(a)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=w$e(e).map((e=>new H$e(e)));return n.forEach((e=>{e.isSibling&&r.deps.push(e.key)})),r.conditions.push("function"==typeof t?new L$e(n,t):L$e.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=Z$e({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=C$e.oneOf){let r=this.clone();return e.forEach((e=>{r._whitelist.add(e),r._blacklist.delete(e)})),r.internalTests.whiteList=Z$e({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=C$e.notOneOf){let r=this.clone();return e.forEach((e=>{r._blacklist.add(e),r._whitelist.delete(e)})),r.internalTests.blacklist=Z$e({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:a,nullable:o}=t.spec,l={meta:n,label:r,optional:a,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,r)=>r.findIndex((t=>t.name===e.name))===t))};return l}}T$e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])T$e.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:o,schema:l}=D$e(this,t,r,n.context);return l[e](a&&a[o],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])T$e.prototype[e]=T$e.prototype.oneOf;for(const e of["not","nope"])T$e.prototype[e]=T$e.prototype.notOneOf;const F$e=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function W$e(e){var t,r;const n=F$e.exec(e);return n?{year:$$e(n[1]),month:$$e(n[2],1)-1,day:$$e(n[3],1),hour:$$e(n[4]),minute:$$e(n[5]),second:$$e(n[6]),millisecond:n[7]?$$e(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:$$e(n[10]),minuteOffset:$$e(n[11])}:null}function $$e(e,t=0){return Number(e)||t}let U$e=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,G$e=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Y$e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,K$e=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),X$e=e=>N$e(e)||e===e.trim(),Q$e={}.toString();function J$e(){return new eUe}class eUe extends T$e{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation((()=>{this.transform(((e,t,r)=>{if(!r.spec.coerce||r.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Q$e?e:n}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||C$e.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e,t=z$e.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=z$e.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=z$e.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,a=!1;return t&&("object"==typeof t?({excludeEmptyString:a=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||z$e.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&a||-1!==t.search(e)})}email(e=z$e.email){return this.matches(U$e,{name:"email",message:e,excludeEmptyString:!0})}url(e=z$e.url){return this.matches(G$e,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=z$e.uuid){return this.matches(Y$e,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(K$e,{name:"datetime",message:n||z$e.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||z$e.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const r=W$e(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||z$e.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;const t=W$e(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=z$e.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:X$e})}lowercase(e=z$e.lowercase){return this.transform((e=>N$e(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>N$e(e)||e===e.toLowerCase()})}uppercase(e=z$e.uppercase){return this.transform((e=>N$e(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>N$e(e)||e===e.toUpperCase()})}}J$e.prototype=eUe.prototype;let tUe=new Date("");class rUe extends T$e{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,r)=>!r.spec.coerce||r.isType(e)||null===e?e:(e=function(e){const t=W$e(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(e),isNaN(e)?rUe.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let r;if(H$e.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=P$e.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=P$e.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}}function nUe(e,t){let r=1/0;return e.some(((e,n)=>{var a;if(null!=(a=t.path)&&a.includes(e))return r=n,!0})),r}function aUe(e){return(t,r)=>nUe(e,t)-nUe(e,r)}rUe.INVALID_DATE=tUe;const oUe=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(e){}return r.isType(n)?n:e};function lUe(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=lUe(n);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=lUe(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(lUe)}):"optional"in e?e.optional():e}let iUe=e=>"[object Object]"===Object.prototype.toString.call(e);function sUe(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===r.indexOf(e)))}const cUe=aUe([]);function dUe(e){return new uUe(e)}class uUe extends T$e{constructor(e){super({type:"object",check:e=>iUe(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=cUe,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let a=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter((e=>!this._nodes.includes(e)))),i={},s=Object.assign({},t,{parent:i,__validating:t.__validating||!1}),c=!1;for(const e of l){let r=a[e],l=e in n;if(r){let a,o=n[e];s.path=(t.path?`${t.path}.`:"")+e,r=r.resolve({value:o,context:t.context,parent:i});let l=r instanceof T$e?r.spec:void 0,d=null==l?void 0:l.strict;if(null!=l&&l.strip){c=c||e in n;continue}a=t.__validating&&d?n[e]:r.cast(n[e],s),void 0!==a&&(i[e]=a)}else l&&!o&&(i[e]=n[e]);l===e in i&&i[e]===n[e]||(c=!0)}return c?i:n}_validate(e,t={},r,n){let{from:a=[],originalValue:o=e,recursive:l=this.spec.recursive}=t;t.from=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,((e,a)=>{if(!l||!iUe(a))return void n(e,a);o=o||a;let i=[];for(let e of this._nodes){let r=this.fields[e];r&&!H$e.isRef(r)&&i.push(r.asNestedTest({options:t,key:e,parent:a,parentPath:t.path,originalParent:o}))}this.runTests({tests:i,value:a,originalValue:o,options:t},r,(t=>{n(t.sort(this._sortErrors).concat(e),a)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){const n=r[e];r[e]=void 0===n?t:n}return t.withMutation((t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((r=>{var n;const a=this.fields[r];let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=a&&"getDefault"in a?a.getDefault(o):void 0})),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,a=new Set(t.map((([e,t])=>`${e}-${t}`)));function o(e,t){let o=r$e.split(e)[0];n.add(o),a.has(`${t}-${o}`)||r.push([t,o])}for(const t of Object.keys(e)){let r=e[t];n.add(t),H$e.isRef(r)&&r.isSibling?o(r.path,t):I$e(r)&&"deps"in r&&r.deps.forEach((e=>o(e,t)))}return f$e.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=aUe(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation((r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)}))}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return lUe(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter((([t,r])=>e.includes(t)&&e.includes(r))))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=r$e.getter(e,!0);return this.transform((a=>{if(!a)return a;let o=a;return((e,t)=>{const r=[...r$e.normalizePath(t)];if(1===r.length)return r[0]in e;let n=r.pop(),a=r$e.getter(r$e.join(r),!0)(e);return!(!a||!(n in a))})(a,e)&&(o=Object.assign({},a),r||delete o[e],o[t]=n(a)),o}))}json(){return this.transform(oUe)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||R$e.exact,test(e){if(null==e)return!0;const t=sUe(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=R$e.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=sUe(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=R$e.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const r={};for(const n of Object.keys(t))r[e(n)]=t[n];return r}))}camelCase(){return this.transformKeys(c$e)}snakeCase(){return this.transformKeys(d$e)}constantCase(){return this.transformKeys((e=>d$e(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[a,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[a]})),r.fields[a]=o.describe(t)}return r}}dUe.prototype=uUe.prototype;const hUe=({open:t,onOpenChange:r,title:n,description:a,children:o,confirmLabel:l="Confirm",cancelLabel:i="Cancel",onConfirm:s,onCancel:c,onClose:d,trigger:u,typeToConfirm:h,hideCancelButton:f=!1,isLoading:p=!1,testId:v,cancelClassName:m,confirmClassName:y})=>{const g=!!h,b=e.useMemo((()=>dUe({confirmInput:J$e().required("This field is required.").test("type-to-confirm",`Please type '${h}' to proceed`,(e=>e===h))})),[h]),{methods:k,FormRoot:w}=NWe({defaultValues:{confirmInput:""},validationSchema:b,mode:"onTouched",reValidateMode:"onChange"}),M=k.formState.isValid;e.useEffect((()=>{t||k.reset()}),[t]);const j=()=>{null==s||s()};return x(MZe,{open:t,onOpenChange:e=>{p||(e||null==d||d(),null==r||r(e))},children:[u&&_(jZe,{asChild:!0,children:u}),x(CZe,{"data-testid":v,children:[x(zZe,{children:[_(RZe,{"data-testid":v&&`${v}-title`,children:n}),a&&_(AZe,{"data-testid":v&&`${v}-description`,children:a})]}),o,g&&x(w,{className:"flex flex-col gap-4 w-full",onSubmit:j,children:[x("p",{className:"typography-small1 text-text-contrast-max",children:["Type “",h,"” to proceed."]}),_(BWe,{name:"confirmInput",component:Yme,componentProps:{label:"Type to confirm",required:!0,hasClearIcon:!0,keepFooterSpace:!0,fullwidth:!0,testId:v&&`${v}-type-to-confirm-input`},disabled:p})]}),x(PZe,{children:[!f&&_(LZe,{className:m,"data-testid":v&&`${v}-cancel-button`,onClick:()=>{null==c||c(),null==d||d()},disabled:p,children:i}),x(IZe,{type:"button",disabled:p||g&&!M,onClick:e=>{e.preventDefault(),g?k.handleSubmit(j)():null==s||s()},className:y,"data-testid":v&&`${v}-confirm-button`,children:[p&&_(Ix,{}),l]})]})]})]})};hUe.displayName="ConfirmDialog";const fUe=({open:e,onOpenChange:t,title:r,description:n,children:a,trigger:o,confirmAction:l,cancelAction:i,extraAction:s,scrollable:c=!1,className:d,formId:u,testId:h})=>{var f,p,v,m,y,g,b,k,w;const M=l||i||s;return x(qNe,{open:e,onOpenChange:t,children:[o&&_(TNe,{asChild:!0,children:o}),x(UNe,{className:d,"data-testid":h,children:[x(GNe,{children:[r&&_(XNe,{"data-testid":h&&`${h}-title`,children:r}),n&&_(QNe,{"data-testid":h&&`${h}-description`,children:n})]}),a&&_(YNe,{scrollable:c,children:a}),M&&x(KNe,{className:s?"justify-between":void 0,children:[s&&_(Lx,{type:null!==(f=s.type)&&void 0!==f?f:"button",variant:null!==(p=s.variant)&&void 0!==p?p:"outline",color:null!==(v=s.color)&&void 0!==v?v:"secondary",fullwidth:!1,disabled:s.disabled,isLoading:s.isLoading,onClick:s.onClick,className:s.className,"data-testid":h&&`${h}-extra-button`,children:s.label}),x("div",{className:"flex items-center gap-4",children:[i&&_(Lx,{type:null!==(m=i.type)&&void 0!==m?m:"button",variant:null!==(y=i.variant)&&void 0!==y?y:"outline",color:null!==(g=i.color)&&void 0!==g?g:"primary",fullwidth:!1,disabled:i.disabled,isLoading:i.isLoading,onClick:i.onClick,className:i.className,"data-testid":h&&`${h}-cancel-button`,children:i.label}),l&&_(Lx,{type:u?"submit":null!==(b=l.type)&&void 0!==b?b:"button",form:u,variant:null!==(k=l.variant)&&void 0!==k?k:"solid",color:null!==(w=l.color)&&void 0!==w?w:"primary",fullwidth:!1,disabled:l.disabled,isLoading:l.isLoading,onClick:l.onClick,className:l.className,"data-testid":h&&`${h}-confirm-button`,children:l.label})]})]})]})]})};function pUe(e,r,n){const a=[];let o=[];const l=e=>{var t,l;if(0===o.length)return;const i=o;o=[];const s=null!==(l=null===(t=i.find((e=>r.includes(e.value))))||void 0===t?void 0:t.value)&&void 0!==l?l:"";a.push(_(ZVe,{value:s,onValueChange:e=>{var t;const r=i.find((t=>t.value===e));r&&(null==n||n(e,r),null===(t=r.onClick)||void 0===t||t.call(r))},children:i.map((e=>_(WVe,{value:e.value,disabled:e.disabled,icon:e.icon,"data-testid":e.testId,children:e.label},e.value)))},e))};return e.forEach(((e,i)=>{var s;if("item"!==e.type||"radio"!==e.item.type)if(l(`radio-${i}`),"separator"!==e.type)if("label"!==e.type)if("custom"!==e.type)if("submenu"!==e.type){if("item"===e.type){const t=e.item,o=null!==(s=t.checked)&&void 0!==s?s:r.includes(t.value);if("checkbox"===t.type)return void a.push(_(FVe,{checked:o,disabled:t.disabled,"data-testid":t.testId,onCheckedChange:()=>{var e;null==n||n(t.value,t),null===(e=t.onClick)||void 0===e||e.call(t)},children:t.label},t.value));a.push(_(TVe,{selected:o,icon:t.icon,disabled:t.disabled,className:Ax(t.danger&&"text-red-500"),"data-testid":t.testId,onSelect:()=>{var e;null==n||n(t.value,t),null===(e=t.onClick)||void 0===e||e.call(t)},children:t.label},t.value))}}else a.push(x(NVe,{children:[x(DVe,{disabled:e.disabled,children:[x("div",{className:"flex shrink-0 flex-row gap-1",children:[_("span",{className:"size-4"}),e.icon]}),e.label]}),_(BVe,{children:pUe(e.items,r,n)})]},`sub-${i}`));else a.push(_(t.Fragment,{children:e.render()},`custom-${i}`));else a.push(_($Ve,{children:e.label},`lbl-${i}`));else a.push(_(UVe,{},`sep-${i}`));else o.push(e.item)})),l("radio-end"),a}fUe.displayName="FormDialog";const vUe=({trigger:e,items:t,selectedValues:r=[],onSelect:n,header:a,open:o,onOpenChange:l,align:i="start",side:s="bottom",sideOffset:c=4,contentClassName:d,testId:u})=>_("div",{onClick:e=>e.stopPropagation(),children:x(LVe,{open:o,onOpenChange:l,children:[e&&_(SVe,{asChild:!0,children:e}),x(qVe,{align:i,side:s,sideOffset:c,className:d,"data-testid":u,children:[a&&_("div",{className:"sticky top-0 z-10 bg-modal-surface border-b border-[var(--dropdown-menu-seperator-bg)]",children:a}),pUe(t,r,n)]})]})});vUe.displayName="Menu";const mUe=e=>String(e).length>10?e/1e3:e,yUe=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t},gUe=e=>{const t=new Date(e);return t.setHours(23,59,59,999),t},bUe=()=>{const e=yUe(new Date);return{startTime:e,endTime:gUe(e)}},kUe=e=>{const t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return mUe(t)},wUe={"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 _Ue(e,t=document){if("undefined"==typeof window)return"";const r=t instanceof Document?t.documentElement:t,n=e in wUe?wUe[e]:e.startsWith("--")?e:`--${e}`;return getComputedStyle(r).getPropertyValue(n).trim()}function xUe(e=Object.keys(wUe),t){return e.reduce(((e,r)=>(e[r]=_Ue(r,t),e)),{})}const MUe=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},jUe={"a-arrow-down":()=>Promise.resolve().then((function(){return Kx})),"a-arrow-up":()=>Promise.resolve().then((function(){return Qx})),"a-large-small":()=>Promise.resolve().then((function(){return eM})),accessibility:()=>Promise.resolve().then((function(){return rM})),activity:()=>Promise.resolve().then((function(){return aM})),"air-vent":()=>Promise.resolve().then((function(){return lM})),airplay:()=>Promise.resolve().then((function(){return sM})),"alarm-clock-check":()=>Promise.resolve().then((function(){return dM})),"alarm-clock-minus":()=>Promise.resolve().then((function(){return hM})),"alarm-clock-off":()=>Promise.resolve().then((function(){return pM})),"alarm-clock-plus":()=>Promise.resolve().then((function(){return mM})),"alarm-clock":()=>Promise.resolve().then((function(){return gM})),"alarm-smoke":()=>Promise.resolve().then((function(){return kM})),album:()=>Promise.resolve().then((function(){return _M})),"align-center-horizontal":()=>Promise.resolve().then((function(){return MM})),"align-center-vertical":()=>Promise.resolve().then((function(){return EM})),"align-center":()=>Promise.resolve().then((function(){return CM})),"align-end-horizontal":()=>Promise.resolve().then((function(){return PM})),"align-end-vertical":()=>Promise.resolve().then((function(){return AM})),"align-horizontal-distribute-center":()=>Promise.resolve().then((function(){return LM})),"align-horizontal-distribute-end":()=>Promise.resolve().then((function(){return VM})),"align-horizontal-distribute-start":()=>Promise.resolve().then((function(){return NM})),"align-horizontal-justify-center":()=>Promise.resolve().then((function(){return DM})),"align-horizontal-justify-end":()=>Promise.resolve().then((function(){return qM})),"align-horizontal-justify-start":()=>Promise.resolve().then((function(){return FM})),"align-horizontal-space-around":()=>Promise.resolve().then((function(){return $M})),"align-horizontal-space-between":()=>Promise.resolve().then((function(){return GM})),"align-justify":()=>Promise.resolve().then((function(){return KM})),"align-left":()=>Promise.resolve().then((function(){return QM})),"align-right":()=>Promise.resolve().then((function(){return ej})),"align-start-horizontal":()=>Promise.resolve().then((function(){return rj})),"align-start-vertical":()=>Promise.resolve().then((function(){return aj})),"align-vertical-distribute-center":()=>Promise.resolve().then((function(){return lj})),"align-vertical-distribute-end":()=>Promise.resolve().then((function(){return sj})),"align-vertical-distribute-start":()=>Promise.resolve().then((function(){return dj})),"align-vertical-justify-center":()=>Promise.resolve().then((function(){return hj})),"align-vertical-justify-end":()=>Promise.resolve().then((function(){return pj})),"align-vertical-justify-start":()=>Promise.resolve().then((function(){return mj})),"align-vertical-space-around":()=>Promise.resolve().then((function(){return gj})),"align-vertical-space-between":()=>Promise.resolve().then((function(){return kj})),ambulance:()=>Promise.resolve().then((function(){return _j})),ampersand:()=>Promise.resolve().then((function(){return Mj})),ampersands:()=>Promise.resolve().then((function(){return Ej})),amphora:()=>Promise.resolve().then((function(){return Cj})),anchor:()=>Promise.resolve().then((function(){return Pj})),angry:()=>Promise.resolve().then((function(){return Aj})),annoyed:()=>Promise.resolve().then((function(){return Lj})),antenna:()=>Promise.resolve().then((function(){return Vj})),anvil:()=>Promise.resolve().then((function(){return Nj})),aperture:()=>Promise.resolve().then((function(){return Dj})),"app-window-mac":()=>Promise.resolve().then((function(){return qj})),"app-window":()=>Promise.resolve().then((function(){return Fj})),apple:()=>Promise.resolve().then((function(){return $j})),"archive-restore":()=>Promise.resolve().then((function(){return Gj})),"archive-x":()=>Promise.resolve().then((function(){return Kj})),archive:()=>Promise.resolve().then((function(){return Qj})),armchair:()=>Promise.resolve().then((function(){return eE})),"arrow-big-down-dash":()=>Promise.resolve().then((function(){return rE})),"arrow-big-down":()=>Promise.resolve().then((function(){return aE})),"arrow-big-left-dash":()=>Promise.resolve().then((function(){return lE})),"arrow-big-left":()=>Promise.resolve().then((function(){return sE})),"arrow-big-right-dash":()=>Promise.resolve().then((function(){return dE})),"arrow-big-right":()=>Promise.resolve().then((function(){return hE})),"arrow-big-up-dash":()=>Promise.resolve().then((function(){return pE})),"arrow-big-up":()=>Promise.resolve().then((function(){return mE})),"arrow-down-0-1":()=>Promise.resolve().then((function(){return gE})),"arrow-down-1-0":()=>Promise.resolve().then((function(){return kE})),"arrow-down-a-z":()=>Promise.resolve().then((function(){return _E})),"arrow-down-from-line":()=>Promise.resolve().then((function(){return ME})),"arrow-down-left":()=>Promise.resolve().then((function(){return EE})),"arrow-down-narrow-wide":()=>Promise.resolve().then((function(){return CE})),"arrow-down-right":()=>Promise.resolve().then((function(){return PE})),"arrow-down-to-dot":()=>Promise.resolve().then((function(){return AE})),"arrow-down-to-line":()=>Promise.resolve().then((function(){return LE})),"arrow-down-up":()=>Promise.resolve().then((function(){return VE})),"arrow-down-wide-narrow":()=>Promise.resolve().then((function(){return NE})),"arrow-down-z-a":()=>Promise.resolve().then((function(){return DE})),"arrow-down":()=>Promise.resolve().then((function(){return qE})),"arrow-left-from-line":()=>Promise.resolve().then((function(){return FE})),"arrow-left-right":()=>Promise.resolve().then((function(){return $E})),"arrow-left-to-line":()=>Promise.resolve().then((function(){return GE})),"arrow-left":()=>Promise.resolve().then((function(){return KE})),"arrow-right-from-line":()=>Promise.resolve().then((function(){return QE})),"arrow-right-left":()=>Promise.resolve().then((function(){return eO})),"arrow-right-to-line":()=>Promise.resolve().then((function(){return rO})),"arrow-right":()=>Promise.resolve().then((function(){return aO})),"arrow-up-0-1":()=>Promise.resolve().then((function(){return lO})),"arrow-up-1-0":()=>Promise.resolve().then((function(){return sO})),"arrow-up-a-z":()=>Promise.resolve().then((function(){return dO})),"arrow-up-down":()=>Promise.resolve().then((function(){return hO})),"arrow-up-from-dot":()=>Promise.resolve().then((function(){return pO})),"arrow-up-from-line":()=>Promise.resolve().then((function(){return mO})),"arrow-up-left":()=>Promise.resolve().then((function(){return gO})),"arrow-up-narrow-wide":()=>Promise.resolve().then((function(){return kO})),"arrow-up-right":()=>Promise.resolve().then((function(){return _O})),"arrow-up-to-line":()=>Promise.resolve().then((function(){return MO})),"arrow-up-wide-narrow":()=>Promise.resolve().then((function(){return EO})),"arrow-up-z-a":()=>Promise.resolve().then((function(){return CO})),"arrow-up":()=>Promise.resolve().then((function(){return PO})),"arrows-up-from-line":()=>Promise.resolve().then((function(){return AO})),asterisk:()=>Promise.resolve().then((function(){return LO})),"at-sign":()=>Promise.resolve().then((function(){return VO})),atom:()=>Promise.resolve().then((function(){return NO})),"audio-lines":()=>Promise.resolve().then((function(){return DO})),"audio-waveform":()=>Promise.resolve().then((function(){return qO})),award:()=>Promise.resolve().then((function(){return FO})),axe:()=>Promise.resolve().then((function(){return $O})),"axis-3d":()=>Promise.resolve().then((function(){return GO})),baby:()=>Promise.resolve().then((function(){return KO})),backpack:()=>Promise.resolve().then((function(){return QO})),"badge-alert":()=>Promise.resolve().then((function(){return eC})),"badge-cent":()=>Promise.resolve().then((function(){return rC})),"badge-check":()=>Promise.resolve().then((function(){return aC})),"badge-dollar-sign":()=>Promise.resolve().then((function(){return lC})),"badge-euro":()=>Promise.resolve().then((function(){return sC})),"badge-help":()=>Promise.resolve().then((function(){return dC})),"badge-indian-rupee":()=>Promise.resolve().then((function(){return hC})),"badge-info":()=>Promise.resolve().then((function(){return pC})),"badge-japanese-yen":()=>Promise.resolve().then((function(){return mC})),"badge-minus":()=>Promise.resolve().then((function(){return gC})),"badge-percent":()=>Promise.resolve().then((function(){return kC})),"badge-plus":()=>Promise.resolve().then((function(){return _C})),"badge-pound-sterling":()=>Promise.resolve().then((function(){return MC})),"badge-russian-ruble":()=>Promise.resolve().then((function(){return EC})),"badge-swiss-franc":()=>Promise.resolve().then((function(){return CC})),"badge-x":()=>Promise.resolve().then((function(){return PC})),badge:()=>Promise.resolve().then((function(){return AC})),"baggage-claim":()=>Promise.resolve().then((function(){return LC})),ban:()=>Promise.resolve().then((function(){return VC})),banana:()=>Promise.resolve().then((function(){return NC})),bandage:()=>Promise.resolve().then((function(){return DC})),banknote:()=>Promise.resolve().then((function(){return qC})),barcode:()=>Promise.resolve().then((function(){return FC})),baseline:()=>Promise.resolve().then((function(){return $C})),bath:()=>Promise.resolve().then((function(){return GC})),"battery-charging":()=>Promise.resolve().then((function(){return KC})),"battery-full":()=>Promise.resolve().then((function(){return QC})),"battery-low":()=>Promise.resolve().then((function(){return ez})),"battery-medium":()=>Promise.resolve().then((function(){return rz})),"battery-warning":()=>Promise.resolve().then((function(){return az})),battery:()=>Promise.resolve().then((function(){return lz})),beaker:()=>Promise.resolve().then((function(){return sz})),"bean-off":()=>Promise.resolve().then((function(){return dz})),bean:()=>Promise.resolve().then((function(){return hz})),"bed-double":()=>Promise.resolve().then((function(){return pz})),"bed-single":()=>Promise.resolve().then((function(){return mz})),bed:()=>Promise.resolve().then((function(){return gz})),beef:()=>Promise.resolve().then((function(){return kz})),"beer-off":()=>Promise.resolve().then((function(){return _z})),beer:()=>Promise.resolve().then((function(){return Mz})),"bell-dot":()=>Promise.resolve().then((function(){return Ez})),"bell-electric":()=>Promise.resolve().then((function(){return Cz})),"bell-minus":()=>Promise.resolve().then((function(){return Pz})),"bell-off":()=>Promise.resolve().then((function(){return Az})),"bell-plus":()=>Promise.resolve().then((function(){return Lz})),"bell-ring":()=>Promise.resolve().then((function(){return Vz})),bell:()=>Promise.resolve().then((function(){return Nz})),"between-horizontal-end":()=>Promise.resolve().then((function(){return Dz})),"between-horizontal-start":()=>Promise.resolve().then((function(){return qz})),"between-vertical-end":()=>Promise.resolve().then((function(){return Fz})),"between-vertical-start":()=>Promise.resolve().then((function(){return $z})),"biceps-flexed":()=>Promise.resolve().then((function(){return Gz})),bike:()=>Promise.resolve().then((function(){return Kz})),binary:()=>Promise.resolve().then((function(){return Qz})),binoculars:()=>Promise.resolve().then((function(){return eP})),biohazard:()=>Promise.resolve().then((function(){return rP})),bird:()=>Promise.resolve().then((function(){return aP})),bitcoin:()=>Promise.resolve().then((function(){return lP})),blend:()=>Promise.resolve().then((function(){return sP})),blinds:()=>Promise.resolve().then((function(){return dP})),blocks:()=>Promise.resolve().then((function(){return hP})),"bluetooth-connected":()=>Promise.resolve().then((function(){return pP})),"bluetooth-off":()=>Promise.resolve().then((function(){return mP})),"bluetooth-searching":()=>Promise.resolve().then((function(){return gP})),bluetooth:()=>Promise.resolve().then((function(){return kP})),bold:()=>Promise.resolve().then((function(){return _P})),bolt:()=>Promise.resolve().then((function(){return MP})),bomb:()=>Promise.resolve().then((function(){return EP})),bone:()=>Promise.resolve().then((function(){return CP})),"book-a":()=>Promise.resolve().then((function(){return PP})),"book-audio":()=>Promise.resolve().then((function(){return AP})),"book-check":()=>Promise.resolve().then((function(){return LP})),"book-copy":()=>Promise.resolve().then((function(){return VP})),"book-dashed":()=>Promise.resolve().then((function(){return NP})),"book-down":()=>Promise.resolve().then((function(){return DP})),"book-headphones":()=>Promise.resolve().then((function(){return qP})),"book-heart":()=>Promise.resolve().then((function(){return FP})),"book-image":()=>Promise.resolve().then((function(){return $P})),"book-key":()=>Promise.resolve().then((function(){return GP})),"book-lock":()=>Promise.resolve().then((function(){return KP})),"book-marked":()=>Promise.resolve().then((function(){return QP})),"book-minus":()=>Promise.resolve().then((function(){return eR})),"book-open-check":()=>Promise.resolve().then((function(){return rR})),"book-open-text":()=>Promise.resolve().then((function(){return aR})),"book-open":()=>Promise.resolve().then((function(){return lR})),"book-plus":()=>Promise.resolve().then((function(){return sR})),"book-text":()=>Promise.resolve().then((function(){return dR})),"book-type":()=>Promise.resolve().then((function(){return hR})),"book-up-2":()=>Promise.resolve().then((function(){return pR})),"book-up":()=>Promise.resolve().then((function(){return mR})),"book-user":()=>Promise.resolve().then((function(){return gR})),"book-x":()=>Promise.resolve().then((function(){return kR})),book:()=>Promise.resolve().then((function(){return _R})),"bookmark-check":()=>Promise.resolve().then((function(){return MR})),"bookmark-minus":()=>Promise.resolve().then((function(){return ER})),"bookmark-plus":()=>Promise.resolve().then((function(){return CR})),"bookmark-x":()=>Promise.resolve().then((function(){return PR})),bookmark:()=>Promise.resolve().then((function(){return AR})),"boom-box":()=>Promise.resolve().then((function(){return LR})),"bot-message-square":()=>Promise.resolve().then((function(){return VR})),"bot-off":()=>Promise.resolve().then((function(){return NR})),bot:()=>Promise.resolve().then((function(){return DR})),box:()=>Promise.resolve().then((function(){return qR})),boxes:()=>Promise.resolve().then((function(){return FR})),braces:()=>Promise.resolve().then((function(){return $R})),brackets:()=>Promise.resolve().then((function(){return GR})),"brain-circuit":()=>Promise.resolve().then((function(){return KR})),"brain-cog":()=>Promise.resolve().then((function(){return QR})),brain:()=>Promise.resolve().then((function(){return eA})),"brick-wall":()=>Promise.resolve().then((function(){return rA})),"briefcase-business":()=>Promise.resolve().then((function(){return aA})),"briefcase-conveyor-belt":()=>Promise.resolve().then((function(){return lA})),"briefcase-medical":()=>Promise.resolve().then((function(){return sA})),briefcase:()=>Promise.resolve().then((function(){return dA})),"bring-to-front":()=>Promise.resolve().then((function(){return hA})),brush:()=>Promise.resolve().then((function(){return pA})),"bug-off":()=>Promise.resolve().then((function(){return mA})),"bug-play":()=>Promise.resolve().then((function(){return gA})),bug:()=>Promise.resolve().then((function(){return kA})),"building-2":()=>Promise.resolve().then((function(){return _A})),building:()=>Promise.resolve().then((function(){return MA})),"bus-front":()=>Promise.resolve().then((function(){return EA})),bus:()=>Promise.resolve().then((function(){return CA})),"cable-car":()=>Promise.resolve().then((function(){return PA})),cable:()=>Promise.resolve().then((function(){return AA})),"cake-slice":()=>Promise.resolve().then((function(){return LA})),cake:()=>Promise.resolve().then((function(){return VA})),calculator:()=>Promise.resolve().then((function(){return NA})),"calendar-1":()=>Promise.resolve().then((function(){return DA})),"calendar-arrow-down":()=>Promise.resolve().then((function(){return qA})),"calendar-arrow-up":()=>Promise.resolve().then((function(){return FA})),"calendar-check-2":()=>Promise.resolve().then((function(){return $A})),"calendar-check":()=>Promise.resolve().then((function(){return GA})),"calendar-clock":()=>Promise.resolve().then((function(){return KA})),"calendar-cog":()=>Promise.resolve().then((function(){return QA})),"calendar-days":()=>Promise.resolve().then((function(){return eI})),"calendar-fold":()=>Promise.resolve().then((function(){return rI})),"calendar-heart":()=>Promise.resolve().then((function(){return aI})),"calendar-minus-2":()=>Promise.resolve().then((function(){return lI})),"calendar-minus":()=>Promise.resolve().then((function(){return sI})),"calendar-off":()=>Promise.resolve().then((function(){return dI})),"calendar-plus-2":()=>Promise.resolve().then((function(){return hI})),"calendar-plus":()=>Promise.resolve().then((function(){return pI})),"calendar-range":()=>Promise.resolve().then((function(){return mI})),"calendar-search":()=>Promise.resolve().then((function(){return gI})),"calendar-x-2":()=>Promise.resolve().then((function(){return kI})),"calendar-x":()=>Promise.resolve().then((function(){return _I})),calendar:()=>Promise.resolve().then((function(){return MI})),"camera-off":()=>Promise.resolve().then((function(){return EI})),camera:()=>Promise.resolve().then((function(){return CI})),"candy-cane":()=>Promise.resolve().then((function(){return PI})),"candy-off":()=>Promise.resolve().then((function(){return AI})),candy:()=>Promise.resolve().then((function(){return LI})),cannabis:()=>Promise.resolve().then((function(){return VI})),"captions-off":()=>Promise.resolve().then((function(){return NI})),captions:()=>Promise.resolve().then((function(){return DI})),"car-front":()=>Promise.resolve().then((function(){return qI})),"car-taxi-front":()=>Promise.resolve().then((function(){return FI})),car:()=>Promise.resolve().then((function(){return $I})),caravan:()=>Promise.resolve().then((function(){return GI})),carrot:()=>Promise.resolve().then((function(){return KI})),"case-lower":()=>Promise.resolve().then((function(){return QI})),"case-sensitive":()=>Promise.resolve().then((function(){return eL})),"case-upper":()=>Promise.resolve().then((function(){return rL})),"cassette-tape":()=>Promise.resolve().then((function(){return aL})),cast:()=>Promise.resolve().then((function(){return lL})),castle:()=>Promise.resolve().then((function(){return sL})),cat:()=>Promise.resolve().then((function(){return dL})),cctv:()=>Promise.resolve().then((function(){return hL})),"chart-area":()=>Promise.resolve().then((function(){return pL})),"chart-bar-big":()=>Promise.resolve().then((function(){return mL})),"chart-bar-decreasing":()=>Promise.resolve().then((function(){return gL})),"chart-bar-increasing":()=>Promise.resolve().then((function(){return kL})),"chart-bar-stacked":()=>Promise.resolve().then((function(){return _L})),"chart-bar":()=>Promise.resolve().then((function(){return ML})),"chart-candlestick":()=>Promise.resolve().then((function(){return EL})),"chart-column-big":()=>Promise.resolve().then((function(){return CL})),"chart-column-decreasing":()=>Promise.resolve().then((function(){return PL})),"chart-column-increasing":()=>Promise.resolve().then((function(){return AL})),"chart-column-stacked":()=>Promise.resolve().then((function(){return LL})),"chart-column":()=>Promise.resolve().then((function(){return VL})),"chart-gantt":()=>Promise.resolve().then((function(){return NL})),"chart-line":()=>Promise.resolve().then((function(){return DL})),"chart-network":()=>Promise.resolve().then((function(){return qL})),"chart-no-axes-column-decreasing":()=>Promise.resolve().then((function(){return FL})),"chart-no-axes-column-increasing":()=>Promise.resolve().then((function(){return $L})),"chart-no-axes-column":()=>Promise.resolve().then((function(){return GL})),"chart-no-axes-combined":()=>Promise.resolve().then((function(){return KL})),"chart-no-axes-gantt":()=>Promise.resolve().then((function(){return QL})),"chart-pie":()=>Promise.resolve().then((function(){return eS})),"chart-scatter":()=>Promise.resolve().then((function(){return rS})),"chart-spline":()=>Promise.resolve().then((function(){return aS})),"check-check":()=>Promise.resolve().then((function(){return lS})),check:()=>Promise.resolve().then((function(){return sS})),"chef-hat":()=>Promise.resolve().then((function(){return dS})),cherry:()=>Promise.resolve().then((function(){return hS})),"chevron-down":()=>Promise.resolve().then((function(){return pS})),"chevron-first":()=>Promise.resolve().then((function(){return mS})),"chevron-last":()=>Promise.resolve().then((function(){return gS})),"chevron-left":()=>Promise.resolve().then((function(){return kS})),"chevron-right":()=>Promise.resolve().then((function(){return _S})),"chevron-up":()=>Promise.resolve().then((function(){return MS})),"chevrons-down-up":()=>Promise.resolve().then((function(){return ES})),"chevrons-down":()=>Promise.resolve().then((function(){return CS})),"chevrons-left-right-ellipsis":()=>Promise.resolve().then((function(){return PS})),"chevrons-left-right":()=>Promise.resolve().then((function(){return AS})),"chevrons-left":()=>Promise.resolve().then((function(){return LS})),"chevrons-right-left":()=>Promise.resolve().then((function(){return VS})),"chevrons-right":()=>Promise.resolve().then((function(){return NS})),"chevrons-up-down":()=>Promise.resolve().then((function(){return DS})),"chevrons-up":()=>Promise.resolve().then((function(){return qS})),chrome:()=>Promise.resolve().then((function(){return FS})),church:()=>Promise.resolve().then((function(){return $S})),"cigarette-off":()=>Promise.resolve().then((function(){return GS})),cigarette:()=>Promise.resolve().then((function(){return KS})),"circle-alert":()=>Promise.resolve().then((function(){return QS})),"circle-arrow-down":()=>Promise.resolve().then((function(){return eV})),"circle-arrow-left":()=>Promise.resolve().then((function(){return rV})),"circle-arrow-out-down-left":()=>Promise.resolve().then((function(){return aV})),"circle-arrow-out-down-right":()=>Promise.resolve().then((function(){return lV})),"circle-arrow-out-up-left":()=>Promise.resolve().then((function(){return sV})),"circle-arrow-out-up-right":()=>Promise.resolve().then((function(){return dV})),"circle-arrow-right":()=>Promise.resolve().then((function(){return hV})),"circle-arrow-up":()=>Promise.resolve().then((function(){return pV})),"circle-check-big":()=>Promise.resolve().then((function(){return mV})),"circle-check":()=>Promise.resolve().then((function(){return gV})),"circle-chevron-down":()=>Promise.resolve().then((function(){return kV})),"circle-chevron-left":()=>Promise.resolve().then((function(){return _V})),"circle-chevron-right":()=>Promise.resolve().then((function(){return MV})),"circle-chevron-up":()=>Promise.resolve().then((function(){return EV})),"circle-dashed":()=>Promise.resolve().then((function(){return CV})),"circle-divide":()=>Promise.resolve().then((function(){return PV})),"circle-dollar-sign":()=>Promise.resolve().then((function(){return AV})),"circle-dot-dashed":()=>Promise.resolve().then((function(){return LV})),"circle-dot":()=>Promise.resolve().then((function(){return VV})),"circle-ellipsis":()=>Promise.resolve().then((function(){return NV})),"circle-equal":()=>Promise.resolve().then((function(){return DV})),"circle-fading-arrow-up":()=>Promise.resolve().then((function(){return qV})),"circle-fading-plus":()=>Promise.resolve().then((function(){return FV})),"circle-gauge":()=>Promise.resolve().then((function(){return $V})),"circle-help":()=>Promise.resolve().then((function(){return GV})),"circle-minus":()=>Promise.resolve().then((function(){return KV})),"circle-off":()=>Promise.resolve().then((function(){return QV})),"circle-parking-off":()=>Promise.resolve().then((function(){return eH})),"circle-parking":()=>Promise.resolve().then((function(){return rH})),"circle-pause":()=>Promise.resolve().then((function(){return aH})),"circle-percent":()=>Promise.resolve().then((function(){return lH})),"circle-play":()=>Promise.resolve().then((function(){return sH})),"circle-plus":()=>Promise.resolve().then((function(){return dH})),"circle-power":()=>Promise.resolve().then((function(){return hH})),"circle-slash-2":()=>Promise.resolve().then((function(){return pH})),"circle-slash":()=>Promise.resolve().then((function(){return mH})),"circle-stop":()=>Promise.resolve().then((function(){return gH})),"circle-user-round":()=>Promise.resolve().then((function(){return kH})),"circle-user":()=>Promise.resolve().then((function(){return _H})),"circle-x":()=>Promise.resolve().then((function(){return MH})),circle:()=>Promise.resolve().then((function(){return EH})),"circuit-board":()=>Promise.resolve().then((function(){return CH})),citrus:()=>Promise.resolve().then((function(){return PH})),clapperboard:()=>Promise.resolve().then((function(){return AH})),"clipboard-check":()=>Promise.resolve().then((function(){return LH})),"clipboard-copy":()=>Promise.resolve().then((function(){return VH})),"clipboard-list":()=>Promise.resolve().then((function(){return NH})),"clipboard-minus":()=>Promise.resolve().then((function(){return DH})),"clipboard-paste":()=>Promise.resolve().then((function(){return qH})),"clipboard-pen-line":()=>Promise.resolve().then((function(){return FH})),"clipboard-pen":()=>Promise.resolve().then((function(){return $H})),"clipboard-plus":()=>Promise.resolve().then((function(){return GH})),"clipboard-type":()=>Promise.resolve().then((function(){return KH})),"clipboard-x":()=>Promise.resolve().then((function(){return QH})),clipboard:()=>Promise.resolve().then((function(){return eN})),"clock-1":()=>Promise.resolve().then((function(){return rN})),"clock-10":()=>Promise.resolve().then((function(){return aN})),"clock-11":()=>Promise.resolve().then((function(){return lN})),"clock-12":()=>Promise.resolve().then((function(){return sN})),"clock-2":()=>Promise.resolve().then((function(){return dN})),"clock-3":()=>Promise.resolve().then((function(){return hN})),"clock-4":()=>Promise.resolve().then((function(){return pN})),"clock-5":()=>Promise.resolve().then((function(){return mN})),"clock-6":()=>Promise.resolve().then((function(){return gN})),"clock-7":()=>Promise.resolve().then((function(){return kN})),"clock-8":()=>Promise.resolve().then((function(){return _N})),"clock-9":()=>Promise.resolve().then((function(){return MN})),"clock-alert":()=>Promise.resolve().then((function(){return EN})),"clock-arrow-down":()=>Promise.resolve().then((function(){return CN})),"clock-arrow-up":()=>Promise.resolve().then((function(){return PN})),clock:()=>Promise.resolve().then((function(){return AN})),"cloud-alert":()=>Promise.resolve().then((function(){return LN})),"cloud-cog":()=>Promise.resolve().then((function(){return VN})),"cloud-download":()=>Promise.resolve().then((function(){return NN})),"cloud-drizzle":()=>Promise.resolve().then((function(){return DN})),"cloud-fog":()=>Promise.resolve().then((function(){return qN})),"cloud-hail":()=>Promise.resolve().then((function(){return FN})),"cloud-lightning":()=>Promise.resolve().then((function(){return $N})),"cloud-moon-rain":()=>Promise.resolve().then((function(){return GN})),"cloud-moon":()=>Promise.resolve().then((function(){return KN})),"cloud-off":()=>Promise.resolve().then((function(){return QN})),"cloud-rain-wind":()=>Promise.resolve().then((function(){return eZ})),"cloud-rain":()=>Promise.resolve().then((function(){return rZ})),"cloud-snow":()=>Promise.resolve().then((function(){return aZ})),"cloud-sun-rain":()=>Promise.resolve().then((function(){return lZ})),"cloud-sun":()=>Promise.resolve().then((function(){return sZ})),"cloud-upload":()=>Promise.resolve().then((function(){return dZ})),cloud:()=>Promise.resolve().then((function(){return hZ})),cloudy:()=>Promise.resolve().then((function(){return pZ})),clover:()=>Promise.resolve().then((function(){return mZ})),club:()=>Promise.resolve().then((function(){return gZ})),"code-xml":()=>Promise.resolve().then((function(){return kZ})),code:()=>Promise.resolve().then((function(){return _Z})),codepen:()=>Promise.resolve().then((function(){return MZ})),codesandbox:()=>Promise.resolve().then((function(){return EZ})),coffee:()=>Promise.resolve().then((function(){return CZ})),cog:()=>Promise.resolve().then((function(){return PZ})),coins:()=>Promise.resolve().then((function(){return AZ})),"columns-2":()=>Promise.resolve().then((function(){return LZ})),"columns-3":()=>Promise.resolve().then((function(){return VZ})),"columns-4":()=>Promise.resolve().then((function(){return NZ})),combine:()=>Promise.resolve().then((function(){return DZ})),command:()=>Promise.resolve().then((function(){return qZ})),compass:()=>Promise.resolve().then((function(){return FZ})),component:()=>Promise.resolve().then((function(){return $Z})),computer:()=>Promise.resolve().then((function(){return GZ})),"concierge-bell":()=>Promise.resolve().then((function(){return KZ})),cone:()=>Promise.resolve().then((function(){return QZ})),construction:()=>Promise.resolve().then((function(){return eD})),"contact-round":()=>Promise.resolve().then((function(){return rD})),contact:()=>Promise.resolve().then((function(){return aD})),container:()=>Promise.resolve().then((function(){return lD})),contrast:()=>Promise.resolve().then((function(){return sD})),cookie:()=>Promise.resolve().then((function(){return dD})),"cooking-pot":()=>Promise.resolve().then((function(){return hD})),"copy-check":()=>Promise.resolve().then((function(){return pD})),"copy-minus":()=>Promise.resolve().then((function(){return mD})),"copy-plus":()=>Promise.resolve().then((function(){return gD})),"copy-slash":()=>Promise.resolve().then((function(){return kD})),"copy-x":()=>Promise.resolve().then((function(){return _D})),copy:()=>Promise.resolve().then((function(){return MD})),copyleft:()=>Promise.resolve().then((function(){return ED})),copyright:()=>Promise.resolve().then((function(){return CD})),"corner-down-left":()=>Promise.resolve().then((function(){return PD})),"corner-down-right":()=>Promise.resolve().then((function(){return AD})),"corner-left-down":()=>Promise.resolve().then((function(){return LD})),"corner-left-up":()=>Promise.resolve().then((function(){return VD})),"corner-right-down":()=>Promise.resolve().then((function(){return ND})),"corner-right-up":()=>Promise.resolve().then((function(){return DD})),"corner-up-left":()=>Promise.resolve().then((function(){return qD})),"corner-up-right":()=>Promise.resolve().then((function(){return FD})),cpu:()=>Promise.resolve().then((function(){return $D})),"creative-commons":()=>Promise.resolve().then((function(){return GD})),"credit-card":()=>Promise.resolve().then((function(){return KD})),croissant:()=>Promise.resolve().then((function(){return QD})),crop:()=>Promise.resolve().then((function(){return eB})),cross:()=>Promise.resolve().then((function(){return rB})),crosshair:()=>Promise.resolve().then((function(){return aB})),crown:()=>Promise.resolve().then((function(){return lB})),cuboid:()=>Promise.resolve().then((function(){return sB})),"cup-soda":()=>Promise.resolve().then((function(){return dB})),currency:()=>Promise.resolve().then((function(){return hB})),cylinder:()=>Promise.resolve().then((function(){return pB})),dam:()=>Promise.resolve().then((function(){return mB})),"database-backup":()=>Promise.resolve().then((function(){return gB})),"database-zap":()=>Promise.resolve().then((function(){return kB})),database:()=>Promise.resolve().then((function(){return _B})),delete:()=>Promise.resolve().then((function(){return MB})),dessert:()=>Promise.resolve().then((function(){return EB})),diameter:()=>Promise.resolve().then((function(){return CB})),"diamond-minus":()=>Promise.resolve().then((function(){return PB})),"diamond-percent":()=>Promise.resolve().then((function(){return AB})),"diamond-plus":()=>Promise.resolve().then((function(){return LB})),diamond:()=>Promise.resolve().then((function(){return VB})),"dice-1":()=>Promise.resolve().then((function(){return NB})),"dice-2":()=>Promise.resolve().then((function(){return DB})),"dice-3":()=>Promise.resolve().then((function(){return qB})),"dice-4":()=>Promise.resolve().then((function(){return FB})),"dice-5":()=>Promise.resolve().then((function(){return $B})),"dice-6":()=>Promise.resolve().then((function(){return GB})),dices:()=>Promise.resolve().then((function(){return KB})),diff:()=>Promise.resolve().then((function(){return QB})),"disc-2":()=>Promise.resolve().then((function(){return eq})),"disc-3":()=>Promise.resolve().then((function(){return rq})),"disc-album":()=>Promise.resolve().then((function(){return aq})),disc:()=>Promise.resolve().then((function(){return lq})),divide:()=>Promise.resolve().then((function(){return sq})),"dna-off":()=>Promise.resolve().then((function(){return dq})),dna:()=>Promise.resolve().then((function(){return hq})),dock:()=>Promise.resolve().then((function(){return pq})),dog:()=>Promise.resolve().then((function(){return mq})),"dollar-sign":()=>Promise.resolve().then((function(){return gq})),donut:()=>Promise.resolve().then((function(){return kq})),"door-closed":()=>Promise.resolve().then((function(){return _q})),"door-open":()=>Promise.resolve().then((function(){return Mq})),dot:()=>Promise.resolve().then((function(){return Eq})),download:()=>Promise.resolve().then((function(){return Cq})),"drafting-compass":()=>Promise.resolve().then((function(){return Pq})),drama:()=>Promise.resolve().then((function(){return Aq})),dribbble:()=>Promise.resolve().then((function(){return Lq})),drill:()=>Promise.resolve().then((function(){return Vq})),droplet:()=>Promise.resolve().then((function(){return Nq})),droplets:()=>Promise.resolve().then((function(){return Dq})),drum:()=>Promise.resolve().then((function(){return qq})),drumstick:()=>Promise.resolve().then((function(){return Fq})),dumbbell:()=>Promise.resolve().then((function(){return $q})),"ear-off":()=>Promise.resolve().then((function(){return Gq})),ear:()=>Promise.resolve().then((function(){return Kq})),"earth-lock":()=>Promise.resolve().then((function(){return Qq})),earth:()=>Promise.resolve().then((function(){return eT})),eclipse:()=>Promise.resolve().then((function(){return rT})),"egg-fried":()=>Promise.resolve().then((function(){return aT})),"egg-off":()=>Promise.resolve().then((function(){return lT})),egg:()=>Promise.resolve().then((function(){return sT})),"ellipsis-vertical":()=>Promise.resolve().then((function(){return dT})),ellipsis:()=>Promise.resolve().then((function(){return hT})),"equal-approximately":()=>Promise.resolve().then((function(){return pT})),"equal-not":()=>Promise.resolve().then((function(){return mT})),equal:()=>Promise.resolve().then((function(){return gT})),eraser:()=>Promise.resolve().then((function(){return kT})),"ethernet-port":()=>Promise.resolve().then((function(){return _T})),euro:()=>Promise.resolve().then((function(){return MT})),expand:()=>Promise.resolve().then((function(){return ET})),"external-link":()=>Promise.resolve().then((function(){return CT})),"eye-closed":()=>Promise.resolve().then((function(){return PT})),"eye-off":()=>Promise.resolve().then((function(){return AT})),eye:()=>Promise.resolve().then((function(){return LT})),facebook:()=>Promise.resolve().then((function(){return VT})),factory:()=>Promise.resolve().then((function(){return NT})),fan:()=>Promise.resolve().then((function(){return DT})),"fast-forward":()=>Promise.resolve().then((function(){return qT})),feather:()=>Promise.resolve().then((function(){return FT})),fence:()=>Promise.resolve().then((function(){return $T})),"ferris-wheel":()=>Promise.resolve().then((function(){return GT})),figma:()=>Promise.resolve().then((function(){return KT})),"file-archive":()=>Promise.resolve().then((function(){return QT})),"file-audio-2":()=>Promise.resolve().then((function(){return eF})),"file-audio":()=>Promise.resolve().then((function(){return rF})),"file-axis-3d":()=>Promise.resolve().then((function(){return aF})),"file-badge-2":()=>Promise.resolve().then((function(){return lF})),"file-badge":()=>Promise.resolve().then((function(){return sF})),"file-box":()=>Promise.resolve().then((function(){return dF})),"file-chart-column-increasing":()=>Promise.resolve().then((function(){return hF})),"file-chart-column":()=>Promise.resolve().then((function(){return pF})),"file-chart-line":()=>Promise.resolve().then((function(){return mF})),"file-chart-pie":()=>Promise.resolve().then((function(){return gF})),"file-check-2":()=>Promise.resolve().then((function(){return kF})),"file-check":()=>Promise.resolve().then((function(){return _F})),"file-clock":()=>Promise.resolve().then((function(){return MF})),"file-code-2":()=>Promise.resolve().then((function(){return EF})),"file-code":()=>Promise.resolve().then((function(){return CF})),"file-cog":()=>Promise.resolve().then((function(){return PF})),"file-diff":()=>Promise.resolve().then((function(){return AF})),"file-digit":()=>Promise.resolve().then((function(){return LF})),"file-down":()=>Promise.resolve().then((function(){return VF})),"file-heart":()=>Promise.resolve().then((function(){return NF})),"file-image":()=>Promise.resolve().then((function(){return DF})),"file-input":()=>Promise.resolve().then((function(){return qF})),"file-json-2":()=>Promise.resolve().then((function(){return FF})),"file-json":()=>Promise.resolve().then((function(){return $F})),"file-key-2":()=>Promise.resolve().then((function(){return GF})),"file-key":()=>Promise.resolve().then((function(){return KF})),"file-lock-2":()=>Promise.resolve().then((function(){return QF})),"file-lock":()=>Promise.resolve().then((function(){return eW})),"file-minus-2":()=>Promise.resolve().then((function(){return rW})),"file-minus":()=>Promise.resolve().then((function(){return aW})),"file-music":()=>Promise.resolve().then((function(){return lW})),"file-output":()=>Promise.resolve().then((function(){return sW})),"file-pen-line":()=>Promise.resolve().then((function(){return dW})),"file-pen":()=>Promise.resolve().then((function(){return hW})),"file-plus-2":()=>Promise.resolve().then((function(){return pW})),"file-plus":()=>Promise.resolve().then((function(){return mW})),"file-question":()=>Promise.resolve().then((function(){return gW})),"file-scan":()=>Promise.resolve().then((function(){return kW})),"file-search-2":()=>Promise.resolve().then((function(){return _W})),"file-search":()=>Promise.resolve().then((function(){return MW})),"file-sliders":()=>Promise.resolve().then((function(){return EW})),"file-spreadsheet":()=>Promise.resolve().then((function(){return CW})),"file-stack":()=>Promise.resolve().then((function(){return PW})),"file-symlink":()=>Promise.resolve().then((function(){return AW})),"file-terminal":()=>Promise.resolve().then((function(){return LW})),"file-text":()=>Promise.resolve().then((function(){return VW})),"file-type-2":()=>Promise.resolve().then((function(){return NW})),"file-type":()=>Promise.resolve().then((function(){return DW})),"file-up":()=>Promise.resolve().then((function(){return qW})),"file-user":()=>Promise.resolve().then((function(){return FW})),"file-video-2":()=>Promise.resolve().then((function(){return $W})),"file-video":()=>Promise.resolve().then((function(){return GW})),"file-volume-2":()=>Promise.resolve().then((function(){return KW})),"file-volume":()=>Promise.resolve().then((function(){return QW})),"file-warning":()=>Promise.resolve().then((function(){return e$})),"file-x-2":()=>Promise.resolve().then((function(){return r$})),"file-x":()=>Promise.resolve().then((function(){return a$})),file:()=>Promise.resolve().then((function(){return l$})),files:()=>Promise.resolve().then((function(){return s$})),film:()=>Promise.resolve().then((function(){return d$})),"filter-x":()=>Promise.resolve().then((function(){return h$})),filter:()=>Promise.resolve().then((function(){return p$})),fingerprint:()=>Promise.resolve().then((function(){return m$})),"fire-extinguisher":()=>Promise.resolve().then((function(){return g$})),"fish-off":()=>Promise.resolve().then((function(){return k$})),"fish-symbol":()=>Promise.resolve().then((function(){return _$})),fish:()=>Promise.resolve().then((function(){return M$})),"flag-off":()=>Promise.resolve().then((function(){return E$})),"flag-triangle-left":()=>Promise.resolve().then((function(){return C$})),"flag-triangle-right":()=>Promise.resolve().then((function(){return P$})),flag:()=>Promise.resolve().then((function(){return A$})),"flame-kindling":()=>Promise.resolve().then((function(){return L$})),flame:()=>Promise.resolve().then((function(){return V$})),"flashlight-off":()=>Promise.resolve().then((function(){return N$})),flashlight:()=>Promise.resolve().then((function(){return D$})),"flask-conical-off":()=>Promise.resolve().then((function(){return q$})),"flask-conical":()=>Promise.resolve().then((function(){return F$})),"flask-round":()=>Promise.resolve().then((function(){return $$})),"flip-horizontal-2":()=>Promise.resolve().then((function(){return G$})),"flip-horizontal":()=>Promise.resolve().then((function(){return K$})),"flip-vertical-2":()=>Promise.resolve().then((function(){return Q$})),"flip-vertical":()=>Promise.resolve().then((function(){return eU})),"flower-2":()=>Promise.resolve().then((function(){return rU})),flower:()=>Promise.resolve().then((function(){return aU})),focus:()=>Promise.resolve().then((function(){return lU})),"fold-horizontal":()=>Promise.resolve().then((function(){return sU})),"fold-vertical":()=>Promise.resolve().then((function(){return dU})),"folder-archive":()=>Promise.resolve().then((function(){return hU})),"folder-check":()=>Promise.resolve().then((function(){return pU})),"folder-clock":()=>Promise.resolve().then((function(){return mU})),"folder-closed":()=>Promise.resolve().then((function(){return gU})),"folder-code":()=>Promise.resolve().then((function(){return kU})),"folder-cog":()=>Promise.resolve().then((function(){return _U})),"folder-dot":()=>Promise.resolve().then((function(){return MU})),"folder-down":()=>Promise.resolve().then((function(){return EU})),"folder-git-2":()=>Promise.resolve().then((function(){return CU})),"folder-git":()=>Promise.resolve().then((function(){return PU})),"folder-heart":()=>Promise.resolve().then((function(){return AU})),"folder-input":()=>Promise.resolve().then((function(){return LU})),"folder-kanban":()=>Promise.resolve().then((function(){return VU})),"folder-key":()=>Promise.resolve().then((function(){return NU})),"folder-lock":()=>Promise.resolve().then((function(){return DU})),"folder-minus":()=>Promise.resolve().then((function(){return qU})),"folder-open-dot":()=>Promise.resolve().then((function(){return FU})),"folder-open":()=>Promise.resolve().then((function(){return $U})),"folder-output":()=>Promise.resolve().then((function(){return GU})),"folder-pen":()=>Promise.resolve().then((function(){return KU})),"folder-plus":()=>Promise.resolve().then((function(){return QU})),"folder-root":()=>Promise.resolve().then((function(){return eG})),"folder-search-2":()=>Promise.resolve().then((function(){return rG})),"folder-search":()=>Promise.resolve().then((function(){return aG})),"folder-symlink":()=>Promise.resolve().then((function(){return lG})),"folder-sync":()=>Promise.resolve().then((function(){return sG})),"folder-tree":()=>Promise.resolve().then((function(){return dG})),"folder-up":()=>Promise.resolve().then((function(){return hG})),"folder-x":()=>Promise.resolve().then((function(){return pG})),folder:()=>Promise.resolve().then((function(){return mG})),folders:()=>Promise.resolve().then((function(){return gG})),footprints:()=>Promise.resolve().then((function(){return kG})),forklift:()=>Promise.resolve().then((function(){return _G})),forward:()=>Promise.resolve().then((function(){return MG})),frame:()=>Promise.resolve().then((function(){return EG})),framer:()=>Promise.resolve().then((function(){return CG})),frown:()=>Promise.resolve().then((function(){return PG})),fuel:()=>Promise.resolve().then((function(){return AG})),fullscreen:()=>Promise.resolve().then((function(){return LG})),"gallery-horizontal-end":()=>Promise.resolve().then((function(){return VG})),"gallery-horizontal":()=>Promise.resolve().then((function(){return NG})),"gallery-thumbnails":()=>Promise.resolve().then((function(){return DG})),"gallery-vertical-end":()=>Promise.resolve().then((function(){return qG})),"gallery-vertical":()=>Promise.resolve().then((function(){return FG})),"gamepad-2":()=>Promise.resolve().then((function(){return $G})),gamepad:()=>Promise.resolve().then((function(){return GG})),gauge:()=>Promise.resolve().then((function(){return KG})),gavel:()=>Promise.resolve().then((function(){return QG})),gem:()=>Promise.resolve().then((function(){return eY})),ghost:()=>Promise.resolve().then((function(){return rY})),gift:()=>Promise.resolve().then((function(){return aY})),"git-branch-plus":()=>Promise.resolve().then((function(){return lY})),"git-branch":()=>Promise.resolve().then((function(){return sY})),"git-commit-horizontal":()=>Promise.resolve().then((function(){return dY})),"git-commit-vertical":()=>Promise.resolve().then((function(){return hY})),"git-compare-arrows":()=>Promise.resolve().then((function(){return pY})),"git-compare":()=>Promise.resolve().then((function(){return mY})),"git-fork":()=>Promise.resolve().then((function(){return gY})),"git-graph":()=>Promise.resolve().then((function(){return kY})),"git-merge":()=>Promise.resolve().then((function(){return _Y})),"git-pull-request-arrow":()=>Promise.resolve().then((function(){return MY})),"git-pull-request-closed":()=>Promise.resolve().then((function(){return EY})),"git-pull-request-create-arrow":()=>Promise.resolve().then((function(){return CY})),"git-pull-request-create":()=>Promise.resolve().then((function(){return PY})),"git-pull-request-draft":()=>Promise.resolve().then((function(){return AY})),"git-pull-request":()=>Promise.resolve().then((function(){return LY})),github:()=>Promise.resolve().then((function(){return VY})),gitlab:()=>Promise.resolve().then((function(){return NY})),"glass-water":()=>Promise.resolve().then((function(){return DY})),glasses:()=>Promise.resolve().then((function(){return qY})),"globe-lock":()=>Promise.resolve().then((function(){return FY})),globe:()=>Promise.resolve().then((function(){return $Y})),goal:()=>Promise.resolve().then((function(){return GY})),grab:()=>Promise.resolve().then((function(){return KY})),"graduation-cap":()=>Promise.resolve().then((function(){return QY})),grape:()=>Promise.resolve().then((function(){return eK})),"grid-2x2-check":()=>Promise.resolve().then((function(){return rK})),"grid-2x2-plus":()=>Promise.resolve().then((function(){return aK})),"grid-2x2-x":()=>Promise.resolve().then((function(){return lK})),"grid-2x2":()=>Promise.resolve().then((function(){return sK})),"grid-3x3":()=>Promise.resolve().then((function(){return dK})),"grip-horizontal":()=>Promise.resolve().then((function(){return hK})),"grip-vertical":()=>Promise.resolve().then((function(){return pK})),grip:()=>Promise.resolve().then((function(){return mK})),group:()=>Promise.resolve().then((function(){return gK})),guitar:()=>Promise.resolve().then((function(){return kK})),ham:()=>Promise.resolve().then((function(){return _K})),hammer:()=>Promise.resolve().then((function(){return MK})),"hand-coins":()=>Promise.resolve().then((function(){return EK})),"hand-heart":()=>Promise.resolve().then((function(){return CK})),"hand-helping":()=>Promise.resolve().then((function(){return PK})),"hand-metal":()=>Promise.resolve().then((function(){return AK})),"hand-platter":()=>Promise.resolve().then((function(){return LK})),hand:()=>Promise.resolve().then((function(){return VK})),handshake:()=>Promise.resolve().then((function(){return NK})),"hard-drive-download":()=>Promise.resolve().then((function(){return DK})),"hard-drive-upload":()=>Promise.resolve().then((function(){return qK})),"hard-drive":()=>Promise.resolve().then((function(){return FK})),"hard-hat":()=>Promise.resolve().then((function(){return $K})),hash:()=>Promise.resolve().then((function(){return GK})),haze:()=>Promise.resolve().then((function(){return KK})),"hdmi-port":()=>Promise.resolve().then((function(){return QK})),"heading-1":()=>Promise.resolve().then((function(){return eX})),"heading-2":()=>Promise.resolve().then((function(){return rX})),"heading-3":()=>Promise.resolve().then((function(){return aX})),"heading-4":()=>Promise.resolve().then((function(){return lX})),"heading-5":()=>Promise.resolve().then((function(){return sX})),"heading-6":()=>Promise.resolve().then((function(){return dX})),heading:()=>Promise.resolve().then((function(){return hX})),"headphone-off":()=>Promise.resolve().then((function(){return pX})),headphones:()=>Promise.resolve().then((function(){return mX})),headset:()=>Promise.resolve().then((function(){return gX})),"heart-crack":()=>Promise.resolve().then((function(){return kX})),"heart-handshake":()=>Promise.resolve().then((function(){return _X})),"heart-off":()=>Promise.resolve().then((function(){return MX})),"heart-pulse":()=>Promise.resolve().then((function(){return EX})),heart:()=>Promise.resolve().then((function(){return CX})),heater:()=>Promise.resolve().then((function(){return PX})),hexagon:()=>Promise.resolve().then((function(){return AX})),highlighter:()=>Promise.resolve().then((function(){return LX})),history:()=>Promise.resolve().then((function(){return VX})),"hop-off":()=>Promise.resolve().then((function(){return NX})),hop:()=>Promise.resolve().then((function(){return DX})),hospital:()=>Promise.resolve().then((function(){return qX})),hotel:()=>Promise.resolve().then((function(){return FX})),hourglass:()=>Promise.resolve().then((function(){return $X})),"house-plug":()=>Promise.resolve().then((function(){return GX})),"house-plus":()=>Promise.resolve().then((function(){return KX})),house:()=>Promise.resolve().then((function(){return QX})),"ice-cream-bowl":()=>Promise.resolve().then((function(){return eQ})),"ice-cream-cone":()=>Promise.resolve().then((function(){return rQ})),"id-card":()=>Promise.resolve().then((function(){return aQ})),"image-down":()=>Promise.resolve().then((function(){return lQ})),"image-minus":()=>Promise.resolve().then((function(){return sQ})),"image-off":()=>Promise.resolve().then((function(){return dQ})),"image-play":()=>Promise.resolve().then((function(){return hQ})),"image-plus":()=>Promise.resolve().then((function(){return pQ})),"image-up":()=>Promise.resolve().then((function(){return mQ})),image:()=>Promise.resolve().then((function(){return gQ})),images:()=>Promise.resolve().then((function(){return kQ})),import:()=>Promise.resolve().then((function(){return _Q})),inbox:()=>Promise.resolve().then((function(){return MQ})),"indent-decrease":()=>Promise.resolve().then((function(){return EQ})),"indent-increase":()=>Promise.resolve().then((function(){return CQ})),"indian-rupee":()=>Promise.resolve().then((function(){return PQ})),infinity:()=>Promise.resolve().then((function(){return AQ})),info:()=>Promise.resolve().then((function(){return LQ})),"inspection-panel":()=>Promise.resolve().then((function(){return VQ})),instagram:()=>Promise.resolve().then((function(){return NQ})),italic:()=>Promise.resolve().then((function(){return DQ})),"iteration-ccw":()=>Promise.resolve().then((function(){return qQ})),"iteration-cw":()=>Promise.resolve().then((function(){return FQ})),"japanese-yen":()=>Promise.resolve().then((function(){return $Q})),joystick:()=>Promise.resolve().then((function(){return GQ})),kanban:()=>Promise.resolve().then((function(){return KQ})),"key-round":()=>Promise.resolve().then((function(){return QQ})),"key-square":()=>Promise.resolve().then((function(){return eJ})),key:()=>Promise.resolve().then((function(){return rJ})),"keyboard-music":()=>Promise.resolve().then((function(){return aJ})),"keyboard-off":()=>Promise.resolve().then((function(){return lJ})),keyboard:()=>Promise.resolve().then((function(){return sJ})),"lamp-ceiling":()=>Promise.resolve().then((function(){return dJ})),"lamp-desk":()=>Promise.resolve().then((function(){return hJ})),"lamp-floor":()=>Promise.resolve().then((function(){return pJ})),"lamp-wall-down":()=>Promise.resolve().then((function(){return mJ})),"lamp-wall-up":()=>Promise.resolve().then((function(){return gJ})),lamp:()=>Promise.resolve().then((function(){return kJ})),"land-plot":()=>Promise.resolve().then((function(){return _J})),landmark:()=>Promise.resolve().then((function(){return MJ})),languages:()=>Promise.resolve().then((function(){return EJ})),"laptop-minimal-check":()=>Promise.resolve().then((function(){return CJ})),"laptop-minimal":()=>Promise.resolve().then((function(){return PJ})),laptop:()=>Promise.resolve().then((function(){return AJ})),"lasso-select":()=>Promise.resolve().then((function(){return LJ})),lasso:()=>Promise.resolve().then((function(){return VJ})),laugh:()=>Promise.resolve().then((function(){return NJ})),"layers-2":()=>Promise.resolve().then((function(){return DJ})),"layers-3":()=>Promise.resolve().then((function(){return qJ})),layers:()=>Promise.resolve().then((function(){return FJ})),"layout-dashboard":()=>Promise.resolve().then((function(){return $J})),"layout-grid":()=>Promise.resolve().then((function(){return GJ})),"layout-list":()=>Promise.resolve().then((function(){return KJ})),"layout-panel-left":()=>Promise.resolve().then((function(){return QJ})),"layout-panel-top":()=>Promise.resolve().then((function(){return e1})),"layout-template":()=>Promise.resolve().then((function(){return r1})),leaf:()=>Promise.resolve().then((function(){return a1})),"leafy-green":()=>Promise.resolve().then((function(){return l1})),lectern:()=>Promise.resolve().then((function(){return s1})),"letter-text":()=>Promise.resolve().then((function(){return d1})),"library-big":()=>Promise.resolve().then((function(){return h1})),library:()=>Promise.resolve().then((function(){return p1})),"life-buoy":()=>Promise.resolve().then((function(){return m1})),ligature:()=>Promise.resolve().then((function(){return g1})),"lightbulb-off":()=>Promise.resolve().then((function(){return k1})),lightbulb:()=>Promise.resolve().then((function(){return _1})),"link-2-off":()=>Promise.resolve().then((function(){return M1})),"link-2":()=>Promise.resolve().then((function(){return E1})),link:()=>Promise.resolve().then((function(){return C1})),linkedin:()=>Promise.resolve().then((function(){return P1})),"list-check":()=>Promise.resolve().then((function(){return A1})),"list-checks":()=>Promise.resolve().then((function(){return L1})),"list-collapse":()=>Promise.resolve().then((function(){return V1})),"list-end":()=>Promise.resolve().then((function(){return N1})),"list-filter":()=>Promise.resolve().then((function(){return D1})),"list-minus":()=>Promise.resolve().then((function(){return q1})),"list-music":()=>Promise.resolve().then((function(){return F1})),"list-ordered":()=>Promise.resolve().then((function(){return $1})),"list-plus":()=>Promise.resolve().then((function(){return G1})),"list-restart":()=>Promise.resolve().then((function(){return K1})),"list-start":()=>Promise.resolve().then((function(){return Q1})),"list-todo":()=>Promise.resolve().then((function(){return e0})),"list-tree":()=>Promise.resolve().then((function(){return r0})),"list-video":()=>Promise.resolve().then((function(){return a0})),"list-x":()=>Promise.resolve().then((function(){return l0})),list:()=>Promise.resolve().then((function(){return s0})),"loader-circle":()=>Promise.resolve().then((function(){return d0})),"loader-pinwheel":()=>Promise.resolve().then((function(){return h0})),loader:()=>Promise.resolve().then((function(){return p0})),"locate-fixed":()=>Promise.resolve().then((function(){return m0})),"locate-off":()=>Promise.resolve().then((function(){return g0})),locate:()=>Promise.resolve().then((function(){return k0})),"lock-keyhole-open":()=>Promise.resolve().then((function(){return _0})),"lock-keyhole":()=>Promise.resolve().then((function(){return M0})),"lock-open":()=>Promise.resolve().then((function(){return E0})),lock:()=>Promise.resolve().then((function(){return C0})),"log-in":()=>Promise.resolve().then((function(){return P0})),"log-out":()=>Promise.resolve().then((function(){return A0})),logs:()=>Promise.resolve().then((function(){return L0})),lollipop:()=>Promise.resolve().then((function(){return V0})),luggage:()=>Promise.resolve().then((function(){return N0})),magnet:()=>Promise.resolve().then((function(){return D0})),"mail-check":()=>Promise.resolve().then((function(){return q0})),"mail-minus":()=>Promise.resolve().then((function(){return F0})),"mail-open":()=>Promise.resolve().then((function(){return $0})),"mail-plus":()=>Promise.resolve().then((function(){return G0})),"mail-question":()=>Promise.resolve().then((function(){return K0})),"mail-search":()=>Promise.resolve().then((function(){return Q0})),"mail-warning":()=>Promise.resolve().then((function(){return e2})),"mail-x":()=>Promise.resolve().then((function(){return r2})),mail:()=>Promise.resolve().then((function(){return a2})),mailbox:()=>Promise.resolve().then((function(){return l2})),mails:()=>Promise.resolve().then((function(){return s2})),"map-pin-check-inside":()=>Promise.resolve().then((function(){return d2})),"map-pin-check":()=>Promise.resolve().then((function(){return h2})),"map-pin-house":()=>Promise.resolve().then((function(){return p2})),"map-pin-minus-inside":()=>Promise.resolve().then((function(){return m2})),"map-pin-minus":()=>Promise.resolve().then((function(){return g2})),"map-pin-off":()=>Promise.resolve().then((function(){return k2})),"map-pin-plus-inside":()=>Promise.resolve().then((function(){return _2})),"map-pin-plus":()=>Promise.resolve().then((function(){return M2})),"map-pin-x-inside":()=>Promise.resolve().then((function(){return E2})),"map-pin-x":()=>Promise.resolve().then((function(){return C2})),"map-pin":()=>Promise.resolve().then((function(){return P2})),"map-pinned":()=>Promise.resolve().then((function(){return A2})),map:()=>Promise.resolve().then((function(){return L2})),martini:()=>Promise.resolve().then((function(){return V2})),"maximize-2":()=>Promise.resolve().then((function(){return N2})),maximize:()=>Promise.resolve().then((function(){return D2})),medal:()=>Promise.resolve().then((function(){return q2})),"megaphone-off":()=>Promise.resolve().then((function(){return F2})),megaphone:()=>Promise.resolve().then((function(){return $2})),meh:()=>Promise.resolve().then((function(){return G2})),"memory-stick":()=>Promise.resolve().then((function(){return K2})),menu:()=>Promise.resolve().then((function(){return Q2})),merge:()=>Promise.resolve().then((function(){return e5})),"message-circle-code":()=>Promise.resolve().then((function(){return r5})),"message-circle-dashed":()=>Promise.resolve().then((function(){return a5})),"message-circle-heart":()=>Promise.resolve().then((function(){return l5})),"message-circle-more":()=>Promise.resolve().then((function(){return s5})),"message-circle-off":()=>Promise.resolve().then((function(){return d5})),"message-circle-plus":()=>Promise.resolve().then((function(){return h5})),"message-circle-question":()=>Promise.resolve().then((function(){return p5})),"message-circle-reply":()=>Promise.resolve().then((function(){return m5})),"message-circle-warning":()=>Promise.resolve().then((function(){return g5})),"message-circle-x":()=>Promise.resolve().then((function(){return k5})),"message-circle":()=>Promise.resolve().then((function(){return _5})),"message-square-code":()=>Promise.resolve().then((function(){return M5})),"message-square-dashed":()=>Promise.resolve().then((function(){return E5})),"message-square-diff":()=>Promise.resolve().then((function(){return C5})),"message-square-dot":()=>Promise.resolve().then((function(){return P5})),"message-square-heart":()=>Promise.resolve().then((function(){return A5})),"message-square-lock":()=>Promise.resolve().then((function(){return L5})),"message-square-more":()=>Promise.resolve().then((function(){return V5})),"message-square-off":()=>Promise.resolve().then((function(){return N5})),"message-square-plus":()=>Promise.resolve().then((function(){return D5})),"message-square-quote":()=>Promise.resolve().then((function(){return q5})),"message-square-reply":()=>Promise.resolve().then((function(){return F5})),"message-square-share":()=>Promise.resolve().then((function(){return $5})),"message-square-text":()=>Promise.resolve().then((function(){return G5})),"message-square-warning":()=>Promise.resolve().then((function(){return K5})),"message-square-x":()=>Promise.resolve().then((function(){return Q5})),"message-square":()=>Promise.resolve().then((function(){return e7})),"messages-square":()=>Promise.resolve().then((function(){return r7})),"mic-off":()=>Promise.resolve().then((function(){return a7})),"mic-vocal":()=>Promise.resolve().then((function(){return l7})),mic:()=>Promise.resolve().then((function(){return s7})),microchip:()=>Promise.resolve().then((function(){return d7})),microscope:()=>Promise.resolve().then((function(){return h7})),microwave:()=>Promise.resolve().then((function(){return p7})),milestone:()=>Promise.resolve().then((function(){return m7})),"milk-off":()=>Promise.resolve().then((function(){return g7})),milk:()=>Promise.resolve().then((function(){return k7})),"minimize-2":()=>Promise.resolve().then((function(){return _7})),minimize:()=>Promise.resolve().then((function(){return M7})),minus:()=>Promise.resolve().then((function(){return E7})),"monitor-check":()=>Promise.resolve().then((function(){return C7})),"monitor-cog":()=>Promise.resolve().then((function(){return P7})),"monitor-dot":()=>Promise.resolve().then((function(){return A7})),"monitor-down":()=>Promise.resolve().then((function(){return L7})),"monitor-off":()=>Promise.resolve().then((function(){return V7})),"monitor-pause":()=>Promise.resolve().then((function(){return N7})),"monitor-play":()=>Promise.resolve().then((function(){return D7})),"monitor-smartphone":()=>Promise.resolve().then((function(){return q7})),"monitor-speaker":()=>Promise.resolve().then((function(){return F7})),"monitor-stop":()=>Promise.resolve().then((function(){return $7})),"monitor-up":()=>Promise.resolve().then((function(){return G7})),"monitor-x":()=>Promise.resolve().then((function(){return K7})),monitor:()=>Promise.resolve().then((function(){return Q7})),"moon-star":()=>Promise.resolve().then((function(){return e4})),moon:()=>Promise.resolve().then((function(){return r4})),"mountain-snow":()=>Promise.resolve().then((function(){return a4})),mountain:()=>Promise.resolve().then((function(){return l4})),"mouse-off":()=>Promise.resolve().then((function(){return s4})),"mouse-pointer-2":()=>Promise.resolve().then((function(){return d4})),"mouse-pointer-ban":()=>Promise.resolve().then((function(){return h4})),"mouse-pointer-click":()=>Promise.resolve().then((function(){return p4})),"mouse-pointer":()=>Promise.resolve().then((function(){return m4})),mouse:()=>Promise.resolve().then((function(){return g4})),"move-3d":()=>Promise.resolve().then((function(){return k4})),"move-diagonal-2":()=>Promise.resolve().then((function(){return _4})),"move-diagonal":()=>Promise.resolve().then((function(){return M4})),"move-down-left":()=>Promise.resolve().then((function(){return E4})),"move-down-right":()=>Promise.resolve().then((function(){return C4})),"move-down":()=>Promise.resolve().then((function(){return P4})),"move-horizontal":()=>Promise.resolve().then((function(){return A4})),"move-left":()=>Promise.resolve().then((function(){return L4})),"move-right":()=>Promise.resolve().then((function(){return V4})),"move-up-left":()=>Promise.resolve().then((function(){return N4})),"move-up-right":()=>Promise.resolve().then((function(){return D4})),"move-up":()=>Promise.resolve().then((function(){return q4})),"move-vertical":()=>Promise.resolve().then((function(){return F4})),move:()=>Promise.resolve().then((function(){return $4})),"music-2":()=>Promise.resolve().then((function(){return G4})),"music-3":()=>Promise.resolve().then((function(){return K4})),"music-4":()=>Promise.resolve().then((function(){return Q4})),music:()=>Promise.resolve().then((function(){return e3})),"navigation-2-off":()=>Promise.resolve().then((function(){return r3})),"navigation-2":()=>Promise.resolve().then((function(){return a3})),"navigation-off":()=>Promise.resolve().then((function(){return l3})),navigation:()=>Promise.resolve().then((function(){return s3})),network:()=>Promise.resolve().then((function(){return d3})),newspaper:()=>Promise.resolve().then((function(){return h3})),nfc:()=>Promise.resolve().then((function(){return p3})),"notebook-pen":()=>Promise.resolve().then((function(){return m3})),"notebook-tabs":()=>Promise.resolve().then((function(){return g3})),"notebook-text":()=>Promise.resolve().then((function(){return k3})),notebook:()=>Promise.resolve().then((function(){return _3})),"notepad-text-dashed":()=>Promise.resolve().then((function(){return M3})),"notepad-text":()=>Promise.resolve().then((function(){return E3})),"nut-off":()=>Promise.resolve().then((function(){return C3})),nut:()=>Promise.resolve().then((function(){return P3})),"octagon-alert":()=>Promise.resolve().then((function(){return A3})),"octagon-minus":()=>Promise.resolve().then((function(){return L3})),"octagon-pause":()=>Promise.resolve().then((function(){return V3})),"octagon-x":()=>Promise.resolve().then((function(){return N3})),octagon:()=>Promise.resolve().then((function(){return D3})),omega:()=>Promise.resolve().then((function(){return q3})),option:()=>Promise.resolve().then((function(){return F3})),orbit:()=>Promise.resolve().then((function(){return $3})),origami:()=>Promise.resolve().then((function(){return G3})),"package-2":()=>Promise.resolve().then((function(){return K3})),"package-check":()=>Promise.resolve().then((function(){return Q3})),"package-minus":()=>Promise.resolve().then((function(){return e6})),"package-open":()=>Promise.resolve().then((function(){return r6})),"package-plus":()=>Promise.resolve().then((function(){return a6})),"package-search":()=>Promise.resolve().then((function(){return l6})),"package-x":()=>Promise.resolve().then((function(){return s6})),package:()=>Promise.resolve().then((function(){return d6})),"paint-bucket":()=>Promise.resolve().then((function(){return h6})),"paint-roller":()=>Promise.resolve().then((function(){return p6})),"paintbrush-vertical":()=>Promise.resolve().then((function(){return m6})),paintbrush:()=>Promise.resolve().then((function(){return g6})),palette:()=>Promise.resolve().then((function(){return k6})),"panel-bottom-close":()=>Promise.resolve().then((function(){return _6})),"panel-bottom-dashed":()=>Promise.resolve().then((function(){return M6})),"panel-bottom-open":()=>Promise.resolve().then((function(){return E6})),"panel-bottom":()=>Promise.resolve().then((function(){return C6})),"panel-left-close":()=>Promise.resolve().then((function(){return P6})),"panel-left-dashed":()=>Promise.resolve().then((function(){return A6})),"panel-left-open":()=>Promise.resolve().then((function(){return L6})),"panel-left":()=>Promise.resolve().then((function(){return V6})),"panel-right-close":()=>Promise.resolve().then((function(){return N6})),"panel-right-dashed":()=>Promise.resolve().then((function(){return D6})),"panel-right-open":()=>Promise.resolve().then((function(){return q6})),"panel-right":()=>Promise.resolve().then((function(){return F6})),"panel-top-close":()=>Promise.resolve().then((function(){return $6})),"panel-top-dashed":()=>Promise.resolve().then((function(){return G6})),"panel-top-open":()=>Promise.resolve().then((function(){return K6})),"panel-top":()=>Promise.resolve().then((function(){return Q6})),"panels-left-bottom":()=>Promise.resolve().then((function(){return e8})),"panels-right-bottom":()=>Promise.resolve().then((function(){return r8})),"panels-top-left":()=>Promise.resolve().then((function(){return a8})),paperclip:()=>Promise.resolve().then((function(){return l8})),parentheses:()=>Promise.resolve().then((function(){return s8})),"parking-meter":()=>Promise.resolve().then((function(){return d8})),"party-popper":()=>Promise.resolve().then((function(){return h8})),pause:()=>Promise.resolve().then((function(){return p8})),"paw-print":()=>Promise.resolve().then((function(){return m8})),"pc-case":()=>Promise.resolve().then((function(){return g8})),"pen-line":()=>Promise.resolve().then((function(){return k8})),"pen-off":()=>Promise.resolve().then((function(){return _8})),"pen-tool":()=>Promise.resolve().then((function(){return M8})),pen:()=>Promise.resolve().then((function(){return E8})),"pencil-line":()=>Promise.resolve().then((function(){return C8})),"pencil-off":()=>Promise.resolve().then((function(){return P8})),"pencil-ruler":()=>Promise.resolve().then((function(){return A8})),pencil:()=>Promise.resolve().then((function(){return L8})),pentagon:()=>Promise.resolve().then((function(){return V8})),percent:()=>Promise.resolve().then((function(){return N8})),"person-standing":()=>Promise.resolve().then((function(){return D8})),"philippine-peso":()=>Promise.resolve().then((function(){return q8})),"phone-call":()=>Promise.resolve().then((function(){return F8})),"phone-forwarded":()=>Promise.resolve().then((function(){return $8})),"phone-incoming":()=>Promise.resolve().then((function(){return G8})),"phone-missed":()=>Promise.resolve().then((function(){return K8})),"phone-off":()=>Promise.resolve().then((function(){return Q8})),"phone-outgoing":()=>Promise.resolve().then((function(){return e9})),phone:()=>Promise.resolve().then((function(){return r9})),pi:()=>Promise.resolve().then((function(){return a9})),piano:()=>Promise.resolve().then((function(){return l9})),pickaxe:()=>Promise.resolve().then((function(){return s9})),"picture-in-picture-2":()=>Promise.resolve().then((function(){return d9})),"picture-in-picture":()=>Promise.resolve().then((function(){return h9})),"piggy-bank":()=>Promise.resolve().then((function(){return p9})),"pilcrow-left":()=>Promise.resolve().then((function(){return m9})),"pilcrow-right":()=>Promise.resolve().then((function(){return g9})),pilcrow:()=>Promise.resolve().then((function(){return k9})),"pill-bottle":()=>Promise.resolve().then((function(){return _9})),pill:()=>Promise.resolve().then((function(){return M9})),"pin-off":()=>Promise.resolve().then((function(){return E9})),pin:()=>Promise.resolve().then((function(){return C9})),pipette:()=>Promise.resolve().then((function(){return P9})),pizza:()=>Promise.resolve().then((function(){return A9})),"plane-landing":()=>Promise.resolve().then((function(){return L9})),"plane-takeoff":()=>Promise.resolve().then((function(){return V9})),plane:()=>Promise.resolve().then((function(){return N9})),play:()=>Promise.resolve().then((function(){return D9})),"plug-2":()=>Promise.resolve().then((function(){return q9})),"plug-zap":()=>Promise.resolve().then((function(){return F9})),plug:()=>Promise.resolve().then((function(){return $9})),plus:()=>Promise.resolve().then((function(){return G9})),"pocket-knife":()=>Promise.resolve().then((function(){return K9})),pocket:()=>Promise.resolve().then((function(){return Q9})),podcast:()=>Promise.resolve().then((function(){return eee})),"pointer-off":()=>Promise.resolve().then((function(){return ree})),pointer:()=>Promise.resolve().then((function(){return aee})),popcorn:()=>Promise.resolve().then((function(){return lee})),popsicle:()=>Promise.resolve().then((function(){return see})),"pound-sterling":()=>Promise.resolve().then((function(){return dee})),"power-off":()=>Promise.resolve().then((function(){return hee})),power:()=>Promise.resolve().then((function(){return pee})),presentation:()=>Promise.resolve().then((function(){return mee})),"printer-check":()=>Promise.resolve().then((function(){return gee})),printer:()=>Promise.resolve().then((function(){return kee})),projector:()=>Promise.resolve().then((function(){return _ee})),proportions:()=>Promise.resolve().then((function(){return Mee})),puzzle:()=>Promise.resolve().then((function(){return Eee})),pyramid:()=>Promise.resolve().then((function(){return Cee})),"qr-code":()=>Promise.resolve().then((function(){return Pee})),quote:()=>Promise.resolve().then((function(){return Aee})),rabbit:()=>Promise.resolve().then((function(){return Lee})),radar:()=>Promise.resolve().then((function(){return Vee})),radiation:()=>Promise.resolve().then((function(){return Nee})),radical:()=>Promise.resolve().then((function(){return Dee})),"radio-receiver":()=>Promise.resolve().then((function(){return qee})),"radio-tower":()=>Promise.resolve().then((function(){return Fee})),radio:()=>Promise.resolve().then((function(){return $ee})),radius:()=>Promise.resolve().then((function(){return Gee})),"rail-symbol":()=>Promise.resolve().then((function(){return Kee})),rainbow:()=>Promise.resolve().then((function(){return Qee})),rat:()=>Promise.resolve().then((function(){return ete})),ratio:()=>Promise.resolve().then((function(){return rte})),"receipt-cent":()=>Promise.resolve().then((function(){return ate})),"receipt-euro":()=>Promise.resolve().then((function(){return lte})),"receipt-indian-rupee":()=>Promise.resolve().then((function(){return ste})),"receipt-japanese-yen":()=>Promise.resolve().then((function(){return dte})),"receipt-pound-sterling":()=>Promise.resolve().then((function(){return hte})),"receipt-russian-ruble":()=>Promise.resolve().then((function(){return pte})),"receipt-swiss-franc":()=>Promise.resolve().then((function(){return mte})),"receipt-text":()=>Promise.resolve().then((function(){return gte})),receipt:()=>Promise.resolve().then((function(){return kte})),"rectangle-ellipsis":()=>Promise.resolve().then((function(){return _te})),"rectangle-horizontal":()=>Promise.resolve().then((function(){return Mte})),"rectangle-vertical":()=>Promise.resolve().then((function(){return Ete})),recycle:()=>Promise.resolve().then((function(){return Cte})),"redo-2":()=>Promise.resolve().then((function(){return Pte})),"redo-dot":()=>Promise.resolve().then((function(){return Ate})),redo:()=>Promise.resolve().then((function(){return Lte})),"refresh-ccw-dot":()=>Promise.resolve().then((function(){return Vte})),"refresh-ccw":()=>Promise.resolve().then((function(){return Nte})),"refresh-cw-off":()=>Promise.resolve().then((function(){return Dte})),"refresh-cw":()=>Promise.resolve().then((function(){return qte})),refrigerator:()=>Promise.resolve().then((function(){return Fte})),regex:()=>Promise.resolve().then((function(){return $te})),"remove-formatting":()=>Promise.resolve().then((function(){return Gte})),"repeat-1":()=>Promise.resolve().then((function(){return Kte})),"repeat-2":()=>Promise.resolve().then((function(){return Qte})),repeat:()=>Promise.resolve().then((function(){return ere})),"replace-all":()=>Promise.resolve().then((function(){return rre})),replace:()=>Promise.resolve().then((function(){return are})),"reply-all":()=>Promise.resolve().then((function(){return lre})),reply:()=>Promise.resolve().then((function(){return sre})),rewind:()=>Promise.resolve().then((function(){return dre})),ribbon:()=>Promise.resolve().then((function(){return hre})),rocket:()=>Promise.resolve().then((function(){return pre})),"rocking-chair":()=>Promise.resolve().then((function(){return mre})),"roller-coaster":()=>Promise.resolve().then((function(){return gre})),"rotate-3d":()=>Promise.resolve().then((function(){return kre})),"rotate-ccw-square":()=>Promise.resolve().then((function(){return _re})),"rotate-ccw":()=>Promise.resolve().then((function(){return Mre})),"rotate-cw-square":()=>Promise.resolve().then((function(){return Ere})),"rotate-cw":()=>Promise.resolve().then((function(){return Cre})),"route-off":()=>Promise.resolve().then((function(){return Pre})),route:()=>Promise.resolve().then((function(){return Are})),router:()=>Promise.resolve().then((function(){return Lre})),"rows-2":()=>Promise.resolve().then((function(){return Vre})),"rows-3":()=>Promise.resolve().then((function(){return Nre})),"rows-4":()=>Promise.resolve().then((function(){return Dre})),rss:()=>Promise.resolve().then((function(){return qre})),ruler:()=>Promise.resolve().then((function(){return Fre})),"russian-ruble":()=>Promise.resolve().then((function(){return $re})),sailboat:()=>Promise.resolve().then((function(){return Gre})),salad:()=>Promise.resolve().then((function(){return Kre})),sandwich:()=>Promise.resolve().then((function(){return Qre})),"satellite-dish":()=>Promise.resolve().then((function(){return ene})),satellite:()=>Promise.resolve().then((function(){return rne})),"save-all":()=>Promise.resolve().then((function(){return ane})),"save-off":()=>Promise.resolve().then((function(){return lne})),save:()=>Promise.resolve().then((function(){return sne})),"scale-3d":()=>Promise.resolve().then((function(){return dne})),scale:()=>Promise.resolve().then((function(){return hne})),scaling:()=>Promise.resolve().then((function(){return pne})),"scan-barcode":()=>Promise.resolve().then((function(){return mne})),"scan-eye":()=>Promise.resolve().then((function(){return gne})),"scan-face":()=>Promise.resolve().then((function(){return kne})),"scan-line":()=>Promise.resolve().then((function(){return _ne})),"scan-qr-code":()=>Promise.resolve().then((function(){return Mne})),"scan-search":()=>Promise.resolve().then((function(){return Ene})),"scan-text":()=>Promise.resolve().then((function(){return Cne})),scan:()=>Promise.resolve().then((function(){return Pne})),school:()=>Promise.resolve().then((function(){return Ane})),"scissors-line-dashed":()=>Promise.resolve().then((function(){return Lne})),scissors:()=>Promise.resolve().then((function(){return Vne})),"screen-share-off":()=>Promise.resolve().then((function(){return Nne})),"screen-share":()=>Promise.resolve().then((function(){return Dne})),"scroll-text":()=>Promise.resolve().then((function(){return qne})),scroll:()=>Promise.resolve().then((function(){return Fne})),"search-check":()=>Promise.resolve().then((function(){return $ne})),"search-code":()=>Promise.resolve().then((function(){return Gne})),"search-slash":()=>Promise.resolve().then((function(){return Kne})),"search-x":()=>Promise.resolve().then((function(){return Qne})),search:()=>Promise.resolve().then((function(){return eae})),section:()=>Promise.resolve().then((function(){return rae})),"send-horizontal":()=>Promise.resolve().then((function(){return aae})),"send-to-back":()=>Promise.resolve().then((function(){return lae})),send:()=>Promise.resolve().then((function(){return sae})),"separator-horizontal":()=>Promise.resolve().then((function(){return dae})),"separator-vertical":()=>Promise.resolve().then((function(){return hae})),"server-cog":()=>Promise.resolve().then((function(){return pae})),"server-crash":()=>Promise.resolve().then((function(){return mae})),"server-off":()=>Promise.resolve().then((function(){return gae})),server:()=>Promise.resolve().then((function(){return kae})),"settings-2":()=>Promise.resolve().then((function(){return _ae})),settings:()=>Promise.resolve().then((function(){return Mae})),shapes:()=>Promise.resolve().then((function(){return Eae})),"share-2":()=>Promise.resolve().then((function(){return Cae})),share:()=>Promise.resolve().then((function(){return Pae})),sheet:()=>Promise.resolve().then((function(){return Aae})),shell:()=>Promise.resolve().then((function(){return Lae})),"shield-alert":()=>Promise.resolve().then((function(){return Vae})),"shield-ban":()=>Promise.resolve().then((function(){return Nae})),"shield-check":()=>Promise.resolve().then((function(){return Dae})),"shield-ellipsis":()=>Promise.resolve().then((function(){return qae})),"shield-half":()=>Promise.resolve().then((function(){return Fae})),"shield-minus":()=>Promise.resolve().then((function(){return $ae})),"shield-off":()=>Promise.resolve().then((function(){return Gae})),"shield-plus":()=>Promise.resolve().then((function(){return Kae})),"shield-question":()=>Promise.resolve().then((function(){return Qae})),"shield-x":()=>Promise.resolve().then((function(){return eoe})),shield:()=>Promise.resolve().then((function(){return roe})),"ship-wheel":()=>Promise.resolve().then((function(){return aoe})),ship:()=>Promise.resolve().then((function(){return loe})),shirt:()=>Promise.resolve().then((function(){return soe})),"shopping-bag":()=>Promise.resolve().then((function(){return doe})),"shopping-basket":()=>Promise.resolve().then((function(){return hoe})),"shopping-cart":()=>Promise.resolve().then((function(){return poe})),shovel:()=>Promise.resolve().then((function(){return moe})),"shower-head":()=>Promise.resolve().then((function(){return goe})),shrink:()=>Promise.resolve().then((function(){return koe})),shrub:()=>Promise.resolve().then((function(){return _oe})),shuffle:()=>Promise.resolve().then((function(){return Moe})),sigma:()=>Promise.resolve().then((function(){return Eoe})),"signal-high":()=>Promise.resolve().then((function(){return Coe})),"signal-low":()=>Promise.resolve().then((function(){return Poe})),"signal-medium":()=>Promise.resolve().then((function(){return Aoe})),"signal-zero":()=>Promise.resolve().then((function(){return Loe})),signal:()=>Promise.resolve().then((function(){return Voe})),signature:()=>Promise.resolve().then((function(){return Noe})),"signpost-big":()=>Promise.resolve().then((function(){return Doe})),signpost:()=>Promise.resolve().then((function(){return qoe})),siren:()=>Promise.resolve().then((function(){return Foe})),"skip-back":()=>Promise.resolve().then((function(){return $oe})),"skip-forward":()=>Promise.resolve().then((function(){return Goe})),skull:()=>Promise.resolve().then((function(){return Koe})),slack:()=>Promise.resolve().then((function(){return Qoe})),slash:()=>Promise.resolve().then((function(){return ele})),slice:()=>Promise.resolve().then((function(){return rle})),"sliders-horizontal":()=>Promise.resolve().then((function(){return ale})),"sliders-vertical":()=>Promise.resolve().then((function(){return lle})),"smartphone-charging":()=>Promise.resolve().then((function(){return sle})),"smartphone-nfc":()=>Promise.resolve().then((function(){return dle})),smartphone:()=>Promise.resolve().then((function(){return hle})),"smile-plus":()=>Promise.resolve().then((function(){return ple})),smile:()=>Promise.resolve().then((function(){return mle})),snail:()=>Promise.resolve().then((function(){return gle})),snowflake:()=>Promise.resolve().then((function(){return kle})),sofa:()=>Promise.resolve().then((function(){return _le})),soup:()=>Promise.resolve().then((function(){return Mle})),space:()=>Promise.resolve().then((function(){return Ele})),spade:()=>Promise.resolve().then((function(){return Cle})),sparkle:()=>Promise.resolve().then((function(){return Ple})),sparkles:()=>Promise.resolve().then((function(){return Ale})),speaker:()=>Promise.resolve().then((function(){return Lle})),speech:()=>Promise.resolve().then((function(){return Vle})),"spell-check-2":()=>Promise.resolve().then((function(){return Nle})),"spell-check":()=>Promise.resolve().then((function(){return Dle})),spline:()=>Promise.resolve().then((function(){return qle})),split:()=>Promise.resolve().then((function(){return Fle})),"spray-can":()=>Promise.resolve().then((function(){return $le})),sprout:()=>Promise.resolve().then((function(){return Gle})),"square-activity":()=>Promise.resolve().then((function(){return Kle})),"square-arrow-down-left":()=>Promise.resolve().then((function(){return Qle})),"square-arrow-down-right":()=>Promise.resolve().then((function(){return eie})),"square-arrow-down":()=>Promise.resolve().then((function(){return rie})),"square-arrow-left":()=>Promise.resolve().then((function(){return aie})),"square-arrow-out-down-left":()=>Promise.resolve().then((function(){return lie})),"square-arrow-out-down-right":()=>Promise.resolve().then((function(){return sie})),"square-arrow-out-up-left":()=>Promise.resolve().then((function(){return die})),"square-arrow-out-up-right":()=>Promise.resolve().then((function(){return hie})),"square-arrow-right":()=>Promise.resolve().then((function(){return pie})),"square-arrow-up-left":()=>Promise.resolve().then((function(){return mie})),"square-arrow-up-right":()=>Promise.resolve().then((function(){return gie})),"square-arrow-up":()=>Promise.resolve().then((function(){return kie})),"square-asterisk":()=>Promise.resolve().then((function(){return _ie})),"square-bottom-dashed-scissors":()=>Promise.resolve().then((function(){return Mie})),"square-chart-gantt":()=>Promise.resolve().then((function(){return Eie})),"square-check-big":()=>Promise.resolve().then((function(){return Cie})),"square-check":()=>Promise.resolve().then((function(){return Pie})),"square-chevron-down":()=>Promise.resolve().then((function(){return Aie})),"square-chevron-left":()=>Promise.resolve().then((function(){return Lie})),"square-chevron-right":()=>Promise.resolve().then((function(){return Vie})),"square-chevron-up":()=>Promise.resolve().then((function(){return Nie})),"square-code":()=>Promise.resolve().then((function(){return Die})),"square-dashed-bottom-code":()=>Promise.resolve().then((function(){return qie})),"square-dashed-bottom":()=>Promise.resolve().then((function(){return Fie})),"square-dashed-kanban":()=>Promise.resolve().then((function(){return $ie})),"square-dashed-mouse-pointer":()=>Promise.resolve().then((function(){return Gie})),"square-dashed":()=>Promise.resolve().then((function(){return Kie})),"square-divide":()=>Promise.resolve().then((function(){return Qie})),"square-dot":()=>Promise.resolve().then((function(){return ese})),"square-equal":()=>Promise.resolve().then((function(){return rse})),"square-function":()=>Promise.resolve().then((function(){return ase})),"square-kanban":()=>Promise.resolve().then((function(){return lse})),"square-library":()=>Promise.resolve().then((function(){return sse})),"square-m":()=>Promise.resolve().then((function(){return dse})),"square-menu":()=>Promise.resolve().then((function(){return hse})),"square-minus":()=>Promise.resolve().then((function(){return pse})),"square-mouse-pointer":()=>Promise.resolve().then((function(){return mse})),"square-parking-off":()=>Promise.resolve().then((function(){return gse})),"square-parking":()=>Promise.resolve().then((function(){return kse})),"square-pen":()=>Promise.resolve().then((function(){return _se})),"square-percent":()=>Promise.resolve().then((function(){return Mse})),"square-pi":()=>Promise.resolve().then((function(){return Ese})),"square-pilcrow":()=>Promise.resolve().then((function(){return Cse})),"square-play":()=>Promise.resolve().then((function(){return Pse})),"square-plus":()=>Promise.resolve().then((function(){return Ase})),"square-power":()=>Promise.resolve().then((function(){return Lse})),"square-radical":()=>Promise.resolve().then((function(){return Vse})),"square-scissors":()=>Promise.resolve().then((function(){return Nse})),"square-sigma":()=>Promise.resolve().then((function(){return Dse})),"square-slash":()=>Promise.resolve().then((function(){return qse})),"square-split-horizontal":()=>Promise.resolve().then((function(){return Fse})),"square-split-vertical":()=>Promise.resolve().then((function(){return $se})),"square-square":()=>Promise.resolve().then((function(){return Gse})),"square-stack":()=>Promise.resolve().then((function(){return Kse})),"square-terminal":()=>Promise.resolve().then((function(){return Qse})),"square-user-round":()=>Promise.resolve().then((function(){return ece})),"square-user":()=>Promise.resolve().then((function(){return rce})),"square-x":()=>Promise.resolve().then((function(){return ace})),square:()=>Promise.resolve().then((function(){return lce})),squircle:()=>Promise.resolve().then((function(){return sce})),squirrel:()=>Promise.resolve().then((function(){return dce})),stamp:()=>Promise.resolve().then((function(){return hce})),"star-half":()=>Promise.resolve().then((function(){return pce})),"star-off":()=>Promise.resolve().then((function(){return mce})),star:()=>Promise.resolve().then((function(){return gce})),"step-back":()=>Promise.resolve().then((function(){return kce})),"step-forward":()=>Promise.resolve().then((function(){return _ce})),stethoscope:()=>Promise.resolve().then((function(){return Mce})),sticker:()=>Promise.resolve().then((function(){return Ece})),"sticky-note":()=>Promise.resolve().then((function(){return Cce})),store:()=>Promise.resolve().then((function(){return Pce})),"stretch-horizontal":()=>Promise.resolve().then((function(){return Ace})),"stretch-vertical":()=>Promise.resolve().then((function(){return Lce})),strikethrough:()=>Promise.resolve().then((function(){return Vce})),subscript:()=>Promise.resolve().then((function(){return Nce})),"sun-dim":()=>Promise.resolve().then((function(){return Dce})),"sun-medium":()=>Promise.resolve().then((function(){return qce})),"sun-moon":()=>Promise.resolve().then((function(){return Fce})),"sun-snow":()=>Promise.resolve().then((function(){return $ce})),sun:()=>Promise.resolve().then((function(){return Gce})),sunrise:()=>Promise.resolve().then((function(){return Kce})),sunset:()=>Promise.resolve().then((function(){return Qce})),superscript:()=>Promise.resolve().then((function(){return ede})),"swatch-book":()=>Promise.resolve().then((function(){return rde})),"swiss-franc":()=>Promise.resolve().then((function(){return ade})),"switch-camera":()=>Promise.resolve().then((function(){return lde})),sword:()=>Promise.resolve().then((function(){return sde})),swords:()=>Promise.resolve().then((function(){return dde})),syringe:()=>Promise.resolve().then((function(){return hde})),"table-2":()=>Promise.resolve().then((function(){return pde})),"table-cells-merge":()=>Promise.resolve().then((function(){return mde})),"table-cells-split":()=>Promise.resolve().then((function(){return gde})),"table-columns-split":()=>Promise.resolve().then((function(){return kde})),"table-of-contents":()=>Promise.resolve().then((function(){return _de})),"table-properties":()=>Promise.resolve().then((function(){return Mde})),"table-rows-split":()=>Promise.resolve().then((function(){return Ede})),table:()=>Promise.resolve().then((function(){return Cde})),"tablet-smartphone":()=>Promise.resolve().then((function(){return Pde})),tablet:()=>Promise.resolve().then((function(){return Ade})),tablets:()=>Promise.resolve().then((function(){return Lde})),tag:()=>Promise.resolve().then((function(){return Vde})),tags:()=>Promise.resolve().then((function(){return Nde})),"tally-1":()=>Promise.resolve().then((function(){return Dde})),"tally-2":()=>Promise.resolve().then((function(){return qde})),"tally-3":()=>Promise.resolve().then((function(){return Fde})),"tally-4":()=>Promise.resolve().then((function(){return $de})),"tally-5":()=>Promise.resolve().then((function(){return Gde})),tangent:()=>Promise.resolve().then((function(){return Kde})),target:()=>Promise.resolve().then((function(){return Qde})),telescope:()=>Promise.resolve().then((function(){return eue})),"tent-tree":()=>Promise.resolve().then((function(){return rue})),tent:()=>Promise.resolve().then((function(){return aue})),terminal:()=>Promise.resolve().then((function(){return lue})),"test-tube-diagonal":()=>Promise.resolve().then((function(){return sue})),"test-tube":()=>Promise.resolve().then((function(){return due})),"test-tubes":()=>Promise.resolve().then((function(){return hue})),"text-cursor-input":()=>Promise.resolve().then((function(){return pue})),"text-cursor":()=>Promise.resolve().then((function(){return mue})),"text-quote":()=>Promise.resolve().then((function(){return gue})),"text-search":()=>Promise.resolve().then((function(){return kue})),"text-select":()=>Promise.resolve().then((function(){return _ue})),text:()=>Promise.resolve().then((function(){return Mue})),theater:()=>Promise.resolve().then((function(){return Eue})),"thermometer-snowflake":()=>Promise.resolve().then((function(){return Cue})),"thermometer-sun":()=>Promise.resolve().then((function(){return Pue})),thermometer:()=>Promise.resolve().then((function(){return Aue})),"thumbs-down":()=>Promise.resolve().then((function(){return Lue})),"thumbs-up":()=>Promise.resolve().then((function(){return Vue})),"ticket-check":()=>Promise.resolve().then((function(){return Nue})),"ticket-minus":()=>Promise.resolve().then((function(){return Due})),"ticket-percent":()=>Promise.resolve().then((function(){return que})),"ticket-plus":()=>Promise.resolve().then((function(){return Fue})),"ticket-slash":()=>Promise.resolve().then((function(){return $ue})),"ticket-x":()=>Promise.resolve().then((function(){return Gue})),ticket:()=>Promise.resolve().then((function(){return Kue})),"tickets-plane":()=>Promise.resolve().then((function(){return Que})),tickets:()=>Promise.resolve().then((function(){return ehe})),"timer-off":()=>Promise.resolve().then((function(){return rhe})),"timer-reset":()=>Promise.resolve().then((function(){return ahe})),timer:()=>Promise.resolve().then((function(){return lhe})),"toggle-left":()=>Promise.resolve().then((function(){return she})),"toggle-right":()=>Promise.resolve().then((function(){return dhe})),toilet:()=>Promise.resolve().then((function(){return hhe})),tornado:()=>Promise.resolve().then((function(){return phe})),torus:()=>Promise.resolve().then((function(){return mhe})),"touchpad-off":()=>Promise.resolve().then((function(){return ghe})),touchpad:()=>Promise.resolve().then((function(){return khe})),"tower-control":()=>Promise.resolve().then((function(){return _he})),"toy-brick":()=>Promise.resolve().then((function(){return Mhe})),tractor:()=>Promise.resolve().then((function(){return Ehe})),"traffic-cone":()=>Promise.resolve().then((function(){return Che})),"train-front-tunnel":()=>Promise.resolve().then((function(){return Phe})),"train-front":()=>Promise.resolve().then((function(){return Ahe})),"train-track":()=>Promise.resolve().then((function(){return Lhe})),"tram-front":()=>Promise.resolve().then((function(){return Vhe})),"trash-2":()=>Promise.resolve().then((function(){return Nhe})),trash:()=>Promise.resolve().then((function(){return Dhe})),"tree-deciduous":()=>Promise.resolve().then((function(){return qhe})),"tree-palm":()=>Promise.resolve().then((function(){return Fhe})),"tree-pine":()=>Promise.resolve().then((function(){return $he})),trees:()=>Promise.resolve().then((function(){return Ghe})),trello:()=>Promise.resolve().then((function(){return Khe})),"trending-down":()=>Promise.resolve().then((function(){return Qhe})),"trending-up-down":()=>Promise.resolve().then((function(){return efe})),"trending-up":()=>Promise.resolve().then((function(){return rfe})),"triangle-alert":()=>Promise.resolve().then((function(){return afe})),"triangle-right":()=>Promise.resolve().then((function(){return lfe})),triangle:()=>Promise.resolve().then((function(){return sfe})),trophy:()=>Promise.resolve().then((function(){return dfe})),truck:()=>Promise.resolve().then((function(){return hfe})),turtle:()=>Promise.resolve().then((function(){return pfe})),"tv-minimal-play":()=>Promise.resolve().then((function(){return mfe})),"tv-minimal":()=>Promise.resolve().then((function(){return gfe})),tv:()=>Promise.resolve().then((function(){return kfe})),twitch:()=>Promise.resolve().then((function(){return _fe})),twitter:()=>Promise.resolve().then((function(){return Mfe})),"type-outline":()=>Promise.resolve().then((function(){return Efe})),type:()=>Promise.resolve().then((function(){return Cfe})),"umbrella-off":()=>Promise.resolve().then((function(){return Pfe})),umbrella:()=>Promise.resolve().then((function(){return Afe})),underline:()=>Promise.resolve().then((function(){return Lfe})),"undo-2":()=>Promise.resolve().then((function(){return Vfe})),"undo-dot":()=>Promise.resolve().then((function(){return Nfe})),undo:()=>Promise.resolve().then((function(){return Dfe})),"unfold-horizontal":()=>Promise.resolve().then((function(){return qfe})),"unfold-vertical":()=>Promise.resolve().then((function(){return Ffe})),ungroup:()=>Promise.resolve().then((function(){return $fe})),university:()=>Promise.resolve().then((function(){return Gfe})),"unlink-2":()=>Promise.resolve().then((function(){return Kfe})),unlink:()=>Promise.resolve().then((function(){return Qfe})),unplug:()=>Promise.resolve().then((function(){return epe})),upload:()=>Promise.resolve().then((function(){return rpe})),usb:()=>Promise.resolve().then((function(){return ape})),"user-check":()=>Promise.resolve().then((function(){return lpe})),"user-cog":()=>Promise.resolve().then((function(){return spe})),"user-minus":()=>Promise.resolve().then((function(){return dpe})),"user-pen":()=>Promise.resolve().then((function(){return hpe})),"user-plus":()=>Promise.resolve().then((function(){return ppe})),"user-round-check":()=>Promise.resolve().then((function(){return mpe})),"user-round-cog":()=>Promise.resolve().then((function(){return gpe})),"user-round-minus":()=>Promise.resolve().then((function(){return kpe})),"user-round-pen":()=>Promise.resolve().then((function(){return _pe})),"user-round-plus":()=>Promise.resolve().then((function(){return Mpe})),"user-round-search":()=>Promise.resolve().then((function(){return Epe})),"user-round-x":()=>Promise.resolve().then((function(){return Cpe})),"user-round":()=>Promise.resolve().then((function(){return Ppe})),"user-search":()=>Promise.resolve().then((function(){return Ape})),"user-x":()=>Promise.resolve().then((function(){return Lpe})),user:()=>Promise.resolve().then((function(){return Vpe})),"users-round":()=>Promise.resolve().then((function(){return Npe})),users:()=>Promise.resolve().then((function(){return Dpe})),"utensils-crossed":()=>Promise.resolve().then((function(){return qpe})),utensils:()=>Promise.resolve().then((function(){return Fpe})),"utility-pole":()=>Promise.resolve().then((function(){return $pe})),variable:()=>Promise.resolve().then((function(){return Gpe})),vault:()=>Promise.resolve().then((function(){return Kpe})),vegan:()=>Promise.resolve().then((function(){return Qpe})),"venetian-mask":()=>Promise.resolve().then((function(){return eve})),"vibrate-off":()=>Promise.resolve().then((function(){return rve})),vibrate:()=>Promise.resolve().then((function(){return ave})),"video-off":()=>Promise.resolve().then((function(){return lve})),video:()=>Promise.resolve().then((function(){return sve})),videotape:()=>Promise.resolve().then((function(){return dve})),view:()=>Promise.resolve().then((function(){return hve})),voicemail:()=>Promise.resolve().then((function(){return pve})),volleyball:()=>Promise.resolve().then((function(){return mve})),"volume-1":()=>Promise.resolve().then((function(){return gve})),"volume-2":()=>Promise.resolve().then((function(){return kve})),"volume-off":()=>Promise.resolve().then((function(){return _ve})),"volume-x":()=>Promise.resolve().then((function(){return Mve})),volume:()=>Promise.resolve().then((function(){return Eve})),vote:()=>Promise.resolve().then((function(){return Cve})),"wallet-cards":()=>Promise.resolve().then((function(){return Pve})),"wallet-minimal":()=>Promise.resolve().then((function(){return Ave})),wallet:()=>Promise.resolve().then((function(){return Lve})),wallpaper:()=>Promise.resolve().then((function(){return Vve})),"wand-sparkles":()=>Promise.resolve().then((function(){return Nve})),wand:()=>Promise.resolve().then((function(){return Dve})),warehouse:()=>Promise.resolve().then((function(){return qve})),"washing-machine":()=>Promise.resolve().then((function(){return Fve})),watch:()=>Promise.resolve().then((function(){return $ve})),waves:()=>Promise.resolve().then((function(){return Gve})),waypoints:()=>Promise.resolve().then((function(){return Kve})),webcam:()=>Promise.resolve().then((function(){return Qve})),"webhook-off":()=>Promise.resolve().then((function(){return eme})),webhook:()=>Promise.resolve().then((function(){return rme})),weight:()=>Promise.resolve().then((function(){return ame})),"wheat-off":()=>Promise.resolve().then((function(){return lme})),wheat:()=>Promise.resolve().then((function(){return sme})),"whole-word":()=>Promise.resolve().then((function(){return dme})),"wifi-high":()=>Promise.resolve().then((function(){return hme})),"wifi-low":()=>Promise.resolve().then((function(){return pme})),"wifi-off":()=>Promise.resolve().then((function(){return mme})),"wifi-zero":()=>Promise.resolve().then((function(){return gme})),wifi:()=>Promise.resolve().then((function(){return kme})),"wind-arrow-down":()=>Promise.resolve().then((function(){return _me})),wind:()=>Promise.resolve().then((function(){return Mme})),"wine-off":()=>Promise.resolve().then((function(){return Eme})),wine:()=>Promise.resolve().then((function(){return Cme})),workflow:()=>Promise.resolve().then((function(){return Pme})),worm:()=>Promise.resolve().then((function(){return Ame})),"wrap-text":()=>Promise.resolve().then((function(){return Lme})),wrench:()=>Promise.resolve().then((function(){return Vme})),x:()=>Promise.resolve().then((function(){return Nme})),youtube:()=>Promise.resolve().then((function(){return Dme})),"zap-off":()=>Promise.resolve().then((function(){return qme})),zap:()=>Promise.resolve().then((function(){return Fme})),"zoom-in":()=>Promise.resolve().then((function(){return $me})),"zoom-out":()=>Promise.resolve().then((function(){return Gme}))};
9270
9270
  /**
9271
9271
  * @license lucide-react v0.460.0 - ISC
9272
9272
  *