1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1691],{13879:function(e,t,r){r.d(t,{B:function(){return createCollection}});var l=r(67294),n=r(25360),o=r(28771),i=r(85893);function createSlot(e){let t=createSlotClone(e),r=l.forwardRef((e,r)=>{let{children:n,...o}=e,c=l.Children.toArray(n),a=c.find(isSlottable);if(a){let e=a.props.children,n=c.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function createSlotClone(e){let t=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(l.isValidElement(r)){let e=getElementRef(r),i=mergeProps(n,r.props);return r.type!==l.Fragment&&(i.ref=t?(0,o.F)(t,e):e),l.cloneElement(r,i)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c=Symbol("radix.slottable");function isSlottable(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}function mergeProps(e,t){let r={...t};for(let l in t){let n=e[l],o=t[l],i=/^on[A-Z]/.test(l);i?n&&o?r[l]=(...e)=>{let t=o(...e);return n(...e),t}:n&&(r[l]=n):"style"===l?r[l]={...n,...o}:"className"===l&&(r[l]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function createCollection(e){let t=e+"CollectionProvider",[r,c]=(0,n.b)(t),[a,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=e=>{let{scope:t,children:r}=e,n=l.useRef(null),o=l.useRef(new Map).current;return(0,i.jsx)(a,{scope:t,itemMap:o,collectionRef:n,children:r})};CollectionProvider.displayName=t;let f=e+"CollectionSlot",s=createSlot(f),d=l.forwardRef((e,t)=>{let{scope:r,children:l}=e,n=u(f,r),c=(0,o.e)(t,n.collectionRef);return(0,i.jsx)(s,{ref:c,children:l})});d.displayName=f;let p=e+"CollectionItemSlot",m="data-radix-collection-item",C=createSlot(p),y=l.forwardRef((e,t)=>{let{scope:r,children:n,...c}=e,a=l.useRef(null),f=(0,o.e)(t,a),s=u(p,r);return l.useEffect(()=>(s.itemMap.set(a,{ref:a,...c}),()=>void s.itemMap.delete(a))),(0,i.jsx)(C,{[m]:"",ref:f,children:n})});return y.displayName=p,[{Provider:CollectionProvider,Slot:d,ItemSlot:y},function(t){let r=u(e+"CollectionConsumer",t),n=l.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),l=Array.from(r.itemMap.values()),n=l.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return n},[r.collectionRef,r.itemMap]);return n},c]}},78990:function(e,t,r){r.d(t,{gm:function(){return useDirection}});var l=r(67294);r(85893);var n=l.createContext(void 0);function useDirection(e){let t=l.useContext(n);return e||t||"ltr"}}}]);
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.