1import{Q as e,X as t}from"./components-Bj6TbfKk.js";import{t as n}from"./jsx-runtime-ktxtcE--.js";import{c as r,f as i,u as a}from"./card-CrDSJ1J_.js";import{f as o,g as s,h as c,l,p as u,t as d,u as f}from"./dist-DjhHHdiB.js";var p=e(t(),1),m=new Map([[`bold`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),p.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,p.createElement(p.Fragment,null,p.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),h=p.forwardRef((e,t)=>p.createElement(r,{ref:t,...e,weights:m}));h.displayName=`CheckIcon`;var g=n(),_=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0});function y(e){let t=e+`CollectionProvider`,[n,r]=c(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=v(e=>{let{scope:t,children:n}=e,r=p.useRef(null),i=p.useRef(new Map).current;return(0,g.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);l.displayName=t;let u=e+`CollectionSlot`,d=a(u),f=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=s(u,n),o=i(t,a.collectionRef);return(0,g.jsx)(d,{ref:o,children:r})});f.displayName=u;let m=e+`CollectionItemSlot`,h=`data-radix-collection-item`,_=a(m),y=p.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=p.useRef(null),c=i(t,o),l=s(m,n);return p.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,g.jsx)(_,{[h]:``,ref:c,children:r})});y.displayName=m;function b(t){let n=s(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return v(b,`useCollection`),[{Provider:l,Slot:f,ItemSlot:y},b,r]}v(y,`createCollection`);var b=new WeakMap,x=class e extends Map{static{v(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],b.set(this,!0)}set(e,t){return b.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=this.has(t),i=this.#e.length,a=w(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}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 r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?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 t!==void 0&&this.delete(t)}at(e){let t=S(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=S(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return S(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)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(n===-1)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=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}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,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;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 S(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=C(e,t);return n===-1?void 0:e[n]}v(S,`at`);function C(e,t){let n=e.length,r=w(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}v(C,`toSafeIndex`);function w(e){return e!==e||e===0?0:Math.trunc(e)}v(w,`toSafeInteger`);function T(e){let t=e+`CollectionProvider`,[n,r]=c(t),[o,s]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new x,setItemMap:v(()=>void 0,`setItemMap`)}),l=v(({state:e,...t})=>e?(0,g.jsx)(d,{...t,state:e}):(0,g.jsx)(u,{...t}),`CollectionProvider`);l.displayName=t;let u=v(e=>{let t=S();return(0,g.jsx)(d,{...e,state:t})},`CollectionInit`);u.displayName=t+`Init`;let d=v(e=>{let{scope:t,children:n,state:r}=e,a=p.useRef(null),[s,c]=p.useState(null),l=i(a,c),[u,d]=r;return p.useEffect(()=>{if(!s)return;let e=k(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,g.jsx)(o,{scope:t,itemMap:u,setItemMap:d,collectionRef:l,collectionRefObject:a,collectionElement:s,children:n})},`CollectionProviderImpl`);d.displayName=t+`Impl`;let f=e+`CollectionSlot`,m=a(f),h=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=s(f,n),o=i(t,a.collectionRef);return(0,g.jsx)(m,{ref:o,children:r})});h.displayName=f;let _=e+`CollectionItemSlot`,y=a(_),b=p.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=p.useRef(null),[c,l]=p.useState(null),u=i(t,o,l),{setItemMap:d}=s(_,n),f=p.useRef(a);E(f.current,a)||(f.current=a);let m=f.current;return p.useEffect(()=>{let e=m;return d(t=>c?t.has(c)?t.set(c,{...e,element:c}).toSorted(O):(t.set(c,{...e,element:c}),t.toSorted(O)):t),()=>{d(e=>!c||!e.has(c)?e:(e.delete(c),new x(e)))}},[c,m,d]),(0,g.jsx)(y,{"data-radix-collection-item":``,ref:u,children:r})});b.displayName=_;function S(){return p.useState(new x)}v(S,`useInitCollection`);function C(t){let{itemMap:n}=s(e+`CollectionConsumer`,t);return n}return v(C,`useCollection`),[{Provider:l,Slot:h,ItemSlot:b},{createCollectionScope:r,useCollection:C,useInitCollection:S}]}v(T,`createCollection`);function E(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)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}v(E,`shallowEqual`);function D(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}v(D,`isElementPreceding`);function O(e,t){return!e[1].element||!t[1].element?0:D(e[1].element,t[1].element)?-1:1}v(O,`sortByDocumentPosition`);function k(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}v(k,`getChildListObserver`);var A=Object.defineProperty,j=(e,t)=>A(e,`name`,{value:t,configurable:!0}),M=p.createContext(void 0);function N(e){let t=p.useContext(M);return e||t||`ltr`}j(N,`useDirection`);var ee=Object.defineProperty,P=(e,t)=>ee(e,`name`,{value:t,configurable:!0}),F=!1;function I(){let[e,t]=p.useState(F);return p.useEffect(()=>{F||(F=!0,t(!0))},[]),e}P(I,`useIsHydrated`);var L=p.useSyncExternalStore;function R(){return()=>{}}P(R,`subscribe`);function z(){return L(R,()=>!0,()=>!1)}P(z,`useIsHydratedModern`);var B=typeof L==`function`?z:I,V=Object.defineProperty,H=(e,t)=>V(e,`name`,{value:t,configurable:!0}),U=`rovingFocusGroup.onEntryFocus`,W={bubbles:!1,cancelable:!0},G=`RovingFocusGroup`,[K,q,J]=y(G),[Y,te]=c(G,[J]),[ne,re]=Y(G),ie=p.forwardRef(H(function(e,t){return(0,g.jsx)(K.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(K.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(ae,{...e,ref:t})})})},`RovingFocusGroup`)),ae=p.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:c,currentTabStopId:l,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:_=!1,...v}=e,y=p.useRef(null),b=i(t,y),x=N(c),[S,C]=d({prop:l,defaultProp:f??null,onChange:m,caller:G}),[w,T]=p.useState(!1),E=o(h),D=q(n),O=p.useRef(!1),[k,A]=p.useState(0);return p.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(U,E),()=>e.removeEventListener(U,E)},[E]),(0,g.jsx)(ne,{scope:n,orientation:r,dir:x,loop:a,currentTabStopId:S,onItemFocus:p.useCallback(e=>C(e),[C]),onItemShiftTab:p.useCallback(()=>T(!0),[]),onFocusableItemAdd:p.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>A(e=>e-1),[]),children:(0,g.jsx)(u.div,{tabIndex:w||k===0?-1:0,"data-orientation":r,...v,ref:b,style:{outline:`none`,...e.style},onMouseDown:s(e.onMouseDown,()=>{O.current=!0}),onFocus:s(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!w){let t=new CustomEvent(U,W);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>
1e.focusable);Q([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),_)}}O.current=!1}),onBlur:s(e.onBlur,()=>T(!1))})})},`RovingFocusGroupImpl`)),oe=`RovingFocusGroupItem`,se=p.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...c}=e,d=l(),m=a||d,h=re(oe,n),_=h.currentTabStopId===m,v=q(n),{onFocusableItemAdd:y,onFocusableItemRemove:b,currentTabStopId:x}=h,S=B();return f(()=>{if(S&&r)return y(),()=>b()},[S,r,y,b]),p.useEffect(()=>{if(!S&&r)return y(),()=>b()},[S,r,y,b]),(0,g.jsx)(K.ItemSlot,{scope:n,id:m,focusable:r,active:i,children:(0,g.jsx)(u.span,{tabIndex:_?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:s(e.onMouseDown,e=>{r?h.onItemFocus(m):e.preventDefault()}),onFocus:s(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:s(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Z(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?$(n,r+1):n.slice(r+1)}setTimeout(()=>Q(n))}}),children:typeof o==`function`?o({isCurrentTabStop:_,hasTabStop:x!=null}):o})})},`RovingFocusGroupItem`)),ce={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function X(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}H(X,`getDirectionAwareKey`);function Z(e,t,n){let r=X(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return ce[r]}H(Z,`getFocusIntent`);function Q(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}H(Q,`focusFirst`);function $(e,t){return e.map((n,r)=>e[(t+r)%e.length])}H($,`wrapArray`);var le=ie,ue=se;export{y as a,N as i,le as n,h as o,te as r,ue as t};
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.