"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7838],{11275:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(12115),l=r(52712);function o(e){let[t,r]=n.useState(void 0);return(0,l.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,l;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,l=t.blockSize}else n=e.offsetWidth,l=e.offsetHeight;r({width:n,height:l})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},37328:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function l(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function o(e,t,r){var l=n(e,t,"set");if(l.set)l.set.call(e,r);else{if(!l.writable)throw TypeError("attempted to set read only private field");l.value=r}return r}r.d(t,{N:()=>d});var i,a=r(12115),u=r(46081),f=r(6101),c=r(99708),s=r(95155);function d(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[l,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:r}=e,n=a.useRef(null),o=a.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:o,collectionRef:n,children:r})};i.displayName=t;let d=e+"CollectionSlot",p=(0,c.TL)(d),v=a.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=o(d,r),i=(0,f.s)(t,l.collectionRef);return(0,s.jsx)(p,{ref:i,children:n})});v.displayName=d;let y=e+"CollectionItemSlot",h="data-radix-collection-item",m=(0,c.TL)(y),b=a.forwardRef((e,t)=>{let{scope:r,children:n,...l}=e,i=a.useRef(null),u=(0,f.s)(t,i),c=o(y,r);return a.useEffect(()=>(c.itemMap.set(i,{ref:i,...l}),()=>void c.itemMap.delete(i))),(0,s.jsx)(m,{...{[h]:""},ref:u,children:n})});return b.displayName=y,[{Provider:i,Slot:v,ItemSlot:b},function(t){let r=o(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var p=new WeakMap;function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=y(t),l=n>=0?n:r+n;return l<0||l>=r?-1:l}(e,t);return -1===r?void 0:e[r]}function y(e){return e!=e||0===e?0:Math.trunc(e)}i=new WeakMap},94315:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(12115);r(95155);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}}}]);