Files
OpenIsle/_next/static/chunks/5089-fea54186e672067a.js

1 line
30 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5089],{1481:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(13700),i=n(12115),o=n(95155),l=(0,i.forwardRef)(({href:e="#",external:t=!(e.startsWith("/")||e.startsWith("#")||e.startsWith(".")),prefetch:n,...i},l)=>t?(0,o.jsx)("a",{ref:l,href:e,rel:"noreferrer noopener",target:"_blank",...i,children:i.children}):(0,o.jsx)(r.N_,{ref:l,href:e,prefetch:n,...i}));l.displayName="Link",n(65156)},29947:(e,t,n)=>{n.d(t,{Ke:()=>f,Nt:()=>a,R6:()=>s});var r=n(95155),i=n(57259),o=n(12115),l=n(75889);let a=i.bL,s=i.R6,f=(0,o.forwardRef)((e,t)=>{let{children:n,...a}=e,[s,f]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{f(!0)},[]),(0,r.jsx)(i.Ke,{ref:t,...a,className:(0,l.QP)("overflow-hidden",s&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",a.className),children:n})});f.displayName=i.Ke.displayName},34212:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},57259:(e,t,n)=>{n.d(t,{Ke:()=>R,R6:()=>v,UC:()=>T,bL:()=>S,l9:()=>L,z3:()=>m});var r=n(12115),i=n(92556),o=n(3468),l=n(23558),a=n(4129),s=n(94446),f=n(97602),u=n(76842),c=n(68946),d=n(95155),p="Collapsible",[h,m]=(0,o.A)(p),[g,y]=h(p),w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...u}=e,[h,m]=(0,l.i)({prop:i,defaultProp:null!=o&&o,onChange:s,caller:p});return(0,d.jsx)(g,{scope:n,disabled:a,contentId:(0,c.B)(),open:h,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,d.jsx)(f.sG.div,{"data-state":C(h),"data-disabled":a?"":void 0,...u,ref:t})})});w.displayName=p;var x="CollapsibleTrigger",v=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(x,n);return(0,d.jsx)(f.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.mK)(e.onClick,o.onOpenToggle)})});v.displayName=x;var b="CollapsibleContent",R=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=y(b,e.__scopeCollapsible);return(0,d.jsx)(u.C,{present:n||i.open,children:e=>{let{present:n}=e;return(0,d.jsx)(A,{...r,ref:t,present:n})}})});R.displayName=b;var A=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...l}=e,u=y(b,n),[c,p]=r.useState(i),h=r.useRef(null),m=(0,s.s)(t,h),g=r.useRef(0),w=g.current,x=r.useRef(0),v=x.current,R=u.open||c,A=r.useRef(R),S=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.N)(()=>{let e=h.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,x.current=t.width,A.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),p(i)}},[u.open,i]),(0,d.jsx)(f.sG.div,{"data-state":C(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!R,...l,ref:m,style:{"--radix-collapsible-content-height":w?"".concat(w,"px"):void 0,"--radix-collapsible-content-width":v?"".concat(v,"px"):void 0,...e.style},children:R&&o})});function C(e){return e?"open":"closed"}var S=w,L=v,T=R},57641:(e,t,n)=>{n.d(t,{Mz:()=>e0,i3:()=>e5,UC:()=>e1,bL:()=>eZ,Bk:()=>eF});var r=n(12115);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,s=Math.floor,f=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function w(e){return y.has(p(e))?"y":"x"}function x(e){return e.replace(/start|end/g,e=>c[e])}let v=["left","right"],b=["right","left"],R=["top","bottom"],A=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(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 T(e,t,n){let r,{reference:i,floating:o}=e,l=w(t),a=m(w(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,y=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(h(t)){case"start":r[a]-=y*(n&&u?-1:1);break;case"end":r[a]+=y*(n&&u?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=T(f,r,s),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:y,data:w,reset:x}=await m({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:f,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,c=null!=y?y:c,p={...p,[o]:{...p[o],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(f=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:c}=T(f,d,s)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:p}};async function O(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:h=0}=d(t,e),m=S(h),g=a[p?"floating"===c?"reference":"floating":c],y=L(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,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),v=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=L(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:s}):w);return{top:(y.top-b.top+m.top)/v.y,bottom:(b.bottom-y.bottom+m.bottom)/v.y,left:(y.left-b.left+m.left)/v.x,right:(b.right-y.right+m.right)/v.x}}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return i.some(t=>e[t]>=0)}let k=new Set(["left","top"]);async function D(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=h(n),s="y"===w(n),f=k.has(l)?-1:1,u=o&&s?-1:1,c=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),s?{x:g*u,y:m*f}:{x:m*f,y:g*u}}function j(){return"undefined"!=typeof window}function H(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function F(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!j()&&(e instanceof Node||e instanceof W(e).Node)}function z(e){return!!j()&&(e instanceof Element||e instanceof W(e).Element)}function B(e){return!!j()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function _(e){return!!j()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let V=new Set(["inline","contents"]);function I(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!V.has(i)}let G=new Set(["table","td","th"]),K=[":popover-open",":modal"];function Y(e){return K.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let $=["transform","translate","scale","rotate","perspective"],q=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function U(e){let t=Q(),n=z(e)?ee(e):e;return $.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||q.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let J=new Set(["html","body","#document"]);function Z(e){return J.has(H(e))}function ee(e){return W(e).getComputedStyle(e)}function et(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===H(e))return e;let t=e.assignedSlot||e.parentNode||_(e)&&e.host||F(e);return _(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&I(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=W(i);if(o){let e=ei(l);return t.concat(l,l.visualViewport||[],I(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=a(n)!==o||a(r)!==l;return s&&(n=o,r=l),{width:n,height:r,$:s}}function el(e){return z(e)?e:e.contextElement}function ea(e){let t=el(e);if(!B(t))return f(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eo(t),l=(o?a(n.width):n.width)/r,s=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let es=f(0);function ef(e){let t=W(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=el(e),a=f(1);t&&(r?z(r)&&(a=ea(r)):a=ea(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===W(l))&&i)?ef(l):f(0),u=(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=W(l),t=r&&z(r)?W(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=ea(i),t=i.getBoundingClientRect(),r=ee(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=o,c+=l,i=ei(n=W(i))}}return L({width:d,height:p,x:u,y:c})}function ec(e,t){let n=et(e).scrollLeft;return t?t.left+n:eu(F(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ec(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function eh(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=W(e),r=F(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=Q();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let f=ec(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)r=function(e){let t=F(e),n=et(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ec(e),s=-n.scrollTop;return"rtl"===ee(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(F(e));else if(z(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=B(e)?ea(e):f(1),l=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:l,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=ef(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!B(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return F(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=W(e);if(Y(e))return r;if(!B(e)){let t=en(e);for(;t&&!Z(t);){if(z(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,G.has(H(n)))&&em(i);)i=eg(i,t);return i&&Z(i)&&em(i)&&!U(i)?r:i||function(e){let t=en(e);for(;B(t)&&!Z(t);){if(U(t))return t;if(Y(t))break;t=en(t)}return null}(e)||r}let ew=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),i=F(t),o="fixed"===n,l=eu(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=f(0);if(r||!r&&!o)if(("body"!==H(t)||I(i))&&(a=et(t)),r){let e=eu(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ec(i));o&&!r&&i&&(s.x=ec(i));let u=!i||r||o?f(0):ed(i,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.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}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=F(r),a=!!t&&Y(t.floating);if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=f(1),c=f(0),d=B(r);if((d||!d&&!o)&&(("body"!==H(r)||I(l))&&(s=et(r)),B(r))){let e=eu(r);u=ea(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||o?f(0):ed(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-s.scrollTop*u.y+c.y+p.y}},getDocumentElement:F,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?Y(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>z(e)&&"body"!==H(e)),i=null,o="fixed"===ee(e).position,l=o?en(e):e;for(;z(l)&&!Z(l);){let t=ee(l),n=U(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ep.has(i.position)||I(l)&&!n&&function e(t,n){let r=en(t);return!(r===n||!z(r)||Z(r))&&("fixed"===ee(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=en(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((e,n)=>{let r=eh(t,n,i);return e.top=l(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=l(r.left,e.left),e},eh(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},getOffsetParent:ey,getElementRects:ew,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:ea,isElement:z,isRTL:function(e){return"rtl"===ee(e).direction}};function ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:s,elements:f,middlewareData:u}=t,{element:c,padding:p=0}=d(e,t)||{};if(null==c)return{};let y=S(p),x={x:n,y:r},v=m(w(i)),b=g(v),R=await s.getDimensions(c),A="y"===v,C=A?"clientHeight":"clientWidth",L=a.reference[b]+a.reference[v]-x[v]-a.floating[b],T=x[v]-a.reference[v],E=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),O=E?E[C]:0;O&&await (null==s.isElement?void 0:s.isElement(E))||(O=f.floating[C]||a.floating[b]);let N=O/2-R[b]/2-1,P=o(y[A?"top":"left"],N),k=o(y[A?"bottom":"right"],N),D=O-R[b]-k,j=O/2-R[b]/2+(L/2-T/2),H=l(P,o(j,D)),W=!u.arrow&&null!=h(i)&&j!==H&&a.reference[b]/2-(j<P?P:k)-R[b]/2<0,F=W?j<P?j-P:j-D:0;return{[v]:x[v]+F,data:{[v]:H,centerOffset:j-H-F,...W&&{alignmentOffset:F}},reset:W}}});var eR=n(47650),eA="undefined"!=typeof document?r.useLayoutEffect:function(){};function eC(e,t){let n,r,i;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(!eC(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)&&!eC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eL(e,t){let n=eS(e);return Math.round(t*n)/n}function eT(e){let t=r.useRef(e);return eA(()=>{t.current=e}),t}var eE=n(97602),eO=n(95155),eN=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eO.jsx)(eE.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eO.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eN.displayName="Arrow";var eP=n(94446),ek=n(3468),eD=n(70222),ej=n(4129),eH="Popper",[eW,eF]=(0,ek.A)(eH),[eM,ez]=eW(eH),eB=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eO.jsx)(eM,{scope:t,anchor:i,onAnchorChange:o,children:n})};eB.displayName=eH;var e_="PopperAnchor",eV=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=ez(e_,n),a=r.useRef(null),s=(0,eP.s)(t,a),f=r.useRef(null);return r.useEffect(()=>{let e=f.current;f.current=(null==i?void 0:i.current)||a.current,e!==f.current&&l.onAnchorChange(f.current)}),i?null:(0,eO.jsx)(eE.sG.div,{...o,ref:s})});eV.displayName=e_;var eI="PopperContent",[eG,eK]=eW(eI),eY=r.forwardRef((e,t)=>{var n,i,a,f,u,c,y,S;let{__scopePopper:L,side:T="bottom",sideOffset:j=0,align:H="center",alignOffset:W=0,arrowPadding:M=0,avoidCollisions:z=!0,collisionBoundary:B=[],collisionPadding:_=0,sticky:V="partial",hideWhenDetached:I=!1,updatePositionStrategy:G="optimized",onPlaced:K,...Y}=e,$=ez(eI,L),[q,X]=r.useState(null),U=(0,eP.s)(t,e=>X(e)),[Q,J]=r.useState(null),Z=function(e){let[t,n]=r.useState(void 0);return(0,ej.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}(Q),ee=null!=(y=null==Z?void 0:Z.width)?y:0,et=null!=(S=null==Z?void 0:Z.height)?S:0,en="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},ei=Array.isArray(B)?B:[B],eo=ei.length>0,ea={padding:en,boundary:ei.filter(eU),altBoundary:eo},{refs:es,floatingStyles:ef,placement:ec,isPositioned:ed,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:f,open:u}=e,[c,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);eC(p,i)||h(i);let[m,g]=r.useState(null),[y,w]=r.useState(null),x=r.useCallback(e=>{e!==A.current&&(A.current=e,g(e))},[]),v=r.useCallback(e=>{e!==C.current&&(C.current=e,w(e))},[]),b=l||m,R=a||y,A=r.useRef(null),C=r.useRef(null),S=r.useRef(c),L=null!=f,T=eT(f),O=eT(o),N=eT(u),P=r.useCallback(()=>{if(!A.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),((e,t,n)=>{let r=new Map,i={platform:ex,...n},o={...i.platform,_c:r};return E(e,t,{...i,platform:o})})(A.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};k.current&&!eC(S.current,t)&&(S.current=t,eR.flushSync(()=>{d(t)}))})},[p,t,n,O,N]);eA(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=r.useRef(!1);eA(()=>(k.current=!0,()=>{k.current=!1}),[]),eA(()=>{if(b&&(A.current=b),R&&(C.current=R),b&&R){if(T.current)return T.current(b,R,P);P()}},[b,R,P,T,L]);let D=r.useMemo(()=>({reference:A,floating:C,setReference:x,setFloating:v}),[x,v]),j=r.useMemo(()=>({reference:b,floating:R}),[b,R]),H=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eL(j.floating,c.x),r=eL(j.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eS(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,j.floating,c.x,c.y]);return r.useMemo(()=>({...c,update:P,refs:D,elements:j,floatingStyles:H}),[c,P,D,j,H])}({strategy:"fixed",placement:T+("center"!==H?"-"+H:""),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 i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:f=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=el(e),h=a||f?[...p?er(p):[],...er(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),f&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,r=null,i=F(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function f(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),a();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;let y=s(h),w=s(i.clientWidth-(p+m)),x={rootMargin:-y+"px "+-w+"px "+-s(i.clientHeight-(h+g))+"px "+-s(p)+"px",threshold:l(0,o(1,c))||1},v=!0;function b(t){let r=t[0].intersectionRatio;if(r!==c){if(!v)return f();r?f(!1,r):n=setTimeout(()=>{f(!1,1e-7)},1e3)}1!==r||ev(d,e.getBoundingClientRect())||f(),v=!1}try{r=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(b,x)}r.observe(e)}(!0),a}(p,n):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?eu(e):null;return d&&function t(){let r=eu(e);w&&!ev(w,r)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===G})},elements:{reference:$.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await D(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}}(e),options:[e,t]}))({mainAxis:j+et,alignmentAxis:W}),z&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=d(e,t),c={x:n,y:r},h=await O(t,u),g=w(p(i)),y=m(g),x=c[y],v=c[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}if(s){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=v+h[e],r=v-h[t];v=l(n,o(v,r))}let b=f.fn({...t,[y]:x,[g]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:a,[g]:s}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===V?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:f=!0}=d(e,t),u={x:n,y:r},c=w(i),h=m(c),g=u[h],y=u[c],x=d(a,t),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;g<t?g=t:g>n&&(g=n)}if(f){var b,R;let e="y"===h?"width":"height",t=k.has(p(i)),n=o.reference[c]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[c])||0)+(t?0:v.crossAxis),r=o.reference[c]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[c])||0)-(t?v.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:g,[c]:y}}}}(e),options:[e,t]}))():void 0,...ea}),z&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:s,rects:f,initialPlacement:u,platform:c,elements:y}=t,{mainAxis:S=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:P=!0,...k}=d(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let D=p(a),j=w(u),H=p(u)===u,W=await (null==c.isRTL?void 0:c.isRTL(y.floating)),F=T||(H||!P?[C(u)]:function(e){let t=C(e);return[x(e),t,x(t)]}(u)),M="none"!==N;!T&&M&&F.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:v;return t?v:b;case"left":case"right":return t?R:A;default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}(u,P,N,W));let z=[u,...F],B=await O(t,k),_=[],V=(null==(r=s.flip)?void 0:r.overflows)||[];if(S&&_.push(B[D]),L){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(w(e)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=C(l)),[l,C(l)]}(a,f,W);_.push(B[e[0]],B[e[1]])}if(V=[...V,{placement:a,overflows:_}],!_.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=z[e];if(t&&("alignment"!==L||j===w(t)||V.every(e=>w(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(o=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=V.filter(e=>{if(M){let t=w(e.placement);return t===j||"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=u}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...ea}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,a,{placement:s,rects:f,platform:u,elements:c}=t,{apply:m=()=>{},...g}=d(e,t),y=await O(t,g),x=p(s),v=h(s),b="y"===w(s),{width:R,height:A}=f.floating;"top"===x||"bottom"===x?(i=x,a=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=x,i="end"===v?"top":"bottom");let C=A-y.top-y.bottom,S=R-y.left-y.right,L=o(A-y[i],C),T=o(R-y[a],S),E=!t.middlewareData.shift,N=L,P=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=C),E&&!v){let e=l(y.left,0),t=l(y.right,0),n=l(y.top,0),r=l(y.bottom,0);b?P=R-2*(0!==e||0!==t?e+t:l(y.left,y.right)):N=A-2*(0!==n||0!==r?n+r:l(y.top,y.bottom))}await m({...t,availableWidth:P,availableHeight:N});let k=await u.getDimensions(c.floating);return R!==k.width||A!==k.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),Q&&((e,t)=>({...(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?eb({element:n.current,padding:r}).fn(t):{}:n?eb({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:Q,padding:M}),eQ({arrowWidth:ee,arrowHeight:et}),I&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=N(await O(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{let e=N(await O(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...ea})]}),[eh,em]=eJ(ec),eg=(0,eD.c)(K);(0,ej.N)(()=>{ed&&(null==eg||eg())},[ed,eg]);let ey=null==(n=ep.arrow)?void 0:n.x,ew=null==(i=ep.arrow)?void 0:i.y,eN=(null==(a=ep.arrow)?void 0:a.centerOffset)!==0,[ek,eH]=r.useState();return(0,ej.N)(()=>{q&&eH(window.getComputedStyle(q).zIndex)},[q]),(0,eO.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...ef,transform:ed?ef.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(f=ep.transformOrigin)?void 0:f.x,null==(u=ep.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ep.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eO.jsx)(eG,{scope:L,placedSide:eh,onArrowChange:J,arrowX:ey,arrowY:ew,shouldHideArrow:eN,children:(0,eO.jsx)(eE.sG.div,{"data-side":eh,"data-align":em,...Y,ref:U,style:{...Y.style,animation:ed?void 0:"none"}})})})});eY.displayName=eI;var e$="PopperArrow",eq={top:"bottom",right:"left",bottom:"top",left:"right"},eX=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eK(e$,n),o=eq[i.placedSide];return(0,eO.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,eO.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}eX.displayName=e$;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:s,middlewareData:f}=t,u=(null==(n=f.arrow)?void 0:n.centerOffset)!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=eJ(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(o=null==(r=f.arrow)?void 0:r.x)?o:0)+c/2,y=(null!=(l=null==(i=f.arrow)?void 0:i.y)?l:0)+d/2,w="",x="";return"bottom"===p?(w=u?m:"".concat(g,"px"),x="".concat(-d,"px")):"top"===p?(w=u?m:"".concat(g,"px"),x="".concat(s.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),x=u?m:"".concat(y,"px")):"left"===p&&(w="".concat(s.floating.width+d,"px"),x=u?m:"".concat(y,"px")),{data:{x:w,y:x}}}});function eJ(e){let[t,n="center"]=e.split("-");return[t,n]}var eZ=eB,e0=eV,e1=eY,e5=eX},89496:(e,t,n)=>{function r(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function i(e,t,n=!0){return(e=r(e))===(t=r(t))||n&&t.startsWith(`${e}/`)}function o(e,t){return e.urls?e.urls.has(r(t)):i(e.url,t,!0)}n.d(t,{$:()=>i,c:()=>o})}}]);