1var W=s=>{throw TypeError(s)};var H=(s,r,e)=>r.has(s)||W("Cannot "+e);var m=(s,r,e)=>(H(s,r,"read from private field"),e?e.call(s):r.get(s)),J=(s,r,e)=>r.has(s)?W("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),q=(s,r,e,t)=>(H(s,r,"write to private field"),t?t.call(s,e):r.set(s,e),e);import{c as ne,r as a,al as T,j as P,am as b}from"./index-BCGrvFuq.js";import{b as X}from"./index-CrZSH2-t.js";const oe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pe=ne("check",oe);var se=Object.defineProperty,d=(s,r)=>se(s,"name",{value:r,configurable:!0});function re(s){const r=s+"CollectionProvider",[e,t]=X(r),[o,n]=e(r,{collectionRef:{current:null},itemMap:new Map}),i=d(h=>{const{scope:p,children:E}=h,g=a.useRef(null),c=a.useRef(new Map).current;return P.jsx(o,{scope:p,itemMap:c,collectionRef:g,children:E})},"CollectionProvider");i.displayName=r;const l=s+"CollectionSlot",x=b(l),R=a.forwardRef((h,p)=>{const{scope:E,children:g}=h,c=n(l,E),u=T(p,c.collectionRef);return P.jsx(x,{ref:u,children:g})});R.displayName=l;const D=s+"CollectionItemSlot",v="data-radix-collection-item",A=b(D),N=a.forwardRef((h,p)=>{const{scope:E,children:g,...c}=h,u=a.useRef(null),w=T(p,u),O=n(D,E);return a.useEffect(()=>(O.itemMap.set(u,{ref:u,...c}),()=>{O.itemMap.delete(u)})),P.jsx(A,{[v]:"",ref:w,children:g})});N.displayName=D;function C(h){const p=n(s+"CollectionConsumer",h);return a.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const c=Array.from(g.querySelectorAll(`[${v}]`));return Array.from(p.itemMap.values()).sort((O,S)=>c.indexOf(O.ref.current)-c.indexOf(S.ref.current))},[p.collectionRef,p.itemMap])}return d(C,"useCollection"),[{Provider:i,Slot:R,ItemSlot:N},C,t]}d(re,"createCollection");var Q=new WeakMap,f,y,$=(y=class extends Map{constructor(e){super(e);J(this,f);q(this,f,[...super.keys()]),Q.set(this,!0)}set(e,t){return Q.get(this)&&(this.has(e)?m(this,f)[m(this,f).indexOf(e)]=e:m(this,f).push(e)),super.set(e,t),this}insert(e,t,o){const n=this.has(t),i=m(this,f).length,l=F(e);let x=l>=0?l:i+l;const R=x<0||x>=i?-1:x;if(R===this.size||n&&R===this.size-1||R===-1)return this.set(t,o),this;const D=this.size+(n?0:1);l<0&&x++;const v=[...m(this,f)];let A,N=!1;for(let C=x;C<D;C++)if(x===C){let h=v[C];v[C]===t&&(h=v[C+1]),n&&this.delete(t),A=this.get(h),this.set(t,o)}else{!N&&v[C-1]===t&&(N=!0);const h=v[N?C:C-1],p=A;A=this.get(h),this.delete(h),this.set(h,p)}return this}with(e,t,o){const n=new y(this);return n.insert(e,t,o),n}before(e){const t=m(this,f).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,o){const n=m(this,f).indexOf(e);return n===-1?this:this.insert(n,t,o)}after(e){let t=m(this,f).indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,o){const n=m(this,f).indexOf(e);return n===-1?this:this.insert(n+1,t,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return q(this,f,[]),super.clear()}delete(e){const t=super.delete(e);return t&&m(this,f).splice(m(this,f).indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return t!==void 0?this.delete(t):!1}at(e){const t=k(m(this,f),e);if(t!==void 0)return this.get(t)}entryAt(e){const t=k(m(this,f),e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return m(this,f).indexOf(e)}keyAt(e){return k(m(this,f),e)}from(e,t){const o=this.indexOf(e);if(o===-1)return;let n=o+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const o=this.indexOf(e);if(o===-1)return;let n=o+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let o=0;for(const n of this){if(Reflect.apply(e,t,[n,o,this]))return n;o++}}findIndex(e,t){let o=0;for(const n of this){if(Reflect.apply(e,t,[n,o,this]))return o;o++}return-1}filter(e,t){const o=[];let n=0;for(const i of this)Reflect.apply(e,t,[i,n,this])&&o.push(i),n++;return new y(o)}map(e,t){const o=[];let n=0;for(const i of this)o.push([i[0],Reflect.apply(e,t,[i,n,this])]),n++;return new y(o)}reduce(...e){const[t,o]=e;let n=0,i=o??this.at(0);for(const l of this)n===0&&e.length===1?i=l:i=Reflect.apply(t,this,[i,l,n,this]),n++;return i}
1reduceRight(...e){const[t,o]=e;let n=o??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&e.length===1?n=l:n=Reflect.apply(t,this,[n,l,i,this])}return n}toSorted(e){const t=[...this.entries()].sort(e);return new y(t)}toReversed(){const e=new y;for(let t=this.size-1;t>=0;t--){const o=this.keyAt(t),n=this.get(o);e.set(o,n)}return e}toSpliced(...e){const t=[...this.entries()];return t.splice(...e),new y(t)}slice(e,t){const o=new y;let n=this.size-1;if(e===void 0)return o;e<0&&(e=e+this.size),t!==void 0&&t>0&&(n=t-1);for(let i=e;i<=n;i++){const l=this.keyAt(i),x=this.get(l);o.set(l,x)}return o}every(e,t){let o=0;for(const n of this){if(!Reflect.apply(e,t,[n,o,this]))return!1;o++}return!0}some(e,t){let o=0;for(const n of this){if(Reflect.apply(e,t,[n,o,this]))return!0;o++}return!1}},f=new WeakMap,d(y,"OrderedDict"),y);function k(s,r){if("at"in Array.prototype)return Array.prototype.at.call(s,r);const e=Y(s,r);return e===-1?void 0:s[e]}d(k,"at");function Y(s,r){const e=s.length,t=F(r),o=t>=0?t:e+t;return o<0||o>=e?-1:o}d(Y,"toSafeIndex");function F(s){return s!==s||s===0?0:Math.trunc(s)}d(F,"toSafeInteger");function ie(s){const r=s+"CollectionProvider",[e,t]=X(r),[o,n]=e(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new $,setItemMap:d(()=>{},"setItemMap")}),i=d(({state:c,...u})=>c?P.jsx(x,{...u,state:c}):P.jsx(l,{...u}),"CollectionProvider");i.displayName=r;const l=d(c=>{const u=p();return P.jsx(x,{...c,state:u})},"CollectionInit");l.displayName=r+"Init";const x=d(c=>{const{scope:u,children:w,state:O}=c,S=a.useRef(null),[j,I]=a.useState(null),z=T(S,I),[L,V]=O;return a.useEffect(()=>{if(!j)return;const _=te(()=>{});return _.observe(j,{childList:!0,subtree:!0}),()=>{_.disconnect()}},[j]),P.jsx(o,{scope:u,itemMap:L,setItemMap:V,collectionRef:z,collectionRefObject:S,collectionElement:j,children:w})},"CollectionProviderImpl");x.displayName=r+"Impl";const R=s+"CollectionSlot",D=b(R),v=a.forwardRef((c,u)=>{const{scope:w,children:O}=c,S=n(R,w),j=T(u,S.collectionRef);return P.jsx(D,{ref:j,children:O})});v.displayName=R;const A=s+"CollectionItemSlot",N="data-radix-collection-item",C=b(A),h=a.forwardRef((c,u)=>{const{scope:w,children:O,...S}=c,j=a.useRef(null),[I,z]=a.useState(null),L=T(u,j,z),V=n(A,w),{setItemMap:_}=V,B=a.useRef(S);Z(B.current,S)||(B.current=S);const G=B.current;return a.useEffect(()=>{const U=G;return _(M=>I?M.has(I)?M.set(I,{...U,element:I}).toSorted(K):(M.set(I,{...U,element:I}),M.toSorted(K)):M),()=>{_(M=>!I||!M.has(I)?M:(M.delete(I),new $(M)))}},[I,G,_]),P.jsx(C,{[N]:"",ref:L,children:O})});h.displayName=A;function p(){return a.useState(new $)}d(p,"useInitCollection");function E(c){const{itemMap:u}=n(s+"CollectionConsumer",c);return u}return d(E,"useCollection"),[{Provider:i,Slot:v,ItemSlot:h},{createCollectionScope:t,useCollection:E,useInitCollection:p}]}d(ie,"createCollection");function Z(s,r){if(s===r)return!0;if(typeof s!="object"||typeof r!="object"||s==null||r==null)return!1;const e=Object.keys(s),t=Object.keys(r);if(e.length!==t.length)return!1;for(const o of e)if(!Object.prototype.hasOwnProperty.call(r,o)||s[o]!==r[o])return!1;return!0}d(Z,"shallowEqual");function ee(s,r){return!!(r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING)}d(ee,"isElementPreceding");function K(s,r){return!s[1].element||!r[1].element?0:ee(s[1].element,r[1].element)?-1:1}d(K,"sortByDocumentPosition");function te(s){return new MutationObserver(e=>{for(const t of e)if(t.type==="childList"){s();return}})}d(te,"getChildListObserver");var ce=Object.defineProperty,le=(s,r)=>ce(s,"name",{value:r,configurable:!0}),ue=a.createContext(void 0);function fe(s){const r=a.useContext(ue);return s||r||"ltr"}le(fe,"useDirection");export{pe as C,re as c,fe as u};
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.