PageSourceSearch

https://cyc-admin-dash.vercel.app/_next/static/chunks/4428-5766b3e887065aca.js

js cyc-admin-dash.vercel.app collected 2026-10-03 06:30:46 UTC 54,156 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4428],{21362:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},28737:(e,t,n)=>{n.d(t,{UC:()=>ni,YJ:()=>nb,In:()=>ne,q7:()=>nE,VF:()=>nR,p4:()=>nP,ZL:()=>nr,bL:()=>t8,l9:()=>t3,WT:()=>t9,LM:()=>nv});var r,o=n(12115),i=n.t(o,2),l=n(47650);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(u,"name",{value:"clamp",configurable:!0});var a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0}),c=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function d(e,t,{checkForDefaultPrevented:n=!0}={}){return s(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function f(e){if(!c)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function p(e){return"IFRAME"===e.tagName}s(d,"composeEventHandlers"),s(function(e){if(!c)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),s(f,"getOwnerDocument"),s(function e(t,n=!1){let{activeElement:r}=f(t);if(!r?.nodeName)return null;if(p(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=f(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),s(p,"isFrame");var m=n(95155),h=Object.defineProperty,v=(e,t)=>h(e,"name",{value:t,configurable:!0});function y(e,t=[]){let n=[];function r(t,r){let i=o.createContext(r);i.displayName=t+"Context";let l=n.length;n=[...n,r];let u=v(t=>{let{scope:n,children:r,...u}=t,a=n?.[e]?.[l]||i,s=o.useMemo(()=>u,Object.values(u));return(0,m.jsx)(a.Provider,{value:s,children:r})},"Provider");function a(n,u,s={}){let{optional:c=!1}=s,d=u?.[e]?.[l]||i,f=o.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return u.displayName=t+"Provider",v(a,"useContext"),[u,a]}v(r,"createContext");let i=v(()=>{let t=n.map(e=>o.createContext(e));return v(function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,g(i,...t)]}function g(...e){let t=e[0];if(1===e.length)return t;let n=v(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return v(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}v(function(e,t){let n=o.createContext(t);n.displayName=e+"Context";let r=v(e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,l={}){let{optional:u=!1}=l,a=o.useContext(n);if(a)return a;if(void 0!==t)return t;if(!u)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",v(i,"useContext"),[r,i]},"createContext"),v(y,"createContextScope"),v(g,"composeContextScopes");var b=Object.defineProperty,x=(e,t)=>b(e,"name",{value:t,configurable:!0});function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function S(...e){return t=>{let n=!1,r=e.map(e=>{let r=w(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():w(e[t],null)}}}}function E(...e){return o.useCallback(S(...e),e)}x(w,"setRef"),x(S,"composeRefs"),x(E,"useComposedRefs");var C=Object.defineProperty,P=(e,t)=>C(e,"name",{value:t,configurable:!0});function R(e){let t=o.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,u=!1,a=[];M(r)&&"function"==typeof _&&(r=_(r._payload)),o.Children.forEach(r,e=>{if(N(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;M(t)&&"function"==typeof _&&(t=_(t._payload)),l=j(e,t),a.push(l?.props?.children)}else a.push(e)}),l?l=o.cloneElement(l,void 0,a):!u&&1===o.Children.count(r)&&o.isValidElement(r)&&(l=r);let s=l?I(l):void 0,c=E(n,s);if(!l){if(r||0===r)throw Error(u?L(e):T(e));return r}let d=k(i,l.props??{});return l.type!==o.Fragment&&(d.ref=n?c:s),o.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}P(R,"createSlot");var O=Symbol.for("radix.slottable");P(function(e){let t=P(e=>
1"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=O,t},"createSlottable");var j=P((e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function k(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function I(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function N(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===O}P(k,"mergeProps"),P(I,"getElementRef"),P(N,"isSlottable");var A=Symbol.for("react.lazy");function M(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===A&&"_payload"in e&&D(e._payload)}function D(e){return"object"==typeof e&&null!==e&&"then"in e}P(M,"isLazyComponent"),P(D,"isPromiseLike");var T=P(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),L=P(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),_=i[" use ".trim().toString()],F=Object.defineProperty,$=(e,t)=>F(e,"name",{value:t,configurable:!0});function W(e){let t=e+"CollectionProvider",[n,r]=y(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=$(e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})},"CollectionProvider");u.displayName=t;let a=e+"CollectionSlot",s=R(a),c=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=E(t,l(a,n).collectionRef);return(0,m.jsx)(s,{ref:o,children:r})});c.displayName=a;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=R(d),h=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,u=o.useRef(null),a=E(t,u),s=l(d,n);return o.useEffect(()=>(s.itemMap.set(u,{ref:u,...i}),()=>void s.itemMap.delete(u))),(0,m.jsx)(p,{...{[f]:""},ref:a,children:r})});function v(t){let n=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=d,$(v,"useCollection"),[{Provider:u,Slot:c,ItemSlot:h},v,r]}$(W,"createCollection");var z=new WeakMap,V=class e extends Map{static{$(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],z.set(this,!0)}set(e,t){return z.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,l=H(e),u=l>=0?l:i+l,a=u<0||u>=i?-1:u;if(a===this.size||o&&a===this.size-1||-1===a)return this.set(t,n),this;let s=this.size+ +!o;l<0&&u++;let c=[...this.#e],d=!1;for(let e=u;e<s;e++)if(u===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=U(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=U(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return U(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function U(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=B(e,t);return -1===n?void 0:e[n]}function B(e,t){let n=e.length,r=H(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function H(e){return e!=e||0===e?0:Math.trunc(e)}function K(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function q(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function G(e,t){return e[1].element&&t[1].element?q(e[1].element,t[1].element)?-1:1:0}function Y(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}$(U,"at"),$(B,"toSafeIndex"),$(H,"toSafeInteger"),$(function(e){let t=e+"CollectionProvider",[n,r]=y(t),[i,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new V,setItemMap:$(()=>void 0,"setItemMap")}),u=$(({state:e,...t})=>e?(0,m.jsx)(s,{...t,state:e}):(0,m.jsx)(a,{...t}),"CollectionProvider");u.displayName=t;let a=$(e=>{let t=g();return(0,m.jsx)(s,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let s=$(e=>{let{scope:t,children:n,state:r}=e,l=o.useRef(null),[u,a]=o.useState(null),s=E(l,a),[c,d]=r;return o.useEffect(()=>{if(!u)return;let e=Y(()=>{});return e.observe(u,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[u]),(0,m.jsx)(i,{scope:t,itemMap:c,setItemMap:d,collectionRef:s,collectionRefObject:l,collectionElement:u,children:n})},"CollectionProviderImpl");s.displayName=t+"Impl";let c=e+"CollectionSlot",d=R(c),f=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=E(t,l(c,n).collectionRef);return(0,m.jsx)(d,{ref:o,children:r})});f.displayName=c;let p=e+"CollectionItemSlot",h=R(p),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,u=o.useRef(null),[a,s]=o.useState(null),c=E(t,u,s),{setItemMap:d}=l(p,n),f=o.useRef(i);K(f.current,i)||(f.current=i);let v=f.current;return o.useEffect(()=>(d(e=>a?e.has(a)?e.set(a,{...v,element:a}).toSorted(G):(e.set(a,{...v,element:a}),e.toSorted(G)):e),()=>{d(e=>a&&e.has(a)?(e.delete(a),new V(e)):e)}),[a,v,d]),(0,m.jsx)(h,{"data-radix-collection-item":"",ref:c,children:r})});function g(){return o.useState(new V)}function b(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return v.displayName=p,$(g,"useInitCollection"),$(b,"useCollection"),[{Provider:u,Slot:f,ItemSlot:v},{createCollectionScope:r,useCollection:b,useInitCollection:g}]},"createCollection"),$(K,"shallowEqual"),$(q,"isElementPreceding"),$(G,"sortByDocumentPosition"),$(Y,"getChildListObserver");var Z=Object.defineProperty,X=(e,t)=>Z(e,"name",{value:t,configurable:!0});function J(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Q(...e){return t=>{let n=!1,r=e.map(e=>{let r=J(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():J(e[t],null)}}}}function ee(...e){return o.useCallback(Q(...e),e)}X(J,"setRef"),X(Q,"composeRefs"),X(ee,"useComposedRefs");var et=Object.defineProperty,en=(e,t)=>et(e,"name",{value:t,configurable:!0});function er(e,t=[]){let n=[];function r(t,r){let i=o.createContext(r);i.displayName=t+"Context";let l=n.length;n=[...n,r];let u=en(t=>{let{scope:n,children:r,...u}=t,a=n?.[e]?.[l]||i,s=o.useMemo(()=>u,Object.values(u));return(0,m.jsx)(a.Provider,{value:s,children:r})},"Provider");function a(n,u,s={}){let{optional:c=!1}
1=s,d=u?.[e]?.[l]||i,f=o.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return u.displayName=t+"Provider",en(a,"useContext"),[u,a]}en(r,"createContext");let i=en(()=>{let t=n.map(e=>o.createContext(e));return en(function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,eo(i,...t)]}function eo(...e){let t=e[0];if(1===e.length)return t;let n=en(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return en(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}en(function(e,t){let n=o.createContext(t);n.displayName=e+"Context";let r=en(e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,l={}){let{optional:u=!1}=l,a=o.useContext(n);if(a)return a;if(void 0!==t)return t;if(!u)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",en(i,"useContext"),[r,i]},"createContext"),en(er,"createContextScope"),en(eo,"composeContextScopes");var ei=Object.defineProperty,el=o.createContext(void 0);function eu(e){let t=o.useContext(el);return e||t||"ltr"}ei(eu,"name",{value:"useDirection",configurable:!0});var ea=Object.defineProperty,es=(e,t)=>ea(e,"name",{value:t,configurable:!0});function ec(e){let t=o.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,u=!1,a=[];ey(r)&&"function"==typeof ew&&(r=ew(r._payload)),o.Children.forEach(r,e=>{if(eh(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;ey(t)&&"function"==typeof ew&&(t=ew(t._payload)),l=ef(e,t),a.push(l?.props?.children)}else a.push(e)}),l?l=o.cloneElement(l,void 0,a):!u&&1===o.Children.count(r)&&o.isValidElement(r)&&(l=r);let s=l?em(l):void 0,c=ee(n,s);if(!l){if(r||0===r)throw Error(u?ex(e):eb(e));return r}let d=ep(i,l.props??{});return l.type!==o.Fragment&&(d.ref=n?c:s),o.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}es(ec,"createSlot");var ed=Symbol.for("radix.slottable");es(function(e){let t=es(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ed,t},"createSlottable");var ef=es((e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ep(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function em(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function eh(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ed}es(ep,"mergeProps"),es(em,"getElementRef"),es(eh,"isSlottable");var ev=Symbol.for("react.lazy");function ey(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ev&&"_payload"in e&&eg(e._payload)}function eg(e){return"object"==typeof e&&null!==e&&"then"in e}es(ey,"isLazyComponent"),es(eg,"isPromiseLike");var eb=es(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ex=es(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ew=i[" use ".trim().toString()],eS=Object.defineProperty,eE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=ec(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eC(e,t){e&&l.flushSync(()=>
1e.dispatchEvent(t))}function eP(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}eS(eC,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(eP,"name",{value:"useCallbackRef",configurable:!0});var eR=Object.defineProperty,eO=(e,t)=>eR(e,"name",{value:t,configurable:!0}),ej="dismissableLayer.update",ek=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eI=o.forwardRef(eO(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...f}=e,p=o.useContext(ek),[h,v]=o.useState(null),y=h?.ownerDocument??globalThis?.document,[,g]=o.useState({}),b=ee(t,v),x=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=w?x.indexOf(w):-1,E=h?x.indexOf(h):-1,C=p.layersWithOutsidePointerEventsDisabled.size>0,P=E>=S,R=o.useRef(!1),O=eA(e=>{u?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:y,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return P&&!t},[p.branches,P])}),j=eM(e=>{if(i&&R.current)return;let t=e.target;![...p.branches].some(e=>e.contains(t))&&(a?.(e),s?.(e),e.defaultPrevented||c?.())},y),k=!!h&&E===x.length-1,I=eP(e=>{"Escape"===e.key&&(l?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return o.useEffect(()=>{if(k)return y.addEventListener("keydown",I,{capture:!0}),()=>y.removeEventListener("keydown",I,{capture:!0})},[y,k,I]),o.useEffect(()=>{if(h)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(r=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),eD(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(h),0===p.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=r))}},[h,y,n,p]),o.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),eD())},[h,p]),o.useEffect(()=>{let e=eO(()=>g({}),"handleUpdate");return document.addEventListener(ej,e),()=>document.removeEventListener(ej,e)},[]),(0,m.jsx)(eE.div,{...f,ref:b,style:{pointerEvents:C?P?"auto":"none":void 0,...e.style},onFocusCapture:d(e.onFocusCapture,j.onFocusCapture),onBlurCapture:d(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:d(e.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));eO(function(){let e=o.useContext(ek),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var eN=eO(()=>!0,"IS_TRUE");function eA(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=eN}=t,a=eP(e),s=o.useRef(!1),c=o.useRef(!1),d=o.useRef(new Map),f=o.useRef(()=>{});return o.useEffect(()=>{function e(){c.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function o(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...l].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&f.current()},0)}function p(e){c.current&&d.current.set(e.type,!1)}eO(e,"resetOutsideInteraction"),eO(t,"isOutsideInteractionIntercepted"),eO(o,"handleInteractionCapture"),eO(p,"handleInteractionBubble");let m=eO(o=>{if(o.target&&!s.current){let l=function(){n.removeEventListener("click",f.current);let r=t();e(),r||eT("dismissableLayer.pointerDownOutside",a,p,{discrete:!0})};if(eO(l,"handleAndDispatchPointerDownOutsideEvent"),!u(o.target)){n.removeEventListener("click",f.current),e(),s.current=!1;return}let p={originalEvent:o};c.current=!0,i.current=r&&0===o.button,d.current.clear(),r&&0===o.button?(n.removeEventListener("click",f.current),f.current=l,n.addEventListener("click",f.current,{once:!0})):l()}
1else n.removeEventListener("click",f.current),e();s.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,o,!0),n.addEventListener(e,p);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",f.current),h))n.removeEventListener(e,o,!0),n.removeEventListener(e,p)}},[n,a,r,i,l,u]),{onPointerDownCapture:eO(()=>s.current=!0,"onPointerDownCapture")}}function eM(e,t=globalThis?.document){let n=eP(e),r=o.useRef(!1);return o.useEffect(()=>{let e=eO(e=>{e.target&&!r.current&&eT("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eO(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eO(()=>r.current=!1,"onBlurCapture")}}function eD(){let e=new CustomEvent(ej);document.dispatchEvent(e)}function eT(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eC(o,i):o.dispatchEvent(i)}eO(eA,"usePointerDownOutside"),eO(eM,"useFocusOutside"),eO(eD,"dispatchUpdate"),eO(eT,"handleAndDispatchCustomEvent");var eL=Object.defineProperty,e_=(e,t)=>eL(e,"name",{value:t,configurable:!0}),eF=0,e$=null;function eW(){o.useEffect(()=>{e$||(e$={start:ez(),end:ez()});let{start:e,end:t}=e$;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),eF++,()=>{1===eF&&(e$?.start.remove(),e$?.end.remove(),e$=null),eF=Math.max(0,eF-1)}},[])}function ez(){let 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}e_(function(e){return eW(),e.children},"FocusGuards"),e_(eW,"useFocusGuards"),e_(ez,"createFocusGuard");var eV=Object.defineProperty,eU=(e,t)=>eV(e,"name",{value:t,configurable:!0}),eB="focusScope.autoFocusOnMount",eH="focusScope.autoFocusOnUnmount",eK={bubbles:!1,cancelable:!0},eq=o.forwardRef(eU(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[a,s]=o.useState(null),c=eP(i),d=eP(l),f=o.useRef(null),p=ee(t,s),h=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?f.current=t:e0(f.current,{select:!0})},t=function(e){if(h.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||e0(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&e0(a)};eU(e,"handleFocusIn"),eU(t,"handleFocusOut"),eU(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,h.paused]),o.useEffect(()=>{if(a){e1.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(eB,eK);a.addEventListener(eB,c),a.dispatchEvent(t),t.defaultPrevented||(eG(e4(eZ(a)),{select:!0}),document.activeElement===e&&e0(a))}return()=>{a.removeEventListener(eB,c),setTimeout(()=>{let t=new CustomEvent(eH,eK);a.addEventListener(eH,d),a.dispatchEvent(t),t.defaultPrevented||e0(e??document.body,{select:!0}),a.removeEventListener(eH,d),e1.remove(h)},0)}}},[a,c,d,h]);let v=o.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=eY(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&e0(i,{select:!0})):(e.preventDefault(),n&&e0(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(eE.div,{tabIndex:-1,...u,ref:p,onKeyDown:v})},"FocusScope"));function eG(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(e0(r,{select:t}),document.activeElement!==n)return}function eY(e){let t=eZ(e);return[eX(t,e),eX(t.reverse(),e)]}function eZ(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eU(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eX(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eJ(r,{upTo:t})))return r}function eJ(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eQ(e){return e instanceof HTMLInputElement&&"select"in e}function e0(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eQ(e)&&t&&e.select()}}eU(eG,"focusFirst"),eU(eY,"getTabbableEdges"),eU(eZ,"getTabbableCandidates"),eU(eX,"findVisible"),eU(eJ,"isHidden"),eU(eQ,"isSelectableInput"),eU(e0,"focus");var e1=e6();function e6(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=e2(e,t)).unshift(t)},remove(t){e=e2(e,t),e[0]?.resume()}}}function e2(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function e4(e){return e.filter(e=>"A"!==e.tagName)}eU(e6,"createFocusScopesStack"),eU(e2,"arrayRemove"),eU(e4,"removeLinks");var e5=globalThis?.document?o.useLayoutEffect:()=>{},e7=Object.defineProperty,e8=i[" useId ".trim().toString()]||(()=>void 0),e3=0;function e9(e){let[t,n]=o.useState(e8());return e5(()=>{e||n(e=>e??String(e3++))},[e]),e||(t?`radix-${t}`:"")}e7(e9,"name",{value:"useId",configurable:!0});var te=n(9683),tt=n(47226);function tn(e){let[t,n]=o.useState(void 0);return e5(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(tn,"name",{value:"useSize",configurable:!0});var tr=Object.defineProperty,to=(e,t)=>tr(e,"name",{value:t,configurable:!0}),ti="Popper",[tl,tu]=er(ti),[ta,ts]=tl(ti),tc=to(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,u]=o.useState(void 0);return(0,m.jsx)(ta,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:u,children:n})},"Popper"),td=o.forwardRef(to(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,l=ts("PopperAnchor",n),u=o.useRef(null),a=l.onAnchorChange,s=ee(t,o.useCallback(e=>{u.current=e,e&&a(e)},[a])),c=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&a(c.current)});let d=l.placementState&&tg(l.placementState),f=d?.[0],p=d?.[1];return r?null:(0,m.jsx)(eE.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:s})},"PopperAnchor")),tf="PopperContent",[tp,tm]=tl(tf),th=o.forwardRef(to(function(e,t){let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:v,...y}=e,g=ts(tf,n),[b,x]=o.useState(null),w=ee(t,x),[S,E]=o.useState(null),C=tn(S),P=C?.width??0,R=C?.height??0,O="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},j=Array.isArray(c)?c:[c],k=j.length>0,I={padding:O,boundary:j.filter(tv),altBoundary:k},{refs:N,floatingStyles:A,placement:M,isPositioned:D,middlewareData:T}=(0,te.we)({strategy:"fixed",placement:r+("center"!==l?"-"+l:""),whileElementsMounted:to((...e)=>(0,tt.ll)(...e,{animationFrame:"always"===h}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[(0,te.cY)({mainAxis:i+R,alignmentAxis:u}),s&&(0,te.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?(0,te.ER)():void 0,...I}),s&&(0,te.UU)({...I}),(0,te.Ej)({...I,apply:to(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),S&&(0,te.UE)({element:S,padding:a}),ty({arrowWidth:P,arrowHeight:R}),p&&(0,te.jD)({strategy:"referenceHidden",...I,boundary:k?I.boundary:void 0})]}),L=g.setPlacementState;e5(()=>(L(M),()=>{L(void 0)}),[M,L]);let[_,F]=tg(M),$=eP(v);e5(()=>{D&&$?.()},[D,$]);let W=T.arrow?.x,z=T.arrow?.y,V=T.arrow?.centerOffset!==0,[U,B]=o.useState();return e5(()=>{b&&B(window.getComputedStyle(b).zIndex)},[b]),(0,m.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(tp,{scope:n,placedSide:_,placedAlign:F,onArrowChange:E,arrowX:W,arrowY:z,shouldHideArrow:V,children:(0,m.jsx)(eE.div,{"data-side":_,"data-align":F,...y,ref:w,style:{...y.style,animation:D?y.style?.animation:"none"}})})})},"PopperContent"));function tv(e){return null!==e}to(tv,"isNotNull");var ty=to(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[a,s]=tg(n),c={start:"0%",center:"50%",end:"100%"}[s],d=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===a?(p=i?c:`${d}px`,m=`${-u}px`):"top"===a?(p=i?c:`${d}px`,m=`${r.floating.height+u}px`):"right"===a?(p=`${-u}px`,m=i?c:`${f}px`):"left"===a&&(p=`${r.floating.width+u}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function tg(e){let[t,n="center"]=e.split("-");return[t,n]}to(tg,"getSideAndAlignFromPlacement");var tb=Object.defineProperty,tx=o.forwardRef(tb(function(e,t){let{c
1ontainer:n,...r}=e,[i,u]=o.useState(!1);e5(()=>u(!0),[]);let a=n||i&&globalThis?.document?.body;return a?l.createPortal((0,m.jsx)(eE.div,{...r,ref:t}),a):null},"name",{value:"Portal",configurable:!0})),tw=Object.defineProperty,tS=(e,t)=>tw(e,"name",{value:t,configurable:!0});function tE(e,t){return o.useReducer((e,n)=>t[e][n]??e,e)}tS(tE,"useStateMachine");var tC=tS(e=>{let{present:t,children:n}=e,r=tP(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),l=tO(r.ref,tk(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:l}):null},"Presence");function tP(e){let[t,n]=o.useState(),r=o.useRef(null),i=o.useRef(e),l=o.useRef("none"),u=o.useRef(void 0),[a,s]=tE(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{"mounted"===a?(l.current=u.current??tj(r.current),u.current=void 0):l.current="none"},[a]),e5(()=>{let t=r.current,n=i.current;if(n!==e){let r=l.current,o=tj(t);e?(u.current=o,s("MOUNT")):"none"===o||t?.display==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),i.current=e}},[e,s]),e5(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=tS(o=>{let l=tj(r.current).includes(CSS.escape(o.animationName));if(o.target===t&&l&&(s("ANIMATION_END"),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),u=tS(e=>{e.target===t&&(l.current=tj(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:o.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,u.current=tj(t)}else r.current=null;n(e)},[])}}function tR(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tO(...e){let t=o.useRef(e);return t.current=e,o.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=tR(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():tR(n[e],null)}}},[])}function tj(e){return e?.animationName||"none"}function tk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}tS(tP,"usePresence"),tS(tR,"setRef"),tS(tO,"useStableComposedRefs"),tS(tj,"getAnimationName"),tS(tk,"getElementRef");var tI=Object.defineProperty,tN=i[" useEffectEvent ".trim().toString()],tA=i[" useInsertionEffect ".trim().toString()];function tM(e){if("function"==typeof tN)return tN(e);let t=o.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof tA?tA(()=>{t.current=e}):e5(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}tI(tM,"name",{value:"useEffectEvent",configurable:!0});var tD=Object.defineProperty,tT=(e,t)=>tD(e,"name",{value:t,configurable:!0}),tL=i[" useInsertionEffect ".trim().toString()]||e5;function t_({prop:e,defaultProp:t,onChange:n=tT(()=>{},"onChange"),caller:r}){let[i,l,u]=tF({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i;return[s,o.useCallback(t=>{if(a){let n=t$(t)?t(e):t;n!==e&&u.current?.(n)}else l(t)},[a,e,l,u])]}function tF({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),l=o.useRef(t);return tL(()=>{l.current=t},[t]),o.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}function t$(e){return"function"==typeof e}tT(t_,"useControllableState"),tT(tF,"useUncontrolledState"),tT(t$,"isFunction");var tW=Symbol("RADIX:SYNC_STATE");function tz(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}tT(function(e,t,n,r){let{prop:i,defaultProp:l,onChange:u,caller:a}=t,s=void 0!==i,c=tM(u),d=[{...n,state:l}];r&&d.push(r);let[f,p]=o.useReducer((t,n)=>{if(n.type===tW)return{...t,state:n.state};let r=e(t,n);
1return s&&!Object.is(r.state,t.state)&&c(r.state),r},...d),m=f.state,h=o.useRef(m);o.useEffect(()=>{h.current!==m&&(h.current=m,s||c(m))},[m,h,s]);let v=o.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return o.useEffect(()=>{s&&!Object.is(i,f.state)&&p({type:tW,state:i})},[i,f.state,s]),[v,p]},"useControllableStateReducer"),(0,Object.defineProperty)(tz,"name",{value:"usePrevious",configurable:!0});var tV=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"}),tU=n(22954),tB=n(5174),tH=Object.defineProperty,tK=(e,t)=>tH(e,"name",{value:t,configurable:!0}),tq=[" ","Enter","ArrowUp","ArrowDown"],tG=[" ","Enter"],tY="Select",[tZ,tX,tJ]=W(tY),[tQ,t0]=er(tY,[tJ,tu]),t1=tu(),[t6,t2]=tQ(tY),[t4,t5]=tQ(tY);function t7(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:u,defaultValue:a,onValueChange:s,dir:c,name:d,autoComplete:f,disabled:p,required:h,form:v,internal_do_not_use_render:y}=e,g=t1(t),[b,x]=o.useState(null),[w,S]=o.useState(null),[E,C]=o.useState(!1),P=eu(c),[R,O]=t_({prop:r,defaultProp:i??!1,onChange:l,caller:tY}),[j,k]=t_({prop:u,defaultProp:a,onChange:s,caller:tY}),I=o.useRef(null),N=o.useRef(j);o.useEffect(()=>{let e=v?b?.ownerDocument.getElementById(v):b?.form;if(e instanceof HTMLFormElement){let t=tK(()=>k(N.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,b,k]);let A=!b||!!v||!!b.closest("form"),[M,D]=o.useState(new Set),T=e9(),L=Array.from(M).map(e=>e.props.value).join(";"),_=o.useCallback(e=>{D(t=>new Set(t).add(e))},[]),F=o.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),$={required:h,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:T,value:j,onValueChange:k,open:R,onOpenChange:O,dir:P,triggerPointerDownPosRef:I,disabled:p,name:d,autoComplete:f,form:v,nativeOptions:M,nativeSelectKey:L,isFormControl:A};return(0,m.jsx)(tc,{...g,children:(0,m.jsx)(t6,{scope:t,...$,children:(0,m.jsx)(tZ.Provider,{scope:t,children:(0,m.jsx)(t4,{scope:t,onNativeOptionAdd:_,onNativeOptionRemove:F,children:nj(y)?y($):n})})})})}tK(t7,"SelectProvider");var t8=tK(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,m.jsx)(t7,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[n,e?(0,m.jsx)(nO,{__scopeSelect:t}):null]})})},"Select"),t3=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,l=t1(n),u=t2("SelectTrigger",n),a=u.disabled||r,s=ee(t,u.onTriggerChange),c=tX(n),f=o.useRef("touch"),[p,h,v]=nI(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=nN(t,e,n);void 0!==r&&u.onValueChange(r.value)}),y=tK(e=>{a||(u.onOpenChange(!0),v()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,m.jsx)(td,{asChild:!0,...l,children:(0,m.jsx)(eE.button,{type:"button",role:"combobox","aria-controls":u.open?u.contentId:void 0,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":nk(u.value)?"":void 0,...i,ref:s,onClick:d(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:d(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:d(i.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&tq.includes(e.key)&&(y(),e.preventDefault())})})})},"SelectTrigger")),t9=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,className:r,style:i,children:l,placeholder:u="",...a}=e,s=t2("SelectValue",n),{onValueNodeHasChildrenChange:c}=s,d=void 0!==l,f=ee(t,s.onValueNodeChange);e5(()=>{c(d)},[c,d]);let p=nk(s.value);return(0,m.jsx)(eE.span,{...a,asChild:!p&&a.asChild,ref:f,style:{pointerEvents:"none"},children:(0,m.jsx)(o.Fragment,{children:p?u:l},p?"placeholder":"value")})},"SelectValue")),ne=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,children:r,...o}=e;return(0,m.jsx)(eE.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})},"SelectIcon")),[nt,nn]=tQ("SelectPortal",{forceMount:void 0}),nr=tK(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,m.jsx)(nt,{scope:e.__scopeSelect,forceMount:n,children:(0,m.jsx)(tx,{asChild:!0,...r})})},"SelectPortal"),no="SelectContent",ni=o.forwardRef(tK(function(e,t){let n=nn(no,e.__scopeSelect),{forceMount:r=n.forceMount,...i}
1=e,l=t2(no,e.__scopeSelect),[u,a]=o.useState();return e5(()=>{a(new DocumentFragment)},[]),(0,m.jsx)(tC,{present:r||l.open,children:({present:e})=>e?(0,m.jsx)(nc,{...i,ref:t}):(0,m.jsx)(nl,{...i,fragment:u})})},"SelectContent")),nl=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,children:r,fragment:o}=e;return o?l.createPortal((0,m.jsx)(nu,{scope:n,children:(0,m.jsx)(tZ.Slot,{scope:n,children:(0,m.jsx)("div",{ref:t,children:r})})}),o):null},"SelectContentFragment")),[nu,na]=tQ(no),ns=ec("SelectContent.RemoveScroll"),nc=o.forwardRef(tK(function(e,t){let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:a,sideOffset:s,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:v,sticky:y,hideWhenDetached:g,avoidCollisions:b,...x}=e,w=t2(no,n),[S,E]=o.useState(null),[C,P]=o.useState(null),R=ee(t,E),[O,j]=o.useState(null),[k,I]=o.useState(null),N=tX(n),[A,M]=o.useState(!1),D=o.useRef(!1);o.useEffect(()=>{if(S)return(0,tU.Eq)(S)},[S]),eW();let T=o.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==o))return},[N,C]),L=o.useCallback(()=>T([O,S]),[T,O,S]);o.useEffect(()=>{A&&L()},[A,L]);let{onOpenChange:_,triggerPointerDownPosRef:F}=w;o.useEffect(()=>{if(S){let e={x:0,y:0},t=tK(t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},"handlePointerMove"),n=tK(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(S)||_(!1),document.removeEventListener("pointermove",t),F.current=null},"handlePointerUp");return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,_,F]),o.useEffect(()=>{let e=tK(()=>_(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[_]);let[$,W]=nI(e=>{let t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=nN(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),z=o.useCallback((e,t,n)=>{let r=!D.current&&!n;(void 0!==w.value&&w.value===t||r)&&(j(e),r&&(D.current=!0))},[w.value]),V=o.useCallback(()=>S?.focus(),[S]),U=o.useCallback((e,t,n)=>{let r=!D.current&&!n;(void 0!==w.value&&w.value===t||r)&&I(e)},[w.value]),B="popper"===r?nf:nd;return(0,m.jsx)(nu,{scope:n,content:S,viewport:C,onViewportChange:P,itemRefCallback:z,selectedItem:O,onItemLeave:V,itemTextRefCallback:U,focusSelectedItem:L,selectedItemText:k,position:r,isPositioned:A,searchRef:$,children:(0,m.jsx)(tB.A,{as:ns,allowPinchZoom:!0,children:(0,m.jsx)(eq,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:d(i,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(eI,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,m.jsx)(B,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...x,...B===nf?{side:a,sideOffset:s,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:v,sticky:y,hideWhenDetached:g,avoidCollisions:b}:{},onPlaced:()=>M(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:d(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||W(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>T(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),nd=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,l=t2(no,n),a=na(no,n),[s,c]=o.useState(null),[d,f]=o.useState(null),p=ee(t,f),h=tX(n),v=o.useRef(!1),y=o.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:x,focusSelectedItem:w}=a,S=o.useCallback(()=>
1{if(l.trigger&&l.valueNode&&s&&d&&g&&b&&x){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.right=d+"px"}let i=h(),a=window.innerHeight-20,c=g.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),m=parseInt(f.paddingTop,10),y=parseInt(f.borderBottomWidth,10),w=p+m+c+parseInt(f.paddingBottom,10)+y,S=Math.min(5*b.offsetHeight,w),E=window.getComputedStyle(g),C=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),R=e.top+e.height/2-10,O=b.offsetHeight/2,j=p+m+(b.offsetTop+O);if(j<=R){let e=i.length>0&&b===i[i.length-1].ref.current;s.style.bottom="0px";let t=Math.max(a-R,O+(e?P:0)+(d.clientHeight-g.offsetTop-g.offsetHeight)+y);s.style.height=j+t+"px"}else{let e=i.length>0&&b===i[0].ref.current;s.style.top="0px";let t=Math.max(R,p+g.offsetTop+(e?C:0)+O);s.style.height=t+(w-j)+"px",g.scrollTop=j-R+g.offsetTop}s.style.margin="10px 0",s.style.minHeight=S+"px",s.style.maxHeight=a+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[h,l.trigger,l.valueNode,s,d,g,b,x,l.dir,r]);e5(()=>S(),[S]);let[E,C]=o.useState();e5(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);let P=o.useCallback(e=>{e&&!0===y.current&&(S(),w?.(),y.current=!1)},[S,w]);return(0,m.jsx)(np,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:(0,m.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,m.jsx)(eE.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),nf=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=t1(n);return(0,m.jsx)(th,{...l,...i,ref:t,align:r,collisionPadding:o,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)"}})},"SelectPopperPosition")),[np,nm]=tQ(no,{}),nh="SelectViewport",nv=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,l=na(nh,n),u=nm(nh,n),a=ee(t,l.onViewportChange),s=o.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,m.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:r}),(0,m.jsx)(tZ.Slot,{scope:n,children:(0,m.jsx)(eE.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:d(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(r?.current&&n){let e=Math.abs(s.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),u=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop})})})]})},"SelectViewport")),[ny,ng]=tQ("SelectGroup"),nb=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,...r}=e,o=e9();return(0,m.jsx)(ny,{scope:n,id:o,children:(0,m.jsx)(eE.div,{role:"group","aria-labelledby":o,...r,ref:t})})},"SelectGroup")),nx="SelectItem",[nw,nS]=tQ(nx),nE=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...u}=e,a=t2(nx,n),s=na(nx,n),c=a.value===r,[f,p]=o.useState(l??""),[h,v]=o.useState(!1),y=ee(t,eP(e=>s.itemRefCallback?.(e,r,i))),g=e9(),b=o.useRef("touch"),x=tK(()=>{i||(a.onValueChange(r),a.onOpenChange(!1))},"handleSelect");return(0,m.jsx)(nw,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:o.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,m.jsx)(tZ.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,m.jsx)(eE.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:y,onFocus:d(u.onFocus,()=>v(!0)),onBlur:d(u.onBlur,()=>v(!1)),onClick:d(u.onClick,()=>{"mouse"!==b.current&&x()}),onPointerUp:d(u.onPointerUp,()=>{"mouse"===b.current&&x()}),onPointerDown:d(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:d(u.onPointerMove,e=>{b.current=e.pointerType,i?s.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focu
1s({preventScroll:!0})}),onPointerLeave:d(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&s.onItemLeave?.()}),onKeyDown:d(u.onKeyDown,e=>{i||e.target!==e.currentTarget||(s.searchRef?.current===""||" "!==e.key)&&(tG.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),nC="SelectItemText",nP=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,className:r,style:i,...u}=e,a=t2(nC,n),s=na(nC,n),c=nS(nC,n),d=t5(nC,n),[f,p]=o.useState(null),h=eP(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),v=ee(t,p,c.onItemTextChange,h),y=f?.textContent,g=o.useMemo(()=>(0,m.jsx)("option",{value:c.value,disabled:c.disabled,children:y},c.value),[c.disabled,c.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=d;return e5(()=>(b(g),()=>x(g)),[b,x,g]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eE.span,{id:c.textId,...u,ref:v}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren&&!nk(a.value)?l.createPortal(u.children,a.valueNode):null]})},"SelectItemText")),nR=o.forwardRef(tK(function(e,t){let{__scopeSelect:n,...r}=e;return nS("SelectItemIndicator",n).isSelected?(0,m.jsx)(eE.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),nO=o.forwardRef(tK(function({__scopeSelect:e,...t},n){let r=t2("SelectBubbleInput",e),{value:i,onValueChange:l,required:u,disabled:a,name:s,autoComplete:c,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,h=o.useRef(null),v=ee(n,h),y=i??"",g=tz(y),b=Array.from(f).some(e=>(e.props.value??"")==="");return o.useEffect(()=>{let e=h.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(g!==y&&t){let n=new Event("change",{bubbles:!0});t.call(e,y),e.dispatchEvent(n)}},[g,y]),(0,m.jsxs)(eE.select,{"aria-hidden":!0,required:u,tabIndex:-1,name:s,autoComplete:c,disabled:a,form:d,onChange:e=>l(e.target.value),...t,style:{...tV,...t.style},ref:v,defaultValue:y,children:[nk(i)&&!b?(0,m.jsx)("option",{value:""}):null,Array.from(f)]},p)},"SelectBubbleInput"));function nj(e){return"function"==typeof e}function nk(e){return""===e||void 0===e}function nI(e){let t=eP(e),n=o.useRef(""),r=o.useRef(0),i=o.useCallback(e=>{t(n.current+e)},[t]),l=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function nN(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=nA(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function nA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}tK(nj,"isFunction"),tK(nk,"shouldShowPlaceholder"),tK(nI,"useTypeaheadSearch"),tK(nN,"findNextItem"),tK(nA,"wrapArray")},41641:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},66088:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},94514:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.