PageSourceSearch

https://sugary.me/_next/static/chunks/4471-8afd8d08d525acc9.js

js sugary.me collected 2026-10-01 14:20:07 UTC 36,824 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4471],{17347:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(12115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},23933:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(12115),i=n(17347);function o(e,t=globalThis?.document){let n=(0,i.c)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},31246:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(12115),i=n(47650),o=n(47527),l=n(95155),a=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,i;let a,f,u,c=(i=n=`Primitive.${t}`,(a=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),f=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(f.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,f)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${i}.SlotClone`,f=a,(u=r.forwardRef((e,t)=>{let{children:n,...i}=e,o=r.Children.toArray(n),a=o.find(s);if(a){let e=a.props.children,n=o.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)(f,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,l.jsx)(f,{...i,ref:t,children:n})})).displayName=`${n}.Slot`,u),d=r.forwardRef((e,n)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(r?c:t,{...i,ref:n})});return d.displayName=`Primitive.${t}`,{...e,[t]:d}},{}),u=n(66294),c=r.forwardRef((e,t)=>{let{container:n,...o}=e,[a,s]=r.useState(!1);(0,u.N)(()=>s(!0),[]);let c=n||a&&globalThis?.document?.body;return c?i.createPortal((0,l.jsx)(f.div,{...o,ref:t}),c):null});c.displayName="Portal"},47527:(e,t,n)=>{n.d(t,{s:()=>l,t:()=>o});var r=n(12115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function l(...e){return r.useCallback(o(...e),e)}},51914:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(78340).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},63509:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(12115),i=n(66294);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;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;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},66294:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(12115),i=globalThis?.document?r.useLayoutEffect:()=>{}},70379:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"u">typeof window&&window.document&&window.document.createElement},83935:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(12115),i=n(47527),o=n(66294),l=e=>{var t;let n,l,{present:s,children:f}=e,u=function(e){var t,n;let[i,l]=r.useState(),s=r.useRef(null),f=r.useRef(e),u=r.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1n[e][t]??e,t));return r.useEffect(()=>{let e=a(s.current);u.current="mounted"===c?e:"none"},[c]),(0,o.N)(()=>{let t=s.current,n=f.current;if(n!==e){let r=u.current,i=a(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),f.current=e}},[e,d]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=a(s.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(d("ANIMATION_END"),!f.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(u.current=a(s.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),c="function"==typeof f?f({present:u.isPresent}):r.Children.only(f),d=(0,i.s)(u.ref,(t=c,(l=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(l=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof f||u.isPresent?r.cloneElement(c,{ref:d}):null};function a(e){return e?.animationName||"none"}l.displayName="Presence"},89971:(e,t,n)=>{n.d(t,{B:()=>s});var r,i=n(12115),o=n(66294),l=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,n]=i.useState(l());return(0,o.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},94841:(e,t,n)=>{let r;n.d(t,{Mz:()=>eQ,i3:()=>e1,UC:()=>e0,bL:()=>eJ,Bk:()=>e_});var i=n(12115);let o=["top","right","bottom","left"],l=Math.min,a=Math.max,s=Math.round,f=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let v=["left","right"],x=["right","left"],b=["top","bottom"],R=["bottom","top"];function E(e){let t=p(e);return c[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function N(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function O(e,t,n){let r,{reference:i,floating:o}=e,l=y(t),a=h(y(t)),s=g(a),f=p(t),u="y"===l,c=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,w=i[s]/2-o[s]/2;switch(f){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(m(t)){case"start":r[a]-=w*(n&&u?-1:1);break;case"end":r[a]+=w*(n&&u?-1:1)}return r}async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:p=!1,padding:m=0}=d(t,e),h=A(m),g=a[p?"floating"===c?"reference":"floating":c],y=N(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:s})),w="floating"===c?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},b=N(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:v,strategy:s}):w);
1return{top:(y.top-b.top+h.top)/x.y,bottom:(b.bottom-y.bottom+h.bottom)/x.y,left:(y.left-b.left+h.left)/x.x,right:(b.right-y.right+h.right)/x.x}}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:S},s=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=O(f,r,s),d=r,p=0,m={};for(let n=0;n<o.length;n++){let h=o[n];if(!h)continue;let{name:g,fn:y}=h,{x:w,y:v,data:x,reset:b}=await y({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:m,rects:f,platform:a,elements:{reference:e,floating:t}});u=null!=w?w:u,c=null!=v?v:c,m[g]={...m[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:c}=O(f,d,s)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:m}};function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return o.some(t=>e[t]>=0)}let L=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=m(n),s="y"===y(n),f=L.has(l)?-1:1,u=o&&s?-1:1,c=d(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),s?{x:g*u,y:h*f}:{x:h*f,y:g*u}}function M(){return"u">typeof window}function $(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return!!M()&&(e instanceof Node||e instanceof D(e).Node)}function k(e){return!!M()&&(e instanceof Element||e instanceof D(e).Element)}function F(e){return!!M()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function I(e){return!(!M()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let B=/transform|translate|scale|rotate|perspective|filter/,z=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function X(e){let t=k(e)?q(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!Y()&&(U(t.backdropFilter)||U(t.filter))||B.test(t.willChange||"")||z.test(t.contain||"")}function Y(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Z(e){return/^(html|body|#document)$/.test($(e))}function q(e){return D(e).getComputedStyle(e)}function K(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if("html"===$(e))return e;let t=e.assignedSlot||e.parentNode||I(e)&&e.host||_(e);return I(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=G(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:F(n)&&V(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=D(i);if(!o)return t.concat(i,J(i,[],n));{let e=Q(l);return t.concat(l,l.visualViewport||[],V(i)?i:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=F(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=s(n)!==o||s(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function et(e){return k(e)?e:e.contextElement}function en(e){let t=et(e);if(!F(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ee(t),l=(o?s(n.width):n.width)/r,a=(o?s(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let er=u(0);function ei(e){let t=D(e);
1return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=et(e),a=u(1);t&&(r?k(r)&&(a=en(r)):a=en(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===D(l))&&i)?ei(l):u(0),f=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=D(l),t=r&&k(r)?D(r):r,n=e,i=Q(n);for(;i&&r&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=q(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,c*=e.y,d*=e.x,p*=e.y,f+=o,c+=l,i=Q(n=D(i))}}return N({width:d,height:p,x:f,y:c})}function el(e,t){let n=K(e).scrollLeft;return t?t.left+n:eo(_(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function es(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=D(e),r=_(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=Y();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let f=el(r);if(f<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else f<=25&&(o+=f);return{width:o,height:l,x:a,y:s}}(e,n);else if("document"===t){let t,n,o,l,s,f,u;r=_(e),t=_(r),n=K(r),o=r.ownerDocument.body,l=a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),f=-n.scrollLeft+el(r),u=-n.scrollTop,"rtl"===q(o).direction&&(f+=a(t.clientWidth,o.clientWidth)-l),i={width:l,height:s,x:f,y:u}}else if(k(t)){let e,r,o,l,a,s;r=(e=eo(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=F(t)?en(t):u(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:a,height:s,x:o*l.x,y:r*l.y}}else{let n=ei(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return N(i)}function ef(e){return"static"===q(e).position}function eu(e,t){if(!F(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _(e)===n&&(n=n.ownerDocument.body),n}function ec(e,t){var n;let r=D(e);if(H(e))return r;if(!F(e)){let t=G(e);for(;t&&!Z(t);){if(k(t)&&!ef(t))return t;t=G(t)}return r}let i=eu(e,t);for(;i&&(n=i,/^(table|td|th)$/.test($(n)))&&ef(i);)i=eu(i,t);return i&&Z(i)&&ef(i)&&!X(i)?r:i||function(e){let t=G(e);for(;F(t)&&!Z(t);){if(X(t))return t;if(H(t))break;t=G(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ec,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=F(t),i=_(t),o="fixed"===n,l=eo(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=u(0);if(r||!r&&!o)if(("body"!==$(t)||V(i))&&(a=K(t)),r){let e=eo(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=el(i));o&&!r&&i&&(s.x=el(i));let f=!i||r||o?u(0):ea(i,a);return{x:l.left+a.scrollLeft-s.x-f.x,y:l.top+a.scrollTop-s.y-f.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}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=_(r),a=!!t&&H(t.floating);if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},f=u(1),c=u(0),d=F(r);if((d||!d&&!o)&&(("body"!==$(r)||V(l))&&(s=K(r)),d)){let e=eo(r);f=en(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||o?u(0):ea(l,s);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-s.scrollLeft*f.x+c.x+p.x,y:n.y*f.y-s.scrollTop*f.y+c.y+p.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>k(e)&&"body"!==$(e)),i=null,o="fixed"===q(e).position,l=o?G(e):e;for(;k(l)&&!Z(l);){let t=q(l),n=X(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||V(l)&&!n&&function e(t,n){let r=G(t);return!(r===n||!k(r)||Z(r))&&("fixed"===q(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=G(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=es(t,o[0],i),f=s.top,u=s.right,c=s.bottom,d=s.left;for(let e=1;e<o.length;e++){let n=es(t,o[e],i);f=a(n.top,f),u=l(n.right,u),c=l(n.bottom,c),d=a(n.left,d)}return{width:u-d,height:c-f,x:d,y:f}},getOffsetParent:ec,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:k,isRTL:function(e){return"rtl"===q(e).direction}};function em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eh=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:f,middlewareData:u}=t,{element:c,padding:p=0}=d(e,t)||{};if(null==c)return{};let w=A(p),v={x:n,y:r},x=h(y(i)),b=g(x),R=await s.getDimensions(c),E="y"===x,N=E?"clientHeight":"clientWidth",O=o.reference[b]+o.reference[x]-v[x]-o.floating[b],S=v[x]-o.reference[x],C=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),P=C?C[N]:0;P&&await (null==s.isElement?void 0:s.isElement(C))||(P=f.floating[N]||o.floating[b]);let T=P/2-R[b]/2-1,L=l(w[E?"top":"left"],T),j=l(w[E?"bottom":"right"],T),M=P-R[b]-j,$=P/2-R[b]/2+(O/2-S/2),D=a(L,l($,M)),_=!u.arrow&&null!=m(i)&&$!==D&&o.reference[b]/2-($<L?L:j)-R[b]/2<0,W=_?$<L?$-L:$-M:0;return{[x]:v[x]+W,data:{[x]:D,centerOffset:$-D-W,..._&&{alignmentOffset:W}},reset:_}}});var eg=n(47650),ey="u">typeof document?i.useLayoutEffect:function(){};function ew(e,t){let n,r,i;if(e===t)return!0;
1if(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(!ew(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ev(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ex(e,t){let n=ev(e);return Math.round(t*n)/n}function eb(e){let t=i.useRef(e);return ey(()=>{t.current=e}),t}var eR=n(47527),eE=n(95155),eA=Symbol("radix.slottable");function eN(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eA}var eO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,r;let o,l,a,s=(r=n=`Primitive.${t}`,(o=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(s.ref=t?(0,eR.t)(t,a):a),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null})).displayName=`${r}.SlotClone`,l=o,(a=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(eN);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,eE.jsx)(l,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,eE.jsx)(l,{...r,ref:t,children:n})})).displayName=`${n}.Slot`,a),f=i.forwardRef((e,n)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eE.jsx)(r?s:t,{...i,ref:n})});return f.displayName=`Primitive.${t}`,{...e,[t]:f}},{}),eS=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eE.jsx)(eO.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var eC=Symbol("radix.slottable");function eP(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eC}var eT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,r;let o,l,a,s=(r=n=`Primitive.${t}`,(o=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,l,a=(o=n,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(s.ref=t?(0,eR.t)(t,a):a),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null})).displayName=`${r}.SlotClone`,l=o,(a=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(eP);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,eE.jsx)(l,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,eE.jsx)(l,{...r,ref:t,children:n})})).displayName=`${n}
1.Slot`,a),f=i.forwardRef((e,n)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eE.jsx)(r?s:t,{...i,ref:n})});return f.displayName=`Primitive.${t}`,{...e,[t]:f}},{}),eL=n(17347),ej=n(66294),eM=n(63509),e$="Popper",[eD,e_]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,s=n?.[e]?.[l]||o,f=i.useMemo(()=>a,Object.values(a));return(0,eE.jsx)(s.Provider,{value:f,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let s=a?.[e]?.[l]||o,f=i.useContext(s);if(f)return f;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(e$),[eW,ek]=eD(e$),eF=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,eE.jsx)(eW,{scope:t,anchor:r,onAnchorChange:o,children:n})};eF.displayName=e$;var eI="PopperAnchor",eV=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=ek(eI,n),a=i.useRef(null),s=(0,eR.s)(t,a),f=i.useRef(null);return i.useEffect(()=>{let e=f.current;f.current=r?.current||a.current,e!==f.current&&l.onAnchorChange(f.current)}),r?null:(0,eE.jsx)(eT.div,{...o,ref:s})});eV.displayName=eI;var eH="PopperContent",[eB,ez]=eD(eH),eU=i.forwardRef((e,t)=>{var n,r,o,s,u,c,A,N,O,S,M,$,D;let W,k,F,I,V,H,{__scopePopper:B,side:z="bottom",sideOffset:U=0,align:X="center",alignOffset:Y=0,arrowPadding:Z=0,avoidCollisions:q=!0,collisionBoundary:K=[],collisionPadding:G=0,sticky:Q="partial",hideWhenDetached:ee=!1,updatePositionStrategy:en="optimized",onPlaced:er,...ei}=e,el=ek(eH,B),[ea,es]=i.useState(null),ef=(0,eR.s)(t,e=>es(e)),[eu,ec]=i.useState(null),ed=(0,eM.X)(eu),eA=ed?.width??0,eN=ed?.height??0,eO="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},eS=Array.isArray(K)?K:[K],eC=eS.length>0,eP={padding:eO,boundary:eS.filter(eq),altBoundary:eC},{refs:e$,floatingStyles:eD,placement:e_,isPositioned:eW,middlewareData:eF}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:f,open:u}=e,[c,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);ew(p,r)||m(r);let[h,g]=i.useState(null),[y,w]=i.useState(null),v=i.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),x=i.useCallback(e=>{e!==A.current&&(A.current=e,w(e))},[]),b=l||h,R=a||y,E=i.useRef(null),A=i.useRef(null),N=i.useRef(c),O=null!=f,S=eb(f),P=eb(o),T=eb(u),L=i.useCallback(()=>{var e,r;let i,o,l;if(!E.current||!A.current)return;let a={placement:t,strategy:n,middleware:p};P.current&&(a.platform=P.current),(e=E.current,r=A.current,i=new Map,l={...(o={platform:ep,...a}).platform,_c:i},C(e,r,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==T.current};j.current&&!ew(N.current,t)&&(N.current=t,eg.flushSync(()=>{d(t)}))})},[p,t,n,P,T]);ey(()=>{!1===u&&N.current.isPositioned&&(N.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let j=i.useRef(!1);ey(()=>(j.current=!0,()=>{j.current=!1}),[]),ey(()=>{if(b&&(E.current=b),R&&(A.current=R),b&&R){if(S.current)return S.current(b,R,L);L()}},[b,R,L,S,O]);let M=i.useMemo(()=>({reference:E,floating:A,setReference:v,setFloating:x}),[v,x]),$=i.useMemo(()=>({reference:b,floating:R}),[b,R]),D=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!$.floating)return e;let t=ex($.floating,c.x),r=ex($.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ev($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,$.floating,c.x,c.y]);return i.useMemo(()=>({...c,update:L,refs:M,elements:$,floatingStyles:D}),[c,L,M,$,D])}({strategy:"fixed",placement:z+("center"!==X?"-"+X:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),m=o||s?[...p?J(p):[],...t?J(t):[]]:[];
1m.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=p&&c?function(e,t){let n,r=null,i=_(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),o();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(u||t(),!h||!g)return;let y={rootMargin:-f(m)+"px "+-f(i.clientWidth-(p+h))+"px "+-f(i.clientHeight-(m+g))+"px "+-f(p)+"px",threshold:a(0,l(1,c))||1},w=!0;function v(t){let r=t[0].intersectionRatio;if(r!==c){if(!w)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||em(d,e.getBoundingClientRect())||s(),w=!1}try{r=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,y)}r.observe(e)}(!0),o}(p,n):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),t&&y.observe(t));let w=d?eo(e):null;return d&&function t(){let r=eo(e);w&&!em(w,r)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===en}),elements:{reference:el.anchor},middleware:[{name:(W={name:"offset",options:r=n={mainAxis:U+eN,alignmentAxis:Y},async fn(e){var t,n;let{x:i,y:o,placement:l,middlewareData:a}=e,s=await j(e,r);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}).name,fn:W.fn,options:[n,void 0]},q&&{name:(k={name:"shift",options:u=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===Q?{fn:(o=void 0,{options:o={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:f=!0}=d(o,e),u={x:t,y:n},c=y(r),m=h(c),g=u[m],w=u[c],v=d(a,e),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+x.mainAxis,n=i.reference[m]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(f){var b,R;let e="y"===m?"width":"height",t=L.has(p(r)),n=i.reference[c]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[c])||0)+(t?0:x.crossAxis),o=i.reference[c]+i.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[c])||0)-(t?x.crossAxis:0);w<n?w=n:w>o&&(w=o)}return{[m]:g,[c]:w}}}).fn,options:[void 0,void 0]}:void 0,...eP},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(u,e),m={x:t,y:n},g=await i.detectOverflow(e,c),w=y(p(r)),v=h(w),x=m[v],b=m[w];if(o){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+g[e],r=x-g[t];x=a(n,l(x,r))}if(s){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=b+g[e],r=b-g[t];b=a(n,l(b,r))}let R=f.fn({...e,[v]:x,[w]:b});return{...R,data:{x:R.x-t,y:R.y-n,enabled:{[v]:o,[w]:s}}}}}).name,fn:k.fn,options:[s,void 0]},q&&{name:(F={name:"flip",options:A=c={...eP},async fn(e){var t,n,r,i,o,l,a,s;let f,u,c,{placement:N,middlewareData:O,rects:S,initialPlacement:C,platform:P,elements:T}=e,{mainAxis:L=!0,crossAxis:j=!0,fallbackPlacements:M,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:_=!0,...W}=d(A,e);if(null!=(t=O.arrow)&&t.alignmentOffset)return{};let k=p(N),F=y(C),I=p(C)===C,V=await (null==P.isRTL?void 0:P.isRTL(T.floating)),H=M||(I||!_?[E(C)]:(f=E(C),[w(C),f,w(f)])),B="none"!==D;!M&&B&&H.push(...(u=m(C),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:v;return t?v:x;case"left":case"right":return t?b:R;default:return[]}}(p(C),"start"===D,V),u&&(c=c.map(e=>e+"-"+u),_&&(c=c.concat(c.map(w)))),c));let z=[C,...H],U=await P.detectOverflow(e,W),X=[],Y=(null==(n=O.flip)?void 0:n.overflows)||[];if(L&&X.push(U[k]),j){let e,t,n,r,i=(l=N,a=S,void 0===(s=V)&&(s=!1),e=m(l),n=g(t=h(y(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=E(r)),[r,E(r)]);X.push(U[i[0]],U[i[1]])}if(Y=[...Y,{placement:N,overflows:X}],!X.every(e=>e<=0)){let e=((null==(r=O.flip)?void 0:r.index)||0)+1,t=z[e];if(t&&("alignment"!==j||F===y(t)||Y.every(e=>y(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(i=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch($){case"bestFit":{let e=null==(o=Y.filter(e=>{if(B){let t=y(e.placement);return t===F||"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:o[0];e&&(n=e);break}case"initialPlacement":n=C}if(N!==n)return{reset:{placement:n}}}return{}}}).name,fn:F.fn,options:[c,void 0]},{name:(I={name:"size",options:O=N={...eP,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:o,rects:s,platform:f,elements:u}=e,{apply:c=()=>{},...h}=d(O,e),g=await f.detectOverflow(e,h),w=p(o),v=m(o),x="y"===y(o),{width:b,height:R}=s.floating;"top"===w||"bottom"===w?(r=w,i=v===(await (null==f.isRTL?void 0:f.isRTL(u.floating))?"start":"end")?"left":"right"):(i=w,r="end"===v?"top":"bottom");let E=R-g.top-g.bottom,A=b-g.left-g.right,N=l(R-g[r],E),S=l(b-g[i],A),C=!e.middlewareData.shift,P=N,T=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=A),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(P=E),C&&!v){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);x?T=b-2*(0!==e||0!==t?e+t:a(g.left,g.right)):P=R-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await c({...e,availableWidth:T,availableHeight:P});let L=await f.getDimensions(u.floating);return b!==L.width||R!==L.height?{reset:{rects:!0}}:{}}}).name,fn:I.fn,options:[N,void 0]},eu&&{name:(V={name:"arrow",options:M=S={element:eu,padding:Z},fn(e){let{element:t,padding:n}="function"==typeof M?M(e):M;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eh({element:t.current,padding:n}).fn(e):{}:t?eh({element:t,padding:n}).fn(e):{}}}).name,fn:V.fn,options:[S,void 0]},eK({arrowWidth:eA,arrowHeight:eN}),ee&&{name:(H={name:"hide",options:D=$={strategy:"referenceHidden",...eP},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=d(D,e);switch(r){case"referenceHidden":{let r=P(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:T(r)}}}case"escaped":{let r=P(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:T(r)}}}default:return{}}}}).name,fn:H.fn,options:[$,void 0]}]}),[eI,eV]=eG(e_),ez=(0,eL.c)(er);(0,ej.N)(()=>{eW&&ez?.()},[eW,ez]);let eU=eF.arrow?.x,eX=eF.arrow?.y,eY=eF.arrow?.centerOffset!==0,[eZ,eJ]=i.useState();return(0,ej.N)(()=>{ea&&eJ(window.getComputedStyle(ea).zIndex)},[ea]),(0,eE.jsx)("div",{ref:e$.setFloating,"data-radix-popper-content-wrapper":"",style:{...eD,transform:eW?eD.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eZ,"--radix-popper-transform-origin":[eF.transformOrigin?.x,eF.transformOrigin?.y].join(" "),...eF.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eB,{scope:B,placedSide:eI,onArrowChange:ec,arrowX:eU,arrowY:eX,shouldHideArrow:eY,children:(0,eE.jsx)(eT.div,{"data-side":eI,"data-align":eV,...ei,ref:ef,style:{...ei.style,animation:eW?void 0:"none"}})})})});eU.displayName=eH;var eX="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ez(eX,n),o=eY[i.placedSide];return(0,eE.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eE.jsx)(eS,{...r,ref:t,style:{...r.style,display:"block"}})})});function eq(e){return null!==e}eZ.displayName=eX;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,f]=eG(n),u={start:"0%",center:"50%",end:"100%"}[f],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",m="";return"bottom"===s?(p=o?u:`${c}px`,m=`${-a}px`):"top"===s?(p=o?u:`${c}px`,m=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,m=o?u:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=o?u:`${d}px`),{data:{x:p,y:m}}}});function eG(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=eF,eQ=eV,e0=eU,e1=eZ},98979:(e,t,n)=>{n.d(t,{i:()=>a});var r,i=n(12115),o=n(66294),l=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,s,f]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return l(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&f.current?.(n)}else s(t)},[u,e,s,f])]}Symbol("RADIX:SYNC_STATE")}}]);

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.