@ever-teams/toolkit-ui 0.2.6

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.
Files changed (106) hide show
  1. package/dist/index.d.ts +52 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.es.js +44 -0
  4. package/dist/lib/components/accordion.d.ts +8 -0
  5. package/dist/lib/components/accordion.d.ts.map +1 -0
  6. package/dist/lib/components/alert-dialog.d.ts +21 -0
  7. package/dist/lib/components/alert-dialog.d.ts.map +1 -0
  8. package/dist/lib/components/avatar/avatar.d.ts +22 -0
  9. package/dist/lib/components/avatar/avatar.d.ts.map +1 -0
  10. package/dist/lib/components/avatar/teams-avatar.d.ts +10 -0
  11. package/dist/lib/components/avatar/teams-avatar.d.ts.map +1 -0
  12. package/dist/lib/components/badge.d.ts +10 -0
  13. package/dist/lib/components/badge.d.ts.map +1 -0
  14. package/dist/lib/components/button.d.ts +16 -0
  15. package/dist/lib/components/button.d.ts.map +1 -0
  16. package/dist/lib/components/calendar.d.ts +7 -0
  17. package/dist/lib/components/calendar.d.ts.map +1 -0
  18. package/dist/lib/components/card.d.ts +39 -0
  19. package/dist/lib/components/card.d.ts.map +1 -0
  20. package/dist/lib/components/carousel.d.ts +45 -0
  21. package/dist/lib/components/carousel.d.ts.map +1 -0
  22. package/dist/lib/components/checkbox.d.ts +10 -0
  23. package/dist/lib/components/checkbox.d.ts.map +1 -0
  24. package/dist/lib/components/color-picker.d.ts +8 -0
  25. package/dist/lib/components/color-picker.d.ts.map +1 -0
  26. package/dist/lib/components/command.d.ts +81 -0
  27. package/dist/lib/components/command.d.ts.map +1 -0
  28. package/dist/lib/components/date-picker.d.ts +3 -0
  29. package/dist/lib/components/date-picker.d.ts.map +1 -0
  30. package/dist/lib/components/date-range-picker.d.ts +4 -0
  31. package/dist/lib/components/date-range-picker.d.ts.map +1 -0
  32. package/dist/lib/components/dialog/dialog.d.ts +40 -0
  33. package/dist/lib/components/dialog/dialog.d.ts.map +1 -0
  34. package/dist/lib/components/dialog/teams-dailog.d.ts +13 -0
  35. package/dist/lib/components/dialog/teams-dailog.d.ts.map +1 -0
  36. package/dist/lib/components/input.d.ts +21 -0
  37. package/dist/lib/components/input.d.ts.map +1 -0
  38. package/dist/lib/components/label.d.ts +6 -0
  39. package/dist/lib/components/label.d.ts.map +1 -0
  40. package/dist/lib/components/loader.d.ts +6 -0
  41. package/dist/lib/components/loader.d.ts.map +1 -0
  42. package/dist/lib/components/menu-bar.d.ts +29 -0
  43. package/dist/lib/components/menu-bar.d.ts.map +1 -0
  44. package/dist/lib/components/modal/modal.d.ts +14 -0
  45. package/dist/lib/components/modal/modal.d.ts.map +1 -0
  46. package/dist/lib/components/multi-select/multi-select.d.ts +32 -0
  47. package/dist/lib/components/multi-select/multi-select.d.ts.map +1 -0
  48. package/dist/lib/components/popover.d.ts +13 -0
  49. package/dist/lib/components/popover.d.ts.map +1 -0
  50. package/dist/lib/components/progress.d.ts +10 -0
  51. package/dist/lib/components/progress.d.ts.map +1 -0
  52. package/dist/lib/components/radio-button.d.ts +6 -0
  53. package/dist/lib/components/radio-button.d.ts.map +1 -0
  54. package/dist/lib/components/select/select-input.d.ts +21 -0
  55. package/dist/lib/components/select/select-input.d.ts.map +1 -0
  56. package/dist/lib/components/select/select.d.ts +51 -0
  57. package/dist/lib/components/select/select.d.ts.map +1 -0
  58. package/dist/lib/components/switch.d.ts +10 -0
  59. package/dist/lib/components/switch.d.ts.map +1 -0
  60. package/dist/lib/components/table.d.ts +51 -0
  61. package/dist/lib/components/table.d.ts.map +1 -0
  62. package/dist/lib/components/tabs.d.ts +29 -0
  63. package/dist/lib/components/tabs.d.ts.map +1 -0
  64. package/dist/lib/components/textarea.d.ts +17 -0
  65. package/dist/lib/components/textarea.d.ts.map +1 -0
  66. package/dist/lib/components/themed-button.d.ts +8 -0
  67. package/dist/lib/components/themed-button.d.ts.map +1 -0
  68. package/dist/lib/components/toast/toast.d.ts +48 -0
  69. package/dist/lib/components/toast/toast.d.ts.map +1 -0
  70. package/dist/lib/components/toast/toaster.d.ts +2 -0
  71. package/dist/lib/components/toast/toaster.d.ts.map +1 -0
  72. package/dist/lib/components/toast/use-toast.d.ts +45 -0
  73. package/dist/lib/components/toast/use-toast.d.ts.map +1 -0
  74. package/dist/lib/components/tooltip/teams-tooltip.d.ts +19 -0
  75. package/dist/lib/components/tooltip/teams-tooltip.d.ts.map +1 -0
  76. package/dist/lib/components/tooltip/tooltip.d.ts +13 -0
  77. package/dist/lib/components/tooltip/tooltip.d.ts.map +1 -0
  78. package/dist/lib/hooks/use-UrlInfo.d.ts +11 -0
  79. package/dist/lib/hooks/use-UrlInfo.d.ts.map +1 -0
  80. package/dist/lib/hooks/use-resize-observer.d.ts +7 -0
  81. package/dist/lib/hooks/use-resize-observer.d.ts.map +1 -0
  82. package/dist/lib/svgs/arrow-down.d.ts +6 -0
  83. package/dist/lib/svgs/arrow-down.d.ts.map +1 -0
  84. package/dist/lib/svgs/arrow-up.d.ts +6 -0
  85. package/dist/lib/svgs/arrow-up.d.ts.map +1 -0
  86. package/dist/lib/svgs/close.d.ts +6 -0
  87. package/dist/lib/svgs/close.d.ts.map +1 -0
  88. package/dist/lib/svgs/expand.d.ts +5 -0
  89. package/dist/lib/svgs/expand.d.ts.map +1 -0
  90. package/dist/lib/svgs/pause.d.ts +5 -0
  91. package/dist/lib/svgs/pause.d.ts.map +1 -0
  92. package/dist/lib/svgs/start.d.ts +5 -0
  93. package/dist/lib/svgs/start.d.ts.map +1 -0
  94. package/dist/lib/svgs/stop.d.ts +5 -0
  95. package/dist/lib/svgs/stop.d.ts.map +1 -0
  96. package/dist/lib/svgs/teams-logo.d.ts +9 -0
  97. package/dist/lib/svgs/teams-logo.d.ts.map +1 -0
  98. package/dist/lib/utils/color.helper.d.ts +4 -0
  99. package/dist/lib/utils/color.helper.d.ts.map +1 -0
  100. package/dist/lib/utils/error.helper.d.ts +8 -0
  101. package/dist/lib/utils/error.helper.d.ts.map +1 -0
  102. package/dist/lib/utils/report.d.ts +4 -0
  103. package/dist/lib/utils/report.d.ts.map +1 -0
  104. package/dist/lib/utils/utils.d.ts +68 -0
  105. package/dist/lib/utils/utils.d.ts.map +1 -0
  106. package/package.json +94 -0
