PageSourceSearch

https://www.thebbc.shop/_next/static/chunks/525-c0c76eeacd68ed85.js

js thebbc.shop collected 2026-10-04 23:44:35 UTC 77,261 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[525],{154:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(157).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},157:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(2115);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:c="",children:s,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:u?24*Number(a)/Number(o):a,className:i("lucide",c),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...c}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e)),u),...c})});return n.displayName="".concat(e),n}},518:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(157).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},2712:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(2115),o=globalThis?.document?r.useLayoutEffect:()=>{}},3158:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(157).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},4228:(e,t,n)=>{n.d(t,{H_:()=>r_,UC:()=>rk,YJ:()=>rD,q7:()=>rF,VF:()=>rK,JU:()=>rI,ZL:()=>rj,z6:()=>rW,hN:()=>rB,bL:()=>rO,wv:()=>rG,Pb:()=>rH,G5:()=>rU,ZP:()=>rV,l9:()=>rL});var r,o,i=n(2115),l=n.t(i,2),a=n(5185),u=n(6101),c=n(6081),s=n(5845),d=n(3540),f=n(6589),p=n(5155),m=i.createContext(void 0);function v(e){let t=i.useContext(m);return e||t||"ltr"}var h=n(9178),g=0;function y(){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}var w=n(9033),b="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},C=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[c,s]=i.useState(null),f=(0,w.c)(o),m=(0,w.c)(l),v=i.useRef(null),h=(0,u.s)(t,e=>s(e)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;c.contains(t)?v.current=t:M(v.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||M(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&M(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,g.paused]),i.useEffect(()=>{if(c){S.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(b,E);c.addEventListener(b,f),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(M(r,{select:t}),document.activeElement!==n)return}(R(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(c))}return()=>{c.removeEventListener(b,f),setTimeout(()=>{let t=new CustomEvent(x,E);c.addEventListener(x,m),c.dispatchEvent(t),t.defaultPrevented||M(null!=e?e:document.body,{select:!0}),c.removeEventListener(x,m),S.remove(g)},0)}}},[c,f,m,g]);let y=i.useCallback(e=>{if(!n&&!r||g.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]=function(e){let t=R(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&M(i,{select:!0})):(e.preventDefault(),n&&M(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,p.jsx)(d.sG.div,{tabIndex:-1,...a,ref:h,onKeyDown:y})});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function M(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}C.displayName="FocusScope";var S=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=N(e,t)).unshift(t)},remove(t){var n;null==(n=(e=N(e,t))[0])||n.resume()}}}();function N(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(2712),P=l["useId".toString()]||(()=>void 0),O=0;function L(e){let[t,n]=i.useState(P());return(0,T.N)(()=>{e||n(e=>e??String(O++))},[e]),e||(t?`radix-${t}`:"")}let j=["top","right","bottom","left"],k=Math.min,D=Math.max,I=Math.round,F=Math.floor,_=e=>({x:e,y:e}
1),W={left:"right",right:"left",bottom:"top",top:"bottom"},B={start:"end",end:"start"};function K(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function H(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function U(e){return"y"===e?"height":"width"}function z(e){return["top","bottom"].includes(G(e))?"y":"x"}function X(e){return e.replace(/start|end/g,e=>B[e])}function Y(e){return e.replace(/left|right|bottom|top/g,e=>W[e])}function Z(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function q(e,t,n){let r,{reference:o,floating:i}=e,l=z(t),a=V(z(t)),u=U(a),c=G(t),s="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(H(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let J=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=q(c,r,u),f=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:h,y:g,data:y,reset:w}=await v({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=h?h:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=q(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function Q(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=K(t,e),m=Z(p),v=a[f?"floating"===d?"reference":"floating":d],h=$(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(h.top-b.top+m.top)/w.y,bottom:(b.bottom-h.bottom+m.bottom)/w.y,left:(h.left-b.left+m.left)/w.x,right:(b.right-h.right+m.right)/w.x}}function ee(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function et(e){return j.some(t=>e[t]>=0)}async function en(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=G(n),a=H(n),u="y"===z(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,d=K(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function er(){return"undefined"!=typeof window}function eo(e){return ea(e)?(e.nodeName||"").toLowerCase():"#document"}function ei(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function el(e){var t;return null==(t=(ea(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ea(e){return!!er()&&(e instanceof Node||e instanceof ei(e).Node)}function eu(e){return!!er()&&(e instanceof Element||e instanceof ei(e).Element)}function ec(e){return!!er()&&(e instanceof HTMLElement||e instanceof ei(e).HTMLElement)}function es(e){return!!er()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ei(e).ShadowRoot)}function ed(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eh(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ef(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ep(e){let t=em(),n=eu(e)?eh(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function em(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ev(e){return["html","body","#document"].includes(eo(e))}function eh(e){return ei(e).getComputedStyle(e)}function eg(e){return eu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ey(e){if("html"===eo(e))return e;let t=e.assignedSlot||e.parentNode||es(e)&&e.host||el(e);return es(t)?t.host:t}function ew(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ey(t);return ev(n)?t.ownerDocument?t.ownerDocument.body:t.body:ec(n)&&ed(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ei(o);if(i){let e=eb(l);return t.concat(l,l.visualViewport||[],ed(o)?o:[],e&&n?ew(e):[])}return t.concat(o,ew(o,[],n))}function eb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ex(e){let t=eh(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ec(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=I(n)!==i||I(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eE(e){return eu(e)?e:e.contextElement}function eC(e){let t=eE(e);if(!ec(t))return _(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ex(t),l=(i?I(n.width):n.width)/r,a=(i?I(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eR=_(0);function eA(e){let t=ei(e);return em()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eR}function eM(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eE(e),a=_(1);t&&(r?eu(r)&&(a=eC(r)):a=eC(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===ei(l))&&o)?eA(l):_(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=ei(l),t=r&&eu(r)?ei(r):r,n=e,o=eb(n);for(;o&&r&&t!==n;){let e=eC(o),t=o.getBoundingClientRect(),r=eh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=eb(n=ei(o))}}return $({width:d,height:f,x:c,y:s})}function eS(e,t){let n=eg(e).scrollLeft;return t?t.left+n:eM(el(e)).left+n}function eN(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eS(e,r)),y:r.top+t.scrollTop}}function eT(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=ei(e),r=el(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=em();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=el(e),n=eg(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eS(e),a=-n.scrollTop;return"rtl"===eh(r).direction&&(l+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(el(e));else if(eu(t))r=function(e,t){let n=eM(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ec(e)?eC(e):_(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eA(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $(r)}function eP(e){return"static"===eh(e).position}function eO(e,t){if(!ec(e)||"fixed"===eh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return el(e)===n&&(n=n.ownerDocument.body),n}function eL(e,t){let n=ei(e);if(ef(e))return n;if(!ec(e)){let t=ey(e);for(;t&&!ev(t);){if(eu(t)&&!eP(t))return t;t=ey(t)}return n}let r=eO(e,t);for(;r&&["table","td","th"].includes(eo(r))&&eP(r);)r=eO(r,t);return r&&ev(r)&&eP(r)&&!ep(r)?n:r||function(e){let t=ey(e);for(;ec(t)&&!ev(t);){if(ep(t))return t;if(ef(t))break;t=ey(t)}return null}(e)||n}let ej=async function(e){let t=this.getOffsetParent||eL,n=this.getDimensions,r=await n(e.floating);
1return{reference:function(e,t,n){let r=ec(t),o=el(t),i="fixed"===n,l=eM(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=_(0);if(r||!r&&!i)if(("body"!==eo(t)||ed(o))&&(a=eg(t)),r){let e=eM(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eS(o));let c=!o||r||i?_(0):eN(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ek={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=el(r),a=!!t&&ef(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=_(1),s=_(0),d=ec(r);if((d||!d&&!i)&&(("body"!==eo(r)||ed(l))&&(u=eg(r)),ec(r))){let e=eM(r);c=eC(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?_(0):eN(l,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:el,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ef(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ew(e,[],!1).filter(e=>eu(e)&&"body"!==eo(e)),o=null,i="fixed"===eh(e).position,l=i?ey(e):e;for(;eu(l)&&!ev(l);){let t=eh(l),n=ep(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||ed(l)&&!n&&function e(t,n){let r=ey(t);return!(r===n||!eu(r)||ev(r))&&("fixed"===eh(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ey(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eT(t,n,o);return e.top=D(r.top,e.top),e.right=k(r.right,e.right),e.bottom=k(r.bottom,e.bottom),e.left=D(r.left,e.left),e},eT(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eL,getElementRects:ej,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ex(e);return{width:t,height:n}},getScale:eC,isElement:eu,isRTL:function(e){return"rtl"===eh(e).direction}};function eD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eI=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=K(e,t)||{};if(null==c)return{};let d=Z(s),f={x:n,y:r},p=V(z(o)),m=U(p),v=await l.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-f[p]-i.floating[m],w=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=b?b[g]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[g]||i.floating[m]);let E=x/2-v[m]/2-1,C=k(d[h?"top":"left"],E),R=k(d[h?"bottom":"right"],E),A=x-v[m]-R,M=x/2-v[m]/2+(y/2-w/2),S=D(C,k(M,A)),N=!u.arrow&&null!=H(o)&&M!==S&&i.reference[m]/2-(M<C?C:R)-v[m]/2<0,T=N?M<C?M-C:M-A:0;return{[p]:f[p]+T,data:{[p]:S,centerOffset:M-S-T,...N&&{alignmentOffset:T}},reset:N}}}),eF=(e,t,n)=>{let r=new Map,o={platform:ek,...n},i={...o.platform,_c:r};return J(e,t,{...o,platform:i})};var e_=n(7650),eW="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function eB(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eB(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eB(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eK(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eG(e,t){let n=eK(e);return Math.round(t*n)/n}function eH(e){let t=i.useRef(e);return eW(()=>{t.current=e}),t}let eV=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eI({element:n.current,padding:r}).fn(t):{}:n?eI({element:n,padding:r}).fn(t):{}}}),eU=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await en(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}),ez=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=K(e,t),c={x:n,y:r},s=await Q(t,u),d=z(G(o)),f=V(d),p=c[f],m=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=D(n,k(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+s[e],r=m-s[t];m=D(n,k(m,r))}let v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:l}}}}}}(e),options:[e,t]}),eX=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=K(e,t),s={x:n,y:r},d=z(o),f=V(d),p=s[f],m=s[d],v=K(a,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(G(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:h.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}}(e),options:[e,t]}),eY=(e,t)=>
1({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=K(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=G(a),x=z(s),E=G(s)===s,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),R=v||(E||!y?[Y(s)]:function(e){let t=Y(e);return[X(e),t,X(t)]}(s)),A="none"!==g;!v&&A&&R.push(...function(e,t,n,r){let o=H(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(G(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(X)))),i}(s,y,g,C));let M=[s,...R],S=await Q(t,w),N=[],T=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&N.push(S[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=H(e),o=V(z(e)),i=U(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Y(l)),[l,Y(l)]}(a,c,C);N.push(S[e[0]],S[e[1]])}if(T=[...T,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(i=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(h){case"bestFit":{let e=null==(l=T.filter(e=>{if(A){let t=z(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eZ=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...d}=K(e,t),f=await Q(t,d),p=G(l),m=H(l),v="y"===z(l),{width:h,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let y=g-f.top-f.bottom,w=h-f.left-f.right,b=k(g-f[o],y),x=k(h-f[i],w),E=!t.middlewareData.shift,C=b,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!m){let e=D(f.left,0),t=D(f.right,0),n=D(f.top,0),r=D(f.bottom,0);v?R=h-2*(0!==e||0!==t?e+t:D(f.left,f.right)):C=g-2*(0!==n||0!==r?n+r:D(f.top,f.bottom))}await s({...t,availableWidth:R,availableHeight:C});let A=await u.getDimensions(c.floating);return h!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),e$=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=K(e,t);switch(r){case"referenceHidden":{let e=ee(await Q(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:et(e)}}}case"escaped":{let e=ee(await Q(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:et(e)}}}default:return{}}}}}(e),options:[e,t]}),eq=(e,t)=>({...eV(e),options:[e,t]});var eJ=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,p.jsx)(d.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eJ.displayName="Arrow";var eQ="Popper",[e0,e1]=(0,c.A)(eQ),[e5,e2]=e0(eQ),e8=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,p.jsx)(e5,{scope:t,anchor:r,onAnchorChange:o,children:n})};e8.displayName=eQ;var e3="PopperAnchor",e9=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=e2(e3,n),a=i.useRef(null),c=(0,u.s)(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,p.jsx)(d.sG.div,{...o,ref:c})});e9.displayName=e3;var e4="PopperContent",[e6,e7]=e0(e4),te=i.forwardRef((e,t)=>{var n,r,o,l,a,c,s,f;let{__scopePopper:m,side:v="bottom",sideOffset:h=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:A=!1,updatePositionStrategy:M="optimized",onPlaced:S,...N}=e,P=e2(e4,m),[O,L]=i.useState(null),j=(0,u.s)(t,e=>L(e)),[I,_]=i.useState(null),W=function(e){let[t,n]=i.useState(void 0);return(0,T.N)(()=>
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}(I),B=null!=(s=null==W?void 0:W.width)?s:0,K=null!=(f=null==W?void 0:W.height)?f:0,G="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},H=Array.isArray(E)?E:[E],V=H.length>0,U={padding:G,boundary:H.filter(to),altBoundary:V},{refs:z,floatingStyles:X,placement:Y,isPositioned:Z,middlewareData:$}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);eB(p,r)||m(r);let[v,h]=i.useState(null),[g,y]=i.useState(null),w=i.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=i.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=l||v,E=a||g,C=i.useRef(null),R=i.useRef(null),A=i.useRef(d),M=null!=c,S=eH(c),N=eH(o),T=eH(s),P=i.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),eF(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};O.current&&!eB(A.current,t)&&(A.current=t,e_.flushSync(()=>{f(t)}))})},[p,t,n,N,T]);eW(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let O=i.useRef(!1);eW(()=>(O.current=!0,()=>{O.current=!1}),[]),eW(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(S.current)return S.current(x,E,P);P()}},[x,E,P,S,M]);let L=i.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),j=i.useMemo(()=>({reference:x,floating:E}),[x,E]),k=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eG(j.floating,d.x),r=eG(j.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eK(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:P,refs:L,elements:j,floatingStyles:k}),[d,P,L,j,k])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eE(e),d=i||l?[...s?ew(s):[],...ew(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=el(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let m=F(d),v=F(o.clientWidth-(s+f)),h={rootMargin:-m+"px "+-v+"px "+-F(o.clientHeight-(d+p))+"px "+-F(s)+"px",threshold:D(0,k(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eD(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),m.observe(t));let v=c?eM(e):null;return c&&function t(){let r=eM(e);v&&!eD(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===M})},elements:{reference:P.anchor},middleware:[eU({mainAxis:h+K,alignmentAxis:y}),x&&ez({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eX():void 0,...U}),x&&eY({...U}),eZ({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),I&&eq({element:I,padding:b}),ti({arrowWidth:B,arrowHeight:K}),A&&e$({strategy:"referenceHidden",...U})]}),[q,J]=tl(Y),Q=(0,w.c)(S);(0,T.N)(()=>{Z&&(null==Q||Q())},[Z,Q]);let ee=null==(n=$.arrow)?void 0:n.x,et=null==(r=$.arrow)?void 0:r.y,en=(null==(o=$.arrow)?void 0:o.centerOffset)!==0,[er,eo]=i.useState();return(0,T.N)(()=>{O&&eo(window.getComputedStyle(O).zIndex)},[O]),(0,p.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null==(l=$.transformOrigin)?void 0:l.x,null==(a=$.transformOrigin)?void 0:a.y].join(" "),...(null==(c=$.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(e6,{scope:m,placedSide:q,onArrowChange:_,arrowX:ee,arrowY:et,shouldHideArrow:en,children:(0,p.jsx)(d.sG.div,{"data-side":q,"data-align":J,...N,ref:j,style:{...N.style,animation:Z?void 0:"none"}})})})});te.displayName=e4;var tt="PopperArrow",tn={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},tr=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e7(tt,n),i=tn[o.placedSide];return(0,p.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(eJ,{...r,ref:t,style:{...r.style,display:"block"}})})});function to(e){return null!==e}tr.displayName=tt;var ti=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=tl(a),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?v:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=s?v:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function tl(e){let[t,n="center"]=e.split("-");return[t,n]}var ta=n(4378),tu=n(8905),tc="rovingFocusGroup.onEntryFocus",ts={bubbles:!1,cancelable:!0},td="RovingFocusGroup",[tf,tp,tm]=(0,f.N)(td),[tv,th]=(0,c.A)(td,[tm]),[tg,ty]=tv(td),tw=i.forwardRef((e,t)=>(0,p.jsx)(tf.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(tf.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(tb,{...e,ref:t})})}));tw.displayName=td;var tb=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...y}=e,b=i.useRef(null),x=(0,u.s)(t,b),E=v(l),[C=null,R]=(0,s.i)({prop:c,defaultProp:f,onChange:m}),[A,M]=i.useState(!1),S=(0,w.c)(h),N=tp(n),T=i.useRef(!1),[P,O]=i.useState(0);return i.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(tc,S),()=>e.removeEventListener(tc,S)},[S]),(0,p.jsx)(tg,{scope:n,orientation:r,dir:E,loop:o,currentTabStopId:C,onItemFocus:i.useCallback(e=>R(e),[R]),onItemShiftTab:i.useCallback(()=>M(!0),[]),onFocusableItemAdd:i.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(d.sG.div,{tabIndex:A||0===P?-1:0,"data-orientation":r,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(tc,ts);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);tR([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),g)}}T.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>M(!1))})})}),tx="RovingFocusGroupItem",tE=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,...u}=e,c=L(),s=l||c,f=ty(tx,n),m=f.currentTabStopId===s,v=tp(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=f;return i.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),(0,p.jsx)(tf.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:(0,p.jsx)(d.sG.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...u,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{r?f.onItemFocus(s):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>f.onItemFocus(s)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tC[o]}(e,f.orientation,f.dir);if(void 0!==t){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("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>tR(n))}})})})});tE.displayName=tx;var tC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tR(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tA=i.forwardRef((e,t)=>
1{let{children:n,...r}=e,o=i.Children.toArray(n),l=o.find(tN);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(tM,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,p.jsx)(tM,{...r,ref:t,children:n})});tA.displayName="Slot";var tM=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=function(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}(n),o=function(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)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?(0,u.t)(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});tM.displayName="SlotClone";var tS=({children:e})=>(0,p.jsx)(p.Fragment,{children:e});function tN(e){return i.isValidElement(e)&&e.type===tS}var tT=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tP=new WeakMap,tO=new WeakMap,tL={},tj=0,tk=function(e){return e&&(e.host||tk(e.parentNode))},tD=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tk(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tL[n]||(tL[n]=new WeakMap);var i=tL[n],l=[],a=new Set,u=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tP.get(e)||0)+1,c=(i.get(e)||0)+1;tP.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tO.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),a.clear(),tj++,function(){l.forEach(function(e){var t=tP.get(e)-1,o=i.get(e)-1;tP.set(e,t),i.set(e,o),t||(tO.has(e)||e.removeAttribute(r),tO.delete(e)),o||e.removeAttribute(n)}),--tj||(tP=new WeakMap,tP=new WeakMap,tO=new WeakMap,tL={})}},tI=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||tT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tD(r,o,n,"aria-hidden")):function(){return null}},tF=n(9249),t_="right-scroll-bar-position",tW="width-before-scroll-bar";function tB(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tK="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,tG=new WeakMap;function tH(e){return e}var tV=function(e){void 0===e&&(e={});var t,n,r,o,i=(t=null,void 0===n&&(n=tH),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}});return i.options=(0,tF.Cl)({async:!0,ssr:!1},e),i}(),tU=function(){},tz=i.forwardRef(function(e,t){var n,r,o,l,a=i.useRef(null),u=i.useState({onScrollCapture:tU,onWheelCapture:tU,onTouchMoveCapture:tU}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,v=e.enabled,h=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,C=(0,tF.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[a,t],r=function(e){return n.forEac
1h(function(t){return tB(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,l=o.facade,tK(function(){var e=tG.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||tB(e,null)}),r.forEach(function(e){t.has(e)||tB(e,o)})}tG.set(l,n)},[n]),l),A=(0,tF.Cl)((0,tF.Cl)({},C),c);return i.createElement(i.Fragment,null,v&&i.createElement(g,{sideCar:tV,removeScrollBar:m,shards:h,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:a,gapMode:E}),d?i.cloneElement(i.Children.only(f),(0,tF.Cl)((0,tF.Cl)({},A),{ref:R})):i.createElement(void 0===x?"div":x,(0,tF.Cl)({},A,{className:p,ref:R}),f))});tz.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tz.classNames={fullWidth:tW,zeroRight:t_};var tX=function(e){var t=e.sideCar,n=(0,tF.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,(0,tF.Cl)({},n))};tX.isSideCarExport=!0;var tY=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tZ=function(){var e=tY();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t$=function(){var e=tZ();return function(t){return e(t.styles,t.dynamic),null}},tq={left:0,top:0,right:0,gap:0},tJ=function(e){return parseInt(e||"",10)||0},tQ=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tJ(n),tJ(r),tJ(o)]},t0=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tq;var t=tQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},t1=t$(),t5="data-scroll-locked",t2=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(t5,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(t_," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tW," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(t_," .").concat(t_," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tW," .").concat(tW," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(t5,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},t8=function(){var e=parseInt(document.body.getAttribute(t5)||"0",10);return isFinite(e)?e:0},t3=function(){i.useEffect(function(){return document.body.setAttribute(t5,(t8()+1).toString()),function(){var e=t8()-1;e<=0?document.body.removeAttribute(t5):document.body.setAttribute(t5,e.toString())}},[])},t9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;t3();var l=i.useMemo(function(){return t0(o)},[o]);return i.createElement(t1,{styles:t2(l,!t,o,n?"":"!important")})},t4=!1;if("undefined"!=typeof window)try{var t6=Object.defineProperty({},"passive",{get:function(){return t4=!0,!0}});window.addEventListener("test",t6,t6),window.removeEventListener("test",t6,t6)}catch(e){t4=!1}var t7=!!t4&&{passive:!1},ne=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},nt=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nn(e,r)){var o=nr(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nn=function(e,t){return"v"===e?ne(t,"overflowY"):ne(t,"overflowX")},nr=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},no=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var m=nr(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&nn(e,u)&&(f+=h,p+=v),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},ni=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nl=function(e){return[e.deltaX,e.deltaY]},na=function(e){return e&&"current"in e?e.current:e},nu=0,nc=[];let ns=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(nu++)[0],l=i.useState(t$)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,tF.fX)([e.lockRef.current],(e.shards||[]).map(na),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=ni(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=nt(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=nt(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return no(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(nc.length&&nc[nc.length-1]===l){var n="deltaY"in e?nl(e):ni(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(na).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=ni(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,nl(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,ni(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return nc.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,t7),document.addEventListener("touchmove",c,t7),document.addEventListener("touchstart",d,t7),function(){nc=nc.filter(function(e){return e!==l}),document.removeEventListener("wheel",c,t7),document.removeEventListener("touchmove",c,t7),document.removeEventListener("touchstart",d,t7)}},[]);var m=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(l,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?i.createElement(t9,{gapMode:e.gapMode}):null)},tV.useMedium(r),tX);var nd=i.forwardRef(function(e,t){return i.createElement(tz,(0,tF.Cl)({},e,{ref:t,sideCar:ns}))});nd.classNames=tz.classNames;var nf=["Enter"," "],np=["ArrowUp","PageDown","End"],nm=["ArrowDown","PageUp","Home",...np],nv={ltr:[...nf,"ArrowRight"],rtl:[...nf,"ArrowLeft"]},nh={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ng="Menu",[ny,nw,nb]=(0,f.N)(ng),[nx,nE]=(0,c.A)(ng,[nb,e1,th]),nC=e1(),nR=th(),[nA,nM]=nx(ng),[nS,nN]=nx(ng),nT=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:a=!0}=e,u=nC(t),[c,s]=i.useState(null),d=i.useRef(!1),f=(0,w.c)(l),m=v(o);return i.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,p.jsx)(e8,{...u,children:(0,p.jsx)(nA,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:s,children:(0,p.jsx)(nS,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};nT.displayName=ng;var nP=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=nC(n);return(0,p.jsx)(e9,{...o,...r,ref:t})});nP.displayName="MenuAnchor";var nO="MenuPortal",[nL,nj]=nx(nO,{forceMount:void 0}),nk=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=nM(nO,t);return(0,p.jsx)(nL,{scope:t,forceMount:n,children:(0,p.jsx)(tu.C,{present:n||i.open,children:(0,p.jsx)(ta.Z,{asChild:!0,container:o,children:r})})})};nk.displayName=nO;var nD="MenuContent",[nI,nF]=nx(nD),n_=i.forwardRef((e,t)=>
1{let n=nj(nD,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=nM(nD,e.__scopeMenu),l=nN(nD,e.__scopeMenu);return(0,p.jsx)(ny.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(tu.C,{present:r||i.open,children:(0,p.jsx)(ny.Slot,{scope:e.__scopeMenu,children:l.modal?(0,p.jsx)(nW,{...o,ref:t}):(0,p.jsx)(nB,{...o,ref:t})})})})}),nW=i.forwardRef((e,t)=>{let n=nM(nD,e.__scopeMenu),r=i.useRef(null),o=(0,u.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return tI(e)},[]),(0,p.jsx)(nK,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),nB=i.forwardRef((e,t)=>{let n=nM(nD,e.__scopeMenu);return(0,p.jsx)(nK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),nK=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:w,onDismiss:b,disableOutsideScroll:x,...E}=e,R=nM(nD,n),A=nN(nD,n),M=nC(n),S=nR(n),N=nw(n),[T,P]=i.useState(null),O=i.useRef(null),L=(0,u.s)(t,O,R.onContentChange),j=i.useRef(0),k=i.useRef(""),D=i.useRef(0),I=i.useRef(null),F=i.useRef("right"),_=i.useRef(0),W=x?nd:i.Fragment,B=x?{as:tA,allowPinchZoom:!0}:void 0,K=e=>{var t,n;let r=k.current+e,o=N().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){k.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};i.useEffect(()=>()=>window.clearTimeout(j.current),[]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:y()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:y()),g++,()=>{1===g&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),g--}},[]);let G=i.useCallback(e=>{var t,n;return F.current===(null==(t=I.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,u=t[i].x,c=t[i].y;a>r!=c>r&&n<(u-l)*(r-a)/(c-a)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=I.current)?void 0:n.area)},[]);return(0,p.jsx)(nI,{scope:n,searchRef:k,onItemEnter:i.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:i.useCallback(e=>{var t;G(e)||(null==(t=O.current)||t.focus(),P(null))},[G]),onTriggerLeave:i.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:D,onPointerGraceIntentChange:i.useCallback(e=>{I.current=e},[]),children:(0,p.jsx)(W,{...B,children:(0,p.jsx)(C,{asChild:!0,trapped:o,onMountAutoFocus:(0,a.m)(l,e=>{var t;e.preventDefault(),null==(t=O.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,p.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:w,onDismiss:b,children:(0,p.jsx)(tw,{asChild:!0,...S,dir:A.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:P,onEntryFocus:(0,a.m)(d,e=>{A.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,p.jsx)(te,{role:"menu","aria-orientation":"vertical","data-state":ri(R.open),"data-radix-menu-content":"",dir:A.dir,...M,...E,ref:L,style:{outline:"none",...E.style},onKeyDown:(0,a.m)(E.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&K(e.key));let o=O.current;
1if(e.target!==o||!nm.includes(e.key))return;e.preventDefault();let i=N().filter(e=>!e.disabled).map(e=>e.ref.current);np.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),k.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,ru(e=>{let t=e.target,n=_.current!==e.clientX;e.currentTarget.contains(t)&&n&&(F.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});n_.displayName=nD;var nG=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(d.sG.div,{role:"group",...r,ref:t})});nG.displayName="MenuGroup";var nH=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(d.sG.div,{...r,ref:t})});nH.displayName="MenuLabel";var nV="MenuItem",nU="menu.itemSelect",nz=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,l=i.useRef(null),c=nN(nV,e.__scopeMenu),s=nF(nV,e.__scopeMenu),f=(0,u.s)(t,l),m=i.useRef(!1);return(0,p.jsx)(nX,{...o,ref:f,disabled:n,onClick:(0,a.m)(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(nU,{bubbles:!0,cancelable:!0});e.addEventListener(nU,e=>null==r?void 0:r(e),{once:!0}),(0,d.hO)(e,t),t.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),m.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;m.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;n||t&&" "===e.key||nf.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nz.displayName=nV;var nX=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,c=nF(nV,n),s=nR(n),f=i.useRef(null),m=(0,u.s)(t,f),[v,h]=i.useState(!1),[g,y]=i.useState("");return i.useEffect(()=>{let e=f.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[l.children]),(0,p.jsx)(ny.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:g,children:(0,p.jsx)(tE,{asChild:!0,...s,focusable:!r,children:(0,p.jsx)(d.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:m,onPointerMove:(0,a.m)(e.onPointerMove,ru(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,ru(e=>c.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>h(!0)),onBlur:(0,a.m)(e.onBlur,()=>h(!1))})})})}),nY=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,p.jsx)(n5,{scope:e.__scopeMenu,checked:n,children:(0,p.jsx)(nz,{role:"menuitemcheckbox","aria-checked":rl(n)?"mixed":n,...o,ref:t,"data-state":ra(n),onSelect:(0,a.m)(o.onSelect,()=>null==r?void 0:r(!!rl(n)||!n),{checkForDefaultPrevented:!1})})})});nY.displayName="MenuCheckboxItem";var nZ="MenuRadioGroup",[n$,nq]=nx(nZ,{value:void 0,onValueChange:()=>{}}),nJ=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,w.c)(r);return(0,p.jsx)(n$,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,p.jsx)(nG,{...o,ref:t})})});nJ.displayName=nZ;var nQ="MenuRadioItem",n0=i.forwardRef((e,t)=>{let{value:n,...r}=e,o=nq(nQ,e.__scopeMenu),i=n===o.value;return(0,p.jsx)(n5,{scope:e.__scopeMenu,checked:i,children:(0,p.jsx)(nz,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":ra(i),onSelect:(0,a.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});n0.displayName=nQ;var n1="MenuItemIndicator",[n5,n2]=nx(n1,{checked:!1}),n8=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=n2(n1,n);return(0,p.jsx)(tu.C,{present:r||rl(i.checked)||!0===i.checked,children:(0,p.jsx)(d.sG.span,{...o,ref:t,"data-state":ra(i.checked)})})});n8.displayName=n1;var n3=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(d.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});n3.displayName="MenuSeparator";var n9=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=nC(n);return(0,p.jsx)(tr,{...o,...r,ref:t})});n9.displayName="MenuArrow";var n4="MenuSub",[n6,n7]=nx(n4),re=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,l=nM(n4,t),a=nC(t),[u,c]=i.useState(null),[s,d]=i.useState(null),f=(0,w.c)(o);return i.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,p.jsx)(e8,{...a,children:(0,p.jsx)(nA,{scope:t,open:r,onOpenChange:f,content:s,onContentChange:d,children:(0,p.jsx)(n6,{scope:t,contentId:L(),triggerId:L(),trigger:u,onTriggerChange:c,children:n})})})};re.displayName=n4;var rt="MenuSubTrigger",rn=i.forwardRef((e,t)=>
1{let n=nM(rt,e.__scopeMenu),r=nN(rt,e.__scopeMenu),o=n7(rt,e.__scopeMenu),l=nF(rt,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},m=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>m,[m]),i.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,p.jsx)(nP,{asChild:!0,...f,children:(0,p.jsx)(nX,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ri(n.open),...e,ref:(0,u.t)(t,o.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,ru(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||c.current||(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,a.m)(e.onPointerLeave,ru(e=>{var t,r;m();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],u=o[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let o=""!==l.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&nv[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});rn.displayName=rt;var rr="MenuSubContent",ro=i.forwardRef((e,t)=>{let n=nj(nD,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,l=nM(nD,e.__scopeMenu),c=nN(nD,e.__scopeMenu),s=n7(rr,e.__scopeMenu),d=i.useRef(null),f=(0,u.s)(t,d);return(0,p.jsx)(ny.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(tu.C,{present:r||l.open,children:(0,p.jsx)(ny.Slot,{scope:e.__scopeMenu,children:(0,p.jsx)(nK,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=nh[c.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null==(r=s.trigger)||r.focus(),e.preventDefault()}})})})})})});function ri(e){return e?"open":"closed"}function rl(e){return"indeterminate"===e}function ra(e){return rl(e)?"indeterminate":e?"checked":"unchecked"}function ru(e){return t=>"mouse"===t.pointerType?e(t):void 0}ro.displayName=rr;var rc="DropdownMenu",[rs,rd]=(0,c.A)(rc,[nE]),rf=nE(),[rp,rm]=rs(rc),rv=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:a,modal:u=!0}=e,c=rf(t),d=i.useRef(null),[f=!1,m]=(0,s.i)({prop:o,defaultProp:l,onChange:a});return(0,p.jsx)(rp,{scope:t,triggerId:L(),triggerRef:d,contentId:L(),open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),modal:u,children:(0,p.jsx)(nT,{...c,open:f,onOpenChange:m,dir:r,modal:u,children:n})})};rv.displayName=rc;var rh="DropdownMenuTrigger",rg=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=rm(rh,n),l=rf(n);return(0,p.jsx)(nP,{asChild:!0,...l,children:(0,p.jsx)(d.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,u.t)(t,i.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>
1{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rg.displayName=rh;var ry=e=>{let{__scopeDropdownMenu:t,...n}=e,r=rf(t);return(0,p.jsx)(nk,{...r,...n})};ry.displayName="DropdownMenuPortal";var rw="DropdownMenuContent",rb=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rm(rw,n),l=rf(n),u=i.useRef(!1);return(0,p.jsx)(n_,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...r,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=o.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rb.displayName=rw;var rx=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(nG,{...o,...r,ref:t})});rx.displayName="DropdownMenuGroup";var rE=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(nH,{...o,...r,ref:t})});rE.displayName="DropdownMenuLabel";var rC=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(nz,{...o,...r,ref:t})});rC.displayName="DropdownMenuItem";var rR=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(nY,{...o,...r,ref:t})});rR.displayName="DropdownMenuCheckboxItem";var rA=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(nJ,{...o,...r,ref:t})});rA.displayName="DropdownMenuRadioGroup";var rM=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(n0,{...o,...r,ref:t})});rM.displayName="DropdownMenuRadioItem";var rS=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(n8,{...o,...r,ref:t})});rS.displayName="DropdownMenuItemIndicator";var rN=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(n3,{...o,...r,ref:t})});rN.displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(n9,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var rT=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(rn,{...o,...r,ref:t})});rT.displayName="DropdownMenuSubTrigger";var rP=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rf(n);return(0,p.jsx)(ro,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rP.displayName="DropdownMenuSubContent";var rO=rv,rL=rg,rj=ry,rk=rb,rD=rx,rI=rE,rF=rC,r_=rR,rW=rA,rB=rM,rK=rS,rG=rN,rH=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=rf(t),[a=!1,u]=(0,s.i)({prop:r,defaultProp:i,onChange:o});return(0,p.jsx)(re,{...l,open:a,onOpenChange:u,children:n})},rV=rT,rU=rP},4378:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(2115),o=n(7650),i=n(3540),l=n(2712),a=n(5155),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,l.N)(()=>f(!0),[]);let p=c||d&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...s,ref:t}),p):null});u.displayName="Portal"},5185:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},5845:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(2115),o=n(9033);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.c)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,c=(0,o.c)(n);return[u,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else l(t)},[a,e,l,c])]}},6081:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2115),o=n(5155);function i(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,c=n?.[e]?.[a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}}
1,6589:(e,t,n)=>{n.d(t,{N:()=>d});var r=n(2115),o=n(6081),i=n(6101),l=n(5155),a=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),a=i.find(s);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(u,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,l.jsx)(u,{...o,ref:t,children:n})});a.displayName="Slot";var u=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e=function(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}(n),l=function(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)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(l.ref=t?(0,i.t)(t,e):e),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});u.displayName="SlotClone";var c=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function s(e){return r.isValidElement(e)&&e.type===c}function d(e){let t=e+"CollectionProvider",[n,u]=(0,o.A)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),u=(0,i.s)(t,o.collectionRef);return(0,l.jsx)(a,{ref:u,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),d=(0,i.s)(t,c),f=s(m,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,l.jsx)(a,{...{[v]:""},ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},8905:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(2115),o=n(6101),i=n(2712),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);s.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),c=(0,o.s)(l.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:c}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"}
1,9033:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(2115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9178:(e,t,n)=>{n.d(t,{lg:()=>g,qW:()=>f,bL:()=>h});var r,o=n(2115),i=n(5185),l=n(3540),a=n(6101),u=n(9033),c=n(5155),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[C,R]=o.useState(null),A=null!=(f=null==C?void 0:C.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,M]=o.useState({}),S=(0,a.s)(t,e=>R(e)),N=Array.from(E.layers),[T]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),P=N.indexOf(T),O=C?N.indexOf(C):-1,L=E.layersWithOutsidePointerEventsDisabled.size>0,j=O>=P,k=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));j&&!n&&(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},A),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},A);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{O===E.layers.size-1&&(null==h||h(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},A),o.useEffect(()=>{if(C)return p&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),m(),()=>{p&&1===E.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[C,A,p,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),m())},[C,E]),o.useEffect(()=>{let e=()=>M({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(l.sG.div,{...x,ref:S,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,k.onPointerDownCapture)})});f.displayName="DismissableLayer";var p=o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(l.sG.div,{...e,ref:i})});function m(){let e=new CustomEvent(s);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}p.displayName="DismissableLayerBranch";var h=f,g=p},9249:(e,t,n)=>{n.d(t,{Cl:()=>r,Tt:()=>o,fX:()=>i});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);

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.