@sigtes/ui 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,182 +1,505 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),gt=require("react-dom");function ss(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=ss(y),Zn=ss(gt);var yn={exports:{}},Wt={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ci;function $c(){if(ci)return Wt;ci=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var s=null;if(i!==void 0&&(s=""+i),r.key!==void 0&&(s=""+r.key),"key"in r){i={};for(var a in r)a!=="key"&&(i[a]=r[a])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:s,ref:r!==void 0?r:null,props:i}}return Wt.Fragment=t,Wt.jsx=n,Wt.jsxs=n,Wt}var Kt={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ui;function Lc(){return ui||(ui=1,process.env.NODE_ENV!=="production"&&(function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===F?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case p:return"Fragment";case x:return"Profiler";case w:return"StrictMode";case E:return"Suspense";case I:return"SuspenseList";case k:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case h:return"Portal";case S:return(_.displayName||"Context")+".Provider";case b:return(_._context.displayName||"Context")+".Consumer";case C:var $=_.render;return _=_.displayName,_||(_=$.displayName||$.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case M:return $=_.displayName||null,$!==null?$:e(_.type)||"Memo";case R:$=_._payload,_=_._init;try{return e(_($))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var $=!1}catch{$=!0}if($){$=console;var B=$.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return B.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(_)}}function o(_){if(_===p)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===R)return"<...>";try{var $=e(_);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function r(){var _=A.A;return _===null?null:_.getOwner()}function i(){return Error("react-stack-top-frame")}function s(_){if(W.call(_,"key")){var $=Object.getOwnPropertyDescriptor(_,"key").get;if($&&$.isReactWarning)return!1}return _.key!==void 0}function a(_,$){function B(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$))}B.isReactWarning=!0,Object.defineProperty(_,"key",{get:B,configurable:!0})}function l(){var _=e(this.type);return O[_]||(O[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function c(_,$,B,K,J,oe,ne,T){return B=oe.ref,_={$$typeof:d,type:_,key:$,props:oe,_owner:J},(B!==void 0?B:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function u(_,$,B,K,J,oe,ne,T){var U=$.children;if(U!==void 0)if(K)if(H(U)){for(K=0;K<U.length;K++)f(U[K]);Object.freeze&&Object.freeze(U)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(U);if(W.call($,"key")){U=e(_);var Q=Object.keys($).filter(function(ee){return ee!=="key"});K=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",N[U+K]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,K,U,Q,U),N[U+K]=!0)}if(U=null,B!==void 0&&(n(B),U=""+B),s($)&&(n($.key),U=""+$.key),"key"in $){B={};for(var z in $)z!=="key"&&(B[z]=$[z])}else B=$;return U&&a(B,typeof _=="function"?_.displayName||_.name||"Unknown":_),c(_,U,oe,J,r(),B,ne,T)}function f(_){typeof _=="object"&&_!==null&&_.$$typeof===d&&_._store&&(_._store.validated=1)}var g=y,d=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),A=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,H=Array.isArray,G=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(_){return _()}};var D,O={},V=g.react_stack_bottom_frame.bind(g,i)(),P=G(o(i)),N={};Kt.Fragment=p,Kt.jsx=function(_,$,B,K,J){var oe=1e4>A.recentlyCreatedOwnerStacks++;return u(_,$,B,!1,K,J,oe?Error("react-stack-top-frame"):V,oe?G(o(_)):P)},Kt.jsxs=function(_,$,B,K,J){var oe=1e4>A.recentlyCreatedOwnerStacks++;return u(_,$,B,!0,K,J,oe?Error("react-stack-top-frame"):V,oe?G(o(_)):P)}})()),Kt}var di;function jc(){return di||(di=1,process.env.NODE_ENV==="production"?yn.exports=$c():yn.exports=Lc()),yn.exports}var v=jc();function fi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qn(...e){return t=>{let n=!1;const o=e.map(r=>{const i=fi(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():fi(e[r],null)}}}}function ae(...e){return m.useCallback(Qn(...e),e)}function At(e){const t=zc(e),n=m.forwardRef((o,r)=>{const{children:i,...s}=o,a=m.Children.toArray(i),l=a.find(Gc);if(l){const c=l.props.children,u=a.map(f=>f===l?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return v.jsx(t,{...s,ref:r,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return v.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var Vc=At("Slot");function zc(e){const t=m.forwardRef((n,o)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const s=Uc(r),a=Hc(i,r.props);return r.type!==m.Fragment&&(a.ref=o?Qn(o,s):s),m.cloneElement(r,a)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bc=Symbol("radix.slottable");function Gc(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bc}function Hc(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const l=i(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Uc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function as(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=as(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ls(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=as(e))&&(o&&(o+=" "),o+=t);return o}const gi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,pi=ls,Wc=(e,t)=>n=>{var o;if(t?.variants==null)return pi(e,n?.class,n?.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const g=gi(u)||gi(f);return r[c][g]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,g]=u;return g===void 0||(c[f]=g),c},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:f,className:g,...d}=u;return Object.entries(d).every(h=>{let[p,w]=h;return Array.isArray(w)?w.includes({...i,...a}[p]):{...i,...a}[p]===w})?[...c,f,g]:c},[]);return pi(e,s,l,n?.class,n?.className)},vr="-",Kc=e=>{const t=qc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{const a=s.split(vr);return a[0]===""&&a.length!==1&&a.shift(),cs(a,t)||Yc(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&o[s]?[...l,...o[s]]:l}}},cs=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?cs(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(vr);return t.validators.find(({validator:s})=>s(i))?.classGroupId},mi=/^\[(.+)\]$/,Yc=e=>{if(mi.test(e)){const t=mi.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qc=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const r in n)Go(n[r],o,r,t);return o},Go=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:hi(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Xc(r)){Go(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,s])=>{Go(s,hi(t,i),n,o)})})},hi=(e,t)=>{let n=e;return t.split(vr).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Xc=e=>e.isThemeGetter,Jc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,o=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return r(i,s),s},set(i,s){n.has(i)?n.set(i,s):r(i,s)}}},Ho="!",Uo=":",Zc=Uo.length,Qc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,a=0,l=0,c;for(let h=0;h<r.length;h++){let p=r[h];if(s===0&&a===0){if(p===Uo){i.push(r.slice(l,h)),l=h+Zc;continue}if(p==="/"){c=h;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const u=i.length===0?r:r.substring(l),f=eu(u),g=f!==u,d=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:d}};if(t){const r=t+Uo,i=o;o=s=>s.startsWith(r)?i(s.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},eu=e=>e.endsWith(Ho)?e.substring(0,e.length-1):e.startsWith(Ho)?e.substring(1):e,tu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const r=[];let i=[];return o.forEach(s=>{s[0]==="["||t[s]?(r.push(...i.sort(),s),i=[]):i.push(s)}),r.push(...i.sort()),r}},nu=e=>({cache:Jc(e.cacheSize),parseClassName:Qc(e),sortModifiers:tu(e),...Kc(e)}),ou=/\s+/,ru=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(ou);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:g,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let w=!!p,x=o(w?h.substring(0,p):h);if(!x){if(!w){l=u+(l.length>0?" "+l:l);continue}if(x=o(h),!x){l=u+(l.length>0?" "+l:l);continue}w=!1}const b=i(g).join(":"),S=d?b+Ho:b,C=S+x;if(s.includes(C))continue;s.push(C);const E=r(x,w);for(let I=0;I<E.length;++I){const M=E[I];s.push(S+M)}l=u+(l.length>0?" "+l:l)}return l};function iu(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=us(t))&&(o&&(o+=" "),o+=n);return o}const us=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=us(e[o]))&&(n&&(n+=" "),n+=t);return n};function su(e,...t){let n,o,r,i=s;function s(l){const c=t.reduce((u,f)=>f(u),e());return n=nu(c),o=n.cache.get,r=n.cache.set,i=a,a(l)}function a(l){const c=o(l);if(c)return c;const u=ru(l,n);return r(l,u),u}return function(){return i(iu.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ds=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,au=/^\d+\/\d+$/,lu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cu=/\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$/,uu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>au.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),et=e=>!!e&&Number.isInteger(Number(e)),xo=e=>e.endsWith("%")&&Z(e.slice(0,-1)),Ue=e=>lu.test(e),gu=()=>!0,pu=e=>cu.test(e)&&!uu.test(e),gs=()=>!1,mu=e=>du.test(e),hu=e=>fu.test(e),vu=e=>!L(e)&&!j(e),wu=e=>Tt(e,hs,gs),L=e=>ds.test(e),dt=e=>Tt(e,vs,pu),bo=e=>Tt(e,Cu,Z),vi=e=>Tt(e,ps,gs),xu=e=>Tt(e,ms,hu),Cn=e=>Tt(e,ws,mu),j=e=>fs.test(e),Yt=e=>Nt(e,vs),bu=e=>Nt(e,Ru),wi=e=>Nt(e,ps),Su=e=>Nt(e,hs),yu=e=>Nt(e,ms),Rn=e=>Nt(e,ws,!0),Tt=(e,t,n)=>{const o=ds.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Nt=(e,t,n=!1)=>{const o=fs.exec(e);return o?o[1]?t(o[1]):n:!1},ps=e=>e==="position"||e==="percentage",ms=e=>e==="image"||e==="url",hs=e=>e==="length"||e==="size"||e==="bg-size",vs=e=>e==="length",Cu=e=>e==="number",Ru=e=>e==="family-name",ws=e=>e==="shadow",Eu=()=>{const e=ce("color"),t=ce("font"),n=ce("text"),o=ce("font-weight"),r=ce("tracking"),i=ce("leading"),s=ce("breakpoint"),a=ce("container"),l=ce("spacing"),c=ce("radius"),u=ce("shadow"),f=ce("inset-shadow"),g=ce("text-shadow"),d=ce("drop-shadow"),h=ce("blur"),p=ce("perspective"),w=ce("aspect"),x=ce("ease"),b=ce("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),j,L],I=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],R=()=>[j,L,l],k=()=>[Ct,"full","auto",...R()],F=()=>[et,"none","subgrid",j,L],A=()=>["auto",{span:["full",et,j,L]},et,j,L],W=()=>[et,"auto",j,L],H=()=>["auto","min","max","fr",j,L],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...R()],V=()=>[Ct,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],P=()=>[e,j,L],N=()=>[...C(),wi,vi,{position:[j,L]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Su,wu,{size:[j,L]}],B=()=>[xo,Yt,dt],K=()=>["","none","full",c,j,L],J=()=>["",Z,Yt,dt],oe=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[Z,xo,wi,vi],U=()=>["","none",h,j,L],Q=()=>["none",Z,j,L],z=()=>["none",Z,j,L],ee=()=>[Z,j,L],te=()=>[Ct,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[gu],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[vu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",Z],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ct,L,j,w]}],container:["container"],columns:[{columns:[Z,L,j,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[et,"auto",j,L]}],basis:[{basis:[Ct,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,Ct,"auto","initial","none",L]}],grow:[{grow:["",Z,j,L]}],shrink:[{shrink:["",Z,j,L]}],order:[{order:[et,"first","last","none",j,L]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[a,"screen",...V()]}],"min-w":[{"min-w":[a,"screen","none",...V()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Yt,dt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,j,bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xo,L]}],"font-family":[{font:[bu,L,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,j,L]}],"line-clamp":[{"line-clamp":[Z,"none",j,bo]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",j,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",j,dt]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Z,"auto",j,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,L]}],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",j,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},et,j,L],radial:["",j,L],conic:[et,j,L]},yu,xu]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z,j,L]}],"outline-w":[{outline:["",Z,Yt,dt]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,Rn,Cn]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",f,Rn,Cn]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Z,dt]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",g,Rn,Cn]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Z,j,L]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[j,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,L]}],filter:[{filter:["","none",j,L]}],blur:[{blur:U()}],brightness:[{brightness:[Z,j,L]}],contrast:[{contrast:[Z,j,L]}],"drop-shadow":[{"drop-shadow":["","none",d,Rn,Cn]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Z,j,L]}],"hue-rotate":[{"hue-rotate":[Z,j,L]}],invert:[{invert:["",Z,j,L]}],saturate:[{saturate:[Z,j,L]}],sepia:[{sepia:["",Z,j,L]}],"backdrop-filter":[{"backdrop-filter":["","none",j,L]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[Z,j,L]}],"backdrop-contrast":[{"backdrop-contrast":[Z,j,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,j,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,j,L]}],"backdrop-invert":[{"backdrop-invert":["",Z,j,L]}],"backdrop-opacity":[{"backdrop-opacity":[Z,j,L]}],"backdrop-saturate":[{"backdrop-saturate":[Z,j,L]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,j,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",j,L]}],ease:[{ease:["linear","initial",x,j,L]}],delay:[{delay:[Z,j,L]}],animate:[{animate:["none",b,j,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,j,L]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[j,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",j,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,L]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Z,Yt,dt,bo]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mu=su(Eu);function se(...e){return Mu(ls(e))}const _u=Wc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ft({className:e,variant:t,size:n,asChild:o=!1,...r}){const i=o?Vc:"button";return v.jsx(i,{"data-slot":"button",className:se(_u({variant:t,size:n,className:e})),...r})}function xs({className:e,...t}){return v.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:v.jsx("table",{"data-slot":"table",className:se("w-full caption-bottom text-sm",e),...t})})}function bs({className:e,...t}){return v.jsx("thead",{"data-slot":"table-header",className:se("[&_tr]:border-b",e),...t})}function Ss({className:e,...t}){return v.jsx("tbody",{"data-slot":"table-body",className:se("[&_tr:last-child]:border-0",e),...t})}function Pu({className:e,...t}){return v.jsx("tfoot",{"data-slot":"table-footer",className:se("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t})}function Vn({className:e,...t}){return v.jsx("tr",{"data-slot":"table-row",className:se("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function ys({className:e,...t}){return v.jsx("th",{"data-slot":"table-head",className:se("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function wr({className:e,...t}){return v.jsx("td",{"data-slot":"table-cell",className:se("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Iu({className:e,...t}){return v.jsx("caption",{"data-slot":"table-caption",className:se("text-muted-foreground mt-4 text-sm",e),...t})}/**
23
- * table-core
24
- *
25
- * Copyright (c) TanStack
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE.md file in the root directory of this source tree.
29
- *
30
- * @license MIT
31
- */function ot(e,t){return typeof e=="function"?e(t):e}function Re(e,t){return n=>{t.setState(o=>({...o,[e]:ot(n,o[e])}))}}function eo(e){return e instanceof Function}function Au(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Du(e,t){const n=[],o=r=>{r.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&o(s)})};return o(e),n}function Y(e,t,n){let o=[],r;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==o.length||a.some((u,f)=>o[f]!==u)))return r;o=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-s)*100)/100,f=Math.round((Date.now()-c)*100)/100,g=f/16,d=(h,p)=>{for(h=String(h);h.length<p;)h=" "+h;return h};console.info(`%c⏱ ${d(f,5)} /${d(u,5)} ms`,`
32
- font-size: .6rem;
33
- font-weight: bold;
34
- color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n?.key)}return r}}function q(e,t,n,o){return{debug:()=>{var r;return(r=e?.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:o}}function Tu(e,t,n,o){const r=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:Y(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),q(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function Nu(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=g=>{let d=g;for(const p of l.split(".")){var h;d=(h=d)==null?void 0:h[p],process.env.NODE_ENV!=="production"&&d===void 0&&console.warn(`"${p}" in deeply nested key "${l}" returned undefined.`)}return d}:u=g=>g[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Y(()=>[!0],()=>{var g;return[f,...(g=f.columns)==null?void 0:g.flatMap(d=>d.getFlatColumns())]},q(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Y(()=>[e._getOrderColumnsFn()],g=>{var d;if((d=f.columns)!=null&&d.length){let h=f.columns.flatMap(p=>p.getLeafColumns());return g(h)}return[f]},q(e.options,"debugColumns","column.getLeafColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(f,e);return f}const me="debugHeaders";function xi(e,t,n){var o;let i={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const Ou={createTable:e=>{e.getHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var i,s;const a=(i=o?.map(f=>n.find(g=>g.id===f)).filter(Boolean))!=null?i:[],l=(s=r?.map(f=>n.find(g=>g.id===f)).filter(Boolean))!=null?s:[],c=n.filter(f=>!(o!=null&&o.includes(f.id))&&!(r!=null&&r.includes(f.id)));return En(t,[...a,...c,...l],e)},q(e.options,me,"getHeaderGroups")),e.getCenterHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(i=>!(o!=null&&o.includes(i.id))&&!(r!=null&&r.includes(i.id))),En(t,n,e,"center")),q(e.options,me,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;const i=(r=o?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return En(t,i,e,"left")},q(e.options,me,"getLeftHeaderGroups")),e.getRightHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;const i=(r=o?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return En(t,i,e,"right")},q(e.options,me,"getRightHeaderGroups")),e.getFooterGroups=Y(()=>[e.getHeaderGroups()],t=>[...t].reverse(),q(e.options,me,"getFooterGroups")),e.getLeftFooterGroups=Y(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),q(e.options,me,"getLeftFooterGroups")),e.getCenterFooterGroups=Y(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),q(e.options,me,"getCenterFooterGroups")),e.getRightFooterGroups=Y(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),q(e.options,me,"getRightFooterGroups")),e.getFlatHeaders=Y(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),q(e.options,me,"getFlatHeaders")),e.getLeftFlatHeaders=Y(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),q(e.options,me,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Y(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),q(e.options,me,"getCenterFlatHeaders")),e.getRightFlatHeaders=Y(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),q(e.options,me,"getRightFlatHeaders")),e.getCenterLeafHeaders=Y(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),q(e.options,me,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Y(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),q(e.options,me,"getLeftLeafHeaders")),e.getRightLeafHeaders=Y(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),q(e.options,me,"getRightLeafHeaders")),e.getLeafHeaders=Y(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,i,s,a,l,c;return[...(r=(i=t[0])==null?void 0:i.headers)!=null?r:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},q(e.options,me,"getLeafHeaders"))}};function En(e,t,n,o){var r,i;let s=0;const a=function(g,d){d===void 0&&(d=1),s=Math.max(s,d),g.filter(h=>h.getIsVisible()).forEach(h=>{var p;(p=h.columns)!=null&&p.length&&a(h.columns,d+1)},0)};a(e);let l=[];const c=(g,d)=>{const h={depth:d,id:[o,`${d}`].filter(Boolean).join("_"),headers:[]},p=[];g.forEach(w=>{const x=[...p].reverse()[0],b=w.column.depth===h.depth;let S,C=!1;if(b&&w.column.parent?S=w.column.parent:(S=w.column,C=!0),x&&x?.column===S)x.subHeaders.push(w);else{const E=xi(n,S,{id:[o,d,S.id,w?.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${p.filter(I=>I.column===S).length}`:void 0,depth:d,index:p.length});E.subHeaders.push(w),p.push(E)}h.headers.push(w),w.headerGroup=h}),l.push(h),d>0&&c(p,d-1)},u=t.map((g,d)=>xi(n,g,{depth:s,index:d}));c(u,s-1),l.reverse();const f=g=>g.filter(h=>h.column.getIsVisible()).map(h=>{let p=0,w=0,x=[0];h.subHeaders&&h.subHeaders.length?(x=[],f(h.subHeaders).forEach(S=>{let{colSpan:C,rowSpan:E}=S;p+=C,x.push(E)})):p=1;const b=Math.min(...x);return w=w+b,h.colSpan=p,h.rowSpan=w,{colSpan:p,rowSpan:w}});return f((r=(i=l[0])==null?void 0:i.headers)!=null?r:[]),l}const xr=(e,t,n,o,r,i,s)=>{let a={id:t,index:o,original:n,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Du(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:Y(()=>[e.getAllLeafColumns()],l=>l.map(c=>Tu(e,a,c,c.id)),q(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Y(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),q(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},ku={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Cs=(e,t,n)=>{var o,r;const i=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};Cs.autoRemove=e=>Ie(e);const Rs=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};Rs.autoRemove=e=>Ie(e);const Es=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===n?.toLowerCase()};Es.autoRemove=e=>Ie(e);const Ms=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};Ms.autoRemove=e=>Ie(e);const _s=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});_s.autoRemove=e=>Ie(e)||!(e!=null&&e.length);const Ps=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});Ps.autoRemove=e=>Ie(e)||!(e!=null&&e.length);const Is=(e,t,n)=>e.getValue(t)===n;Is.autoRemove=e=>Ie(e);const As=(e,t,n)=>e.getValue(t)==n;As.autoRemove=e=>Ie(e);const br=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};br.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(o)?-1/0:o,s=n===null||Number.isNaN(r)?1/0:r;if(i>s){const a=i;i=s,s=a}return[i,s]};br.autoRemove=e=>Ie(e)||Ie(e[0])&&Ie(e[1]);const We={includesString:Cs,includesStringSensitive:Rs,equalsString:Es,arrIncludes:Ms,arrIncludesAll:_s,arrIncludesSome:Ps,equals:Is,weakEquals:As,inNumberRange:br};function Ie(e){return e==null||e===""}const Fu={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Re("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);return typeof o=="string"?We.includesString:typeof o=="number"?We.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?We.equals:Array.isArray(o)?We.arrIncludes:We.weakEquals},e.getFilterFn=()=>{var n,o;return eo(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:We[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const r=e.getFilterFn(),i=o?.find(u=>u.id===e.id),s=ot(n,i?i.value:void 0);if(bi(r,s,e)){var a;return(a=o?.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=o?.map(u=>u.id===e.id?l:u))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=r=>{var i;return(i=ot(t,r))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(bi(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function bi(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const $u=(e,t,n)=>n.reduce((o,r)=>{const i=r.getValue(e);return o+(typeof i=="number"?i:0)},0),Lu=(e,t,n)=>{let o;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(o>i||o===void 0&&i>=i)&&(o=i)}),o},ju=(e,t,n)=>{let o;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(o<i||o===void 0&&i>=i)&&(o=i)}),o},Vu=(e,t,n)=>{let o,r;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(o===void 0?s>=s&&(o=r=s):(o>s&&(o=s),r<s&&(r=s)))}),[o,r]},zu=(e,t)=>{let n=0,o=0;if(t.forEach(r=>{let i=r.getValue(e);i!=null&&(i=+i)>=i&&(++n,o+=i)}),n)return o/n},Bu=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!Au(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),r=n.sort((i,s)=>i-s);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},Gu=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Hu=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Uu=(e,t)=>t.length,So={sum:$u,min:Lu,max:ju,extent:Vu,mean:zu,median:Bu,unique:Gu,uniqueCount:Hu,count:Uu},Wu={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Re("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);if(typeof o=="number")return So.sum;if(Object.prototype.toString.call(o)==="[object Date]")return So.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return eo(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:So[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function Ku(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(i=>!t.includes(i.id));return n==="remove"?o:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...o]}const Yu={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Re("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Y(n=>[Zt(t,n)],n=>n.findIndex(o=>o.id===e.id),q(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=Zt(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const r=Zt(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Y(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let i=[];if(!(t!=null&&t.length))i=r;else{const s=[...t],a=[...r];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return Ku(i,n,o)},q(e.options,"debugTable","_getOrderColumnsFn"))}},yo=()=>({left:[],right:[]}),qu={getInitialState:e=>({columnPinning:yo(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Re("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var i,s;if(n==="right"){var a,l;return{left:((a=r?.left)!=null?a:[]).filter(f=>!(o!=null&&o.includes(f))),right:[...((l=r?.right)!=null?l:[]).filter(f=>!(o!=null&&o.includes(f))),...o]}}if(n==="left"){var c,u;return{left:[...((c=r?.left)!=null?c:[]).filter(f=>!(o!=null&&o.includes(f))),...o],right:((u=r?.right)!=null?u:[]).filter(f=>!(o!=null&&o.includes(f)))}}return{left:((i=r?.left)!=null?i:[]).filter(f=>!(o!=null&&o.includes(f))),right:((s=r?.right)!=null?s:[]).filter(f=>!(o!=null&&o.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,i,s;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:o,right:r}=t.getState().columnPinning,i=n.some(a=>o?.includes(a)),s=n.some(a=>r?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{const i=[...o??[],...r??[]];return n.filter(s=>!i.includes(s.column.id))},q(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),q(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Y(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),q(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?yo():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:yo())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var r,i;return!!((r=o.left)!=null&&r.length||(i=o.right)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),q(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),q(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(i=>!r.includes(i.id))},q(e.options,"debugColumns","getCenterLeafColumns"))}};function Xu(e){return e||(typeof document<"u"?document:null)}const Mn={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Co=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Ju={getDefaultColumnDef:()=>Mn,getInitialState:e=>({columnSizing:{},columnSizingInfo:Co(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Re("columnSizing",e),onColumnSizingInfoChange:Re("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Mn.minSize,(o=i??e.columnDef.size)!=null?o:Mn.size),(r=e.columnDef.maxSize)!=null?r:Mn.maxSize)},e.getStart=Y(n=>[n,Zt(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,i)=>r+i.getSize(),0),q(t.options,"debugColumns","getStart")),e.getAfter=Y(n=>[n,Zt(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,i)=>r+i.getSize(),0),q(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var i;n+=(i=r.column.getSize())!=null?i:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),r=o?.getCanResize();return i=>{if(!o||!r||(i.persist==null||i.persist(),Ro(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[o.id,o.getSize()]],l=Ro(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(x,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var C,E;const I=t.options.columnResizeDirection==="rtl"?-1:1,M=(b-((C=S?.startOffset)!=null?C:0))*I,R=Math.max(M/((E=S?.startSize)!=null?E:0),-.999999);return S.columnSizingStart.forEach(k=>{let[F,A]=k;c[F]=Math.round(Math.max(A+A*R,0)*100)/100}),{...S,deltaOffset:M,deltaPercentage:R}}),(t.options.columnResizeMode==="onChange"||x==="end")&&t.setColumnSizing(S=>({...S,...c})))},f=x=>u("move",x),g=x=>{u("end",x),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=Xu(n),h={moveHandler:x=>f(x.clientX),upHandler:x=>{d?.removeEventListener("mousemove",h.moveHandler),d?.removeEventListener("mouseup",h.upHandler),g(x.clientX)}},p={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),f(x.touches[0].clientX),!1),upHandler:x=>{var b;d?.removeEventListener("touchmove",p.moveHandler),d?.removeEventListener("touchend",p.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),g((b=x.touches[0])==null?void 0:b.clientX)}},w=Zu()?{passive:!1}:!1;Ro(i)?(d?.addEventListener("touchmove",p.moveHandler,w),d?.addEventListener("touchend",p.upHandler,w)):(d?.addEventListener("mousemove",h.moveHandler,w),d?.addEventListener("mouseup",h.upHandler,w)),t.setColumnSizingInfo(x=>({...x,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Co():(n=e.initialState.columnSizingInfo)!=null?n:Co())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}};let _n=null;function Zu(){if(typeof _n=="boolean")return _n;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return _n=e,_n}function Ro(e){return e.type==="touchstart"}const Qu={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Re("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const r=e.columns;return(n=r.length?r.some(i=>i.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Y(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),q(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Y(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],q(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,o)=>Y(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),q(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,i)=>({...r,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Zt(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ed={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},td={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Re("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>We.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return eo(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:We[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},nd={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Re("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,i;e.setExpanded(o?{}:(r=(i=e.initialState)==null?void 0:i.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");o=Math.max(o,s.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;const i=o===!0?!0:!!(o!=null&&o[e.id]);let s={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=o,n=(r=n)!=null?r:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o?.[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Wo=0,Ko=10,Eo=()=>({pageIndex:Wo,pageSize:Ko}),od={getInitialState:e=>({...e,pagination:{...Eo(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Re("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const r=i=>ot(o,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?Eo():(r=e.initialState.pagination)!=null?r:Eo())},e.setPageIndex=o=>{e.setPagination(r=>{let i=ot(o,r.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...r,pageIndex:i}})},e.resetPageIndex=o=>{var r,i;e.setPageIndex(o?Wo:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?r:Wo)},e.resetPageSize=o=>{var r,i;e.setPageSize(o?Ko:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?r:Ko)},e.setPageSize=o=>{e.setPagination(r=>{const i=Math.max(1,ot(o,r.pageSize)),s=r.pageSize*r.pageIndex,a=Math.floor(s/i);return{...r,pageIndex:a,pageSize:i}})},e.setPageCount=o=>e.setPagination(r=>{var i;let s=ot(o,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),e.getPageOptions=Y(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((i,s)=>s)),r},q(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:o<r-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},Mo=()=>({top:[],bottom:[]}),rd={getInitialState:e=>({rowPinning:Mo(),...e}),getDefaultOptions:e=>({onRowPinningChange:Re("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var f,g;return{top:((f=l?.top)!=null?f:[]).filter(p=>!(a!=null&&a.has(p))),bottom:[...((g=l?.bottom)!=null?g:[]).filter(p=>!(a!=null&&a.has(p))),...Array.from(a)]}}if(n==="top"){var d,h;return{top:[...((d=l?.top)!=null?d:[]).filter(p=>!(a!=null&&a.has(p))),...Array.from(a)],bottom:((h=l?.bottom)!=null?h:[]).filter(p=>!(a!=null&&a.has(p)))}}return{top:((c=l?.top)!=null?c:[]).filter(p=>!(a!=null&&a.has(p))),bottom:((u=l?.bottom)!=null?u:[]).filter(p=>!(a!=null&&a.has(p)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some(a=>o?.includes(a)),s=n.some(a=>r?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(o=i?.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?Mo():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:Mo())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var r,i;return!!((r=o.top)!=null&&r.length||(i=o.bottom)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:o}))},e.getTopRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),q(e.options,"debugRows","getTopRows")),e.getBottomRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),q(e.options,"debugRows","getBottomRows")),e.getCenterRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const r=new Set([...n??[],...o??[]]);return t.filter(i=>!r.has(i.id))},q(e.options,"debugRows","getCenterRows"))}},id={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Re("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(i=>{i.getCanSelect()&&(o[i.id]=!0)}):r.forEach(i=>{delete o[i.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(i=>{Yo(r,i.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?_o(e,n):{rows:[],flatRows:[],rowsById:{}},q(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?_o(e,n):{rows:[],flatRows:[],rowsById:{}},q(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?_o(e,n):{rows:[],flatRows:[],rowsById:{}},q(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const r=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return i;const a={...i};return Yo(a,e.id,n,(s=o?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Sr(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return qo(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return qo(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},Yo=(e,t,n,o,r)=>{var i;const s=r.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Yo(e,a.id,n,o,r))};function _o(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(s,a){return s.map(l=>{var c;const u=Sr(l,n);if(u&&(o.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),u)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function Sr(e,t){var n;return(n=t[e.id])!=null?n:!1}function qo(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!r)&&(s.getCanSelect()&&(Sr(s,t)?i=!0:r=!1),s.subRows&&s.subRows.length)){const a=qo(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),r=!1)}}),r?"all":i?"some":!1}const Xo=/([0-9]+)/gm,sd=(e,t,n)=>Ds(rt(e.getValue(n)).toLowerCase(),rt(t.getValue(n)).toLowerCase()),ad=(e,t,n)=>Ds(rt(e.getValue(n)),rt(t.getValue(n))),ld=(e,t,n)=>yr(rt(e.getValue(n)).toLowerCase(),rt(t.getValue(n)).toLowerCase()),cd=(e,t,n)=>yr(rt(e.getValue(n)),rt(t.getValue(n))),ud=(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},dd=(e,t,n)=>yr(e.getValue(n),t.getValue(n));function yr(e,t){return e===t?0:e>t?1:-1}function rt(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ds(e,t){const n=e.split(Xo).filter(Boolean),o=t.split(Xo).filter(Boolean);for(;n.length&&o.length;){const r=n.shift(),i=o.shift(),s=parseInt(r,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(r>i)return 1;if(i>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-o.length}const qt={alphanumeric:sd,alphanumericCaseSensitive:ad,text:ld,textCaseSensitive:cd,datetime:ud,basic:dd},fd={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Re("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const r of n){const i=r?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return qt.datetime;if(typeof i=="string"&&(o=!0,i.split(Xo).length>1))return qt.alphanumeric}return o?qt.text:qt.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return eo(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:qt[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(d=>d.id===e.id),l=s?.findIndex(d=>d.id===e.id);let c=[],u,f=i?n:r==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&o?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(i||r||(u="remove")),u==="add"){var g;c=[...s,{id:e.id,desc:f}],c.splice(0,c.length-((g=t.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(d=>d.id===e.id?{...d,desc:f}:d):u==="remove"?c=s.filter(d=>d.id!==e.id):c=[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},gd=[Ou,Qu,Yu,qu,ku,Fu,ed,td,fd,Wu,nd,od,rd,id,Ju];function pd(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...gd,...(t=e._features)!=null?t:[]];let r={_features:o};const i=r._features.reduce((g,d)=>Object.assign(g,d.getDefaultOptions==null?void 0:d.getDefaultOptions(r)),{}),s=g=>r.options.mergeOptions?r.options.mergeOptions(i,g):{...i,...g};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(g=>{var d;l=(d=g.getInitialState==null?void 0:g.getInitialState(l))!=null?d:l});const c=[];let u=!1;const f={_features:o,options:{...i,...e},initialState:l,_queue:g=>{c.push(g),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{r.setState(r.initialState)},setOptions:g=>{const d=ot(g,r.options);r.options=s(d)},getState:()=>r.options.state,setState:g=>{r.options.onStateChange==null||r.options.onStateChange(g)},_getRowId:(g,d,h)=>{var p;return(p=r.options.getRowId==null?void 0:r.options.getRowId(g,d,h))!=null?p:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(g,d)=>{let h=(d?r.getPrePaginationRowModel():r.getRowModel()).rowsById[g];if(!h&&(h=r.getCoreRowModel().rowsById[g],!h))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${g}`):new Error;return h},_getDefaultColumnDef:Y(()=>[r.options.defaultColumn],g=>{var d;return g=(d=g)!=null?d:{},{header:h=>{const p=h.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:h=>{var p,w;return(p=(w=h.renderValue())==null||w.toString==null?void 0:w.toString())!=null?p:null},...r._features.reduce((h,p)=>Object.assign(h,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...g}},q(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:Y(()=>[r._getColumnDefs()],g=>{const d=function(h,p,w){return w===void 0&&(w=0),h.map(x=>{const b=Nu(r,x,w,p),S=x;return b.columns=S.columns?d(S.columns,b,w+1):[],b})};return d(g)},q(e,"debugColumns","getAllColumns")),getAllFlatColumns:Y(()=>[r.getAllColumns()],g=>g.flatMap(d=>d.getFlatColumns()),q(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Y(()=>[r.getAllFlatColumns()],g=>g.reduce((d,h)=>(d[h.id]=h,d),{}),q(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Y(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(g,d)=>{let h=g.flatMap(p=>p.getLeafColumns());return d(h)},q(e,"debugColumns","getAllLeafColumns")),getColumn:g=>{const d=r._getAllFlatColumnsById()[g];return process.env.NODE_ENV!=="production"&&!d&&console.error(`[Table] Column with id '${g}' does not exist.`),d}};Object.assign(r,f);for(let g=0;g<r._features.length;g++){const d=r._features[g];d==null||d.createTable==null||d.createTable(r)}return r}function md(){return e=>Y(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(r,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<r.length;c++){const u=xr(e,e._getRowId(r[c],c,s),r[c],c,i,void 0,s?.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(r[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=o(u.originalSubRows,i+1,u))}}return a};return n.rows=o(t),n},q(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function hd(e){const t=[],n=o=>{var r;t.push(o),(r=o.subRows)!=null&&r.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Ts(e,t,n){return n.options.filterFromLeafRows?vd(e,t,n):wd(e,t,n)}function vd(e,t,n){var o;const r=[],i={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let g=0;g<l.length;g++){var f;let d=l[g];const h=xr(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(h.columnFilters=d.columnFilters,(f=d.subRows)!=null&&f.length&&c<s){if(h.subRows=a(d.subRows,c+1),d=h,t(d)&&!h.subRows.length){u.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||h.subRows.length){u.push(d),i[d.id]=d,r.push(d);continue}}else d=h,t(d)&&(u.push(d),i[d.id]=d,r.push(d))}return u};return{rows:a(e),flatRows:r,rowsById:i}}function wd(e,t,n){var o;const r=[],i={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let g=0;g<l.length;g++){let d=l[g];if(t(d)){var f;if((f=d.subRows)!=null&&f.length&&c<s){const p=xr(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);p.subRows=a(d.subRows,c+1),d=p}u.push(d),r.push(d),i[d.id]=d}}return u};return{rows:a(e),flatRows:r,rowsById:i}}function xd(){return(e,t)=>Y(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,o,r)=>{if(!n.rows.length||!(o!=null&&o.length)&&!r)return n;const i=[...o.map(a=>a.id).filter(a=>a!==t),r?"__global__":void 0].filter(Boolean),s=a=>{for(let l=0;l<i.length;l++)if(a.columnFilters[i[l]]===!1)return!1;return!0};return Ts(n.rows,s,e)},q(e.options,"debugTable","getFacetedRowModel"))}function bd(){return(e,t)=>Y(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let o=new Map;for(let i=0;i<n.flatRows.length;i++){const s=n.flatRows[i].getUniqueValues(t);for(let a=0;a<s.length;a++){const l=s[a];if(o.has(l)){var r;o.set(l,((r=o.get(l))!=null?r:0)+1)}else o.set(l,1)}}return o},q(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function Sd(){return e=>Y(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,o)=>{if(!t.rows.length||!(n!=null&&n.length)&&!o){for(let g=0;g<t.flatRows.length;g++)t.flatRows[g].columnFilters={},t.flatRows[g].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach(g=>{var d;const h=e.getColumn(g.id);if(!h)return;const p=h.getFilterFn();if(!p){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${h.id}.`);return}r.push({id:g.id,filterFn:p,resolvedValue:(d=p.resolveFilterValue==null?void 0:p.resolveFilterValue(g.value))!=null?d:g.value})});const s=(n??[]).map(g=>g.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(g=>g.getCanGlobalFilter());o&&a&&l.length&&(s.push("__global__"),l.forEach(g=>{var d;i.push({id:g.id,filterFn:a,resolvedValue:(d=a.resolveFilterValue==null?void 0:a.resolveFilterValue(o))!=null?d:o})}));let c,u;for(let g=0;g<t.flatRows.length;g++){const d=t.flatRows[g];if(d.columnFilters={},r.length)for(let h=0;h<r.length;h++){c=r[h];const p=c.id;d.columnFilters[p]=c.filterFn(d,p,c.resolvedValue,w=>{d.columnFiltersMeta[p]=w})}if(i.length){for(let h=0;h<i.length;h++){u=i[h];const p=u.id;if(u.filterFn(d,p,u.resolvedValue,w=>{d.columnFiltersMeta[p]=w})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}const f=g=>{for(let d=0;d<s.length;d++)if(g.columnFilters[s[d]]===!1)return!1;return!0};return Ts(t.rows,f,e)},q(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function yd(e){return t=>Y(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:r,pageIndex:i}=n;let{rows:s,flatRows:a,rowsById:l}=o;const c=r*i,u=c+r;s=s.slice(c,u);let f;t.options.paginateExpandedRows?f={rows:s,flatRows:a,rowsById:l}:f=hd({rows:s,flatRows:a,rowsById:l}),f.flatRows=[];const g=d=>{f.flatRows.push(d),d.subRows.length&&d.subRows.forEach(g)};return f.rows.forEach(g),f},q(t.options,"debugTable","getPaginationRowModel"))}function Cd(){return e=>Y(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const o=e.getState().sorting,r=[],i=o.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,f)=>{for(let d=0;d<i.length;d+=1){var g;const h=i[d],p=s[h.id],w=p.sortUndefined,x=(g=h?.desc)!=null?g:!1;let b=0;if(w){const S=u.getValue(h.id),C=f.getValue(h.id),E=S===void 0,I=C===void 0;if(E||I){if(w==="first")return E?-1:1;if(w==="last")return E?1:-1;b=E&&I?0:E?w:-w}}if(b===0&&(b=p.sortingFn(u,f,h.id)),b!==0)return x&&(b*=-1),p.invertSorting&&(b*=-1),b}return u.index-f.index}),c.forEach(u=>{var f;r.push(u),(f=u.subRows)!=null&&f.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:r,rowsById:n.rowsById}},q(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
35
- * react-table
36
- *
37
- * Copyright (c) TanStack
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE.md file in the root directory of this source tree.
41
- *
42
- * @license MIT
43
- */function Ns(e,t){return e?Rd(e)?m.createElement(e,t):e:null}function Rd(e){return Ed(e)||typeof e=="function"||Md(e)}function Ed(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Md(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function _d(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=m.useState(()=>({current:pd(t)})),[o,r]=m.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...o,...e.state},onStateChange:s=>{r(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}function Pd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>o=>{t.forEach(r=>r(o))},t)}const to=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ot(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Cr(e){return"nodeType"in e}function we(e){var t,n;return e?Ot(e)?e:Cr(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Rr(e){const{Document:t}=we(e);return e instanceof t}function dn(e){return Ot(e)?!1:e instanceof we(e).HTMLElement}function Os(e){return e instanceof we(e).SVGElement}function kt(e){return e?Ot(e)?e.document:Cr(e)?Rr(e)?e:dn(e)||Os(e)?e.ownerDocument:document:document:document}const ze=to?y.useLayoutEffect:y.useEffect;function Er(e){const t=y.useRef(e);return ze(()=>{t.current=e}),y.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function Id(){const e=y.useRef(null),t=y.useCallback((o,r)=>{e.current=setInterval(o,r)},[]),n=y.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function nn(e,t){t===void 0&&(t=[e]);const n=y.useRef(e);return ze(()=>{n.current!==e&&(n.current=e)},t),n}function fn(e,t){const n=y.useRef();return y.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function zn(e){const t=Er(e),n=y.useRef(null),o=y.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Jo(e){const t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}let Po={};function gn(e,t){return y.useMemo(()=>{if(t)return t;const n=Po[e]==null?0:Po[e]+1;return Po[e]=n,e+"-"+n},[e,t])}function ks(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((i,s)=>{const a=Object.entries(s);for(const[l,c]of a){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const _t=ks(1),Bn=ks(-1);function Ad(e){return"clientX"in e&&"clientY"in e}function Mr(e){if(!e)return!1;const{KeyboardEvent:t}=we(e.target);return t&&e instanceof t}function Dd(e){if(!e)return!1;const{TouchEvent:t}=we(e.target);return t&&e instanceof t}function Zo(e){if(Dd(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Ad(e)?{x:e.clientX,y:e.clientY}:null}const on=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[on.Translate.toString(e),on.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Si="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Td(e){return e.matches(Si)?e:e.querySelector(Si)}const Nd={display:"none"};function Od(e){let{id:t,value:n}=e;return y.createElement("div",{id:t,style:Nd},n)}function kd(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return y.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function Fd(){const[e,t]=y.useState("");return{announce:y.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const Fs=y.createContext(null);function $d(e){const t=y.useContext(Fs);y.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Ld(){const[e]=y.useState(()=>new Set),t=y.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[y.useCallback(o=>{let{type:r,event:i}=o;e.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,i)})},[e]),t]}const jd={draggable:`
44
- To pick up a draggable item, press the space bar.
45
- While dragging, use the arrow keys to move the item.
46
- Press space again to drop the item in its new position, or press escape to cancel.
47
- `},Vd={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function zd(e){let{announcements:t=Vd,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=jd}=e;const{announce:i,announcement:s}=Fd(),a=gn("DndLiveRegion"),[l,c]=y.useState(!1);if(y.useEffect(()=>{c(!0)},[]),$d(y.useMemo(()=>({onDragStart(f){let{active:g}=f;i(t.onDragStart({active:g}))},onDragMove(f){let{active:g,over:d}=f;t.onDragMove&&i(t.onDragMove({active:g,over:d}))},onDragOver(f){let{active:g,over:d}=f;i(t.onDragOver({active:g,over:d}))},onDragEnd(f){let{active:g,over:d}=f;i(t.onDragEnd({active:g,over:d}))},onDragCancel(f){let{active:g,over:d}=f;i(t.onDragCancel({active:g,over:d}))}}),[i,t])),!l)return null;const u=y.createElement(y.Fragment,null,y.createElement(Od,{id:o,value:r.draggable}),y.createElement(kd,{id:a,announcement:s}));return n?gt.createPortal(u,n):u}var ue;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ue||(ue={}));function Gn(){}function Io(e,t){return y.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Bd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const Ae=Object.freeze({x:0,y:0});function Gd(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Hd(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Ud(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Wd(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function yi(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Kd=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=yi(t,t.left,t.top),i=[];for(const s of o){const{id:a}=s,l=n.get(a);if(l){const c=Gd(yi(l),r);i.push({id:a,data:{droppableContainer:s,value:c}})}}return i.sort(Hd)};function Yd(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=r-o,a=i-n;if(o<r&&n<i){const l=t.width*t.height,c=e.width*e.height,u=s*a,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const qd=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:s}=i,a=n.get(s);if(a){const l=Yd(a,t);l>0&&r.push({id:s,data:{droppableContainer:i,value:l}})}}return r.sort(Ud)};function Xd(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function $s(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ae}function Jd(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return r.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Zd=Jd(1);function Qd(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function ef(e,t,n){const o=Qd(t);if(!o)return e;const{scaleX:r,scaleY:i,x:s,y:a}=o,l=e.left-s-(1-r)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const tf={ignoreTransform:!1};function Ft(e,t){t===void 0&&(t=tf);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=we(e).getComputedStyle(e);c&&(n=ef(n,c,u))}const{top:o,left:r,width:i,height:s,bottom:a,right:l}=n;return{top:o,left:r,width:i,height:s,bottom:a,right:l}}function Ci(e){return Ft(e,{ignoreTransform:!0})}function nf(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function of(e,t){return t===void 0&&(t=we(e).getComputedStyle(e)),t.position==="fixed"}function rf(e,t){t===void 0&&(t=we(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function _r(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(Rr(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!dn(r)||Os(r)||n.includes(r))return n;const i=we(e).getComputedStyle(r);return r!==e&&rf(r,i)&&n.push(r),of(r,i)?n:o(r.parentNode)}return e?o(e):n}function Ls(e){const[t]=_r(e,1);return t??null}function Ao(e){return!to||!e?null:Ot(e)?e:Cr(e)?Rr(e)||e===kt(e).scrollingElement?window:dn(e)?e:null:null}function js(e){return Ot(e)?e.scrollX:e.scrollLeft}function Vs(e){return Ot(e)?e.scrollY:e.scrollTop}function Qo(e){return{x:js(e),y:Vs(e)}}var de;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(de||(de={}));function zs(e){return!to||!e?!1:e===document.scrollingElement}function Bs(e){const t={x:0,y:0},n=zs(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:r,isLeft:i,isBottom:s,isRight:a,maxScroll:o,minScroll:t}}const sf={x:.2,y:.2};function af(e,t,n,o,r){let{top:i,left:s,right:a,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=sf);const{isTop:c,isBottom:u,isLeft:f,isRight:g}=Bs(e),d={x:0,y:0},h={x:0,y:0},p={height:t.height*r.y,width:t.width*r.x};return!c&&i<=t.top+p.height?(d.y=de.Backward,h.y=o*Math.abs((t.top+p.height-i)/p.height)):!u&&l>=t.bottom-p.height&&(d.y=de.Forward,h.y=o*Math.abs((t.bottom-p.height-l)/p.height)),!g&&a>=t.right-p.width?(d.x=de.Forward,h.x=o*Math.abs((t.right-p.width-a)/p.width)):!f&&s<=t.left+p.width&&(d.x=de.Backward,h.x=o*Math.abs((t.left+p.width-s)/p.width)),{direction:d,speed:h}}function lf(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Gs(e){return e.reduce((t,n)=>_t(t,Qo(n)),Ae)}function cf(e){return e.reduce((t,n)=>t+js(n),0)}function uf(e){return e.reduce((t,n)=>t+Vs(n),0)}function df(e,t){if(t===void 0&&(t=Ft),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);Ls(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ff=[["x",["left","right"],cf],["y",["top","bottom"],uf]];class Pr{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=_r(n),r=Gs(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,a]of ff)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(o),u=r[i]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Qt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function gf(e){const{EventTarget:t}=we(e);return e instanceof t?e:kt(e)}function Do(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var Me;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Me||(Me={}));function Ri(e){e.preventDefault()}function pf(e){e.stopPropagation()}var re;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(re||(re={}));const Hs={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter,re.Tab]},mf=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class Ir{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Qt(kt(n)),this.windowListeners=new Qt(we(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Me.Resize,this.handleCancel),this.windowListeners.add(Me.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Me.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&df(o),n(Ae)}handleKeyDown(t){if(Mr(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=Hs,coordinateGetter:s=mf,scrollBehavior:a="smooth"}=r,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,u=c?{x:c.left,y:c.top}:Ae;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:o.current,currentCoordinates:u});if(f){const g=Bn(f,u),d={x:0,y:0},{scrollableAncestors:h}=o.current;for(const p of h){const w=t.code,{isTop:x,isRight:b,isLeft:S,isBottom:C,maxScroll:E,minScroll:I}=Bs(p),M=lf(p),R={x:Math.min(w===re.Right?M.right-M.width/2:M.right,Math.max(w===re.Right?M.left:M.left+M.width/2,f.x)),y:Math.min(w===re.Down?M.bottom-M.height/2:M.bottom,Math.max(w===re.Down?M.top:M.top+M.height/2,f.y))},k=w===re.Right&&!b||w===re.Left&&!S,F=w===re.Down&&!C||w===re.Up&&!x;if(k&&R.x!==f.x){const A=p.scrollLeft+g.x,W=w===re.Right&&A<=E.x||w===re.Left&&A>=I.x;if(W&&!g.y){p.scrollTo({left:A,behavior:a});return}W?d.x=p.scrollLeft-A:d.x=w===re.Right?p.scrollLeft-E.x:p.scrollLeft-I.x,d.x&&p.scrollBy({left:-d.x,behavior:a});break}else if(F&&R.y!==f.y){const A=p.scrollTop+g.y,W=w===re.Down&&A<=E.y||w===re.Up&&A>=I.y;if(W&&!g.x){p.scrollTo({top:A,behavior:a});return}W?d.y=p.scrollTop-A:d.y=w===re.Down?p.scrollTop-E.y:p.scrollTop-I.y,d.y&&p.scrollBy({top:-d.y,behavior:a});break}}this.handleMove(t,_t(Bn(f,this.referenceCoordinates),d))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ir.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Hs,onActivation:r}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(o.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function Ei(e){return!!(e&&"distance"in e)}function Mi(e){return!!(e&&"delay"in e)}class Ar{constructor(t,n,o){var r;o===void 0&&(o=gf(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=kt(s),this.documentListeners=new Qt(this.document),this.listeners=new Qt(o),this.windowListeners=new Qt(we(s)),this.initialCoordinates=(r=Zo(i))!=null?r:Ae,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Me.Resize,this.handleCancel),this.windowListeners.add(Me.DragStart,Ri),this.windowListeners.add(Me.VisibilityChange,this.handleCancel),this.windowListeners.add(Me.ContextMenu,Ri),this.documentListeners.add(Me.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Mi(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ei(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Me.Click,pf,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Me.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const l=(n=Zo(t))!=null?n:Ae,c=Bn(r,l);if(!o&&a){if(Ei(a)){if(a.tolerance!=null&&Do(c,a.tolerance))return this.handleCancel();if(Do(c,a.distance))return this.handleStart()}if(Mi(a)&&Do(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===re.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const hf={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Us extends Ar{constructor(t){const{event:n}=t,o=kt(n.target);super(t,hf,o)}}Us.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];const vf={move:{name:"mousemove"},end:{name:"mouseup"}};var er;(function(e){e[e.RightClick=2]="RightClick"})(er||(er={}));class Ws extends Ar{constructor(t){super(t,vf,kt(t.event.target))}}Ws.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===er.RightClick?!1:(o?.({event:n}),!0)}}];const To={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Ks extends Ar{constructor(t){super(t,To)}static setup(){return window.addEventListener(To.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(To.move.name,t)};function t(){}}}Ks.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var en;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(en||(en={}));var Hn;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Hn||(Hn={}));function wf(e){let{acceleration:t,activator:n=en.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:s=5,order:a=Hn.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:g}=e;const d=bf({delta:f,disabled:!i}),[h,p]=Id(),w=y.useRef({x:0,y:0}),x=y.useRef({x:0,y:0}),b=y.useMemo(()=>{switch(n){case en.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case en.DraggableRect:return r}},[n,r,l]),S=y.useRef(null),C=y.useCallback(()=>{const I=S.current;if(!I)return;const M=w.current.x*x.current.x,R=w.current.y*x.current.y;I.scrollBy(M,R)},[]),E=y.useMemo(()=>a===Hn.TreeOrder?[...c].reverse():c,[a,c]);y.useEffect(()=>{if(!i||!c.length||!b){p();return}for(const I of E){if(o?.(I)===!1)continue;const M=c.indexOf(I),R=u[M];if(!R)continue;const{direction:k,speed:F}=af(I,R,b,t,g);for(const A of["x","y"])d[A][k[A]]||(F[A]=0,k[A]=0);if(F.x>0||F.y>0){p(),S.current=I,h(C,s),w.current=F,x.current=k;return}}w.current={x:0,y:0},x.current={x:0,y:0},p()},[t,C,o,p,i,s,JSON.stringify(b),JSON.stringify(d),h,c,E,u,JSON.stringify(g)])}const xf={x:{[de.Backward]:!1,[de.Forward]:!1},y:{[de.Backward]:!1,[de.Forward]:!1}};function bf(e){let{delta:t,disabled:n}=e;const o=Jo(t);return fn(r=>{if(n||!o||!r)return xf;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[de.Backward]:r.x[de.Backward]||i.x===-1,[de.Forward]:r.x[de.Forward]||i.x===1},y:{[de.Backward]:r.y[de.Backward]||i.y===-1,[de.Forward]:r.y[de.Forward]||i.y===1}}},[n,t,o])}function Sf(e,t){const n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return fn(r=>{var i;return t==null?null:(i=o??r)!=null?i:null},[o,t])}function yf(e,t){return y.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,i=r.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,o)}));return[...n,...i]},[]),[e,t])}var rn;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(rn||(rn={}));var tr;(function(e){e.Optimized="optimized"})(tr||(tr={}));const _i=new Map;function Cf(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,s]=y.useState(null),{frequency:a,measure:l,strategy:c}=r,u=y.useRef(e),f=w(),g=nn(f),d=y.useCallback(function(x){x===void 0&&(x=[]),!g.current&&s(b=>b===null?x:b.concat(x.filter(S=>!b.includes(S))))},[g]),h=y.useRef(null),p=fn(x=>{if(f&&!n)return _i;if(!x||x===_i||u.current!==e||i!=null){const b=new Map;for(let S of e){if(!S)continue;if(i&&i.length>0&&!i.includes(S.id)&&S.rect.current){b.set(S.id,S.rect.current);continue}const C=S.node.current,E=C?new Pr(l(C),C):null;S.rect.current=E,E&&b.set(S.id,E)}return b}return x},[e,i,n,f,l]);return y.useEffect(()=>{u.current=e},[e]),y.useEffect(()=>{f||d()},[n,f]),y.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),y.useEffect(()=>{f||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{d(),h.current=null},a))},[a,f,d,...o]),{droppableRects:p,measureDroppableContainers:d,measuringScheduled:i!=null};function w(){switch(c){case rn.Always:return!1;case rn.BeforeDragging:return n;default:return!n}}}function Ys(e,t){return fn(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Rf(e,t){return Ys(e,t)}function Ef(e){let{callback:t,disabled:n}=e;const o=Er(t),r=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(o)},[o,n]);return y.useEffect(()=>()=>r?.disconnect(),[r]),r}function no(e){let{callback:t,disabled:n}=e;const o=Er(t),r=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(o)},[n]);return y.useEffect(()=>()=>r?.disconnect(),[r]),r}function Mf(e){return new Pr(Ft(e),e)}function Pi(e,t,n){t===void 0&&(t=Mf);const[o,r]=y.useState(null);function i(){r(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=Ef({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),a=no({callback:i});return ze(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),o}function _f(e){const t=Ys(e);return $s(e,t)}const Ii=[];function Pf(e){const t=y.useRef(e),n=fn(o=>e?o&&o!==Ii&&e&&t.current&&e.parentNode===t.current.parentNode?o:_r(e):Ii,[e]);return y.useEffect(()=>{t.current=e},[e]),n}function If(e){const[t,n]=y.useState(null),o=y.useRef(e),r=y.useCallback(i=>{const s=Ao(i.target);s&&n(a=>a?(a.set(s,Qo(s)),new Map(a)):null)},[]);return y.useEffect(()=>{const i=o.current;if(e!==i){s(i);const a=e.map(l=>{const c=Ao(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,Qo(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),o.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(l=>{const c=Ao(l);c?.removeEventListener("scroll",r)})}},[r,e]),y.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>_t(i,s),Ae):Gs(e):Ae,[e,t])}function Ai(e,t){t===void 0&&(t=[]);const n=y.useRef(null);return y.useEffect(()=>{n.current=null},t),y.useEffect(()=>{const o=e!==Ae;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Bn(e,n.current):Ae}function Af(e){y.useEffect(()=>{if(!to)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Df(e,t){return y.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:i}=o;return n[r]=s=>{i(s,t)},n},{}),[e,t])}function qs(e){return y.useMemo(()=>e?nf(e):null,[e])}const Di=[];function Tf(e,t){t===void 0&&(t=Ft);const[n]=e,o=qs(n?we(n):null),[r,i]=y.useState(Di);function s(){i(()=>e.length?e.map(l=>zs(l)?o:new Pr(t(l),l)):Di)}const a=no({callback:s});return ze(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),r}function Nf(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return dn(t)?t:e}function Of(e){let{measure:t}=e;const[n,o]=y.useState(null),r=y.useCallback(c=>{for(const{target:u}of c)if(dn(u)){o(f=>{const g=t(u);return f?{...f,width:g.width,height:g.height}:g});break}},[t]),i=no({callback:r}),s=y.useCallback(c=>{const u=Nf(c);i?.disconnect(),u&&i?.observe(u),o(u?t(u):null)},[t,i]),[a,l]=zn(s);return y.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const kf=[{sensor:Us,options:{}},{sensor:Ir,options:{}}],Ff={current:{}},Fn={draggable:{measure:Ci},droppable:{measure:Ci,strategy:rn.WhileDragging,frequency:tr.Optimized},dragOverlay:{measure:Ft}};class tn extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const $f={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Fn,measureDroppableContainers:Gn,windowRect:null,measuringScheduled:!1},Lf={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gn,draggableNodes:new Map,over:null,measureDroppableContainers:Gn},oo=y.createContext(Lf),Xs=y.createContext($f);function jf(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tn}}}function Vf(e,t){switch(t.type){case ue.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ue.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ue.DragEnd:case ue.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ue.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new tn(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case ue.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const s=new tn(e.droppable.containers);return s.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case ue.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new tn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zf(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=y.useContext(oo),i=Jo(o),s=Jo(n?.id);return y.useEffect(()=>{if(!t&&!o&&i&&s!=null){if(!Mr(i)||document.activeElement===i.target)return;const a=r.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=Td(u);if(f){f.focus();break}}})}},[o,t,r,s,i]),null}function Bf(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}function Gf(e){return y.useMemo(()=>({draggable:{...Fn.draggable,...e?.draggable},droppable:{...Fn.droppable,...e?.droppable},dragOverlay:{...Fn.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Hf(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=y.useRef(!1),{x:s,y:a}=typeof r=="boolean"?{x:r,y:r}:r;ze(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!o)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=$s(u,o);if(s||(f.x=0),a||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const g=Ls(c);g&&g.scrollBy({top:f.y,left:f.x})}},[t,s,a,o,n])}const Js=y.createContext({...Ae,scaleX:1,scaleY:1});var nt;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(nt||(nt={}));const Uf=y.memo(function(t){var n,o,r,i;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=kf,collisionDetection:f=qd,measuring:g,modifiers:d,...h}=t;const p=y.useReducer(Vf,void 0,jf),[w,x]=p,[b,S]=Ld(),[C,E]=y.useState(nt.Uninitialized),I=C===nt.Initialized,{draggable:{active:M,nodes:R,translate:k},droppable:{containers:F}}=w,A=M!=null?R.get(M):null,W=y.useRef({initial:null,translated:null}),H=y.useMemo(()=>{var pe;return M!=null?{id:M,data:(pe=A?.data)!=null?pe:Ff,rect:W}:null},[M,A]),G=y.useRef(null),[D,O]=y.useState(null),[V,P]=y.useState(null),N=nn(h,Object.values(h)),_=gn("DndDescribedBy",s),$=y.useMemo(()=>F.getEnabled(),[F]),B=Gf(g),{droppableRects:K,measureDroppableContainers:J,measuringScheduled:oe}=Cf($,{dragging:I,dependencies:[k.x,k.y],config:B.droppable}),ne=Sf(R,M),T=y.useMemo(()=>V?Zo(V):null,[V]),U=Fc(),Q=Rf(ne,B.draggable.measure);Hf({activeNode:M!=null?R.get(M):null,config:U.layoutShiftCompensation,initialRect:Q,measure:B.draggable.measure});const z=Pi(ne,B.draggable.measure,Q),ee=Pi(ne?ne.parentElement:null),te=y.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:K,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),le=F.getNodeFor((n=te.current.over)==null?void 0:n.id),fe=Of({measure:B.dragOverlay.measure}),Oe=(o=fe.nodeRef.current)!=null?o:ne,ke=I?(r=fe.rect)!=null?r:z:null,xt=!!(fe.nodeRef.current&&fe.rect),ni=_f(xt?null:z),ho=qs(Oe?we(Oe):null),qe=Pf(I?le??ne:null),bn=Tf(qe),Sn=Bf(d,{transform:{x:k.x-ni.x,y:k.y-ni.y,scaleX:1,scaleY:1},activatorEvent:V,active:H,activeNodeRect:z,containerNodeRect:ee,draggingNodeRect:ke,over:te.current.over,overlayNodeRect:fe.rect,scrollableAncestors:qe,scrollableAncestorRects:bn,windowRect:ho}),oi=T?_t(T,k):null,ri=If(qe),Ic=Ai(ri),Ac=Ai(ri,[z]),bt=_t(Sn,Ic),St=ke?Zd(ke,Sn):null,Bt=H&&St?f({active:H,collisionRect:St,droppableRects:K,droppableContainers:$,pointerCoordinates:oi}):null,ii=Wd(Bt,"id"),[Xe,si]=y.useState(null),Dc=xt?Sn:_t(Sn,Ac),Tc=Xd(Dc,(i=Xe?.rect)!=null?i:null,z),vo=y.useRef(null),ai=y.useCallback((pe,xe)=>{let{sensor:be,options:Je}=xe;if(G.current==null)return;const Ee=R.get(G.current);if(!Ee)return;const Se=pe.nativeEvent,Fe=new be({active:G.current,activeNode:Ee,event:Se,options:Je,context:te,onAbort(ge){if(!R.get(ge))return;const{onDragAbort:$e}=N.current,He={id:ge};$e?.(He),b({type:"onDragAbort",event:He})},onPending(ge,Ze,$e,He){if(!R.get(ge))return;const{onDragPending:Ht}=N.current,Qe={id:ge,constraint:Ze,initialCoordinates:$e,offset:He};Ht?.(Qe),b({type:"onDragPending",event:Qe})},onStart(ge){const Ze=G.current;if(Ze==null)return;const $e=R.get(Ze);if(!$e)return;const{onDragStart:He}=N.current,Gt={activatorEvent:Se,active:{id:Ze,data:$e.data,rect:W}};gt.unstable_batchedUpdates(()=>{He?.(Gt),E(nt.Initializing),x({type:ue.DragStart,initialCoordinates:ge,active:Ze}),b({type:"onDragStart",event:Gt}),O(vo.current),P(Se)})},onMove(ge){x({type:ue.DragMove,coordinates:ge})},onEnd:yt(ue.DragEnd),onCancel:yt(ue.DragCancel)});vo.current=Fe;function yt(ge){return async function(){const{active:$e,collisions:He,over:Gt,scrollAdjustedTranslate:Ht}=te.current;let Qe=null;if($e&&Ht){const{cancelDrop:Ut}=N.current;Qe={activatorEvent:Se,active:$e,collisions:He,delta:Ht,over:Gt},ge===ue.DragEnd&&typeof Ut=="function"&&await Promise.resolve(Ut(Qe))&&(ge=ue.DragCancel)}G.current=null,gt.unstable_batchedUpdates(()=>{x({type:ge}),E(nt.Uninitialized),si(null),O(null),P(null),vo.current=null;const Ut=ge===ue.DragEnd?"onDragEnd":"onDragCancel";if(Qe){const wo=N.current[Ut];wo?.(Qe),b({type:Ut,event:Qe})}})}}},[R]),Nc=y.useCallback((pe,xe)=>(be,Je)=>{const Ee=be.nativeEvent,Se=R.get(Je);if(G.current!==null||!Se||Ee.dndKit||Ee.defaultPrevented)return;const Fe={active:Se};pe(be,xe.options,Fe)===!0&&(Ee.dndKit={capturedBy:xe.sensor},G.current=Je,ai(be,xe))},[R,ai]),li=yf(u,Nc);Af(u),ze(()=>{z&&C===nt.Initializing&&E(nt.Initialized)},[z,C]),y.useEffect(()=>{const{onDragMove:pe}=N.current,{active:xe,activatorEvent:be,collisions:Je,over:Ee}=te.current;if(!xe||!be)return;const Se={active:xe,activatorEvent:be,collisions:Je,delta:{x:bt.x,y:bt.y},over:Ee};gt.unstable_batchedUpdates(()=>{pe?.(Se),b({type:"onDragMove",event:Se})})},[bt.x,bt.y]),y.useEffect(()=>{const{active:pe,activatorEvent:xe,collisions:be,droppableContainers:Je,scrollAdjustedTranslate:Ee}=te.current;if(!pe||G.current==null||!xe||!Ee)return;const{onDragOver:Se}=N.current,Fe=Je.get(ii),yt=Fe&&Fe.rect.current?{id:Fe.id,rect:Fe.rect.current,data:Fe.data,disabled:Fe.disabled}:null,ge={active:pe,activatorEvent:xe,collisions:be,delta:{x:Ee.x,y:Ee.y},over:yt};gt.unstable_batchedUpdates(()=>{si(yt),Se?.(ge),b({type:"onDragOver",event:ge})})},[ii]),ze(()=>{te.current={activatorEvent:V,active:H,activeNode:ne,collisionRect:St,collisions:Bt,droppableRects:K,draggableNodes:R,draggingNode:Oe,draggingNodeRect:ke,droppableContainers:F,over:Xe,scrollableAncestors:qe,scrollAdjustedTranslate:bt},W.current={initial:ke,translated:St}},[H,ne,Bt,St,R,Oe,ke,K,F,Xe,qe,bt]),wf({...U,delta:k,draggingRect:St,pointerCoordinates:oi,scrollableAncestors:qe,scrollableAncestorRects:bn});const Oc=y.useMemo(()=>({active:H,activeNode:ne,activeNodeRect:z,activatorEvent:V,collisions:Bt,containerNodeRect:ee,dragOverlay:fe,draggableNodes:R,droppableContainers:F,droppableRects:K,over:Xe,measureDroppableContainers:J,scrollableAncestors:qe,scrollableAncestorRects:bn,measuringConfiguration:B,measuringScheduled:oe,windowRect:ho}),[H,ne,z,V,Bt,ee,fe,R,F,K,Xe,J,qe,bn,B,oe,ho]),kc=y.useMemo(()=>({activatorEvent:V,activators:li,active:H,activeNodeRect:z,ariaDescribedById:{draggable:_},dispatch:x,draggableNodes:R,over:Xe,measureDroppableContainers:J}),[V,li,H,z,x,_,R,Xe,J]);return y.createElement(Fs.Provider,{value:S},y.createElement(oo.Provider,{value:kc},y.createElement(Xs.Provider,{value:Oc},y.createElement(Js.Provider,{value:Tc},c)),y.createElement(zf,{disabled:a?.restoreFocus===!1})),y.createElement(zd,{...a,hiddenTextDescribedById:_}));function Fc(){const pe=D?.autoScrollEnabled===!1,xe=typeof l=="object"?l.enabled===!1:l===!1,be=I&&!pe&&!xe;return typeof l=="object"?{...l,enabled:be}:{enabled:be}}}),Wf=y.createContext(null),Ti="button",Kf="Draggable";function Yf(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=gn(Kf),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:g}=y.useContext(oo),{role:d=Ti,roleDescription:h="draggable",tabIndex:p=0}=r??{},w=l?.id===t,x=y.useContext(w?Js:Wf),[b,S]=zn(),[C,E]=zn(),I=Df(s,t),M=nn(n);ze(()=>(f.set(t,{id:t,key:i,node:b,activatorNode:C,data:M}),()=>{const k=f.get(t);k&&k.key===i&&f.delete(t)}),[f,t]);const R=y.useMemo(()=>({role:d,tabIndex:p,"aria-disabled":o,"aria-pressed":w&&d===Ti?!0:void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[o,d,p,w,h,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:R,isDragging:w,listeners:o?void 0:I,node:b,over:g,setNodeRef:S,setActivatorNodeRef:E,transform:x}}function qf(){return y.useContext(Xs)}const Xf="Droppable",Jf={timeout:25};function Zf(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=gn(Xf),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=y.useContext(oo),u=y.useRef({disabled:n}),f=y.useRef(!1),g=y.useRef(null),d=y.useRef(null),{disabled:h,updateMeasurementsFor:p,timeout:w}={...Jf,...r},x=nn(p??o),b=y.useCallback(()=>{if(!f.current){f.current=!0;return}d.current!=null&&clearTimeout(d.current),d.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),d.current=null},w)},[w]),S=no({callback:b,disabled:h||!s}),C=y.useCallback((R,k)=>{S&&(k&&(S.unobserve(k),f.current=!1),R&&S.observe(R))},[S]),[E,I]=zn(C),M=nn(t);return y.useEffect(()=>{!S||!E.current||(S.disconnect(),f.current=!1,S.observe(E.current))},[E,S]),y.useEffect(()=>(a({type:ue.RegisterDroppable,element:{id:o,key:i,disabled:n,node:E,rect:g,data:M}}),()=>a({type:ue.UnregisterDroppable,key:i,id:o})),[o]),y.useEffect(()=>{n!==u.current.disabled&&(a({type:ue.SetDroppableDisabled,id:o,key:i,disabled:n}),u.current.disabled=n)},[o,i,n,a]),{active:s,rect:g,isOver:l?.id===o,node:E,over:l,setNodeRef:I}}function Dr(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function Qf(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function Pn(e){return e!==null&&e>=0}function eg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function tg(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Zs=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=Dr(t,o,n),s=t[r],a=i[r];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},In={scaleX:1,scaleY:1},ng=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:o;if(!a)return null;if(r===n){const c=i[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...In}:null}const l=og(i,r,n);return r>n&&r<=s?{x:0,y:-a.height-l,...In}:r<n&&r>=s?{x:0,y:a.height+l,...In}:{x:0,y:0,...In}};function og(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];return o?n<t?r?o.top-(r.top+r.height):i?i.top-(o.top+o.height):0:i?i.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}const Qs="Sortable",ea=y.createContext({activeIndex:-1,containerId:Qs,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Zs,disabled:{draggable:!1,droppable:!1}});function rg(e){let{children:t,id:n,items:o,strategy:r=Zs,disabled:i=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=qf(),f=gn(Qs,n),g=a.rect!==null,d=y.useMemo(()=>o.map(I=>typeof I=="object"&&"id"in I?I.id:I),[o]),h=s!=null,p=s?d.indexOf(s.id):-1,w=c?d.indexOf(c.id):-1,x=y.useRef(d),b=!eg(d,x.current),S=w!==-1&&p===-1||b,C=tg(i);ze(()=>{b&&h&&u(d)},[b,d,h,u]),y.useEffect(()=>{x.current=d},[d]);const E=y.useMemo(()=>({activeIndex:p,containerId:f,disabled:C,disableTransforms:S,items:d,overIndex:w,useDragOverlay:g,sortedRects:Qf(d,l),strategy:r}),[p,f,C.draggable,C.droppable,S,d,w,l,g,r]);return y.createElement(ea.Provider,{value:E},t)}const ig=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return Dr(n,o,r).indexOf(t)},sg=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!o||a!==i&&r===s?!1:n?!0:s!==r&&t===l},ag={duration:200,easing:"ease"},ta="transform",lg=on.Transition.toString({property:ta,duration:0,easing:"linear"}),cg={roleDescription:"sortable"};function ug(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,s]=y.useState(null),a=y.useRef(n);return ze(()=>{if(!t&&n!==a.current&&o.current){const l=r.current;if(l){const c=Ft(o.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,o,r]),y.useEffect(()=>{i&&s(null)},[i]),i}function dg(e){let{animateLayoutChanges:t=sg,attributes:n,disabled:o,data:r,getNewIndex:i=ig,id:s,strategy:a,resizeObserverConfig:l,transition:c=ag}=e;const{items:u,containerId:f,activeIndex:g,disabled:d,disableTransforms:h,sortedRects:p,overIndex:w,useDragOverlay:x,strategy:b}=y.useContext(ea),S=fg(o,d),C=u.indexOf(s),E=y.useMemo(()=>({sortable:{containerId:f,index:C,items:u},...r}),[f,r,C,u]),I=y.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:M,node:R,isOver:k,setNodeRef:F}=Zf({id:s,data:E,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...l}}),{active:A,activatorEvent:W,activeNodeRect:H,attributes:G,setNodeRef:D,listeners:O,isDragging:V,over:P,setActivatorNodeRef:N,transform:_}=Yf({id:s,data:E,attributes:{...cg,...n},disabled:S.draggable}),$=Pd(F,D),B=!!A,K=B&&!h&&Pn(g)&&Pn(w),J=!x&&V,oe=J&&K?_:null,T=K?oe??(a??b)({rects:p,activeNodeRect:H,activeIndex:g,overIndex:w,index:C}):null,U=Pn(g)&&Pn(w)?i({id:s,items:u,activeIndex:g,overIndex:w}):C,Q=A?.id,z=y.useRef({activeId:Q,items:u,newIndex:U,containerId:f}),ee=u!==z.current.items,te=t({active:A,containerId:f,isDragging:V,isSorting:B,id:s,index:C,items:u,newIndex:z.current.newIndex,previousItems:z.current.items,previousContainerId:z.current.containerId,transition:c,wasDragging:z.current.activeId!=null}),le=ug({disabled:!te,index:C,node:R,rect:M});return y.useEffect(()=>{B&&z.current.newIndex!==U&&(z.current.newIndex=U),f!==z.current.containerId&&(z.current.containerId=f),u!==z.current.items&&(z.current.items=u)},[B,U,f,u]),y.useEffect(()=>{if(Q===z.current.activeId)return;if(Q!=null&&z.current.activeId==null){z.current.activeId=Q;return}const Oe=setTimeout(()=>{z.current.activeId=Q},50);return()=>clearTimeout(Oe)},[Q]),{active:A,activeIndex:g,attributes:G,data:E,rect:M,index:C,newIndex:U,items:u,isOver:k,isSorting:B,isDragging:V,listeners:O,node:R,overIndex:w,over:P,setNodeRef:$,setActivatorNodeRef:N,setDroppableNodeRef:F,setDraggableNodeRef:D,transform:le??T,transition:fe()};function fe(){if(le||ee&&z.current.newIndex===C)return lg;if(!(J&&!Mr(W)||!c)&&(B||te))return on.Transition.toString({...c,property:ta})}}function fg(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}re.Down,re.Right,re.Up,re.Left;function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function $t(e,t=[]){let n=[];function o(i,s){const a=m.createContext(s),l=n.length;n=[...n,s];const c=f=>{const{scope:g,children:d,...h}=f,p=g?.[e]?.[l]||a,w=m.useMemo(()=>h,Object.values(h));return v.jsx(p.Provider,{value:w,children:d})};c.displayName=i+"Provider";function u(f,g){const d=g?.[e]?.[l]||a,h=m.useContext(d);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const r=()=>{const i=n.map(s=>m.createContext(s));return function(a){const l=a?.[e]||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,gg(r,...t)]}function gg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var he=globalThis?.document?m.useLayoutEffect:()=>{},pg=m[" useInsertionEffect ".trim().toString()]||he;function sn({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=mg({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}const c=m.useCallback(u=>{if(a){const f=hg(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[l,c]}function mg({defaultProp:e,onChange:t}){const[n,o]=m.useState(e),r=m.useRef(n),i=m.useRef(t);return pg(()=>{i.current=t},[t]),m.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function hg(e){return typeof e=="function"}var vg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=vg.reduce((e,t)=>{const n=At(`Primitive.${t}`),o=m.forwardRef((r,i)=>{const{asChild:s,...a}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function na(e,t){e&&Zn.flushSync(()=>e.dispatchEvent(t))}function Tr(e){const t=e+"CollectionProvider",[n,o]=$t(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:w,children:x}=p,b=y.useRef(null),S=y.useRef(new Map).current;return v.jsx(r,{scope:w,itemMap:S,collectionRef:b,children:x})};s.displayName=t;const a=e+"CollectionSlot",l=At(a),c=y.forwardRef((p,w)=>{const{scope:x,children:b}=p,S=i(a,x),C=ae(w,S.collectionRef);return v.jsx(l,{ref:C,children:b})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",g=At(u),d=y.forwardRef((p,w)=>{const{scope:x,children:b,...S}=p,C=y.useRef(null),E=ae(w,C),I=i(u,x);return y.useEffect(()=>(I.itemMap.set(C,{ref:C,...S}),()=>void I.itemMap.delete(C))),v.jsx(g,{[f]:"",ref:E,children:b})});d.displayName=u;function h(p){const w=i(e+"CollectionConsumer",p);return y.useCallback(()=>{const b=w.collectionRef.current;if(!b)return[];const S=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((I,M)=>S.indexOf(I.ref.current)-S.indexOf(M.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:c,ItemSlot:d},h,o]}var wg=m.createContext(void 0);function Nr(e){const t=m.useContext(wg);return e||t||"ltr"}function De(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>t.current?.(...n),[])}function xg(e,t=globalThis?.document){const n=De(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var bg="DismissableLayer",nr="dismissableLayer.update",Sg="dismissableLayer.pointerDownOutside",yg="dismissableLayer.focusOutside",Ni,oa=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Or=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=m.useContext(oa),[u,f]=m.useState(null),g=u?.ownerDocument??globalThis?.document,[,d]=m.useState({}),h=ae(t,M=>f(M)),p=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(w),b=u?p.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,E=Eg(M=>{const R=M.target,k=[...c.branches].some(F=>F.contains(R));!C||k||(r?.(M),s?.(M),M.defaultPrevented||a?.())},g),I=Mg(M=>{const R=M.target;[...c.branches].some(F=>F.contains(R))||(i?.(M),s?.(M),M.defaultPrevented||a?.())},g);return xg(M=>{b===c.layers.size-1&&(o?.(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},g),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ni=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Oi(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ni)}},[u,g,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Oi())},[u,c]),m.useEffect(()=>{const M=()=>d({});return document.addEventListener(nr,M),()=>document.removeEventListener(nr,M)},[]),v.jsx(ie.div,{...l,ref:h,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,I.onFocusCapture),onBlurCapture:X(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,E.onPointerDownCapture)})});Or.displayName=bg;var Cg="DismissableLayerBranch",Rg=m.forwardRef((e,t)=>{const n=m.useContext(oa),o=m.useRef(null),r=ae(t,o);return m.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ie.div,{...e,ref:r})});Rg.displayName=Cg;function Eg(e,t=globalThis?.document){const n=De(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let l=function(){ra(Sg,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Mg(e,t=globalThis?.document){const n=De(e),o=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!o.current&&ra(yg,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Oi(){const e=new CustomEvent(nr);document.dispatchEvent(e)}function ra(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?na(r,i):r.dispatchEvent(i)}var No=0;function ia(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ki()),document.body.insertAdjacentElement("beforeend",e[1]??ki()),No++,()=>{No===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),No--}},[])}function ki(){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 Oo="focusScope.autoFocusOnMount",ko="focusScope.autoFocusOnUnmount",Fi={bubbles:!1,cancelable:!0},_g="FocusScope",kr=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,l]=m.useState(null),c=De(r),u=De(i),f=m.useRef(null),g=ae(t,p=>l(p)),d=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let p=function(S){if(d.paused||!a)return;const C=S.target;a.contains(C)?f.current=C:tt(f.current,{select:!0})},w=function(S){if(d.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||tt(f.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&tt(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),b.disconnect()}}},[o,a,d.paused]),m.useEffect(()=>{if(a){Li.add(d);const p=document.activeElement;if(!a.contains(p)){const x=new CustomEvent(Oo,Fi);a.addEventListener(Oo,c),a.dispatchEvent(x),x.defaultPrevented||(Pg(Ng(sa(a)),{select:!0}),document.activeElement===p&&tt(a))}return()=>{a.removeEventListener(Oo,c),setTimeout(()=>{const x=new CustomEvent(ko,Fi);a.addEventListener(ko,u),a.dispatchEvent(x),x.defaultPrevented||tt(p??document.body,{select:!0}),a.removeEventListener(ko,u),Li.remove(d)},0)}}},[a,c,u,d]);const h=m.useCallback(p=>{if(!n&&!o||d.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(w&&x){const b=p.currentTarget,[S,C]=Ig(b);S&&C?!p.shiftKey&&x===C?(p.preventDefault(),n&&tt(S,{select:!0})):p.shiftKey&&x===S&&(p.preventDefault(),n&&tt(C,{select:!0})):x===b&&p.preventDefault()}},[n,o,d.paused]);return v.jsx(ie.div,{tabIndex:-1,...s,ref:g,onKeyDown:h})});kr.displayName=_g;function Pg(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(tt(o,{select:t}),document.activeElement!==n)return}function Ig(e){const t=sa(e),n=$i(t,e),o=$i(t.reverse(),e);return[n,o]}function sa(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $i(e,t){for(const n of e)if(!Ag(n,{upTo:t}))return n}function Ag(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dg(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dg(e)&&t&&e.select()}}var Li=Tg();function Tg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ji(e,t),e.unshift(t)},remove(t){e=ji(e,t),e[0]?.resume()}}}function ji(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ng(e){return e.filter(t=>t.tagName!=="A")}var Og=m[" useId ".trim().toString()]||(()=>{}),kg=0;function it(e){const[t,n]=m.useState(Og());return he(()=>{n(o=>o??String(kg++))},[e]),e||(t?`radix-${t}`:"")}const Fg=["top","right","bottom","left"],st=Math.min,ye=Math.max,Un=Math.round,An=Math.floor,Ve=e=>({x:e,y:e}),$g={left:"right",right:"left",bottom:"top",top:"bottom"},Lg={start:"end",end:"start"};function or(e,t,n){return ye(e,st(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function Lt(e){return e.split("-")[1]}function Fr(e){return e==="x"?"y":"x"}function $r(e){return e==="y"?"height":"width"}const jg=new Set(["top","bottom"]);function je(e){return jg.has(Ye(e))?"y":"x"}function Lr(e){return Fr(je(e))}function Vg(e,t,n){n===void 0&&(n=!1);const o=Lt(e),r=Lr(e),i=$r(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wn(s)),[s,Wn(s)]}function zg(e){const t=Wn(e);return[rr(e),t,rr(t)]}function rr(e){return e.replace(/start|end/g,t=>Lg[t])}const Vi=["left","right"],zi=["right","left"],Bg=["top","bottom"],Gg=["bottom","top"];function Hg(e,t,n){switch(e){case"top":case"bottom":return n?t?zi:Vi:t?Vi:zi;case"left":case"right":return t?Bg:Gg;default:return[]}}function Ug(e,t,n,o){const r=Lt(e);let i=Hg(Ye(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(rr)))),i}function Wn(e){return e.replace(/left|right|bottom|top/g,t=>$g[t])}function Wg(e){return{top:0,right:0,bottom:0,left:0,...e}}function aa(e){return typeof e!="number"?Wg(e):{top:e,right:e,bottom:e,left:e}}function Kn(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Bi(e,t,n){let{reference:o,floating:r}=e;const i=je(t),s=Lr(t),a=$r(s),l=Ye(t),c=i==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,g=o[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:o.y-r.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-r.width,y:f};break;default:d={x:o.x,y:o.y}}switch(Lt(t)){case"start":d[s]-=g*(n&&c?-1:1);break;case"end":d[s]+=g*(n&&c?-1:1);break}return d}const Kg=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=Bi(c,o,l),g=o,d={},h=0;for(let p=0;p<a.length;p++){const{name:w,fn:x}=a[p],{x:b,y:S,data:C,reset:E}=await x({x:u,y:f,initialPlacement:o,placement:g,strategy:r,middlewareData:d,rects:c,platform:s,elements:{reference:e,floating:t}});u=b??u,f=S??f,d={...d,[w]:{...d[w],...C}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:u,y:f}=Bi(c,g,l)),p=-1)}return{x:u,y:f,placement:g,strategy:r,middlewareData:d}};async function an(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:d=0}=Ke(t,e),h=aa(d),w=a[g?f==="floating"?"reference":"floating":f],x=Kn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Kn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:S,strategy:l}):b);return{top:(x.top-E.top+h.top)/C.y,bottom:(E.bottom-x.bottom+h.bottom)/C.y,left:(x.left-E.left+h.left)/C.x,right:(E.right-x.right+h.right)/C.x}}const Yg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Ke(e,t)||{};if(c==null)return{};const f=aa(u),g={x:n,y:o},d=Lr(r),h=$r(d),p=await s.getDimensions(c),w=d==="y",x=w?"top":"left",b=w?"bottom":"right",S=w?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[d]-g[d]-i.floating[h],E=g[d]-i.reference[d],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let M=I?I[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(I)))&&(M=a.floating[S]||i.floating[h]);const R=C/2-E/2,k=M/2-p[h]/2-1,F=st(f[x],k),A=st(f[b],k),W=F,H=M-p[h]-A,G=M/2-p[h]/2+R,D=or(W,G,H),O=!l.arrow&&Lt(r)!=null&&G!==D&&i.reference[h]/2-(G<W?F:A)-p[h]/2<0,V=O?G<W?G-W:G-H:0;return{[d]:g[d]+V,data:{[d]:D,centerOffset:G-D-V,...O&&{alignmentOffset:V}},reset:O}}}),qg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...w}=Ke(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Ye(r),b=je(a),S=Ye(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=g||(S||!p?[Wn(a)]:zg(a)),I=h!=="none";!g&&I&&E.push(...Ug(a,p,h,C));const M=[a,...E],R=await an(t,w),k=[];let F=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&k.push(R[x]),f){const G=Vg(r,s,C);k.push(R[G[0]],R[G[1]])}if(F=[...F,{placement:r,overflows:k}],!k.every(G=>G<=0)){var A,W;const G=(((A=i.flip)==null?void 0:A.index)||0)+1,D=M[G];if(D&&(!(f==="alignment"?b!==je(D):!1)||F.every(P=>je(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:G,overflows:F},reset:{placement:D}};let O=(W=F.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(d){case"bestFit":{var H;const V=(H=F.filter(P=>{if(I){const N=je(P.placement);return N===b||N==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(N=>N>0).reduce((N,_)=>N+_,0)]).sort((P,N)=>P[1]-N[1])[0])==null?void 0:H[0];V&&(O=V);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Gi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hi(e){return Fg.some(t=>e[t]>=0)}const Xg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Ke(e,t);switch(o){case"referenceHidden":{const i=await an(t,{...r,elementContext:"reference"}),s=Gi(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Hi(s)}}}case"escaped":{const i=await an(t,{...r,altBoundary:!0}),s=Gi(i,n.floating);return{data:{escapedOffsets:s,escaped:Hi(s)}}}default:return{}}}}},la=new Set(["left","top"]);async function Jg(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ye(n),a=Lt(n),l=je(n)==="y",c=la.has(s)?-1:1,u=i&&l?-1:1,f=Ke(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(d=a==="end"?h*-1:h),l?{x:d*u,y:g*c}:{x:g*c,y:d*u}}const Zg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Jg(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Qg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=Ke(e,t),c={x:n,y:o},u=await an(t,l),f=je(Ye(r)),g=Fr(f);let d=c[g],h=c[f];if(i){const w=g==="y"?"top":"left",x=g==="y"?"bottom":"right",b=d+u[w],S=d-u[x];d=or(b,d,S)}if(s){const w=f==="y"?"top":"left",x=f==="y"?"bottom":"right",b=h+u[w],S=h-u[x];h=or(b,h,S)}const p=a.fn({...t,[g]:d,[f]:h});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[g]:i,[f]:s}}}}}},ep=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ke(e,t),u={x:n,y:o},f=je(r),g=Fr(f);let d=u[g],h=u[f];const p=Ke(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const S=g==="y"?"height":"width",C=i.reference[g]-i.floating[S]+w.mainAxis,E=i.reference[g]+i.reference[S]-w.mainAxis;d<C?d=C:d>E&&(d=E)}if(c){var x,b;const S=g==="y"?"width":"height",C=la.has(Ye(r)),E=i.reference[f]-i.floating[S]+(C&&((x=s.offset)==null?void 0:x[f])||0)+(C?0:w.crossAxis),I=i.reference[f]+i.reference[S]+(C?0:((b=s.offset)==null?void 0:b[f])||0)-(C?w.crossAxis:0);h<E?h=E:h>I&&(h=I)}return{[g]:d,[f]:h}}}},tp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ke(e,t),u=await an(t,c),f=Ye(r),g=Lt(r),d=je(r)==="y",{width:h,height:p}=i.floating;let w,x;f==="top"||f==="bottom"?(w=f,x=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=f,w=g==="end"?"top":"bottom");const b=p-u.top-u.bottom,S=h-u.left-u.right,C=st(p-u[w],b),E=st(h-u[x],S),I=!t.middlewareData.shift;let M=C,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=S),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(M=b),I&&!g){const F=ye(u.left,0),A=ye(u.right,0),W=ye(u.top,0),H=ye(u.bottom,0);d?R=h-2*(F!==0||A!==0?F+A:ye(u.left,u.right)):M=p-2*(W!==0||H!==0?W+H:ye(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:M});const k=await s.getDimensions(a.floating);return h!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function ro(){return typeof window<"u"}function jt(e){return ca(e)?(e.nodeName||"").toLowerCase():"#document"}function Ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ge(e){var t;return(t=(ca(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ca(e){return ro()?e instanceof Node||e instanceof Ce(e).Node:!1}function Te(e){return ro()?e instanceof Element||e instanceof Ce(e).Element:!1}function Be(e){return ro()?e instanceof HTMLElement||e instanceof Ce(e).HTMLElement:!1}function Ui(e){return!ro()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ce(e).ShadowRoot}const np=new Set(["inline","contents"]);function pn(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!np.has(r)}const op=new Set(["table","td","th"]);function rp(e){return op.has(jt(e))}const ip=[":popover-open",":modal"];function io(e){return ip.some(t=>{try{return e.matches(t)}catch{return!1}})}const sp=["transform","translate","scale","rotate","perspective"],ap=["transform","translate","scale","rotate","perspective","filter"],lp=["paint","layout","strict","content"];function jr(e){const t=Vr(),n=Te(e)?Ne(e):e;return sp.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ap.some(o=>(n.willChange||"").includes(o))||lp.some(o=>(n.contain||"").includes(o))}function cp(e){let t=at(e);for(;Be(t)&&!Dt(t);){if(jr(t))return t;if(io(t))return null;t=at(t)}return null}function Vr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const up=new Set(["html","body","#document"]);function Dt(e){return up.has(jt(e))}function Ne(e){return Ce(e).getComputedStyle(e)}function so(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ui(e)&&e.host||Ge(e);return Ui(t)?t.host:t}function ua(e){const t=at(e);return Dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&pn(t)?t:ua(t)}function ln(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ua(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Ce(r);if(i){const a=ir(s);return t.concat(s,s.visualViewport||[],pn(r)?r:[],a&&n?ln(a):[])}return t.concat(r,ln(r,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function da(e){const t=Ne(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Be(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Un(n)!==i||Un(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function zr(e){return Te(e)?e:e.contextElement}function Pt(e){const t=zr(e);if(!Be(t))return Ve(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=da(t);let s=(i?Un(n.width):n.width)/o,a=(i?Un(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const dp=Ve(0);function fa(e){const t=Ce(e);return!Vr()||!t.visualViewport?dp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ce(e)?!1:t}function pt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=zr(e);let s=Ve(1);t&&(o?Te(o)&&(s=Pt(o)):s=Pt(e));const a=fp(i,n,o)?fa(i):Ve(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const g=Ce(i),d=o&&Te(o)?Ce(o):o;let h=g,p=ir(h);for(;p&&o&&d!==h;){const w=Pt(p),x=p.getBoundingClientRect(),b=Ne(p),S=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*w.x,C=x.top+(p.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,f*=w.y,l+=S,c+=C,h=Ce(p),p=ir(h)}}return Kn({width:u,height:f,x:l,y:c})}function ao(e,t){const n=so(e).scrollLeft;return t?t.left+n:pt(Ge(e)).left+n}function ga(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-ao(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function gp(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Ge(o),a=t?io(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ve(1);const u=Ve(0),f=Be(o);if((f||!f&&!i)&&((jt(o)!=="body"||pn(s))&&(l=so(o)),Be(o))){const d=pt(o);c=Pt(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const g=s&&!f&&!i?ga(s,l):Ve(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+g.x,y:n.y*c.y-l.scrollTop*c.y+u.y+g.y}}function pp(e){return Array.from(e.getClientRects())}function mp(e){const t=Ge(e),n=so(e),o=e.ownerDocument.body,r=ye(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ye(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ao(e);const a=-n.scrollTop;return Ne(o).direction==="rtl"&&(s+=ye(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Wi=25;function hp(e,t){const n=Ce(e),o=Ge(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const u=Vr();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=ao(o);if(c<=0){const u=o.ownerDocument,f=u.body,g=getComputedStyle(f),d=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-d);h<=Wi&&(i-=h)}else c<=Wi&&(i+=c);return{width:i,height:s,x:a,y:l}}const vp=new Set(["absolute","fixed"]);function wp(e,t){const n=pt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Be(e)?Pt(e):Ve(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=o*i.y;return{width:s,height:a,x:l,y:c}}function Ki(e,t,n){let o;if(t==="viewport")o=hp(e,n);else if(t==="document")o=mp(Ge(e));else if(Te(t))o=wp(t,n);else{const r=fa(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kn(o)}function pa(e,t){const n=at(e);return n===t||!Te(n)||Dt(n)?!1:Ne(n).position==="fixed"||pa(n,t)}function xp(e,t){const n=t.get(e);if(n)return n;let o=ln(e,[],!1).filter(a=>Te(a)&&jt(a)!=="body"),r=null;const i=Ne(e).position==="fixed";let s=i?at(e):e;for(;Te(s)&&!Dt(s);){const a=Ne(s),l=jr(s);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&vp.has(r.position)||pn(s)&&!l&&pa(e,s))?o=o.filter(u=>u!==s):r=a,s=at(s)}return t.set(e,o),o}function bp(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?io(t)?[]:xp(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,u)=>{const f=Ki(t,u,r);return c.top=ye(f.top,c.top),c.right=st(f.right,c.right),c.bottom=st(f.bottom,c.bottom),c.left=ye(f.left,c.left),c},Ki(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sp(e){const{width:t,height:n}=da(e);return{width:t,height:n}}function yp(e,t,n){const o=Be(t),r=Ge(t),i=n==="fixed",s=pt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ve(0);function c(){l.x=ao(r)}if(o||!o&&!i)if((jt(t)!=="body"||pn(r))&&(a=so(t)),o){const d=pt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&c();i&&!o&&r&&c();const u=r&&!o&&!i?ga(r,a):Ve(0),f=s.left+a.scrollLeft-l.x-u.x,g=s.top+a.scrollTop-l.y-u.y;return{x:f,y:g,width:s.width,height:s.height}}function Fo(e){return Ne(e).position==="static"}function Yi(e,t){if(!Be(e)||Ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ge(e)===n&&(n=n.ownerDocument.body),n}function ma(e,t){const n=Ce(e);if(io(e))return n;if(!Be(e)){let r=at(e);for(;r&&!Dt(r);){if(Te(r)&&!Fo(r))return r;r=at(r)}return n}let o=Yi(e,t);for(;o&&rp(o)&&Fo(o);)o=Yi(o,t);return o&&Dt(o)&&Fo(o)&&!jr(o)?n:o||cp(e)||n}const Cp=async function(e){const t=this.getOffsetParent||ma,n=this.getDimensions,o=await n(e.floating);return{reference:yp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Rp(e){return Ne(e).direction==="rtl"}const Ep={convertOffsetParentRelativeRectToViewportRelativeRect:gp,getDocumentElement:Ge,getClippingRect:bp,getOffsetParent:ma,getElementRects:Cp,getClientRects:pp,getDimensions:Sp,getScale:Pt,isElement:Te,isRTL:Rp};function ha(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mp(e,t){let n=null,o;const r=Ge(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:g,height:d}=c;if(a||t(),!g||!d)return;const h=An(f),p=An(r.clientWidth-(u+g)),w=An(r.clientHeight-(f+d)),x=An(u),S={rootMargin:-h+"px "+-p+"px "+-w+"px "+-x+"px",threshold:ye(0,st(1,l))||1};let C=!0;function E(I){const M=I[0].intersectionRatio;if(M!==l){if(!C)return s();M?s(!1,M):o=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!ha(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return s(!0),i}function _p(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=zr(e),u=r||i?[...c?ln(c):[],...ln(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=c&&a?Mp(c,n):null;let g=-1,d=null;s&&(d=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(t)})),n()}),c&&!l&&d.observe(c),d.observe(t));let h,p=l?pt(e):null;l&&w();function w(){const x=pt(e);p&&!ha(p,x)&&n(),p=x,h=requestAnimationFrame(w)}return n(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),f?.(),(x=d)==null||x.disconnect(),d=null,l&&cancelAnimationFrame(h)}}const Pp=Zg,Ip=Qg,Ap=qg,Dp=tp,Tp=Xg,qi=Yg,Np=ep,Op=(e,t,n)=>{const o=new Map,r={platform:Ep,...n},i={...r.platform,_c:o};return Kg(e,t,{...r,platform:i})};var kp=typeof document<"u",Fp=function(){},$n=kp?y.useLayoutEffect:Fp;function Yn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Yn(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Yn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function va(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xi(e,t){const n=va(e);return Math.round(t*n)/n}function $o(e){const t=m.useRef(e);return $n(()=>{t.current=e}),t}function $p(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=m.useState(o);Yn(g,o)||d(o);const[h,p]=m.useState(null),[w,x]=m.useState(null),b=m.useCallback(P=>{P!==I.current&&(I.current=P,p(P))},[]),S=m.useCallback(P=>{P!==M.current&&(M.current=P,x(P))},[]),C=i||h,E=s||w,I=m.useRef(null),M=m.useRef(null),R=m.useRef(u),k=l!=null,F=$o(l),A=$o(r),W=$o(c),H=m.useCallback(()=>{if(!I.current||!M.current)return;const P={placement:t,strategy:n,middleware:g};A.current&&(P.platform=A.current),Op(I.current,M.current,P).then(N=>{const _={...N,isPositioned:W.current!==!1};G.current&&!Yn(R.current,_)&&(R.current=_,Zn.flushSync(()=>{f(_)}))})},[g,t,n,A,W]);$n(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);const G=m.useRef(!1);$n(()=>(G.current=!0,()=>{G.current=!1}),[]),$n(()=>{if(C&&(I.current=C),E&&(M.current=E),C&&E){if(F.current)return F.current(C,E,H);H()}},[C,E,H,F,k]);const D=m.useMemo(()=>({reference:I,floating:M,setReference:b,setFloating:S}),[b,S]),O=m.useMemo(()=>({reference:C,floating:E}),[C,E]),V=m.useMemo(()=>{const P={position:n,left:0,top:0};if(!O.floating)return P;const N=Xi(O.floating,u.x),_=Xi(O.floating,u.y);return a?{...P,transform:"translate("+N+"px, "+_+"px)",...va(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:_}},[n,a,O.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:H,refs:D,elements:O,floatingStyles:V}),[u,H,D,O,V])}const Lp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?qi({element:o.current,padding:r}).fn(n):{}:o?qi({element:o,padding:r}).fn(n):{}}}},jp=(e,t)=>({...Pp(e),options:[e,t]}),Vp=(e,t)=>({...Ip(e),options:[e,t]}),zp=(e,t)=>({...Np(e),options:[e,t]}),Bp=(e,t)=>({...Ap(e),options:[e,t]}),Gp=(e,t)=>({...Dp(e),options:[e,t]}),Hp=(e,t)=>({...Tp(e),options:[e,t]}),Up=(e,t)=>({...Lp(e),options:[e,t]});var Wp="Arrow",wa=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return v.jsx(ie.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});wa.displayName=Wp;var Kp=wa;function Yp(e){const[t,n]=m.useState(void 0);return he(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Br="Popper",[xa,lo]=$t(Br),[qp,ba]=xa(Br),Sa=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return v.jsx(qp,{scope:t,anchor:o,onAnchorChange:r,children:n})};Sa.displayName=Br;var ya="PopperAnchor",Ca=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=ba(ya,n),s=m.useRef(null),a=ae(t,s),l=m.useRef(null);return m.useEffect(()=>{const c=l.current;l.current=o?.current||s.current,c!==l.current&&i.onAnchorChange(l.current)}),o?null:v.jsx(ie.div,{...r,ref:a})});Ca.displayName=ya;var Gr="PopperContent",[Xp,Jp]=xa(Gr),Ra=m.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:d="optimized",onPlaced:h,...p}=e,w=ba(Gr,n),[x,b]=m.useState(null),S=ae(t,T=>b(T)),[C,E]=m.useState(null),I=Yp(C),M=I?.width??0,R=I?.height??0,k=o+(i!=="center"?"-"+i:""),F=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(c)?c:[c],W=A.length>0,H={padding:F,boundary:A.filter(Qp),altBoundary:W},{refs:G,floatingStyles:D,placement:O,isPositioned:V,middlewareData:P}=$p({strategy:"fixed",placement:k,whileElementsMounted:(...T)=>_p(...T,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[jp({mainAxis:r+R,alignmentAxis:s}),l&&Vp({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zp():void 0,...H}),l&&Bp({...H}),Gp({...H,apply:({elements:T,rects:U,availableWidth:Q,availableHeight:z})=>{const{width:ee,height:te}=U.reference,le=T.floating.style;le.setProperty("--radix-popper-available-width",`${Q}px`),le.setProperty("--radix-popper-available-height",`${z}px`),le.setProperty("--radix-popper-anchor-width",`${ee}px`),le.setProperty("--radix-popper-anchor-height",`${te}px`)}}),C&&Up({element:C,padding:a}),em({arrowWidth:M,arrowHeight:R}),g&&Hp({strategy:"referenceHidden",...H})]}),[N,_]=_a(O),$=De(h);he(()=>{V&&$?.()},[V,$]);const B=P.arrow?.x,K=P.arrow?.y,J=P.arrow?.centerOffset!==0,[oe,ne]=m.useState();return he(()=>{x&&ne(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:V?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Xp,{scope:n,placedSide:N,onArrowChange:E,arrowX:B,arrowY:K,shouldHideArrow:J,children:v.jsx(ie.div,{"data-side":N,"data-align":_,...p,ref:S,style:{...p.style,animation:V?void 0:"none"}})})})});Ra.displayName=Gr;var Ea="PopperArrow",Zp={top:"bottom",right:"left",bottom:"top",left:"right"},Ma=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Jp(Ea,o),s=Zp[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(Kp,{...r,ref:n,style:{...r.style,display:"block"}})})});Ma.displayName=Ea;function Qp(e){return e!==null}var em=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=_a(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let h="",p="";return c==="bottom"?(h=s?f:`${g}px`,p=`${-l}px`):c==="top"?(h=s?f:`${g}px`,p=`${o.floating.height+l}px`):c==="right"?(h=`${-l}px`,p=s?f:`${d}px`):c==="left"&&(h=`${o.floating.width+l}px`,p=s?f:`${d}px`),{data:{x:h,y:p}}}});function _a(e){const[t,n="center"]=e.split("-");return[t,n]}var Hr=Sa,Pa=Ca,Ia=Ra,Aa=Ma,tm="Portal",Ur=m.forwardRef((e,t)=>{const{container:n,...o}=e,[r,i]=m.useState(!1);he(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?gt.createPortal(v.jsx(ie.div,{...o,ref:t}),s):null});Ur.displayName=tm;function nm(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var mn=e=>{const{present:t,children:n}=e,o=om(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),i=ae(o.ref,rm(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:i}):null};mn.displayName="Presence";function om(e){const[t,n]=m.useState(),o=m.useRef(null),r=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,l]=nm(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=Dn(o.current);i.current=a==="mounted"?c:"none"},[a]),he(()=>{const c=o.current,u=r.current;if(u!==e){const g=i.current,d=Dn(c);e?l("MOUNT"):d==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&g!==d?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),he(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=d=>{const p=Dn(o.current).includes(CSS.escape(d.animationName));if(d.target===t&&p&&(l("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=d=>{d.target===t&&(i.current=Dn(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{o.current=c?getComputedStyle(c):null,n(c)},[])}}function Dn(e){return e?.animationName||"none"}function rm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lo="rovingFocusGroup.onEntryFocus",im={bubbles:!1,cancelable:!0},hn="RovingFocusGroup",[sr,Da,sm]=Tr(hn),[am,Ta]=$t(hn,[sm]),[lm,cm]=am(hn),Na=m.forwardRef((e,t)=>v.jsx(sr.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(sr.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(um,{...e,ref:t})})}));Na.displayName=hn;var um=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,g=m.useRef(null),d=ae(t,g),h=Nr(i),[p,w]=sn({prop:s,defaultProp:a??null,onChange:l,caller:hn}),[x,b]=m.useState(!1),S=De(c),C=Da(n),E=m.useRef(!1),[I,M]=m.useState(0);return m.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Lo,S),()=>R.removeEventListener(Lo,S)},[S]),v.jsx(lm,{scope:n,orientation:o,dir:h,loop:r,currentTabStopId:p,onItemFocus:m.useCallback(R=>w(R),[w]),onItemShiftTab:m.useCallback(()=>b(!0),[]),onFocusableItemAdd:m.useCallback(()=>M(R=>R+1),[]),onFocusableItemRemove:m.useCallback(()=>M(R=>R-1),[]),children:v.jsx(ie.div,{tabIndex:x||I===0?-1:0,"data-orientation":o,...f,ref:d,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{E.current=!0}),onFocus:X(e.onFocus,R=>{const k=!E.current;if(R.target===R.currentTarget&&k&&!x){const F=new CustomEvent(Lo,im);if(R.currentTarget.dispatchEvent(F),!F.defaultPrevented){const A=C().filter(O=>O.focusable),W=A.find(O=>O.active),H=A.find(O=>O.id===p),D=[W,H,...A].filter(Boolean).map(O=>O.ref.current);Fa(D,u)}}E.current=!1}),onBlur:X(e.onBlur,()=>b(!1))})})}),Oa="RovingFocusGroupItem",ka=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,children:s,...a}=e,l=it(),c=i||l,u=cm(Oa,n),f=u.currentTabStopId===c,g=Da(n),{onFocusableItemAdd:d,onFocusableItemRemove:h,currentTabStopId:p}=u;return m.useEffect(()=>{if(o)return d(),()=>h()},[o,d,h]),v.jsx(sr.ItemSlot,{scope:n,id:c,focusable:o,active:r,children:v.jsx(ie.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:X(e.onMouseDown,w=>{o?u.onItemFocus(c):w.preventDefault()}),onFocus:X(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:X(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){u.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const x=gm(w,u.orientation,u.dir);if(x!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let S=g().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")S.reverse();else if(x==="prev"||x==="next"){x==="prev"&&S.reverse();const C=S.indexOf(w.currentTarget);S=u.loop?pm(S,C+1):S.slice(C+1)}setTimeout(()=>Fa(S))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:p!=null}):s})})});ka.displayName=Oa;var dm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gm(e,t,n){const o=fm(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return dm[o]}function Fa(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function pm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var mm=Na,hm=ka,vm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rt=new WeakMap,Tn=new WeakMap,Nn={},jo=0,$a=function(e){return e&&(e.host||$a(e.parentNode))},wm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=$a(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xm=function(e,t,n,o){var r=wm(t,Array.isArray(e)?e:[e]);Nn[n]||(Nn[n]=new WeakMap);var i=Nn[n],s=[],a=new Set,l=new Set(r),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};r.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))u(g);else try{var d=g.getAttribute(o),h=d!==null&&d!=="false",p=(Rt.get(g)||0)+1,w=(i.get(g)||0)+1;Rt.set(g,p),i.set(g,w),s.push(g),p===1&&h&&Tn.set(g,!0),w===1&&g.setAttribute(n,"true"),h||g.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return u(t),a.clear(),jo++,function(){s.forEach(function(f){var g=Rt.get(f)-1,d=i.get(f)-1;Rt.set(f,g),i.set(f,d),g||(Tn.has(f)||f.removeAttribute(o),Tn.delete(f)),d||f.removeAttribute(n)}),jo--,jo||(Rt=new WeakMap,Rt=new WeakMap,Tn=new WeakMap,Nn={})}},La=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=vm(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),xm(o,r,n,"aria-hidden")):function(){return null}},Le=function(){return Le=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Le.apply(this,arguments)};function ja(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function bm(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Ln="right-scroll-bar-position",jn="width-before-scroll-bar",Sm="with-scroll-bars-hidden",ym="--removed-body-scroll-bar-size";function Vo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cm(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Rm=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ji=new WeakMap;function Em(e,t){var n=Cm(null,function(o){return e.forEach(function(r){return Vo(r,o)})});return Rm(function(){var o=Ji.get(n);if(o){var r=new Set(o),i=new Set(e),s=n.current;r.forEach(function(a){i.has(a)||Vo(a,null)}),i.forEach(function(a){r.has(a)||Vo(a,s)})}Ji.set(n,e)},[e]),n}function Mm(e){return e}function _m(e,t){t===void 0&&(t=Mm);var n=[],o=!1,r={read:function(){if(o)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(i){var s=t(i,o);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return r}function Pm(e){e===void 0&&(e={});var t=_m(null);return t.options=Le({async:!0,ssr:!1},e),t}var Va=function(e){var t=e.sideCar,n=ja(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 m.createElement(o,Le({},n))};Va.isSideCarExport=!0;function Im(e,t){return e.useMedium(t),Va}var za=Pm(),zo=function(){},co=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:zo,onWheelCapture:zo,onTouchMoveCapture:zo}),r=o[0],i=o[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,d=e.noRelative,h=e.noIsolation,p=e.inert,w=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,S=e.gapMode,C=ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,I=Em([n,t]),M=Le(Le({},C),r);return m.createElement(m.Fragment,null,u&&m.createElement(E,{sideCar:za,removeScrollBar:c,shards:f,noRelative:d,noIsolation:h,inert:p,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:S}),s?m.cloneElement(m.Children.only(a),Le(Le({},M),{ref:I})):m.createElement(b,Le({},M,{className:l,ref:I}),a))});co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};co.classNames={fullWidth:jn,zeroRight:Ln};var Am=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Dm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Am();return t&&e.setAttribute("nonce",t),e}function Tm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Om=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Dm())&&(Tm(t,n),Nm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},km=function(){var e=Om();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ba=function(){var e=km(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Fm={left:0,top:0,right:0,gap:0},Bo=function(e){return parseInt(e||"",10)||0},$m=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Bo(n),Bo(o),Bo(r)]},Lm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fm;var t=$m(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},jm=Ba(),It="data-scroll-locked",Vm=function(e,t,n,o){var r=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
48
- .`.concat(Sm,` {
49
- overflow: hidden `).concat(o,`;
50
- padding-right: `).concat(a,"px ").concat(o,`;
51
- }
52
- body[`).concat(It,`] {
53
- overflow: hidden `).concat(o,`;
54
- overscroll-behavior: contain;
55
- `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
56
- padding-left: `.concat(r,`px;
57
- padding-top: `).concat(i,`px;
58
- padding-right: `).concat(s,`px;
59
- margin-left:0;
60
- margin-top:0;
61
- margin-right: `).concat(a,"px ").concat(o,`;
62
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
63
- }
64
-
65
- .`).concat(Ln,` {
66
- right: `).concat(a,"px ").concat(o,`;
67
- }
68
-
69
- .`).concat(jn,` {
70
- margin-right: `).concat(a,"px ").concat(o,`;
71
- }
72
-
73
- .`).concat(Ln," .").concat(Ln,` {
74
- right: 0 `).concat(o,`;
75
- }
76
-
77
- .`).concat(jn," .").concat(jn,` {
78
- margin-right: 0 `).concat(o,`;
79
- }
80
-
81
- body[`).concat(It,`] {
82
- `).concat(ym,": ").concat(a,`px;
83
- }
84
- `)},Zi=function(){var e=parseInt(document.body.getAttribute(It)||"0",10);return isFinite(e)?e:0},zm=function(){m.useEffect(function(){return document.body.setAttribute(It,(Zi()+1).toString()),function(){var e=Zi()-1;e<=0?document.body.removeAttribute(It):document.body.setAttribute(It,e.toString())}},[])},Bm=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;zm();var i=m.useMemo(function(){return Lm(r)},[r]);return m.createElement(jm,{styles:Vm(i,!t,r,n?"":"!important")})},ar=!1;if(typeof window<"u")try{var On=Object.defineProperty({},"passive",{get:function(){return ar=!0,!0}});window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{ar=!1}var Et=ar?{passive:!1}:!1,Gm=function(e){return e.tagName==="TEXTAREA"},Ga=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Gm(e)&&n[t]==="visible")},Hm=function(e){return Ga(e,"overflowY")},Um=function(e){return Ga(e,"overflowX")},Qi=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Ha(e,o);if(r){var i=Ua(e,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Wm=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Km=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Ha=function(e,t){return e==="v"?Hm(t):Um(t)},Ua=function(e,t){return e==="v"?Wm(t):Km(t)},Ym=function(e,t){return e==="h"&&t==="rtl"?-1:1},qm=function(e,t,n,o,r){var i=Ym(e,window.getComputedStyle(t).direction),s=i*o,a=n.target,l=t.contains(a),c=!1,u=s>0,f=0,g=0;do{if(!a)break;var d=Ua(e,a),h=d[0],p=d[1],w=d[2],x=p-w-i*h;(h||x)&&Ha(e,a)&&(f+=x,g+=h);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(g)<1)&&(c=!0),c},kn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},es=function(e){return[e.deltaX,e.deltaY]},ts=function(e){return e&&"current"in e?e.current:e},Xm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Jm=function(e){return`
85
- .block-interactivity-`.concat(e,` {pointer-events: none;}
86
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
87
- `)},Zm=0,Mt=[];function Qm(e){var t=m.useRef([]),n=m.useRef([0,0]),o=m.useRef(),r=m.useState(Zm++)[0],i=m.useState(Ba)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=bm([e.lockRef.current],(e.shards||[]).map(ts),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var x=kn(p),b=n.current,S="deltaX"in p?p.deltaX:b[0]-x[0],C="deltaY"in p?p.deltaY:b[1]-x[1],E,I=p.target,M=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in p&&M==="h"&&I.type==="range")return!1;var R=Qi(M,I);if(!R)return!0;if(R?E=M:(E=M==="v"?"h":"v",R=Qi(M,I)),!R)return!1;if(!o.current&&"changedTouches"in p&&(S||C)&&(o.current=E),!E)return!0;var k=o.current||E;return qm(k,w,p,k==="h"?S:C)},[]),l=m.useCallback(function(p){var w=p;if(!(!Mt.length||Mt[Mt.length-1]!==i)){var x="deltaY"in w?es(w):kn(w),b=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&Xm(E.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var S=(s.current.shards||[]).map(ts).filter(Boolean).filter(function(E){return E.contains(w.target)}),C=S.length>0?a(w,S[0]):!s.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),c=m.useCallback(function(p,w,x,b){var S={name:p,delta:w,target:x,should:b,shadowParent:eh(x)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),u=m.useCallback(function(p){n.current=kn(p),o.current=void 0},[]),f=m.useCallback(function(p){c(p.type,es(p),p.target,a(p,e.lockRef.current))},[]),g=m.useCallback(function(p){c(p.type,kn(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Mt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Et),document.addEventListener("touchmove",l,Et),document.addEventListener("touchstart",u,Et),function(){Mt=Mt.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Et),document.removeEventListener("touchmove",l,Et),document.removeEventListener("touchstart",u,Et)}},[]);var d=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:Jm(r)}):null,d?m.createElement(Bm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const th=Im(za,Qm);var Wr=m.forwardRef(function(e,t){return m.createElement(co,Le({},e,{ref:t,sideCar:th}))});Wr.classNames=co.classNames;var lr=["Enter"," "],nh=["ArrowDown","PageUp","Home"],Wa=["ArrowUp","PageDown","End"],oh=[...nh,...Wa],rh={ltr:[...lr,"ArrowRight"],rtl:[...lr,"ArrowLeft"]},ih={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vn="Menu",[cn,sh,ah]=Tr(vn),[vt,Ka]=$t(vn,[ah,lo,Ta]),wn=lo(),Ya=Ta(),[qa,lt]=vt(vn),[lh,xn]=vt(vn),Xa=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:i,modal:s=!0}=e,a=wn(t),[l,c]=m.useState(null),u=m.useRef(!1),f=De(i),g=Nr(r);return m.useEffect(()=>{const d=()=>{u.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>u.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),v.jsx(Hr,{...a,children:v.jsx(qa,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:v.jsx(lh,{scope:t,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:g,modal:s,children:o})})})};Xa.displayName=vn;var ch="MenuAnchor",Kr=m.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=wn(n);return v.jsx(Pa,{...r,...o,ref:t})});Kr.displayName=ch;var Yr="MenuPortal",[uh,Ja]=vt(Yr,{forceMount:void 0}),Za=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,i=lt(Yr,t);return v.jsx(uh,{scope:t,forceMount:n,children:v.jsx(mn,{present:n||i.open,children:v.jsx(Ur,{asChild:!0,container:r,children:o})})})};Za.displayName=Yr;var _e="MenuContent",[dh,qr]=vt(_e),Qa=m.forwardRef((e,t)=>{const n=Ja(_e,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=lt(_e,e.__scopeMenu),s=xn(_e,e.__scopeMenu);return v.jsx(cn.Provider,{scope:e.__scopeMenu,children:v.jsx(mn,{present:o||i.open,children:v.jsx(cn.Slot,{scope:e.__scopeMenu,children:s.modal?v.jsx(fh,{...r,ref:t}):v.jsx(gh,{...r,ref:t})})})})}),fh=m.forwardRef((e,t)=>{const n=lt(_e,e.__scopeMenu),o=m.useRef(null),r=ae(t,o);return m.useEffect(()=>{const i=o.current;if(i)return La(i)},[]),v.jsx(Xr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:X(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),gh=m.forwardRef((e,t)=>{const n=lt(_e,e.__scopeMenu);return v.jsx(Xr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ph=At("MenuContent.ScrollLock"),Xr=m.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,onDismiss:d,disableOutsideScroll:h,...p}=e,w=lt(_e,n),x=xn(_e,n),b=wn(n),S=Ya(n),C=sh(n),[E,I]=m.useState(null),M=m.useRef(null),R=ae(t,M,w.onContentChange),k=m.useRef(0),F=m.useRef(""),A=m.useRef(0),W=m.useRef(null),H=m.useRef("right"),G=m.useRef(0),D=h?Wr:m.Fragment,O=h?{as:ph,allowPinchZoom:!0}:void 0,V=N=>{const _=F.current+N,$=C().filter(T=>!T.disabled),B=document.activeElement,K=$.find(T=>T.ref.current===B)?.textValue,J=$.map(T=>T.textValue),oe=Mh(J,_,K),ne=$.find(T=>T.textValue===oe)?.ref.current;(function T(U){F.current=U,window.clearTimeout(k.current),U!==""&&(k.current=window.setTimeout(()=>T(""),1e3))})(_),ne&&setTimeout(()=>ne.focus())};m.useEffect(()=>()=>window.clearTimeout(k.current),[]),ia();const P=m.useCallback(N=>H.current===W.current?.side&&Ph(N,W.current?.area),[]);return v.jsx(dh,{scope:n,searchRef:F,onItemEnter:m.useCallback(N=>{P(N)&&N.preventDefault()},[P]),onItemLeave:m.useCallback(N=>{P(N)||(M.current?.focus(),I(null))},[P]),onTriggerLeave:m.useCallback(N=>{P(N)&&N.preventDefault()},[P]),pointerGraceTimerRef:A,onPointerGraceIntentChange:m.useCallback(N=>{W.current=N},[]),children:v.jsx(D,{...O,children:v.jsx(kr,{asChild:!0,trapped:r,onMountAutoFocus:X(i,N=>{N.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:v.jsx(Or,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,onDismiss:d,children:v.jsx(mm,{asChild:!0,...S,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:I,onEntryFocus:X(l,N=>{x.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(Ia,{role:"menu","aria-orientation":"vertical","data-state":hl(w.open),"data-radix-menu-content":"",dir:x.dir,...b,...p,ref:R,style:{outline:"none",...p.style},onKeyDown:X(p.onKeyDown,N=>{const $=N.target.closest("[data-radix-menu-content]")===N.currentTarget,B=N.ctrlKey||N.altKey||N.metaKey,K=N.key.length===1;$&&(N.key==="Tab"&&N.preventDefault(),!B&&K&&V(N.key));const J=M.current;if(N.target!==J||!oh.includes(N.key))return;N.preventDefault();const ne=C().filter(T=>!T.disabled).map(T=>T.ref.current);Wa.includes(N.key)&&ne.reverse(),Rh(ne)}),onBlur:X(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(k.current),F.current="")}),onPointerMove:X(e.onPointerMove,un(N=>{const _=N.target,$=G.current!==N.clientX;if(N.currentTarget.contains(_)&&$){const B=N.clientX>G.current?"right":"left";H.current=B,G.current=N.clientX}}))})})})})})})});Qa.displayName=_e;var mh="MenuGroup",Jr=m.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(ie.div,{role:"group",...o,ref:t})});Jr.displayName=mh;var hh="MenuLabel",el=m.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(ie.div,{...o,ref:t})});el.displayName=hh;var qn="MenuItem",ns="menu.itemSelect",uo=m.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,i=m.useRef(null),s=xn(qn,e.__scopeMenu),a=qr(qn,e.__scopeMenu),l=ae(t,i),c=m.useRef(!1),u=()=>{const f=i.current;if(!n&&f){const g=new CustomEvent(ns,{bubbles:!0,cancelable:!0});f.addEventListener(ns,d=>o?.(d),{once:!0}),na(f,g),g.defaultPrevented?c.current=!1:s.onClose()}};return v.jsx(tl,{...r,ref:l,disabled:n,onClick:X(e.onClick,u),onPointerDown:f=>{e.onPointerDown?.(f),c.current=!0},onPointerUp:X(e.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:X(e.onKeyDown,f=>{const g=a.searchRef.current!=="";n||g&&f.key===" "||lr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});uo.displayName=qn;var tl=m.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...i}=e,s=qr(qn,n),a=Ya(n),l=m.useRef(null),c=ae(t,l),[u,f]=m.useState(!1),[g,d]=m.useState("");return m.useEffect(()=>{const h=l.current;h&&d((h.textContent??"").trim())},[i.children]),v.jsx(cn.ItemSlot,{scope:n,disabled:o,textValue:r??g,children:v.jsx(hm,{asChild:!0,...a,focusable:!o,children:v.jsx(ie.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:c,onPointerMove:X(e.onPointerMove,un(h=>{o?s.onItemLeave(h):(s.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(e.onPointerLeave,un(h=>s.onItemLeave(h))),onFocus:X(e.onFocus,()=>f(!0)),onBlur:X(e.onBlur,()=>f(!1))})})})}),vh="MenuCheckboxItem",nl=m.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return v.jsx(al,{scope:e.__scopeMenu,checked:n,children:v.jsx(uo,{role:"menuitemcheckbox","aria-checked":Xn(n)?"mixed":n,...r,ref:t,"data-state":ei(n),onSelect:X(r.onSelect,()=>o?.(Xn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});nl.displayName=vh;var ol="MenuRadioGroup",[wh,xh]=vt(ol,{value:void 0,onValueChange:()=>{}}),rl=m.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,i=De(o);return v.jsx(wh,{scope:e.__scopeMenu,value:n,onValueChange:i,children:v.jsx(Jr,{...r,ref:t})})});rl.displayName=ol;var il="MenuRadioItem",sl=m.forwardRef((e,t)=>{const{value:n,...o}=e,r=xh(il,e.__scopeMenu),i=n===r.value;return v.jsx(al,{scope:e.__scopeMenu,checked:i,children:v.jsx(uo,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":ei(i),onSelect:X(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});sl.displayName=il;var Zr="MenuItemIndicator",[al,bh]=vt(Zr,{checked:!1}),ll=m.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,i=bh(Zr,n);return v.jsx(mn,{present:o||Xn(i.checked)||i.checked===!0,children:v.jsx(ie.span,{...r,ref:t,"data-state":ei(i.checked)})})});ll.displayName=Zr;var Sh="MenuSeparator",cl=m.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(ie.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});cl.displayName=Sh;var yh="MenuArrow",ul=m.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=wn(n);return v.jsx(Aa,{...r,...o,ref:t})});ul.displayName=yh;var Qr="MenuSub",[Ch,dl]=vt(Qr),fl=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,i=lt(Qr,t),s=wn(t),[a,l]=m.useState(null),[c,u]=m.useState(null),f=De(r);return m.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),v.jsx(Hr,{...s,children:v.jsx(qa,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:u,children:v.jsx(Ch,{scope:t,contentId:it(),triggerId:it(),trigger:a,onTriggerChange:l,children:n})})})};fl.displayName=Qr;var Xt="MenuSubTrigger",gl=m.forwardRef((e,t)=>{const n=lt(Xt,e.__scopeMenu),o=xn(Xt,e.__scopeMenu),r=dl(Xt,e.__scopeMenu),i=qr(Xt,e.__scopeMenu),s=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=m.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return m.useEffect(()=>u,[u]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),v.jsx(Kr,{asChild:!0,...c,children:v.jsx(tl,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":hl(n.open),...e,ref:Qn(t,r.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:X(e.onPointerMove,un(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:X(e.onPointerLeave,un(f=>{u();const g=n.content?.getBoundingClientRect();if(g){const d=n.content?.dataset.side,h=d==="right",p=h?-5:5,w=g[h?"left":"right"],x=g[h?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+p,y:f.clientY},{x:w,y:g.top},{x,y:g.top},{x,y:g.bottom},{x:w,y:g.bottom}],side:d}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:X(e.onKeyDown,f=>{const g=i.searchRef.current!=="";e.disabled||g&&f.key===" "||rh[o.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});gl.displayName=Xt;var pl="MenuSubContent",ml=m.forwardRef((e,t)=>{const n=Ja(_e,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=lt(_e,e.__scopeMenu),s=xn(_e,e.__scopeMenu),a=dl(pl,e.__scopeMenu),l=m.useRef(null),c=ae(t,l);return v.jsx(cn.Provider,{scope:e.__scopeMenu,children:v.jsx(mn,{present:o||i.open,children:v.jsx(cn.Slot,{scope:e.__scopeMenu,children:v.jsx(Xr,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{s.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:X(e.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:X(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:X(e.onKeyDown,u=>{const f=u.currentTarget.contains(u.target),g=ih[s.dir].includes(u.key);f&&g&&(i.onOpenChange(!1),a.trigger?.focus(),u.preventDefault())})})})})})});ml.displayName=pl;function hl(e){return e?"open":"closed"}function Xn(e){return e==="indeterminate"}function ei(e){return Xn(e)?"indeterminate":e?"checked":"unchecked"}function Rh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Eh(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Mh(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Eh(e,Math.max(i,0));r.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function _h(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,u=a.y,f=l.x,g=l.y;u>o!=g>o&&n<(f-c)*(o-u)/(g-u)+c&&(r=!r)}return r}function Ph(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return _h(n,t)}function un(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ih=Xa,Ah=Kr,Dh=Za,Th=Qa,Nh=Jr,Oh=el,kh=uo,Fh=nl,$h=rl,Lh=sl,jh=ll,Vh=cl,zh=ul,Bh=fl,Gh=gl,Hh=ml,fo="DropdownMenu",[Uh]=$t(fo,[Ka]),ve=Ka(),[Wh,vl]=Uh(fo),wl=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=ve(t),c=m.useRef(null),[u,f]=sn({prop:r,defaultProp:i??!1,onChange:s,caller:fo});return v.jsx(Wh,{scope:t,triggerId:it(),triggerRef:c,contentId:it(),open:u,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(g=>!g),[f]),modal:a,children:v.jsx(Ih,{...l,open:u,onOpenChange:f,dir:o,modal:a,children:n})})};wl.displayName=fo;var xl="DropdownMenuTrigger",bl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,i=vl(xl,n),s=ve(n);return v.jsx(Ah,{asChild:!0,...s,children:v.jsx(ie.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Qn(t,i.triggerRef),onPointerDown:X(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:X(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});bl.displayName=xl;var Kh="DropdownMenuPortal",Sl=e=>{const{__scopeDropdownMenu:t,...n}=e,o=ve(t);return v.jsx(Dh,{...o,...n})};Sl.displayName=Kh;var yl="DropdownMenuContent",Cl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=vl(yl,n),i=ve(n),s=m.useRef(!1);return v.jsx(Th,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...o,ref:t,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{s.current||r.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:X(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!r.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cl.displayName=yl;var Yh="DropdownMenuGroup",Rl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Nh,{...r,...o,ref:t})});Rl.displayName=Yh;var qh="DropdownMenuLabel",El=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Oh,{...r,...o,ref:t})});El.displayName=qh;var Xh="DropdownMenuItem",Ml=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(kh,{...r,...o,ref:t})});Ml.displayName=Xh;var Jh="DropdownMenuCheckboxItem",_l=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Fh,{...r,...o,ref:t})});_l.displayName=Jh;var Zh="DropdownMenuRadioGroup",Pl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx($h,{...r,...o,ref:t})});Pl.displayName=Zh;var Qh="DropdownMenuRadioItem",Il=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Lh,{...r,...o,ref:t})});Il.displayName=Qh;var ev="DropdownMenuItemIndicator",Al=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(jh,{...r,...o,ref:t})});Al.displayName=ev;var tv="DropdownMenuSeparator",Dl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Vh,{...r,...o,ref:t})});Dl.displayName=tv;var nv="DropdownMenuArrow",ov=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(zh,{...r,...o,ref:t})});ov.displayName=nv;var rv=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:i}=e,s=ve(t),[a,l]=sn({prop:o,defaultProp:i??!1,onChange:r,caller:"DropdownMenuSub"});return v.jsx(Bh,{...s,open:a,onOpenChange:l,children:n})},iv="DropdownMenuSubTrigger",Tl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Gh,{...r,...o,ref:t})});Tl.displayName=iv;var sv="DropdownMenuSubContent",Nl=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ve(n);return v.jsx(Hh,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Nl.displayName=sv;var av=wl,lv=bl,Ol=Sl,cv=Cl,uv=Rl,dv=El,fv=Ml,gv=_l,pv=Pl,mv=Il,kl=Al,hv=Dl,vv=rv,wv=Tl,xv=Nl;/**
88
- * @license lucide-react v0.544.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const bv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),os=e=>{const t=Sv(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fl=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),yv=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
93
- * @license lucide-react v0.544.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */var Cv={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"};/**
98
- * @license lucide-react v0.544.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const Rv=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:i,iconNode:s,...a},l)=>y.createElement("svg",{ref:l,...Cv,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Fl("lucide",r),...!i&&!yv(a)&&{"aria-hidden":"true"},...a},[...s.map(([c,u])=>y.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
103
- * @license lucide-react v0.544.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const wt=(e,t)=>{const n=y.forwardRef(({className:o,...r},i)=>y.createElement(Rv,{ref:i,iconNode:t,className:Fl(`lucide-${bv(os(e))}`,`lucide-${e}`,o),...r}));return n.displayName=os(e),n};/**
108
- * @license lucide-react v0.544.0 - ISC
109
- *
110
- * This source code is licensed under the ISC license.
111
- * See the LICENSE file in the root directory of this source tree.
112
- */const Ev=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$l=wt("check",Ev);/**
113
- * @license lucide-react v0.544.0 - ISC
114
- *
115
- * This source code is licensed under the ISC license.
116
- * See the LICENSE file in the root directory of this source tree.
117
- */const Mv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ll=wt("chevron-down",Mv);/**
118
- * @license lucide-react v0.544.0 - ISC
119
- *
120
- * This source code is licensed under the ISC license.
121
- * See the LICENSE file in the root directory of this source tree.
122
- */const _v=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Pv=wt("chevron-right",_v);/**
123
- * @license lucide-react v0.544.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const Iv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Av=wt("chevron-up",Iv);/**
128
- * @license lucide-react v0.544.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const Dv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Tv=wt("circle",Dv);/**
133
- * @license lucide-react v0.544.0 - ISC
134
- *
135
- * This source code is licensed under the ISC license.
136
- * See the LICENSE file in the root directory of this source tree.
137
- */const Nv=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Ov=wt("funnel",Nv);/**
138
- * @license lucide-react v0.544.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const kv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Fv=wt("search",kv);/**
143
- * @license @tabler/icons-react v3.35.0 - MIT
144
- *
145
- * This source code is licensed under the MIT license.
146
- * See the LICENSE file in the root directory of this source tree.
147
- */var $v={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
148
- * @license @tabler/icons-react v3.35.0 - MIT
149
- *
150
- * This source code is licensed under the MIT license.
151
- * See the LICENSE file in the root directory of this source tree.
152
- */const Vt=(e,t,n,o)=>{const r=y.forwardRef(({color:i="currentColor",size:s=24,stroke:a=2,title:l,className:c,children:u,...f},g)=>y.createElement("svg",{ref:g,...$v[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),strokeWidth:a,stroke:i,...f},[l&&y.createElement("title",{key:"svg-title"},l),...o.map(([d,h])=>y.createElement(d,h)),...Array.isArray(u)?u:[u]]));return r.displayName=`${n}`,r};/**
153
- * @license @tabler/icons-react v3.35.0 - MIT
154
- *
155
- * This source code is licensed under the MIT license.
156
- * See the LICENSE file in the root directory of this source tree.
157
- */const Lv=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],rs=Vt("outline","chevron-down","ChevronDown",Lv);/**
158
- * @license @tabler/icons-react v3.35.0 - MIT
159
- *
160
- * This source code is licensed under the MIT license.
161
- * See the LICENSE file in the root directory of this source tree.
162
- */const jv=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],Vv=Vt("outline","chevron-left","ChevronLeft",jv);/**
163
- * @license @tabler/icons-react v3.35.0 - MIT
164
- *
165
- * This source code is licensed under the MIT license.
166
- * See the LICENSE file in the root directory of this source tree.
167
- */const zv=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],Bv=Vt("outline","chevron-right","ChevronRight",zv);/**
168
- * @license @tabler/icons-react v3.35.0 - MIT
169
- *
170
- * This source code is licensed under the MIT license.
171
- * See the LICENSE file in the root directory of this source tree.
172
- */const Gv=[["path",{d:"M11 7l-5 5l5 5",key:"svg-0"}],["path",{d:"M17 7l-5 5l5 5",key:"svg-1"}]],Hv=Vt("outline","chevrons-left","ChevronsLeft",Gv);/**
173
- * @license @tabler/icons-react v3.35.0 - MIT
174
- *
175
- * This source code is licensed under the MIT license.
176
- * See the LICENSE file in the root directory of this source tree.
177
- */const Uv=[["path",{d:"M7 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M13 7l5 5l-5 5",key:"svg-1"}]],Wv=Vt("outline","chevrons-right","ChevronsRight",Uv);/**
178
- * @license @tabler/icons-react v3.35.0 - MIT
179
- *
180
- * This source code is licensed under the MIT license.
181
- * See the LICENSE file in the root directory of this source tree.
182
- */const Kv=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M12 4l0 16",key:"svg-1"}]],Yv=Vt("outline","layout-columns","LayoutColumns",Kv);function cr({...e}){return v.jsx(av,{"data-slot":"dropdown-menu",...e})}function qv({...e}){return v.jsx(Ol,{"data-slot":"dropdown-menu-portal",...e})}function ur({...e}){return v.jsx(lv,{"data-slot":"dropdown-menu-trigger",...e})}function dr({className:e,sideOffset:t=4,...n}){return v.jsx(Ol,{children:v.jsx(cv,{"data-slot":"dropdown-menu-content",sideOffset:t,className:se("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Xv({...e}){return v.jsx(uv,{"data-slot":"dropdown-menu-group",...e})}function Jv({className:e,inset:t,variant:n="default",...o}){return v.jsx(fv,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:se("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function jl({className:e,children:t,checked:n,...o}){return v.jsxs(gv,{"data-slot":"dropdown-menu-checkbox-item",className:se("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...o,children:[v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(kl,{children:v.jsx($l,{className:"size-4"})})}),t]})}function Vl({...e}){return v.jsx(pv,{"data-slot":"dropdown-menu-radio-group",...e})}function zl({className:e,children:t,...n}){return v.jsxs(mv,{"data-slot":"dropdown-menu-radio-item",className:se("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(kl,{children:v.jsx(Tv,{className:"size-2 fill-current"})})}),t]})}function Zv({className:e,inset:t,...n}){return v.jsx(dv,{"data-slot":"dropdown-menu-label","data-inset":t,className:se("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Qv({className:e,...t}){return v.jsx(hv,{"data-slot":"dropdown-menu-separator",className:se("bg-border -mx-1 my-1 h-px",e),...t})}function ew({className:e,...t}){return v.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:se("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function tw({...e}){return v.jsx(vv,{"data-slot":"dropdown-menu-sub",...e})}function nw({className:e,inset:t,children:n,...o}){return v.jsxs(wv,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:se("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...o,children:[n,v.jsx(Pv,{className:"ml-auto size-4"})]})}function ow({className:e,...t}){return v.jsx(xv,{"data-slot":"dropdown-menu-sub-content",className:se("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function is(e,[t,n]){return Math.min(n,Math.max(t,e))}function rw(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Bl=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"}),iw="VisuallyHidden",sw=m.forwardRef((e,t)=>v.jsx(ie.span,{...e,ref:t,style:{...Bl,...e.style}}));sw.displayName=iw;var aw=[" ","Enter","ArrowUp","ArrowDown"],lw=[" ","Enter"],mt="Select",[go,po,cw]=Tr(mt),[zt]=$t(mt,[cw,lo]),mo=lo(),[uw,ct]=zt(mt),[dw,fw]=zt(mt),Gl=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:g,required:d,form:h}=e,p=mo(t),[w,x]=m.useState(null),[b,S]=m.useState(null),[C,E]=m.useState(!1),I=Nr(c),[M,R]=sn({prop:o,defaultProp:r??!1,onChange:i,caller:mt}),[k,F]=sn({prop:s,defaultProp:a,onChange:l,caller:mt}),A=m.useRef(null),W=w?h||!!w.closest("form"):!0,[H,G]=m.useState(new Set),D=Array.from(H).map(O=>O.props.value).join(";");return v.jsx(Hr,{...p,children:v.jsxs(uw,{required:d,scope:t,trigger:w,onTriggerChange:x,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:it(),value:k,onValueChange:F,open:M,onOpenChange:R,dir:I,triggerPointerDownPosRef:A,disabled:g,children:[v.jsx(go.Provider,{scope:t,children:v.jsx(dw,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback(O=>{G(V=>new Set(V).add(O))},[]),onNativeOptionRemove:m.useCallback(O=>{G(V=>{const P=new Set(V);return P.delete(O),P})},[]),children:n})}),W?v.jsxs(pc,{"aria-hidden":!0,required:d,tabIndex:-1,name:u,autoComplete:f,value:k,onChange:O=>F(O.target.value),disabled:g,form:h,children:[k===void 0?v.jsx("option",{value:""}):null,Array.from(H)]},D):null]})})};Gl.displayName=mt;var Hl="SelectTrigger",Ul=m.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,i=mo(n),s=ct(Hl,n),a=s.disabled||o,l=ae(t,s.onTriggerChange),c=po(n),u=m.useRef("touch"),[f,g,d]=hc(p=>{const w=c().filter(S=>!S.disabled),x=w.find(S=>S.value===s.value),b=vc(w,p,x);b!==void 0&&s.onValueChange(b.value)}),h=p=>{a||(s.onOpenChange(!0),d()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return v.jsx(Pa,{asChild:!0,...i,children:v.jsx(ie.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":mc(s.value)?"":void 0,...r,ref:l,onClick:X(r.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&h(p)}),onPointerDown:X(r.onPointerDown,p=>{u.current=p.pointerType;const w=p.target;w.hasPointerCapture(p.pointerId)&&w.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(h(p),p.preventDefault())}),onKeyDown:X(r.onKeyDown,p=>{const w=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(w&&p.key===" ")&&aw.includes(p.key)&&(h(),p.preventDefault())})})})});Ul.displayName=Hl;var Wl="SelectValue",Kl=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:i,placeholder:s="",...a}=e,l=ct(Wl,n),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,f=ae(t,l.onValueNodeChange);return he(()=>{c(u)},[c,u]),v.jsx(ie.span,{...a,ref:f,style:{pointerEvents:"none"},children:mc(l.value)?v.jsx(v.Fragment,{children:s}):i})});Kl.displayName=Wl;var gw="SelectIcon",Yl=m.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return v.jsx(ie.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});Yl.displayName=gw;var pw="SelectPortal",ql=e=>v.jsx(Ur,{asChild:!0,...e});ql.displayName=pw;var ht="SelectContent",Xl=m.forwardRef((e,t)=>{const n=ct(ht,e.__scopeSelect),[o,r]=m.useState();if(he(()=>{r(new DocumentFragment)},[]),!n.open){const i=o;return i?Zn.createPortal(v.jsx(Jl,{scope:e.__scopeSelect,children:v.jsx(go.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),i):null}return v.jsx(Zl,{...e,ref:t})});Xl.displayName=ht;var Pe=10,[Jl,ut]=zt(ht),mw="SelectContentImpl",hw=At("SelectContent.RemoveScroll"),Zl=m.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:d,sticky:h,hideWhenDetached:p,avoidCollisions:w,...x}=e,b=ct(ht,n),[S,C]=m.useState(null),[E,I]=m.useState(null),M=ae(t,T=>C(T)),[R,k]=m.useState(null),[F,A]=m.useState(null),W=po(n),[H,G]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>{if(S)return La(S)},[S]),ia();const O=m.useCallback(T=>{const[U,...Q]=W().map(te=>te.ref.current),[z]=Q.slice(-1),ee=document.activeElement;for(const te of T)if(te===ee||(te?.scrollIntoView({block:"nearest"}),te===U&&E&&(E.scrollTop=0),te===z&&E&&(E.scrollTop=E.scrollHeight),te?.focus(),document.activeElement!==ee))return},[W,E]),V=m.useCallback(()=>O([R,S]),[O,R,S]);m.useEffect(()=>{H&&V()},[H,V]);const{onOpenChange:P,triggerPointerDownPosRef:N}=b;m.useEffect(()=>{if(S){let T={x:0,y:0};const U=z=>{T={x:Math.abs(Math.round(z.pageX)-(N.current?.x??0)),y:Math.abs(Math.round(z.pageY)-(N.current?.y??0))}},Q=z=>{T.x<=10&&T.y<=10?z.preventDefault():S.contains(z.target)||P(!1),document.removeEventListener("pointermove",U),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Q,{capture:!0})}}},[S,P,N]),m.useEffect(()=>{const T=()=>P(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[P]);const[_,$]=hc(T=>{const U=W().filter(ee=>!ee.disabled),Q=U.find(ee=>ee.ref.current===document.activeElement),z=vc(U,T,Q);z&&setTimeout(()=>z.ref.current.focus())}),B=m.useCallback((T,U,Q)=>{const z=!D.current&&!Q;(b.value!==void 0&&b.value===U||z)&&(k(T),z&&(D.current=!0))},[b.value]),K=m.useCallback(()=>S?.focus(),[S]),J=m.useCallback((T,U,Q)=>{const z=!D.current&&!Q;(b.value!==void 0&&b.value===U||z)&&A(T)},[b.value]),oe=o==="popper"?fr:Ql,ne=oe===fr?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:d,sticky:h,hideWhenDetached:p,avoidCollisions:w}:{};return v.jsx(Jl,{scope:n,content:S,viewport:E,onViewportChange:I,itemRefCallback:B,selectedItem:R,onItemLeave:K,itemTextRefCallback:J,focusSelectedItem:V,selectedItemText:F,position:o,isPositioned:H,searchRef:_,children:v.jsx(Wr,{as:hw,allowPinchZoom:!0,children:v.jsx(kr,{asChild:!0,trapped:b.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:X(r,T=>{b.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:v.jsx(Or,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:v.jsx(oe,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:T=>T.preventDefault(),...x,...ne,onPlaced:()=>G(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,T=>{const U=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!U&&T.key.length===1&&$(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let z=W().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(T.key)&&(z=z.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const ee=T.target,te=z.indexOf(ee);z=z.slice(te+1)}setTimeout(()=>O(z)),T.preventDefault()}})})})})})})});Zl.displayName=mw;var vw="SelectItemAlignedPosition",Ql=m.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,i=ct(ht,n),s=ut(ht,n),[a,l]=m.useState(null),[c,u]=m.useState(null),f=ae(t,M=>u(M)),g=po(n),d=m.useRef(!1),h=m.useRef(!0),{viewport:p,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=s,S=m.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&p&&w&&x){const M=i.trigger.getBoundingClientRect(),R=c.getBoundingClientRect(),k=i.valueNode.getBoundingClientRect(),F=x.getBoundingClientRect();if(i.dir!=="rtl"){const ee=F.left-R.left,te=k.left-ee,le=M.left-te,fe=M.width+le,Oe=Math.max(fe,R.width),ke=window.innerWidth-Pe,xt=is(te,[Pe,Math.max(Pe,ke-Oe)]);a.style.minWidth=fe+"px",a.style.left=xt+"px"}else{const ee=R.right-F.right,te=window.innerWidth-k.right-ee,le=window.innerWidth-M.right-te,fe=M.width+le,Oe=Math.max(fe,R.width),ke=window.innerWidth-Pe,xt=is(te,[Pe,Math.max(Pe,ke-Oe)]);a.style.minWidth=fe+"px",a.style.right=xt+"px"}const A=g(),W=window.innerHeight-Pe*2,H=p.scrollHeight,G=window.getComputedStyle(c),D=parseInt(G.borderTopWidth,10),O=parseInt(G.paddingTop,10),V=parseInt(G.borderBottomWidth,10),P=parseInt(G.paddingBottom,10),N=D+O+H+P+V,_=Math.min(w.offsetHeight*5,N),$=window.getComputedStyle(p),B=parseInt($.paddingTop,10),K=parseInt($.paddingBottom,10),J=M.top+M.height/2-Pe,oe=W-J,ne=w.offsetHeight/2,T=w.offsetTop+ne,U=D+O+T,Q=N-U;if(U<=J){const ee=A.length>0&&w===A[A.length-1].ref.current;a.style.bottom="0px";const te=c.clientHeight-p.offsetTop-p.offsetHeight,le=Math.max(oe,ne+(ee?K:0)+te+V),fe=U+le;a.style.height=fe+"px"}else{const ee=A.length>0&&w===A[0].ref.current;a.style.top="0px";const le=Math.max(J,D+p.offsetTop+(ee?B:0)+ne)+Q;a.style.height=le+"px",p.scrollTop=U-J+p.offsetTop}a.style.margin=`${Pe}px 0`,a.style.minHeight=_+"px",a.style.maxHeight=W+"px",o?.(),requestAnimationFrame(()=>d.current=!0)}},[g,i.trigger,i.valueNode,a,c,p,w,x,i.dir,o]);he(()=>S(),[S]);const[C,E]=m.useState();he(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const I=m.useCallback(M=>{M&&h.current===!0&&(S(),b?.(),h.current=!1)},[S,b]);return v.jsx(xw,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:d,onScrollButtonChange:I,children:v.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:v.jsx(ie.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Ql.displayName=vw;var ww="SelectPopperPosition",fr=m.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Pe,...i}=e,s=mo(n);return v.jsx(Ia,{...s,...i,ref:t,align:o,collisionPadding:r,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)"}})});fr.displayName=ww;var[xw,ti]=zt(ht,{}),gr="SelectViewport",ec=m.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,i=ut(gr,n),s=ti(gr,n),a=ae(t,i.onViewportChange),l=m.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),v.jsx(go.Slot,{scope:n,children:v.jsx(ie.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:X(r.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g?.current&&f){const d=Math.abs(l.current-u.scrollTop);if(d>0){const h=window.innerHeight-Pe*2,p=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),x=Math.max(p,w);if(x<h){const b=x+d,S=Math.min(h,b),C=b-S;f.style.height=S+"px",f.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});ec.displayName=gr;var tc="SelectGroup",[bw,Sw]=zt(tc),nc=m.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=it();return v.jsx(bw,{scope:n,id:r,children:v.jsx(ie.div,{role:"group","aria-labelledby":r,...o,ref:t})})});nc.displayName=tc;var oc="SelectLabel",rc=m.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Sw(oc,n);return v.jsx(ie.div,{id:r.id,...o,ref:t})});rc.displayName=oc;var Jn="SelectItem",[yw,ic]=zt(Jn),sc=m.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:i,...s}=e,a=ct(Jn,n),l=ut(Jn,n),c=a.value===o,[u,f]=m.useState(i??""),[g,d]=m.useState(!1),h=ae(t,b=>l.itemRefCallback?.(b,o,r)),p=it(),w=m.useRef("touch"),x=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")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 v.jsx(yw,{scope:n,value:o,disabled:r,textId:p,isSelected:c,onItemTextChange:m.useCallback(b=>{f(S=>S||(b?.textContent??"").trim())},[]),children:v.jsx(go.ItemSlot,{scope:n,value:o,disabled:r,textValue:u,children:v.jsx(ie.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:h,onFocus:X(s.onFocus,()=>d(!0)),onBlur:X(s.onBlur,()=>d(!1)),onClick:X(s.onClick,()=>{w.current!=="mouse"&&x()}),onPointerUp:X(s.onPointerUp,()=>{w.current==="mouse"&&x()}),onPointerDown:X(s.onPointerDown,b=>{w.current=b.pointerType}),onPointerMove:X(s.onPointerMove,b=>{w.current=b.pointerType,r?l.onItemLeave?.():w.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(s.onPointerLeave,b=>{b.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:X(s.onKeyDown,b=>{l.searchRef?.current!==""&&b.key===" "||(lw.includes(b.key)&&x(),b.key===" "&&b.preventDefault())})})})})});sc.displayName=Jn;var Jt="SelectItemText",ac=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...i}=e,s=ct(Jt,n),a=ut(Jt,n),l=ic(Jt,n),c=fw(Jt,n),[u,f]=m.useState(null),g=ae(t,x=>f(x),l.onItemTextChange,x=>a.itemTextRefCallback?.(x,l.value,l.disabled)),d=u?.textContent,h=m.useMemo(()=>v.jsx("option",{value:l.value,disabled:l.disabled,children:d},l.value),[l.disabled,l.value,d]),{onNativeOptionAdd:p,onNativeOptionRemove:w}=c;return he(()=>(p(h),()=>w(h)),[p,w,h]),v.jsxs(v.Fragment,{children:[v.jsx(ie.span,{id:l.textId,...i,ref:g}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Zn.createPortal(i.children,s.valueNode):null]})});ac.displayName=Jt;var lc="SelectItemIndicator",cc=m.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return ic(lc,n).isSelected?v.jsx(ie.span,{"aria-hidden":!0,...o,ref:t}):null});cc.displayName=lc;var pr="SelectScrollUpButton",uc=m.forwardRef((e,t)=>{const n=ut(pr,e.__scopeSelect),o=ti(pr,e.__scopeSelect),[r,i]=m.useState(!1),s=ae(t,o.onScrollButtonChange);return he(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(fc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});uc.displayName=pr;var mr="SelectScrollDownButton",dc=m.forwardRef((e,t)=>{const n=ut(mr,e.__scopeSelect),o=ti(mr,e.__scopeSelect),[r,i]=m.useState(!1),s=ae(t,o.onScrollButtonChange);return he(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(fc,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});dc.displayName=mr;var fc=m.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,i=ut("SelectScrollButton",n),s=m.useRef(null),a=po(n),l=m.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return m.useEffect(()=>()=>l(),[l]),he(()=>{a().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),v.jsx(ie.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:X(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:X(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:X(r.onPointerLeave,()=>{l()})})}),Cw="SelectSeparator",gc=m.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return v.jsx(ie.div,{"aria-hidden":!0,...o,ref:t})});gc.displayName=Cw;var hr="SelectArrow",Rw=m.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=mo(n),i=ct(hr,n),s=ut(hr,n);return i.open&&s.position==="popper"?v.jsx(Aa,{...r,...o,ref:t}):null});Rw.displayName=hr;var Ew="SelectBubbleInput",pc=m.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=m.useRef(null),i=ae(o,r),s=rw(t);return m.useEffect(()=>{const a=r.current;if(!a)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&u){const f=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[s,t]),v.jsx(ie.select,{...n,style:{...Bl,...n.style},ref:i,defaultValue:t})});pc.displayName=Ew;function mc(e){return e===""||e===void 0}function hc(e){const t=De(e),n=m.useRef(""),o=m.useRef(0),r=m.useCallback(s=>{const a=n.current+s;t(a),(function l(c){n.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>l(""),1e3))})(a)},[t]),i=m.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}function vc(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Mw(e,Math.max(i,0));r.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Mw(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var _w=Gl,Pw=Ul,Iw=Kl,Aw=Yl,Dw=ql,Tw=Xl,Nw=ec,Ow=nc,kw=rc,Fw=sc,$w=ac,Lw=cc,jw=uc,Vw=dc,zw=gc;function wc({...e}){return v.jsx(_w,{"data-slot":"select",...e})}function Bw({...e}){return v.jsx(Ow,{"data-slot":"select-group",...e})}function xc({...e}){return v.jsx(Iw,{"data-slot":"select-value",...e})}function bc({className:e,size:t="default",children:n,...o}){return v.jsxs(Pw,{"data-slot":"select-trigger","data-size":t,className:se("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[n,v.jsx(Aw,{asChild:!0,children:v.jsx(Ll,{className:"size-4 opacity-50"})})]})}function Sc({className:e,children:t,position:n="popper",...o}){return v.jsx(Dw,{children:v.jsxs(Tw,{"data-slot":"select-content",className:se("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o,children:[v.jsx(Cc,{}),v.jsx(Nw,{className:se("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(Rc,{})]})})}function Gw({className:e,...t}){return v.jsx(kw,{"data-slot":"select-label",className:se("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function yc({className:e,children:t,...n}){return v.jsxs(Fw,{"data-slot":"select-item",className:se("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(Lw,{children:v.jsx($l,{className:"size-4"})})}),v.jsx($w,{children:t})]})}function Hw({className:e,...t}){return v.jsx(zw,{"data-slot":"select-separator",className:se("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function Cc({className:e,...t}){return v.jsx(jw,{"data-slot":"select-scroll-up-button",className:se("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(Av,{className:"size-4"})})}function Rc({className:e,...t}){return v.jsx(Vw,{"data-slot":"select-scroll-down-button",className:se("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(Ll,{className:"size-4"})})}function Ec({className:e,type:t,...n}){return v.jsx("input",{type:t,"data-slot":"input",className:se("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}const Uw=e=>{let{transform:t}=e;return{...t,x:0}};var Ww="Label",Mc=m.forwardRef((e,t)=>v.jsx(ie.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Mc.displayName=Ww;var Kw=Mc;function _c({className:e,...t}){return v.jsx(Kw,{"data-slot":"label",className:se("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Yw({data:e,columns:t,getRowId:n,onRowOrderChange:o,onRowClick:r=()=>{},tableKey:i,Actions:s,defaultColumnFilter:a}){const l=`tablePageSize_${i}`,c=`tableColumnVisibility_${i}`,[u,f]=y.useState(()=>{if(typeof window>"u")return{};const D=localStorage.getItem(c);return D?JSON.parse(D):{}}),[g,d]=y.useState(()=>e),[h,p]=y.useState({}),[w,x]=y.useState([]),[b,S]=y.useState([]),[C,E]=y.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(l))||10});function I({columns:D}){let O=!1;for(const P of D)if(P.id==="drag"){O=!0;break}const V={id:"drag"};return O?[...D]:[V,...D]}function M(D){const{active:O,over:V}=D;O&&V&&O.id!==V.id&&d(P=>{const N=P.findIndex(B=>B.id===O.id),_=P.findIndex(B=>B.id===V.id),$=Dr(P,N,_);return o&&o($),$})}const R=y.useId(),k=Bd(Io(Ws,{}),Io(Ks,{}),Io(Ir,{})),F=y.useMemo(()=>g?.map(({id:D})=>D)||[],[g]),A=_d({data:g,columns:I({columns:t}),state:{sorting:b,columnVisibility:u,rowSelection:h,columnFilters:w,pagination:C},getRowId:n,enableRowSelection:!0,onRowSelectionChange:p,onSortingChange:S,onColumnFiltersChange:x,onColumnVisibilityChange:f,onPaginationChange:E,getCoreRowModel:md(),getFilteredRowModel:Sd(),getPaginationRowModel:yd(),getSortedRowModel:Cd(),getFacetedRowModel:xd(),getFacetedUniqueValues:bd()});function W(){const D=A.getAllColumns()[1].columnDef;return String(D.id)?String(D.id):String(D.header)}const[H,G]=y.useState(a??W());return v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[v.jsxs("div",{className:"relative w-full h-[32px]",children:[v.jsx(Fv,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),v.jsx(Ec,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:A.getColumn(H)?.getFilterValue()??"",onChange:D=>{A.getColumn(H)?.setFilterValue(D.target.value)}})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs(cr,{children:[v.jsx(ur,{asChild:!0,children:v.jsxs(ft,{variant:"outline",size:"sm",children:[v.jsx(Ov,{}),v.jsx("span",{className:"sm:hidden lg:inline",children:H||"Filtro"}),v.jsx("span",{className:"lg:hidden",children:H||"Filtro"}),v.jsx(rs,{})]})}),v.jsx(dr,{align:"end",className:"w-56",children:v.jsx(Vl,{value:H,onValueChange:D=>{x([]),G(D)},children:A.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>{const O=D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header);return v.jsx(zl,{value:O,children:O},O)})})})]}),v.jsxs(cr,{children:[v.jsx(ur,{asChild:!0,children:v.jsxs(ft,{variant:"outline",size:"sm",children:[v.jsx(Yv,{}),v.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),v.jsx("span",{className:"lg:hidden",children:"Colunas"}),v.jsx(rs,{})]})}),v.jsx(dr,{align:"end",className:"w-56",children:A.getAllColumns().filter(D=>typeof D.accessorFn<"u"&&D.getCanHide()).map(D=>v.jsx(jl,{className:"capitalize",checked:D.getIsVisible(),onCheckedChange:O=>{D.toggleVisibility(!!O)},children:D.columnDef.id?String(D.columnDef.id):String(D.columnDef.header)},D.id))})]}),s]})]}),v.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[v.jsx("div",{className:"overflow-hidden rounded-lg border",children:v.jsx(Uf,{collisionDetection:Kd,modifiers:[Uw],onDragEnd:M,sensors:k,id:R,children:v.jsxs(xs,{children:[v.jsx(bs,{className:"sticky top-0 z-10",children:A.getHeaderGroups().map(D=>v.jsx(Vn,{children:D.headers.map(O=>v.jsx(ys,{colSpan:O.colSpan,children:O.isPlaceholder?null:Ns(O.column.columnDef.header,O.getContext())},O.id))},D.id))}),v.jsx(rg,{items:F,strategy:ng,children:v.jsx(Ss,{className:"**:data-[slot=table-cell]:first:w-8",children:A.getRowModel().rows?.length?A.getRowModel().rows.map(D=>v.jsx(Pc,{row:D,onRowClick:r},D.id)):v.jsx(Vn,{children:v.jsx(wr,{colSpan:t.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),v.jsxs("div",{className:"flex items-center justify-between px-4",children:[v.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[A.getFilteredSelectedRowModel().rows.length," de"," ",A.getFilteredRowModel().rows.length," linhas selecionadas."]}),v.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[v.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[v.jsx(_c,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),v.jsxs(wc,{value:`${A.getState().pagination.pageSize}`,onValueChange:D=>{A.setPageSize(Number(D))},children:[v.jsx(bc,{size:"sm",className:"w-20",id:"rows-per-page",children:v.jsx(xc,{placeholder:A.getState().pagination.pageSize})}),v.jsx(Sc,{side:"top",children:[10,20,30,40,50].map(D=>v.jsx(yc,{value:`${D}`,children:D},D))})]})]}),v.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",A.getState().pagination.pageIndex+1," de"," ",A.getPageCount()]}),v.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[v.jsxs(ft,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>A.setPageIndex(0),disabled:!A.getCanPreviousPage(),children:[v.jsx("span",{className:"sr-only",children:"Go to first page"}),v.jsx(Hv,{})]}),v.jsxs(ft,{variant:"outline",className:"size-8",size:"icon",onClick:()=>A.previousPage(),disabled:!A.getCanPreviousPage(),children:[v.jsx("span",{className:"sr-only",children:"Go to previous page"}),v.jsx(Vv,{})]}),v.jsxs(ft,{variant:"outline",className:"size-8",size:"icon",onClick:()=>A.nextPage(),disabled:!A.getCanNextPage(),children:[v.jsx("span",{className:"sr-only",children:"Go to next page"}),v.jsx(Bv,{})]}),v.jsxs(ft,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>A.setPageIndex(A.getPageCount()-1),disabled:!A.getCanNextPage(),children:[v.jsx("span",{className:"sr-only",children:"Go to last page"}),v.jsx(Wv,{})]})]})]})]})]})]})}function Pc({row:e,onRowClick:t=()=>{}}){const{transform:n,transition:o,setNodeRef:r,isDragging:i}=dg({id:e.original.id});return v.jsx(Vn,{"data-state":e.getIsSelected()&&"selected","data-dragging":i,ref:r,style:{transform:on.Transform.toString(n),transition:o,cursor:"grab"},onClick:()=>{t(e.original)},children:e.getVisibleCells().map(s=>v.jsx(wr,{className:"cursor-pointer",children:Ns(s.column.columnDef.cell,s.getContext())},s.id))})}exports.Button=ft;exports.DataTable=Yw;exports.DraggableRow=Pc;exports.DropdownMenu=cr;exports.DropdownMenuCheckboxItem=jl;exports.DropdownMenuContent=dr;exports.DropdownMenuGroup=Xv;exports.DropdownMenuItem=Jv;exports.DropdownMenuLabel=Zv;exports.DropdownMenuPortal=qv;exports.DropdownMenuRadioGroup=Vl;exports.DropdownMenuRadioItem=zl;exports.DropdownMenuSeparator=Qv;exports.DropdownMenuShortcut=ew;exports.DropdownMenuSub=tw;exports.DropdownMenuSubContent=ow;exports.DropdownMenuSubTrigger=nw;exports.DropdownMenuTrigger=ur;exports.Input=Ec;exports.Label=_c;exports.Select=wc;exports.SelectContent=Sc;exports.SelectGroup=Bw;exports.SelectItem=yc;exports.SelectLabel=Gw;exports.SelectScrollDownButton=Rc;exports.SelectScrollUpButton=Cc;exports.SelectSeparator=Hw;exports.SelectTrigger=bc;exports.SelectValue=xc;exports.Table=xs;exports.TableBody=Ss;exports.TableCaption=Iu;exports.TableCell=wr;exports.TableFooter=Pu;exports.TableHead=ys;exports.TableHeader=bs;exports.TableRow=Vn;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),Gt=require("@radix-ui/react-slot"),q=require("class-variance-authority"),Bt=require("tailwind-merge"),re=require("@tanstack/react-table"),Ee=require("@dnd-kit/sortable"),ee=require("@dnd-kit/core"),mn=require("@radix-ui/react-dropdown-menu"),ne=require("lucide-react"),te=require("@tabler/icons-react"),vn=require("@radix-ui/react-select"),gn=require("@dnd-kit/modifiers"),hn=require("@radix-ui/react-label"),kn=require("@dnd-kit/utilities");function Rr(a){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const u in a)if(u!=="default"){const f=Object.getOwnPropertyDescriptor(a,u);Object.defineProperty(c,u,f.get?f:{enumerable:!0,get:()=>a[u]})}}return c.default=a,Object.freeze(c)}const Z=Rr(mn),Q=Rr(vn),xn=Rr(hn);var Pe={exports:{}},ae={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Er;function Sn(){if(Er)return ae;Er=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ae.Fragment=c,ae.jsx=u,ae.jsxs=u,ae}var ie={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Pr;function _n(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};ie.Fragment=k,ie.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},ie.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),ie}var zr;function wn(){return zr||(zr=1,process.env.NODE_ENV==="production"?Pe.exports=Sn():Pe.exports=_n()),Pe.exports}var m=wn();function Ht(a){var c,u,f="";if(typeof a=="string"||typeof a=="number")f+=a;else if(typeof a=="object")if(Array.isArray(a)){var i=a.length;for(c=0;c<i;c++)a[c]&&(u=Ht(a[c]))&&(f&&(f+=" "),f+=u)}else for(u in a)a[u]&&(f&&(f+=" "),f+=u);return f}function jn(){for(var a,c,u=0,f="",i=arguments.length;u<i;u++)(a=arguments[u])&&(c=Ht(a))&&(f&&(f+=" "),f+=c);return f}function H(...a){return Bt.twMerge(jn(a))}const On=q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function oe({className:a,variant:c,size:u,asChild:f=!1,...i}){const s=f?Gt.Slot:"button";return m.jsx(s,{"data-slot":"button",className:H(On({variant:c,size:u,className:a})),...i})}function qt({className:a,...c}){return m.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:m.jsx("table",{"data-slot":"table",className:H("w-full caption-bottom text-sm",a),...c})})}function Zt({className:a,...c}){return m.jsx("thead",{"data-slot":"table-header",className:H("[&_tr]:border-b",a),...c})}function Qt({className:a,...c}){return m.jsx("tbody",{"data-slot":"table-body",className:H("[&_tr:last-child]:border-0",a),...c})}function Nn({className:a,...c}){return m.jsx("tfoot",{"data-slot":"table-footer",className:H("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",a),...c})}function rr({className:a,...c}){return m.jsx("tr",{"data-slot":"table-row",className:H("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...c})}function en({className:a,...c}){return m.jsx("th",{"data-slot":"table-head",className:H("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c})}function Tr({className:a,...c}){return m.jsx("td",{"data-slot":"table-cell",className:H("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c})}function Rn({className:a,...c}){return m.jsx("caption",{"data-slot":"table-caption",className:H("text-muted-foreground mt-4 text-sm",a),...c})}function Or({...a}){return m.jsx(Z.Root,{"data-slot":"dropdown-menu",...a})}function Tn({...a}){return m.jsx(Z.Portal,{"data-slot":"dropdown-menu-portal",...a})}function tr({...a}){return m.jsx(Z.Trigger,{"data-slot":"dropdown-menu-trigger",...a})}function Nr({className:a,sideOffset:c=4,...u}){return m.jsx(Z.Portal,{children:m.jsx(Z.Content,{"data-slot":"dropdown-menu-content",sideOffset:c,className:H("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",a),...u})})}function En({...a}){return m.jsx(Z.Group,{"data-slot":"dropdown-menu-group",...a})}function Pn({className:a,inset:c,variant:u="default",...f}){return m.jsx(Z.Item,{"data-slot":"dropdown-menu-item","data-inset":c,"data-variant":u,className:H("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...f})}function rn({className:a,children:c,checked:u,...f}){return m.jsxs(Z.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:H("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),checked:u,...f,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(Z.ItemIndicator,{children:m.jsx(ne.CheckIcon,{className:"size-4"})})}),c]})}function tn({...a}){return m.jsx(Z.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...a})}function nn({className:a,children:c,...u}){return m.jsxs(Z.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:H("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...u,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(Z.ItemIndicator,{children:m.jsx(ne.CircleIcon,{className:"size-2 fill-current"})})}),c]})}function zn({className:a,inset:c,...u}){return m.jsx(Z.Label,{"data-slot":"dropdown-menu-label","data-inset":c,className:H("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",a),...u})}function Cn({className:a,...c}){return m.jsx(Z.Separator,{"data-slot":"dropdown-menu-separator",className:H("bg-border -mx-1 my-1 h-px",a),...c})}function $n({className:a,...c}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:H("text-muted-foreground ml-auto text-xs tracking-widest",a),...c})}function An({...a}){return m.jsx(Z.Sub,{"data-slot":"dropdown-menu-sub",...a})}function Dn({className:a,inset:c,children:u,...f}){return m.jsxs(Z.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":c,className:H("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",a),...f,children:[u,m.jsx(ne.ChevronRightIcon,{className:"ml-auto size-4"})]})}function In({className:a,...c}){return m.jsx(Z.SubContent,{"data-slot":"dropdown-menu-sub-content",className:H("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",a),...c})}function Fn(){return m.jsx(tr,{asChild:!0,children:m.jsxs(oe,{variant:"ghost",className:"data-[state=open]:bg-muted text-muted-foreground flex size-8 p-0",size:"icon",children:[m.jsx(te.IconDotsVertical,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Abrir Menu"})]})})}function on({...a}){return m.jsx(Q.Root,{"data-slot":"select",...a})}function Un({...a}){return m.jsx(Q.Group,{"data-slot":"select-group",...a})}function an({...a}){return m.jsx(Q.Value,{"data-slot":"select-value",...a})}function sn({className:a,size:c="default",children:u,...f}){return m.jsxs(Q.Trigger,{"data-slot":"select-trigger","data-size":c,className:H("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...f,children:[u,m.jsx(Q.Icon,{asChild:!0,children:m.jsx(ne.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function ln({className:a,children:c,position:u="popper",...f}){return m.jsx(Q.Portal,{children:m.jsxs(Q.Content,{"data-slot":"select-content",className:H("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",u==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:u,...f,children:[m.jsx(un,{}),m.jsx(Q.Viewport,{className:H("p-1",u==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:c}),m.jsx(fn,{})]})})}function Vn({className:a,...c}){return m.jsx(Q.Label,{"data-slot":"select-label",className:H("text-muted-foreground px-2 py-1.5 text-xs",a),...c})}function cn({className:a,children:c,...u}){return m.jsxs(Q.Item,{"data-slot":"select-item",className:H("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",a),...u,children:[m.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:m.jsx(Q.ItemIndicator,{children:m.jsx(ne.CheckIcon,{className:"size-4"})})}),m.jsx(Q.ItemText,{children:c})]})}function Mn({className:a,...c}){return m.jsx(Q.Separator,{"data-slot":"select-separator",className:H("bg-border pointer-events-none -mx-1 my-1 h-px",a),...c})}function un({className:a,...c}){return m.jsx(Q.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:H("flex cursor-default items-center justify-center py-1",a),...c,children:m.jsx(ne.ChevronUpIcon,{className:"size-4"})})}function fn({className:a,...c}){return m.jsx(Q.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:H("flex cursor-default items-center justify-center py-1",a),...c,children:m.jsx(ne.ChevronDownIcon,{className:"size-4"})})}function dn({className:a,type:c,...u}){return m.jsx("input",{type:c,"data-slot":"input",className:H("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...u})}function pn({className:a,...c}){return m.jsx(xn.Root,{"data-slot":"label",className:H("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...c})}function Ln({data:a,columns:c,getRowId:u,onRowOrderChange:f,onRowClick:i=()=>{},tableKey:s,Actions:y,defaultColumnFilter:b}){const A=`tablePageSize_${s}`,D=`tableColumnVisibility_${s}`,[R,T]=B.useState(()=>{if(typeof window>"u")return{};const h=localStorage.getItem(D);return h?JSON.parse(h):{}}),[v,E]=B.useState({pageIndex:0,pageSize:Number(typeof window<"u"&&localStorage.getItem(A))||10}),U=B.useId(),k=ee.useSensors(ee.useSensor(ee.MouseSensor,{}),ee.useSensor(ee.TouchSensor,{}),ee.useSensor(ee.KeyboardSensor,{})),V=B.useMemo(()=>a?.map(({id:h})=>h)||[],[a]),[M,I]=B.useState(a),[L,W]=B.useState({}),[J,F]=B.useState([]),[X,P]=B.useState([]);B.useEffect(()=>{I(a)},[a]),B.useEffect(()=>{localStorage.setItem(D,JSON.stringify(R))},[R,D]),B.useEffect(()=>{localStorage.setItem(A,String(v.pageSize))},[v.pageSize,A]);function K({columns:h}){let j=!1;for(const N of h)if(N.id==="drag"){j=!0;break}const O={id:"drag"};return j?[...h]:[O,...h]}function Y(h){const{active:j,over:O}=h;j&&O&&j.id!==O.id&&I(N=>{const C=N.findIndex(t=>t.id===j.id),e=N.findIndex(t=>t.id===O.id),r=Ee.arrayMove(N,C,e);return f&&f(r),r})}const g=re.useReactTable({data:M,columns:K({columns:c}),state:{sorting:X,columnVisibility:R,rowSelection:L,columnFilters:J,pagination:v},getRowId:u,enableRowSelection:!0,onRowSelectionChange:W,onSortingChange:P,onColumnFiltersChange:F,onColumnVisibilityChange:T,onPaginationChange:E,getCoreRowModel:re.getCoreRowModel(),getFilteredRowModel:re.getFilteredRowModel(),getPaginationRowModel:re.getPaginationRowModel(),getSortedRowModel:re.getSortedRowModel(),getFacetedRowModel:re.getFacetedRowModel(),getFacetedUniqueValues:re.getFacetedUniqueValues()});function z(){const h=g.getAllColumns()[1].columnDef;return String(h.id)?String(h.id):String(h.header)}const[$,x]=B.useState(b??z());return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between px-4 lg:px-6 mb-5 gap-2",children:[m.jsxs("div",{className:"relative w-full h-[32px]",children:[m.jsx(ne.Search,{className:"absolute left-3 top-1/2 w-4 -translate-y-1/2 text-muted-foreground"}),m.jsx(dn,{type:"text",placeholder:"",className:"pl-10 h-[32px]",value:g.getColumn($)?.getFilterValue()??"",onChange:h=>{g.getColumn($)?.setFilterValue(h.target.value)}})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs(Or,{children:[m.jsx(tr,{asChild:!0,children:m.jsxs(oe,{variant:"outline",size:"sm",children:[m.jsx(ne.FilterIcon,{}),m.jsx("span",{className:"sm:hidden lg:inline",children:$||"Filtro"}),m.jsx("span",{className:"lg:hidden",children:$||"Filtro"}),m.jsx(te.IconChevronDown,{})]})}),m.jsx(Nr,{align:"end",className:"w-56",children:m.jsx(tn,{value:$,onValueChange:h=>{F([]),x(h)},children:g.getAllColumns().filter(h=>typeof h.accessorFn<"u"&&h.getCanHide()).map(h=>{const j=h.columnDef.id?String(h.columnDef.id):String(h.columnDef.header);return m.jsx(nn,{value:j,children:j},j)})})})]}),m.jsxs(Or,{children:[m.jsx(tr,{asChild:!0,children:m.jsxs(oe,{variant:"outline",size:"sm",children:[m.jsx(te.IconLayoutColumns,{}),m.jsx("span",{className:"hidden lg:inline",children:"Colunas"}),m.jsx("span",{className:"lg:hidden",children:"Colunas"}),m.jsx(te.IconChevronDown,{})]})}),m.jsx(Nr,{align:"end",className:"w-56",children:g.getAllColumns().filter(h=>typeof h.accessorFn<"u"&&h.getCanHide()).map(h=>m.jsx(rn,{className:"capitalize",checked:h.getIsVisible(),onCheckedChange:j=>{h.toggleVisibility(!!j)},children:h.columnDef.id?String(h.columnDef.id):String(h.columnDef.header)},h.id))})]}),y]})]}),m.jsxs("div",{className:"relative flex flex-col gap-4 overflow-auto px-4 lg:px-6",children:[m.jsx("div",{className:"overflow-hidden rounded-lg border",children:m.jsx(ee.DndContext,{collisionDetection:ee.closestCenter,modifiers:[gn.restrictToVerticalAxis],onDragEnd:Y,sensors:k,id:U,children:m.jsxs(qt,{children:[m.jsx(Zt,{className:"sticky top-0 z-10",children:g.getHeaderGroups().map(h=>m.jsx(rr,{children:h.headers.map(j=>m.jsx(en,{colSpan:j.colSpan,children:j.isPlaceholder?null:re.flexRender(j.column.columnDef.header,j.getContext())},j.id))},h.id))}),m.jsx(Ee.SortableContext,{items:V,strategy:Ee.verticalListSortingStrategy,children:m.jsx(Qt,{className:"**:data-[slot=table-cell]:first:w-8",children:g.getRowModel().rows?.length?g.getRowModel().rows.map(h=>m.jsx(yn,{row:h,onRowClick:i},h.id)):m.jsx(rr,{children:m.jsx(Tr,{colSpan:c.length,className:"h-24 text-center",children:"Nenhum Resultado."})})})})]})})}),m.jsxs("div",{className:"flex items-center justify-between px-4",children:[m.jsxs("div",{className:"text-muted-foreground hidden flex-1 text-sm lg:flex",children:[g.getFilteredSelectedRowModel().rows.length," de"," ",g.getFilteredRowModel().rows.length," linhas selecionadas."]}),m.jsxs("div",{className:"flex w-full items-center gap-8 lg:w-fit",children:[m.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[m.jsx(pn,{htmlFor:"rows-per-page",className:"text-sm font-medium",children:"linhas por paginas"}),m.jsxs(on,{value:`${g.getState().pagination.pageSize}`,onValueChange:h=>{g.setPageSize(Number(h))},children:[m.jsx(sn,{size:"sm",className:"w-20",id:"rows-per-page",children:m.jsx(an,{placeholder:g.getState().pagination.pageSize})}),m.jsx(ln,{side:"top",children:[10,20,30,40,50].map(h=>m.jsx(cn,{value:`${h}`,children:h},h))})]})]}),m.jsxs("div",{className:"flex w-fit items-center justify-center text-sm font-medium",children:["Página ",g.getState().pagination.pageIndex+1," de"," ",g.getPageCount()]}),m.jsxs("div",{className:"ml-auto flex items-center gap-2 lg:ml-0",children:[m.jsxs(oe,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>g.setPageIndex(0),disabled:!g.getCanPreviousPage(),children:[m.jsx("span",{className:"sr-only",children:"Go to first page"}),m.jsx(te.IconChevronsLeft,{})]}),m.jsxs(oe,{variant:"outline",className:"size-8",size:"icon",onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),children:[m.jsx("span",{className:"sr-only",children:"Go to previous page"}),m.jsx(te.IconChevronLeft,{})]}),m.jsxs(oe,{variant:"outline",className:"size-8",size:"icon",onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),children:[m.jsx("span",{className:"sr-only",children:"Go to next page"}),m.jsx(te.IconChevronRight,{})]}),m.jsxs(oe,{variant:"outline",className:"hidden size-8 lg:flex",size:"icon",onClick:()=>g.setPageIndex(g.getPageCount()-1),disabled:!g.getCanNextPage(),children:[m.jsx("span",{className:"sr-only",children:"Go to last page"}),m.jsx(te.IconChevronsRight,{})]})]})]})]})]})]})}function yn({row:a,onRowClick:c=()=>{}}){const{transform:u,transition:f,setNodeRef:i,isDragging:s}=Ee.useSortable({id:a.original.id});return m.jsx(rr,{"data-state":a.getIsSelected()&&"selected","data-dragging":s,ref:i,style:{transform:kn.CSS.Transform.toString(u),transition:f,cursor:"grab"},onClick:()=>{c(a.original)},children:a.getVisibleCells().map(y=>m.jsx(Tr,{className:"cursor-pointer",children:re.flexRender(y.column.columnDef.cell,y.getContext())},y.id))})}var nr={exports:{}},se={};/**
23
+ * @license React
24
+ * react-jsx-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Cr;function Wn(){if(Cr)return se;Cr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return se.Fragment=c,se.jsx=u,se.jsxs=u,se}var ze={};/**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var $r;function Jn(){return $r||($r=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
39
+ let props = %s;
40
+ <%s {...props} />
41
+ React keys must be passed directly to JSX without using spread:
42
+ let props = %s;
43
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};ze.Fragment=k,ze.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},ze.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),ze}var Ar;function Xn(){return Ar||(Ar=1,process.env.NODE_ENV==="production"?nr.exports=Wn():nr.exports=Jn()),nr.exports}var Kn=Xn();function bn(a){var c,u,f="";if(typeof a=="string"||typeof a=="number")f+=a;else if(typeof a=="object")if(Array.isArray(a)){var i=a.length;for(c=0;c<i;c++)a[c]&&(u=bn(a[c]))&&(f&&(f+=" "),f+=u)}else for(u in a)a[u]&&(f&&(f+=" "),f+=u);return f}function Yn(){for(var a,c,u=0,f="",i=arguments.length;u<i;u++)(a=arguments[u])&&(c=bn(a))&&(f&&(f+=" "),f+=c);return f}function Gn(...a){return Bt.twMerge(Yn(a))}const Bn=q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Hn({className:a,variant:c,size:u,asChild:f=!1,...i}){const s=f?Gt.Slot:"button";return Kn.jsx(s,{"data-slot":"button",className:Gn(Bn({variant:c,size:u,className:a})),...i})}var or={exports:{}},le={};/**
44
+ * @license React
45
+ * react-jsx-runtime.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var Dr;function qn(){if(Dr)return le;Dr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return le.Fragment=c,le.jsx=u,le.jsxs=u,le}var Ce={};/**
52
+ * @license React
53
+ * react-jsx-runtime.development.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */var Ir;function Zn(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
60
+ let props = %s;
61
+ <%s {...props} />
62
+ React keys must be passed directly to JSX without using spread:
63
+ let props = %s;
64
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ce.Fragment=k,Ce.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ce.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ce}var Fr;function Qn(){return Fr||(Fr=1,process.env.NODE_ENV==="production"?or.exports=qn():or.exports=Zn()),or.exports}Qn();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var ar={exports:{}},ce={};/**
65
+ * @license React
66
+ * react-jsx-runtime.production.js
67
+ *
68
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ */var Ur;function eo(){if(Ur)return ce;Ur=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ce.Fragment=c,ce.jsx=u,ce.jsxs=u,ce}var $e={};/**
73
+ * @license React
74
+ * react-jsx-runtime.development.js
75
+ *
76
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
77
+ *
78
+ * This source code is licensed under the MIT license found in the
79
+ * LICENSE file in the root directory of this source tree.
80
+ */var Vr;function ro(){return Vr||(Vr=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
81
+ let props = %s;
82
+ <%s {...props} />
83
+ React keys must be passed directly to JSX without using spread:
84
+ let props = %s;
85
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};$e.Fragment=k,$e.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},$e.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),$e}var Mr;function to(){return Mr||(Mr=1,process.env.NODE_ENV==="production"?ar.exports=eo():ar.exports=ro()),ar.exports}to();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var ir={exports:{}},ue={};/**
86
+ * @license React
87
+ * react-jsx-runtime.production.js
88
+ *
89
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */var Lr;function no(){if(Lr)return ue;Lr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ue.Fragment=c,ue.jsx=u,ue.jsxs=u,ue}var Ae={};/**
94
+ * @license React
95
+ * react-jsx-runtime.development.js
96
+ *
97
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
98
+ *
99
+ * This source code is licensed under the MIT license found in the
100
+ * LICENSE file in the root directory of this source tree.
101
+ */var Wr;function oo(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
102
+ let props = %s;
103
+ <%s {...props} />
104
+ React keys must be passed directly to JSX without using spread:
105
+ let props = %s;
106
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ae.Fragment=k,Ae.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ae.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ae}var Jr;function ao(){return Jr||(Jr=1,process.env.NODE_ENV==="production"?ir.exports=no():ir.exports=oo()),ir.exports}ao();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var sr={exports:{}},fe={};/**
107
+ * @license React
108
+ * react-jsx-runtime.production.js
109
+ *
110
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
111
+ *
112
+ * This source code is licensed under the MIT license found in the
113
+ * LICENSE file in the root directory of this source tree.
114
+ */var Xr;function io(){if(Xr)return fe;Xr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return fe.Fragment=c,fe.jsx=u,fe.jsxs=u,fe}var De={};/**
115
+ * @license React
116
+ * react-jsx-runtime.development.js
117
+ *
118
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
119
+ *
120
+ * This source code is licensed under the MIT license found in the
121
+ * LICENSE file in the root directory of this source tree.
122
+ */var Kr;function so(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
123
+ let props = %s;
124
+ <%s {...props} />
125
+ React keys must be passed directly to JSX without using spread:
126
+ let props = %s;
127
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};De.Fragment=k,De.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},De.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),De}var Yr;function lo(){return Yr||(Yr=1,process.env.NODE_ENV==="production"?sr.exports=io():sr.exports=so()),sr.exports}lo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var lr={exports:{}},de={};/**
128
+ * @license React
129
+ * react-jsx-runtime.production.js
130
+ *
131
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
132
+ *
133
+ * This source code is licensed under the MIT license found in the
134
+ * LICENSE file in the root directory of this source tree.
135
+ */var Gr;function co(){if(Gr)return de;Gr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return de.Fragment=c,de.jsx=u,de.jsxs=u,de}var Ie={};/**
136
+ * @license React
137
+ * react-jsx-runtime.development.js
138
+ *
139
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ */var Br;function uo(){return Br||(Br=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
144
+ let props = %s;
145
+ <%s {...props} />
146
+ React keys must be passed directly to JSX without using spread:
147
+ let props = %s;
148
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ie.Fragment=k,Ie.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ie.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ie}var Hr;function fo(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?lr.exports=co():lr.exports=uo()),lr.exports}fo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var cr={exports:{}},pe={};/**
149
+ * @license React
150
+ * react-jsx-runtime.production.js
151
+ *
152
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
153
+ *
154
+ * This source code is licensed under the MIT license found in the
155
+ * LICENSE file in the root directory of this source tree.
156
+ */var qr;function po(){if(qr)return pe;qr=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return pe.Fragment=c,pe.jsx=u,pe.jsxs=u,pe}var Fe={};/**
157
+ * @license React
158
+ * react-jsx-runtime.development.js
159
+ *
160
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
161
+ *
162
+ * This source code is licensed under the MIT license found in the
163
+ * LICENSE file in the root directory of this source tree.
164
+ */var Zr;function yo(){return Zr||(Zr=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
165
+ let props = %s;
166
+ <%s {...props} />
167
+ React keys must be passed directly to JSX without using spread:
168
+ let props = %s;
169
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Fe.Fragment=k,Fe.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Fe.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Fe}var Qr;function bo(){return Qr||(Qr=1,process.env.NODE_ENV==="production"?cr.exports=po():cr.exports=yo()),cr.exports}bo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var ur={exports:{}},ye={};/**
170
+ * @license React
171
+ * react-jsx-runtime.production.js
172
+ *
173
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
174
+ *
175
+ * This source code is licensed under the MIT license found in the
176
+ * LICENSE file in the root directory of this source tree.
177
+ */var et;function mo(){if(et)return ye;et=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ye.Fragment=c,ye.jsx=u,ye.jsxs=u,ye}var Ue={};/**
178
+ * @license React
179
+ * react-jsx-runtime.development.js
180
+ *
181
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
182
+ *
183
+ * This source code is licensed under the MIT license found in the
184
+ * LICENSE file in the root directory of this source tree.
185
+ */var rt;function vo(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
186
+ let props = %s;
187
+ <%s {...props} />
188
+ React keys must be passed directly to JSX without using spread:
189
+ let props = %s;
190
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ue.Fragment=k,Ue.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ue.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ue}var tt;function go(){return tt||(tt=1,process.env.NODE_ENV==="production"?ur.exports=mo():ur.exports=vo()),ur.exports}go();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var fr={exports:{}},be={};/**
191
+ * @license React
192
+ * react-jsx-runtime.production.js
193
+ *
194
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
195
+ *
196
+ * This source code is licensed under the MIT license found in the
197
+ * LICENSE file in the root directory of this source tree.
198
+ */var nt;function ho(){if(nt)return be;nt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return be.Fragment=c,be.jsx=u,be.jsxs=u,be}var Ve={};/**
199
+ * @license React
200
+ * react-jsx-runtime.development.js
201
+ *
202
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
203
+ *
204
+ * This source code is licensed under the MIT license found in the
205
+ * LICENSE file in the root directory of this source tree.
206
+ */var ot;function ko(){return ot||(ot=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
207
+ let props = %s;
208
+ <%s {...props} />
209
+ React keys must be passed directly to JSX without using spread:
210
+ let props = %s;
211
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ve.Fragment=k,Ve.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ve.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ve}var at;function xo(){return at||(at=1,process.env.NODE_ENV==="production"?fr.exports=ho():fr.exports=ko()),fr.exports}xo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var dr={exports:{}},me={};/**
212
+ * @license React
213
+ * react-jsx-runtime.production.js
214
+ *
215
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
216
+ *
217
+ * This source code is licensed under the MIT license found in the
218
+ * LICENSE file in the root directory of this source tree.
219
+ */var it;function So(){if(it)return me;it=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return me.Fragment=c,me.jsx=u,me.jsxs=u,me}var Me={};/**
220
+ * @license React
221
+ * react-jsx-runtime.development.js
222
+ *
223
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
224
+ *
225
+ * This source code is licensed under the MIT license found in the
226
+ * LICENSE file in the root directory of this source tree.
227
+ */var st;function _o(){return st||(st=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
228
+ let props = %s;
229
+ <%s {...props} />
230
+ React keys must be passed directly to JSX without using spread:
231
+ let props = %s;
232
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Me.Fragment=k,Me.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Me.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Me}var lt;function wo(){return lt||(lt=1,process.env.NODE_ENV==="production"?dr.exports=So():dr.exports=_o()),dr.exports}wo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var pr={exports:{}},ve={};/**
233
+ * @license React
234
+ * react-jsx-runtime.production.js
235
+ *
236
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
237
+ *
238
+ * This source code is licensed under the MIT license found in the
239
+ * LICENSE file in the root directory of this source tree.
240
+ */var ct;function jo(){if(ct)return ve;ct=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ve.Fragment=c,ve.jsx=u,ve.jsxs=u,ve}var Le={};/**
241
+ * @license React
242
+ * react-jsx-runtime.development.js
243
+ *
244
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
245
+ *
246
+ * This source code is licensed under the MIT license found in the
247
+ * LICENSE file in the root directory of this source tree.
248
+ */var ut;function Oo(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
249
+ let props = %s;
250
+ <%s {...props} />
251
+ React keys must be passed directly to JSX without using spread:
252
+ let props = %s;
253
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Le.Fragment=k,Le.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Le.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Le}var ft;function No(){return ft||(ft=1,process.env.NODE_ENV==="production"?pr.exports=jo():pr.exports=Oo()),pr.exports}No();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var yr={exports:{}},ge={};/**
254
+ * @license React
255
+ * react-jsx-runtime.production.js
256
+ *
257
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
258
+ *
259
+ * This source code is licensed under the MIT license found in the
260
+ * LICENSE file in the root directory of this source tree.
261
+ */var dt;function Ro(){if(dt)return ge;dt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ge.Fragment=c,ge.jsx=u,ge.jsxs=u,ge}var We={};/**
262
+ * @license React
263
+ * react-jsx-runtime.development.js
264
+ *
265
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
266
+ *
267
+ * This source code is licensed under the MIT license found in the
268
+ * LICENSE file in the root directory of this source tree.
269
+ */var pt;function To(){return pt||(pt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
270
+ let props = %s;
271
+ <%s {...props} />
272
+ React keys must be passed directly to JSX without using spread:
273
+ let props = %s;
274
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};We.Fragment=k,We.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},We.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),We}var yt;function Eo(){return yt||(yt=1,process.env.NODE_ENV==="production"?yr.exports=Ro():yr.exports=To()),yr.exports}Eo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var br={exports:{}},he={};/**
275
+ * @license React
276
+ * react-jsx-runtime.production.js
277
+ *
278
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
279
+ *
280
+ * This source code is licensed under the MIT license found in the
281
+ * LICENSE file in the root directory of this source tree.
282
+ */var bt;function Po(){if(bt)return he;bt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return he.Fragment=c,he.jsx=u,he.jsxs=u,he}var Je={};/**
283
+ * @license React
284
+ * react-jsx-runtime.development.js
285
+ *
286
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
287
+ *
288
+ * This source code is licensed under the MIT license found in the
289
+ * LICENSE file in the root directory of this source tree.
290
+ */var mt;function zo(){return mt||(mt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
291
+ let props = %s;
292
+ <%s {...props} />
293
+ React keys must be passed directly to JSX without using spread:
294
+ let props = %s;
295
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Je.Fragment=k,Je.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Je.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Je}var vt;function Co(){return vt||(vt=1,process.env.NODE_ENV==="production"?br.exports=Po():br.exports=zo()),br.exports}Co();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var mr={exports:{}},ke={};/**
296
+ * @license React
297
+ * react-jsx-runtime.production.js
298
+ *
299
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
300
+ *
301
+ * This source code is licensed under the MIT license found in the
302
+ * LICENSE file in the root directory of this source tree.
303
+ */var gt;function $o(){if(gt)return ke;gt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return ke.Fragment=c,ke.jsx=u,ke.jsxs=u,ke}var Xe={};/**
304
+ * @license React
305
+ * react-jsx-runtime.development.js
306
+ *
307
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
308
+ *
309
+ * This source code is licensed under the MIT license found in the
310
+ * LICENSE file in the root directory of this source tree.
311
+ */var ht;function Ao(){return ht||(ht=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
312
+ let props = %s;
313
+ <%s {...props} />
314
+ React keys must be passed directly to JSX without using spread:
315
+ let props = %s;
316
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Xe.Fragment=k,Xe.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Xe.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Xe}var kt;function Do(){return kt||(kt=1,process.env.NODE_ENV==="production"?mr.exports=$o():mr.exports=Ao()),mr.exports}Do();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var vr={exports:{}},xe={};/**
317
+ * @license React
318
+ * react-jsx-runtime.production.js
319
+ *
320
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
321
+ *
322
+ * This source code is licensed under the MIT license found in the
323
+ * LICENSE file in the root directory of this source tree.
324
+ */var xt;function Io(){if(xt)return xe;xt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return xe.Fragment=c,xe.jsx=u,xe.jsxs=u,xe}var Ke={};/**
325
+ * @license React
326
+ * react-jsx-runtime.development.js
327
+ *
328
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
329
+ *
330
+ * This source code is licensed under the MIT license found in the
331
+ * LICENSE file in the root directory of this source tree.
332
+ */var St;function Fo(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
333
+ let props = %s;
334
+ <%s {...props} />
335
+ React keys must be passed directly to JSX without using spread:
336
+ let props = %s;
337
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ke.Fragment=k,Ke.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ke.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ke}var _t;function Uo(){return _t||(_t=1,process.env.NODE_ENV==="production"?vr.exports=Io():vr.exports=Fo()),vr.exports}Uo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var gr={exports:{}},Se={};/**
338
+ * @license React
339
+ * react-jsx-runtime.production.js
340
+ *
341
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
342
+ *
343
+ * This source code is licensed under the MIT license found in the
344
+ * LICENSE file in the root directory of this source tree.
345
+ */var wt;function Vo(){if(wt)return Se;wt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return Se.Fragment=c,Se.jsx=u,Se.jsxs=u,Se}var Ye={};/**
346
+ * @license React
347
+ * react-jsx-runtime.development.js
348
+ *
349
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
350
+ *
351
+ * This source code is licensed under the MIT license found in the
352
+ * LICENSE file in the root directory of this source tree.
353
+ */var jt;function Mo(){return jt||(jt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
354
+ let props = %s;
355
+ <%s {...props} />
356
+ React keys must be passed directly to JSX without using spread:
357
+ let props = %s;
358
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ye.Fragment=k,Ye.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ye.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ye}var Ot;function Lo(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?gr.exports=Vo():gr.exports=Mo()),gr.exports}Lo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var hr={exports:{}},_e={};/**
359
+ * @license React
360
+ * react-jsx-runtime.production.js
361
+ *
362
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
363
+ *
364
+ * This source code is licensed under the MIT license found in the
365
+ * LICENSE file in the root directory of this source tree.
366
+ */var Nt;function Wo(){if(Nt)return _e;Nt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return _e.Fragment=c,_e.jsx=u,_e.jsxs=u,_e}var Ge={};/**
367
+ * @license React
368
+ * react-jsx-runtime.development.js
369
+ *
370
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
371
+ *
372
+ * This source code is licensed under the MIT license found in the
373
+ * LICENSE file in the root directory of this source tree.
374
+ */var Rt;function Jo(){return Rt||(Rt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
375
+ let props = %s;
376
+ <%s {...props} />
377
+ React keys must be passed directly to JSX without using spread:
378
+ let props = %s;
379
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ge.Fragment=k,Ge.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ge.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ge}var Tt;function Xo(){return Tt||(Tt=1,process.env.NODE_ENV==="production"?hr.exports=Wo():hr.exports=Jo()),hr.exports}Xo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var kr={exports:{}},we={};/**
380
+ * @license React
381
+ * react-jsx-runtime.production.js
382
+ *
383
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
384
+ *
385
+ * This source code is licensed under the MIT license found in the
386
+ * LICENSE file in the root directory of this source tree.
387
+ */var Et;function Ko(){if(Et)return we;Et=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return we.Fragment=c,we.jsx=u,we.jsxs=u,we}var Be={};/**
388
+ * @license React
389
+ * react-jsx-runtime.development.js
390
+ *
391
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
392
+ *
393
+ * This source code is licensed under the MIT license found in the
394
+ * LICENSE file in the root directory of this source tree.
395
+ */var Pt;function Yo(){return Pt||(Pt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
396
+ let props = %s;
397
+ <%s {...props} />
398
+ React keys must be passed directly to JSX without using spread:
399
+ let props = %s;
400
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Be.Fragment=k,Be.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Be.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Be}var zt;function Go(){return zt||(zt=1,process.env.NODE_ENV==="production"?kr.exports=Ko():kr.exports=Yo()),kr.exports}Go();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var xr={exports:{}},je={};/**
401
+ * @license React
402
+ * react-jsx-runtime.production.js
403
+ *
404
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
405
+ *
406
+ * This source code is licensed under the MIT license found in the
407
+ * LICENSE file in the root directory of this source tree.
408
+ */var Ct;function Bo(){if(Ct)return je;Ct=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return je.Fragment=c,je.jsx=u,je.jsxs=u,je}var He={};/**
409
+ * @license React
410
+ * react-jsx-runtime.development.js
411
+ *
412
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
413
+ *
414
+ * This source code is licensed under the MIT license found in the
415
+ * LICENSE file in the root directory of this source tree.
416
+ */var $t;function Ho(){return $t||($t=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
417
+ let props = %s;
418
+ <%s {...props} />
419
+ React keys must be passed directly to JSX without using spread:
420
+ let props = %s;
421
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};He.Fragment=k,He.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},He.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),He}var At;function qo(){return At||(At=1,process.env.NODE_ENV==="production"?xr.exports=Bo():xr.exports=Ho()),xr.exports}qo();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var Sr={exports:{}},Oe={};/**
422
+ * @license React
423
+ * react-jsx-runtime.production.js
424
+ *
425
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
426
+ *
427
+ * This source code is licensed under the MIT license found in the
428
+ * LICENSE file in the root directory of this source tree.
429
+ */var Dt;function Zo(){if(Dt)return Oe;Dt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return Oe.Fragment=c,Oe.jsx=u,Oe.jsxs=u,Oe}var qe={};/**
430
+ * @license React
431
+ * react-jsx-runtime.development.js
432
+ *
433
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
434
+ *
435
+ * This source code is licensed under the MIT license found in the
436
+ * LICENSE file in the root directory of this source tree.
437
+ */var It;function Qo(){return It||(It=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
438
+ let props = %s;
439
+ <%s {...props} />
440
+ React keys must be passed directly to JSX without using spread:
441
+ let props = %s;
442
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};qe.Fragment=k,qe.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},qe.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),qe}var Ft;function ea(){return Ft||(Ft=1,process.env.NODE_ENV==="production"?Sr.exports=Zo():Sr.exports=Qo()),Sr.exports}ea();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var _r={exports:{}},Ne={};/**
443
+ * @license React
444
+ * react-jsx-runtime.production.js
445
+ *
446
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
447
+ *
448
+ * This source code is licensed under the MIT license found in the
449
+ * LICENSE file in the root directory of this source tree.
450
+ */var Ut;function ra(){if(Ut)return Ne;Ut=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return Ne.Fragment=c,Ne.jsx=u,Ne.jsxs=u,Ne}var Ze={};/**
451
+ * @license React
452
+ * react-jsx-runtime.development.js
453
+ *
454
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
455
+ *
456
+ * This source code is licensed under the MIT license found in the
457
+ * LICENSE file in the root directory of this source tree.
458
+ */var Vt;function ta(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
459
+ let props = %s;
460
+ <%s {...props} />
461
+ React keys must be passed directly to JSX without using spread:
462
+ let props = %s;
463
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Ze.Fragment=k,Ze.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Ze.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Ze}var Mt;function na(){return Mt||(Mt=1,process.env.NODE_ENV==="production"?_r.exports=ra():_r.exports=ta()),_r.exports}na();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var wr={exports:{}},Re={};/**
464
+ * @license React
465
+ * react-jsx-runtime.production.js
466
+ *
467
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
468
+ *
469
+ * This source code is licensed under the MIT license found in the
470
+ * LICENSE file in the root directory of this source tree.
471
+ */var Lt;function oa(){if(Lt)return Re;Lt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return Re.Fragment=c,Re.jsx=u,Re.jsxs=u,Re}var Qe={};/**
472
+ * @license React
473
+ * react-jsx-runtime.development.js
474
+ *
475
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
476
+ *
477
+ * This source code is licensed under the MIT license found in the
478
+ * LICENSE file in the root directory of this source tree.
479
+ */var Wt;function aa(){return Wt||(Wt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
480
+ let props = %s;
481
+ <%s {...props} />
482
+ React keys must be passed directly to JSX without using spread:
483
+ let props = %s;
484
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};Qe.Fragment=k,Qe.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},Qe.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),Qe}var Jt;function ia(){return Jt||(Jt=1,process.env.NODE_ENV==="production"?wr.exports=oa():wr.exports=aa()),wr.exports}ia();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});var jr={exports:{}},Te={};/**
485
+ * @license React
486
+ * react-jsx-runtime.production.js
487
+ *
488
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
489
+ *
490
+ * This source code is licensed under the MIT license found in the
491
+ * LICENSE file in the root directory of this source tree.
492
+ */var Xt;function sa(){if(Xt)return Te;Xt=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(f,i,s){var y=null;if(s!==void 0&&(y=""+s),i.key!==void 0&&(y=""+i.key),"key"in i){s={};for(var b in i)b!=="key"&&(s[b]=i[b])}else s=i;return i=s.ref,{$$typeof:a,type:f,key:y,ref:i!==void 0?i:null,props:s}}return Te.Fragment=c,Te.jsx=u,Te.jsxs=u,Te}var er={};/**
493
+ * @license React
494
+ * react-jsx-runtime.development.js
495
+ *
496
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
497
+ *
498
+ * This source code is licensed under the MIT license found in the
499
+ * LICENSE file in the root directory of this source tree.
500
+ */var Kt;function la(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case M:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case U:return"Portal";case L:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case W:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function u(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=g.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function y(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){h||(h=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function A(){var e=a(this.type);return j[e]||(j[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,d,l,S,_){return t=l.ref,e={$$typeof:E,type:e,key:r,props:l,_owner:d},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:A}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,r,t,n,d,l,S,_){var o=r.children;if(o!==void 0)if(n)if($(o)){for(n=0;n<o.length;n++)T(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(o);if(z.call(r,"key")){o=a(e);var p=Object.keys(r).filter(function(G){return G!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",C[o+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
501
+ let props = %s;
502
+ <%s {...props} />
503
+ React keys must be passed directly to JSX without using spread:
504
+ let props = %s;
505
+ <%s key={someKey} {...props} />`,n,o,p,o),C[o+n]=!0)}if(o=null,t!==void 0&&(u(t),o=""+t),y(r)&&(u(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,l,d,i(),t,S,_)}function T(e){typeof e=="object"&&e!==null&&e.$$typeof===E&&e._store&&(e._store.validated=1)}var v=B,E=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),g=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,$=Array.isArray,x=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var h,j={},O=v.react_stack_bottom_frame.bind(v,s)(),N=x(f(s)),C={};er.Fragment=k,er.jsx=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!1,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)},er.jsxs=function(e,r,t,n,d){var l=1e4>g.recentlyCreatedOwnerStacks++;return R(e,r,t,!0,n,d,l?Error("react-stack-top-frame"):O,l?x(f(e)):N)}})()),er}var Yt;function ca(){return Yt||(Yt=1,process.env.NODE_ENV==="production"?jr.exports=sa():jr.exports=la()),jr.exports}ca();q.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ua({id:a}){const{attributes:c,listeners:u}=Ee.useSortable({id:a});return m.jsxs(Hn,{...c,...u,variant:"ghost",size:"icon",className:"text-muted-foreground size-7 hover:bg-transparent cursor-pointer",children:[m.jsx(te.IconGripVertical,{className:"text-muted-foreground size-3"}),m.jsx("span",{className:"sr-only",children:"Drag to reorder"})]})}exports.Button=oe;exports.DataTable=Ln;exports.DefaultDropdownMenuTrigger=Fn;exports.DragHandle=ua;exports.DraggableRow=yn;exports.DropdownMenu=Or;exports.DropdownMenuCheckboxItem=rn;exports.DropdownMenuContent=Nr;exports.DropdownMenuGroup=En;exports.DropdownMenuItem=Pn;exports.DropdownMenuLabel=zn;exports.DropdownMenuPortal=Tn;exports.DropdownMenuRadioGroup=tn;exports.DropdownMenuRadioItem=nn;exports.DropdownMenuSeparator=Cn;exports.DropdownMenuShortcut=$n;exports.DropdownMenuSub=An;exports.DropdownMenuSubContent=In;exports.DropdownMenuSubTrigger=Dn;exports.DropdownMenuTrigger=tr;exports.Input=dn;exports.Label=pn;exports.Select=on;exports.SelectContent=ln;exports.SelectGroup=Un;exports.SelectItem=cn;exports.SelectLabel=Vn;exports.SelectScrollDownButton=fn;exports.SelectScrollUpButton=un;exports.SelectSeparator=Mn;exports.SelectTrigger=sn;exports.SelectValue=an;exports.Table=qt;exports.TableBody=Qt;exports.TableCaption=Rn;exports.TableCell=Tr;exports.TableFooter=Nn;exports.TableHead=en;exports.TableHeader=Zt;exports.TableRow=rr;