@@ -0,0 +1,44 @@
1
+ import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import o,{useState as a,useEffect as i,useLayoutEffect as s,useRef as l,useMemo as c,useContext as u,createContext as d,forwardRef as f,useCallback as p,isValidElement as m,cloneElement as h,createElement as v,Fragment as g,useId as b,useSyncExternalStore as y,useReducer as w,createRef as x}from"react";import*as C from"react-dom";import k,{createPortal as N}from"react-dom";import{jsx as E,jsxs as S,Fragment as M}from"theme-ui/jsx-runtime";function O(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function _(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}var L=globalThis?.document?r.useLayoutEffect:()=>{};function P(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function D(...e){return t=>{let n=!1;const r=e.map(e=>{const r=P(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():P(e[t],null)}}}}function R(...e){return r.useCallback(D(...e),e)}var T=Symbol.for("react.lazy"),A=r[" use ".trim().toString()];function I(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===T&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function F(e){const t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(I(n)&&"function"==typeof A&&(n=A(n._payload)),r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j=Symbol("radix.slottable");function W(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===j}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=function(t){const n=F(t),o=r.forwardRef((t,o)=>{let{children:a,...i}=t;I(a)&&"function"==typeof A&&(a=A(a._payload));const s=r.Children.toArray(a),l=s.find(W);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),a=r.forwardRef((t,r)=>{const{asChild:a,...i}=t,s=a?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...i,ref:r})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{});function H(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B,V={exports:{}},$={};var Y,q,K={};
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.development.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var G=(q||(q=1,"production"===process.env.NODE_ENV?V.exports=function(){if(B)return $;B=1;var e=o,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var o=t(),l=n({inst:{value:o,getSnapshot:t}}),c=l[0].inst,u=l[1];return a(function(){c.value=o,c.getSnapshot=t,s(c)&&u({inst:c})},[e,o,t]),r(function(){return s(c)&&u({inst:c}),e(function(){s(c)&&u({inst:c})})},[e]),i(o),o};return $.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,$}():V.exports=(Y||(Y=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=o,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,a=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue,l=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(o,u){l||void 0===t.startTransition||(l=!0);var d=u();if(!c){var f=u();n(d,f)||(c=!0)}var p=(f=r({inst:{value:d,getSnapshot:u}}))[0].inst,m=f[1];return i(function(){p.value=d,p.getSnapshot=u,e(p)&&m({inst:p})},[o,d,u]),a(function(){return e(p)&&m({inst:p}),o(function(){e(p)&&m({inst:p})})},[o]),s(d),d};K.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),K)),V.exports);function U(){return()=>{}}var Z="Avatar",[X]=function(t,n=[]){let o=[];const a=()=>{const e=o.map(e=>r.createContext(e));return function(n){const o=n?.[t]||e;return r.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return a.scopeName=t,[function(n,a){const i=r.createContext(a);i.displayName=n+"Context";const s=o.length;o=[...o,a];const l=n=>{const{scope:o,children:a,...l}=n,c=o?.[t]?.[s]||i,u=r.useMemo(()=>l,Object.values(l));return e(c.Provider,{value:u,children:a})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||i,c=r.useContext(l);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},O(a,...n)]}(Z),[Q,J]=X(Z),ee=r.forwardRef((t,n)=>{const{__scopeAvatar:o,...a}=t,[i,s]=r.useState("idle");return e(Q,{scope:o,imageLoadingStatus:i,onImageLoadingStatusChange:s,children:e(z.span,{...a,ref:n})})});ee.displayName=Z;var te="AvatarImage",ne=r.forwardRef((t,n)=>{const{__scopeAvatar:o,src:a,onLoadingStatusChange:i=()=>{},...s}=t,l=J(te,o),c=function(e,{referrerPolicy:t,crossOrigin:n}){const o=G.useSyncExternalStore(U,()=>!0,()=>!1),a=r.useRef(null),i=o?(a.current||(a.current=new window.Image),a.current):null,[s,l]=r.useState(()=>ae(i,e));return L(()=>{l(ae(i,e))},[i,e]),L(()=>{const e=e=>()=>{l(e)};if(!i)return;const r=e("loaded"),o=e("error");return i.addEventListener("load",r),i.addEventListener("error",o),t&&(i.referrerPolicy=t),"string"==typeof n&&(i.crossOrigin=n),()=>{i.removeEventListener("load",r),i.removeEventListener("error",o)}},[i,n,t]),s}(a,s),u=_(e=>{i(e),l.onImageLoadingStatusChange(e)});return L(()=>{"idle"!==c&&u(c)},[c,u]),"loaded"===c?e(z.img,{...s,ref:n,src:a}):null});ne.displayName=te;var re="AvatarFallback",oe=r.forwardRef((t,n)=>{const{__scopeAvatar:o,delayMs:a,...i}=t,s=J(re,o),[l,c]=r.useState(void 0===a);return r.useEffect(()=>{if(void 0!==a){const e=window.setTimeout(()=>c(!0),a);return()=>window.clearTimeout(e)}},[a]),l&&"loaded"!==s.imageLoadingStatus?e(z.span,{...i,ref:n}):null});function ae(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}oe.displayName=re;var ie=ee,se=ne,le=oe;function ce(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ce(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ce(e))&&(r&&(r+=" "),r+=t);return r}const de=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),fe="-",pe=[],me=e=>{const t=ge(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ve(e);const n=e.split(fe),r=""===n[0]&&n.length>1?1:0;return he(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||pe}return n[e]||pe}}},he=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=he(e,t+1,o);if(n)return n}const a=n.validators;if(null===a)return;const i=0===t?e.join(fe):e.slice(t).join(fe),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},ve=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),ge=e=>{const{theme:t,classGroups:n}=e;return be(n,t)},be=(e,t)=>{const n=de();for(const r in e){const o=e[r];ye(o,n,r,t)}return n},ye=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];we(o,t,n,r)}},we=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?ke(e,t,n,r):Ce(e,t,n,r):xe(e,t,n)},xe=(e,t,n)=>{(""===e?t:Ne(t,e)).classGroupId=n},Ce=(e,t,n,r)=>{Ee(e)?ye(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},ke=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];ye(i,Ne(t,a),n,r)}},Ne=(e,t)=>{let n=e;const r=t.split(fe),o=r.length;for(let e=0;e<o;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=de(),n.nextPart.set(t,o)),n=o}return n},Ee=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Se=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},Me=[],Oe=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),_e=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===r&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){n=s;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return Oe(t,c,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Oe(Me,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Le=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Pe=/\s+/,De=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=De(e[r]))&&(n&&(n+=" "),n+=t);return n},Re=(e,...t)=>{let n,r,o,a;const i=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Pe);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){l=t+(l.length>0?" "+l:l);continue}if(h=r(f),!h){l=t+(l.length>0?" "+l:l);continue}m=!1}const v=0===u.length?"":1===u.length?u[0]:a(u).join(":"),g=d?v+"!":v,b=g+h;if(i.indexOf(b)>-1)continue;i.push(b);const y=o(h,m);for(let e=0;e<y.length;++e){const t=y[e];i.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Se(e.cacheSize),parseClassName:_e(e),sortModifiers:Le(e),...me(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=De(t))&&(o&&(o+=" "),o+=n);return o})(...e))},Te=[],Ae=e=>{const t=t=>t[e]||Te;return t.isThemeGetter=!0,t},Ie=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,je=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,He=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$e=e=>je.test(e),Ye=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),Ke=e=>e.endsWith("%")&&Ye(e.slice(0,-1)),Ge=e=>We.test(e),Ue=()=>!0,Ze=e=>ze.test(e)&&!He.test(e),Xe=()=>!1,Qe=e=>Be.test(e),Je=e=>Ve.test(e),et=e=>!nt(e)&&!ut(e),tt=e=>bt(e,Ct,Xe),nt=e=>Ie.test(e),rt=e=>bt(e,kt,Ze),ot=e=>bt(e,Nt,Ye),at=e=>bt(e,St,Ue),it=e=>bt(e,Et,Xe),st=e=>bt(e,wt,Xe),lt=e=>bt(e,xt,Je),ct=e=>bt(e,Mt,Qe),ut=e=>Fe.test(e),dt=e=>yt(e,kt),ft=e=>yt(e,Et),pt=e=>yt(e,wt),mt=e=>yt(e,Ct),ht=e=>yt(e,xt),vt=e=>yt(e,Mt,!0),gt=e=>yt(e,St,!0),bt=(e,t,n)=>{const r=Ie.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},yt=(e,t,n=!1)=>{const r=Fe.exec(e);return!!r&&(r[1]?t(r[1]):n)},wt=e=>"position"===e||"percentage"===e,xt=e=>"image"===e||"url"===e,Ct=e=>"length"===e||"size"===e||"bg-size"===e,kt=e=>"length"===e,Nt=e=>"number"===e,Et=e=>"family-name"===e,St=e=>"number"===e||"weight"===e,Mt=e=>"shadow"===e,Ot=Re(()=>{const e=Ae("color"),t=Ae("font"),n=Ae("text"),r=Ae("font-weight"),o=Ae("tracking"),a=Ae("leading"),i=Ae("breakpoint"),s=Ae("container"),l=Ae("spacing"),c=Ae("radius"),u=Ae("shadow"),d=Ae("inset-shadow"),f=Ae("text-shadow"),p=Ae("drop-shadow"),m=Ae("blur"),h=Ae("perspective"),v=Ae("aspect"),g=Ae("ease"),b=Ae("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ut,nt],w=()=>[ut,nt,l],x=()=>[$e,"full","auto",...w()],C=()=>[qe,"none","subgrid",ut,nt],k=()=>["auto",{span:["full",qe,ut,nt]},qe,ut,nt],N=()=>[qe,"auto",ut,nt],E=()=>["auto","min","max","fr",ut,nt],S=()=>["auto",...w()],M=()=>[$e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],O=()=>[$e,"screen","full","dvw","lvw","svw","min","max","fit",...w()],_=()=>[$e,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],L=()=>[e,ut,nt],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",pt,st,{position:[ut,nt]}],D=()=>["auto","cover","contain",mt,tt,{size:[ut,nt]}],R=()=>[Ke,dt,rt],T=()=>["","none","full",c,ut,nt],A=()=>["",Ye,dt,rt],I=()=>[Ye,Ke,pt,st],F=()=>["","none",m,ut,nt],j=()=>["none",Ye,ut,nt],W=()=>["none",Ye,ut,nt],z=()=>[Ye,ut,nt],H=()=>[$e,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Ue],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[et],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",Ye],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$e,nt,ut,v]}],container:["container"],columns:[{columns:[Ye,nt,ut,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",ut,nt]}],basis:[{basis:[$e,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,$e,"auto","initial","none",nt]}],grow:[{grow:["",Ye,ut,nt]}],shrink:[{shrink:["",Ye,ut,nt]}],order:[{order:[qe,"first","last","none",ut,nt]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[s,"screen",...M()]}],"min-w":[{"min-w":[s,"screen","none",...M()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,dt,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,gt,at]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ke,nt]}],"font-family":[{font:[ft,it,t]}],"font-features":[{"font-features":[nt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ut,nt]}],"line-clamp":[{"line-clamp":[Ye,"none",ut,ot]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",ut,nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ut,nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",ut,rt]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Ye,"auto",ut,nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ut,nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ut,nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,ut,nt],radial:["",ut,nt],conic:[qe,ut,nt]},ht,lt]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,ut,nt]}],"outline-w":[{outline:["",Ye,dt,rt]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",u,vt,ct]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,vt,ct]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Ye,rt]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",f,vt,ct]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Ye,ut,nt]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[ut,nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ut,nt]}],filter:[{filter:["","none",ut,nt]}],blur:[{blur:F()}],brightness:[{brightness:[Ye,ut,nt]}],contrast:[{contrast:[Ye,ut,nt]}],"drop-shadow":[{"drop-shadow":["","none",p,vt,ct]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Ye,ut,nt]}],"hue-rotate":[{"hue-rotate":[Ye,ut,nt]}],invert:[{invert:["",Ye,ut,nt]}],saturate:[{saturate:[Ye,ut,nt]}],sepia:[{sepia:["",Ye,ut,nt]}],"backdrop-filter":[{"backdrop-filter":["","none",ut,nt]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,ut,nt]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,ut,nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,ut,nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,ut,nt]}],"backdrop-invert":[{"backdrop-invert":["",Ye,ut,nt]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,ut,nt]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,ut,nt]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,ut,nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ut,nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",ut,nt]}],ease:[{ease:["linear","initial",g,ut,nt]}],delay:[{delay:[Ye,ut,nt]}],animate:[{animate:["none",b,ut,nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ut,nt]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[ut,nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ut,nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ut,nt]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Ye,dt,rt,ot]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function _t(...e){return Ot(ue(e))}function Lt(e){return e.toString().padStart(2,"0")}function Pt(e=new Date,t=new Date){return e.getTime()===t.getTime()}function Dt(e=0){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return`${Lt(t)}:${Lt(n)}:${Lt(r)}`}function Rt(e=new Date){const t=new Date(e),n=t.getDay(),r=(0===n?-6:1)-n;t.setDate(t.getDate()+r);const o=new Date(t);return o.setDate(t.getDate()+6),t.setHours(0,0,0,0),o.setHours(23,59,59,999),{start:t,end:o}}function Tt(e=new Date){const t=new Date(e);t.setDate(e.getDate()-1),t.setMilliseconds(e.getMilliseconds()),t.setSeconds(e.getSeconds()),t.setMinutes(e.getMinutes()),t.setHours(e.getHours());const n=new Date(e),r=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")} ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}`;return{dayStart:r(t),dayEnd:r(n)}}const At=({ref:t,className:n,...r})=>e(ie,{ref:t,className:_t("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...r});At.displayName=ie.displayName;const It=({ref:t,className:n,...r})=>e(se,{ref:t,className:_t("aspect-square h-full w-full",n),...r});It.displayName=se.displayName;const Ft=({ref:t,className:n,...r})=>e(le,{ref:t,className:_t("flex h-full w-full items-center justify-center rounded-full bg-muted",n),...r});Ft.displayName=le.displayName;var jt=Object.defineProperty,Wt=(e,t,n)=>(((e,t,n)=>{t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let zt=new class{constructor(){Wt(this,"current",this.detect()),Wt(this,"handoffState","pending"),Wt(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 Ht(e){var t;return zt.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function Bt(e){var t,n;return zt.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function Vt(e){var t,n;return null!=(n=null==(t=Bt(e))?void 0:t.activeElement)?n:null}function $t(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Yt(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return $t(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Yt();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function qt(){let[e]=a(Yt);return i(()=>()=>e.dispose(),[e]),e}let Kt=(e,t)=>{zt.isServer?i(e,t):s(e,t)};function Gt(e){let t=l(e);return Kt(()=>{t.current=e},[e]),t}let Ut=function(e){let t=Gt(e);return o.useCallback((...e)=>t.current(...e),[t])};function Zt(e){return c(()=>e,Object.values(e))}let Xt=d(void 0);function Qt(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function Jt(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=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(r,Jt),r}var en=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(en||{}),tn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tn||{});function nn(){let e=function(){let e=l([]),t=p(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return p(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:s}){s=null!=s?s:on;let l=an(t,e);if(a)return rn(l,n,r,i,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return rn(t,n,r,i,s)}if(1&c){let{unmount:e=!0,...t}=l;return Jt(e?0:1,{0:()=>null,1:()=>rn({...t,hidden:!0,style:{display:"none"}},n,r,i,s)})}return rn(l,n,r,i,s)}({mergeRefs:e,...t}),[e])}function rn(e,t={},n,r,o){let{as:a=n,children:i,refName:s="ref",...l}=cn(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof i?i(t):i;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(dn(a)&&(Object.keys(ln(l)).length>0||Object.keys(ln(d)).length>0)){if(!(!m(u)||Array.isArray(u)&&u.length>1||function(e){return dn(e.type)}(u))){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Qt(t(...e),l.className):Qt(t,l.className),r=n?{className:n}:{},a=an(u.props,ln(cn(l,["ref"])));for(let e in d)e in a&&delete d[e];return h(u,Object.assign({},a,d,c,{ref:o(un(u),c.ref)},r))}if(Object.keys(ln(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ln(l)).concat(Object.keys(ln(d))).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 v(a,Object.assign({},cn(l,["ref"]),!dn(a)&&c,!dn(a)&&d),u)}function on(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function an(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function sn(e){var t;return Object.assign(f(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ln(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function cn(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function un(e){return o.version.split(".")[0]>="19"?e.props.ref:e.ref}function dn(e){return e===g||e===Symbol.for("react.fragment")}var fn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fn||{});let pn=sn(function(e,t){var n;let{features:r=1,...o}=e,a={ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||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&~r)&&!!(2&~r)&&{display:"none"}}};return nn()({ourProps:a,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});function mn(e){return function(e){return"object"==typeof e&&null!==e&&"nodeType"in e}(e)&&"tagName"in e}function hn(e){return mn(e)&&"accessKey"in e}function vn(e){return mn(e)&&"tabIndex"in e}let gn=Symbol();function bn(...e){let t=l(e);i(()=>{t.current=e},[e]);let n=Ut(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[gn]))?void 0:n}let yn=d(null);function wn(){let e=u(yn);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,wn),e}return e}yn.displayName="DescriptionContext";let xn=sn(function(e,t){let n=b(),r=u(Xt),{id:o=`headlessui-description-${n}`,...a}=e,i=wn(),s=bn(t);Kt(()=>i.register(o),[o,i.register]);let l=Zt({...i.slot,disabled:r||!1}),c={ref:s,...i.props,id:o};return nn()({ourProps:c,theirProps:a,slot:l,defaultTag:"p",name:i.name||"Description"})}),Cn=Object.assign(xn,{});var kn=(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))(kn||{});let Nn=d(()=>{});function En({value:e,children:t}){return o.createElement(Nn.Provider,{value:e},t)}let Sn=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}};var Mn,On,_n,Ln=Object.defineProperty,Pn=(e,t,n)=>(((e,t,n)=>{t in e?Ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n),Dn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Rn=(e,t,n)=>(Dn(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},An=(e,t,n,r)=>(Dn(e,t,"write to private field"),t.set(e,n),n);let In=class{constructor(e){Tn(this,Mn,{}),Tn(this,On,new Sn(()=>new Set)),Tn(this,_n,new Set),Pn(this,"disposables",Yt()),An(this,Mn,e),zt.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Rn(this,Mn)}subscribe(e,t){if(zt.isServer)return()=>{};let n={selector:e,callback:t,current:e(Rn(this,Mn))};return Rn(this,_n).add(n),this.disposables.add(()=>{Rn(this,_n).delete(n)})}on(e,t){return zt.isServer?()=>{}:(Rn(this,On).get(e).add(t),this.disposables.add(()=>{Rn(this,On).get(e).delete(t)}))}send(e){let t=this.reduce(Rn(this,Mn),e);if(t!==Rn(this,Mn)){An(this,Mn,t);for(let e of Rn(this,_n)){let t=e.selector(Rn(this,Mn));Fn(e.current,t)||(e.current=t,e.callback(t))}for(let t of Rn(this,On).get(e.type))t(Rn(this,Mn),e)}}};function Fn(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&jn(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&jn(e.entries(),t.entries()):!(!Wn(e)||!Wn(t))&&jn(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function jn(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function Wn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}Mn=new WeakMap,On=new WeakMap,_n=new WeakMap;var zn=Object.defineProperty,Hn=(e,t,n)=>(((e,t,n)=>{t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Bn=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Bn||{});let Vn={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},$n=class e extends In{constructor(){super(...arguments),Hn(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Hn(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return Jt(t.type,Vn,e,t)}};const Yn=new Sn(()=>$n.new());var qn,Kn={exports:{}},Gn={};var Un,Zn,Xn={};
11
+ /**
12
+ * @license React
13
+ * use-sync-external-store-with-selector.development.js
14
+ *
15
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */var Qn=(Zn||(Zn=1,"production"===process.env.NODE_ENV?Kn.exports=function(){if(qn)return Gn;qn=1;var e=o,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return Gn.useSyncExternalStoreWithSelector=function(e,o,l,c,u){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=i(function(){function e(e){if(!a){if(a=!0,n=e,e=c(e),void 0!==u&&f.hasValue){var o=f.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=c(e);return void 0!==u&&u(o,i)?(n=e,o):(n=e,r=i)}var n,r,a=!1,i=void 0===l?null:l;return[function(){return e(o())},null===i?void 0:function(){return e(i())}]},[o,l,c,u]);var p=n(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},Gn}():Kn.exports=(Un||(Un=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=o,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;Xn.useSyncExternalStoreWithSelector=function(e,o,l,c,u){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=i(function(){function e(e){if(!a){if(a=!0,n=e,e=c(e),void 0!==u&&f.hasValue){var o=f.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=c(e);return void 0!==u&&u(o,i)?(n=e,o):(n=e,r=i)}var n,r,a=!1,i=void 0===l?null:l;return[function(){return e(o())},null===i?void 0:function(){return e(i())}]},[o,l,c,u]);var p=n(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Xn)),Kn.exports);function Jn(e,t,n=Fn){return Qn.useSyncExternalStoreWithSelector(Ut(t=>e.subscribe(er,t)),Ut(()=>e.state),Ut(()=>e.state),Ut(t),n)}function er(e){return e}function tr(e,t){let n=b(),r=Yn.get(t),[o,a]=Jn(r,p(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return Kt(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!a||o)}let nr=new Map,rr=new Map;function or(e){var t;let n=null!=(t=rr.get(e))?t:0;return rr.set(e,n+1),0!==n||(nr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>ar(e)}function ar(e){var t;let n=null!=(t=rr.get(e))?t:1;if(1===n?rr.delete(e):rr.set(e,n-1),1!==n)return;let r=nr.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,nr.delete(e))}let ir=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),sr=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var lr=(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))(lr||{}),cr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(cr||{}),ur=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ur||{});var dr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(dr||{});var fr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(fr||{});function pr(e){null==e||e.focus({preventScroll:!0})}"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));let mr=["textarea","input"].join(",");function hr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?Bt(e[0]):document:Bt(e),i=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(sr)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ir)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);o.length>0&&i.length>1&&(i=i.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==a?void 0:a.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(r))-1;if(4&t)return Math.max(0,i.indexOf(r))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=i.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=i[e],null==s||s.focus(u),d+=l}while(s!==Vt(s));return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,mr))&&n}(s)&&s.select(),2}function vr(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gr(){return vr()||/Android/gi.test(window.navigator.userAgent)}function br(e,t,n,r){let o=Gt(n);i(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function yr(e,t,n,r){let o=Gt(n);i(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function wr(e,t,n){let r=Gt(n),o=p(function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.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(o)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var n;return e!==(null==(n=Ht(e))?void 0:n.body)&&Jt(t,{0:()=>e.matches(ir),1(){let t=e;for(;null!==t;){if(t.matches(ir))return!0;t=t.parentElement}return!1}})}(o,dr.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)},[r,t]),a=l(null);br(e,"pointerdown",e=>{var t,n;gr()||(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),br(e,"pointerup",e=>{if(gr()||!a.current)return;let t=a.current;return a.current=null,o(e,()=>t)},!0);let i=l({x:0,y:0});br(e,"touchstart",e=>{i.current.x=e.touches[0].clientX,i.current.y=e.touches[0].clientY},!0),br(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-i.current.x)>=30||Math.abs(n-i.current.y)>=30))return o(e,()=>vn(e.target)?e.target:null)},!0),yr(e,"blur",e=>o(e,()=>function(e){return hn(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null),!0)}function xr(...e){return c(()=>Ht(...e),[...e])}function Cr(e,t,n,r){let o=Gt(n);i(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}function kr(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-o);n.style(r,"paddingRight",`${a}px`)}}}function Nr(){return vr()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Yt();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,a=null;t.addEventListener(e,"click",t=>{if(vn(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),i=e.querySelector(o);vn(i)&&!r(i)&&(a=i)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),vn(e.target)&&function(e){return mn(e)&&"style"in e}(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(vn(e.target)){if(function(e){return hn(e)&&"INPUT"===e.nodeName}(e.target))return;if(r(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;o!==t&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function Er(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Sr=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let a=t[e].call(n,...o);a&&(n=a,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Yt(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=Er(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Er(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[Nr(),kr(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Mr(e,t,n=()=>({containers:[]})){let r=function(e){return y(e.subscribe,e.getSnapshot,e.getSnapshot)}(Sr),o=t?r.get(t):void 0,a=!!o&&o.count>0;return Kt(()=>{if(t&&e)return Sr.dispatch("PUSH",t,n),()=>Sr.dispatch("POP",t,n)},[e,t]),a}var Or,_r;Sr.subscribe(()=>{let e=Sr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Sr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Sr.dispatch("TEARDOWN",n)}}),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Or=null==process?void 0:process.env)?void 0:Or.NODE_ENV)&&void 0===(null==(_r=null==Element?void 0:Element.prototype)?void 0:_r.getAnimations)&&(Element.prototype.getAnimations=function(){return[]});var Lr=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Lr||{});function Pr(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Dr(e,t,n,r){let[o,i]=a(n),{hasFlag:s,addFlag:c,removeFlag:u}=function(e=0){let[t,n]=a(e),r=p(e=>n(e),[]),o=p(e=>n(t=>t|e),[]),i=p(e=>(t&e)===e,[t]),s=p(e=>n(t=>t&~e),[]),l=p(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:l}}(e&&o?3:0),d=l(!1),f=l(!1),m=qt();return Kt(()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let a=Yt();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(function(e,t){var n,r;let o=Yt();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===i.length?(t(),o.dispose):(Promise.allSettled(i.map(e=>e.finished)).then(()=>{a||t()}),o.dispose)}(e,r))})}),a.dispose}(t,{inFlight:d,prepare(){f.current?f.current=!1:f.current=d.current,d.current=!0,!f.current&&(n?(c(3),u(4)):(c(4),u(2)))},run(){f.current?n?(u(3),c(4)):(u(4),c(3)):n?u(1):c(1)},done(){var e;f.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(d.current=!1,u(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&c(3))},[e,n,t,m]),e?[o,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Rr(e,t){let n=l([]),r=Ut(e);i(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}function Tr(){return"undefined"!=typeof window}function Ar(e){return jr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ir(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fr(e){var t;return null==(t=(jr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function jr(e){return!!Tr()&&(e instanceof Node||e instanceof Ir(e).Node)}function Wr(e){return!!Tr()&&(e instanceof Element||e instanceof Ir(e).Element)}function zr(e){return!!Tr()&&(e instanceof HTMLElement||e instanceof Ir(e).HTMLElement)}function Hr(e){return!(!Tr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ir(e).ShadowRoot)}function Br(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Vr(e){return/^(table|td|th)$/.test(Ar(e))}function $r(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Yr=/transform|translate|scale|rotate|perspective|filter/,qr=/paint|layout|strict|content/,Kr=e=>!!e&&"none"!==e;let Gr;function Ur(e){const t=Wr(e)?Qr(e):e;return Kr(t.transform)||Kr(t.translate)||Kr(t.scale)||Kr(t.rotate)||Kr(t.perspective)||!Zr()&&(Kr(t.backdropFilter)||Kr(t.filter))||Yr.test(t.willChange||"")||qr.test(t.contain||"")}function Zr(){return null==Gr&&(Gr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gr}function Xr(e){return/^(html|body|#document)$/.test(Ar(e))}function Qr(e){return Ir(e).getComputedStyle(e)}function Jr(e){return Wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eo(e){if("html"===Ar(e))return e;const t=e.assignedSlot||e.parentNode||Hr(e)&&e.host||Fr(e);return Hr(t)?t.host:t}function to(e){const t=eo(e);return Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:zr(t)&&Br(t)?t:to(t)}function no(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=to(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ir(o);if(a){const e=ro(i);return t.concat(i,i.visualViewport||[],Br(o)?o:[],e&&n?no(e):[])}return t.concat(o,no(o,[],n))}function ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const oo=["top","right","bottom","left"],ao=Math.min,io=Math.max,so=Math.round,lo=Math.floor,co=e=>({x:e,y:e}),uo={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e,t,n){return io(e,ao(t,n))}function po(e,t){return"function"==typeof e?e(t):e}function mo(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function vo(e){return"x"===e?"y":"x"}function go(e){return"y"===e?"height":"width"}function bo(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function yo(e){return vo(bo(e))}function wo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const xo=["left","right"],Co=["right","left"],ko=["top","bottom"],No=["bottom","top"];function Eo(e,t,n,r){const o=ho(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Co:xo:t?xo:Co;case"left":case"right":return t?ko:No;default:return[]}}(mo(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(wo)))),a}function So(e){const t=mo(e);return uo[t]+e.slice(t.length)}function Mo(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 Oo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _o(e,t,n){let{reference:r,floating:o}=e;const a=bo(t),i=yo(t),s=go(i),l=mo(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ho(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Lo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=po(t,e),m=Mo(p),h=s[f?"floating"===d?"reference":"floating":d],v=Oo(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=Oo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-w.top+m.top)/y.y,bottom:(w.bottom-v.bottom+m.bottom)/y.y,left:(v.left-w.left+m.left)/y.x,right:(w.right-v.right+m.right)/y.x}}function Po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Do(e){return oo.some(t=>e[t]>=0)}const Ro=new Set(["left","top"]);function To(e){const t=Qr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zr(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=so(n)!==a||so(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ao(e){return Wr(e)?e:e.contextElement}function Io(e){const t=Ao(e);if(!zr(t))return co(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=To(t);let i=(a?so(n.width):n.width)/r,s=(a?so(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Fo=co(0);function jo(e){const t=Ir(e);return Zr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fo}function Wo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Ao(e);let i=co(1);t&&(r?Wr(r)&&(i=Io(r)):i=Io(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ir(e))&&t}(a,n,r)?jo(a):co(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Ir(a),t=r&&Wr(r)?Ir(r):r;let n=e,o=ro(n);for(;o&&r&&t!==n;){const e=Io(o),t=o.getBoundingClientRect(),r=Qr(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=Ir(o),o=ro(n)}}return Oo({width:u,height:d,x:l,y:c})}function zo(e,t){const n=Jr(e).scrollLeft;return t?t.left+n:Wo(Fr(e)).left+n}function Ho(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-zo(e,n),y:n.top+t.scrollTop}}function Bo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ir(e),r=Fr(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Zr();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=zo(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Fr(e),n=Jr(e),r=e.ownerDocument.body,o=io(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=io(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+zo(e);const s=-n.scrollTop;return"rtl"===Qr(r).direction&&(i+=io(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Fr(e));else if(Wr(t))r=function(e,t){const n=Wo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=zr(e)?Io(e):co(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=jo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Oo(r)}function Vo(e,t){const n=eo(e);return!(n===t||!Wr(n)||Xr(n))&&("fixed"===Qr(n).position||Vo(n,t))}function $o(e,t,n){const r=zr(t),o=Fr(t),a="fixed"===n,i=Wo(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=co(0);function c(){l.x=zo(o)}if(r||!r&&!a)if(("body"!==Ar(t)||Br(o))&&(s=Jr(t)),r){const e=Wo(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?co(0):Ho(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function Yo(e){return"static"===Qr(e).position}function qo(e,t){if(!zr(e)||"fixed"===Qr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Fr(e)===n&&(n=n.ownerDocument.body),n}function Ko(e,t){const n=Ir(e);if($r(e))return n;if(!zr(e)){let t=eo(e);for(;t&&!Xr(t);){if(Wr(t)&&!Yo(t))return t;t=eo(t)}return n}let r=qo(e,t);for(;r&&Vr(r)&&Yo(r);)r=qo(r,t);return r&&Xr(r)&&Yo(r)&&!Ur(r)?n:r||function(e){let t=eo(e);for(;zr(t)&&!Xr(t);){if(Ur(t))return t;if($r(t))return null;t=eo(t)}return null}(e)||n}const Go={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Fr(r),s=!!t&&$r(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=co(1);const u=co(0),d=zr(r);if((d||!d&&!a)&&(("body"!==Ar(r)||Br(i))&&(l=Jr(r)),d)){const e=Wo(r);c=Io(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?co(0):Ho(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Fr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?$r(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=no(e,[],!1).filter(e=>Wr(e)&&"body"!==Ar(e)),o=null;const a="fixed"===Qr(e).position;let i=a?eo(e):e;for(;Wr(i)&&!Xr(i);){const t=Qr(i),n=Ur(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Br(i)&&!n&&Vo(e,i))?r=r.filter(e=>e!==i):o=t,i=eo(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=Bo(t,a[0],o);let s=i.top,l=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const n=Bo(t,a[e],o);s=io(n.top,s),l=ao(n.right,l),c=ao(n.bottom,c),u=io(n.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:Ko,getElementRects:async function(e){const t=this.getOffsetParent||Ko,n=this.getDimensions,r=await n(e.floating);return{reference:$o(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=To(e);return{width:t,height:n}},getScale:Io,isElement:Wr,isRTL:function(e){return"rtl"===Qr(e).direction}};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ao(e),u=o||a?[...c?no(c):[],...t?no(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Fr(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-lo(d)+"px "+-lo(o.clientWidth-(u+f))+"px "+-lo(o.clientHeight-(d+p))+"px "+-lo(u)+"px",threshold:io(0,ao(1,l))||1};let h=!0;function v(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||Uo(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?Wo(e):null;return l&&function t(){const r=Wo(e);h&&!Uo(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Xo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=mo(n),s=ho(n),l="y"===bo(n),c=Ro.has(i)?-1:1,u=a&&l?-1:1,d=po(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Qo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=po(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),f=bo(mo(o)),p=vo(f);let m=u[p],h=u[f];if(i){const e="y"===p?"bottom":"right";m=fo(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===f?"bottom":"right";h=fo(h+d["y"===f?"top":"left"],h,h-d[e])}const v=l.fn({...t,[p]:m,[f]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:i,[f]:s}}}}}},Jo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=po(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=mo(o),b=bo(s),y=mo(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!h?[So(s)]:function(e){const t=So(e);return[wo(e),t,wo(t)]}(s)),C="none"!==m;!f&&C&&x.push(...Eo(s,h,m,w));const k=[s,...x],N=await l.detectOverflow(t,v),E=[];let S=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&E.push(N[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ho(e),o=yo(e),a=go(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=So(i)),[i,So(i)]}(o,i,w);E.push(N[e[0]],N[e[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every(e=>e<=0)){var M,O;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=k[e];if(t){if(!("alignment"===d&&b!==bo(t))||S.every(e=>bo(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(O=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var _;const e=null==(_=S.filter(e=>{if(C){const t=bo(e.placement);return t===b||"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:_[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ea=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=po(e,t),u=await i.detectOverflow(t,c),d=mo(o),f=ho(o),p="y"===bo(o),{width:m,height:h}=a.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const b=h-u.top-u.bottom,y=m-u.left-u.right,w=ao(h-u[v],b),x=ao(m-u[g],y),C=!t.middlewareData.shift;let k=w,N=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),C&&!f){const e=io(u.left,0),t=io(u.right,0),n=io(u.top,0),r=io(u.bottom,0);p?N=m-2*(0!==e||0!==t?e+t:io(u.left,u.right)):k=h-2*(0!==n||0!==r?n+r:io(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:k});const E=await i.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}},ta=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=po(e,t);switch(o){case"referenceHidden":{const e=Po(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Do(e)}}}case"escaped":{const e=Po(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Do(e)}}}default:return{}}}}},na=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=po(e,t)||{};if(null==c)return{};const d=Mo(u),f={x:n,y:r},p=yo(o),m=go(p),h=await i.getDimensions(c),v="y"===p,g=v?"top":"left",b=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==i.isElement?void 0:i.isElement(C))||(k=s.floating[y]||a.floating[m]);const N=w/2-x/2,E=k/2-h[m]/2-1,S=ao(d[g],E),M=ao(d[b],E),O=S,_=k-h[m]-M,L=k/2-h[m]/2+N,P=fo(O,L,_),D=!l.arrow&&null!=ho(o)&&L!==P&&a.reference[m]/2-(L<O?S:M)-h[m]/2<0,R=D?L<O?L-O:L-_:0;return{[p]:f[p]+R,data:{[p]:P,centerOffset:L-P-R,...D&&{alignmentOffset:R}},reset:D}}}),ra=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=po(e,t),u={x:n,y:r},d=bo(o),f=vo(d);let p=u[f],m=u[d];const h=po(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,b;const e="y"===f?"width":"height",t=Ro.has(mo(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},oa=(e,t,n)=>{const r=new Map,o={platform:Go,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:Lo},l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=_o(c,r,l),f=r,p=0;const m={};for(let n=0;n<a.length;n++){const h=a[n];if(!h)continue;const{name:v,fn:g}=h,{x:b,y:y,data:w,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,m[v]={...m[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=_o(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:a})};var aa="undefined"!=typeof document?s:function(){};function ia(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 n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ia(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ia(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sa(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function la(e,t){const n=sa(e);return Math.round(t*n)/n}function ca(e){const t=r.useRef(e);return aa(()=>{t.current=e}),t}const ua=(e,t)=>{const n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},da=(e,t)=>{const n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},fa=(e,t)=>({fn:ra(e).fn,options:[e,t]}),pa=(e,t)=>{const n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ma=(e,t)=>{const n=ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},ha=(e,t)=>{const n=ta(e);return{name:n.name,fn:n.fn,options:[e,t]}},va=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?na({element:n.current,padding:r}).fn(t):{}:n?na({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};let ga=d(null);ga.displayName="OpenClosedContext";var ba=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ba||{});function ya(){return u(ga)}function wa({value:e,children:t}){return o.createElement(ga.Provider,{value:e},t)}function xa({children:e}){return o.createElement(ga.Provider,{value:null},e)}let Ca=[];function ka(e){let t=Ut(e),n=l(!1);i(()=>(n.current=!1,()=>{n.current=!0,$t(()=>{n.current&&t()})}),[t])}!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(!vn(e.target)||e.target===document.body||Ca[0]===e.target)return;let t=e.target;t=t.closest(ir),Ca.unshift(null!=t?t:e.target),Ca=Ca.filter(e=>null!=e&&e.isConnected),Ca.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})});let Na=d(!1);function Ea(){return u(Na)}function Sa(e){return o.createElement(Na.Provider,{value:e.force},e.children)}let Ma=g,Oa=sn(function(e,t){let{ownerDocument:n=null,...r}=e,s=l(null),c=bn(function(e,t=!0){return Object.assign(e,{[gn]:t})}(e=>{s.current=e}),t),d=xr(s.current),f=function(e){let t=Ea(),n=u(La),[r,o]=a(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(zt.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return i(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),i(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}(null!=n?n:d),p=u(Pa),m=qt(),h=nn();return ka(()=>{var e;f&&f.childNodes.length<=0&&(null==(e=f.parentElement)||e.removeChild(f))}),f?N(o.createElement("div",{"data-headlessui-portal":"",ref:e=>{m.dispose(),p&&e&&m.add(p.register(e))}},h({ourProps:{ref:c},theirProps:r,slot:{},defaultTag:Ma,name:"Portal"})),f):null});let _a=g,La=d(null);let Pa=d(null);let Da=sn(function(e,t){let n=bn(t),{enabled:r=!0,ownerDocument:a,...i}=e,s=nn();return r?o.createElement(Oa,{...i,ownerDocument:a,ref:n}):s({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Ma,name:"Portal"})}),Ra=sn(function(e,t){let{target:n,...r}=e,a={ref:bn(t)},i=nn();return o.createElement(La.Provider,{value:n},i({ourProps:a,theirProps:r,defaultTag:_a,name:"Popover.Group"}))}),Ta=Object.assign(Da,{Group:Ra});function Aa(e,t=("undefined"!=typeof document?document.defaultView:null),n){let r=tr(e,"escape");Cr(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===kn.Escape&&n(e))})}let Ia=d(null);function Fa({children:e,node:t}){let[n,r]=a(null),i=ja(null!=t?t:n);return o.createElement(Ia.Provider,{value:i},e,null===i&&o.createElement(pn,{features:fn.Hidden,ref:e=>{var t,n;if(e)for(let o of null!=(n=null==(t=Ht(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&mn(o)&&null!=o&&o.contains(e)){r(o);break}}}))}function ja(e=null){var t;return null!=(t=u(Ia))?t:e}function Wa(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in r&&r.useSyncExternalStore(()=>()=>{},()=>!1,()=>!e)}(),[t,n]=r.useState(zt.isHandoffComplete);return t&&!1===zt.isHandoffComplete&&n(!1),r.useEffect(()=>{!0!==t&&n(!0)},[t]),r.useEffect(()=>zt.handoff(),[]),!e&&t}function za(){let e=l(!1);return Kt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ha=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ha||{});function Ba(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)mn(n.current)&&t.add(n.current);return t}var Va=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Va||{});let $a=sn(function(e,t){let n=l(null),r=bn(n,t),{initialFocus:a,initialFocusFallback:i,containers:s,features:c=15,...u}=e;Wa()||(c=0);let d=xr(n.current);!function(e,{ownerDocument:t}){let n=!!(8&e),r=qa(n);Rr(()=>{n||function(e){return Vt(e)===e}(null==t?void 0:t.body)&&pr(r())},[n]),ka(()=>{n&&pr(r())})}(c,{ownerDocument:d});let f=Ka(c,{ownerDocument:d,container:n,initialFocus:a,initialFocusFallback:i});Ga(c,{ownerDocument:d,container:n,containers:s,previousActiveElement:f});let p=function(){let e=l(0);return yr(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}(),m=Ut(e=>{if(!hn(n.current))return;let t=n.current;Jt(p.current,{[Ha.Forwards]:()=>{hr(t,lr.First,{skipElements:[e.relatedTarget,i]})},[Ha.Backwards]:()=>{hr(t,lr.Last,{skipElements:[e.relatedTarget,i]})}})}),h=tr(!!(2&c),"focus-trap#tab-lock"),v=qt(),g=l(!1),b={ref:r,onKeyDown(e){"Tab"==e.key&&(g.current=!0,v.requestAnimationFrame(()=>{g.current=!1}))},onBlur(e){if(!(4&c))return;let t=Ba(s);hn(n.current)&&t.add(n.current);let r=e.relatedTarget;vn(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(Ua(t,r)||(g.current?hr(n.current,Jt(p.current,{[Ha.Forwards]:()=>lr.Next,[Ha.Backwards]:()=>lr.Previous})|lr.WrapAround,{relativeTo:e.target}):vn(e.target)&&pr(e.target)))}},y=nn();return o.createElement(o.Fragment,null,h&&o.createElement(pn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:fn.Focusable}),y({ourProps:b,theirProps:u,defaultTag:"div",name:"FocusTrap"}),h&&o.createElement(pn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:fn.Focusable}))}),Ya=Object.assign($a,{features:Va});function qa(e=!0){let t=l(Ca.slice());return Rr(([e],[n])=>{!0===n&&!1===e&&$t(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=Ca.slice())},[e,Ca,t]),Ut(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}function Ka(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let a=l(null),i=tr(!!(1&e),"focus-trap#initial-focus"),s=za();return Rr(()=>{if(0===e)return;if(!i)return void(null!=o&&o.current&&pr(o.current));let l=n.current;l&&$t(()=>{if(!s.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n)return void(a.current=n)}else if(l.contains(n))return void(a.current=n);if(null!=r&&r.current)pr(r.current);else{if(16&e){if(hr(l,lr.First|lr.AutoFocus)!==cr.Error)return}else if(hr(l,lr.First)!==cr.Error)return;if(null!=o&&o.current&&(pr(o.current),(null==t?void 0:t.activeElement)===o.current))return}a.current=null==t?void 0:t.activeElement})},[o,i,e]),a}function Ga(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let a=za(),i=!!(4&e);Cr(null==t?void 0:t.defaultView,"focus",e=>{if(!i||!a.current)return;let t=Ba(r);hn(n.current)&&t.add(n.current);let s=o.current;if(!s)return;let l=e.target;hn(l)?Ua(t,l)?(o.current=l,pr(l)):(e.preventDefault(),e.stopPropagation(),pr(s)):pr(o.current)},!0)}function Ua(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Za(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!dn(null!=(t=e.as)?t:ni)||1===o.Children.count(e.children)}let Xa=d(null);Xa.displayName="TransitionContext";var Qa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Qa||{});let Ja=d(null);function ei(e){return"children"in e?ei(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function ti(e,t){let n=Gt(e),r=l([]),o=za(),a=qt(),i=Ut((e,t=tn.Hidden)=>{let i=r.current.findIndex(({el:t})=>t===e);-1!==i&&(Jt(t,{[tn.Unmount](){r.current.splice(i,1)},[tn.Hidden](){r.current[i].state="hidden"}}),a.microTask(()=>{var e;!ei(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),s=Ut(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,tn.Unmount)}),u=l([]),d=l(Promise.resolve()),f=l({enter:[],leave:[]}),p=Ut((e,n,r)=>{u.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{u.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(f.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?d.current=d.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),m=Ut((e,t,n)=>{Promise.all(f.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=u.current.shift())||e()}).then(()=>n(t))});return c(()=>({children:r,register:s,unregister:i,onStart:p,onStop:m,wait:d,chains:f}),[s,i,r,p,m,f,d])}Ja.displayName="NestingContext";let ni=g,ri=en.RenderStrategy;let oi=sn(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,u=l(null),d=bn(...Za(e)?[u,t]:null===t?[]:[t]);Wa();let f=ya();if(void 0===n&&null!==f&&(n=(f&ba.Open)===ba.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,m]=a(n?"visible":"hidden"),h=ti(()=>{n||m("hidden")}),[v,b]=a(!0),y=l([n]);Kt(()=>{!1!==v&&y.current[y.current.length-1]!==n&&(y.current.push(n),b(!1))},[y,n]);let w=c(()=>({show:n,appear:r,initial:v}),[n,r,v]);Kt(()=>{n?m("visible"):!ei(h)&&null!==u.current&&m("hidden")},[n,h]);let x={unmount:i},C=Ut(()=>{var t;v&&b(!1),null==(t=e.beforeEnter)||t.call(e)}),k=Ut(()=>{var t;v&&b(!1),null==(t=e.beforeLeave)||t.call(e)}),N=nn();return o.createElement(Ja.Provider,{value:h},o.createElement(Xa.Provider,{value:w},N({ourProps:{...x,as:g,children:o.createElement(ai,{ref:d,...x,...s,beforeEnter:C,beforeLeave:k})},theirProps:{},defaultTag:g,features:ri,visible:"visible"===p,name:"Transition"})))}),ai=sn(function(e,t){var n,r;let{transition:s=!0,beforeEnter:c,afterEnter:d,beforeLeave:f,afterLeave:p,enter:m,enterFrom:h,enterTo:v,entered:g,leave:b,leaveFrom:y,leaveTo:w,...x}=e,[C,k]=a(null),N=l(null),E=Za(e),S=bn(...E?[N,t,k]:null===t?[]:[t]),M=null==(n=x.unmount)||n?tn.Unmount:tn.Hidden,{show:O,appear:_,initial:L}=function(){let e=u(Xa);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,D]=a(O?"visible":"hidden"),R=function(){let e=u(Ja);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:T,unregister:A}=R;Kt(()=>T(N),[T,N]),Kt(()=>{if(M===tn.Hidden&&N.current)return O&&"visible"!==P?void D("visible"):Jt(P,{hidden:()=>A(N),visible:()=>T(N)})},[P,N,T,A,O,M]);let I=Wa();Kt(()=>{if(E&&I&&"visible"===P&&null===N.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[N,P,I,E]);let F=L&&!_,j=_&&O&&L,W=l(!1),z=ti(()=>{W.current||(D("hidden"),A(N))},R),H=Ut(e=>{W.current=!0;let t=e?"enter":"leave";z.onStart(N,t,e=>{"enter"===e?null==c||c():"leave"===e&&(null==f||f())})}),B=Ut(e=>{let t=e?"enter":"leave";W.current=!1,z.onStop(N,t,e=>{"enter"===e?null==d||d():"leave"===e&&(null==p||p())}),"leave"===t&&!ei(z)&&(D("hidden"),A(N))});i(()=>{E&&s||(H(O),B(O))},[O,E,s]);let V=!(!s||!E||!I||F),[,$]=Dr(V,C,O,{start:H,end:B}),Y=ln({ref:S,className:(null==(r=Qt(x.className,j&&m,j&&h,$.enter&&m,$.enter&&$.closed&&h,$.enter&&!$.closed&&v,$.leave&&b,$.leave&&!$.closed&&y,$.leave&&$.closed&&w,!$.transition&&O&&g))?void 0:r.trim())||void 0,...Pr($)}),q=0;"visible"===P&&(q|=ba.Open),"hidden"===P&&(q|=ba.Closed),O&&"hidden"===P&&(q|=ba.Opening),!O&&"visible"===P&&(q|=ba.Closing);let K=nn();return o.createElement(Ja.Provider,{value:z},o.createElement(wa,{value:q},K({ourProps:Y,theirProps:x,defaultTag:ni,features:ri,visible:"visible"===P,name:"Transition.Child"})))}),ii=sn(function(e,t){let n=null!==u(Xa),r=null!==ya();return o.createElement(o.Fragment,null,!n&&r?o.createElement(oi,{ref:t,...e}):o.createElement(ai,{ref:t,...e}))}),si=Object.assign(oi,{Child:ii,Root:oi});var li=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(li||{}),ci=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ci||{});let ui={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},di=d(null);function fi(e){let t=u(di);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fi),t}return t}function pi(e,t){return Jt(t.type,ui,e,t)}di.displayName="DialogContext";let mi=sn(function(e,t){let n=b(),{id:r=`headlessui-dialog-${n}`,open:s,onClose:d,initialFocus:f,role:m="dialog",autoFocus:h=!0,__demoMode:v=!1,unmount:g=!1,...y}=e,C=l(!1);m="dialog"===m||"alertdialog"===m?m:(C.current||(C.current=!0),"dialog");let k=ya();void 0===s&&null!==k&&(s=(k&ba.Open)===ba.Open);let N=l(null),E=bn(N,t),S=xr(N.current),M=s?0:1,[O,_]=w(pi,{titleId:null,descriptionId:null,panelRef:x()}),L=Ut(()=>d(!1)),P=Ut(e=>_({type:0,id:e})),D=!!Wa()&&0===M,[R,T]=function(){let e=u(Pa),t=l([]),n=Ut(n=>(t.current.push(n),e&&e.register(n),()=>r(n))),r=Ut(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),a=c(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,c(()=>function({children:e}){return o.createElement(Pa.Provider,{value:a},e)},[a])]}(),A={get current(){var e;return null!=(e=O.panelRef.current)?e:N.current}},I=ja(),{resolveContainers:F}=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ut(()=>{var r,o;let a=Ht(n),i=[];for(let t of e)null!==t&&(mn(t)?i.push(t):"current"in t&&mn(t.current)&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(r=null==a?void 0:a.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&mn(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(o=null==n?void 0:n.getRootNode())?void 0:o.host))||i.some(t=>e.contains(t))||i.push(e));return i});return{resolveContainers:r,contains:Ut(e=>r().some(t=>t.contains(e)))}}({mainTreeNode:I,portals:R,defaultContainers:[A]}),j=null!==k&&(k&ba.Closing)===ba.Closing;!function(e,{allowed:t,disallowed:n}={}){let r=tr(e,"inert-others");Kt(()=>{var e,o;if(!r)return;let a=Yt();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&a.add(or(t));let i=null!=(o=null==t?void 0:t())?o:[];for(let e of i){if(!e)continue;let t=Ht(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)i.some(t=>e.contains(t))||a.add(or(e));n=n.parentElement}}return a.dispose},[r,t,n])}(!v&&!j&&D,{allowed:Ut(()=>{var e,t;return[null!=(t=null==(e=N.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:Ut(()=>{var e;return[null!=(e=null==I?void 0:I.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let W=Yn.get(null);Kt(()=>{if(D)return W.actions.push(r),()=>W.actions.pop(r)},[W,r,D]);let z=Jn(W,p(e=>W.selectors.isTop(e,r),[W,r]));wr(z,F,e=>{e.preventDefault(),L()}),Aa(z,null==S?void 0:S.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),L()}),function(e,t,n=()=>[document.body]){Mr(tr(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!v&&!j&&D,S,F),function(e,t,n){let r=Gt(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});i(()=>{if(!e)return;let n=null===t?null:hn(t)?t:t.current;if(!n)return;let o=Yt();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}(D,N,L);let[H,B]=function(){let[e,t]=a([]);return[e.length>0?e.join(" "):void 0,c(()=>function(e){let n=Ut(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),r=c(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return o.createElement(yn.Provider,{value:r},e.children)},[t])]}(),V=c(()=>[{dialogState:M,close:L,setTitleId:P,unmount:g},O],[M,L,P,g,O]),$=Zt({open:0===M}),Y={ref:E,id:r,role:m,tabIndex:-1,"aria-modal":v?void 0:0===M||void 0,"aria-labelledby":O.titleId,"aria-describedby":H,unmount:g},q=!function(){var e;let[t]=a(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=a(null!=(e=null==t?void 0:t.matches)&&e);return Kt(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),K=Va.None;D&&!v&&(K|=Va.RestoreFocus,K|=Va.TabLock,h&&(K|=Va.AutoFocus),q&&(K|=Va.InitialFocus));let G=nn();return o.createElement(xa,null,o.createElement(Sa,{force:!0},o.createElement(Ta,null,o.createElement(di.Provider,{value:V},o.createElement(Ra,{target:N},o.createElement(Sa,{force:!1},o.createElement(B,{slot:$},o.createElement(T,null,o.createElement(Ya,{initialFocus:f,initialFocusFallback:N,containers:F,features:K},o.createElement(En,{value:L},G({ourProps:Y,theirProps:y,slot:$,defaultTag:hi,features:vi,visible:0===M,name:"Dialog"})))))))))))}),hi="div",vi=en.RenderStrategy|en.Static;let gi=sn(function(e,t){let{transition:n=!1,open:r,...a}=e,i=ya(),s=e.hasOwnProperty("open")||null!==i,l=e.hasOwnProperty("onClose");if(!s&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===r&&!n||a.static?o.createElement(Fa,null,o.createElement(mi,{ref:t,open:r,...a})):o.createElement(Fa,null,o.createElement(si,{show:r,transition:n,unmount:a.unmount},o.createElement(mi,{ref:t,...a})))}),bi=sn(function(e,t){let n=b(),{id:r=`headlessui-dialog-panel-${n}`,transition:a=!1,...i}=e,[{dialogState:s,unmount:l},c]=fi("Dialog.Panel"),u=bn(t,c.panelRef),d=Zt({open:0===s}),f=Ut(e=>{e.stopPropagation()}),p={ref:u,id:r,onClick:f},m=a?ii:g,h=a?{unmount:l}:{},v=nn();return o.createElement(m,{...h},v({ourProps:p,theirProps:i,slot:d,defaultTag:"div",name:"Dialog.Panel"}))});sn(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:a,unmount:i}]=fi("Dialog.Backdrop"),s=Zt({open:0===a}),l={ref:t,"aria-hidden":!0},c=n?ii:g,u=n?{unmount:i}:{},d=nn();return o.createElement(c,{...u},d({ourProps:l,theirProps:r,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))});let yi=sn(function(e,t){let n=b(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:a,setTitleId:s}]=fi("Dialog.Title"),l=bn(t);i(()=>(s(r),()=>s(null)),[r,s]);let c=Zt({open:0===a}),u={ref:l,id:r};return nn()({ourProps:u,theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})}),wi=Object.assign(gi,{Panel:bi,Title:yi,Description:Cn});function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xi.apply(null,arguments)}var Ci=function(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e},{})},ki="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Ni="top",Ei="bottom",Si="right",Mi="left",Oi="auto",_i=[Ni,Ei,Si,Mi],Li="start",Pi="end",Di="viewport",Ri="popper",Ti=_i.reduce(function(e,t){return e.concat([t+"-"+Li,t+"-"+Pi])},[]),Ai=[].concat(_i,[Oi]).reduce(function(e,t){return e.concat([t,t+"-"+Li,t+"-"+Pi])},[]),Ii=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Fi(e){return e?(e.nodeName||"").toLowerCase():null}function ji(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){return e instanceof ji(e).Element||e instanceof Element}function zi(e){return e instanceof ji(e).HTMLElement||e instanceof HTMLElement}function Hi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ji(e).ShadowRoot||e instanceof ShadowRoot)}var Bi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];zi(o)&&Fi(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});zi(r)&&Fi(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Vi(e){return e.split("-")[0]}var $i=Math.max,Yi=Math.min,qi=Math.round;function Ki(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gi(){return!/^((?!chrome|android).)*safari/i.test(Ki())}function Ui(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&zi(e)&&(o=e.offsetWidth>0&&qi(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qi(r.height)/e.offsetHeight||1);var i=(Wi(e)?ji(e):window).visualViewport,s=!Gi()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Zi(e){var t=Ui(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qi(e){return ji(e).getComputedStyle(e)}function Ji(e){return["table","td","th"].indexOf(Fi(e))>=0}function es(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ts(e){return"html"===Fi(e)?e:e.assignedSlot||e.parentNode||(Hi(e)?e.host:null)||es(e)}function ns(e){return zi(e)&&"fixed"!==Qi(e).position?e.offsetParent:null}function rs(e){for(var t=ji(e),n=ns(e);n&&Ji(n)&&"static"===Qi(n).position;)n=ns(n);return n&&("html"===Fi(n)||"body"===Fi(n)&&"static"===Qi(n).position)?t:n||function(e){var t=/firefox/i.test(Ki());if(/Trident/i.test(Ki())&&zi(e)&&"fixed"===Qi(e).position)return null;var n=ts(e);for(Hi(n)&&(n=n.host);zi(n)&&["html","body"].indexOf(Fi(n))<0;){var r=Qi(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function os(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function as(e,t,n){return $i(e,Yi(t,n))}function is(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ss(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ls={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Vi(n.placement),l=os(s),c=[Mi,Si].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return is("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ss(e,_i))}(o.padding,n),d=Zi(a),f="y"===l?Ni:Mi,p="y"===l?Ei:Si,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],h=i[l]-n.rects.reference[l],v=rs(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,y=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+b,C=as(y,x,w),k=l;n.modifiersData[r]=((t={})[k]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xi(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cs(e){return e.split("-")[1]}var us={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ds(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,h=void 0===m?0:m,v="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Mi,w=Ni,x=window;if(c){var C=rs(n),k="clientHeight",N="clientWidth";if(C===ji(n)&&"static"!==Qi(C=es(n)).position&&"absolute"===s&&(k="scrollHeight",N="scrollWidth"),o===Ni||(o===Mi||o===Si)&&a===Pi)w=Ei,h-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[k])-r.height,h*=l?1:-1;if(o===Mi||(o===Ni||o===Ei)&&a===Pi)y=Si,p-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[N])-r.width,p*=l?1:-1}var E,S=Object.assign({position:s},c&&us),M=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qi(n*o)/o||0,y:qi(r*o)/o||0}}({x:p,y:h},ji(n)):{x:p,y:h};return p=M.x,h=M.y,l?Object.assign({},S,((E={})[w]=b?"0":"",E[y]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",E)):Object.assign({},S,((t={})[w]=b?h+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var fs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:Vi(t.placement),variation:cs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ds(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ds(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ps={passive:!0};var ms={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=ji(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,ps)}),s&&l.addEventListener("resize",n.update,ps),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,ps)}),s&&l.removeEventListener("resize",n.update,ps)}},data:{}},hs={left:"right",right:"left",bottom:"top",top:"bottom"};function vs(e){return e.replace(/left|right|bottom|top/g,function(e){return hs[e]})}var gs={start:"end",end:"start"};function bs(e){return e.replace(/start|end/g,function(e){return gs[e]})}function ys(e){var t=ji(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ws(e){return Ui(es(e)).left+ys(e).scrollLeft}function xs(e){var t=Qi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Cs(e){return["html","body","#document"].indexOf(Fi(e))>=0?e.ownerDocument.body:zi(e)&&xs(e)?e:Cs(ts(e))}function ks(e,t){var n;void 0===t&&(t=[]);var r=Cs(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ji(r),i=o?[a].concat(a.visualViewport||[],xs(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(ks(ts(i)))}function Ns(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Es(e,t,n){return t===Di?Ns(function(e,t){var n=ji(e),r=es(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Gi();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+ws(e),y:l}}(e,n)):Wi(t)?function(e,t){var n=Ui(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ns(function(e){var t,n=es(e),r=ys(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=$i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=$i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ws(e),l=-r.scrollTop;return"rtl"===Qi(o||n).direction&&(s+=$i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(es(e)))}function Ss(e,t,n,r){var o="clippingParents"===t?function(e){var t=ks(ts(e)),n=["absolute","fixed"].indexOf(Qi(e).position)>=0&&zi(e)?rs(e):e;return Wi(n)?t.filter(function(e){return Wi(e)&&Xi(e,n)&&"body"!==Fi(e)}):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(t,n){var o=Es(e,n,r);return t.top=$i(o.top,t.top),t.right=Yi(o.right,t.right),t.bottom=Yi(o.bottom,t.bottom),t.left=$i(o.left,t.left),t},Es(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ms(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Vi(o):null,i=o?cs(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Ni:t={x:s,y:n.y-r.height};break;case Ei:t={x:s,y:n.y+n.height};break;case Si:t={x:n.x+n.width,y:l};break;case Mi:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?os(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Li:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Pi:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Os(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Di:c,d=n.elementContext,f=void 0===d?Ri:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,g=is("number"!=typeof v?v:ss(v,_i)),b=f===Ri?"reference":Ri,y=e.rects.popper,w=e.elements[m?b:f],x=Ss(Wi(w)?w:w.contextElement||es(e.elements.popper),l,u,i),C=Ui(e.elements.reference),k=Ms({reference:C,element:y,placement:o}),N=Ns(Object.assign({},y,k)),E=f===Ri?N:C,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},M=e.modifiersData.offset;if(f===Ri&&M){var O=M[o];Object.keys(S).forEach(function(e){var t=[Si,Ei].indexOf(e)>=0?1:-1,n=[Ni,Ei].indexOf(e)>=0?"y":"x";S[e]+=O[n]*t})}return S}function _s(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ai:l,u=cs(r),d=u?s?Ti:Ti.filter(function(e){return cs(e)===u}):_i,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=Os(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Vi(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Ls={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,g=Vi(v),b=l||(g===v||!m?[vs(v)]:function(e){if(Vi(e)===Oi)return[];var t=vs(e);return[bs(e),t,bs(t)]}(v)),y=[v].concat(b).reduce(function(e,n){return e.concat(Vi(n)===Oi?_s(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),w=t.rects.reference,x=t.rects.popper,C=new Map,k=!0,N=y[0],E=0;E<y.length;E++){var S=y[E],M=Vi(S),O=cs(S)===Li,_=[Ni,Ei].indexOf(M)>=0,L=_?"width":"height",P=Os(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),D=_?O?Si:Mi:O?Ei:Ni;w[L]>x[L]&&(D=vs(D));var R=vs(D),T=[];if(a&&T.push(P[M]<=0),s&&T.push(P[D]<=0,P[R]<=0),T.every(function(e){return e})){N=S,k=!1;break}C.set(S,T)}if(k)for(var A=function(e){var t=y.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return N=t,"break"},I=m?3:1;I>0;I--){if("break"===A(I))break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ds(e){return[Ni,Si,Ei,Mi].some(function(t){return e[t]>=0})}var Rs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Ai.reduce(function(e,n){return e[n]=function(e,t,n){var r=Vi(e),o=[Mi,Ni].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Mi,Si].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e},{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var Ts={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,v=Os(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Vi(t.placement),b=cs(t.placement),y=!b,w=os(g),x="x"===w?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,N=t.rects.popper,E="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(C){if(a){var _,L="y"===w?Ni:Mi,P="y"===w?Ei:Si,D="y"===w?"height":"width",R=C[w],T=R+v[L],A=R-v[P],I=p?-N[D]/2:0,F=b===Li?k[D]:N[D],j=b===Li?-N[D]:-k[D],W=t.elements.arrow,z=p&&W?Zi(W):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[L],V=H[P],$=as(0,k[D],z[D]),Y=y?k[D]/2-I-$-B-S.mainAxis:F-$-B-S.mainAxis,q=y?-k[D]/2+I+$+V+S.mainAxis:j+$+V+S.mainAxis,K=t.elements.arrow&&rs(t.elements.arrow),G=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,U=null!=(_=null==M?void 0:M[w])?_:0,Z=R+q-U,X=as(p?Yi(T,R+Y-U-G):T,R,p?$i(A,Z):A);C[w]=X,O[w]=X-R}if(s){var Q,J="x"===w?Ni:Mi,ee="x"===w?Ei:Si,te=C[x],ne="y"===x?"height":"width",re=te+v[J],oe=te-v[ee],ae=-1!==[Ni,Mi].indexOf(g),ie=null!=(Q=null==M?void 0:M[x])?Q:0,se=ae?re:te-k[ne]-N[ne]-ie+S.altAxis,le=ae?te+k[ne]+N[ne]-ie-S.altAxis:oe,ce=p&&ae?function(e,t,n){var r=as(e,t,n);return r>n?n:r}(se,te,le):as(p?se:re,te,p?le:oe);C[x]=ce,O[x]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function As(e,t,n){void 0===n&&(n=!1);var r,o,a=zi(t),i=zi(t)&&function(e){var t=e.getBoundingClientRect(),n=qi(t.width)/e.offsetWidth||1,r=qi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=es(t),l=Ui(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Fi(t)||xs(s))&&(c=(r=t)!==ji(r)&&zi(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ys(r)),zi(t)?((u=Ui(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=ws(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Is(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Fs={placement:"bottom",modifiers:[],strategy:"absolute"};function js(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Ws(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Fs:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fs,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Wi(e)?ks(e):e.contextElement?ks(e.contextElement):[],popper:ks(t)};var i,c,f=function(e){var t=Is(e);return Ii.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((i=[].concat(r,s.options.modifiers),c=i.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:r}),i=function(){};l.push(a||i)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(js(t,n)){s.rects={reference:As(t,rs(n),"fixed"===s.options.strategy),popper:Zi(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){d(),c=!0}};if(!js(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var zs,Hs,Bs=Ws({defaultModifiers:[ms,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ms({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},fs,Bi,Rs,Ls,Ts,ls,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Os(t,{elementContext:"reference"}),s=Os(t,{altBoundary:!0}),l=Ps(i,r),c=Ps(s,o,a),u=Ds(l),d=Ds(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});var Vs=function(){if(Hs)return zs;Hs=1;var e="undefined"!=typeof Element,t="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(a,i){if(a===i)return!0;if(a&&i&&"object"==typeof a&&"object"==typeof i){if(a.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(a)){if((s=a.length)!=i.length)return!1;for(l=s;0!==l--;)if(!o(a[l],i[l]))return!1;return!0}if(t&&a instanceof Map&&i instanceof Map){if(a.size!==i.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=a.entries();!(l=u.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(n&&a instanceof Set&&i instanceof Set){if(a.size!==i.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(i)){if((s=a.length)!=i.length)return!1;for(l=s;0!==l--;)if(a[l]!==i[l])return!1;return!0}if(a.constructor===RegExp)return a.source===i.source&&a.flags===i.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof i.valueOf)return a.valueOf()===i.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof i.toString)return a.toString()===i.toString();if((s=(c=Object.keys(a)).length)!==Object.keys(i).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(e&&a instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!a.$$typeof)&&!o(a[c[l]],i[c[l]]))return!1;return!0}return a!=a&&i!=i}return zs=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}},zs}(),$s=H(Vs),Ys=[];function qs(e){var t=r.useRef(e);return t.current=e,r.useCallback(function(){return t.current},[])}var Ks=function(){};function Gs(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Us=["styles","attributes"],Zs={getBoundingClientRect:Gs()},Xs={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Qs(e,t){var n,o,a;void 0===e&&(e={}),void 0===t&&(t={});var i=Object.keys(Xs).reduce(function(e,t){var n;return xi({},e,((n={})[t]=void 0!==e[t]?e[t]:Xs[t],n))},e),s=r.useMemo(function(){return[{name:"offset",options:{offset:i.offset}}]},Array.isArray(i.offset)?i.offset:[]),l=xi({},t,{placement:t.placement||i.placement,modifiers:t.modifiers||s}),c=r.useState(null),u=c[0],d=c[1],f=r.useState(null),p=f[0],m=f[1],h=function(e){var t=e.initial,n=e.value,o=e.onChange,a=void 0===o?Ks:o;if(void 0===t&&void 0===n)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var i=r.useState(t),s=i[0],l=i[1],c=qs(s),u=r.useCallback(function(e){var t=c(),n="function"==typeof e?e(t):e;"function"==typeof n.persist&&n.persist(),l(n),"function"==typeof a&&a(n)},[c,a]),d=void 0!==n;return[d?n:s,d?a:u]}({initial:i.defaultVisible,value:i.visible,onChange:i.onVisibleChange}),v=h[0],g=h[1],b=r.useRef();r.useEffect(function(){return function(){return clearTimeout(b.current)}},[]);var y=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ys},i=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],l=i[1],c=r.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);C.flushSync(function(){l({styles:Ci(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:Ci(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),u=r.useMemo(function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return $s(o.current,e)?o.current||e:(o.current=e,e)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),d=r.useRef();return ki(function(){d.current&&d.current.setOptions(u)},[u]),ki(function(){if(null!=e&&null!=t){var r=(n.createPopper||Bs)(e,t,u);return d.current=r,function(){r.destroy(),d.current=null}}},[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(i.followCursor?Zs:u,p,l),w=y.styles,x=y.attributes,k=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(y,Us),N=k.update,E=qs({visible:v,triggerRef:u,tooltipRef:p,finalConfig:i}),S=r.useCallback(function(e){return Array.isArray(i.trigger)?i.trigger.includes(e):i.trigger===e},Array.isArray(i.trigger)?i.trigger:[i.trigger]),M=r.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return g(!1)},i.delayHide)},[i.delayHide,g]),O=r.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return g(!0)},i.delayShow)},[i.delayShow,g]),_=r.useCallback(function(){E().visible?M():O()},[E,M,O]);r.useEffect(function(){if(E().finalConfig.closeOnOutsideClick){var e=function(e){var t,n=E(),r=n.tooltipRef,o=n.triggerRef,a=(null==e.composedPath||null==(t=e.composedPath())?void 0:t[0])||e.target;a instanceof Node&&(null==r||null==o||r.contains(a)||o.contains(a)||M())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[E,M]),r.useEffect(function(){if(null!=u&&S("click"))return u.addEventListener("click",_),function(){return u.removeEventListener("click",_)}},[u,S,_]),r.useEffect(function(){if(null!=u&&S("double-click"))return u.addEventListener("dblclick",_),function(){return u.removeEventListener("dblclick",_)}},[u,S,_]),r.useEffect(function(){if(null!=u&&S("right-click")){var e=function(e){e.preventDefault(),_()};return u.addEventListener("contextmenu",e),function(){return u.removeEventListener("contextmenu",e)}}},[u,S,_]),r.useEffect(function(){if(null!=u&&S("focus"))return u.addEventListener("focus",O),u.addEventListener("blur",M),function(){u.removeEventListener("focus",O),u.removeEventListener("blur",M)}},[u,S,O,M]),r.useEffect(function(){if(null!=u&&S("hover"))return u.addEventListener("mouseenter",O),u.addEventListener("mouseleave",M),function(){u.removeEventListener("mouseenter",O),u.removeEventListener("mouseleave",M)}},[u,S,O,M]),r.useEffect(function(){if(null!=p&&S("hover")&&E().finalConfig.interactive)return p.addEventListener("mouseenter",O),p.addEventListener("mouseleave",M),function(){p.removeEventListener("mouseenter",O),p.removeEventListener("mouseleave",M)}},[p,S,O,M,E]);var L=null==k||null==(n=k.state)||null==(o=n.modifiersData)||null==(a=o.hide)?void 0:a.isReferenceHidden;r.useEffect(function(){i.closeOnTriggerHidden&&L&&M()},[i.closeOnTriggerHidden,M,L]),r.useEffect(function(){if(i.followCursor&&null!=u)return u.addEventListener("mousemove",e),function(){return u.removeEventListener("mousemove",e)};function e(e){var t=e.clientX,n=e.clientY;Zs.getBoundingClientRect=Gs(t,n),null==N||N()}},[i.followCursor,u,N]),r.useEffect(function(){if(null!=p&&null!=N&&null!=i.mutationObserverOptions){var e=new MutationObserver(N);return e.observe(p,i.mutationObserverOptions),function(){return e.disconnect()}}},[i.mutationObserverOptions,p,N]);return xi({getArrowProps:function(e){return void 0===e&&(e={}),xi({},e,x.arrow,{style:xi({},e.style,w.arrow),"data-popper-arrow":!0})},getTooltipProps:function(e){return void 0===e&&(e={}),xi({},e,{style:xi({},e.style,w.popper)},x.popper,{"data-popper-interactive":i.interactive})},setTooltipRef:m,setTriggerRef:d,tooltipRef:p,triggerRef:u,visible:v},k)}function Js({children:r,className:o,message:a,placement:i="top",enabled:s=!0,labelClassName:l,labelContainerClassName:c}){const{getArrowProps:u,getTooltipProps:d,setTooltipRef:f,setTriggerRef:p,visible:m}=Qs({placement:i});return e(t,{children:s&&a?n(t,{children:[e("div",{ref:p,className:o,children:r}),n(si,{show:m,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",ref:f,...d(),as:"span",className:ue("text-white bg-black/80 md:w-fit p-2 rounded-md",c),"data-popper-placement":i,children:[e("span",{className:ue(l,"text-xs "),children:a}),e("div",{...u(),className:"tooltip-arrow"})]})]}):r})}const el=({className:t,imageClassName:r,fallbackClassName:o,title:a,fallback:i,src:s})=>e(Js,{message:a,children:n(At,{className:t,children:[e(It,{className:r,src:s}),e(Ft,{className:o,children:i})]})});function tl(t,n=[]){let o=[];const a=()=>{const e=o.map(e=>r.createContext(e));return function(n){const o=n?.[t]||e;return r.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return a.scopeName=t,[function(n,a){const i=r.createContext(a),s=o.length;o=[...o,a];const l=n=>{const{scope:o,children:a,...l}=n,c=o?.[t]?.[s]||i,u=r.useMemo(()=>l,Object.values(l));return e(c.Provider,{value:u,children:a})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||i,c=r.useContext(l);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},nl(a,...n)]}function nl(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function rl(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var ol=r[" useId ".trim().toString()]||(()=>{}),al=0;function il(e){const[t,n]=r.useState(ol());return L(()=>{n(e=>e??String(al++))},[e]),t?`radix-${t}`:""}var sl=r[" useInsertionEffect ".trim().toString()]||L;function ll({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[a,i,s]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),a=r.useRef(n),i=r.useRef(t);return sl(()=>{i.current=t},[t]),r.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,o,i]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:a;{const t=r.useRef(void 0!==e);r.useEffect(()=>{const e=t.current;if(e!==l){}t.current=l},[l,o])}const u=r.useCallback(t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[l,e,i,s]);return[c,u]}function cl(t){const n=ul(t),o=r.forwardRef((t,o)=>{const{children:a,...i}=t,s=r.Children.toArray(a),l=s.find(pl);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}function ul(e){const t=r.forwardRef((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dl=Symbol("radix.slottable");function fl(n){const r=({children:n})=>e(t,{children:n});return r.displayName=`${n}.Slottable`,r.__radixId=dl,r}function pl(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===dl}var ml=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=cl(`Primitive.${n}`),a=r.forwardRef((t,r)=>{const{asChild:a,...i}=t,s=a?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...i,ref:r})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{});function hl(e,t){e&&C.flushSync(()=>e.dispatchEvent(t))}var vl,gl="dismissableLayer.update",bl="dismissableLayer.pointerDownOutside",yl="dismissableLayer.focusOutside",wl=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xl=r.forwardRef((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=r.useContext(wl),[f,p]=r.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=r.useState({}),v=R(n,e=>p(e)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=y,k=function(e,t=globalThis?.document){const n=_(e),o=r.useRef(!1),a=r.useRef(()=>{});return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let r=function(){Nl(bl,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);o.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())},m),N=function(e,t=globalThis?.document){const n=_(e),o=r.useRef(!1);return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){Nl(yl,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},m);return function(e,t=globalThis?.document){const n=_(e);r.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(a?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),r.useEffect(()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(vl=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),kl(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=vl)}},[f,m,o,d]),r.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),kl())},[f,d]),r.useEffect(()=>{const e=()=>h({});return document.addEventListener(gl,e),()=>document.removeEventListener(gl,e)},[]),e(ml.div,{...u,ref:v,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:rl(t.onFocusCapture,N.onFocusCapture),onBlurCapture:rl(t.onBlurCapture,N.onBlurCapture),onPointerDownCapture:rl(t.onPointerDownCapture,k.onPointerDownCapture)})});xl.displayName="DismissableLayer";var Cl=r.forwardRef((t,n)=>{const o=r.useContext(wl),a=r.useRef(null),i=R(n,a);return r.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),e(ml.div,{...t,ref:i})});function kl(){const e=new CustomEvent(gl);document.dispatchEvent(e)}function Nl(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hl(o,a):o.dispatchEvent(a)}Cl.displayName="DismissableLayerBranch";var El=xl,Sl=Cl,Ml="focusScope.autoFocusOnMount",Ol="focusScope.autoFocusOnUnmount",_l={bubbles:!1,cancelable:!0},Ll=r.forwardRef((t,n)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[c,u]=r.useState(null),d=_(i),f=_(s),p=r.useRef(null),m=R(n,e=>u(e)),h=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(a){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Tl(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Tl(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Tl(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,c,h.paused]),r.useEffect(()=>{if(c){Al.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(Ml,_l);c.addEventListener(Ml,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tl(r,{select:t}),document.activeElement!==n)return}((e=Pl(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Tl(c))}return()=>{c.removeEventListener(Ml,d),setTimeout(()=>{const e=new CustomEvent(Ol,_l);c.addEventListener(Ol,f),c.dispatchEvent(e),e.defaultPrevented||Tl(t??document.body,{select:!0}),c.removeEventListener(Ol,f),Al.remove(h)},0)}}var e},[c,d,f,h]);const v=r.useCallback(e=>{if(!o&&!a)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=Pl(e),n=Dl(t,e),r=Dl(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&Tl(a,{select:!0})):(e.preventDefault(),o&&Tl(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return e(ml.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function Pl(e){const t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function Dl(e,t){for(const n of e)if(!Rl(n,{upTo:t}))return n}function Rl(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 Tl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Ll.displayName="FocusScope";var Al=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Il(e,t),e.unshift(t)},remove(t){e=Il(e,t),e[0]?.resume()}}}();function Il(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Fl=r.forwardRef((t,n)=>{const{container:o,...a}=t,[i,s]=r.useState(!1);L(()=>s(!0),[]);const l=o||i&&globalThis?.document?.body;return l?k.createPortal(e(ml.div,{...a,ref:n}),l):null});Fl.displayName="Portal";var jl=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),a=r.useRef(e),i=r.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const e=Wl(o.current);i.current="mounted"===l?e:"none"},[l]),L(()=>{const t=o.current,n=a.current;if(n!==e){const r=i.current,o=Wl(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}},[e,c]),L(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const i=Wl(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(c("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(i.current=Wl(o.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),i=R(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:i}):null};function Wl(e){return e?.animationName||"none"}jl.displayName="Presence";var zl=0;function Hl(){r.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bl()),document.body.insertAdjacentElement("beforeend",e[1]??Bl()),zl++,()=>{1===zl&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),zl--}},[])}function Bl(){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 Vl=function(){return Vl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vl.apply(this,arguments)};function $l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Yl="right-scroll-bar-position",ql="width-before-scroll-bar";function Kl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Gl="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Ul=new WeakMap;function Zl(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach(function(e){return Kl(e,t)})},(o=a(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Gl(function(){var t=Ul.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||Kl(e,null)}),r.forEach(function(e){n.has(e)||Kl(e,o)})}Ul.set(i,e)},[e]),i}function Xl(e){return e}var Ql=function(e){var t=e.sideCar,n=$l(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,Vl({},n))};Ql.isSideCarExport=!0;var Jl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Xl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Vl({async:!0,ssr:!1},e),t}(),ec=function(){},tc=r.forwardRef(function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:ec,onWheelCapture:ec,onTouchMoveCapture:ec}),a=o[0],i=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,g=e.allowPinchZoom,b=e.as,y=void 0===b?"div":b,w=e.gapMode,x=$l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,k=Zl([n,t]),N=Vl(Vl({},x),a);return r.createElement(r.Fragment,null,d&&r.createElement(C,{sideCar:Jl,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:w}),s?r.cloneElement(r.Children.only(l),Vl(Vl({},N),{ref:k})):r.createElement(y,Vl({},N,{className:c,ref:k}),l))});tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tc.classNames={fullWidth:ql,zeroRight:Yl};function nc(){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 rc=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=nc())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oc=function(){var e,t=(e=rc(),function(t,n){r.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},ac={left:0,top:0,right:0,gap:0},ic=function(e){return parseInt(e||"",10)||0},sc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ac;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ic(n),ic(r),ic(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},lc=oc(),cc="data-scroll-locked",uc=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(cc,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yl," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ql," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Yl," .").concat(Yl," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ql," .").concat(ql," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(cc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},dc=function(){var e=parseInt(document.body.getAttribute(cc)||"0",10);return isFinite(e)?e:0},fc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;r.useEffect(function(){return document.body.setAttribute(cc,(dc()+1).toString()),function(){var e=dc()-1;e<=0?document.body.removeAttribute(cc):document.body.setAttribute(cc,e.toString())}},[]);var i=r.useMemo(function(){return sc(a)},[a]);return r.createElement(lc,{styles:uc(i,!t,a,n?"":"!important")})},pc=!1;if("undefined"!=typeof window)try{var mc=Object.defineProperty({},"passive",{get:function(){return pc=!0,!0}});window.addEventListener("test",mc,mc),window.removeEventListener("test",mc,mc)}catch(e){pc=!1}var hc=!!pc&&{passive:!1},vc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},gc=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),bc(e,r)){var o=yc(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bc=function(e,t){return"v"===e?function(e){return vc(e,"overflowY")}(t):function(e){return vc(e,"overflowX")}(t)},yc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xc=function(e){return[e.deltaX,e.deltaY]},Cc=function(e){return e&&"current"in e?e.current:e},kc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Nc=0,Ec=[];function Sc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Mc,Oc=(Mc=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(Nc++)[0],i=r.useState(oc)[0],s=r.useRef(e);r.useEffect(function(){s.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Cc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,a=wc(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=gc(d,u);if(!m)return!0;if(m?r=d:(r="v"===d?"h":"v",m=gc(d,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=r),!r)return!0;var h=o.current||r;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,c=a>0,u=0,d=0;do{if(!i)break;var f=yc(e,i),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&bc(e,i)&&(u+=m,d+=p);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=r.useCallback(function(e){var n=e;if(Ec.length&&Ec[Ec.length-1]===i){var r="deltaY"in n?xc(n):wc(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Cc).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=r.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Sc(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=r.useCallback(function(e){n.current=wc(e),o.current=void 0},[]),f=r.useCallback(function(t){u(t.type,xc(t),t.target,l(t,e.lockRef.current))},[]),p=r.useCallback(function(t){u(t.type,wc(t),t.target,l(t,e.lockRef.current))},[]);r.useEffect(function(){return Ec.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,hc),document.addEventListener("touchmove",c,hc),document.addEventListener("touchstart",d,hc),function(){Ec=Ec.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,hc),document.removeEventListener("touchmove",c,hc),document.removeEventListener("touchstart",d,hc)}},[]);var m=e.removeScrollBar,h=e.inert;return r.createElement(r.Fragment,null,h?r.createElement(i,{styles:kc(a)}):null,m?r.createElement(fc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Jl.useMedium(Mc),Ql),_c=r.forwardRef(function(e,t){return r.createElement(tc,Vl({},e,{ref:t,sideCar:Oc}))});_c.classNames=tc.classNames;var Lc=new WeakMap,Pc=new WeakMap,Dc={},Rc=0,Tc=function(e){return e&&(e.host||Tc(e.parentNode))},Ac=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Tc(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Dc[n]||(Dc[n]=new WeakMap);var a=Dc[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Lc.get(e)||0)+1,c=(a.get(e)||0)+1;Lc.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Pc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(e){}})};return u(t),s.clear(),Rc++,function(){i.forEach(function(e){var t=Lc.get(e)-1,o=a.get(e)-1;Lc.set(e,t),a.set(e,o),t||(Pc.has(e)||e.removeAttribute(r),Pc.delete(e)),o||e.removeAttribute(n)}),--Rc||(Lc=new WeakMap,Lc=new WeakMap,Pc=new WeakMap,Dc={})}},Ic=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ac(r,o,n,"aria-hidden")):function(){return null}},Fc="Dialog",[jc,Wc]=tl(Fc),[zc,Hc]=jc(Fc),Bc=t=>{const{__scopeDialog:n,children:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!0}=t,c=r.useRef(null),u=r.useRef(null),[d,f]=ll({prop:a,defaultProp:i??!1,onChange:s,caller:Fc});return e(zc,{scope:n,triggerRef:c,contentRef:u,contentId:il(),titleId:il(),descriptionId:il(),open:d,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:l,children:o})};Bc.displayName=Fc;var Vc="DialogTrigger",$c=r.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Hc(Vc,r),i=R(n,a.triggerRef);return e(ml.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":uu(a.open),...o,ref:i,onClick:rl(t.onClick,a.onOpenToggle)})});$c.displayName=Vc;var Yc="DialogPortal",[qc,Kc]=jc(Yc,{forceMount:void 0}),Gc=t=>{const{__scopeDialog:n,forceMount:o,children:a,container:i}=t,s=Hc(Yc,n);return e(qc,{scope:n,forceMount:o,children:r.Children.map(a,t=>e(jl,{present:o||s.open,children:e(Fl,{asChild:!0,container:i,children:t})}))})};Gc.displayName=Yc;var Uc="DialogOverlay",Zc=r.forwardRef((t,n)=>{const r=Kc(Uc,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,i=Hc(Uc,t.__scopeDialog);return i.modal?e(jl,{present:o||i.open,children:e(Qc,{...a,ref:n})}):null});Zc.displayName=Uc;var Xc=cl("DialogOverlay.RemoveScroll"),Qc=r.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Hc(Uc,r);return e(_c,{as:Xc,allowPinchZoom:!0,shards:[a.contentRef],children:e(ml.div,{"data-state":uu(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),Jc="DialogContent",eu=r.forwardRef((t,n)=>{const r=Kc(Jc,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,i=Hc(Jc,t.__scopeDialog);return e(jl,{present:o||i.open,children:i.modal?e(tu,{...a,ref:n}):e(nu,{...a,ref:n})})});eu.displayName=Jc;var tu=r.forwardRef((t,n)=>{const o=Hc(Jc,t.__scopeDialog),a=r.useRef(null),i=R(n,o.contentRef,a);return r.useEffect(()=>{const e=a.current;if(e)return Ic(e)},[]),e(ru,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rl(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:rl(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:rl(t.onFocusOutside,e=>e.preventDefault())})}),nu=r.forwardRef((t,n)=>{const o=Hc(Jc,t.__scopeDialog),a=r.useRef(!1),i=r.useRef(!1);return e(ru,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||o.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,r=o.triggerRef.current?.contains(n);r&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),ru=r.forwardRef((o,a)=>{const{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,...u}=o,d=Hc(Jc,i),f=r.useRef(null),p=R(a,f);return Hl(),n(t,{children:[e(Ll,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:c,children:e(xl,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":uu(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),n(t,{children:[e(mu,{titleId:d.titleId}),e(hu,{contentRef:f,descriptionId:d.descriptionId})]})]})}),ou="DialogTitle",au=r.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Hc(ou,r);return e(ml.h2,{id:a.titleId,...o,ref:n})});au.displayName=ou;var iu="DialogDescription",su=r.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Hc(iu,r);return e(ml.p,{id:a.descriptionId,...o,ref:n})});su.displayName=iu;var lu="DialogClose",cu=r.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Hc(lu,r);return e(ml.button,{type:"button",...o,ref:n,onClick:rl(t.onClick,()=>a.onOpenChange(!1))})});function uu(e){return e?"open":"closed"}cu.displayName=lu;var du="DialogTitleWarning",[fu,pu]=function(t,n){const o=r.createContext(n),a=t=>{const{children:n,...a}=t,i=r.useMemo(()=>a,Object.values(a));return e(o.Provider,{value:i,children:n})};return a.displayName=t+"Provider",[a,function(e){const a=r.useContext(o);if(a)return a;if(void 0!==n)return n;throw new Error(`\`${e}\` must be used within \`${t}\``)}]}(du,{contentName:Jc,titleName:ou,docsSlug:"dialog"}),mu=({titleId:e})=>{const t=pu(du),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{if(e){document.getElementById(e)}},[n,e]),null},hu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pu("DialogDescriptionWarning").contentName}}.`;return r.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)}},[n,e,t]),null},vu=Bc,gu=$c,bu=Gc,yu=Zc,wu=eu,xu=au,Cu=su,ku=cu,Nu="AlertDialog",[Eu]=tl(Nu,[Wc]),Su=Wc(),Mu=t=>{const{__scopeAlertDialog:n,...r}=t,o=Su(n);return e(vu,{...o,...r,modal:!0})};Mu.displayName=Nu;var Ou=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,a=Su(r);return e(gu,{...a,...o,ref:n})});Ou.displayName="AlertDialogTrigger";var _u=t=>{const{__scopeAlertDialog:n,...r}=t,o=Su(n);return e(bu,{...o,...r})};_u.displayName="AlertDialogPortal";var Lu=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,a=Su(r);return e(yu,{...a,...o,ref:n})});Lu.displayName="AlertDialogOverlay";var Pu="AlertDialogContent",[Du,Ru]=Eu(Pu),Tu=fl("AlertDialogContent"),Au=r.forwardRef((t,o)=>{const{__scopeAlertDialog:a,children:i,...s}=t,l=Su(a),c=r.useRef(null),u=R(o,c),d=r.useRef(null);return e(fu,{contentName:Pu,titleName:Iu,docsSlug:"alert-dialog",children:e(Du,{scope:a,cancelRef:d,children:n(wu,{role:"alertdialog",...l,...s,ref:u,onOpenAutoFocus:rl(s.onOpenAutoFocus,e=>{e.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[e(Tu,{children:i}),e(Vu,{contentRef:c})]})})})});Au.displayName=Pu;var Iu="AlertDialogTitle",Fu=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,a=Su(r);return e(xu,{...a,...o,ref:n})});Fu.displayName=Iu;var ju="AlertDialogDescription",Wu=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,a=Su(r);return e(Cu,{...a,...o,ref:n})});Wu.displayName=ju;var zu=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,a=Su(r);return e(ku,{...a,...o,ref:n})});zu.displayName="AlertDialogAction";var Hu="AlertDialogCancel",Bu=r.forwardRef((t,n)=>{const{__scopeAlertDialog:r,...o}=t,{cancelRef:a}=Ru(Hu,r),i=Su(r),s=R(n,a);return e(ku,{...i,...o,ref:s})});Bu.displayName=Hu;var Vu=({contentRef:e})=>{const t=`\`${Pu}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${Pu}\` by passing a \`${ju}\` 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 \`${Pu}\`. 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 r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))},[t,e]),null},$u=Mu,Yu=Ou,qu=_u,Ku=Lu,Gu=Au,Uu=zu,Zu=Bu,Xu=Fu,Qu=Wu,Ju=Symbol.for("react.lazy"),ed=r[" use ".trim().toString()];function td(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Ju&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function nd(t){const n=od(t),o=r.forwardRef((t,o)=>{let{children:a,...i}=t;td(a)&&"function"==typeof ed&&(a=ed(a._payload));const s=r.Children.toArray(a),l=s.find(id);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}var rd=nd("Slot");function od(e){const t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(td(n)&&"function"==typeof ed&&(n=ed(n._payload)),r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ad=Symbol("radix.slottable");function id(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ad}const sd=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,ld=ue,cd=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return ld(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=sd(t)||sd(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return ld(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},ud=cd("inline-flex items-center dark:text-white justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:bg-[hsl(var(--primary))]/90",destructive:"bg-[hsl(var(--destructive))] text-[hsl(var(--destructive-foreground))] hover:bg-[hsl(var(--destructive))]/90",outline:"border border-[hsl(var(--input))] bg-[hsl(var(--background))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",secondary:"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] hover:bg-[hsl(var(--secondary))]/80",ghost:"hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",link:"text-[hsl(var(--primary))] underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),dd=({className:t,variant:n,size:r,asChild:o=!1,ref:a,...i})=>e(o?rd:"button",{className:_t(ud({variant:n,size:r,className:t})),ref:a,...i,children:i.children});dd.displayName="Button";const fd=$u,pd=Yu,md=qu,hd=r.forwardRef(({className:t,...n},r)=>e(Ku,{className:_t("fixed inset-0 z-50 bg-black/50 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n,ref:r}));hd.displayName=Ku.displayName;const vd=r.forwardRef(({className:t,...r},o)=>n(md,{children:[e(hd,{}),e(Gu,{ref:o,className:_t("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r})]}));vd.displayName=Gu.displayName;const gd=({className:t,...n})=>e("div",{className:_t("flex flex-col space-y-2 text-center sm:text-left",t),...n});gd.displayName="AlertDialogHeader";const bd=({className:t,...n})=>e("div",{className:_t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});bd.displayName="AlertDialogFooter";const yd=r.forwardRef(({className:t,...n},r)=>e(Xu,{ref:r,className:_t("text-lg font-semibold",t),...n}));yd.displayName=Xu.displayName;const wd=r.forwardRef(({className:t,...n},r)=>e(Qu,{ref:r,className:_t("text-sm text-muted-foreground",t),...n}));wd.displayName=Qu.displayName;const xd=r.forwardRef(({className:t,...n},r)=>e(Uu,{ref:r,className:_t(ud(),t),...n}));xd.displayName=Uu.displayName;const Cd=r.forwardRef(({className:t,...n},r)=>e(Zu,{ref:r,className:_t(ud({variant:"outline"}),"mt-2 sm:mt-0",t),...n}));Cd.displayName=Zu.displayName;const kd=cd("inline-flex items-center rounded-full border border-slate-200 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 dark:border-slate-800 dark:focus:ring-slate-300",{variants:{variant:{default:"border-transparent bg-slate-900 text-slate-50 hover:bg-slate-900/80 dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50/80",secondary:"border-transparent bg-slate-100 text-slate-900 hover:bg-slate-100/80 dark:bg-slate-800 dark:text-slate-50 dark:hover:bg-slate-800/80",destructive:"border-transparent bg-red-500 text-slate-50 hover:bg-red-500/80 dark:bg-red-900 dark:text-slate-50 dark:hover:bg-red-900/80",outline:"text-slate-950 dark:text-slate-50"}},defaultVariants:{variant:"default"}});function Nd({className:t,variant:n,...r}){return e("div",{className:_t(kd({variant:n}),t),...r})}
20
+ /**
21
+ * @license lucide-react v0.395.0 - ISC
22
+ *
23
+ * This source code is licensed under the ISC license.
24
+ * See the LICENSE file in the root directory of this source tree.
25
+ */const Ed=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");
26
+ /**
27
+ * @license lucide-react v0.395.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ var Sd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
33
+ /**
34
+ * @license lucide-react v0.395.0 - ISC
35
+ *
36
+ * This source code is licensed under the ISC license.
37
+ * See the LICENSE file in the root directory of this source tree.
38
+ */const Md=f(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>v("svg",{ref:l,...Sd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ed("lucide",o),...s},[...i.map(([e,t])=>v(e,t)),...Array.isArray(a)?a:[a]])),Od=(e,t)=>{const n=f(({className:n,...r},o)=>{return v(Md,{ref:o,iconNode:t,className:Ed(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var a});return n.displayName=`${e}`,n},_d=Od("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Ld=Od("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Pd=Od("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Dd=Od("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Rd=Od("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Td=Od("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ad=Od("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Id=Od("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Fd=Od("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),jd=Od("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Wd=Od("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]),zd=Od("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Hd=Od("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Bd=Od("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vd=6048e5,$d=Symbol.for("constructDateFrom");
39
+ /**
40
+ * @license lucide-react v0.395.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */function Yd(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&$d in e?e[$d](t):e instanceof Date?new e.constructor(t):new Date(t)}function qd(e,t){return Yd(t||e,e)}function Kd(e,t,n){const r=qd(e,n?.in);return isNaN(t)?Yd(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function Gd(e,t,n){const r=qd(e,n?.in);if(isNaN(t))return Yd(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=Yd(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);return o>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Ud={};function Zd(){return Ud}function Xd(e,t){const n=Zd(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=qd(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Qd(e,t){return Xd(e,{...t,weekStartsOn:1})}function Jd(e,t){const n=qd(e,t?.in),r=n.getFullYear(),o=Yd(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Qd(o),i=Yd(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=Qd(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ef(e){const t=qd(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tf(e,...t){const n=Yd.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}function nf(e,t){const n=qd(e,t?.in);return n.setHours(0,0,0,0),n}function rf(e,t,n){const[r,o]=tf(n?.in,e,t),a=nf(r),i=nf(o),s=+a-ef(a),l=+i-ef(i);return Math.round((s-l)/864e5)}function of(e,t,n){return Kd(e,7*t,n)}function af(e,t,n){return Gd(e,12*t,n)}function sf(e,t,n){const[r,o]=tf(n?.in,e,t);return+nf(r)===+nf(o)}function lf(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function cf(e,t,n){const[r,o]=tf(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}function uf(e,t){const n=qd(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function df(e,t){const n=qd(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function ff(e,t){const n=qd(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function pf(e,t){const n=Zd(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=qd(e,t?.in),a=o.getDay(),i=6+(a<r?-7:0)-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function mf(e,t){return pf(e,{...t,weekStartsOn:1})}const hf={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 vf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gf={date:vf({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vf({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:vf({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yf(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const wf={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:yf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yf({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:yf({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:yf({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:yf({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 xf(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Cf={ordinalNumber:(kf={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(kf.matchPattern);if(!n)return null;const r=n[0],o=e.match(kf.parsePattern);if(!o)return null;let a=kf.valueCallback?kf.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:xf({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:xf({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:xf({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:xf({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:xf({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 kf;const Nf={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=hf[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:gf,formatRelative:(e,t,n,r)=>bf[e],localize:wf,match:Cf,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ef(e,t){const n=qd(e,t?.in),r=+Qd(n)-+function(e,t){const n=Jd(e,t),r=Yd(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Qd(r)}(n);return Math.round(r/Vd)+1}function Sf(e,t){const n=qd(e,t?.in),r=n.getFullYear(),o=Zd(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=Yd(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Xd(i,t),l=Yd(t?.in||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Xd(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function Mf(e,t){const n=qd(e,t?.in),r=+Xd(n,t)-+function(e,t){const n=Zd(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Sf(e,t),a=Yd(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Xd(a,t)}(n,t);return Math.round(r/Vd)+1}function Of(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const _f={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Of("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Of(n+1,2)},d:(e,t)=>Of(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Of(e.getHours()%12||12,t.length),H:(e,t)=>Of(e.getHours(),t.length),m:(e,t)=>Of(e.getMinutes(),t.length),s:(e,t)=>Of(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Of(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Lf="midnight",Pf="noon",Df="morning",Rf="afternoon",Tf="evening",Af="night",If={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return _f.y(e,t)},Y:function(e,t,n,r){const o=Sf(e,r),a=o>0?o:1-o;if("YY"===t){return Of(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Of(a,t.length)},R:function(e,t){return Of(Jd(e),t.length)},u:function(e,t){return Of(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Of(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Of(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _f.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Of(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Mf(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Of(o,t.length)},I:function(e,t,n){const r=Ef(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Of(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):_f.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=qd(e,t?.in);return rf(n,ff(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Of(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Of(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Of(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Of(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?Pf:0===r?Lf:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?Tf:r>=12?Rf:r>=4?Df:Af,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return _f.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):_f.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Of(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Of(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_f.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_f.s(e,t)},S:function(e,t){return _f.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return jf(r);case"XXXX":case"XX":return Wf(r);default:return Wf(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return jf(r);case"xxxx":case"xx":return Wf(r);default:return Wf(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ff(r,":");default:return"GMT"+Wf(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ff(r,":");default:return"GMT"+Wf(r,":")}},t:function(e,t,n){return Of(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Of(+e,t.length)}};function Ff(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+Of(a,2)}function jf(e,t){if(e%60==0){return(e>0?"-":"+")+Of(Math.abs(e)/60,2)}return Wf(e,t)}function Wf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Of(Math.trunc(r/60),2)+t+Of(r%60,2)}const zf=(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"})}},Hf=(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"})}},Bf={p:Hf,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return zf(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",zf(r,t)).replace("{{time}}",Hf(o,t))}},Vf=/^D+$/,$f=/^Y+$/,Yf=["D","DD","YY","YYYY"];const qf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gf=/^'([^]*?)'?$/,Uf=/''/g,Zf=/[a-zA-Z]/;function Xf(e,t,n){const r=Zd(),o=n?.locale??r.locale??Nf,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=qd(e,n?.in);if(!function(e){return!(!lf(e)&&"number"!=typeof e||isNaN(+qd(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Kf).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Bf[t])(e,o.formatLong)}return e}).join("").match(qf).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Qf(e)};if(If[t])return{isToken:!0,value:e};if(t.match(Zf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(r=>{if(!r.isToken)return r.value;const a=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return $f.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return Vf.test(e)}(a))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(Yf.includes(e))throw new RangeError(r)}(a,t,String(e));return(0,If[a[0]])(s,a,o.localize,c)}).join("")}function Qf(e){const t=e.match(Gf);return t?t[1].replace(Uf,"'"):e}function Jf(e,t){const n=qd(e,t?.in);return function(e,t,n){const[r,o]=tf(n?.in,e,t),a=Xd(r,n),i=Xd(o,n),s=+a-ef(a),l=+i-ef(i);return Math.round((s-l)/Vd)}(function(e,t){const n=qd(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),qd(n,t?.in)}(n,t),df(n,t),t)+1}function ep(e,t){return+qd(e)>+qd(t)}function tp(e,t){return+qd(e)<+qd(t)}function np(e,t,n){const[r,o]=tf(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function rp(e,t,n){return Kd(e,-t,n)}function op(e,t,n){const r=qd(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=Yd(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=function(e,t){const n=qd(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=Yd(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return r.setMonth(t,Math.min(a,s)),r}function ap(e,t,n){const r=qd(e,n?.in);return isNaN(+r)?Yd(e,NaN):(r.setFullYear(t),r)}var ip=function(){return ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ip.apply(this,arguments)};function sp(e,t,n){for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function lp(e){return"multiple"===e.mode}function cp(e){return"range"===e.mode}function up(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var dp={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var fp=Object.freeze({__proto__:null,formatCaption:function(e,t){return Xf(e,"LLLL y",t)},formatDay:function(e,t){return Xf(e,"d",t)},formatMonthCaption:function(e,t){return Xf(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return Xf(e,"cccccc",t)},formatYearCaption:function(e,t){return Xf(e,"yyyy",t)}}),pp=Object.freeze({__proto__:null,labelDay:function(e,t,n){return Xf(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return Xf(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var mp=d(void 0);function hp(t){var n,r,o,a,i,s=t.initialProps,l=(r=dp,o=Nf,a=new Date,{captionLayout:"buttons",classNames:r,formatters:fp,labels:pp,locale:o,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:a,mode:"default"}),c=function(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=df(r):t&&(a=new Date(t,0,1)),o?i=uf(o):n&&(i=new Date(n,11,31)),{fromDate:a?nf(a):void 0,toDate:i?nf(i):void 0}}(s),u=c.fromDate,d=c.toDate,f=null!==(n=s.captionLayout)&&void 0!==n?n:l.captionLayout;"buttons"===f||u&&d||(f="buttons"),(up(s)||lp(s)||cp(s))&&(i=s.onSelect);var p=ip(ip(ip({},l),s),{captionLayout:f,classNames:ip(ip({},l.classNames),s.classNames),components:ip({},s.components),formatters:ip(ip({},l.formatters),s.formatters),fromDate:u,labels:ip(ip({},l.labels),s.labels),mode:s.mode||l.mode,modifiers:ip(ip({},l.modifiers),s.modifiers),modifiersClassNames:ip(ip({},l.modifiersClassNames),s.modifiersClassNames),onSelect:i,styles:ip(ip({},l.styles),s.styles),toDate:d});return e(mp.Provider,{value:p,children:t.children})}function vp(){var e=u(mp);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function gp(t){var n=vp(),r=n.locale,o=n.classNames,a=n.styles,i=n.formatters.formatCaption;return e("div",{className:o.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:t.id,children:i(t.displayMonth,{locale:r})})}function bp(t){return e("svg",ip({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},t,{children:e("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function yp(t){var r,o,a=t.onChange,i=t.value,s=t.children,l=t.caption,c=t.className,u=t.style,d=vp(),f=null!==(o=null===(r=d.components)||void 0===r?void 0:r.IconDropdown)&&void 0!==o?o:bp;return n("div",{className:c,style:u,children:[e("span",{className:d.classNames.vhidden,children:t["aria-label"]}),e("select",{name:t.name,"aria-label":t["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:i,onChange:a,children:s}),n("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[l,e(f,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function wp(n){var r,o=vp(),a=o.fromDate,i=o.toDate,s=o.styles,l=o.locale,c=o.formatters.formatMonthCaption,u=o.classNames,d=o.components,f=o.labels.labelMonthDropdown;if(!a)return e(t,{});if(!i)return e(t,{});var p=[];if(function(e,t,n){const[r,o]=tf(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(a,i))for(var m=df(a),h=a.getMonth();h<=i.getMonth();h++)p.push(op(m,h));else for(m=df(new Date),h=0;h<=11;h++)p.push(op(m,h));var v=null!==(r=null==d?void 0:d.Dropdown)&&void 0!==r?r:yp;return e(v,{name:"months","aria-label":f(),className:u.dropdown_month,style:s.dropdown_month,onChange:function(e){var t=Number(e.target.value),r=op(df(n.displayMonth),t);n.onChange(r)},value:n.displayMonth.getMonth(),caption:c(n.displayMonth,{locale:l}),children:p.map(function(t){return e("option",{value:t.getMonth(),children:c(t,{locale:l})},t.getMonth())})})}function xp(n){var r,o=n.displayMonth,a=vp(),i=a.fromDate,s=a.toDate,l=a.locale,c=a.styles,u=a.classNames,d=a.components,f=a.formatters.formatYearCaption,p=a.labels.labelYearDropdown,m=[];if(!i)return e(t,{});if(!s)return e(t,{});for(var h=i.getFullYear(),v=s.getFullYear(),g=h;g<=v;g++)m.push(ap(ff(new Date),g));var b=null!==(r=null==d?void 0:d.Dropdown)&&void 0!==r?r:yp;return e(b,{name:"years","aria-label":p(),className:u.dropdown_year,style:c.dropdown_year,onChange:function(e){var t=ap(df(o),Number(e.target.value));n.onChange(t)},value:o.getFullYear(),caption:f(o,{locale:l}),children:m.map(function(t){return e("option",{value:t.getFullYear(),children:f(t,{locale:l})},t.getFullYear())})})}function Cp(){var e=vp(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return a&&cf(a,o)<0&&(o=Gd(a,-1*(l-1))),i&&cf(o,i)<0&&(o=i),df(o)}(e),n=function(e,t){var n=a(e),r=n[0];return[void 0===t?r:t,n[1]]}(t,e.month),r=n[0],o=n[1];return[r,function(t){var n;if(!e.disableNavigation){var r=df(t);o(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}var kp=d(void 0);function Np(t){var n=vp(),r=Cp(),o=r[0],a=r[1],i=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=df(e),a=cf(df(Gd(o,r)),o),i=[],s=0;s<a;s++){var l=Gd(o,s);i.push(l)}return n&&(i=i.reverse()),i}(o,n),s=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,i=r?a:1,s=df(e);if(!n)return Gd(s,i);if(!(cf(n,e)<a))return Gd(s,i)}}(o,n),l=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,i=df(e);if(!n)return Gd(i,-a);if(!(cf(i,n)<=0))return Gd(i,-a)}}(o,n),c=function(e){return i.some(function(t){return np(e,t)})},u={currentMonth:o,displayMonths:i,goToMonth:a,goToDate:function(e,t){c(e)||(t&&tp(e,t)?a(Gd(e,1+-1*n.numberOfMonths)):a(e))},previousMonth:l,nextMonth:s,isDateDisplayed:c};return e(kp.Provider,{value:u,children:t.children})}function Ep(){var e=u(kp);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Sp(t){var r,o=vp(),a=o.classNames,i=o.styles,s=o.components,l=Ep().goToMonth,c=function(e){l(Gd(e,t.displayIndex?-t.displayIndex:0))},u=null!==(r=null==s?void 0:s.CaptionLabel)&&void 0!==r?r:gp,d=e(u,{id:t.id,displayMonth:t.displayMonth});return n("div",{className:a.caption_dropdowns,style:i.caption_dropdowns,children:[e("div",{className:a.vhidden,children:d}),e(wp,{onChange:c,displayMonth:t.displayMonth}),e(xp,{onChange:c,displayMonth:t.displayMonth})]})}function Mp(t){return e("svg",ip({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:e("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Op(t){return e("svg",ip({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:e("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var _p=f(function(t,n){var r=vp(),o=r.classNames,a=r.styles,i=[o.button_reset,o.button];t.className&&i.push(t.className);var s=i.join(" "),l=ip(ip({},a.button_reset),a.button);return t.style&&Object.assign(l,t.style),e("button",ip({},t,{ref:n,type:"button",className:s,style:l}))});function Lp(r){var o,a,i=vp(),s=i.dir,l=i.locale,c=i.classNames,u=i.styles,d=i.labels,f=d.labelPrevious,p=d.labelNext,m=i.components;if(!r.nextMonth&&!r.previousMonth)return e(t,{});var h=f(r.previousMonth,{locale:l}),v=[c.nav_button,c.nav_button_previous].join(" "),g=p(r.nextMonth,{locale:l}),b=[c.nav_button,c.nav_button_next].join(" "),y=null!==(o=null==m?void 0:m.IconRight)&&void 0!==o?o:Op,w=null!==(a=null==m?void 0:m.IconLeft)&&void 0!==a?a:Mp;return n("div",{className:c.nav,style:u.nav,children:[!r.hidePrevious&&e(_p,{name:"previous-month","aria-label":h,className:v,style:u.nav_button_previous,disabled:!r.previousMonth,onClick:r.onPreviousClick,children:e("rtl"===s?y:w,{className:c.nav_icon,style:u.nav_icon})}),!r.hideNext&&e(_p,{name:"next-month","aria-label":g,className:b,style:u.nav_button_next,disabled:!r.nextMonth,onClick:r.onNextClick,children:e("rtl"===s?w:y,{className:c.nav_icon,style:u.nav_icon})})]})}function Pp(t){var n=vp().numberOfMonths,r=Ep(),o=r.previousMonth,a=r.nextMonth,i=r.goToMonth,s=r.displayMonths,l=s.findIndex(function(e){return np(t.displayMonth,e)}),c=0===l,u=l===s.length-1,d=n>1&&(c||!u),f=n>1&&(u||!c);return e(Lp,{displayMonth:t.displayMonth,hideNext:d,hidePrevious:f,nextMonth:a,previousMonth:o,onPreviousClick:function(){o&&i(o)},onNextClick:function(){a&&i(a)}})}function Dp(r){var o,a,i=vp(),s=i.classNames,l=i.disableNavigation,c=i.styles,u=i.captionLayout,d=i.components,f=null!==(o=null==d?void 0:d.CaptionLabel)&&void 0!==o?o:gp;return a=l?e(f,{id:r.id,displayMonth:r.displayMonth}):"dropdown"===u?e(Sp,{displayMonth:r.displayMonth,id:r.id}):n(t,"dropdown-buttons"===u?{children:[e(Sp,{displayMonth:r.displayMonth,displayIndex:r.displayIndex,id:r.id}),e(Pp,{displayMonth:r.displayMonth,displayIndex:r.displayIndex,id:r.id})]}:{children:[e(f,{id:r.id,displayMonth:r.displayMonth,displayIndex:r.displayIndex}),e(Pp,{displayMonth:r.displayMonth,id:r.id})]}),e("div",{className:s.caption,style:c.caption,children:a})}function Rp(n){var r=vp(),o=r.footer,a=r.styles,i=r.classNames.tfoot;return o?e("tfoot",{className:i,style:a.tfoot,children:e("tr",{children:e("td",{colSpan:8,children:o})})}):e(t,{})}function Tp(){var t=vp(),r=t.classNames,o=t.styles,a=t.showWeekNumber,i=t.locale,s=t.weekStartsOn,l=t.ISOWeek,c=t.formatters.formatWeekdayName,u=t.labels.labelWeekday,d=function(e,t,n){for(var r=n?Qd(new Date):Xd(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=Kd(r,a);o.push(i)}return o}(i,s,l);return n("tr",{style:o.head_row,className:r.head_row,children:[a&&e("td",{style:o.head_cell,className:r.head_cell}),d.map(function(t,n){return e("th",{scope:"col",className:r.head_cell,style:o.head_cell,"aria-label":u(t,{locale:i}),children:c(t,{locale:i})},n)})]})}function Ap(){var t,n=vp(),r=n.classNames,o=n.styles,a=n.components,i=null!==(t=null==a?void 0:a.HeadRow)&&void 0!==t?t:Tp;return e("thead",{style:o.head,className:r.head,children:e(i,{})})}function Ip(n){var r=vp(),o=r.locale,a=r.formatters.formatDay;return e(t,{children:a(n.date,{locale:o})})}var Fp=d(void 0);function jp(t){if(!lp(t.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return e(Fp.Provider,{value:n,children:t.children})}return e(Wp,{initialProps:t.initialProps,children:t.children})}function Wp(t){var n=t.initialProps,r=t.children,o=n.selected,a=n.min,i=n.max,s={disabled:[]};o&&s.disabled.push(function(e){var t=i&&o.length>i-1,n=o.some(function(t){return sf(t,e)});return Boolean(t&&!n)});var l={selected:o,onDayClick:function(e,t,r){var s,l;if((null===(s=n.onDayClick)||void 0===s||s.call(n,e,t,r),!Boolean(t.selected&&a&&(null==o?void 0:o.length)===a))&&!Boolean(!t.selected&&i&&(null==o?void 0:o.length)===i)){var c=o?sp([],o):[];if(t.selected){var u=c.findIndex(function(t){return sf(e,t)});c.splice(u,1)}else c.push(e);null===(l=n.onSelect)||void 0===l||l.call(n,c,e,t,r)}},modifiers:s};return e(Fp.Provider,{value:l,children:r})}function zp(){var e=u(Fp);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var Hp,Bp=d(void 0);function Vp(t){if(!cp(t.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return e(Bp.Provider,{value:n,children:t.children})}return e($p,{initialProps:t.initialProps,children:t.children})}function $p(t){var n=t.initialProps,r=t.children,o=n.selected,a=o||{},i=a.from,s=a.to,l=n.min,c=n.max,u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(u.range_start=[i],s?(u.range_end=[s],sf(i,s)||(u.range_middle=[{after:i,before:s}])):u.range_end=[i]):s&&(u.range_start=[s],u.range_end=[s]),l&&(i&&!s&&u.disabled.push({after:rp(i,l-1),before:Kd(i,l-1)}),i&&s&&u.disabled.push({after:i,before:Kd(i,l-1)}),!i&&s&&u.disabled.push({after:rp(s,l-1),before:Kd(s,l-1)})),c){if(i&&!s&&(u.disabled.push({before:Kd(i,1-c)}),u.disabled.push({after:Kd(i,c-1)})),i&&s){var d=c-(rf(s,i)+1);u.disabled.push({before:rp(i,d)}),u.disabled.push({after:Kd(s,d)})}!i&&s&&(u.disabled.push({before:Kd(s,1-c)}),u.disabled.push({after:Kd(s,c-1)}))}return e(Bp.Provider,{value:{selected:o,onDayClick:function(e,t,r){var a,i;null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,r);var s=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(sf(o,e)&&sf(r,e))return;if(sf(o,e))return{from:o,to:void 0};if(sf(r,e))return;return ep(r,e)?{from:e,to:o}:{from:r,to:e}}return o?ep(e,o)?{from:o,to:e}:{from:e,to:o}:r?tp(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,o);null===(i=n.onSelect)||void 0===i||i.call(n,s,e,t,r)},modifiers:u},children:r})}function Yp(){var e=u(Bp);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function qp(e){return Array.isArray(e)?sp([],e):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(Hp||(Hp={}));var Kp=Hp.Selected,Gp=Hp.Disabled,Up=Hp.Hidden,Zp=Hp.Today,Xp=Hp.RangeEnd,Qp=Hp.RangeMiddle,Jp=Hp.RangeStart,em=Hp.Outside;var tm=d(void 0);function nm(t){var n=vp(),r=function(e,t,n){var r,o=((r={})[Kp]=qp(e.selected),r[Gp]=qp(e.disabled),r[Up]=qp(e.hidden),r[Zp]=[e.today],r[Xp]=[],r[Qp]=[],r[Jp]=[],r[em]=[],r);return e.fromDate&&o[Gp].push({before:e.fromDate}),e.toDate&&o[Gp].push({after:e.toDate}),lp(e)?o[Gp]=o[Gp].concat(t.modifiers[Gp]):cp(e)&&(o[Gp]=o[Gp].concat(n.modifiers[Gp]),o[Jp]=n.modifiers[Jp],o[Qp]=n.modifiers[Qp],o[Xp]=n.modifiers[Xp]),o}(n,zp(),Yp()),o=function(e){var t={};return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];t[n]=qp(r)}),t}(n.modifiers),a=ip(ip({},r),o);return e(tm.Provider,{value:a,children:t.children})}function rm(){var e=u(tm);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function om(e,t){return t.some(function(t){if("boolean"==typeof t)return t;if(lf(t))return sf(e,t);var n,r,o,a,i;if(function(e){return Array.isArray(e)&&e.every(lf)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return n=e,a=(r=t).from,i=r.to,a&&i?(rf(i,a)<0&&(a=(o=[i,a])[0],i=o[1]),rf(n,a)>=0&&rf(i,n)>=0):i?sf(i,n):!!a&&sf(a,n);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var s=rf(t.before,e)>0,l=rf(t.after,e)<0;return ep(t.before,t.after)?l&&s:s||l}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?rf(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?rf(t.before,e)>0:"function"==typeof t&&t(e)})}function am(e,t,n){var r=Object.keys(t).reduce(function(n,r){var o=t[r];return om(e,o)&&n.push(r),n},[]),o={};return r.forEach(function(e){return o[e]=!0}),n&&!np(e,n)&&(o.outside=!0),o}function im(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=void 0===i?{count:0,lastFocused:e}:i,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:Kd,week:of,month:Gd,year:af,startOfWeek:function(e){return o.ISOWeek?Qd(e):Xd(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?mf(e):pf(e,{locale:d,weekStartsOn:l})}}[n](e,"after"===r?1:-1);"before"===r&&c?f=function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=Yd.bind(null,e));const t=qd(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),Yd(r,n||NaN)}([c,f]):"after"===r&&u&&(f=function(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=Yd.bind(null,e));const t=qd(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Yd(r,n||NaN)}([u,f]));var p=!0;if(a){var m=am(f,a);p=!m.disabled&&!m.hidden}return p?f:s.count>365?s.lastFocused:im(f,{moveBy:n,direction:r,context:o,modifiers:a,retry:ip(ip({},s),{count:s.count+1})})}var sm=d(void 0);function lm(t){var n=Ep(),r=rm(),o=a(),i=o[0],s=o[1],l=a(),c=l[0],u=l[1],d=function(e,t){for(var n,r,o=df(e[0]),a=uf(e[e.length-1]),i=o;i<=a;){var s=am(i,t);if(s.disabled||s.hidden)i=Kd(i,1);else{if(s.selected)return i;s.today&&!r&&(r=i),n||(n=i),i=Kd(i,1)}}return r||n}(n.displayMonths,r),f=(null!=i?i:c&&n.isDateDisplayed(c))?c:d,p=function(e){s(e)},m=vp(),h=function(e,t){if(i){var o=im(i,{moveBy:e,direction:t,context:m,modifiers:r});sf(i,o)||(n.goToDate(o,i),p(o))}},v={focusedDay:i,focusTarget:f,blur:function(){u(i),s(void 0)},focus:p,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return e(sm.Provider,{value:v,children:t.children})}function cm(){var e=u(sm);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var um=d(void 0);function dm(t){if(!up(t.initialProps)){var n={selected:void 0};return e(um.Provider,{value:n,children:t.children})}return e(fm,{initialProps:t.initialProps,children:t.children})}function fm(t){var n=t.initialProps,r=t.children,o={selected:n.selected,onDayClick:function(e,t,r){var o,a,i;null===(o=n.onDayClick)||void 0===o||o.call(n,e,t,r),!t.selected||n.required?null===(i=n.onSelect)||void 0===i||i.call(n,e,e,t,r):null===(a=n.onSelect)||void 0===a||a.call(n,void 0,e,t,r)}};return e(um.Provider,{value:o,children:r})}function pm(){var e=u(um);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function mm(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(Hp).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}}),n}function hm(t,n,r){var o,a,s,l=vp(),c=cm(),u=function(e,t){return am(e,rm(),t)}(t,n),d=function(e,t){var n=vp(),r=pm(),o=zp(),a=Yp(),i=cm(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,d=i.blur,f=i.focus,p=i.focusMonthBefore,m=i.focusMonthAfter,h=i.focusYearBefore,v=i.focusYearAfter,g=i.focusStartOfWeek,b=i.focusEndOfWeek,y={onClick:function(i){var s,l,c,u;up(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):lp(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):cp(n)?null===(c=a.onDayClick)||void 0===c||c.call(a,e,t,i):null===(u=n.onDayClick)||void 0===u||u.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),c();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),u();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?h():p();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?v():m();break;case"Home":r.preventDefault(),r.stopPropagation(),g();break;case"End":r.preventDefault(),r.stopPropagation(),b()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return y}(t,u),f=function(){var e=vp(),t=pm(),n=zp(),r=Yp();return up(e)?t.selected:lp(e)?n.selected:cp(e)?r.selected:void 0}(),p=Boolean(l.onDayClick||"default"!==l.mode);i(function(){var e;u.outside||c.focusedDay&&p&&sf(c.focusedDay,t)&&(null===(e=r.current)||void 0===e||e.focus())},[c.focusedDay,t,r,p,u.outside]);var m=mm(l,u).join(" "),h=function(e,t){var n=ip({},e.styles.day);return Object.keys(t).forEach(function(t){var r;n=ip(ip({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])}),n}(l,u),v=Boolean(u.outside&&!l.showOutsideDays||u.hidden),g=null!==(s=null===(a=l.components)||void 0===a?void 0:a.DayContent)&&void 0!==s?s:Ip,b={style:h,className:m,children:e(g,{date:t,displayMonth:n,activeModifiers:u}),role:"gridcell"},y=c.focusTarget&&sf(c.focusTarget,t)&&!u.outside,w=c.focusedDay&&sf(c.focusedDay,t),x=ip(ip(ip({},b),((o={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,o.tabIndex=w||y?0:-1,o)),d);return{isButton:p,isHidden:v,activeModifiers:u,selectedDays:f,buttonProps:x,divProps:b}}function vm(t){var n=l(null),r=hm(t.date,t.displayMonth,n);return r.isHidden?e("div",{role:"gridcell"}):r.isButton?e(_p,ip({name:"day",ref:n},r.buttonProps)):e("div",ip({},r.divProps))}function gm(t){var n=t.number,r=t.dates,o=vp(),a=o.onWeekNumberClick,i=o.styles,s=o.classNames,l=o.locale,c=o.labels.labelWeekNumber,u=(0,o.formatters.formatWeekNumber)(Number(n),{locale:l});if(!a)return e("span",{className:s.weeknumber,style:i.weeknumber,children:u});var d=c(Number(n),{locale:l});return e(_p,{name:"week-number","aria-label":d,className:s.weeknumber,style:i.weeknumber,onClick:function(e){a(n,r,e)},children:u})}function bm(t){var r,o,a,i=vp(),s=i.styles,l=i.classNames,c=i.showWeekNumber,u=i.components,d=null!==(r=null==u?void 0:u.Day)&&void 0!==r?r:vm,f=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:gm;return c&&(a=e("td",{className:l.cell,style:s.cell,children:e(f,{number:t.weekNumber,dates:t.dates})})),n("tr",{className:l.row,style:s.row,children:[a,t.dates.map(function(n){return e("td",{className:l.cell,style:s.cell,role:"presentation",children:e(d,{displayMonth:t.displayMonth,date:n})},function(e){return Math.trunc(+qd(e)/1e3)}(n))})]})}function ym(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?mf(t):pf(t,n),o=(null==n?void 0:n.ISOWeek)?Qd(e):Xd(e,n),a=rf(r,o),i=[],s=0;s<=a;s++)i.push(Kd(o,s));return i.reduce(function(e,t){var r=(null==n?void 0:n.ISOWeek)?Ef(t):Mf(t,n),o=e.find(function(e){return e.weekNumber===r});return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)},[])}function wm(t){var r,o,a,i=vp(),s=i.locale,l=i.classNames,c=i.styles,u=i.hideHead,d=i.fixedWeeks,f=i.components,p=i.weekStartsOn,m=i.firstWeekContainsDate,h=i.ISOWeek,v=function(e,t){var n=ym(df(e),uf(e),t);if(null==t?void 0:t.useFixedWeeks){var r=Jf(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=of(a,6-r),s=ym(of(a,1),i,t);n.push.apply(n,s)}}return n}(t.displayMonth,{useFixedWeeks:Boolean(d),ISOWeek:h,locale:s,weekStartsOn:p,firstWeekContainsDate:m}),g=null!==(r=null==f?void 0:f.Head)&&void 0!==r?r:Ap,b=null!==(o=null==f?void 0:f.Row)&&void 0!==o?o:bm,y=null!==(a=null==f?void 0:f.Footer)&&void 0!==a?a:Rp;return n("table",{id:t.id,className:l.table,style:c.table,role:"grid","aria-labelledby":t["aria-labelledby"],children:[!u&&e(g,{}),e("tbody",{className:l.tbody,style:c.tbody,children:v.map(function(n){return e(b,{displayMonth:t.displayMonth,dates:n.dates,weekNumber:n.weekNumber},n.weekNumber)})}),e(y,{displayMonth:t.displayMonth})]})}var xm="undefined"!=typeof window&&window.document&&window.document.createElement?s:i,Cm=!1,km=0;function Nm(){return"react-day-picker-".concat(++km)}function Em(t){var r,o,s=vp(),l=s.dir,c=s.classNames,u=s.styles,d=s.components,f=Ep().displayMonths,p=function(e){var t,n=null!=e?e:Cm?Nm():null,r=a(n),o=r[0],s=r[1];return xm(function(){null===o&&s(Nm())},[]),i(function(){!1===Cm&&(Cm=!0)},[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(s.id?"".concat(s.id,"-").concat(t.displayIndex):void 0),m=s.id?"".concat(s.id,"-grid-").concat(t.displayIndex):void 0,h=[c.month],v=u.month,g=0===t.displayIndex,b=t.displayIndex===f.length-1,y=!g&&!b;"rtl"===l&&(b=(r=[g,b])[0],g=r[1]),g&&(h.push(c.caption_start),v=ip(ip({},v),u.caption_start)),b&&(h.push(c.caption_end),v=ip(ip({},v),u.caption_end)),y&&(h.push(c.caption_between),v=ip(ip({},v),u.caption_between));var w=null!==(o=null==d?void 0:d.Caption)&&void 0!==o?o:Dp;return n("div",{className:h.join(" "),style:v,children:[e(w,{id:p,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),e(wm,{id:m,"aria-labelledby":p,displayMonth:t.displayMonth})]},t.displayIndex)}function Sm(t){var n=vp(),r=n.classNames,o=n.styles;return e("div",{className:r.months,style:o.months,children:t.children})}function Mm(t){var n,r,o=t.initialProps,s=vp(),l=cm(),c=Ep(),u=a(!1),d=u[0],f=u[1];i(function(){s.initialFocus&&l.focusTarget&&(d||(l.focus(l.focusTarget),f(!0)))},[s.initialFocus,d,l.focus,l.focusTarget,l]);var p=[s.classNames.root,s.className];s.numberOfMonths>1&&p.push(s.classNames.multiple_months),s.showWeekNumber&&p.push(s.classNames.with_weeknumber);var m=ip(ip({},s.styles.root),s.style),h=Object.keys(o).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var n;return ip(ip({},e),((n={})[t]=o[t],n))},{}),v=null!==(r=null===(n=o.components)||void 0===n?void 0:n.Months)&&void 0!==r?r:Sm;return e("div",ip({className:p.join(" "),style:m,dir:s.dir,id:s.id,nonce:o.nonce,title:o.title,lang:o.lang},h,{children:e(v,{children:c.displayMonths.map(function(t,n){return e(Em,{displayIndex:n,displayMonth:t},n)})})}))}function Om(t){var n=t.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children"]);return e(hp,{initialProps:r,children:e(Np,{children:e(dm,{initialProps:r,children:e(jp,{initialProps:r,children:e(Vp,{initialProps:r,children:e(nm,{children:e(lm,{children:n})})})})})})})}function _m(t){return e(Om,ip({},t,{children:e(Mm,{initialProps:t})}))}function Lm({className:e,classNames:t,showOutsideDays:n=!0,...r}){return E(_m,{showOutsideDays:n,className:_t("p-2",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:_t(ud({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:_t(ud({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100 cursor:pointer"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>E(Td,{className:"h-4 w-4"}),IconRight:()=>E(Ad,{className:"h-4 w-4"})},...r})}Lm.displayName="Calendar";const Pm=({ref:t,className:n,...r})=>e("div",{ref:t,className:_t("rounded-xl bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm border-[hsl(var(--input))]",n),...r});Pm.displayName="Card";const Dm=({ref:t,className:n,...r})=>e("div",{ref:t,className:_t("flex flex-col space-y-1.5 p-6",n),...r});Dm.displayName="CardHeader";const Rm=({ref:t,className:n,...r})=>e("h3",{ref:t,className:_t("font-semibold leading-none tracking-tight",n),...r});Rm.displayName="CardTitle";const Tm=({ref:t,className:n,...r})=>e("p",{ref:t,className:_t("text-sm text-[hsl(var(--muted-foreground))]",n),...r});Tm.displayName="CardDescription";const Am=({ref:t,className:n,...r})=>e("div",{ref:t,className:_t("p-6 pt-0",n),...r});Am.displayName="CardContent";const Im=({ref:t,className:n,...r})=>e("div",{ref:t,className:_t("flex items-center p-6 pt-0",n),...r});function Fm(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function jm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:Fm(r)&&Fm(o)?jm(r,o):r===o})}function Wm(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function zm(e){return"number"==typeof e}function Hm(e){return"string"==typeof e}function Bm(e){return"boolean"==typeof e}function Vm(e){return"[object Object]"===Object.prototype.toString.call(e)}function $m(e){return Math.abs(e)}function Ym(e){return Math.sign(e)}function qm(e,t){return $m(e-t)}function Km(e){return Qm(e).map(Number)}function Gm(e){return e[Um(e)]}function Um(e){return Math.max(0,e.length-1)}function Zm(e,t){return t===Um(e)}function Xm(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function Qm(e){return Object.keys(e)}function Jm(e,t){return[e,t].reduce((e,t)=>(Qm(t).forEach(n=>{const r=e[n],o=t[n],a=Vm(r)&&Vm(o);e[n]=a?Jm(r,o):o}),e),{})}function eh(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function th(){let e=[];const t={add:function(n,r,o,a={passive:!0}){let i;if("addEventListener"in n)n.addEventListener(r,o,a),i=()=>n.removeEventListener(r,o,a);else{const e=n;e.addListener(o),i=()=>e.removeListener(o)}return e.push(i),t},clear:function(){e=e.filter(e=>e())}};return t}function nh(e,t,n,r){const o=th(),a=1e3/60;let i=null,s=0,l=0;function c(e){if(!l)return;i||(i=e,n(),n());const o=e-i;for(i=e,s+=o;s>=a;)n(),s-=a;r(s/a),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),i=null,s=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(i=null,s=0)})},destroy:function(){u(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}function rh(e=0,t=0){const n=$m(e-t);function r(t){return t<e}function o(e){return e>t}function a(e){return r(e)||o(e)}const i={length:n,max:t,min:e,constrain:function(n){return a(n)?r(n)?e:t:n},reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}};return i}function oh(e,t,n){const{constrain:r}=rh(0,e),o=e+1;let a=i(t);function i(e){return n?$m((o+e)%o):r(e)}function s(){return a}function l(){return oh(e,s(),n)}const c={get:s,set:function(e){return a=i(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function ah(e,t,n,r,o,a,i,s,l,c,u,d,f,p,m,h,v,g,b){const{cross:y,direction:w}=e,x=["INPUT","SELECT","TEXTAREA"],C={passive:!1},k=th(),N=th(),E=rh(50,225).constrain(p.measure(20)),S={mouse:300,touch:400},M={mouse:500,touch:600},O=m?43:25;let _=!1,L=0,P=0,D=!1,R=!1,T=!1,A=!1;function I(e){if(!eh(e,r)&&e.touches.length>=2)return F(e);const t=a.readPoint(e),n=a.readPoint(e,y),i=qm(t,L),l=qm(n,P);if(!R&&!A){if(!e.cancelable)return F(e);if(R=i>l,!R)return F(e)}const u=a.pointerMove(e);i>h&&(T=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(w(u)),e.preventDefault()}function F(e){const t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*(m?M:S)[A?"mouse":"touch"],r=function(e,t){const n=d.add(-1*Ym(e)),r=u.byDistance(e,!m).distance;return m||$m(e)<E?r:v&&t?.5*r:u.byIndex(n.get(),0).distance}(w(n),t),o=function(e,t){if(0===e||0===t)return 0;if($m(e)<=$m(t))return 0;const n=qm($m(e),$m(t));return $m(n/e)}(n,r),i=O-10*o,s=g+o/50;R=!1,D=!1,N.clear(),c.useDuration(i).useFriction(s),l.distance(r,!m),A=!1,f.emit("pointerUp")}function j(e){T&&(e.stopPropagation(),e.preventDefault(),T=!1)}return{init:function(e){if(!b)return;function s(s){(Bm(b)||b(e,s))&&function(e){const s=eh(e,r);if(A=s,T=m&&s&&!e.buttons&&_,_=qm(o.get(),i.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target))return;D=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),o.set(i),function(){const e=A?n:t;N.add(e,"touchmove",I,C).add(e,"touchend",F).add(e,"mousemove",I,C).add(e,"mouseup",F)}(),L=a.readPoint(e),P=a.readPoint(e,y),f.emit("pointerDown")}(s)}const l=t;k.add(l,"dragstart",e=>e.preventDefault(),C).add(l,"touchmove",()=>{},C).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",F).add(l,"contextmenu",F).add(l,"click",j,!0)},destroy:function(){k.clear(),N.clear()},pointerDown:function(){return D}}}function ih(e,t){let n,r;function o(e){return e.timeStamp}function a(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(eh(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){const t=a(e)-a(r),i=o(e)-o(n)>170;return r=e,i&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=a(r)-a(n),i=o(e)-o(n),s=o(e)-o(r)>170,l=t/i;return i&&!s&&$m(l)>.1?l:0},readPoint:a}}function sh(e,t,n,r,o,a,i){const s=[e].concat(r);let l,c,u=[],d=!1;function f(e){return o.measureSize(i.measure(e))}return{init:function(o){a&&(c=f(e),u=r.map(f),l=new ResizeObserver(n=>{(Bm(a)||a(o,n))&&function(n){for(const a of n){if(d)return;const n=a.target===e,i=r.indexOf(a.target),s=n?c:u[i];if($m(f(n?e:r[i])-s)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){d=!0,l&&l.disconnect()}}}function lh(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=rh(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(n.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",u=$m(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(u/i);n.subtract(d*f),!o&&$m(d)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function ch(e,t,n,r){const o=t.min+.1,a=t.max+.1,{reachedMin:i,reachedMax:s}=rh(o,a);const l={loop:function(t){if(!function(e){return 1===e?s(n.get()):-1===e&&i(n.get())}(t))return;const o=e*(-1*t);r.forEach(e=>e.add(o))}};return l}function uh(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>$m(e)-$m(t))[0]}function c(t,r){const o=[t,t+n,t-n];if(!e)return t;if(!r)return l(o);const a=o.filter(e=>Ym(e)===r);return a.length?l(a):Gm(o)-n}const u={byDistance:function(n,r){const l=o.get()+n,{index:u,distance:d}=function(n){const r=e?i(n):s(n),o=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>$m(e.diff)-$m(t.diff)),{index:a}=o[0];return{index:a,distance:r}}(l),f=!e&&a(l);return!r||f?{index:u,distance:n}:{index:u,distance:n+c(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:c(t[e]-o.get(),n)}},shortcut:c};return u}function dh(e,t,n,r,o,a,i,s){const l={passive:!0,capture:!0};let c=0;function u(e){"Tab"===e.code&&(c=(new Date).getTime())}const d={init:function(d){s&&(a.add(document,"keydown",u,!1),t.forEach((t,u)=>{a.add(t,"focus",t=>{(Bm(s)||s(d,t))&&function(t){if((new Date).getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const a=n.findIndex(e=>e.includes(t));zm(a)&&(o.useDuration(0),r.index(a,0),i.emit("slideFocus"))}(u)},l)}))}};return d}function fh(e){let t=e;function n(e){return zm(e)?e:e.get()}const r={get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}};return r}function ph(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style;let o=null,a=!1;return{clear:function(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(a)return;const i=(s=e.direction(t),Math.round(100*s)/100);var s;i!==o&&(r.transform=n(i),o=i)},toggleActive:function(e){a=!e}}}function mh(e,t,n,r,o,a,i,s,l){const c=Km(o),u=Km(o).reverse(),d=function(){const e=i[0];return m(p(u,e),n,!1)}().concat(function(){const e=t-i[0]-1;return m(p(c,e),-n,!0)}());function f(e,t){return e.reduce((e,t)=>e-o[t],t)}function p(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(o,i,c){const u=function(e){return a.map((n,o)=>({start:n-r[o]+.5+e,end:n+t-.5+e}))}(i);return o.map(t=>{const r=c?0:-n,o=c?n:0,a=c?"end":"start",i=u[t][a];return{index:t,loopPoint:i,slideLocation:fh(-1),translate:ph(e,l[t]),target:()=>s.get()>i?r:o}})}const h={canLoop:function(){return d.every(({index:e})=>{const n=c.filter(t=>t!==e);return f(n,t)<=.1})},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:d};return h}function hh(e,t,n){let r,o=!1;return{init:function(a){n&&(r=new MutationObserver(e=>{o||(Bm(n)||n(a,e))&&function(e){for(const n of e)if("childList"===n.type){a.reInit(),t.emit("slidesChanged");break}}(e)}),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function vh(e,t,n,r){const o={};let a,i=null,s=null,l=!1;const c={init:function(){a=new IntersectionObserver(e=>{l||(e.forEach(e=>{const n=t.indexOf(e.target);o[n]=e}),i=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>a.observe(e))},destroy:function(){a&&a.disconnect(),l=!0},get:function(e=!0){if(e&&i)return i;if(!e&&s)return s;const t=function(e){return Qm(o).reduce((t,n)=>{const r=parseInt(n),{isIntersecting:a}=o[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}(e);return e&&(i=t),e||(s=t),t}};return c}function gh(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:u,direction:d}=e,f=zm(n);const p={groupSlides:function(e){return f?function(e,t){return Km(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}(e,n):function(e){return e.length?Km(e).reduce((n,f,p)=>{const m=Gm(n)||0,h=0===m,v=f===Um(e),g=o[c]-a[m][c],b=o[c]-a[f][u],y=!r&&h?d(i):0,w=$m(b-(!r&&v?d(s):0)-(g+y));return p&&w>t+l&&n.push(f),v&&n.push(e.length),n},[]).map((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}(e)}};return p}function bh(e,t,n,r,o,a,i){const{align:s,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:v,skipSnaps:g,containScroll:b,watchResize:y,watchSlides:w,watchDrag:x,watchFocus:C}=a,k={measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},N=k.measure(t),E=n.map(k.measure),S=function(e,t){const n="rtl"===t,r="y"===e,o=!r&&n?-1:1,a={scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}};return a}(l,c),M=S.measureSize(N),O=function(e){const t={measure:function(t){return e*(t/100)}};return t}(M),_=function(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}const o={measure:function(r,o){return Hm(e)?n[e](r):e(t,r,o)}};return o}(s,M),L=!d&&!!b,P=d||!!b,{slideSizes:D,slideSizesWithGaps:R,startGap:T,endGap:A}=function(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,u=function(){if(!c)return 0;const e=n[0];return $m(t[s]-e[s])}(),d=function(){if(!c)return 0;const e=a.getComputedStyle(Gm(r));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),f=n.map(i),p=n.map((e,t,n)=>{const r=!t,o=Zm(n,t);return r?f[t]+u:o?f[t]+d:n[t+1][s]-e[s]}).map($m);return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}(S,N,E,n,P,o),I=gh(S,M,v,d,N,E,T,A,2),{snaps:F,snapsAligned:j}=function(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=s(r).map(e=>Gm(e)[i]-e[0][a]).map($m).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-$m(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(S,_,N,E,I),W=-Gm(F)+Gm(R),{snapsContained:z,scrollContainLimit:H}=function(e,t,n,r,o){const a=rh(-t+e,0),i=n.map((e,t)=>{const{min:r,max:o}=a,i=a.constrain(e),s=!t,l=Zm(n,t);return s?o:l||c(r,i)?r:c(o,i)?o:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=i[0],t=Gm(i);return rh(i.lastIndexOf(e),i.indexOf(t)+1)}(),l=function(){if(t<=e+o)return[a.max];if("keepSnaps"===r)return i;const{min:n,max:l}=s;return i.slice(n,l)}();function c(e,t){return qm(e,t)<=1}return{snapsContained:l,scrollContainLimit:s}}(M,W,j,b,2),B=L?z:j,{limit:V}=function(e,t,n){const r=t[0];return{limit:rh(n?r-e:Gm(t),r)}}(W,B,d),$=oh(Um(B),u,d),Y=$.clone(),q=Km(n),K=nh(r,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(se),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:o,scrollLooper:a,slideLooper:i,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{const p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,v=h&&!s.pointerDown();v&&l.stop();const g=n.get()*f+o.get()*(1-f);r.set(g),d&&(a.loop(e.direction()),i.loop()),t.to(r.get()),v&&c.emit("settle"),h||c.emit("scroll")})(se,e)),G=B[$.get()],U=fh(G),Z=fh(G),X=fh(G),Q=fh(G),J=function(e,t,n,r,o,a){let i=0,s=0,l=o,c=a,u=e.get(),d=0;function f(e){return l=e,m}function p(e){return c=e,m}const m={direction:function(){return s},duration:function(){return l},velocity:function(){return i},seek:function(){const t=r.get()-e.get();let o=0;return l?(n.set(e),i+=t/l,i*=c,u+=i,e.add(i),o=u-d):(i=0,n.set(r),e.set(r),o=t),s=Ym(o),d=u,m},settled:function(){return $m(r.get()-t.get())<.001},useBaseFriction:function(){return p(a)},useBaseDuration:function(){return f(o)},useFriction:p,useDuration:f};return m}(U,X,Z,Q,f,.68),ee=uh(d,B,W,V,Q),te=function(e,t,n,r,o,a,i){function s(o){const s=o.distance,l=o.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(o.index),i.emit("select"))}const l={distance:function(e,t){s(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);s(o.byIndex(r.get(),n))}};return l}(K,$,Y,J,ee,Q,i),ne=function(e){const{max:t,length:n}=e,r={get:function(e){return n?(e-t)/-n:0}};return r}(V),re=th(),oe=vh(t,n,i,h),{slideRegistry:ae}=function(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:l}=r,c=function(){const r=i(a),o=!e||"keepSnaps"===t;return 1===n.length?[a]:o?r:r.slice(s,l).map((e,t,n)=>{const r=!t,o=Zm(n,t);return r?Xm(Gm(n[0])+1):o?Xm(Um(a)-Gm(n)[0]+1,Gm(n)[0]):e})}();return{slideRegistry:c}}(L,b,B,H,I,q),ie=dh(e,n,ae,te,J,re,i,C),se={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:N,slideRects:E,animation:K,axis:S,dragHandler:ah(S,e,r,o,Q,ih(S,o),U,K,te,J,ee,$,i,O,p,m,g,.68,x),eventStore:re,percentOfView:O,index:$,indexPrevious:Y,limit:V,location:U,offsetLocation:X,previousLocation:Z,options:a,resizeHandler:sh(t,i,o,n,S,y,k),scrollBody:J,scrollBounds:lh(V,X,Q,J,O),scrollLooper:ch(W,V,X,[U,X,Z,Q]),scrollProgress:ne,scrollSnapList:B.map(ne.get),scrollSnaps:B,scrollTarget:ee,scrollTo:te,slideLooper:mh(S,M,W,D,R,F,B,X,n),slideFocus:ie,slidesHandler:hh(t,i,w),slidesInView:oe,slideIndexes:q,slideRegistry:ae,slidesToScroll:I,target:Q,translate:ph(S,t)};return se}Im.displayName="CardFooter";const yh={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function wh(e){function t(e,t){return Jm(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=Qm(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>Qm(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return n}function xh(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=wh(o),i=function(e){let t=[];const n={init:function(n,r){return t=r.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}};return n}(a),s=th(),l=function(){let e,t={};function n(e){return t[e]||[]}const r={init:function(t){e=t},emit:function(t){return n(t).forEach(n=>n(e,t)),r},off:function(e,o){return t[e]=n(e).filter(e=>e!==o),r},on:function(e,o){return t[e]=n(e).concat([o]),r},clear:function(){t={}}};return r}(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=l,h=S;let v,g,b,y,w=!1,x=c(yh,xh.globalOptions),C=c(x),k=[];function N(t){const n=bh(e,b,y,r,o,t,l);if(t.loop&&!n.slideLooper.canLoop()){return N(Object.assign({},t,{loop:!1}))}return n}function E(t,n){w||(x=c(x,t),C=u(x),k=n||k,function(){const{container:t,slides:n}=C,r=Hm(t)?e.querySelector(t):t;b=r||e.children[0];const o=Hm(n)?b.querySelectorAll(n):n;y=[].slice.call(o||b.children)}(),v=N(C),d([x,...k.map(({options:e})=>e)]).forEach(e=>s.add(e,"change",S)),C.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(L),v.eventHandler.init(L),v.resizeHandler.init(L),v.slidesHandler.init(L),v.options.loop&&v.slideLooper.loop(),b.offsetParent&&y.length&&v.dragHandler.init(L),g=i.init(L,k)))}function S(e,t){const n=_();M(),E(c({startIndex:n},e),t),l.emit("reInit")}function M(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),s.clear()}function O(e,t,n){C.active&&!w&&(v.scrollBody.useBaseFriction().useDuration(!0===t?0:C.duration),v.scrollTo.index(e,n||0))}function _(){return v.index.get()}const L={canScrollNext:function(){return v.index.add(1).get()!==_()},canScrollPrev:function(){return v.index.add(-1).get()!==_()},containerNode:function(){return b},internalEngine:function(){return v},destroy:function(){w||(w=!0,s.clear(),M(),l.emit("destroy"),l.clear())},off:p,on:f,emit:m,plugins:function(){return g},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:h,rootNode:function(){return e},scrollNext:function(e){O(v.index.add(1).get(),e,-1)},scrollPrev:function(e){O(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.offsetLocation.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:O,selectedScrollSnap:_,slideNodes:function(){return y},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return E(t,n),setTimeout(()=>l.emit("init"),0),L}function Ch(e={},t=[]){const n=l(e),r=l(t),[o,s]=a(),[c,u]=a(),d=p(()=>{o&&o.reInit(n.current,r.current)},[o]);return i(()=>{jm(n.current,e)||(n.current=e,d())},[e,d]),i(()=>{(function(e,t){if(e.length!==t.length)return!1;const n=Wm(e),r=Wm(t);return n.every((e,t)=>jm(e,r[t]))})(r.current,t)||(r.current=t,d())},[t,d]),i(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&c){xh.globalOptions=Ch.globalOptions;const e=xh(c,n.current,r.current);return s(e),()=>e.destroy()}s(void 0)},[c,s]),[u,o]}xh.globalOptions=void 0,Ch.globalOptions=void 0;const kh=r.createContext(null);function Nh(){const e=r.useContext(kh);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Eh=({ref:t,orientation:n="horizontal",opts:o,setApi:a,plugins:i,className:s,children:l,...c})=>{const[u,d]=Ch({...o,axis:"horizontal"===n?"x":"y"},i),[f,p]=r.useState(!1),[m,h]=r.useState(!1),v=r.useCallback(e=>{e&&(p(e.canScrollPrev()),h(e.canScrollNext()))},[]),g=r.useCallback(()=>{d?.scrollPrev()},[d]),b=r.useCallback(()=>{d?.scrollNext()},[d]),y=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[g,b]);return r.useEffect(()=>{d&&a&&a(d)},[d,a]),r.useEffect(()=>{if(d)return v(d),d.on("reInit",v),d.on("select",v),()=>{d?.off("select",v)}},[d,v]),e(kh.Provider,{value:{carouselRef:u,api:d,opts:o,orientation:n||("y"===o?.axis?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:f,canScrollNext:m},children:e("div",{ref:t,onKeyDownCapture:y,className:_t("relative",s),role:"region","aria-roledescription":"carousel",...c,children:l})})};Eh.displayName="Carousel";const Sh=({ref:t,className:n,...r})=>{const{carouselRef:o,orientation:a}=Nh();return e("div",{ref:o,className:"overflow-hidden",children:e("div",{ref:t,className:_t("flex","horizontal"===a?"-ml-4":"-mt-4 flex-col",n),...r})})};Sh.displayName="CarouselContent";const Mh=({ref:t,className:n,...r})=>{const{orientation:o}=Nh();return e("div",{ref:t,role:"group","aria-roledescription":"slide",className:_t("min-w-0 shrink-0 grow-0 basis-full","horizontal"===o?"pl-4":"pt-4",n),...r})};Mh.displayName="CarouselItem";const Oh=({ref:t,className:r,variant:o="outline",size:a="icon",...i})=>{const{orientation:s,scrollPrev:l,canScrollPrev:c}=Nh();return n(dd,{ref:t,variant:o,size:a,className:_t("absolute h-8 w-8 rounded-full","horizontal"===s?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",r),disabled:!c,onClick:l,...i,children:[e(_d,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Previous slide"})]})};Oh.displayName="CarouselPrevious";const _h=({ref:t,className:r,variant:o="outline",size:a="icon",...i})=>{const{orientation:s,scrollNext:l,canScrollNext:c}=Nh();return n(dd,{ref:t,variant:o,size:a,className:_t("absolute h-8 w-8 rounded-full","horizontal"===s?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",r),disabled:!c,onClick:l,...i,children:[e(Ld,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Next slide"})]})};function Lh(e){const t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ph(e){const[t,n]=r.useState(void 0);return L(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}_h.displayName="CarouselNext";var Dh="Checkbox",[Rh]=tl(Dh),[Th,Ah]=Rh(Dh);function Ih(t){const{__scopeCheckbox:n,checked:o,children:a,defaultChecked:i,disabled:s,form:l,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:p}=t,[m,h]=ll({prop:o,defaultProp:i??!1,onChange:u,caller:Dh}),[v,g]=r.useState(null),[b,y]=r.useState(null),w=r.useRef(!1),x=!v||(!!l||!!v.closest("form")),C={checked:m,disabled:s,setChecked:h,control:v,setControl:g,name:c,form:l,value:f,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:!Yh(i)&&i,isFormControl:x,bubbleInput:b,setBubbleInput:y};return e(Th,{scope:n,...C,children:$h(p)?p(C):a})}var Fh="CheckboxTrigger",jh=r.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:o,...a},i)=>{const{control:s,value:l,disabled:c,checked:u,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:v}=Ah(Fh,t),g=R(i,f),b=r.useRef(u);return r.useEffect(()=>{const e=s?.form;if(e){const t=()=>p(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[s,p]),e(ml.button,{type:"button",role:"checkbox","aria-checked":Yh(u)?"mixed":u,"aria-required":d,"data-state":qh(u),"data-disabled":c?"":void 0,disabled:c,value:l,...a,ref:g,onKeyDown:rl(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:rl(o,e=>{p(e=>!!Yh(e)||!e),v&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});jh.displayName=Fh;var Wh=r.forwardRef((r,o)=>{const{__scopeCheckbox:a,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:d,onCheckedChange:f,form:p,...m}=r;return e(Ih,{__scopeCheckbox:a,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:f,name:i,form:p,value:d,internal_do_not_use_render:({isFormControl:r})=>n(t,{children:[e(jh,{...m,ref:o,__scopeCheckbox:a}),r&&e(Vh,{__scopeCheckbox:a})]})})});Wh.displayName=Dh;var zh="CheckboxIndicator",Hh=r.forwardRef((t,n)=>{const{__scopeCheckbox:r,forceMount:o,...a}=t,i=Ah(zh,r);return e(jl,{present:o||Yh(i.checked)||!0===i.checked,children:e(ml.span,{"data-state":qh(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:n,style:{pointerEvents:"none",...t.style}})})});Hh.displayName=zh;var Bh="CheckboxBubbleInput",Vh=r.forwardRef(({__scopeCheckbox:t,...n},o)=>{const{control:a,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:l,required:c,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Ah(Bh,t),v=R(o,h),g=Lh(s),b=Ph(a);r.useEffect(()=>{const e=m;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,r=!i.current;if(g!==s&&n){const t=new Event("click",{bubbles:r});e.indeterminate=Yh(s),n.call(e,!Yh(s)&&s),e.dispatchEvent(t)}},[m,g,s,i]);const y=r.useRef(!Yh(s)&&s);return e(ml.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:c,disabled:u,name:d,value:f,form:p,...n,tabIndex:-1,ref:v,style:{...n.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function $h(e){return"function"==typeof e}function Yh(e){return"indeterminate"===e}function qh(e){return Yh(e)?"indeterminate":e?"checked":"unchecked"}Vh.displayName=Bh;const Kh=({ref:t,className:n,...r})=>e(Wh,{ref:t,className:_t("peer h-4 w-4 shrink-0 rounded-xs border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...r,children:e(Hh,{className:_t("flex items-center justify-center text-current"),children:e(Dd,{className:"h-4 w-4"})})});function Gh(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 Uh(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}Kh.displayName=Wh.displayName;const Zh=6048e5;let Xh={};function Qh(){return Xh}function Jh(e,t){const n=Qh(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Gh(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ev(e){return Jh(e,{weekStartsOn:1})}function tv(e){const t=Gh(e),n=t.getFullYear(),r=Uh(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=ev(r),a=Uh(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=ev(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function nv(e){const t=Gh(e);return t.setHours(0,0,0,0),t}function rv(e){const t=Gh(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ov(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 n=Gh(e);return!isNaN(Number(n))}const av={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 iv(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sv={date:iv({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:iv({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:iv({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function cv(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const uv={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:cv({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:cv({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:cv({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:cv({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:cv({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 dv(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const fv={ordinalNumber:function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(o.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:dv({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:dv({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:dv({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:dv({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:dv({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"})},pv={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=av[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:sv,formatRelative:(e,t,n,r)=>lv[e],localize:uv,match:fv,options:{weekStartsOn:0,firstWeekContainsDate:1}};function mv(e){const t=Gh(e),n=function(e,t){const n=nv(e),r=nv(t),o=+n-rv(n),a=+r-rv(r);return Math.round((o-a)/864e5)}(t,function(e){const t=Gh(e),n=Uh(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function hv(e){const t=Gh(e),n=+ev(t)-+function(e){const t=tv(e),n=Uh(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ev(n)}(t);return Math.round(n/Zh)+1}function vv(e,t){const n=Gh(e),r=n.getFullYear(),o=Qh(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=Uh(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Jh(i,t),l=Uh(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Jh(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function gv(e,t){const n=Gh(e),r=+Jh(n,t)-+function(e,t){const n=Qh(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=vv(e,t),a=Uh(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Jh(a,t)}(n,t);return Math.round(r/Zh)+1}function bv(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const yv={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return bv("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):bv(n+1,2)},d:(e,t)=>bv(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>bv(e.getHours()%12||12,t.length),H:(e,t)=>bv(e.getHours(),t.length),m:(e,t)=>bv(e.getMinutes(),t.length),s:(e,t)=>bv(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return bv(Math.trunc(r*Math.pow(10,n-3)),t.length)}},wv="midnight",xv="noon",Cv="morning",kv="afternoon",Nv="evening",Ev="night",Sv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return yv.y(e,t)},Y:function(e,t,n,r){const o=vv(e,r),a=o>0?o:1-o;if("YY"===t){return bv(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):bv(a,t.length)},R:function(e,t){return bv(tv(e),t.length)},u:function(e,t){return bv(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return bv(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return bv(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return yv.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return bv(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=gv(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):bv(o,t.length)},I:function(e,t,n){const r=hv(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):bv(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):yv.d(e,t)},D:function(e,t,n){const r=mv(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):bv(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return bv(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return bv(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return bv(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?xv:0===r?wv:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?Nv:r>=12?kv:r>=4?Cv:Ev,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return yv.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):yv.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):bv(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):bv(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):yv.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):yv.s(e,t)},S:function(e,t){return yv.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ov(r);case"XXXX":case"XX":return _v(r);default:return _v(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ov(r);case"xxxx":case"xx":return _v(r);default:return _v(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mv(r,":");default:return"GMT"+_v(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mv(r,":");default:return"GMT"+_v(r,":")}},t:function(e,t,n){return bv(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return bv(e.getTime(),t.length)}};function Mv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+bv(a,2)}function Ov(e,t){if(e%60==0){return(e>0?"-":"+")+bv(Math.abs(e)/60,2)}return _v(e,t)}function _v(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+bv(Math.trunc(r/60),2)+t+bv(r%60,2)}const Lv=(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"})}},Pv=(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"})}},Dv={p:Pv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Lv(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Lv(r,t)).replace("{{time}}",Pv(o,t))}},Rv=/^D+$/,Tv=/^Y+$/,Av=["D","DD","YY","YYYY"];const Iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jv=/^'([^]*?)'?$/,Wv=/''/g,zv=/[a-zA-Z]/;function Hv(e,t,n){const r=Qh(),o=r.locale??pv,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Gh(e);if(!ov(s))throw new RangeError("Invalid time value");let l=t.match(Fv).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Dv[t])(e,o.formatLong)}return e}).join("").match(Iv).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Bv(e)};if(Sv[t])return{isToken:!0,value:e};if(t.match(zv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return Tv.test(e)}(r)||function(e){return Rv.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(Av.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,Sv[r[0]])(s,r,o.localize,c)}).join("")}function Bv(e){const t=e.match(jv);return t?t[1].replace(Wv,"'"):e}var Vv=r.forwardRef((t,n)=>{const{children:r,width:o=10,height:a=5,...i}=t;return e(ml.svg,{...i,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e("polygon",{points:"0,0 30,0 15,10"})})});Vv.displayName="Arrow";var $v=Vv,Yv="Popper",[qv,Kv]=tl(Yv),[Gv,Uv]=qv(Yv),Zv=t=>{const{__scopePopper:n,children:o}=t,[a,i]=r.useState(null);return e(Gv,{scope:n,anchor:a,onAnchorChange:i,children:o})};Zv.displayName=Yv;var Xv="PopperAnchor",Qv=r.forwardRef((t,n)=>{const{__scopePopper:o,virtualRef:a,...i}=t,s=Uv(Xv,o),l=r.useRef(null),c=R(n,l),u=r.useRef(null);return r.useEffect(()=>{const e=u.current;u.current=a?.current||l.current,e!==u.current&&s.onAnchorChange(u.current)}),a?null:e(ml.div,{...i,ref:c})});Qv.displayName=Xv;var Jv="PopperContent",[eg,tg]=qv(Jv),ng=r.forwardRef((t,n)=>{const{__scopePopper:o,side:a="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=t,b=Uv(Jv,o),[y,w]=r.useState(null),x=R(n,e=>w(e)),[k,N]=r.useState(null),E=Ph(k),S=E?.width??0,M=E?.height??0,O=a+("center"!==s?"-"+s:""),P="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(d)?d:[d],T=D.length>0,A={padding:P,boundary:D.filter(ig),altBoundary:T},{refs:I,floatingStyles:F,placement:j,isPositioned:W,middlewareData:z}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);ia(p,o)||m(o);const[h,v]=r.useState(null),[g,b]=r.useState(null),y=r.useCallback(e=>{e!==N.current&&(N.current=e,v(e))},[]),w=r.useCallback(e=>{e!==E.current&&(E.current=e,b(e))},[]),x=i||h,k=s||g,N=r.useRef(null),E=r.useRef(null),S=r.useRef(d),M=null!=c,O=ca(c),_=ca(a),L=ca(u),P=r.useCallback(()=>{if(!N.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),oa(N.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==L.current};D.current&&!ia(S.current,t)&&(S.current=t,C.flushSync(()=>{f(t)}))})},[p,t,n,_,L]);aa(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const D=r.useRef(!1);aa(()=>(D.current=!0,()=>{D.current=!1}),[]),aa(()=>{if(x&&(N.current=x),k&&(E.current=k),x&&k){if(O.current)return O.current(x,k,P);P()}},[x,k,P,O,M]);const R=r.useMemo(()=>({reference:N,floating:E,setReference:y,setFloating:w}),[y,w]),T=r.useMemo(()=>({reference:x,floating:k}),[x,k]),A=r.useMemo(()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=la(T.floating,d.x),r=la(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...sa(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,T.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:P,refs:R,elements:T,floatingStyles:A}),[d,P,R,T,A])}({strategy:"fixed",placement:O,whileElementsMounted:(...e)=>Zo(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[ua({mainAxis:i+M,alignmentAxis:l}),u&&da({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?fa():void 0,...A}),u&&pa({...A}),ma({...A,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),k&&va({element:k,padding:c}),sg({arrowWidth:S,arrowHeight:M}),m&&ha({strategy:"referenceHidden",...A})]}),[H,B]=lg(j),V=_(v);L(()=>{W&&V?.()},[W,V]);const $=z.arrow?.x,Y=z.arrow?.y,q=0!==z.arrow?.centerOffset,[K,G]=r.useState();return L(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),e("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:W?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e(eg,{scope:o,placedSide:H,onArrowChange:N,arrowX:$,arrowY:Y,shouldHideArrow:q,children:e(ml.div,{"data-side":H,"data-align":B,...g,ref:x,style:{...g.style,animation:W?void 0:"none"}})})})});ng.displayName=Jv;var rg="PopperArrow",og={top:"bottom",right:"left",bottom:"top",left:"right"},ag=r.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=tg(rg,r),i=og[a.placedSide];return e("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:e($v,{...o,ref:n,style:{...o.style,display:"block"}})})});function ig(e){return null!==e}ag.displayName=rg;var sg=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=lg(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=a?u:`${d}px`,m=-s+"px"):"top"===l?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=a?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function lg(e){const[t,n="center"]=e.split("-");return[t,n]}var cg=Zv,ug=Qv,dg=ng,fg=ag,pg="Popover",[mg]=tl(pg,[Kv]),hg=Kv(),[vg,gg]=mg(pg),bg=t=>{const{__scopePopover:n,children:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!1}=t,c=hg(n),u=r.useRef(null),[d,f]=r.useState(!1),[p,m]=ll({prop:a,defaultProp:i??!1,onChange:s,caller:pg});return e(cg,{...c,children:e(vg,{scope:n,contentId:il(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:l,children:o})})};bg.displayName=pg;var yg="PopoverAnchor";r.forwardRef((t,n)=>{const{__scopePopover:o,...a}=t,i=gg(yg,o),s=hg(o),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return r.useEffect(()=>(l(),()=>c()),[l,c]),e(ug,{...s,...a,ref:n})}).displayName=yg;var wg="PopoverTrigger",xg=r.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,a=gg(wg,r),i=hg(r),s=R(n,a.triggerRef),l=e(ml.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Tg(a.open),...o,ref:s,onClick:rl(t.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:e(ug,{asChild:!0,...i,children:l})});xg.displayName=wg;var Cg="PopoverPortal",[kg,Ng]=mg(Cg,{forceMount:void 0}),Eg=t=>{const{__scopePopover:n,forceMount:r,children:o,container:a}=t,i=gg(Cg,n);return e(kg,{scope:n,forceMount:r,children:e(jl,{present:r||i.open,children:e(Fl,{asChild:!0,container:a,children:o})})})};Eg.displayName=Cg;var Sg="PopoverContent",Mg=r.forwardRef((t,n)=>{const r=Ng(Sg,t.__scopePopover),{forceMount:o=r.forceMount,...a}=t,i=gg(Sg,t.__scopePopover);return e(jl,{present:o||i.open,children:i.modal?e(_g,{...a,ref:n}):e(Lg,{...a,ref:n})})});Mg.displayName=Sg;var Og=cl("PopoverContent.RemoveScroll"),_g=r.forwardRef((t,n)=>{const o=gg(Sg,t.__scopePopover),a=r.useRef(null),i=R(n,a),s=r.useRef(!1);return r.useEffect(()=>{const e=a.current;if(e)return Ic(e)},[]),e(_c,{as:Og,allowPinchZoom:!0,children:e(Pg,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rl(t.onCloseAutoFocus,e=>{e.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:rl(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:rl(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Lg=r.forwardRef((t,n)=>{const o=gg(Sg,t.__scopePopover),a=r.useRef(!1),i=r.useRef(!1);return e(Pg,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(a.current||o.triggerRef.current?.focus(),e.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(a.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,r=o.triggerRef.current?.contains(n);r&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Pg=r.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=t,p=gg(Sg,r),m=hg(r);return Hl(),e(Ll,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:e(xl,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:e(dg,{"data-state":Tg(p.open),role:"dialog",id:p.contentId,...m,...f,ref:n,style:{...f.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)"}})})})}),Dg="PopoverClose",Rg=r.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,a=gg(Dg,r);return e(ml.button,{type:"button",...o,ref:n,onClick:rl(t.onClick,()=>a.onOpenChange(!1))})});Rg.displayName=Dg;function Tg(e){return e?"open":"closed"}r.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,a=hg(r);return e(fg,{...a,...o,ref:n})}).displayName="PopoverArrow";var Ag=Eg,Ig=Mg;const Fg=bg,jg=Rg,Wg=xg,zg=({ref:t,className:n,align:r="center",sideOffset:o=4,...a})=>e(Ag,{children:e(Ig,{ref:t,align:r,sideOffset:o,className:_t("z-50 min-w-fit rounded-md border dark:border-slate-800 bg-[hsl(var(--popover))] dark:bg-[hsl(var(--popover))] p-2 text-[hsl(var(--popover-foreground))] shadow-2xl outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...a})});function Hg({placeholder:t="Pick a date",date:o,setDate:a,icon:i=!0,className:s,...l}){const[c,u]=r.useState(!1);return n(Fg,{open:c,onOpenChange:u,children:[e(Wg,{asChild:!0,children:n(dd,{variant:"outline",className:_t("w-[280px] justify-start text-left font-normal",!o&&"text-gray-400 dark:text-gray-600",s),children:[i&&e(Pd,{className:"mr-2 h-4 w-4"}),o?Hv(o,"PPP"):e("span",{children:t})]})}),e(zg,{align:"start",className:"w-auto p-0",children:e(Lm,{...l,mode:"single",selected:o?new Date(o):void 0,onSelect:e=>{a&&a(e),u(!1)},initialFocus:!0})})]})}function Bg({className:e,date:t,setDate:n}){const[o,a]=r.useState(t);return r.useEffect(()=>{a(t)},[t]),E("div",{className:_t("grid gap-2",e),children:S(Fg,{children:[E(Wg,{asChild:!0,children:S(dd,{id:"date",variant:"outline",size:"sm",className:_t(" justify-start text-left text-xs font-normal",!t&&"text-[hsl(var(--muted-foreground))]"),children:[E(Pd,{className:"mr-2 h-4 w-4"}),t?.from?t.to?S(M,{children:[Hv(t.from,"LLL dd, y")," - ",Hv(t.to,"LLL dd, y")]}):Hv(t.from,"LLL dd, y"):E(M,{children:E("span",{children:"Pick dates (Start/End)"})})]})}),S(zg,{className:"flex flex-col items-end gap-2 w-auto ",align:"start",children:[E(Lm,{initialFocus:!0,mode:"range",defaultMonth:o?.from,selected:o,onSelect:a,numberOfMonths:2,modifiersClassNames:{start:"!after:hidden text-white !rounded-full",end:"!after:hidden text-white !rounded-full"}}),S("div",{className:"flex gap-3",children:[E(jg,{children:E(dd,{className:"w-20",variant:"secondary",size:"sm",children:"Close"})}),E(jg,{className:"flex gap-3",children:E(dd,{className:"w-20 ",onClick:()=>n?.(o),size:"sm",children:"Ok"})})]})]})]})})}function Vg({size:t=24,className:r,...o}){return n("svg",{...o,width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:_t(r,"text-slate-900 dark:text-white"),children:[e("path",{d:"M15.7128 16.7716L7.22748 8.2863C6.93757 7.99639 6.93757 7.51556 7.22748 7.22564C7.5174 6.93573 7.99823 6.93573 8.28814 7.22564L16.7734 15.7109C17.0633 16.0008 17.0633 16.4817 16.7734 16.7716C16.4835 17.0615 16.0027 17.0615 15.7128 16.7716Z",fill:"currentColor"}),e("path",{d:"M7.22658 16.7716C6.93666 16.4817 6.93666 16.0008 7.22658 15.7109L15.7119 7.22564C16.0018 6.93573 16.4826 6.93573 16.7725 7.22564C17.0624 7.51556 17.0624 7.99639 16.7725 8.2863L8.28724 16.7716C7.99732 17.0615 7.51649 17.0615 7.22658 16.7716Z",fill:"currentColor"})]})}zg.displayName="Popover";const $g=vu,Yg=gu,qg=bu,Kg=ku,Gg=({ref:t,className:n,...r})=>e(yu,{ref:t,className:_t("fixed inset-0 z-50 bg-black/50 dark:bg-black/70 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r});Gg.displayName=yu.displayName;const Ug=({ref:t,className:r,children:o,...a})=>n(qg,{children:[e(Gg,{}),n(wu,{ref:t,className:_t("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] backdrop-blur-xl gap-4 border dark:border-slate-800 bg-[hsl(var(--background))] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg text-slate-500 dark:text-white",r),...a,children:[o,n(ku,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e(Vg,{size:24,className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Close"})]})]})]});Ug.displayName=wu.displayName;const Zg=({className:t,...n})=>e("div",{className:_t("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});Zg.displayName="DialogHeader";const Xg=({className:t,...n})=>e("div",{className:_t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});Xg.displayName="DialogFooter";const Qg=({ref:t,className:n,...r})=>e(xu,{ref:t,className:_t("text-lg font-semibold leading-none tracking-tight",n),...r});Qg.displayName=xu.displayName;const Jg=({ref:t,className:n,...r})=>e(Cu,{ref:t,className:_t("text-sm text-[hsl(var(--muted-foreground))]",n),...r});function eb({open:t,children:r,defaultOpen:o,modal:a,onOpenChange:i,className:s,trigger:l=e(dd,{variant:"outline",children:"Open Modal"}),title:c,description:u,titleClass:d,footer:f,...p}){return n($g,{open:t,defaultOpen:o,modal:a,onOpenChange:i,...p,children:[e(Yg,{className:s,asChild:!0,children:l}),n(Ug,{className:"w-full sm:max-w-[425px]",children:[c||u&&n(Zg,{children:[e(Qg,{children:c}),u&&e(Jg,{children:u})]}),r,f&&e(Xg,{children:f})]})]})}Jg.displayName=Cu.displayName;var tb=Symbol.for("react.lazy"),nb=r[" use ".trim().toString()];function rb(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tb&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function ob(e){const t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(rb(n)&&"function"==typeof nb&&(n=nb(n._payload)),r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ab=Symbol("radix.slottable");function ib(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ab}var sb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=function(t){const n=ob(t),o=r.forwardRef((t,o)=>{let{children:a,...i}=t;rb(a)&&"function"==typeof nb&&(a=nb(a._payload));const s=r.Children.toArray(a),l=s.find(ib);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),a=r.forwardRef((t,r)=>{const{asChild:a,...i}=t,s=a?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...i,ref:r})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{}),lb=r.forwardRef((t,n)=>e(sb.label,{...t,ref:n,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));lb.displayName="Label";var cb=lb;const ub=cd("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),db=r.forwardRef(({className:t,...n},r)=>e(cb,{ref:r,className:_t(ub(),t),...n}));db.displayName=cb.displayName;const fb=cd("w-full",{variants:{variant:{default:"border dark:border-slate-800",error:" text-input-error-foreground border border-red-500",success:"bg-input-success text-input-success-foreground border border-green-500",warning:"bg-input-warning text-input-warning-foreground border border-yellow-500"},inputSize:{default:"h-10 px-3",sm:"h-8 rounded-md text-xs",lg:"h-11 rounded-md px-8",custom:"h-10 px-3"}},defaultVariants:{variant:"default",inputSize:"default"}}),pb=({ref:e,className:t,variant:n,inputSize:r,asChild:o=!1,placeholder:a,icon:i,...s})=>{const l=o?rd:"input";return S("div",{className:"relative flex items-center",children:[i&&E("span",{className:"absolute left-3",children:i}),E(l,{className:_t(fb({variant:n,inputSize:r,className:t}),i?"pl-10":"","rounded-lg border bg-transparent focus:outline-hidden outline-hidden text-sm px-3"),ref:e,placeholder:a&&a[0]+a?.toLowerCase().substring(1),...s,sx:{"&:focus":{borderColor:"borderColor"}}})]})};function mb({label:e,name:t,type:n="text",value:r,className:o,onChange:a,...i}){return S("div",{className:"flex flex-col gap-2",children:[E(db,{htmlFor:t,className:"text-slate-500 dark:text-white text-sm",children:e}),E(pb,{type:n,name:t,id:t,value:r,onChange:a,className:o,...i})]})}function hb({size:t=31,className:n,variant:r="primary"}){return e("span",{className:_t("animate-spin",["primary"===r&&["border-t-primary border-r-primary border-b-transparent border-l-primary","dark:border-t-white dark:border-r-white dark:border-b-transparent dark:border-l-white"],"light"===r&&["border-t-white border-r-white border-b-transparent border-l-white"],"dark"===r&&["border-t-default border-r-default border-b-transparent border-l-default"],"dark-white"===r&&["border-t-default border-r-default border-b-transparent border-l-default","dark:border-t-white dark:border-r-white dark:border-b-transparent dark:border-l-white"]],n),style:{width:`${t}px`,height:`${t}px`,borderRadius:"100%",borderWidth:"2px",borderStyle:"solid",borderImage:"initial",display:"inline-block"}})}function vb({isOpen:t,closeModal:r,children:o,title:a,titleClass:i,description:s,className:c,alignCloseIcon:u,showCloseIcon:d=!0}){const f=l(null);return e(si,{show:t,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:g,children:n(wi,{initialFocus:f,onClose:r,as:"div",className:"fixed inset-0 z-[9999] w-full h-full",children:[e("div",{style:{opacity:.3},className:"fixed inset-0 bg-black","aria-hidden":"true"}),e("div",{ref:f,className:"absolute inset-0 flex items-center justify-center p-4 w-full",children:n("div",{className:_t("flex justify-center items-center flex-col space-y-1 relative",c),children:[a&&e("h3",{className:_t(i),children:a}),s&&e("p",{children:s}),d&&e("div",{onClick:r,className:`absolute ${u?"right-2 top-3":"right-3 top-3"} md:right-2 md:top-3 cursor-pointer z-50`,children:e("svg",{width:"25",height:"25",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}),o]})})]})})}pb.displayName="Input";var gb=.999,bb=/[\\\/_+.#"@\[\(\{&]/,yb=/[\\\/_+.#"@\[\(\{&]/g,wb=/[\s-]/,xb=/[\s-]/g;function Cb(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,f=r.charAt(a),p=n.indexOf(f,o),m=0;p>=0;)(l=Cb(e,t,n,r,p+1,a+1,i))>m&&(p===o?l*=1:bb.test(e.charAt(p-1))?(l*=.8,(u=e.slice(o,p-1).match(yb))&&o>0&&(l*=Math.pow(gb,u.length))):wb.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(xb))&&o>0&&(l*=Math.pow(gb,d.length))):(l*=.17,o>0&&(l*=Math.pow(gb,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(c=Cb(e,t,n,r,p+1,a+2,i))>l&&(l=.1*c)),l>m&&(m=l),p=n.indexOf(f,p+1);return i[s]=m,m}function kb(e){return e.toLowerCase().replace(xb," ")}function Nb(e,t,n){return Cb(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,kb(e),kb(t),0,0,{})}var Eb=Symbol.for("react.lazy"),Sb=r[" use ".trim().toString()];function Mb(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Eb&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Ob(e){const t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(Mb(n)&&"function"==typeof Sb&&(n=Sb(n._payload)),r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _b=Symbol("radix.slottable");function Lb(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_b}var Pb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=function(t){const n=Ob(t),o=r.forwardRef((t,o)=>{let{children:a,...i}=t;Mb(a)&&"function"==typeof Sb&&(a=Sb(a._payload));const s=r.Children.toArray(a),l=s.find(Lb);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),a=r.forwardRef((t,r)=>{const{asChild:a,...i}=t,s=a?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...i,ref:r})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{}),Db='[cmdk-group=""]',Rb='[cmdk-group-items=""]',Tb='[cmdk-item=""]',Ab=`${Tb}:not([aria-disabled="true"])`,Ib="cmdk-item-select",Fb="data-value",jb=(e,t,n)=>Nb(e,t,n),Wb=r.createContext(void 0),zb=()=>r.useContext(Wb),Hb=r.createContext(void 0),Bb=()=>r.useContext(Hb),Vb=r.createContext(void 0),$b=r.forwardRef((e,t)=>{let n=oy(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=oy(()=>new Set),a=oy(()=>new Map),i=oy(()=>new Map),s=oy(()=>new Set),l=ny(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:h,disablePointerSelection:v=!1,vimBindings:g=!0,...b}=e,y=il(),w=il(),x=il(),C=r.useRef(null),k=sy();ry(()=>{if(void 0!==d){let e=d.trim();n.current.value=e,N.emit()}},[d]),ry(()=>{k(6,L)},[]);let N=r.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)_(),M(),k(1,O);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(x);e?e.focus():null==(o=document.getElementById(y))||o.focus()}if(k(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,N.emit()}),r||k(5,L),void 0!==(null==(a=l.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(s=(i=l.current).onValueChange)||s.call(i,e))}}N.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),E=r.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,S(t,r)),k(2,()=>{M(),N.emit()}))},item:(e,t)=>(o.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),k(3,()=>{_(),M(),n.current.value||O(),N.emit()}),()=>{i.current.delete(e),o.current.delete(e),n.current.filtered.items.delete(e);let t=P();k(4,()=>{_(),(null==t?void 0:t.getAttribute("id"))===e&&O(),N.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{i.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:x,labelId:w,listInnerRef:C}),[]);function S(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:jb;return e?a(e,n.current.search,t):0}function M(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),o=0;r.forEach(t=>{let n=e.get(t);o=Math.max(n,o)}),t.push([n,o])});let r=C.current;D().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(Rb);t?t.appendChild(e.parentElement===t?e:e.closest(`${Rb} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Rb} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=C.current)?void 0:t.querySelector(`${Db}[${Fb}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function O(){let e=D().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Fb);N.setState("value",t||void 0)}function _(){var e,t,r,s;if(!n.current.search||!1===l.current.shouldFilter)return void(n.current.filtered.count=o.current.size);n.current.filtered.groups=new Set;let c=0;for(let a of o.current){let o=S(null!=(t=null==(e=i.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(r=i.current.get(a))?void 0:r.keywords)?s:[]);n.current.filtered.items.set(a,o),o>0&&c++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function L(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(Db))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=C.current)?void 0:e.querySelector(`${Tb}[aria-selected="true"]`)}function D(){var e;return Array.from((null==(e=C.current)?void 0:e.querySelectorAll(Ab))||[])}function R(e){let t=D()[e];t&&N.setState("value",t.getAttribute(Fb))}function T(e){var t;let n=P(),r=D(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&N.setState("value",a.getAttribute(Fb))}function A(e){let t,n=P(),r=null==n?void 0:n.closest(Db);for(;r&&!t;)r=e>0?ey(r,Db):ty(r,Db),t=null==r?void 0:r.querySelector(Ab);t?N.setState("value",t.getAttribute(Fb)):T(e)}let I=()=>R(D().length-1),F=e=>{e.preventDefault(),e.metaKey?I():e.altKey?A(1):T(1)},j=e=>{e.preventDefault(),e.metaKey?R(0):e.altKey?A(-1):T(-1)};return r.createElement(Pb.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&j(e);break;case"ArrowUp":j(e);break;case"Home":e.preventDefault(),R(0);break;case"End":e.preventDefault(),I();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(Ib);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:cy},c),ly(e,e=>r.createElement(Hb.Provider,{value:N},r.createElement(Wb.Provider,{value:E},e))))}),Yb=r.forwardRef((e,t)=>{var n,o;let a=il(),i=r.useRef(null),s=r.useContext(Vb),l=zb(),c=ny(e),u=null!=(o=null==(n=c.current)?void 0:n.forceMount)?o:null==s?void 0:s.forceMount;ry(()=>{if(!u)return l.item(a,null==s?void 0:s.id)},[u]);let d=iy(a,i,[e.value,e.children,i],e.keywords),f=Bb(),p=ay(e=>e.value&&e.value===d.current),m=ay(e=>!(!u&&!1!==l.filter())||(!e.search||e.filtered.items.get(a)>0));function h(){var e,t;v(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function v(){f.setState("value",d.current,!0)}if(r.useEffect(()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Ib,h),()=>t.removeEventListener(Ib,h)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:g,value:b,onSelect:y,forceMount:w,keywords:x,...C}=e;return r.createElement(Pb.div,{ref:D(i,t),...C,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!p,"data-disabled":!!g,"data-selected":!!p,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:h},e.children)}),qb=r.forwardRef((e,t)=>{let{heading:n,children:o,forceMount:a,...i}=e,s=il(),l=r.useRef(null),c=r.useRef(null),u=il(),d=zb(),f=ay(e=>!(!a&&!1!==d.filter())||(!e.search||e.filtered.groups.has(s)));ry(()=>d.group(s),[]),iy(s,l,[e.value,e.heading,c]);let p=r.useMemo(()=>({id:s,forceMount:a}),[a]);return r.createElement(Pb.div,{ref:D(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ly(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},r.createElement(Vb.Provider,{value:p},e))))}),Kb=r.forwardRef((e,t)=>{let{alwaysRender:n,...o}=e,a=r.useRef(null),i=ay(e=>!e.search);return n||i?r.createElement(Pb.div,{ref:D(a,t),...o,"cmdk-separator":"",role:"separator"}):null}),Gb=r.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,a=null!=e.value,i=Bb(),s=ay(e=>e.search),l=ay(e=>e.selectedItemId),c=zb();return r.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),r.createElement(Pb.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||i.setState("search",e.target.value),null==n||n(e.target.value)}})}),Ub=r.forwardRef((e,t)=>{let{children:n,label:o="Suggestions",...a}=e,i=r.useRef(null),s=r.useRef(null),l=ay(e=>e.selectedItemId),c=zb();return r.useEffect(()=>{if(s.current&&i.current){let e,t=s.current,n=i.current,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}},[]),r.createElement(Pb.div,{ref:D(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:c.listId},ly(e,e=>r.createElement("div",{ref:D(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),Zb=r.forwardRef((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:a,contentClassName:i,container:s,...l}=e;return r.createElement(vu,{open:n,onOpenChange:o},r.createElement(bu,{container:s},r.createElement(yu,{"cmdk-overlay":"",className:a}),r.createElement(wu,{"aria-label":e.label,"cmdk-dialog":"",className:i},r.createElement($b,{ref:t,...l}))))}),Xb=r.forwardRef((e,t)=>ay(e=>0===e.filtered.count)?r.createElement(Pb.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Qb=r.forwardRef((e,t)=>{let{progress:n,children:o,label:a="Loading...",...i}=e;return r.createElement(Pb.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},ly(e,e=>r.createElement("div",{"aria-hidden":!0},e)))}),Jb=Object.assign($b,{List:Ub,Item:Yb,Input:Gb,Group:qb,Separator:Kb,Dialog:Zb,Empty:Xb,Loading:Qb});function ey(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function ty(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ny(e){let t=r.useRef(e);return ry(()=>{t.current=e}),t}var ry="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function oy(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function ay(e){let t=Bb(),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function iy(e,t,n,o=[]){let a=r.useRef(),i=zb();return ry(()=>{var r;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=o.map(e=>e.trim());i.value(e,s,l),null==(r=t.current)||r.setAttribute(Fb,s),a.current=s}),a}var sy=()=>{let[e,t]=r.useState(),n=oy(()=>new Map);return ry(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function ly({asChild:e,children:t},n){return e&&r.isValidElement(t)?r.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var cy={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const uy=r.forwardRef(({className:t,...n},r)=>e(Jb,{ref:r,className:_t("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...n}));uy.displayName=Jb.displayName;const dy=({children:t,...n})=>e($g,{...n,children:e(Ug,{className:"overflow-hidden p-0",children:e(uy,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})}),fy=r.forwardRef(({className:t,...r},o)=>n("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e(Hd,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e(Jb.Input,{ref:o,className:_t("flex h-8 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...r})]}));fy.displayName=Jb.Input.displayName;const py=r.forwardRef(({className:t,...n},r)=>e(Jb.List,{ref:r,className:_t("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...n}));py.displayName=Jb.List.displayName;const my=r.forwardRef((t,n)=>e(Jb.Empty,{ref:n,className:"py-2 text-center text-sm",...t}));my.displayName=Jb.Empty.displayName;const hy=r.forwardRef(({className:t,...n},r)=>e(Jb.Group,{ref:r,className:_t("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...n}));hy.displayName=Jb.Group.displayName;const vy=r.forwardRef(({className:t,...n},r)=>e(Jb.Separator,{ref:r,className:_t("-mx-1 h-px bg-border",t),...n}));vy.displayName=Jb.Separator.displayName;const gy=r.forwardRef(({className:t,...n},r)=>e(Jb.Item,{ref:r,className:_t("relative flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...n}));gy.displayName=Jb.Item.displayName;const by=({className:t,...n})=>e("span",{className:_t("ml-auto text-xs tracking-widest text-muted-foreground",t),...n});by.displayName="CommandShortcut";const yy=d(null);function wy({children:t,values:n,defaultValues:r,onValuesChange:o}){const[i,s]=a(!1),[l,c]=a(new Set(n??r)),u=n?new Set(n):l,[d,f]=a(new Map);const m=p((e,t)=>{f(n=>n.get(e)===t?n:new Map(n).set(e,t))},[]);return e(yy.Provider,{value:{open:i,setOpen:s,selectedValues:u,toggleValue:function(e){const t=t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n};c(t),o?.([...t(u)])},items:d,onItemAdded:m},children:e(Fg,{open:i,onOpenChange:s,modal:!0,children:t})})}function xy({className:t,children:r,...o}){const{open:a}=My();return e(Wg,{asChild:!0,children:n(dd,{...o,variant:o.variant??"outline",role:o.role??"combobox","aria-expanded":o["aria-expanded"]??a,className:_t("flex h-auto min-h-9 w-fit items-center justify-between gap-2 overflow-hidden rounded-md border border-input bg-transparent px-3 py-1.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t),children:[r,e(Rd,{className:"h-4 w-4 opacity-50 transition-transform duration-200 ease-in-out data-[state=open]:rotate-180"})]})})}function Cy({placeholder:t,clickToRemove:r=!0,className:o,overflowBehavior:i="wrap-when-open",...s}){const{selectedValues:c,toggleValue:u,items:d,open:f}=My(),[m,h]=a(0),v=l(null),g=l(null),b="wrap"===i||"wrap-when-open"===i&&f,y=p(()=>{if(null==v.current)return;const e=v.current,t=g.current,n=e.querySelectorAll("[data-selected-item]");null!=t&&(t.style.display="none"),n.forEach(e=>e.style.removeProperty("display"));let r=0;for(let o=n.length-1;o>=0;o--){const a=n[o];if(e.scrollWidth<=e.clientWidth)break;r=n.length-o,a.style.display="none",t?.style.removeProperty("display")}h(r)},[]),w=p(e=>{v.current=e;const t=new MutationObserver(y),n=new ResizeObserver(function(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}(y,100));return t.observe(e,{childList:!0,attributes:!0,attributeFilter:["class","style"]}),n.observe(e),()=>{n.disconnect(),t.disconnect(),v.current=null}},[y]);return 0===c.size&&t?e("span",{className:"min-w-0 overflow-hidden font-normal text-gray-400 dark:text-gray-600",children:t}):n("div",{...s,ref:w,className:_t("flex w-full gap-1.5 overflow-hidden",b&&"h-full flex-wrap",o),children:[[...c].filter(e=>d.has(e)).map(t=>n(Nd,{variant:"outline","data-selected-item":!0,className:"group flex items-center gap-1",onClick:r?e=>{e.stopPropagation(),u(t)}:void 0,children:[d.get(t),r&&e(Bd,{className:"size-2 text-muted-foreground group-hover:text-destructive"})]},t)),e("div",{ref:g,style:{display:m>0&&!b?"inline-flex":"none"},children:n(Nd,{variant:"outline",children:["+",m]})})]})}function ky({search:r=!0,children:o,...a}){const i="object"==typeof r||r;return n(t,{children:[e("div",{style:{display:"none"},children:e(uy,{children:e(py,{children:o})})}),e(zg,{className:"min-w-fit p-0",children:n(uy,{...a,children:[i?e(fy,{placeholder:"object"==typeof r?r.placeholder:void 0}):e("button",{autoFocus:!0,className:"sr-only"}),n(py,{children:[i&&e(my,{children:"object"==typeof r?r.emptyMessage:void 0}),o]})]})})]})}function Ny({value:t,children:r,badgeLabel:o,onSelect:a,...s}){const{toggleValue:l,selectedValues:c,onItemAdded:u}=My(),d=c.has(t);return i(()=>{u(t,o??r)},[t,r,u,o]),n(gy,{...s,onSelect:()=>{l(t),a?.(t)},children:[e(Dd,{className:_t("mr-2 size-4",d?"opacity-100":"opacity-0")}),r]})}function Ey(t){return e(hy,{...t})}function Sy(t){return e(vy,{...t})}function My(){const e=u(yy);if(null==e)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return e}function Oy(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var _y=Symbol.for("react.lazy"),Ly=r[" use ".trim().toString()];function Py(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===_y&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Dy(e){const t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(Py(n)&&"function"==typeof Ly&&(n=Ly(n._payload)),r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?D(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ry=Symbol("radix.slottable");function Ty(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ry}var Ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=function(t){const n=Dy(t),o=r.forwardRef((t,o)=>{let{children:a,...i}=t;Py(a)&&"function"==typeof Ly&&(a=Ly(a._payload));const s=r.Children.toArray(a),l=s.find(Ty);if(l){const t=l.props.children,a=s.map(e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e);return e(n,{...i,ref:o,children:r.isValidElement(t)?r.cloneElement(t,void 0,a):null})}return e(n,{...i,ref:o,children:a})});return o.displayName=`${t}.Slot`,o}(`Primitive.${n}`),a=r.forwardRef((t,r)=>{const{asChild:a,...i}=t,s=a?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(s,{...i,ref:r})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{}),Iy="Progress",[Fy]=function(t,n=[]){let o=[];const a=()=>{const e=o.map(e=>r.createContext(e));return function(n){const o=n?.[t]||e;return r.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return a.scopeName=t,[function(n,a){const i=r.createContext(a);i.displayName=n+"Context";const s=o.length;o=[...o,a];const l=n=>{const{scope:o,children:a,...l}=n,c=o?.[t]?.[s]||i,u=r.useMemo(()=>l,Object.values(l));return e(c.Provider,{value:u,children:a})};return l.displayName=n+"Provider",[l,function(e,o){const l=o?.[t]?.[s]||i,c=r.useContext(l);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},Oy(a,...n)]}(Iy),[jy,Wy]=Fy(Iy),zy=r.forwardRef((t,n)=>{const{__scopeProgress:r,value:o=null,max:a,getValueLabel:i=Vy,...s}=t;(a||0===a)&&qy(a);const l=qy(a)?a:100;null!==o&&Ky(o,l);const c=Ky(o,l)?o:null,u=Yy(c)?i(c,l):void 0;return e(jy,{scope:r,value:c,max:l,children:e(Ay.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Yy(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":$y(c,l),"data-value":c??void 0,"data-max":l,...s,ref:n})})});zy.displayName=Iy;var Hy="ProgressIndicator",By=r.forwardRef((t,n)=>{const{__scopeProgress:r,...o}=t,a=Wy(Hy,r);return e(Ay.div,{"data-state":$y(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:n})});function Vy(e,t){return`${Math.round(e/t*100)}%`}function $y(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function Yy(e){return"number"==typeof e}function qy(e){return Yy(e)&&!isNaN(e)&&e>0}function Ky(e,t){return Yy(e)&&!isNaN(e)&&e<=t&&e>=0}By.displayName=Hy;var Gy=zy,Uy=By;const Zy=({ref:e,className:t,value:n,...r})=>E(Gy,{ref:e,className:_t("relative h-3 w-full overflow-hidden rounded-full bg-[hsl(var(--secondary))]/70",t),...r,children:E(Uy,{className:_t("h-full w-full flex-1 transition-all bg-gradient-to-br from-primaryColor to-secondaryColor"),style:{transform:`translateX(-${100-(n||0)}%)`},sx:{background:"mainColor"}})});function Xy(e,[t,n]){return Math.min(n,Math.max(t,e))}function Qy(t){const n=t+"CollectionProvider",[r,a]=tl(n),[i,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,a=o.useRef(null),s=o.useRef(new Map).current;return e(i,{scope:n,itemMap:s,collectionRef:a,children:r})};l.displayName=n;const c=t+"CollectionSlot",u=cl(c),d=o.forwardRef((t,n)=>{const{scope:r,children:o}=t,a=R(n,s(c,r).collectionRef);return e(u,{ref:a,children:o})});d.displayName=c;const f=t+"CollectionItemSlot",p="data-radix-collection-item",m=cl(f),h=o.forwardRef((t,n)=>{const{scope:r,children:a,...i}=t,l=o.useRef(null),c=R(n,l),u=s(f,r);return o.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),e(m,{[p]:"",ref:c,children:a})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(e){const n=s(t+"CollectionConsumer",e),r=o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},a]}Zy.displayName="Progress";var Jy=r.createContext(void 0);function ew(e){const t=r.useContext(Jy);return e||t||"ltr"}var tw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nw=r.forwardRef((t,n)=>e(ml.span,{...t,ref:n,style:{...tw,...t.style}}));nw.displayName="VisuallyHidden";var rw=nw,ow=[" ","Enter","ArrowUp","ArrowDown"],aw=[" ","Enter"],iw="Select",[sw,lw,cw]=Qy(iw),[uw]=tl(iw,[cw,Kv]),dw=Kv(),[fw,pw]=uw(iw),[mw,hw]=uw(iw),vw=t=>{const{__scopeSelect:o,children:a,open:i,defaultOpen:s,onOpenChange:l,value:c,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:m,disabled:h,required:v,form:g}=t,b=dw(o),[y,w]=r.useState(null),[x,C]=r.useState(null),[k,N]=r.useState(!1),E=ew(f),[S,M]=ll({prop:i,defaultProp:s??!1,onChange:l,caller:iw}),[O,_]=ll({prop:c,defaultProp:u,onChange:d,caller:iw}),L=r.useRef(null),P=!y||(g||!!y.closest("form")),[D,R]=r.useState(new Set),T=Array.from(D).map(e=>e.props.value).join(";");return e(cg,{...b,children:n(fw,{required:v,scope:o,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:k,onValueNodeHasChildrenChange:N,contentId:il(),value:O,onValueChange:_,open:S,onOpenChange:M,dir:E,triggerPointerDownPosRef:L,disabled:h,children:[e(sw.Provider,{scope:o,children:e(mw,{scope:t.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{R(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{R(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:a})}),P?n(rx,{"aria-hidden":!0,required:v,tabIndex:-1,name:p,autoComplete:m,value:O,onChange:e=>_(e.target.value),disabled:h,form:g,children:[void 0===O?e("option",{value:""}):null,Array.from(D)]},T):null]})})};vw.displayName=iw;var gw="SelectTrigger",bw=r.forwardRef((t,n)=>{const{__scopeSelect:o,disabled:a=!1,...i}=t,s=dw(o),l=pw(gw,o),c=l.disabled||a,u=R(n,l.onTriggerChange),d=lw(o),f=r.useRef("touch"),[p,m,h]=ax(e=>{const t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=ix(t,e,n);void 0!==r&&l.onValueChange(r.value)}),v=e=>{c||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return e(ug,{asChild:!0,...s,children:e(ml.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ox(l.value)?"":void 0,...i,ref:u,onClick:rl(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&v(e)}),onPointerDown:rl(i.onPointerDown,e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:rl(i.onKeyDown,e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||ow.includes(e.key)&&(v(),e.preventDefault())})})})});bw.displayName=gw;var yw="SelectValue",ww=r.forwardRef((n,r)=>{const{__scopeSelect:o,className:a,style:i,children:s,placeholder:l="",...c}=n,u=pw(yw,o),{onValueNodeHasChildrenChange:d}=u,f=void 0!==s,p=R(r,u.onValueNodeChange);return L(()=>{d(f)},[d,f]),e(ml.span,{...c,ref:p,style:{pointerEvents:"none"},children:ox(u.value)?e(t,{children:l}):s})});ww.displayName=yw;var xw=r.forwardRef((t,n)=>{const{__scopeSelect:r,children:o,...a}=t;return e(ml.span,{"aria-hidden":!0,...a,ref:n,children:o||"▼"})});xw.displayName="SelectIcon";var Cw=t=>e(Fl,{asChild:!0,...t});Cw.displayName="SelectPortal";var kw="SelectContent",Nw=r.forwardRef((t,n)=>{const o=pw(kw,t.__scopeSelect),[a,i]=r.useState();if(L(()=>{i(new DocumentFragment)},[]),!o.open){const n=a;return n?C.createPortal(e(Sw,{scope:t.__scopeSelect,children:e(sw.Slot,{scope:t.__scopeSelect,children:e("div",{children:t.children})})}),n):null}return e(_w,{...t,ref:n})});Nw.displayName=kw;var Ew=10,[Sw,Mw]=uw(kw),Ow=cl("SelectContent.RemoveScroll"),_w=r.forwardRef((t,n)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b,...y}=t,w=pw(kw,o),[x,C]=r.useState(null),[k,N]=r.useState(null),E=R(n,e=>C(e)),[S,M]=r.useState(null),[O,_]=r.useState(null),L=lw(o),[P,D]=r.useState(!1),T=r.useRef(!1);r.useEffect(()=>{if(x)return Ic(x)},[x]),Hl();const A=r.useCallback(e=>{const[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),n?.focus(),document.activeElement!==o)return}},[L,k]),I=r.useCallback(()=>A([S,x]),[A,S,x]);r.useEffect(()=>{P&&I()},[P,I]);const{onOpenChange:F,triggerPointerDownPosRef:j}=w;r.useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(j.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(j.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),j.current=null};return null!==j.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[x,F,j]),r.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[W,z]=ax(e=>{const t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=ix(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),H=r.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==w.value&&w.value===t||r)&&(M(e),r&&(T.current=!0))},[w.value]),B=r.useCallback(()=>x?.focus(),[x]),V=r.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==w.value&&w.value===t||r)&&_(e)},[w.value]),$="popper"===a?Pw:Lw,Y=$===Pw?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return e(Sw,{scope:o,content:x,viewport:k,onViewportChange:N,itemRefCallback:H,selectedItem:S,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:I,selectedItemText:O,position:a,isPositioned:P,searchRef:W,children:e(_c,{as:Ow,allowPinchZoom:!0,children:e(Ll,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:rl(i,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:e(xl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e($,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...y,...Y,onPlaced:()=>D(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:rl(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});_w.displayName="SelectContentImpl";var Lw=r.forwardRef((t,n)=>{const{__scopeSelect:o,onPlaced:a,...i}=t,s=pw(kw,o),l=Mw(kw,o),[c,u]=r.useState(null),[d,f]=r.useState(null),p=R(n,e=>f(e)),m=lw(o),h=r.useRef(!1),v=r.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=l,x=r.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&g&&b&&y){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,a=n.left-o,i=e.left-a,s=e.width+i,l=Math.max(s,t.width),u=window.innerWidth-Ew,d=Xy(a,[Ew,Math.max(Ew,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const o=t.right-r.right,a=window.innerWidth-n.right-o,i=window.innerWidth-e.right-a,s=e.width+i,l=Math.max(s,t.width),u=window.innerWidth-Ew,d=Xy(a,[Ew,Math.max(Ew,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const o=m(),i=window.innerHeight-2*Ew,l=g.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),v=parseInt(u.borderBottomWidth,10),w=f+p+l+parseInt(u.paddingBottom,10)+v,x=Math.min(5*b.offsetHeight,w),C=window.getComputedStyle(g),k=parseInt(C.paddingTop,10),N=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Ew,S=i-E,M=b.offsetHeight/2,O=f+p+(b.offsetTop+M),_=w-O;if(O<=E){const e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-g.offsetTop-g.offsetHeight,n=O+Math.max(S,M+(e?N:0)+t+v);c.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;c.style.top="0px";const t=Math.max(E,f+g.offsetTop+(e?k:0)+M)+_;c.style.height=t+"px",g.scrollTop=O-E+g.offsetTop}c.style.margin=`${Ew}px 0`,c.style.minHeight=x+"px",c.style.maxHeight=i+"px",a?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,c,d,g,b,y,s.dir,a]);L(()=>x(),[x]);const[C,k]=r.useState();L(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const N=r.useCallback(e=>{e&&!0===v.current&&(x(),w?.(),v.current=!1)},[x,w]);return e(Dw,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:e("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:e(ml.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Lw.displayName="SelectItemAlignedPosition";var Pw=r.forwardRef((t,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=Ew,...i}=t,s=dw(r);return e(dg,{...s,...i,ref:n,align:o,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Pw.displayName="SelectPopperPosition";var[Dw,Rw]=uw(kw,{}),Tw="SelectViewport",Aw=r.forwardRef((o,a)=>{const{__scopeSelect:i,nonce:s,...l}=o,c=Mw(Tw,i),u=Rw(Tw,i),d=R(a,c.onViewportChange),f=r.useRef(0);return n(t,{children:[e("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),e(sw.Slot,{scope:i,children:e(ml.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:rl(l.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(r?.current&&n){const e=Math.abs(f.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Ew,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});Aw.displayName=Tw;var Iw="SelectGroup",[Fw,jw]=uw(Iw),Ww=r.forwardRef((t,n)=>{const{__scopeSelect:r,...o}=t,a=il();return e(Fw,{scope:r,id:a,children:e(ml.div,{role:"group","aria-labelledby":a,...o,ref:n})})});Ww.displayName=Iw;var zw="SelectLabel",Hw=r.forwardRef((t,n)=>{const{__scopeSelect:r,...o}=t,a=jw(zw,r);return e(ml.div,{id:a.id,...o,ref:n})});Hw.displayName=zw;var Bw="SelectItem",[Vw,$w]=uw(Bw),Yw=r.forwardRef((t,n)=>{const{__scopeSelect:o,value:a,disabled:i=!1,textValue:s,...l}=t,c=pw(Bw,o),u=Mw(Bw,o),d=c.value===a,[f,p]=r.useState(s??""),[m,h]=r.useState(!1),v=R(n,e=>u.itemRefCallback?.(e,a,i)),g=il(),b=r.useRef("touch"),y=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e(Vw,{scope:o,value:a,disabled:i,textId:g,isSelected:d,onItemTextChange:r.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:e(sw.ItemSlot,{scope:o,value:a,disabled:i,textValue:f,children:e(ml.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:v,onFocus:rl(l.onFocus,()=>h(!0)),onBlur:rl(l.onBlur,()=>h(!1)),onClick:rl(l.onClick,()=>{"mouse"!==b.current&&y()}),onPointerUp:rl(l.onPointerUp,()=>{"mouse"===b.current&&y()}),onPointerDown:rl(l.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:rl(l.onPointerMove,e=>{b.current=e.pointerType,i?u.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:rl(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:rl(l.onKeyDown,e=>{""!==u.searchRef?.current&&" "===e.key||(aw.includes(e.key)&&y()," "===e.key&&e.preventDefault())})})})})});Yw.displayName=Bw;var qw="SelectItemText",Kw=r.forwardRef((o,a)=>{const{__scopeSelect:i,className:s,style:l,...c}=o,u=pw(qw,i),d=Mw(qw,i),f=$w(qw,i),p=hw(qw,i),[m,h]=r.useState(null),v=R(a,e=>h(e),f.onItemTextChange,e=>d.itemTextRefCallback?.(e,f.value,f.disabled)),g=m?.textContent,b=r.useMemo(()=>e("option",{value:f.value,disabled:f.disabled,children:g},f.value),[f.disabled,f.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=p;return L(()=>(y(b),()=>w(b)),[y,w,b]),n(t,{children:[e(ml.span,{id:f.textId,...c,ref:v}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?C.createPortal(c.children,u.valueNode):null]})});Kw.displayName=qw;var Gw="SelectItemIndicator",Uw=r.forwardRef((t,n)=>{const{__scopeSelect:r,...o}=t;return $w(Gw,r).isSelected?e(ml.span,{"aria-hidden":!0,...o,ref:n}):null});Uw.displayName=Gw;var Zw="SelectScrollUpButton",Xw=r.forwardRef((t,n)=>{const o=Mw(Zw,t.__scopeSelect),a=Rw(Zw,t.__scopeSelect),[i,s]=r.useState(!1),l=R(n,a.onScrollButtonChange);return L(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),i?e(ex,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Xw.displayName=Zw;var Qw="SelectScrollDownButton",Jw=r.forwardRef((t,n)=>{const o=Mw(Qw,t.__scopeSelect),a=Rw(Qw,t.__scopeSelect),[i,s]=r.useState(!1),l=R(n,a.onScrollButtonChange);return L(()=>{if(o.viewport&&o.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),i?e(ex,{...t,ref:l,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Jw.displayName=Qw;var ex=r.forwardRef((t,n)=>{const{__scopeSelect:o,onAutoScroll:a,...i}=t,s=Mw("SelectScrollButton",o),l=r.useRef(null),c=lw(o),u=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),L(()=>{const e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),e(ml.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:rl(i.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(a,50))}),onPointerMove:rl(i.onPointerMove,()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(a,50))}),onPointerLeave:rl(i.onPointerLeave,()=>{u()})})}),tx=r.forwardRef((t,n)=>{const{__scopeSelect:r,...o}=t;return e(ml.div,{"aria-hidden":!0,...o,ref:n})});tx.displayName="SelectSeparator";var nx="SelectArrow";r.forwardRef((t,n)=>{const{__scopeSelect:r,...o}=t,a=dw(r),i=pw(nx,r),s=Mw(nx,r);return i.open&&"popper"===s.position?e(fg,{...a,...o,ref:n}):null}).displayName=nx;var rx=r.forwardRef(({__scopeSelect:t,value:n,...o},a)=>{const i=r.useRef(null),s=R(a,i),l=Lh(n);return r.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[l,n]),e(ml.select,{...o,style:{...tw,...o.style},ref:s,defaultValue:n})});function ox(e){return""===e||void 0===e}function ax(e){const t=_(e),n=r.useRef(""),o=r.useRef(0),a=r.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),i=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,a,i]}function ix(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}rx.displayName="SelectBubbleInput";var sx=bw,lx=xw,cx=Cw,ux=Nw,dx=Aw,fx=Hw,px=Yw,mx=Kw,hx=Uw,vx=Xw,gx=Jw,bx=tx;const yx=vw,wx=Ww,xx=ww,Cx=({ref:e,className:t,children:n,loading:r=!1,onClear:o,...a})=>S(sx,{ref:e,className:_t("group flex h-10 w-full items-center justify-between rounded-md border dark:border-black p-2 text-sm placeholder:text-muted-foreground focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 text-gray-500 bg-transparent dark:bg-popover border-input ",t),sx:{"&:focus":{borderColor:"borderColor"}},...a,children:[n,E(lx,{asChild:!0,children:S("div",{className:"flex w-9 justify-end gap-1 items-center",children:[r&&E(jd,{className:"h-4 w-4 opacity-50 animate-spin"}),E(Rd,{className:"h-4 w-4 opacity-50 transition-transform duration-200 ease-in-out data-[state=open]:rotate-180"})]})})]});Cx.displayName=sx.displayName;const kx=({ref:e,className:t,...n})=>E(vx,{ref:e,className:_t("flex cursor-default items-center justify-center py-1",t),...n,children:E(Id,{className:"h-4 w-4"})});kx.displayName=vx.displayName;const Nx=({ref:e,className:t,...n})=>E(gx,{ref:e,className:_t("flex cursor-default items-center justify-center py-1",t),...n,children:E(Rd,{className:"h-4 w-4"})});Nx.displayName=gx.displayName;const Ex=({ref:e,className:t,children:n,position:r="popper",...o})=>E(cx,{children:S(ux,{ref:e,className:_t("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md bg-[hsl(var(--popover))] dark:bg-[hsl(var(--popover))] text-[hsl(var(--popover-foreground))] shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...o,children:[E(kx,{}),E(dx,{className:_t("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),E(Nx,{})]})});Ex.displayName=ux.displayName;const Sx=({ref:e,className:t,...n})=>E(fx,{ref:e,className:_t("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n});Sx.displayName=fx.displayName;const Mx=({ref:e,className:t,children:n,...r})=>S(px,{ref:e,className:_t("relative truncate flex w-full cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[E("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:E(hx,{children:E(Dd,{className:"h-4 w-4"})})}),E(mx,{className:"truncate",children:n})]});Mx.displayName=px.displayName;const Ox=({ref:e,className:t,...n})=>E(bx,{ref:e,className:_t("-mx-1 my-1 h-px bg-muted",t),...n});Ox.displayName=bx.displayName;const _x=cd("border dark:border-slate-800",{variants:{size:{default:"h-10 px-4 py-2",sm:"h-8 text-xs",lg:"h-11 rounded-md px-8"}},defaultVariants:{size:"default"}}),Lx=({className:t,size:r,placeholder:a,values:i,onValueChange:s,value:l,defaultValue:c,loading:u,search:d=!1,onClear:f,...p})=>{const[,m]=o.useState(!1);return n(yx,{onValueChange:s,defaultValue:c,value:l,...p,children:[e(Cx,{onClear:f,loading:u,className:_t(_x({size:r,className:t})),children:e(xx,{className:"truncate",placeholder:a})}),i&&i[0]?n(Ex,{children:[d&&n(uy,{children:[e(fy,{placeholder:"Search..."}),n(py,{children:[e(my,{children:e("p",{className:"text-sm opacity-40",children:"No item found"})}),e(hy,{children:i.map(t=>e(gy,{value:t.value,onSelect:()=>{m(!1)},children:e(Mx,{className:"truncate",value:t.value,children:n("div",{className:"flex items-center justify-center gap-2",children:[t.icon&&e("span",{children:t.icon}),e("span",{children:t.label})]})},t.value)},t.value))})]})]}),!d&&i.map(t=>e(Mx,{value:t.value,children:n("div",{className:"flex gap-2",children:[t.icon&&e("span",{children:t.icon}),e("span",{children:t.label})]})},t.value))]}):e(Ex,{children:e("p",{className:"p-2 text-sm opacity-40 m-0",children:"No item found"})})]})};var Px="Switch",[Dx]=tl(Px),[Rx,Tx]=Dx(Px),Ax=r.forwardRef((t,o)=>{const{__scopeSwitch:a,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:f,form:p,...m}=t,[h,v]=r.useState(null),g=R(o,e=>v(e)),b=r.useRef(!1),y=!h||(p||!!h.closest("form")),[w,x]=ll({prop:s,defaultProp:l??!1,onChange:f,caller:Px});return n(Rx,{scope:a,checked:w,disabled:u,children:[e(ml.button,{type:"button",role:"switch","aria-checked":w,"aria-required":c,"data-state":Wx(w),"data-disabled":u?"":void 0,disabled:u,value:d,...m,ref:g,onClick:rl(t.onClick,e=>{x(e=>!e),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),y&&e(jx,{control:h,bubbles:!b.current,name:i,value:d,checked:w,required:c,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});Ax.displayName=Px;var Ix="SwitchThumb",Fx=r.forwardRef((t,n)=>{const{__scopeSwitch:r,...o}=t,a=Tx(Ix,r);return e(ml.span,{"data-state":Wx(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})});Fx.displayName=Ix;var jx=r.forwardRef(({__scopeSwitch:t,control:n,checked:o,bubbles:a=!0,...i},s)=>{const l=r.useRef(null),c=R(l,s),u=Lh(o),d=Ph(n);return r.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==o&&n){const t=new Event("click",{bubbles:a});n.call(e,o),e.dispatchEvent(t)}},[u,o,a]),e("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:c,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Wx(e){return e?"checked":"unchecked"}jx.displayName="SwitchBubbleInput";var zx=Ax,Hx=Fx;const Bx=({ref:t,className:n,...r})=>e(zx,{className:_t("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[hsl(var(--primary))] data-[state=unchecked]:bg-input",n),...r,ref:t,children:e(Hx,{className:_t("pointer-events-none block h-4 w-4 rounded-full bg-[hsl(var(--background))] shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})});Bx.displayName=zx.displayName;const Vx=({ref:t,className:n,...r})=>e("div",{className:"relative w-full overflow-auto",children:e("table",{ref:t,className:_t("w-full caption-bottom text-sm",n),...r})});Vx.displayName="Table";const $x=({ref:t,className:n,...r})=>e("thead",{ref:t,className:_t("[&_tr]:border-b",n),...r});$x.displayName="TableHeader";const Yx=({ref:t,className:n,...r})=>e("tbody",{ref:t,className:_t("[&_tr:last-child]:border-0",n),...r});Yx.displayName="TableBody";const qx=({ref:t,className:n,...r})=>e("tfoot",{ref:t,className:_t("border-t bg-slate-100/50 font-medium [&>tr]:last:border-b-0 dark:bg-slate-800/50",n),...r});qx.displayName="TableFooter";const Kx=({ref:t,className:n,...r})=>e("tr",{ref:t,className:_t("border-b transition-colors hover:bg-slate-100/50 data-[state=selected]:bg-slate-100 dark:hover:bg-slate-800/50 dark:data-[state=selected]:bg-slate-800",n),...r});Kx.displayName="TableRow";const Gx=({ref:t,className:n,...r})=>e("th",{ref:t,className:_t("h-12 px-4 text-left align-middle font-medium text-slate-500 [&:has([role=checkbox])]:pr-0 dark:text-slate-400",n),...r});Gx.displayName="TableHead";const Ux=({ref:t,className:n,...r})=>e("td",{ref:t,className:_t("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...r});Ux.displayName="TableCell";const Zx=({ref:t,className:n,...r})=>e("caption",{ref:t,className:_t("mt-4 text-sm text-slate-500 dark:text-slate-400",n),...r});Zx.displayName="TableCaption";var Xx="rovingFocusGroup.onEntryFocus",Qx={bubbles:!1,cancelable:!0},Jx="RovingFocusGroup",[eC,tC,nC]=Qy(Jx),[rC,oC]=tl(Jx,[nC]),[aC,iC]=rC(Jx),sC=r.forwardRef((t,n)=>e(eC.Provider,{scope:t.__scopeRovingFocusGroup,children:e(eC.Slot,{scope:t.__scopeRovingFocusGroup,children:e(lC,{...t,ref:n})})}));sC.displayName=Jx;var lC=r.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:o,orientation:a,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=t,m=r.useRef(null),h=R(n,m),v=ew(s),[g,b]=ll({prop:l,defaultProp:c??null,onChange:u,caller:Jx}),[y,w]=r.useState(!1),x=_(d),C=tC(o),k=r.useRef(!1),[N,E]=r.useState(0);return r.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(Xx,x),()=>e.removeEventListener(Xx,x)},[x]),e(aC,{scope:o,orientation:a,dir:v,loop:i,currentTabStopId:g,onItemFocus:r.useCallback(e=>b(e),[b]),onItemShiftTab:r.useCallback(()=>w(!0),[]),onFocusableItemAdd:r.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>E(e=>e-1),[]),children:e(ml.div,{tabIndex:y||0===N?-1:0,"data-orientation":a,...p,ref:h,style:{outline:"none",...t.style},onMouseDown:rl(t.onMouseDown,()=>{k.current=!0}),onFocus:rl(t.onFocus,e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(Xx,Qx);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter(e=>e.focusable);fC([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),f)}}k.current=!1}),onBlur:rl(t.onBlur,()=>w(!1))})})}),cC="RovingFocusGroupItem",uC=r.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:o,focusable:a=!0,active:i=!1,tabStopId:s,children:l,...c}=t,u=il(),d=s||u,f=iC(cC,o),p=f.currentTabStopId===d,m=tC(o),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:g}=f;return r.useEffect(()=>{if(a)return h(),()=>v()},[a,h,v]),e(eC.ItemSlot,{scope:o,id:d,focusable:a,active:i,children:e(ml.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:rl(t.onMouseDown,e=>{a?f.onItemFocus(d):e.preventDefault()}),onFocus:rl(t.onFocus,()=>f.onItemFocus(d)),onKeyDown:rl(t.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:dC[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>fC(o))}var n,r}),children:"function"==typeof l?l({isCurrentTabStop:p,hasTabStop:null!=g}):l})})});uC.displayName=cC;var dC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fC(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var pC=sC,mC=uC,hC="Tabs",[vC]=tl(hC,[oC]),gC=oC(),[bC,yC]=vC(hC),wC=r.forwardRef((t,n)=>{const{__scopeTabs:r,value:o,onValueChange:a,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:c="automatic",...u}=t,d=ew(l),[f,p]=ll({prop:o,onChange:a,defaultProp:i??"",caller:hC});return e(bC,{scope:r,baseId:il(),value:f,onValueChange:p,orientation:s,dir:d,activationMode:c,children:e(ml.div,{dir:d,"data-orientation":s,...u,ref:n})})});wC.displayName=hC;var xC="TabsList",CC=r.forwardRef((t,n)=>{const{__scopeTabs:r,loop:o=!0,...a}=t,i=yC(xC,r),s=gC(r);return e(pC,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:e(ml.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:n})})});CC.displayName=xC;var kC="TabsTrigger",NC=r.forwardRef((t,n)=>{const{__scopeTabs:r,value:o,disabled:a=!1,...i}=t,s=yC(kC,r),l=gC(r),c=MC(s.baseId,o),u=OC(s.baseId,o),d=o===s.value;return e(mC,{asChild:!0,...l,focusable:!a,active:d,children:e(ml.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:n,onMouseDown:rl(t.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)}),onKeyDown:rl(t.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)}),onFocus:rl(t.onFocus,()=>{const e="manual"!==s.activationMode;d||a||!e||s.onValueChange(o)})})})});NC.displayName=kC;var EC="TabsContent",SC=r.forwardRef((t,n)=>{const{__scopeTabs:o,value:a,forceMount:i,children:s,...l}=t,c=yC(EC,o),u=MC(c.baseId,a),d=OC(c.baseId,a),f=a===c.value,p=r.useRef(f);return r.useEffect(()=>{const e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),e(jl,{present:i||f,children:({present:r})=>e(ml.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...l,ref:n,style:{...t.style,animationDuration:p.current?"0s":void 0},children:r&&s})})});function MC(e,t){return`${e}-trigger-${t}`}function OC(e,t){return`${e}-content-${t}`}SC.displayName=EC;var _C=CC,LC=NC,PC=SC;const DC=wC,RC=({ref:e,className:t,...n})=>E(_C,{ref:e,className:_t("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1 ",t),...n});RC.displayName=_C.displayName;const TC=({ref:e,className:t,...n})=>E(_C,{ref:e,className:_t("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",t),sx:{background:"mainColor"},...n});TC.displayName=_C.displayName;const AC=({ref:e,className:t,...n})=>E(LC,{ref:e,className:_t("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[hsl(var(--background))] data-[state=active]:text-[hsl(var(--foreground))] data-[state=active]:shadow-sm",t),...n});AC.displayName=LC.displayName;const IC=({ref:e,className:t,...n})=>E(PC,{ref:e,className:_t("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...n});IC.displayName=PC.displayName;const FC=cd("px-3 py-2",{variants:{variant:{default:" w-full ",error:" text-input-error-foreground border border-red-500",success:"bg-input-success text-input-success-foreground border border-green-500",warning:"bg-input-warning text-input-warning-foreground border border-yellow-500"},textareaSize:{default:" px-3",sm:" rounded-md text-xs",lg:"h-11 rounded-md px-8",custom:"h-10 px-3"}},defaultVariants:{variant:"default",textareaSize:"default"}}),jC=({ref:e,className:t,variant:n,textareaSize:r,...o})=>E("textarea",{className:_t(FC({variant:n,textareaSize:r,className:t}),"rounded-lg border bg-transparent focus:outline-hidden outline-hidden text-sm px-3"),ref:e,...o,sx:{"&:focus":{borderColor:"borderColor"}}});jC.displayName="Textarea";const WC=e=>E(dd,{sx:{background:"mainColor"},...e,children:e.children});WC.displayName="ThemedButton";var zC=["color"],HC=f(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,zC);return v("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),v("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),BC="ToastProvider",[VC,$C,YC]=Qy("Toast"),[qC]=tl("Toast",[YC]),[KC,GC]=qC(BC),UC=t=>{const{__scopeToast:n,label:o="Notification",duration:a=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:l}=t,[c,u]=r.useState(null),[d,f]=r.useState(0),p=r.useRef(!1),m=r.useRef(!1);return o.trim(),e(VC.Provider,{scope:n,children:e(KC,{scope:n,label:o,duration:a,swipeDirection:i,swipeThreshold:s,toastCount:d,viewport:c,onViewportChange:u,onToastAdd:r.useCallback(()=>f(e=>e+1),[]),onToastRemove:r.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:l})})};UC.displayName=BC;var ZC="ToastViewport",XC=["F8"],QC="toast.viewportPause",JC="toast.viewportResume",ek=r.forwardRef((t,o)=>{const{__scopeToast:a,hotkey:i=XC,label:s="Notifications ({hotkey})",...l}=t,c=GC(ZC,a),u=$C(a),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=r.useRef(null),h=R(o,m,c.onViewportChange),v=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0;r.useEffect(()=>{const e=e=>{0!==i.length&&i.every(t=>e[t]||e.code===t)&&m.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{const e=d.current,t=m.current;if(g&&e&&t){const n=()=>{if(!c.isClosePausedRef.current){const e=new CustomEvent(QC);t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{if(c.isClosePausedRef.current){const e=new CustomEvent(JC);t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[g,c.isClosePausedRef]);const b=r.useCallback(({tabbingDirection:e})=>{const t=u().map(t=>{const n=t.ref.current,r=[n,...bk(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[u]);return r.useEffect(()=>{const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,r=t.shiftKey;if(t.target===e&&r)return void f.current?.focus();const o=b({tabbingDirection:r?"backwards":"forwards"}),a=o.findIndex(e=>e===n);yk(o.slice(a+1))?t.preventDefault():r?f.current?.focus():p.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,b]),n(Sl,{ref:d,role:"region","aria-label":s.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&e(nk,{ref:f,onFocusFromOutsideViewport:()=>{yk(b({tabbingDirection:"forwards"}))}}),e(VC.Slot,{scope:a,children:e(ml.ol,{tabIndex:-1,...l,ref:h})}),g&&e(nk,{ref:p,onFocusFromOutsideViewport:()=>{yk(b({tabbingDirection:"backwards"}))}})]})});ek.displayName=ZC;var tk="ToastFocusProxy",nk=r.forwardRef((t,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=t,i=GC(tk,r);return e(nw,{tabIndex:0,...a,ref:n,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!i.viewport?.contains(t)&&o()}})});nk.displayName=tk;var rk="Toast",ok=r.forwardRef((t,n)=>{const{forceMount:r,open:o,defaultOpen:a,onOpenChange:i,...s}=t,[l,c]=ll({prop:o,defaultProp:a??!0,onChange:i,caller:rk});return e(jl,{present:r||l,children:e(sk,{open:l,...s,ref:n,onClose:()=>c(!1),onPause:_(t.onPause),onResume:_(t.onResume),onSwipeStart:rl(t.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:rl(t.onSwipeMove,e=>{const{x:t,y:n}=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",`${n}px`)}),onSwipeCancel:rl(t.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:rl(t.onSwipeEnd,e=>{const{x:t,y:n}=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",`${n}px`),c(!1)})})})});ok.displayName=rk;var[ak,ik]=qC(rk,{onClose(){}}),sk=r.forwardRef((o,a)=>{const{__scopeToast:i,type:s="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:f,onResume:p,onSwipeStart:m,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:g,...b}=o,y=GC(rk,i),[w,x]=r.useState(null),k=R(a,e=>x(e)),N=r.useRef(null),E=r.useRef(null),S=l||y.duration,M=r.useRef(0),O=r.useRef(S),L=r.useRef(0),{onToastAdd:P,onToastRemove:D}=y,T=_(()=>{const e=w?.contains(document.activeElement);e&&y.viewport?.focus(),u()}),A=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(L.current),M.current=(new Date).getTime(),L.current=window.setTimeout(T,e))},[T]);r.useEffect(()=>{const e=y.viewport;if(e){const t=()=>{A(O.current),p?.()},n=()=>{const e=(new Date).getTime()-M.current;O.current=O.current-e,window.clearTimeout(L.current),f?.()};return e.addEventListener(QC,n),e.addEventListener(JC,t),()=>{e.removeEventListener(QC,n),e.removeEventListener(JC,t)}}},[y.viewport,S,f,p,A]),r.useEffect(()=>{c&&!y.isClosePausedRef.current&&A(S)},[c,S,y.isClosePausedRef,A]),r.useEffect(()=>(P(),()=>D()),[P,D]);const I=r.useMemo(()=>w?hk(w):null,[w]);return y.viewport?n(t,{children:[I&&e(lk,{__scopeToast:i,role:"status","aria-live":"foreground"===s?"assertive":"polite",children:I}),e(ak,{scope:i,onClose:T,children:C.createPortal(e(VC.ItemSlot,{scope:i,children:e(El,{asChild:!0,onEscapeKeyDown:rl(d,()=>{y.isFocusedToastEscapeKeyDownRef.current||T(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:e(ml.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":y.swipeDirection,...b,ref:k,style:{userSelect:"none",touchAction:"none",...o.style},onKeyDown:rl(o.onKeyDown,e=>{"Escape"===e.key&&(d?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:rl(o.onPointerDown,e=>{0===e.button&&(N.current={x:e.clientX,y:e.clientY})}),onPointerMove:rl(o.onPointerMove,e=>{if(!N.current)return;const t=e.clientX-N.current.x,n=e.clientY-N.current.y,r=Boolean(E.current),o=["left","right"].includes(y.swipeDirection),a=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,s=o?0:a(0,n),l="touch"===e.pointerType?10:2,c={x:i,y:s},u={originalEvent:e,delta:c};r?(E.current=c,vk("toast.swipeMove",h,u,{discrete:!1})):gk(c,y.swipeDirection,l)?(E.current=c,vk("toast.swipeStart",m,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(N.current=null)}),onPointerUp:rl(o.onPointerUp,e=>{const t=E.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),E.current=null,N.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};gk(t,y.swipeDirection,y.swipeThreshold)?vk("toast.swipeEnd",g,r,{discrete:!0}):vk("toast.swipeCancel",v,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),lk=o=>{const{__scopeToast:a,children:i,...s}=o,l=GC(rk,a),[c,u]=r.useState(!1),[d,f]=r.useState(!1);return function(e=()=>{}){const t=_(e);L(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>u(!0)),r.useEffect(()=>{const e=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(e)},[]),d?null:e(Fl,{asChild:!0,children:e(nw,{...s,children:c&&n(t,{children:[l.label," ",i]})})})},ck=r.forwardRef((t,n)=>{const{__scopeToast:r,...o}=t;return e(ml.div,{...o,ref:n})});ck.displayName="ToastTitle";var uk=r.forwardRef((t,n)=>{const{__scopeToast:r,...o}=t;return e(ml.div,{...o,ref:n})});uk.displayName="ToastDescription";var dk=r.forwardRef((t,n)=>{const{altText:r,...o}=t;return r.trim()?e(mk,{altText:r,asChild:!0,children:e(pk,{...o,ref:n})}):null});dk.displayName="ToastAction";var fk="ToastClose",pk=r.forwardRef((t,n)=>{const{__scopeToast:r,...o}=t,a=ik(fk,r);return e(mk,{asChild:!0,children:e(ml.button,{type:"button",...o,ref:n,onClick:rl(t.onClick,a.onClose)})})});pk.displayName=fk;var mk=r.forwardRef((t,n)=>{const{__scopeToast:r,altText:o,...a}=t;return e(ml.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:n})});function hk(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 n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...hk(e))}}),t}function vk(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hl(o,a):o.dispatchEvent(a)}var gk=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function bk(e){const t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function yk(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var wk=ek,xk=ok,Ck=ck,kk=uk,Nk=dk,Ek=pk;const Sk=UC,Mk=({ref:t,className:n,...r})=>e(wk,{ref:t,className:_t("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...r});Mk.displayName=wk.displayName;const Ok=cd("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg 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",{variants:{variant:{default:"border bg-[hsl(var(--background))] text-[hsl(var(--foreground))]",destructive:"destructive group border-[hsl(var(--destructive))] bg-[hsl(var(--destructive))]/50 text-[hsl(var(--destructive-foreground))]"}},defaultVariants:{variant:"default"}}),_k=({ref:t,className:n,variant:r,...o})=>e(xk,{ref:t,className:_t(Ok({variant:r}),n),...o});_k.displayName=xk.displayName;const Lk=({ref:t,className:n,...r})=>e(Nk,{ref:t,className:_t("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-[hsl(var(--muted))]/40 group-[.destructive]:hover:border-[hsl(var(--destructive))]/30 group-[.destructive]:hover:bg-[hsl(var(--destructive))] group-[.destructive]:hover:text-[hsl(var(--destructive-foreground))] group-[.destructive]:focus:ring-[hsl(var(--destructive))]",n),...r});Lk.displayName=Nk.displayName;const Pk=({ref:t,className:n,...r})=>e(Ek,{ref:t,className:_t("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...r,children:e(HC,{className:"h-4 w-4"})});Pk.displayName=Ek.displayName;const Dk=({ref:t,className:n,...r})=>e(Ck,{ref:t,className:_t("text-sm font-semibold [&+div]:text-xs",n),...r});Dk.displayName=Ck.displayName;const Rk=({ref:t,className:n,...r})=>e(kk,{ref:t,className:_t("text-sm opacity-90",n),...r});Rk.displayName=kk.displayName;let Tk=0;const Ak=new Map,Ik=e=>{if(Ak.has(e))return;const t=setTimeout(()=>{Ak.delete(e),zk({type:"REMOVE_TOAST",toastId:e})},1e6);Ak.set(e,t)},Fk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ik(n):e.toasts.forEach(e=>{Ik(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},jk=[];let Wk={toasts:[]};function zk(e){Wk=Fk(Wk,e),jk.forEach(e=>{e(Wk)})}function Hk({...e}){const t=(Tk=(Tk+1)%Number.MAX_SAFE_INTEGER,Tk.toString()),n=()=>zk({type:"DISMISS_TOAST",toastId:t});return zk({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>zk({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Bk(){const[e,t]=r.useState(Wk);return r.useEffect(()=>(jk.push(t),()=>{const e=jk.indexOf(t);e>-1&&jk.splice(e,1)}),[e]),{...e,toast:Hk,dismiss:e=>zk({type:"DISMISS_TOAST",toastId:e})}}function Vk(){const{toasts:t}=Bk();return n(Sk,{children:[t.map(function({id:t,title:r,description:o,action:a,...i}){return n(_k,{className:" rounded-xl",...i,children:[n("div",{className:"grid gap-1",children:[r&&e(Dk,{children:r}),o&&e(Rk,{children:o})]}),a,e(Pk,{})]},t)}),e(Mk,{})]})}var[$k]=tl("Tooltip",[Kv]),Yk=Kv(),qk="TooltipProvider",Kk=700,Gk="tooltip.open",[Uk,Zk]=$k(qk),Xk=t=>{const{__scopeTooltip:n,delayDuration:o=Kk,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:s}=t,l=r.useRef(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),e(Uk,{scope:n,isOpenDelayedRef:l,delayDuration:o,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),l.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(e=>{c.current=e},[]),disableHoverableContent:i,children:s})};Xk.displayName=qk;var Qk="Tooltip",[Jk,eN]=$k(Qk),tN=t=>{const{__scopeTooltip:n,children:o,open:a,defaultOpen:i,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=t,u=Zk(Qk,t.__scopeTooltip),d=Yk(n),[f,p]=r.useState(null),m=il(),h=r.useRef(0),v=l??u.disableHoverableContent,g=c??u.delayDuration,b=r.useRef(!1),[y,w]=ll({prop:a,defaultProp:i??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Gk))):u.onClose(),s?.(e)},caller:Qk}),x=r.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=r.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),k=r.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=r.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},g)},[g,w]);return r.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),e(cg,{...d,children:e(Jk,{scope:n,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:r.useCallback(()=>{u.isOpenDelayedRef.current?N():C()},[u.isOpenDelayedRef,N,C]),onTriggerLeave:r.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:C,onClose:k,disableHoverableContent:v,children:o})})};tN.displayName=Qk;var nN="TooltipTrigger",rN=r.forwardRef((t,n)=>{const{__scopeTooltip:o,...a}=t,i=eN(nN,o),s=Zk(nN,o),l=Yk(o),c=R(n,r.useRef(null),i.onTriggerChange),u=r.useRef(!1),d=r.useRef(!1),f=r.useCallback(()=>u.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),e(ug,{asChild:!0,...l,children:e(ml.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:c,onPointerMove:rl(t.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),d.current=!0))}),onPointerLeave:rl(t.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:rl(t.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:rl(t.onFocus,()=>{u.current||i.onOpen()}),onBlur:rl(t.onBlur,i.onClose),onClick:rl(t.onClick,i.onClose)})})});rN.displayName=nN;var[oN,aN]=$k("TooltipPortal",{forceMount:void 0}),iN="TooltipContent",sN=r.forwardRef((t,n)=>{const r=aN(iN,t.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...i}=t,s=eN(iN,t.__scopeTooltip);return e(jl,{present:o||s.open,children:s.disableHoverableContent?e(fN,{side:a,...i,ref:n}):e(lN,{side:a,...i,ref:n})})}),lN=r.forwardRef((t,n)=>{const o=eN(iN,t.__scopeTooltip),a=Zk(iN,t.__scopeTooltip),i=r.useRef(null),s=R(n,i),[l,c]=r.useState(null),{trigger:u,onClose:d}=o,f=i.current,{onPointerInTransitChange:p}=a,m=r.useCallback(()=>{c(null),p(!1)},[p]),h=r.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),a=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),i=function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect()),s=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 n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...a,...i]);c(s),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(u&&f){const e=e=>h(e,f),t=e=>h(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,h,m]),r.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,l);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,l,d,m]),e(fN,{...t,ref:s})}),[cN,uN]=$k(Qk,{isInside:!1}),dN=fl("TooltipContent"),fN=r.forwardRef((t,o)=>{const{__scopeTooltip:a,children:i,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:c,...u}=t,d=eN(iN,a),f=Yk(a),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(Gk,p),()=>document.removeEventListener(Gk,p)),[p]),r.useEffect(()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),e(xl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:n(dg,{"data-state":d.stateAttribute,...f,...u,ref:o,style:{...u.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:[e(dN,{children:i}),e(cN,{scope:a,isInside:!0,children:e(rw,{id:d.contentId,role:"tooltip",children:s||i})})]})})});sN.displayName=iN;var pN="TooltipArrow";r.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,a=Yk(r);return uN(pN,r).isInside?null:e(fg,{...a,...o,ref:n})}).displayName=pN;var mN=sN;const hN=Xk,vN=tN,gN=rN,bN=({ref:t,className:n,sideOffset:r=4,...o})=>e(mN,{ref:t,sideOffset:r,className:_t("z-50 overflow-hidden rounded-md bg-[hsl(var(--primary))] px-3 py-1.5 text-xs text-[hsl(var(--primary-foreground))] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...o});bN.displayName=mN.displayName;var yN=["Enter"," "],wN=["ArrowUp","PageDown","End"],xN=["ArrowDown","PageUp","Home",...wN],CN={ltr:[...yN,"ArrowRight"],rtl:[...yN,"ArrowLeft"]},kN={ltr:["ArrowLeft"],rtl:["ArrowRight"]},NN="Menu",[EN,SN,MN]=Qy(NN),[ON,_N]=tl(NN,[MN,Kv,oC]),LN=Kv(),PN=oC(),[DN,RN]=ON(NN),[TN,AN]=ON(NN),IN=t=>{const{__scopeMenu:n,open:o=!1,children:a,dir:i,onOpenChange:s,modal:l=!0}=t,c=LN(n),[u,d]=r.useState(null),f=r.useRef(!1),p=_(s),m=ew(i);return r.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.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})}},[]),e(cg,{...c,children:e(DN,{scope:n,open:o,onOpenChange:p,content:u,onContentChange:d,children:e(TN,{scope:n,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:l,children:a})})})};IN.displayName=NN;var FN=r.forwardRef((t,n)=>{const{__scopeMenu:r,...o}=t,a=LN(r);return e(ug,{...a,...o,ref:n})});FN.displayName="MenuAnchor";var jN="MenuPortal",[WN,zN]=ON(jN,{forceMount:void 0}),HN=t=>{const{__scopeMenu:n,forceMount:r,children:o,container:a}=t,i=RN(jN,n);return e(WN,{scope:n,forceMount:r,children:e(jl,{present:r||i.open,children:e(Fl,{asChild:!0,container:a,children:o})})})};HN.displayName=jN;var BN="MenuContent",[VN,$N]=ON(BN),YN=r.forwardRef((t,n)=>{const r=zN(BN,t.__scopeMenu),{forceMount:o=r.forceMount,...a}=t,i=RN(BN,t.__scopeMenu),s=AN(BN,t.__scopeMenu);return e(EN.Provider,{scope:t.__scopeMenu,children:e(jl,{present:o||i.open,children:e(EN.Slot,{scope:t.__scopeMenu,children:s.modal?e(qN,{...a,ref:n}):e(KN,{...a,ref:n})})})})}),qN=r.forwardRef((t,n)=>{const o=RN(BN,t.__scopeMenu),a=r.useRef(null),i=R(n,a);return r.useEffect(()=>{const e=a.current;if(e)return Ic(e)},[]),e(UN,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:rl(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),KN=r.forwardRef((t,n)=>{const r=RN(BN,t.__scopeMenu);return e(UN,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),GN=cl("MenuContent.ScrollLock"),UN=r.forwardRef((t,n)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:v,...g}=t,b=RN(BN,o),y=AN(BN,o),w=LN(o),x=PN(o),C=SN(o),[k,N]=r.useState(null),E=r.useRef(null),S=R(n,E,b.onContentChange),M=r.useRef(0),O=r.useRef(""),_=r.useRef(0),L=r.useRef(null),P=r.useRef("right"),D=r.useRef(0),T=v?_c:r.Fragment,A=v?{as:GN,allowPinchZoom:!0}:void 0,I=e=>{const t=O.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){O.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};r.useEffect(()=>()=>window.clearTimeout(M.current),[]),Hl();const F=r.useCallback(e=>P.current===L.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,t)}(e,L.current?.area),[]);return e(VN,{scope:o,searchRef:O,onItemEnter:r.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:r.useCallback(e=>{F(e)||(E.current?.focus(),N(null))},[F]),onTriggerLeave:r.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:_,onPointerGraceIntentChange:r.useCallback(e=>{L.current=e},[]),children:e(T,{...A,children:e(Ll,{asChild:!0,trapped:i,onMountAutoFocus:rl(s,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:e(xl,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:e(pC,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:N,onEntryFocus:rl(u,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:e(dg,{role:"menu","aria-orientation":"vertical","data-state":kE(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:rl(g.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&I(e.key));const o=E.current;if(e.target!==o)return;if(!xN.includes(e.key))return;e.preventDefault();const a=C().filter(e=>!e.disabled).map(e=>e.ref.current);wN.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:rl(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),O.current="")}),onPointerMove:rl(t.onPointerMove,SE(e=>{const t=e.target,n=D.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>D.current?"right":"left";P.current=t,D.current=e.clientX}}))})})})})})})});YN.displayName=BN;var ZN=r.forwardRef((t,n)=>{const{__scopeMenu:r,...o}=t;return e(ml.div,{role:"group",...o,ref:n})});ZN.displayName="MenuGroup";var XN=r.forwardRef((t,n)=>{const{__scopeMenu:r,...o}=t;return e(ml.div,{...o,ref:n})});XN.displayName="MenuLabel";var QN="MenuItem",JN="menu.itemSelect",eE=r.forwardRef((t,n)=>{const{disabled:o=!1,onSelect:a,...i}=t,s=r.useRef(null),l=AN(QN,t.__scopeMenu),c=$N(QN,t.__scopeMenu),u=R(n,s),d=r.useRef(!1);return e(tE,{...i,ref:u,disabled:o,onClick:rl(t.onClick,()=>{const e=s.current;if(!o&&e){const t=new CustomEvent(JN,{bubbles:!0,cancelable:!0});e.addEventListener(JN,e=>a?.(e),{once:!0}),hl(e,t),t.defaultPrevented?d.current=!1:l.onClose()}}),onPointerDown:e=>{t.onPointerDown?.(e),d.current=!0},onPointerUp:rl(t.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:rl(t.onKeyDown,e=>{const t=""!==c.searchRef.current;o||t&&" "===e.key||yN.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eE.displayName=QN;var tE=r.forwardRef((t,n)=>{const{__scopeMenu:o,disabled:a=!1,textValue:i,...s}=t,l=$N(QN,o),c=PN(o),u=r.useRef(null),d=R(n,u),[f,p]=r.useState(!1),[m,h]=r.useState("");return r.useEffect(()=>{const e=u.current;e&&h((e.textContent??"").trim())},[s.children]),e(EN.ItemSlot,{scope:o,disabled:a,textValue:i??m,children:e(mC,{asChild:!0,...c,focusable:!a,children:e(ml.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:d,onPointerMove:rl(t.onPointerMove,SE(e=>{if(a)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:rl(t.onPointerLeave,SE(e=>l.onItemLeave(e))),onFocus:rl(t.onFocus,()=>p(!0)),onBlur:rl(t.onBlur,()=>p(!1))})})})}),nE=r.forwardRef((t,n)=>{const{checked:r=!1,onCheckedChange:o,...a}=t;return e(uE,{scope:t.__scopeMenu,checked:r,children:e(eE,{role:"menuitemcheckbox","aria-checked":NE(r)?"mixed":r,...a,ref:n,"data-state":EE(r),onSelect:rl(a.onSelect,()=>o?.(!!NE(r)||!r),{checkForDefaultPrevented:!1})})})});nE.displayName="MenuCheckboxItem";var rE="MenuRadioGroup",[oE,aE]=ON(rE,{value:void 0,onValueChange:()=>{}}),iE=r.forwardRef((t,n)=>{const{value:r,onValueChange:o,...a}=t,i=_(o);return e(oE,{scope:t.__scopeMenu,value:r,onValueChange:i,children:e(ZN,{...a,ref:n})})});iE.displayName=rE;var sE="MenuRadioItem",lE=r.forwardRef((t,n)=>{const{value:r,...o}=t,a=aE(sE,t.__scopeMenu),i=r===a.value;return e(uE,{scope:t.__scopeMenu,checked:i,children:e(eE,{role:"menuitemradio","aria-checked":i,...o,ref:n,"data-state":EE(i),onSelect:rl(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});lE.displayName=sE;var cE="MenuItemIndicator",[uE,dE]=ON(cE,{checked:!1}),fE=r.forwardRef((t,n)=>{const{__scopeMenu:r,forceMount:o,...a}=t,i=dE(cE,r);return e(jl,{present:o||NE(i.checked)||!0===i.checked,children:e(ml.span,{...a,ref:n,"data-state":EE(i.checked)})})});fE.displayName=cE;var pE=r.forwardRef((t,n)=>{const{__scopeMenu:r,...o}=t;return e(ml.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});pE.displayName="MenuSeparator";var mE=r.forwardRef((t,n)=>{const{__scopeMenu:r,...o}=t,a=LN(r);return e(fg,{...a,...o,ref:n})});mE.displayName="MenuArrow";var hE="MenuSub",[vE,gE]=ON(hE),bE=t=>{const{__scopeMenu:n,children:o,open:a=!1,onOpenChange:i}=t,s=RN(hE,n),l=LN(n),[c,u]=r.useState(null),[d,f]=r.useState(null),p=_(i);return r.useEffect(()=>(!1===s.open&&p(!1),()=>p(!1)),[s.open,p]),e(cg,{...l,children:e(DN,{scope:n,open:a,onOpenChange:p,content:d,onContentChange:f,children:e(vE,{scope:n,contentId:il(),triggerId:il(),trigger:c,onTriggerChange:u,children:o})})})};bE.displayName=hE;var yE="MenuSubTrigger",wE=r.forwardRef((t,n)=>{const o=RN(yE,t.__scopeMenu),a=AN(yE,t.__scopeMenu),i=gE(yE,t.__scopeMenu),s=$N(yE,t.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:t.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const e=c.current;return()=>{window.clearTimeout(e),u(null)}},[c,u]),e(FN,{asChild:!0,...d,children:e(tE,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":i.contentId,"data-state":kE(o.open),...t,ref:D(n,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:rl(t.onPointerMove,SE(e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||o.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),f()},100))})),onPointerLeave:rl(t.onPointerLeave,SE(e=>{f();const t=o.content?.getBoundingClientRect();if(t){const n=o.content?.dataset.side,r="right"===n,a=r?-5:5,i=t[r?"left":"right"],l=t[r?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:rl(t.onKeyDown,e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||CN[a.dir].includes(e.key)&&(o.onOpenChange(!0),o.content?.focus(),e.preventDefault())})})})});wE.displayName=yE;var xE="MenuSubContent",CE=r.forwardRef((t,n)=>{const o=zN(BN,t.__scopeMenu),{forceMount:a=o.forceMount,...i}=t,s=RN(BN,t.__scopeMenu),l=AN(BN,t.__scopeMenu),c=gE(xE,t.__scopeMenu),u=r.useRef(null),d=R(n,u);return e(EN.Provider,{scope:t.__scopeMenu,children:e(jl,{present:a||s.open,children:e(EN.Slot,{scope:t.__scopeMenu,children:e(UN,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:rl(t.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:rl(t.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:rl(t.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=kN[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function kE(e){return e?"open":"closed"}function NE(e){return"indeterminate"===e}function EE(e){return NE(e)?"indeterminate":e?"checked":"unchecked"}function SE(e){return t=>"mouse"===t.pointerType?e(t):void 0}CE.displayName=xE;var ME=IN,OE=FN,_E=HN,LE=YN,PE=ZN,DE=XN,RE=eE,TE=nE,AE=iE,IE=lE,FE=fE,jE=pE,WE=mE,zE=bE,HE=wE,BE=CE,VE="Menubar",[$E,YE,qE]=Qy(VE),[KE]=tl(VE,[qE,oC]),GE=_N(),UE=oC(),[ZE,XE]=KE(VE),QE=r.forwardRef((t,n)=>{const{__scopeMenubar:o,value:a,onValueChange:i,defaultValue:s,loop:l=!0,dir:c,...u}=t,d=ew(c),f=UE(o),[p,m]=ll({prop:a,onChange:i,defaultProp:s??"",caller:VE}),[h,v]=r.useState(null);return e(ZE,{scope:o,value:p,onMenuOpen:r.useCallback(e=>{m(e),v(e)},[m]),onMenuClose:r.useCallback(()=>m(""),[m]),onMenuToggle:r.useCallback(e=>{m(t=>t?"":e),v(e)},[m]),dir:d,loop:l,children:e($E.Provider,{scope:o,children:e($E.Slot,{scope:o,children:e(pC,{asChild:!0,...f,orientation:"horizontal",loop:l,dir:d,currentTabStopId:h,onCurrentTabStopIdChange:v,children:e(ml.div,{role:"menubar",...u,ref:n})})})})})});QE.displayName=VE;var JE="MenubarMenu",[eS,tS]=KE(JE),nS=t=>{const{__scopeMenubar:n,value:o,...a}=t,i=il(),s=o||i||"LEGACY_REACT_AUTO_VALUE",l=XE(JE,n),c=GE(n),u=r.useRef(null),d=r.useRef(!1),f=l.value===s;return r.useEffect(()=>{f||(d.current=!1)},[f]),e(eS,{scope:n,value:s,triggerId:il(),triggerRef:u,contentId:il(),wasKeyboardTriggerOpenRef:d,children:e(ME,{...c,open:f,onOpenChange:e=>{e||l.onMenuClose()},modal:!1,dir:l.dir,...a})})};nS.displayName=JE;var rS="MenubarTrigger",oS=r.forwardRef((t,n)=>{const{__scopeMenubar:o,disabled:a=!1,...i}=t,s=UE(o),l=GE(o),c=XE(rS,o),u=tS(rS,o),d=r.useRef(null),f=R(n,d,u.triggerRef),[p,m]=r.useState(!1),h=c.value===u.value;return e($E.ItemSlot,{scope:o,value:u.value,disabled:a,children:e(mC,{asChild:!0,...s,focusable:!a,tabStopId:u.value,children:e(OE,{asChild:!0,...l,children:e(ml.button,{type:"button",role:"menuitem",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?u.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":h?"open":"closed","data-disabled":a?"":void 0,disabled:a,...i,ref:f,onPointerDown:rl(t.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(c.onMenuOpen(u.value),h||e.preventDefault())}),onPointerEnter:rl(t.onPointerEnter,()=>{Boolean(c.value)&&!h&&(c.onMenuOpen(u.value),d.current?.focus())}),onKeyDown:rl(t.onKeyDown,e=>{a||(["Enter"," "].includes(e.key)&&c.onMenuToggle(u.value),"ArrowDown"===e.key&&c.onMenuOpen(u.value),["Enter"," ","ArrowDown"].includes(e.key)&&(u.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:rl(t.onFocus,()=>m(!0)),onBlur:rl(t.onBlur,()=>m(!1))})})})})});oS.displayName=rS;var aS=t=>{const{__scopeMenubar:n,...r}=t,o=GE(n);return e(_E,{...o,...r})};aS.displayName="MenubarPortal";var iS="MenubarContent",sS=r.forwardRef((t,n)=>{const{__scopeMenubar:o,align:a="start",...i}=t,s=GE(o),l=XE(iS,o),c=tS(iS,o),u=YE(o),d=r.useRef(!1);return e(LE,{id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":"",...s,...i,ref:n,align:a,onCloseAutoFocus:rl(t.onCloseAutoFocus,e=>{Boolean(l.value)||d.current||c.triggerRef.current?.focus(),d.current=!1,e.preventDefault()}),onFocusOutside:rl(t.onFocusOutside,e=>{const t=e.target;u().some(e=>e.ref.current?.contains(t))&&e.preventDefault()}),onInteractOutside:rl(t.onInteractOutside,()=>{d.current=!0}),onEntryFocus:e=>{c.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:rl(t.onKeyDown,e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){const r=e.target,o=r.hasAttribute("data-radix-menubar-subtrigger"),a=r.closest("[data-radix-menubar-content]")!==e.currentTarget,i=("rtl"===l.dir?"ArrowRight":"ArrowLeft")===e.key;if(!i&&o)return;if(a&&i)return;let s=u().filter(e=>!e.disabled).map(e=>e.value);i&&s.reverse();const d=s.indexOf(c.value);s=l.loop?(n=d+1,(t=s).map((e,r)=>t[(n+r)%t.length])):s.slice(d+1);const[f]=s;f&&l.onMenuOpen(f)}var t,n},{checkForDefaultPrevented:!1}),style:{...t.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});sS.displayName=iS;var lS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(PE,{...a,...o,ref:n})});lS.displayName="MenubarGroup";var cS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(DE,{...a,...o,ref:n})});cS.displayName="MenubarLabel";var uS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(RE,{...a,...o,ref:n})});uS.displayName="MenubarItem";var dS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(TE,{...a,...o,ref:n})});dS.displayName="MenubarCheckboxItem";var fS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(AE,{...a,...o,ref:n})});fS.displayName="MenubarRadioGroup";var pS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(IE,{...a,...o,ref:n})});pS.displayName="MenubarRadioItem";var mS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(FE,{...a,...o,ref:n})});mS.displayName="MenubarItemIndicator";var hS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(jE,{...a,...o,ref:n})});hS.displayName="MenubarSeparator";r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(WE,{...a,...o,ref:n})}).displayName="MenubarArrow";var vS="MenubarSub",gS=t=>{const{__scopeMenubar:n,children:r,open:o,onOpenChange:a,defaultOpen:i}=t,s=GE(n),[l,c]=ll({prop:o,defaultProp:i??!1,onChange:a,caller:vS});return e(zE,{...s,open:l,onOpenChange:c,children:r})};gS.displayName=vS;var bS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(HE,{"data-radix-menubar-subtrigger":"",...a,...o,ref:n})});bS.displayName="MenubarSubTrigger";var yS=r.forwardRef((t,n)=>{const{__scopeMenubar:r,...o}=t,a=GE(r);return e(BE,{...a,"data-radix-menubar-content":"",...o,ref:n,style:{...t.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});yS.displayName="MenubarSubContent";var wS=QE,xS=nS,CS=oS,kS=aS,NS=sS,ES=lS,SS=cS,MS=uS,OS=dS,_S=fS,LS=pS,PS=mS,DS=hS,RS=gS,TS=bS,AS=yS;function IS({...t}){return e(xS,{...t})}function FS({...t}){return e(ES,{...t})}function jS({...t}){return e(kS,{...t})}function WS({...t}){return e(_S,{...t})}function zS({...t}){return e(RS,{"data-slot":"menubar-sub",...t})}const HS=r.forwardRef(({className:t,...n},r)=>e(wS,{ref:r,className:_t("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-xs",t),...n}));HS.displayName=wS.displayName;const BS=r.forwardRef(({className:t,...n},r)=>e(CS,{ref:r,className:_t("flex cursor-default select-none items-center rounded-xs px-3 py-1 text-sm font-medium outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...n}));BS.displayName=CS.displayName;const VS=r.forwardRef(({className:t,inset:r,children:o,...a},i)=>n(TS,{ref:i,className:_t("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",r&&"pl-8",t),...a,children:[o,e(Ad,{className:"ml-auto h-4 w-4"})]}));VS.displayName=TS.displayName;const $S=r.forwardRef(({className:t,...n},r)=>e(AS,{ref:r,className:_t("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-menubar-content-transform-origin]",t),...n}));$S.displayName=AS.displayName;const YS=r.forwardRef(({className:t,align:n="start",alignOffset:r=-4,sideOffset:o=8,...a},i)=>e(kS,{children:e(NS,{ref:i,align:n,alignOffset:r,sideOffset:o,className:_t("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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 origin-[--radix-menubar-content-transform-origin]",t),...a})}));YS.displayName=NS.displayName;const qS=r.forwardRef(({className:t,inset:n,...r},o)=>e(MS,{ref:o,className:_t("relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",t),...r}));qS.displayName=MS.displayName;const KS=r.forwardRef(({className:t,children:r,checked:o,...a},i)=>n(OS,{ref:i,className:_t("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(PS,{children:e(Dd,{className:"h-4 w-4"})})}),r]}));KS.displayName=OS.displayName;const GS=r.forwardRef(({className:t,children:r,...o},a)=>n(LS,{ref:a,className:_t("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(PS,{children:e(Fd,{className:"h-4 w-4 fill-current"})})}),r]}));GS.displayName=LS.displayName;const US=r.forwardRef(({className:t,inset:n,...r},o)=>e(SS,{ref:o,className:_t("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",t),...r}));US.displayName=SS.displayName;const ZS=r.forwardRef(({className:t,...n},r)=>e(DS,{ref:r,className:_t("-mx-1 my-1 h-px bg-muted",t),...n}));ZS.displayName=DS.displayName;const XS=({className:t,...n})=>e("span",{className:_t("ml-auto text-xs tracking-widest text-muted-foreground",t),...n});XS.displayname="MenubarShortcut";var QS="Radio",[JS,eM]=tl(QS),[tM,nM]=JS(QS),rM=r.forwardRef((t,o)=>{const{__scopeRadio:a,name:i,checked:s=!1,required:l,disabled:c,value:u="on",onCheck:d,form:f,...p}=t,[m,h]=r.useState(null),v=R(o,e=>h(e)),g=r.useRef(!1),b=!m||(f||!!m.closest("form"));return n(tM,{scope:a,checked:s,disabled:c,children:[e(ml.button,{type:"button",role:"radio","aria-checked":s,"data-state":sM(s),"data-disabled":c?"":void 0,disabled:c,value:u,...p,ref:v,onClick:rl(t.onClick,e=>{s||d?.(),b&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),b&&e(iM,{control:m,bubbles:!g.current,name:i,value:u,checked:s,required:l,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});rM.displayName=QS;var oM="RadioIndicator",aM=r.forwardRef((t,n)=>{const{__scopeRadio:r,forceMount:o,...a}=t,i=nM(oM,r);return e(jl,{present:o||i.checked,children:e(ml.span,{"data-state":sM(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:n})})});aM.displayName=oM;var iM=r.forwardRef(({__scopeRadio:t,control:n,checked:o,bubbles:a=!0,...i},s)=>{const l=r.useRef(null),c=R(l,s),u=Lh(o),d=Ph(n);return r.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==o&&n){const t=new Event("click",{bubbles:a});n.call(e,o),e.dispatchEvent(t)}},[u,o,a]),e(ml.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:c,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function sM(e){return e?"checked":"unchecked"}iM.displayName="RadioBubbleInput";var lM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cM="RadioGroup",[uM]=tl(cM,[oC,eM]),dM=oC(),fM=eM(),[pM,mM]=uM(cM),hM=r.forwardRef((t,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:a,value:i,required:s=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...p}=t,m=dM(r),h=ew(u),[v,g]=ll({prop:i,defaultProp:a??null,onChange:f,caller:cM});return e(pM,{scope:r,name:o,required:s,disabled:l,value:v,onValueChange:g,children:e(pC,{asChild:!0,...m,orientation:c,dir:h,loop:d,children:e(ml.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":l?"":void 0,dir:h,...p,ref:n})})})});hM.displayName=cM;var vM="RadioGroupItem",gM=r.forwardRef((t,n)=>{const{__scopeRadioGroup:o,disabled:a,...i}=t,s=mM(vM,o),l=s.disabled||a,c=dM(o),u=fM(o),d=r.useRef(null),f=R(n,d),p=s.value===i.value,m=r.useRef(!1);return r.useEffect(()=>{const e=e=>{lM.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),e(mC,{asChild:!0,...c,focusable:!l,active:p,children:e(rM,{disabled:l,required:s.required,checked:p,...u,...i,name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:rl(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:rl(i.onFocus,()=>{m.current&&d.current?.click()})})})});gM.displayName=vM;var bM=r.forwardRef((t,n)=>{const{__scopeRadioGroup:r,...o}=t,a=fM(r);return e(aM,{...a,...o,ref:n})});bM.displayName="RadioGroupIndicator";var yM=hM,wM=gM,xM=bM;const CM=r.forwardRef(({className:t,...n},r)=>e(yM,{className:_t("grid gap-2",t),...n,ref:r}));CM.displayName=yM.displayName;const kM=r.forwardRef(({className:t,...n},r)=>e(wM,{ref:r,className:_t("aspect-square h-4 w-4 rounded-full border border-[hsl(var(--primary))] text-[hsl(var(--primary))] shadow-sm focus:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...n,children:e(xM,{className:"flex items-center justify-center",children:e(Fd,{className:"h-3.5 w-3.5 fill-primary"})})}));kM.displayName=wM.displayName;const NM=({className:t,label:r,value:o,name:i,onChange:s,placeholder:c})=>{const[u,d]=a(!1),f=l(null),p=()=>{!u&&f.current&&f.current.click()};return n("div",{className:"flex flex-col gap-2",children:[r&&e(db,{className:"text-slate-500 dark:text-white text-sm",children:r}),n("div",{className:_t("flex items-center gap-2 border rounded-md h-10 px-3 dark:border-slate-800",t),children:[e("div",{role:"button",tabIndex:0,onClick:p,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())},className:"size-5 rounded-full cursor-pointer border dark:border-slate-800 relative "+(u?"opacity-50 cursor-not-allowed":""),style:{backgroundColor:o?.toString()},children:e("input",{type:"color",name:i,ref:f,value:o,onChange:s,className:"opacity-0 absolute top-1","aria-label":"Select color"})}),e("input",{type:"text",name:i,value:o,onChange:s,className:"flex-1 bg-transparent outline-hidden text-sm",disabled:u,maxLength:7,placeholder:c}),e("button",{type:"button",onClick:()=>d(e=>!e),children:e(u?zd:Wd,{className:"w-4 h-4 text-gray-500"})})]})]})};var EM="Collapsible",[SM,MM]=tl(EM),[OM,_M]=SM(EM),LM=r.forwardRef((t,n)=>{const{__scopeCollapsible:o,open:a,defaultOpen:i,disabled:s,onOpenChange:l,...c}=t,[u,d]=ll({prop:a,defaultProp:i??!1,onChange:l,caller:EM});return e(OM,{scope:o,disabled:s,contentId:il(),open:u,onOpenToggle:r.useCallback(()=>d(e=>!e),[d]),children:e(ml.div,{"data-state":IM(u),"data-disabled":s?"":void 0,...c,ref:n})})});LM.displayName=EM;var PM="CollapsibleTrigger",DM=r.forwardRef((t,n)=>{const{__scopeCollapsible:r,...o}=t,a=_M(PM,r);return e(ml.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":IM(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:n,onClick:rl(t.onClick,a.onOpenToggle)})});DM.displayName=PM;var RM="CollapsibleContent",TM=r.forwardRef((t,n)=>{const{forceMount:r,...o}=t,a=_M(RM,t.__scopeCollapsible);return e(jl,{present:r||a.open,children:({present:t})=>e(AM,{...o,ref:n,present:t})})});TM.displayName=RM;var AM=r.forwardRef((t,n)=>{const{__scopeCollapsible:o,present:a,children:i,...s}=t,l=_M(RM,o),[c,u]=r.useState(a),d=r.useRef(null),f=R(n,d),p=r.useRef(0),m=p.current,h=r.useRef(0),v=h.current,g=l.open||c,b=r.useRef(g),y=r.useRef(void 0);return r.useEffect(()=>{const e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),L(()=>{const e=d.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,h.current=t.width,b.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),u(a)}},[l.open,a]),e(ml.div,{"data-state":IM(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...s,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:g&&i})});function IM(e){return e?"open":"closed"}var FM=LM,jM=DM,WM=TM,zM="Accordion",HM=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[BM,VM,$M]=Qy(zM),[YM]=tl(zM,[$M,MM]),qM=MM(),KM=o.forwardRef((t,n)=>{const{type:r,...o}=t,a=o,i=o;return e(BM.Provider,{scope:t.__scopeAccordion,children:"multiple"===r?e(JM,{...i,ref:n}):e(QM,{...a,ref:n})})});KM.displayName=zM;var[GM,UM]=YM(zM),[ZM,XM]=YM(zM,{collapsible:!1}),QM=o.forwardRef((t,n)=>{const{value:r,defaultValue:a,onValueChange:i=()=>{},collapsible:s=!1,...l}=t,[c,u]=ll({prop:r,defaultProp:a??"",onChange:i,caller:zM});return e(GM,{scope:t.__scopeAccordion,value:o.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:o.useCallback(()=>s&&u(""),[s,u]),children:e(ZM,{scope:t.__scopeAccordion,collapsible:s,children:e(nO,{...l,ref:n})})})}),JM=o.forwardRef((t,n)=>{const{value:r,defaultValue:a,onValueChange:i=()=>{},...s}=t,[l,c]=ll({prop:r,defaultProp:a??[],onChange:i,caller:zM}),u=o.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=o.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return e(GM,{scope:t.__scopeAccordion,value:l,onItemOpen:u,onItemClose:d,children:e(ZM,{scope:t.__scopeAccordion,collapsible:!0,children:e(nO,{...s,ref:n})})})}),[eO,tO]=YM(zM),nO=o.forwardRef((t,n)=>{const{__scopeAccordion:r,disabled:a,dir:i,orientation:s="vertical",...l}=t,c=R(o.useRef(null),n),u=VM(r),d="ltr"===ew(i),f=rl(t.onKeyDown,e=>{if(!HM.includes(e.key))return;const t=e.target,n=u().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===r)return;e.preventDefault();let a=r;const i=o-1,l=()=>{a=r+1,a>i&&(a=0)},c=()=>{a=r-1,a<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===s&&(d?l():c());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(d?c():l());break;case"ArrowUp":"vertical"===s&&c()}const f=a%o;n[f].ref.current?.focus()});return e(eO,{scope:r,disabled:a,direction:i,orientation:s,children:e(BM.Slot,{scope:r,children:e(ml.div,{...l,"data-orientation":s,ref:c,onKeyDown:a?void 0:f})})})}),rO="AccordionItem",[oO,aO]=YM(rO),iO=o.forwardRef((t,n)=>{const{__scopeAccordion:r,value:o,...a}=t,i=tO(rO,r),s=UM(rO,r),l=qM(r),c=il(),u=o&&s.value.includes(o)||!1,d=i.disabled||t.disabled;return e(oO,{scope:r,open:u,disabled:d,triggerId:c,children:e(FM,{"data-orientation":i.orientation,"data-state":pO(u),...l,...a,ref:n,disabled:d,open:u,onOpenChange:e=>{e?s.onItemOpen(o):s.onItemClose(o)}})})});iO.displayName=rO;var sO="AccordionHeader",lO=o.forwardRef((t,n)=>{const{__scopeAccordion:r,...o}=t,a=tO(zM,r),i=aO(sO,r);return e(ml.h3,{"data-orientation":a.orientation,"data-state":pO(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:n})});lO.displayName=sO;var cO="AccordionTrigger",uO=o.forwardRef((t,n)=>{const{__scopeAccordion:r,...o}=t,a=tO(zM,r),i=aO(cO,r),s=XM(cO,r),l=qM(r);return e(BM.ItemSlot,{scope:r,children:e(jM,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...o,ref:n})})});uO.displayName=cO;var dO="AccordionContent",fO=o.forwardRef((t,n)=>{const{__scopeAccordion:r,...o}=t,a=tO(zM,r),i=aO(dO,r),s=qM(r);return e(WM,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...s,...o,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function pO(e){return e?"open":"closed"}fO.displayName=dO;var mO=KM,hO=iO,vO=lO,gO=uO,bO=fO;function yO({...t}){return e(mO,{"data-slot":"accordion",...t})}function wO({className:t,...n}){return e(hO,{"data-slot":"accordion-item",className:_t("border-b last:border-b-0",t),...n})}function xO({className:t,children:r,...o}){return e(vO,{className:"flex",children:n(gO,{"data-slot":"accordion-trigger",className:_t("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-hidden hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...o,children:[r,e(Rd,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function CO({className:t,children:n,...r}){return e(bO,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:e("div",{className:_t("pt-0 pb-4",t),children:n})})}const kO=()=>{const[e,t]=a({url:"",host:"",protocol:"",path:"",query:"",hash:""});return i(()=>{const e=window.location.href,n=window.location.host,r=window.location.protocol,o=window.location.pathname,a=window.location.search,i=window.location.hash;t({url:e,host:n,protocol:r,path:o,query:a,hash:i})},[]),{urlInfo:e}},NO=e=>{const[t,n]=a({width:void 0,height:void 0}),r=p(e=>{if(!e||0===e.length)return;const t=e[0];n({width:t.contentRect.width,height:t.contentRect.height})},[]);return i(()=>{const t=e.current;if(!t)return;const n=new ResizeObserver(e=>r(e));return n.observe(t),()=>{n.disconnect()}},[e,r]),t},EO=({size:t=24,...n})=>e("svg",{...n,width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1.91699 12.0026C1.91699 17.2926 6.21033 21.5859 11.5003 21.5859C16.7903 21.5859 21.0837 17.2926 21.0837 12.0026C21.0837 6.7126 16.7903 2.41927 11.5003 2.41927C6.21033 2.41927 1.91699 6.7126 1.91699 12.0026ZM12.2191 8.64844V13.6222L13.8674 11.9739C14.1453 11.6959 14.6053 11.6959 14.8832 11.9739C15.027 12.1176 15.0941 12.2997 15.0941 12.4818C15.0941 12.6639 15.027 12.8459 14.8832 12.9897L12.0082 15.8647C11.7303 16.1426 11.2703 16.1426 10.9924 15.8647L8.11741 12.9897C7.83949 12.7118 7.83949 12.2518 8.11741 11.9739C8.39533 11.6959 8.85533 11.6959 9.13324 11.9739L10.7816 13.6222V8.64844C10.7816 8.25552 11.1074 7.92969 11.5003 7.92969C11.8932 7.92969 12.2191 8.25552 12.2191 8.64844Z",fill:"#FD1414","fill-opacity":"0.75"})}),SO=({size:t=24,...n})=>e("svg",{...n,width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M21.083 12.0013C21.083 6.7113 16.7897 2.41797 11.4997 2.41797C6.20967 2.41797 1.91634 6.7113 1.91634 12.0013C1.91634 17.2913 6.20967 21.5846 11.4997 21.5846C16.7897 21.5846 21.083 17.2913 21.083 12.0013ZM10.7809 15.3555V10.3817L9.13259 12.0301C8.85467 12.308 8.39467 12.308 8.11676 12.0301C7.97301 11.8863 7.90592 11.7042 7.90592 11.5221C7.90592 11.3401 7.97301 11.158 8.11676 11.0142L10.9918 8.13922C11.2697 7.8613 11.7297 7.8613 12.0076 8.13922L14.8826 11.0142C15.1605 11.2921 15.1605 11.7521 14.8826 12.0301C14.6047 12.308 14.1447 12.308 13.8668 12.0301L12.2184 10.3817V15.3555C12.2184 15.7484 11.8926 16.0742 11.4997 16.0742C11.1068 16.0742 10.7809 15.7484 10.7809 15.3555Z",fill:"#94FF53"})});function MO({width:t=160,height:r=26,className:o}){return n("svg",{width:t,height:r,id:"ever-teams-logo",className:_t(o,"text-blue-950 dark:text-white"),viewBox:"0 0 132 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:"url(#clip0_1413_4277)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7706 10.705L14.1706 14.4711C12.262 15.657 10.0534 16.2709 7.80657 16.2401C3.23957 16.2401 0.997559 13.3869 0.997559 9.59289C0.955998 8.40619 1.15595 7.22344 1.58527 6.11633C2.01459 5.00923 2.66433 4.0009 3.49509 3.15247C4.32585 2.30403 5.3203 1.63331 6.41812 1.18079C7.51594 0.728259 8.69425 0.503322 9.88156 0.519897C13.6376 0.519897 15.5996 2.68791 15.5996 5.65491C15.563 7.00454 15.257 8.33344 14.6996 9.56311H5.98357C5.95557 10.9631 6.90857 12.016 8.81357 12.016C10.223 11.9247 11.5854 11.4732 12.7706 10.705ZM11.3136 6.59704C11.398 6.35835 11.4452 6.10815 11.4536 5.8551C11.4536 5.0281 10.8086 4.4281 9.63156 4.4281C8.95707 4.4136 8.29582 4.61651 7.74564 5.00696C7.19545 5.3974 6.78555 5.9546 6.57657 6.59607L11.3136 6.59704ZM18.9646 9.50696L19.4646 6.50696C19.6046 5.79396 19.5766 5.2511 18.9646 5.2511C18.4901 5.2583 18.0222 5.36367 17.5906 5.56091L18.1796 1.2279C19.2915 0.820192 20.4706 0.626653 21.6546 0.657104C24.0656 0.657104 25.5546 1.82594 24.9616 5.16394L24.3456 8.6449C24.0936 10.2749 24.4576 11.1281 25.5506 11.1281C27.1506 11.1281 28.1576 9.87307 28.1576 6.22107C28.1296 4.42881 27.8848 2.64641 27.4286 0.912963H33.0106C33.2736 2.49747 33.4144 4.09983 33.4316 5.70593C33.4316 12.3799 30.4046 16.119 24.8316 16.119C20.0856 16.122 18.2646 13.587 18.9646 9.50696ZM47.4086 10.7069L48.8085 14.473C46.8999 15.6589 44.6914 16.2728 42.4446 16.2421C37.8756 16.2421 35.6336 13.3891 35.6336 9.59509C35.5927 8.40814 35.7933 7.22516 36.2232 6.11804C36.653 5.01092 37.3033 4.00253 38.1344 3.15417C38.9656 2.30582 39.9603 1.63521 41.0584 1.18274C42.1565 0.730267 43.335 0.50555 44.5226 0.522094C48.2786 0.522094 50.2406 2.6901 50.2406 5.6571C50.2062 7.00625 49.9025 8.33488 49.3475 9.56506H40.6306C40.6026 10.9651 41.5556 12.0179 43.4606 12.0179C44.8677 11.9245 46.2275 11.4725 47.4106 10.705L47.4086 10.7069ZM45.9546 6.599C46.0389 6.36028 46.0861 6.11009 46.0946 5.85705C46.0946 5.03005 45.4496 4.43005 44.2726 4.43005C43.5981 4.41555 42.9368 4.61847 42.3866 5.00891C41.8365 5.39935 41.4266 5.95656 41.2176 6.59802L45.9546 6.599ZM52.9046 15.8429L54.5046 6.51404C54.6166 5.80104 54.6166 5.25793 54.0046 5.25793C53.5242 5.28506 53.0515 5.38981 52.6046 5.56799L53.2216 1.23498C54.3478 0.848996 55.5311 0.655904 56.7216 0.66394C58.4036 0.66394 59.6366 1.29208 60.0006 2.80408C60.3752 2.1485 60.9179 1.60453 61.5726 1.22839C62.2273 0.852251 62.9705 0.657391 63.7256 0.66394C64.586 0.652789 65.4352 0.859271 66.1946 1.26404L64.7095 6.28503C63.878 5.8883 62.9679 5.68316 62.0466 5.68494C61.4101 5.71419 60.8046 5.96817 60.3377 6.40173C59.8708 6.8353 59.5728 7.42053 59.4966 8.0531L58.1516 15.8419L52.9046 15.8429ZM67.8397 9.55127C68.5363 9.54536 69.219 9.74631 69.8014 10.1284C70.3839 10.5105 70.84 11.0567 71.112 11.698C71.384 12.3393 71.4597 13.0469 71.3295 13.7312C71.1994 14.4156 70.8692 15.046 70.3808 15.5427C69.8923 16.0394 69.2676 16.3801 68.5855 16.5217C67.9034 16.6633 67.1946 16.5994 66.5489 16.3381C65.9031 16.0769 65.3493 15.6302 64.9575 15.0542C64.5656 14.4782 64.3535 13.7989 64.3477 13.1023V13.0723C64.3457 12.6117 64.4345 12.1555 64.6089 11.7292C64.7833 11.303 65.04 10.9152 65.3642 10.5881C65.6885 10.2611 66.074 10.0011 66.4987 9.823C66.9235 9.64494 67.3791 9.55324 67.8397 9.55127ZM67.8397 10.0203C67.2361 10.0153 66.6447 10.1896 66.1401 10.5208C65.6355 10.852 65.2404 11.3254 65.0049 11.8811C64.7693 12.4368 64.7038 13.0499 64.8166 13.6428C64.9294 14.2358 65.2155 14.7818 65.6387 15.2122C66.062 15.6425 66.6033 15.9378 67.1942 16.0605C67.7852 16.1833 68.3993 16.1279 68.9589 15.9016C69.5184 15.6754 69.9983 15.2883 70.3379 14.7893C70.6775 14.2903 70.8615 13.7019 70.8667 13.0984V13.0723C70.8684 12.6732 70.7915 12.2778 70.6403 11.9084C70.4892 11.5391 70.2668 11.2031 69.9858 10.9197C69.7048 10.6363 69.3707 10.4109 69.0027 10.2566C68.6346 10.1023 68.2388 10.022 67.8397 10.0203ZM66.8887 11.0784H68.0097C68.3349 11.0575 68.6552 11.1653 68.9017 11.3784C69.0056 11.4838 69.0831 11.6123 69.1278 11.7534C69.1724 11.8946 69.183 12.0444 69.1587 12.1904C69.1427 12.4193 69.0537 12.6368 68.9047 12.8113C68.7438 12.9968 68.5369 13.1365 68.3047 13.2163L68.8827 14.8022V14.8354H68.3697L67.8487 13.3145H66.9887L66.7277 14.8345H66.2437L66.8887 11.0784ZM67.3007 11.4854L67.0547 12.9084H67.7607C67.9845 12.9147 68.2036 12.8439 68.3817 12.7083C68.4649 12.6452 68.5344 12.5659 68.5859 12.4751C68.6375 12.3843 68.6701 12.2842 68.6817 12.1804C68.699 12.0919 68.6965 12.0006 68.6744 11.9131C68.6523 11.8256 68.6111 11.744 68.5537 11.6743C68.4867 11.6103 68.4073 11.5606 68.3205 11.5283C68.2337 11.496 68.1412 11.4817 68.0487 11.4863L67.3007 11.4854ZM78.4286 12.0494C78.4006 12.3014 78.3866 12.4764 78.3866 12.5744C78.3866 13.4844 78.8206 13.9394 79.6886 13.9394C80.2206 13.9394 80.8156 13.7644 81.4736 13.4144L81.8936 14.3174C81.1376 14.7654 80.3536 14.9894 79.5416 14.9894C78.7996 14.9894 78.2186 14.7934 77.7986 14.4014C77.3786 13.9954 77.1686 13.4214 77.1686 12.6794C77.1686 12.5394 77.1826 12.3294 77.2106 12.0494L78.2396 4.76242H76.3916L76.5386 3.77542H78.4076L79.0166 1.10842L79.9826 1.00342L79.5836 3.77542H82.4186L82.1246 4.76242H79.4576L78.4286 12.0494ZM92.2117 6.19042C92.2117 7.53442 91.5537 8.53542 90.2377 9.19342C88.9217 9.83742 87.0527 10.2504 84.6307 10.4324V10.5584C84.6307 11.7064 84.8757 12.5534 85.3657 13.0994C85.8697 13.6454 86.5557 13.9184 87.4237 13.9184C87.9977 13.9184 88.5227 13.8344 88.9987 13.6664C89.4887 13.4844 89.9997 13.2044 90.5317 12.8264L91.0777 13.6874C90.4897 14.1214 89.8877 14.4504 89.2717 14.6744C88.6697 14.8844 88.0257 14.9894 87.3397 14.9894C86.0797 14.9894 85.0997 14.6044 84.3997 13.8344C83.6997 13.0644 83.3497 11.9794 83.3497 10.5794C83.3497 9.47342 83.5457 8.38142 83.9377 7.30342C84.3437 6.22542 84.9667 5.32942 85.8067 4.61542C86.6607 3.90142 87.7107 3.54442 88.9567 3.54442C89.9787 3.54442 90.7767 3.79642 91.3507 4.30042C91.9247 4.79042 92.2117 5.42042 92.2117 6.19042ZM88.9567 4.55242C87.6967 4.55242 86.7097 5.03542 85.9957 6.00142C85.2957 6.96742 84.8617 8.12242 84.6937 9.46642C86.7937 9.29842 88.3617 8.96242 89.3977 8.45842C90.4337 7.95442 90.9517 7.21242 90.9517 6.23242C90.9517 5.75642 90.7837 5.35742 90.4477 5.03542C90.1117 4.71342 89.6147 4.55242 88.9567 4.55242ZM101.49 3.77542C100.944 3.62142 100.328 3.54442 99.6417 3.54442C98.3537 3.54442 97.2827 3.91542 96.4287 4.65742C95.5887 5.39942 94.9727 6.32342 94.5807 7.42942C94.1887 8.53542 93.9927 9.63442 93.9927 10.7264C93.9927 12.0424 94.2937 13.0854 94.8957 13.8554C95.5117 14.6114 96.3657 14.9894 97.4577 14.9894C98.1297 14.9894 98.7527 14.8144 99.3267 14.4644C99.9147 14.1004 100.419 13.6104 100.839 12.9944C100.825 13.6104 100.944 14.0724 101.196 14.3804C101.448 14.6744 101.819 14.8774 102.309 14.9894L102.666 14.1284C102.414 14.0164 102.232 13.8764 102.12 13.7084C102.022 13.5264 101.973 13.2884 101.973 12.9944C101.973 12.7284 101.987 12.5184 102.015 12.3644L103.17 4.44742C102.596 4.15342 102.036 3.92942 101.49 3.77542ZM97.1847 5.49742C97.8567 4.85342 98.6897 4.53142 99.6837 4.53142C100.468 4.53142 101.196 4.69942 101.868 5.03542L100.923 11.6504C100.447 12.4064 99.9427 12.9804 99.4107 13.3724C98.8927 13.7644 98.3047 13.9604 97.6467 13.9604C96.8907 13.9604 96.3097 13.6874 95.9037 13.1414C95.4977 12.5954 95.2947 11.7904 95.2947 10.7264C95.2947 9.78842 95.4417 8.84342 95.7357 7.89142C96.0437 6.93942 96.5267 6.14142 97.1847 5.49742ZM118.302 3.54442C119.03 3.54442 119.597 3.78242 120.003 4.25842C120.423 4.72042 120.633 5.36442 120.633 6.19042C120.633 6.41442 120.612 6.66642 120.57 6.94642L119.457 14.7584H118.239L119.331 7.05142C119.373 6.77142 119.394 6.51942 119.394 6.29542C119.394 5.14742 118.911 4.57342 117.945 4.57342C117.301 4.57342 116.678 4.88842 116.076 5.51842C115.474 6.14842 114.865 7.01642 114.249 8.12242L113.304 14.7584H112.086L113.178 7.05142C113.22 6.77142 113.241 6.51942 113.241 6.29542C113.241 5.14742 112.758 4.57342 111.792 4.57342C111.134 4.57342 110.504 4.89542 109.902 5.53942C109.314 6.16942 108.712 7.05142 108.096 8.18542L107.172 14.7584H105.954L107.508 3.77542H108.558L108.264 6.48442C109.44 4.52442 110.735 3.54442 112.149 3.54442C112.863 3.54442 113.43 3.78242 113.85 4.25842C114.284 4.73442 114.494 5.40642 114.48 6.27442C115.614 4.45442 116.888 3.54442 118.302 3.54442ZM131.188 4.78342C130.236 3.95742 129.109 3.54442 127.807 3.54442C127.023 3.54442 126.337 3.67742 125.749 3.94342C125.175 4.20942 124.734 4.56642 124.426 5.01442C124.118 5.46242 123.964 5.95242 123.964 6.48442C123.964 7.18442 124.181 7.76542 124.615 8.22742C125.063 8.67542 125.826 9.06742 126.904 9.40342C127.87 9.71142 128.528 10.0264 128.878 10.3484C129.242 10.6704 129.424 11.1254 129.424 11.7134C129.424 12.3854 129.158 12.9314 128.626 13.3514C128.108 13.7574 127.373 13.9604 126.421 13.9604C125.777 13.9604 125.203 13.8624 124.699 13.6664C124.195 13.4704 123.705 13.1764 123.229 12.7844L122.536 13.4984C123.026 13.9604 123.579 14.3244 124.195 14.5904C124.825 14.8564 125.567 14.9894 126.421 14.9894C127.723 14.9894 128.759 14.6814 129.529 14.0654C130.299 13.4494 130.684 12.6304 130.684 11.6084C130.684 10.8104 130.439 10.1664 129.949 9.67642C129.473 9.18642 128.696 8.77342 127.618 8.43742C126.722 8.17142 126.092 7.89142 125.728 7.59742C125.378 7.28942 125.203 6.89742 125.203 6.42142C125.203 5.84742 125.441 5.39942 125.917 5.07742C126.393 4.74142 127.023 4.57342 127.807 4.57342C128.339 4.57342 128.822 4.65042 129.256 4.80442C129.69 4.95842 130.117 5.19642 130.537 5.51842L131.188 4.78342Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_1413_4277",children:e("rect",{width:132,height:17,fill:"white",transform:"translate(0 0.109863)"})})})]})}function OO({width:t=60,height:r=60,className:o}){return n("svg",{className:_t("mix-blend-difference size-8",o),width:t,height:r,viewBox:"0 0 40 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.301305 30.0417L0.581185 29.3889L4.20635 20.9338L4.20144 20.9242L0.334577 13.3102L0.0104603 12.6721L0.71239 12.4846L9.19627 10.2172L13.1922 1.54579L13.4927 0.893555L14.0859 1.31128L22.1152 6.96599L31.5808 4.42609L32.3695 4.21448L32.336 5.01473L31.9353 14.6145L39.3953 20.0675L40 20.5095L39.4223 20.9851L32.259 26.8807V26.8843L32.243 26.8973L31.9502 36.4851L31.9289 37.179L31.2344 37.0415L22.0143 35.2168L15.0316 40.6565L14.4535 41.1069L14.1245 40.4591L9.84483 32.0334L9.83811 32.0214L1.00836 30.1884L0.301305 30.0417ZM1.96323 29.1895L4.90946 22.3182L9.15843 30.6832L1.96323 29.1895ZM10.6516 30.9931L10.6745 31.0382L21.7022 33.9188L31.048 26.3458L30.7375 15.2001L30.7151 15.1837L30.7182 15.1073L21.8593 8.24458L10.05 11.2081L5.52582 20.9027L10.6516 30.9931ZM14.8657 39.2896L11.3843 32.4357L20.5803 34.8377L14.8657 39.2896ZM30.7765 35.7562L23.1683 34.2506L31.0167 27.8909L30.7765 35.7562ZM38.0756 20.5639L32.2172 25.3857L31.9583 16.0925L38.0756 20.5639ZM31.1081 5.7671L30.7787 13.6611L23.2948 7.86365L31.1081 5.7671ZM13.9812 2.67982L20.6111 7.34897L10.6813 9.84084L13.9812 2.67982ZM1.72897 13.4267L8.55107 11.6035L4.84103 19.5536L1.72897 13.4267ZM38.8031 18.0737L33.1326 6.90982L32.7945 7.07455L38.4651 18.2384L38.8031 18.0737ZM15.8809 1.53828L29.1717 4.18404L29.0965 4.54643L15.8057 1.90068L15.8809 1.53828ZM2.31222 10.6603L11.1714 2.64427L10.9153 2.37262L2.05606 10.3887L2.31222 10.6603ZM0.677161 15.1468L0.377393 27.2163L0 27.2072L0.29976 15.1379L0.677161 15.1468ZM12.6515 39.1303L2.54456 31.3383L2.3111 31.6289L12.4181 39.4208L12.6515 39.1303ZM29.3893 38.1013L17.4202 40.8246L17.3348 40.4644L29.3039 37.7409L29.3893 38.1013ZM32.8416 34.9313L38.7593 22.992L38.4196 22.8304L32.5019 34.7697L32.8416 34.9313Z",fill:"white",pathLength:"1",strokeDashoffset:"0px",strokeDasharray:"1px 1px"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.301305 30.0417L0.581185 29.3889L4.20635 20.9338L4.20144 20.9242L0.334577 13.3102L0.0104603 12.6721L0.71239 12.4846L9.19627 10.2172L13.1922 1.54579L13.4927 0.893555L14.0859 1.31128L22.1152 6.96599L31.5808 4.42609L32.3695 4.21448L32.336 5.01473L31.9353 14.6145L39.3953 20.0675L40 20.5095L39.4223 20.9851L32.259 26.8807V26.8843L32.243 26.8973L31.9502 36.4851L31.9289 37.179L31.2344 37.0415L22.0143 35.2168L15.0316 40.6565L14.4535 41.1069L14.1245 40.4591L9.84483 32.0334L9.83811 32.0214L1.00836 30.1884L0.301305 30.0417ZM1.96323 29.1895L4.90946 22.3182L9.15843 30.6832L1.96323 29.1895ZM10.6516 30.9931L10.6745 31.0382L21.7022 33.9188L31.048 26.3458L30.7375 15.2001L30.7151 15.1837L30.7182 15.1073L21.8593 8.24458L10.05 11.2081L5.52582 20.9027L10.6516 30.9931ZM14.8657 39.2896L11.3843 32.4357L20.5803 34.8377L14.8657 39.2896ZM30.7765 35.7562L23.1683 34.2506L31.0167 27.8909L30.7765 35.7562ZM38.0756 20.5639L32.2172 25.3857L31.9583 16.0925L38.0756 20.5639ZM31.1081 5.7671L30.7787 13.6611L23.2948 7.86365L31.1081 5.7671ZM13.9812 2.67982L20.6111 7.34897L10.6813 9.84084L13.9812 2.67982ZM1.72897 13.4267L8.55107 11.6035L4.84103 19.5536L1.72897 13.4267ZM38.8031 18.0737L33.1326 6.90982L32.7945 7.07455L38.4651 18.2384L38.8031 18.0737ZM15.8809 1.53828L29.1717 4.18404L29.0965 4.54643L15.8057 1.90068L15.8809 1.53828ZM2.31222 10.6603L11.1714 2.64427L10.9153 2.37262L2.05606 10.3887L2.31222 10.6603ZM0.677161 15.1468L0.377393 27.2163L0 27.2072L0.29976 15.1379L0.677161 15.1468ZM12.6515 39.1303L2.54456 31.3383L2.3111 31.6289L12.4181 39.4208L12.6515 39.1303ZM29.3893 38.1013L17.4202 40.8246L17.3348 40.4644L29.3039 37.7409L29.3893 38.1013ZM32.8416 34.9313L38.7593 22.992L38.4196 22.8304L32.5019 34.7697L32.8416 34.9313Z",fill:"url(#paint0_linear_2814_32084)",pathLength:"1",strokeDashoffset:"0px",strokeDasharray:"1px 1px"}),e("defs",{children:n("linearGradient",{id:"paint0_linear_2814_32084",x1:"0.807175",y1:"7.04867",x2:"40.6148",y2:"7.78312",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#FF1CF7"}),e("stop",{offset:"1",stopColor:"#00F0FF"})]})})]})}function _O({size:t=24}){return n("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M21 9V3H15",stroke:"#292D32",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M3 15V21H9",stroke:"#292D32",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M21 3L13.5 10.5",stroke:"#292D32",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M10.5 13.5L3 21",stroke:"#292D32",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function LO({size:t}){return n("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M10.65 19.11V4.89C10.65 3.54 10.08 3 8.64 3H5.01C3.57 3 3 3.54 3 4.89V19.11C3 20.46 3.57 21 5.01 21H8.64C10.08 21 10.65 20.46 10.65 19.11Z"}),e("path",{d:"M20.9996 19.11V4.89C20.9996 3.54 20.4296 3 18.9896 3H15.3596C13.9296 3 13.3496 3.54 13.3496 4.89V19.11C13.3496 20.46 13.9196 21 15.3596 21H18.9896C20.4296 21 20.9996 20.46 20.9996 19.11Z"})]})}function PO({size:t}){return n("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M17.49 9.59965L5.6 16.7696C4.9 17.1896 4 16.6896 4 15.8696V7.86965C4 4.37965 7.77 2.19965 10.8 3.93965L15.39 6.57965L17.48 7.77965C18.17 8.18965 18.18 9.18965 17.49 9.59965Z"}),e("path",{d:"M18.0898 15.4567L14.0398 17.7967L9.99981 20.1267C8.54981 20.9567 6.90981 20.7867 5.71981 19.9467C5.13981 19.5467 5.20981 18.6567 5.81981 18.2967L18.5298 10.6767C19.1298 10.3167 19.9198 10.6567 20.0298 11.3467C20.2798 12.8967 19.6398 14.5667 18.0898 15.4567Z"})]})}function DO({size:t}){return n("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M20.36 7.78L4.54 17.28C3.93 17.65 3.11 17.28 3.03 16.57C3.01 16.38 3 16.19 3 16V8C3 5 5 3 8 3H16C19 3 20.23 4.54 20.81 6.65C20.93 7.09 20.74 7.55 20.36 7.78Z"}),e("path",{d:"M21.0004 11.09V16C21.0004 19 19.0004 21 16.0004 21H8.0004C7.0804 21 6.2104 20.75 5.4704 20.31C4.8304 19.94 4.8704 19 5.5004 18.62L19.4804 10.23C20.1504 9.83001 21.0004 10.31 21.0004 11.09Z"})]})}const RO={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",cyan:"#00ffff",magenta:"#ff00ff",silver:"#c0c0c0",gray:"#808080",maroon:"#800000",olive:"#808000",purple:"#800080",teal:"#008080",navy:"#000080"};function TO(e){let t=parseInt(e.slice(1),16);return[t>>16&255,t>>8&255,255&t]}function AO([e,t,n]){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1).toUpperCase()}function IO(e,t,n){t/=100,n/=100;let r=(1-Math.abs(2*n-1))*t,o=r*(1-Math.abs(e/60%2-1)),a=n-r/2,i=0,s=0,l=0;return e>=0&&e<60?(i=r,s=o,l=0):e>=60&&e<120?(i=o,s=r,l=0):e>=120&&e<180?(i=0,s=r,l=o):e>=180&&e<240?(i=0,s=o,l=r):e>=240&&e<300?(i=o,s=0,l=r):e>=300&&e<360&&(i=r,s=0,l=o),[Math.round(255*(i+a)),Math.round(255*(s+a)),Math.round(255*(l+a))]}function FO(e){if(e.startsWith("#"))return TO(e);{const t=RO[e.toLowerCase()]||null;return t?TO(t):null}}function jO(e,t){const n=FO(e);if(!n)throw new Error("Invalid color format.");const[r,o,a]=n;let i=[];for(let e=0;e<t;e++){let n=e/(t-1),s=Math.round(r*n),l=Math.round(o*n),c=Math.round(a*n);i.push(AO([s,l,c]))}return i}function WO(e,t){const n=TO(e);if(!n)throw new Error("Invalid base color format. Please provide a valid hex color.");const r=function(e,t,n){e/=255,t/=255,n/=255;let r,o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=(o+a)/2;if(o===a)i=r=0;else{let l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i=Math.round(60*i)}return{h:i%360,s:Math.round(100*r),l:Math.round(100*s)}}(n[0],n[1],n[2]),o=[e];for(let e=1;e<t;e++){let n={h:(r.h+360/t*e)%360,s:r.s,l:r.l},a=IO(n.h,n.s,n.l);o.push(AO(a))}return o}function zO(e){return e instanceof Error?e.message:"Unknown error"}function HO(e){Hk({title:"Ever Teams Error",description:"string"==typeof e?e:e[0],variant:"destructive",className:"rounded-lg"})}function BO(e){const t=e&&e[0]?Object.keys(e[0].dates).map(e=>({day:e})):[];return e&&e[0]&&e.forEach(e=>{const n=e.employee.fullName;Object.entries(e.dates).forEach(([,e],r)=>{const o=("number"==typeof e?e:e?.sum||0)/3600;t[r]&&(t[r][n]=o.toFixed(1))})}),t}function VO(e){const t={};return e.forEach(e=>{Object.entries(e).forEach(([e])=>{"day"!==e&&(t[e]||(t[e]={label:e.charAt(0).toUpperCase()+e.slice(1)}))})}),t}export{yO as Accordion,CO as AccordionContent,wO as AccordionItem,xO as AccordionTrigger,fd as AlertDialog,xd as AlertDialogAction,Cd as AlertDialogCancel,vd as AlertDialogContent,wd as AlertDialogDescription,bd as AlertDialogFooter,gd as AlertDialogHeader,hd as AlertDialogOverlay,md as AlertDialogPortal,yd as AlertDialogTitle,pd as AlertDialogTrigger,EO as ArrowDown,SO as ArrowUp,el as Avatar,Ft as AvatarFallback,It as AvatarImage,Nd as Badge,dd as Button,Lm as Calendar,Pm as Card,Am as CardContent,Tm as CardDescription,Im as CardFooter,Dm as CardHeader,Rm as CardTitle,Eh as Carousel,Sh as CarouselContent,Mh as CarouselItem,_h as CarouselNext,Oh as CarouselPrevious,Kh as Checkbox,Vg as CloseIcon,NM as ColorPicker,uy as Command,dy as CommandDialog,my as CommandEmpty,hy as CommandGroup,fy as CommandInput,gy as CommandItem,py as CommandList,vy as CommandSeparator,by as CommandShortcut,Hg as DatePicker,Bg as DateRangePicker,eb as Dialog,Kg as DialogClose,Ug as DialogContent,Jg as DialogDescription,Xg as DialogFooter,Zg as DialogHeader,Gg as DialogOverlay,qg as DialogPortal,Qg as DialogTitle,Yg as DialogTrigger,_O as ExpandIcon,pb as Input,mb as InputField,db as Label,HS as Menubar,KS as MenubarCheckboxItem,YS as MenubarContent,FS as MenubarGroup,qS as MenubarItem,US as MenubarLabel,IS as MenubarMenu,jS as MenubarPortal,WS as MenubarRadioGroup,GS as MenubarRadioItem,ZS as MenubarSeparator,XS as MenubarShortcut,zS as MenubarSub,$S as MenubarSubContent,VS as MenubarSubTrigger,BS as MenubarTrigger,vb as Modal,wy as MultiSelect,ky as MultiSelectContent,Ey as MultiSelectGroup,Ny as MultiSelectItem,Sy as MultiSelectSeparator,xy as MultiSelectTrigger,Cy as MultiSelectValue,LO as PauseIcon,Fg as Popover,jg as PopoverClose,zg as PopoverContent,Wg as PopoverTrigger,Zy as Progress,CM as RadioGroup,kM as RadioGroupItem,Lx as Select,Ex as SelectContent,wx as SelectGroup,Mx as SelectItem,Sx as SelectLabel,Nx as SelectScrollDownButton,kx as SelectScrollUpButton,Ox as SelectSeparator,Cx as SelectTrigger,xx as SelectValue,At as ShadCnAvatar,$g as ShadCnDialog,yx as ShadCnSelect,vN as ShadCnTooltip,hb as SpinnerLoader,PO as StartIcon,DO as StopIcon,Bx as Switch,Vx as Table,Yx as TableBody,Zx as TableCaption,Ux as TableCell,qx as TableFooter,Gx as TableHead,$x as TableHeader,Kx as TableRow,DC as Tabs,IC as TabsContent,RC as TabsList,TC as TabsListThemed,AC as TabsTrigger,MO as TeamsLogo,OO as TeamsLogoIcon,jC as Textarea,WC as ThemedButton,_k as Toast,Lk as ToastAction,Pk as ToastClose,Rk as ToastDescription,Sk as ToastProvider,Dk as ToastTitle,Mk as ToastViewport,Vk as Toaster,Js as Tooltip,bN as TooltipContent,hN as TooltipProvider,gN as TooltipTrigger,Pt as areDatesEqual,kd as badgeVariants,ud as buttonVariants,_t as cn,Dt as formatTime,VO as generateChartConfig,WO as generateRandomColors,jO as generateShades,zO as getErrorMessage,Tt as getStartAndEndOfDay,Lt as getTimeDigits,Rt as getWeekStartAndEnd,fb as inputVariants,Fk as reducer,HO as reportError,_x as selectVariants,Hk as toast,BO as transformData,NO as useResizeObserver,Bk as useToast,kO as useUrlInfo};