(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},o={},a=n.parcelRequired5b2;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){o[e]=t},n.parcelRequired5b2=a),a.register("40w2c",(function(t,n){ /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var r,o,i;e(t.exports,"Fragment",(()=>r),(e=>r=e)),e(t.exports,"jsx",(()=>o),(e=>o=e)),e(t.exports,"jsxs",(()=>i),(e=>i=e));var s=a("8dQZc"),l=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)c.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:d.current}}r=u,o=p,i=p})),a.register("8dQZc",(function(e,t){e.exports=React}));var i;i=a("40w2c");var s=a("8dQZc");function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function c(...e){return(0,s.useCallback)(u(...e),e)}const d=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),a=o.find(m);if(a){const e=a.props.children,n=o.map((t=>t===a?s.Children.count(e)>1?s.Children.only(null):(0,s.isValidElement)(e)?e.props.children:null:t));return(0,s.createElement)(f,l({},r,{ref:t}),(0,s.isValidElement)(e)?(0,s.cloneElement)(e,void 0,n):null)}return(0,s.createElement)(f,l({},r,{ref:t}),n)}));d.displayName="Slot";const f=(0,s.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{...h(r,n.props),ref:t?u(t,n.ref):n.ref}):s.Children.count(n)>1?s.Children.only(null):null}));f.displayName="SlotClone";const p=({children:e})=>(0,s.createElement)(s.Fragment,null,e);function m(e){return(0,s.isValidElement)(e)&&e.type===p}function h(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)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function v(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"boolean"==typeof e?"".concat(e):0===e?"0":e,b=g,w=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return b(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=y(t)||y(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 b(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)};var x={};Object.defineProperty(x,Symbol.toStringTag,{value:"Module"});const E="-";function _(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{T(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(E);return""===n[0]&&1!==n.length&&n.shift(),k(n,t)||function(e){if(C.test(e)){const t=C.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function k(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?k(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join(E);return t.validators.find((({validator:e})=>e(a)))?.classGroupId}const C=/^\[(.+)\]$/;function T(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void T(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{T(o,D(t,e),n,r)}))}else{(""===e?t:D(t,e)).classGroupId=n}}))}function D(e,t){let n=e;return t.split(E).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function S(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,a){n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const N="!";function M(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const a=[];let i,s=0,l=0;for(let u=0;ul?i-l:void 0}}}const O=/\s+/;function R(){let e,t,n=0,r="";for(;nt(e)),e());return n=function(e){return{cache:S(e.cacheSize),splitModifiers:M(e),..._(e)}}(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(O).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:a,maybePostfixModifierPosition:i}=n(e);let s=r(i?a.substring(0,i):a),l=Boolean(i);if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=r(a),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?u+N:u,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,i=t+n;return!a.has(i)&&(a.add(i),o(n,r).forEach((e=>a.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,a),a}return function(){return a(R.apply(null,arguments))}}function F(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const j=/^\[(?:([a-z-]+):)?(.+)\]$/i,I=/^\d+\/\d+$/,L=new Set(["px","full","screen"]),U=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\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$/,z=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function W(e){return B(e)||L.has(e)||I.test(e)}function H(e){return oe(e,"length",ae)}function B(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Y(e){return oe(e,"number",B)}function q(e){return Boolean(e)&&Number.isInteger(Number(e))}function Q(e){return e.endsWith("%")&&B(e.slice(0,-1))}function Z(e){return j.test(e)}function K(e){return U.test(e)}const G=new Set(["length","size","percentage"]);function X(e){return oe(e,G,ie)}function J(e){return oe(e,"position",ie)}const ee=new Set(["image","url"]);function te(e){return oe(e,ee,le)}function ne(e){return oe(e,"",se)}function re(){return!0}function oe(e,t,n){const r=j.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function ae(e){return V.test(e)}function ie(){return!1}function se(e){return z.test(e)}function le(e){return $.test(e)}const ue=Object.defineProperty({__proto__:null,isAny:re,isArbitraryImage:te,isArbitraryLength:H,isArbitraryNumber:Y,isArbitraryPosition:J,isArbitraryShadow:ne,isArbitrarySize:X,isArbitraryValue:Z,isInteger:q,isLength:W,isNumber:B,isPercent:Q,isTshirtSize:K},Symbol.toStringTag,{value:"Module"});function ce(){const e=F("colors"),t=F("spacing"),n=F("blur"),r=F("brightness"),o=F("borderColor"),a=F("borderRadius"),i=F("borderSpacing"),s=F("borderWidth"),l=F("contrast"),u=F("grayscale"),c=F("hueRotate"),d=F("invert"),f=F("gap"),p=F("gradientColorStops"),m=F("gradientColorStopPositions"),h=F("inset"),v=F("margin"),g=F("opacity"),y=F("padding"),b=F("saturate"),w=F("scale"),x=F("sepia"),E=F("skew"),_=F("space"),k=F("translate"),C=()=>["auto",Z,t],T=()=>[Z,t],D=()=>["",W,H],S=()=>["auto",B,Z],N=()=>["","0",Z],M=()=>[B,Y],O=()=>[B,Z];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[W,H],blur:["none","",K,Z],brightness:M(),borderColor:[e],borderRadius:["none","","full",K,Z],borderSpacing:T(),borderWidth:D(),contrast:M(),grayscale:N(),hueRotate:O(),invert:N(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Q,H],inset:C(),margin:C(),opacity:M(),padding:T(),saturate:M(),scale:M(),sepia:N(),skew:O(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[K]}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Z]}],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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",q,Z]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",q,Z]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",q,Z]},Z]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[q,Z]},Z]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Z,t]}],"min-w":[{"min-w":["min","max","fit",Z,W]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[K]},K,Z]}],h:[{h:[Z,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W,Z]}],"max-h":[{"max-h":[Z,t,"min","max","fit"]}],"font-size":[{text:["base",K,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[re]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",B,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,H]}],"underline-offset":[{"underline-offset":["auto",W,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",J]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[W,Z]}],"outline-w":[{outline:[W,H]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[W,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,ne]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[g]}],"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-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","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",K,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[q,Z]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[W,H,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function de(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:a={}}){fe(e,"cacheSize",t),fe(e,"prefix",n),fe(e,"separator",r);for(const t in a)pe(e[t],a[t]);for(const t in o)me(e[t],o[t]);return e}function fe(e,t,n){void 0!==n&&(e[t]=n)}function pe(e,t){if(t)for(const n in t)fe(e,n,t[n])}function me(e,t){if(t)for(const n in t){const r=t[n];void 0!==r&&(e[n]=(e[n]||[]).concat(r))}}const he=A(ce);x.createTailwindMerge=A,x.extendTailwindMerge=function(e,...t){return"function"==typeof e?A(ce,e,...t):A((()=>de(ce(),e)),...t)},x.fromTheme=F,x.getDefaultConfig=ce,x.mergeConfigs=de,x.twJoin=R,x.twMerge=he,x.validators=ue;s=a("8dQZc");function ve(...e){return(0,x.twMerge)(g(e))}const ge={default:0},ye=(0,s.createContext)((()=>++ge.default)),be=(e="id")=>{const t=(0,s.useContext)(ye),n=(0,s.useRef)();return n.current||(n.current=`${e}:${t()}`),n.current},we=w("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm gap-1 font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 select-none",{variants:{variant:{default:"bg-primary/90 hover:bg-primary/100 active:opacity-90 text-primary-foreground hover:text-primary-foreground as-classic",solid:"bg-primary/90 hover:bg-primary/100 active:opacity-90 text-primary-foreground hover:text-primary-foreground as-solid",destructive:"bg-destructive/90 hover:bg-destructive/100 active:opacity-90 text-destructive-foreground hover:text-destructive-foreground as-destructive",outline:"border bg-background hover:bg-accent hover:text-accent-foreground active:opacity-80 as-outline",secondary:"bg-secondary/70 text-secondary-foreground hover:bg-secondary/100 active:opacity-80 as-secondary",ghost:"hover:bg-secondary/70 hover:text-secondary-foreground active:opacity-80 as-ghost",link:"text-primary underline-offset-4 hover:underline active:opacity-80 as-link"},size:{default:"h-10 px-4 py-2",md:"h-9 px-4 rounded-md py-2",lg:"h-11 text-base rounded-md px-8",sm:"h-7 rounded px-3 py-1",xs:"h-6 text-xs rounded px-3",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xe=s.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?d:"button";return(0,i.jsx)(s,{className:ve("ui__button",we({variant:t,size:n,className:e})),ref:a,...o})}));xe.displayName="Button";s=a("8dQZc"),s=a("8dQZc");function Ee(e,[t,n]){return Math.min(n,Math.max(t,e))}function _e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}s=a("8dQZc");function ke(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,s.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,s.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,s.createContext)(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=(0,s.useMemo)((()=>i),Object.values(i));return(0,s.createElement)(l.Provider,{value:u},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=(0,s.useContext)(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ce(r,...t)]}function Ce(...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 r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,s.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}s=a("8dQZc"),s=a("8dQZc");function Te(e){const t=(0,s.useRef)(e);return(0,s.useEffect)((()=>{t.current=e})),(0,s.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function De({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,s.useState)(e),[r]=n,o=(0,s.useRef)(r),a=Te(t);return(0,s.useEffect)((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=Te(n);return[i,(0,s.useCallback)((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}const Se=(0,(s=a("8dQZc")).createContext)(void 0);function Ne(e){const t=(0,s.useContext)(Se);return e||t||"ltr"}s=a("8dQZc");function Me(e){const t=(0,s.useRef)({value:e,previous:e});return(0,s.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}s=a("8dQZc"),s=a("8dQZc");const Oe=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{};function Re(e){const[t,n]=(0,s.useState)(void 0);return Oe((()=>{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}s=a("8dQZc");var Pe={};Pe=ReactDOM;const Ae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,s.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,a=r?d:t;return(0,s.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,s.createElement)(a,l({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Fe(e,t){e&&(0,Pe.flushSync)((()=>e.dispatchEvent(t)))}s=a("8dQZc");function je(e){const n=e+"CollectionProvider",[r,o]=ke(n),[a,i]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:n,children:r}=e,o=t(s).useRef(null),i=t(s).useRef(new Map).current;return t(s).createElement(a,{scope:n,itemMap:i,collectionRef:o},r)},u=e+"CollectionSlot",f=t(s).forwardRef(((e,n)=>{const{scope:r,children:o}=e,a=c(n,i(u,r).collectionRef);return t(s).createElement(d,{ref:a},o)})),p=e+"CollectionItemSlot",m="data-radix-collection-item",h=t(s).forwardRef(((e,n)=>{const{scope:r,children:o,...a}=e,l=t(s).useRef(null),u=c(n,l),f=i(p,r);return t(s).useEffect((()=>(f.itemMap.set(l,{ref:l,...a}),()=>{f.itemMap.delete(l)}))),t(s).createElement(d,{[m]:"",ref:u},o)}));return[{Provider:l,Slot:f,ItemSlot:h},function(n){const r=i(e+"CollectionConsumer",n);return t(s).useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const Ie=["PageUp","PageDown"],Le=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ue={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ve="Slider",[ze,$e,We]=je(Ve),[He,Be]=ke(Ve,[We]),[Ye,qe]=He(Ve),Qe=(0,s.forwardRef)(((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:u=!1,minStepsBetweenThumbs:d=0,defaultValue:f=[r],value:p,onValueChange:m=(()=>{}),onValueCommit:h=(()=>{}),inverted:v=!1,...g}=e,[y,b]=(0,s.useState)(null),w=c(t,(e=>b(e))),x=(0,s.useRef)(new Set),E=(0,s.useRef)(0),_="horizontal"===i,k=!y||Boolean(y.closest("form")),C=_?Ge:Xe,[T=[],D]=De({prop:p,defaultProp:f,onChange:e=>{var t;null===(t=[...x.current][E.current])||void 0===t||t.focus(),m(e)}}),S=(0,s.useRef)(T);function N(e,t,{commit:n}={commit:!1}){const i=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,i),l=Ee(s,[r,o]);D(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,d*a)){E.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&h(r),t?r:e}return e}))}return(0,s.createElement)(Ye,{scope:e.__scopeSlider,disabled:u,min:r,max:o,valueIndexToChangeRef:E,thumbs:x.current,values:T,orientation:i},(0,s.createElement)(ze.Provider,{scope:e.__scopeSlider},(0,s.createElement)(ze.Slot,{scope:e.__scopeSlider},(0,s.createElement)(C,l({"aria-disabled":u,"data-disabled":u?"":void 0},g,{ref:w,onPointerDown:_e(g.onPointerDown,(()=>{u||(S.current=T)})),min:r,max:o,inverted:v,onSlideStart:u?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(T,e);N(e,t)},onSlideMove:u?void 0:function(e){N(e,E.current)},onSlideEnd:u?void 0:function(){const e=S.current[E.current];T[E.current]!==e&&h(T)},onHomeKeyDown:()=>!u&&N(r,0,{commit:!0}),onEndKeyDown:()=>!u&&N(o,T.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!u){const n=Ie.includes(e.key)||e.shiftKey&&Le.includes(e.key)?10:1,r=E.current;N(T[r]+a*n*t,r,{commit:!0})}}})))),k&&T.map(((e,t)=>(0,s.createElement)(st,{key:t,name:n?n+(T.length>1?"[]":""):void 0,value:e}))))})),[Ze,Ke]=He(Ve,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ge=(0,s.forwardRef)(((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:u,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,h]=(0,s.useState)(null),v=c(t,(e=>h(e))),g=(0,s.useRef)(),y=Ne(o),b="ltr"===y,w=b&&!a||!b&&a;function x(e){const t=g.current||m.getBoundingClientRect(),o=ut([0,t.width],w?[n,r]:[r,n]);return g.current=t,o(e-t.left)}return(0,s.createElement)(Ze,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width"},(0,s.createElement)(Je,l({dir:y,"data-orientation":"horizontal"},p,{ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);null==i||i(t)},onSlideMove:e=>{const t=x(e.clientX);null==u||u(t)},onSlideEnd:()=>{g.current=void 0,null==d||d()},onStepKeyDown:e=>{const t=Ue[w?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})))})),Xe=(0,s.forwardRef)(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:u,onStepKeyDown:d,...f}=e,p=(0,s.useRef)(null),m=c(t,p),h=(0,s.useRef)(),v=!o;function g(e){const t=h.current||p.current.getBoundingClientRect(),o=ut([0,t.height],v?[r,n]:[n,r]);return h.current=t,o(e-t.top)}return(0,s.createElement)(Ze,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},(0,s.createElement)(Je,l({"data-orientation":"vertical"},f,{ref:m,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);null==a||a(t)},onSlideMove:e=>{const t=g(e.clientY);null==i||i(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>{const t=Ue[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})))})),Je=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:u,onStepKeyDown:c,...d}=e,f=qe(Ve,n);return(0,s.createElement)(Ae.span,l({},d,{ref:t,onKeyDown:_e(e.onKeyDown,(e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):Ie.concat(Le).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:_e(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():r(e)})),onPointerMove:_e(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:_e(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))}))})),et="SliderTrack",tt=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=qe(et,n);return(0,s.createElement)(Ae.span,l({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),nt="SliderRange",rt=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=qe(nt,n),a=Ke(nt,n),i=c(t,(0,s.useRef)(null)),u=o.values.length,d=o.values.map((e=>lt(e,o.min,o.max))),f=u>1?Math.min(...d):0,p=100-Math.max(...d);return(0,s.createElement)(Ae.span,l({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:i,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:p+"%"}}))})),ot="SliderThumb",at=(0,s.forwardRef)(((e,t)=>{const n=$e(e.__scopeSlider),[r,o]=(0,s.useState)(null),a=c(t,(e=>o(e))),i=(0,s.useMemo)((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return(0,s.createElement)(it,l({},e,{ref:a,index:i}))})),it=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=qe(ot,n),i=Ke(ot,n),[u,d]=(0,s.useState)(null),f=c(t,(e=>d(e))),p=Re(u),m=a.values[r],h=void 0===m?0:lt(m,a.min,a.max),v=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,a.values.length),g=null==p?void 0:p[i.size],y=g?function(e,t,n){const r=e/2,o=ut([0,50],[0,r]);return(r-o(t)*n)*n}(g,h,i.direction):0;return(0,s.useEffect)((()=>{if(u)return a.thumbs.add(u),()=>{a.thumbs.delete(u)}}),[u,a.thumbs]),(0,s.createElement)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${h}% + ${y}px)`}},(0,s.createElement)(ze.ItemSlot,{scope:e.__scopeSlider},(0,s.createElement)(Ae.span,l({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":m,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:f,style:void 0===m?{display:"none"}:e.style,onFocus:_e(e.onFocus,(()=>{a.valueIndexToChangeRef.current=r}))}))))})),st=e=>{const{value:t,...n}=e,r=(0,s.useRef)(null),o=Me(t);return(0,s.useEffect)((()=>{const e=r.current,n=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&a){const n=new Event("input",{bubbles:!0});a.call(e,t),e.dispatchEvent(n)}}),[o,t]),(0,s.createElement)("input",l({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function lt(e,t,n){return Ee(100/(n-t)*(e-t),[0,100])}function ut(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const ct=Qe,dt=tt,ft=rt,pt=at,mt=s.forwardRef((({className:e,...t},n)=>(0,i.jsxs)(ct,{ref:n,className:ve("ui__slider","relative flex w-full touch-none select-none items-center",e),...t,children:[(0,i.jsx)(dt,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,i.jsx)(ft,{className:"absolute h-full bg-primary"})}),(0,i.jsx)(pt,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));mt.displayName=ct.displayName;s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc");function ht(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e);(0,s.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const vt="dismissableLayer.update",gt="dismissableLayer.pointerDownOutside",yt="dismissableLayer.focusOutside";let bt;const wt=(0,s.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xt=(0,s.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:u,onDismiss:d,...f}=e,p=(0,s.useContext)(wt),[m,h]=(0,s.useState)(null),v=null!==(n=null==m?void 0:m.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=(0,s.useState)({}),y=c(t,(e=>h(e))),b=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(w),E=m?b.indexOf(m):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,k=E>=x,C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e),r=(0,s.useRef)(!1),o=(0,s.useRef)((()=>{}));return(0,s.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){kt(gt,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...p.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v),T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e),r=(0,s.useRef)(!1);return(0,s.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){kt(yt,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...p.branches].some((e=>e.contains(t)))||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v);return ht((e=>{E===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),v),(0,s.useEffect)((()=>{if(m)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(bt=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),_t(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=bt)}}),[m,v,r,p]),(0,s.useEffect)((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),_t())}),[m,p]),(0,s.useEffect)((()=>{const e=()=>g({});return document.addEventListener(vt,e),()=>document.removeEventListener(vt,e)}),[]),(0,s.createElement)(Ae.div,l({},f,{ref:y,style:{pointerEvents:_?k?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,C.onPointerDownCapture)}))})),Et=(0,s.forwardRef)(((e,t)=>{const n=(0,s.useContext)(wt),r=(0,s.useRef)(null),o=c(t,r);return(0,s.useEffect)((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,s.createElement)(Ae.div,l({},e,{ref:o}))}));function _t(){const e=new CustomEvent(vt);document.dispatchEvent(e)}function kt(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?Fe(o,a):o.dispatchEvent(a)}const Ct=xt,Tt=Et;s=a("8dQZc");let Dt=0;function St(){(0,s.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Nt()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Nt()),Dt++,()=>{1===Dt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Dt--}}),[])}function Nt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}s=a("8dQZc");const Mt="focusScope.autoFocusOnMount",Ot="focusScope.autoFocusOnUnmount",Rt={bubbles:!1,cancelable:!0},Pt=(0,s.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,d]=(0,s.useState)(null),f=Te(o),p=Te(a),m=(0,s.useRef)(null),h=c(t,(e=>d(e))),v=(0,s.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,s.useEffect)((()=>{if(r){function e(e){if(v.paused||!u)return;const t=e.target;u.contains(t)?m.current=t:It(m.current,{select:!0})}function t(e){if(v.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||It(m.current,{select:!0}))}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver((function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&It(u)}));return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[r,u,v.paused]),(0,s.useEffect)((()=>{if(u){Lt.add(v);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(Mt,Rt);u.addEventListener(Mt,f),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(It(r,{select:t}),document.activeElement!==n)return}((e=At(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&It(u))}return()=>{u.removeEventListener(Mt,f),setTimeout((()=>{const e=new CustomEvent(Ot,Rt);u.addEventListener(Ot,p),u.dispatchEvent(e),e.defaultPrevented||It(null!=t?t:document.body,{select:!0}),u.removeEventListener(Ot,p),Lt.remove(v)}),0)}}var e}),[u,f,p,v]);const g=(0,s.useCallback)((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=At(e),n=Ft(t,e),r=Ft(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&It(a,{select:!0})):(e.preventDefault(),n&&It(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return(0,s.createElement)(Ae.div,l({tabIndex:-1},i,{ref:h,onKeyDown:g}))}));function At(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 Ft(e,t){for(const n of e)if(!jt(n,{upTo:t}))return n}function jt(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 It(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()}}const Lt=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Ut(e,t),e.unshift(t)},remove(t){var n;e=Ut(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Ut(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Vt=(s=a("8dQZc"))["useId".toString()]||(()=>{});let zt=0;function $t(e){const[t,n]=s.useState(Vt());return Oe((()=>{e||n((e=>null!=e?e:String(zt++)))}),[e]),e||(t?`radix-${t}`:"")}s=a("8dQZc");const Wt=["top","right","bottom","left"],Ht=Math.min,Bt=Math.max,Yt=Math.round,qt=Math.floor,Qt=e=>({x:e,y:e}),Zt={left:"right",right:"left",bottom:"top",top:"bottom"},Kt={start:"end",end:"start"};function Gt(e,t,n){return Bt(e,Ht(t,n))}function Xt(e,t){return"function"==typeof e?e(t):e}function Jt(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function tn(e){return"x"===e?"y":"x"}function nn(e){return"y"===e?"height":"width"}function rn(e){return["top","bottom"].includes(Jt(e))?"y":"x"}function on(e){return tn(rn(e))}function an(e,t,n){void 0===n&&(n=!1);const r=en(e),o=on(e),a=nn(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cn(i)),[i,cn(i)]}function sn(e){const t=cn(e);return[ln(e),t,ln(t)]}function ln(e){return e.replace(/start|end/g,(e=>Kt[e]))}function un(e,t,n,r){const o=en(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(Jt(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(ln)))),a}function cn(e){return e.replace(/left|right|bottom|top/g,(e=>Zt[e]))}function dn(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 fn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pn(e,t,n){let{reference:r,floating:o}=e;const a=rn(t),i=on(t),s=nn(i),l=Jt(t),u="y"===a,c=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:c,y:r.y-o.height};break;case"bottom":p={x:c,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(en(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}const mn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=pn(u,r,l),f=r,p={},m=0;for(let n=0;n({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xt(e,t)||{};if(null==u)return{};const d=dn(c),f={x:n,y:r},p=on(o),m=nn(p),h=await i.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let _=E?E[b]:0;_&&await(null==i.isElement?void 0:i.isElement(E))||(_=s.floating[b]||a.floating[m]);const k=w/2-x/2,C=_/2-h[m]/2-1,T=Ht(d[g],C),D=Ht(d[y],C),S=T,N=_-h[m]-D,M=_/2-h[m]/2+k,O=Gt(S,M,N),R=!l.arrow&&null!=en(o)&&M!=O&&a.reference[m]/2-(Me<=0))){var C,T;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(T=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.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:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function yn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bn(e){return Wt.some((t=>e[t]>=0))}const wn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const e=yn(await hn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bn(e)}}}case"escaped":{const e=yn(await hn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bn(e)}}}default:return{}}}}};const xn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=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=Jt(n),s=en(n),l="y"===rn(n),u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,d=Xt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},En=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xt(e,t),u={x:n,y:r},c=await hn(t,l),d=rn(Jt(o)),f=tn(d);let p=u[f],m=u[d];if(a){const e="y"===f?"bottom":"right";p=Gt(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";m=Gt(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},_n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=(()=>{}),...s}=Xt(e,t),l=await hn(t,s),u=Jt(n),c=en(n),d="y"===rn(n),{width:f,height:p}=r.floating;let m,h;"top"===u||"bottom"===u?(m=u,h=c===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=u,m="end"===c?"top":"bottom");const v=p-l[m],g=f-l[h],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-l.left-l.right;w=c||y?Ht(g,e):e}else{const e=p-l.top-l.bottom;b=c||y?Ht(v,e):e}if(y&&!c){const e=Bt(l.left,0),t=Bt(l.right,0),n=Bt(l.top,0),r=Bt(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Bt(l.left,l.right)):b=p-2*(0!==n||0!==r?n+r:Bt(l.top,l.bottom))}await i({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(a.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function kn(e){return Dn(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Tn(e){var t;return null==(t=(Dn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dn(e){return e instanceof Node||e instanceof Cn(e).Node}function Sn(e){return e instanceof Element||e instanceof Cn(e).Element}function Nn(e){return e instanceof HTMLElement||e instanceof Cn(e).HTMLElement}function Mn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot)}function On(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rn(e){return["table","td","th"].includes(kn(e))}function Pn(e){const t=Fn(),n=In(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function An(e){let t=Un(e);for(;Nn(t)&&!jn(t);){if(Pn(t))return t;t=Un(t)}return null}function Fn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jn(e){return["html","body","#document"].includes(kn(e))}function In(e){return Cn(e).getComputedStyle(e)}function Ln(e){return Sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Un(e){if("html"===kn(e))return e;const t=e.assignedSlot||e.parentNode||Mn(e)&&e.host||Tn(e);return Mn(t)?t.host:t}function Vn(e){const t=Un(e);return jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nn(t)&&On(t)?t:Vn(t)}function zn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Vn(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Cn(o);return a?t.concat(i,i.visualViewport||[],On(o)?o:[],i.frameElement&&n?zn(i.frameElement):[]):t.concat(o,zn(o,[],n))}function $n(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nn(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Yt(n)!==a||Yt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Wn(e){return Sn(e)?e:e.contextElement}function Hn(e){const t=Wn(e);if(!Nn(t))return Qt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=$n(t);let i=(a?Yt(n.width):n.width)/r,s=(a?Yt(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Bn=Qt(0);function Yn(e){const t=Cn(e);return Fn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Bn}function qn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Wn(e);let i=Qt(1);t&&(r?Sn(r)&&(i=Hn(r)):i=Hn(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Cn(e))&&t}(a,n,r)?Yn(a):Qt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Cn(a),t=r&&Sn(r)?Cn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Hn(n),t=n.getBoundingClientRect(),r=In(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=Cn(n).frameElement}}return fn({width:c,height:d,x:l,y:u})}function Qn(e){return qn(Tn(e)).left+Ln(e).scrollLeft}function Zn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Cn(e),r=Tn(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=Fn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Tn(e),n=Ln(e),r=e.ownerDocument.body,o=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Qn(e);const s=-n.scrollTop;return"rtl"===In(r).direction&&(i+=Bt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Tn(e));else if(Sn(t))r=function(e,t){const n=qn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Nn(e)?Hn(e):Qt(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=Yn(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return fn(r)}function Kn(e,t){const n=Un(e);return!(n===t||!Sn(n)||jn(n))&&("fixed"===In(n).position||Kn(n,t))}function Gn(e,t,n){const r=Nn(t),o=Tn(t),a="fixed"===n,i=qn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Qt(0);if(r||!r&&!a)if(("body"!==kn(t)||On(o))&&(s=Ln(t)),r){const e=qn(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Qn(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Xn(e,t){return Nn(e)&&"fixed"!==In(e).position?t?t(e):e.offsetParent:null}function Jn(e,t){const n=Cn(e);if(!Nn(e))return n;let r=Xn(e,t);for(;r&&Rn(r)&&"static"===In(r).position;)r=Xn(r,t);return r&&("html"===kn(r)||"body"===kn(r)&&"static"===In(r).position&&!Pn(r))?n:r||An(e)||n}const er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Nn(n),a=Tn(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=Qt(1);const l=Qt(0);if((o||!o&&"fixed"!==r)&&(("body"!==kn(n)||On(a))&&(i=Ln(n)),Nn(n))){const e=qn(n);s=Hn(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},getDocumentElement:Tn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=zn(e,[],!1).filter((e=>Sn(e)&&"body"!==kn(e))),o=null;const a="fixed"===In(e).position;let i=a?Un(e):e;for(;Sn(i)&&!jn(i);){const t=In(i),n=Pn(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||On(i)&&!n&&Kn(e,i))?r=r.filter((e=>e!==i)):o=t,i=Un(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=Zn(t,n,o);return e.top=Bt(r.top,e.top),e.right=Ht(r.right,e.right),e.bottom=Ht(r.bottom,e.bottom),e.left=Bt(r.left,e.left),e}),Zn(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Jn,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Jn,a=this.getDimensions;return{reference:Gn(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return $n(e)},getScale:Hn,isElement:Sn,isRTL:function(e){return"rtl"===In(e).direction}};function tr(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,u=Wn(e),c=o||a?[...u?zn(u):[],...zn(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Tn(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-qt(c)+"px "+-qt(o.clientWidth-(u+d))+"px "+-qt(o.clientHeight-(c+f))+"px "+-qt(u)+"px",threshold:Bt(0,Ht(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let h=l?qn(e):null;return l&&function t(){const r=qn(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const nr=(e,t,n)=>{const r=new Map,o={platform:er,...n},a={...o.platform,_c:r};return mn(e,t,{...o,platform:a})};s=a("8dQZc"),s=a("8dQZc");const rr=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?vn({element:n.current,padding:r}).fn(t):{}:n?vn({element:n,padding:r}).fn(t):{};var o}});var or="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function ar(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(!ar(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)&&!ar(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ir(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sr(e,t){const n=ir(e);return Math.round(t*n)/n}function lr(e){const t=s.useRef(e);return or((()=>{t.current=e})),t}function ur(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=s.useState(r);ar(p,r)||m(r);const[h,v]=s.useState(null),[g,y]=s.useState(null),b=s.useCallback((e=>{e!=_.current&&(_.current=e,v(e))}),[v]),w=s.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[y]),x=a||h,E=i||g,_=s.useRef(null),k=s.useRef(null),C=s.useRef(d),T=lr(u),D=lr(o),S=s.useCallback((()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};D.current&&(e.platform=D.current),nr(_.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};N.current&&!ar(C.current,t)&&(C.current=t,Pe.flushSync((()=>{f(t)})))}))}),[p,t,n,D]);or((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const N=s.useRef(!1);or((()=>(N.current=!0,()=>{N.current=!1})),[]),or((()=>{if(x&&(_.current=x),E&&(k.current=E),x&&E){if(T.current)return T.current(x,E,S);S()}}),[x,E,S,T]);const M=s.useMemo((()=>({reference:_,floating:k,setReference:b,setFloating:w})),[b,w]),O=s.useMemo((()=>({reference:x,floating:E})),[x,E]),R=s.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=sr(O.floating,d.x),r=sr(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ir(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,d.x,d.y]);return s.useMemo((()=>({...d,update:S,refs:M,elements:O,floatingStyles:R})),[d,S,M,O,R])}const cr=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,s.createElement)(Ae.svg,l({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,s.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),dr=cr,fr="Popper",[pr,mr]=ke(fr),[hr,vr]=pr(fr),gr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,s.useState)(null);return(0,s.createElement)(hr,{scope:t,anchor:r,onAnchorChange:o},n)},yr="PopperAnchor",br=(0,s.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=vr(yr,n),i=(0,s.useRef)(null),u=c(t,i);return(0,s.useEffect)((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:(0,s.createElement)(Ae.div,l({},o,{ref:u}))})),wr="PopperContent",[xr,Er]=pr(wr),_r=(0,s.forwardRef)(((e,t)=>{var n,r,o,a,i,u,d,f;const{__scopePopper:p,side:m="bottom",sideOffset:h=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:_=!1,updatePositionStrategy:k="optimized",onPlaced:C,...T}=e,D=vr(wr,p),[S,N]=(0,s.useState)(null),M=c(t,(e=>N(e))),[O,R]=(0,s.useState)(null),P=Re(O),A=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,F=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,j=m+("center"!==v?"-"+v:""),I="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},L=Array.isArray(w)?w:[w],U=L.length>0,V={padding:I,boundary:L.filter(Dr),altBoundary:U},{refs:z,floatingStyles:$,placement:W,isPositioned:H,middlewareData:B}=ur({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>tr(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[xn({mainAxis:h+F,alignmentAxis:g}),b&&En({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:a}=e,{offset:i=0,mainAxis:s=!0,crossAxis:l=!0}=Xt(Y,e),u={x:t,y:n},c=rn(r),d=tn(c);let f=u[d],p=u[c];const m=Xt(i,e),h="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+h.mainAxis,n=o.reference[d]+o.reference[e]-h.mainAxis;fn&&(f=n)}if(l){var v,g;const e="y"===d?"width":"height",t=["top","left"].includes(Jt(r)),n=o.reference[c]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[c])||0)+(t?0:h.crossAxis),i=o.reference[c]+o.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[c])||0)-(t?h.crossAxis:0);pi&&(p=i)}return{[d]:f,[c]:p}}}):void 0,...V}),b&&gn({...V}),_n({...V,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`)}}),O&&rr({element:O,padding:y}),Sr({arrowWidth:A,arrowHeight:F}),_&&wn({strategy:"referenceHidden",...V})]});var Y;const[q,Q]=Nr(W),Z=Te(C);Oe((()=>{H&&(null==Z||Z())}),[H,Z]);const K=null===(o=B.arrow)||void 0===o?void 0:o.x,G=null===(a=B.arrow)||void 0===a?void 0:a.y,X=0!==(null===(i=B.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=(0,s.useState)();return Oe((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]),(0,s.createElement)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:H?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(u=B.transformOrigin)||void 0===u?void 0:u.x,null===(d=B.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},(0,s.createElement)(xr,{scope:p,placedSide:q,onArrowChange:R,arrowX:K,arrowY:G,shouldHideArrow:X},(0,s.createElement)(Ae.div,l({"data-side":q,"data-align":Q},T,{ref:M,style:{...T.style,animation:H?void 0:"none",opacity:null!==(f=B.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),kr="PopperArrow",Cr={top:"bottom",right:"left",bottom:"top",left:"right"},Tr=(0,s.forwardRef)((function(e,t){const{__scopePopper:n,...r}=e,o=Er(kr,n),a=Cr[o.placedSide];return(0,s.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,s.createElement)(dr,l({},r,{ref:t,style:{...r.style,display:"block"}})))}));function Dr(e){return null!==e}const Sr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=Nr(s),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function Nr(e){const[t,n="center"]=e.split("-");return[t,n]}const Mr=gr,Or=br,Rr=_r,Pr=Tr;const Ar=(0,(s=a("8dQZc")).forwardRef)(((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...a}=e;return o?t(Pe).createPortal((0,s.createElement)(Ae.div,l({},a,{ref:n})),o):null}));s=a("8dQZc");const Fr=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,s.useState)(),r=(0,s.useRef)({}),o=(0,s.useRef)(e),a=(0,s.useRef)("none"),i=e?"mounted":"unmounted",[l,u]=function(e,t){return(0,s.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,s.useEffect)((()=>{const e=jr(r.current);a.current="mounted"===l?e:"none"}),[l]),Oe((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=jr(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),Oe((()=>{if(t){const e=e=>{const n=jr(r.current).includes(e.animationName);e.target===t&&n&&(0,Pe.flushSync)((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=jr(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,s.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),a=c(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,s.cloneElement)(o,{ref:a}):null};function jr(e){return(null==e?void 0:e.animationName)||"none"}Fr.displayName="Presence";s=a("8dQZc");const Ir="rovingFocusGroup.onEntryFocus",Lr={bubbles:!1,cancelable:!0},Ur="RovingFocusGroup",[Vr,zr,$r]=je(Ur),[Wr,Hr]=ke(Ur,[$r]),[Br,Yr]=Wr(Ur),qr=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Vr.Provider,{scope:e.__scopeRovingFocusGroup},(0,s.createElement)(Vr.Slot,{scope:e.__scopeRovingFocusGroup},(0,s.createElement)(Qr,l({},e,{ref:t})))))),Qr=(0,s.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,...p}=e,m=(0,s.useRef)(null),h=c(t,m),v=Ne(a),[g=null,y]=De({prop:i,defaultProp:u,onChange:d}),[b,w]=(0,s.useState)(!1),x=Te(f),E=zr(n),_=(0,s.useRef)(!1),[k,C]=(0,s.useState)(0);return(0,s.useEffect)((()=>{const e=m.current;if(e)return e.addEventListener(Ir,x),()=>e.removeEventListener(Ir,x)}),[x]),(0,s.createElement)(Br,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:(0,s.useCallback)((e=>y(e)),[y]),onItemShiftTab:(0,s.useCallback)((()=>w(!0)),[]),onFocusableItemAdd:(0,s.useCallback)((()=>C((e=>e+1))),[]),onFocusableItemRemove:(0,s.useCallback)((()=>C((e=>e-1))),[])},(0,s.createElement)(Ae.div,l({tabIndex:b||0===k?-1:0,"data-orientation":r},p,{ref:h,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,(()=>{_.current=!0})),onFocus:_e(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Ir,Lr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter((e=>e.focusable));Xr([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)))}}_.current=!1})),onBlur:_e(e.onBlur,(()=>w(!1)))})))})),Zr="RovingFocusGroupItem",Kr=(0,s.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,u=$t(),c=a||u,d=Yr(Zr,n),f=d.currentTabStopId===c,p=zr(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return(0,s.useEffect)((()=>{if(r)return m(),()=>h()}),[r,m,h]),(0,s.createElement)(Vr.ItemSlot,{scope:n,id:c,focusable:r,active:o},(0,s.createElement)(Ae.span,l({tabIndex:f?0:-1,"data-orientation":d.orientation},i,{ref:t,onMouseDown:_e(e.onMouseDown,(e=>{r?d.onItemFocus(c):e.preventDefault()})),onFocus:_e(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:_e(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.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:Gr[r]}(e,d.orientation,d.dir);if(void 0!==t){e.preventDefault();let o=p().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=d.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>Xr(o)))}var n,r}))})))})),Gr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xr(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Jr=qr,eo=Kr;var to=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},no=new WeakMap,ro=new WeakMap,oo={},ao=0,io=function(e){return e&&(e.host||io(e.parentNode))},so=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=io(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);oo[n]||(oo[n]=new WeakMap);var a=oo[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(no.get(e)||0)+1,u=(a.get(e)||0)+1;no.set(e,l),a.set(e,u),i.push(e),1===l&&o&&ro.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),s.clear(),ao++,function(){i.forEach((function(e){var t=no.get(e)-1,o=a.get(e)-1;no.set(e,t),a.set(e,o),t||(ro.has(e)||e.removeAttribute(r),ro.delete(e)),o||e.removeAttribute(n)})),--ao||(no=new WeakMap,no=new WeakMap,ro=new WeakMap,oo={})}},lo=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||to(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),so(r,o,n,"aria-hidden")):function(){return null}};var uo=function(){return uo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n