@latticexyz/explorer 2.2.22-b94aca694dd82b32bf78de9e6408f61b32e5b8e2 → 2.2.22-bc1e7cb9cfb39fc8c81201b15f8f5528df778192

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +30 -30
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +3 -3
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +2 -2
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js +1 -1
  16. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  22. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +3 -3
  24. package/.next/standalone/packages/explorer/.next/server/chunks/1468.js +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/chunks/4825.js +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/chunks/5631.js +8 -8
  27. package/.next/standalone/packages/explorer/.next/server/chunks/6561.js +1 -1
  28. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  29. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  30. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  31. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  32. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  33. package/.next/standalone/packages/explorer/.next/static/chunks/{3239-6446b60cd5ba2dad.js → 3239-467328660cdd9026.js} +1 -1
  34. package/.next/standalone/packages/explorer/.next/static/chunks/{3284-995d5f018d56e038.js → 3284-dcbe027b73186fed.js} +1 -1
  35. package/.next/standalone/packages/explorer/.next/static/chunks/3498-e3179fe39066891e.js +1 -0
  36. package/.next/standalone/packages/explorer/.next/static/chunks/{4967-fc84ee213a314203.js → 4967-1eefa5b7f66cdb04.js} +1 -1
  37. package/.next/standalone/packages/explorer/.next/static/chunks/{8140-6f29e5c85554d00c.js → 8140-0c2aa4d02f2770ec.js} +1 -1
  38. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-4d102de41c0358a1.js +1 -0
  39. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-244782b96162bd9a.js +1 -0
  40. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/{page-cc97270db6e6520b.js → page-7c2d153d9c716ac7.js} +1 -1
  41. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/{page-c63ec3245138b763.js → page-1fe70dad2ec457c2.js} +1 -1
  42. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-0103ba6d146dae7c.js +26 -0
  43. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/{layout-283fb4da5bcdd673.js → layout-4ec6ead9bf21dc82.js} +1 -1
  44. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-e78b926f6f1dfc43.js +21 -0
  45. package/package.json +10 -10
  46. package/.next/standalone/packages/explorer/.next/static/chunks/5433-a4c2b9ff58e464c7.js +0 -1
  47. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-c087f3d193d732b7.js +0 -1
  48. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-96ba71d217878c29.js +0 -1
  49. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-2e1862e07ee775a4.js +0 -26
  50. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-830fbfd61b893a66.js +0 -21
  51. /package/.next/standalone/packages/explorer/.next/static/{pcHcENiQxnRF8gM8Y61CA → Bz4DHhqSFHcIewsZOWzEy}/_buildManifest.js +0 -0
  52. /package/.next/standalone/packages/explorer/.next/static/{pcHcENiQxnRF8gM8Y61CA → Bz4DHhqSFHcIewsZOWzEy}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3284],{50929:function(e,t,n){n.d(t,{x7:function(){return ec},Me:function(){return er},oo:function(){return ef},RR:function(){return el},Cp:function(){return eu},dr:function(){return es},cv:function(){return eo},uY:function(){return ei},dp:function(){return ea}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(d(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function y(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 b(e,t,n){let r,{reference:o,floating:i}=e,l=m(t),a=h(m(t)),u=v(a),c=d(t),s="y"===l,f=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,w=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=w*(n&&s?-1:1);break;case"end":r[a]+=w*(n&&s?-1:1)}return r}let S=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:f}=b(c,r,u),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:m,y:g,data:w,reset:x}=await v({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,f=null!=g?g:f,p={...p,[i]:{...p[i],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=b(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function R(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:p=!1,padding:h=0}=f(t,e),v=x(h),m=a[p?"floating"===d?"reference":"floating":d],g=y(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),w="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),S=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(g.top-R.top+v.top)/S.y,bottom:(R.bottom-g.bottom+v.bottom)/S.y,left:(g.left-R.left+v.left)/S.x,right:(R.right-g.right+v.right)/S.x}}function C(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 r.some(t=>e[t]>=0)}async function A(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=d(n),a=p(n),u="y"===m(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,h=f(t,e),{mainAxis:v,crossAxis:g,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),u?{x:g*s,y:v*c}:{x:v*c,y:g*s}}function E(e){return P(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(P(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function P(e){return e instanceof Node||e instanceof M(e).Node}function k(e){return e instanceof Element||e instanceof M(e).Element}function L(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=H(),n=k(e)?W(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function H(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function I(e){return["html","body","#document"].includes(E(e))}function W(e){return M(e).getComputedStyle(e)}function _(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===E(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||j(e);return D(t)?t.host:t}function F(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=B(t);return I(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&N(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=M(o);if(i){let e=z(l);return t.concat(l,l.visualViewport||[],N(o)?o:[],e&&n?F(e):[])}return t.concat(o,F(o,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=W(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=L(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function K(e){return k(e)?e:e.contextElement}function U(e){let t=K(e);if(!L(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let X=u(0);function q(e){let t=M(e);return H()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function Z(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=K(e),a=u(1);t&&(r?k(r)&&(a=U(r)):a=U(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===M(l))&&o)?q(l):u(0),s=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=M(l),t=r&&k(r)?M(r):r,n=e,o=z(n);for(;o&&r&&t!==n;){let e=U(o),t=o.getBoundingClientRect(),r=W(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=l,o=z(n=M(o))}}return y({width:d,height:p,x:s,y:f})}function $(e){return Z(j(e)).left+_(e).scrollLeft}function G(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=M(e),r=j(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=H();(!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=j(e),n=_(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+$(e),u=-n.scrollTop;return"rtl"===W(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(j(e));else if(k(t))r=function(e,t){let n=Z(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=L(e)?U(e):u(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return y(r)}function J(e){return"static"===W(e).position}function Q(e,t){return L(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=M(e);if(O(e))return n;if(!L(e)){let t=B(e);for(;t&&!I(t);){if(k(t)&&!J(t))return t;t=B(t)}return n}let r=Q(e,t);for(;r&&["table","td","th"].includes(E(r))&&J(r);)r=Q(r,t);return r&&I(r)&&J(r)&&!V(r)?n:r||function(e){let t=B(e);for(;L(t)&&!I(t);){if(V(t))return t;if(O(t))break;t=B(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=L(t),o=j(t),i="fixed"===n,l=Z(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!i){if(("body"!==E(t)||N(o))&&(a=_(t)),r){let e=Z(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=$(o))}return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-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}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=j(r),a=!!t&&O(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1),f=u(0),d=L(r);if((d||!d&&!i)&&(("body"!==E(r)||N(l))&&(c=_(r)),L(r))){let e=Z(r);s=U(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+f.x,y:n.y*s.y-c.scrollTop*s.y+f.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?O(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=F(e,[],!1).filter(e=>k(e)&&"body"!==E(e)),o=null,i="fixed"===W(e).position,l=i?B(e):e;for(;k(l)&&!I(l);){let t=W(l),n=V(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||N(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!k(r)||I(r))&&("fixed"===W(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((e,n)=>{let r=G(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},G(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:U,isElement:k,isRTL:function(e){return"rtl"===W(e).direction}};function er(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=K(e),h=u||c?[...p?F(p):[],...F(t)]:[];h.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let v=p&&f?function(e,t){let n,r=null,l=j(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),u();let{left:d,top:p,width:h,height:v}=e.getBoundingClientRect();if(s||t(),!h||!v)return;let m=a(p),g=a(l.clientWidth-(d+h)),w={rootMargin:-m+"px "+-g+"px "+-a(l.clientHeight-(p+v))+"px "+-a(d)+"px",threshold:i(0,o(1,f))||1},x=!0;function y(e){let t=e[0].intersectionRatio;if(t!==f){if(!x)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(y,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(y,w)}r.observe(e)}(!0),u}(p,n):null,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let w=d?Z(e):null;return d&&function t(){let r=Z(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(l)}}let eo=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 A(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}}}}},ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=f(e,t),p={x:n,y:r},v=await R(t,s),g=m(d(l)),w=h(g),x=p[w],y=p[g];if(a){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+v[e],r=x-v[t];x=i(n,o(x,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+v[e],r=y-v[t];y=i(n,o(y,r))}let b=c.fn({...t,[w]:x,[g]:y});return{...b,data:{x:b.x-n,y:b.y-r}}}}},el=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:x,elements:y}=t,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:C,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...M}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let j=d(a),P=m(s),k=d(s)===s,L=await (null==x.isRTL?void 0:x.isRTL(y.floating)),D=C||(k||!E?[w(s)]:function(e){let t=w(e);return[g(e),t,g(t)]}(s)),N="none"!==A;!C&&N&&D.push(...function(e,t,n,r){let o=p(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[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(s,E,A,L));let O=[s,...D],V=await R(t,M),H=[],I=(null==(r=u.flip)?void 0:r.overflows)||[];if(b&&H.push(V[j]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=h(m(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=w(l)),[l,w(l)]}(a,c,L);H.push(V[e[0]],V[e[1]])}if(I=[...I,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(T){case"bestFit":{let e=null==(l=I.filter(e=>{if(N){let t=m(e.placement);return t===P||"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{}}}},ea=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...h}=f(e,t),v=await R(t,h),g=d(l),w=p(l),x="y"===m(l),{width:y,height:b}=a.floating;"top"===g||"bottom"===g?(n=g,r=w===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=g,n="end"===w?"top":"bottom");let S=b-v.top-v.bottom,C=y-v.left-v.right,T=o(b-v[n],S),A=o(y-v[r],C),E=!t.middlewareData.shift,M=T,j=A;if(x?j=w||E?o(A,C):C:M=w||E?o(T,S):S,E&&!w){let e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);x?j=y-2*(0!==e||0!==t?e+t:i(v.left,v.right)):M=b-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await s({...t,availableWidth:j,availableHeight:M});let P=await u.getDimensions(c.floating);return y!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=f(e,t);switch(r){case"referenceHidden":{let e=C(await R(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=C(await R(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:d,padding:g=0}=f(e,t)||{};if(null==d)return{};let w=x(g),y={x:n,y:r},b=h(m(l)),S=v(b),R=await u.getDimensions(d),C="y"===b,T=C?"clientHeight":"clientWidth",A=a.reference[S]+a.reference[b]-y[b]-a.floating[S],E=y[b]-a.reference[b],M=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),j=M?M[T]:0;j&&await (null==u.isElement?void 0:u.isElement(M))||(j=c.floating[T]||a.floating[S]);let P=j/2-R[S]/2-1,k=o(w[C?"top":"left"],P),L=o(w[C?"bottom":"right"],P),D=j-R[S]-L,N=j/2-R[S]/2+(A/2-E/2),O=i(k,o(N,D)),V=!s.arrow&&null!=p(l)&&N!==O&&a.reference[S]/2-(N<k?k:L)-R[S]/2<0,H=V?N<k?N-k:N-D:0;return{[b]:y[b]+H,data:{[b]:O,centerOffset:N-O-H,...V&&{alignmentOffset:H}},reset:V}}}),es=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}=f(e,t),s={x:n,y:r},p=m(o),v=h(p),g=s[v],w=s[p],x=f(a,t),y="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(u){let e="y"===v?"height":"width",t=i.reference[v]-i.floating[e]+y.mainAxis,n=i.reference[v]+i.reference[e]-y.mainAxis;g<t?g=t:g>n&&(g=n)}if(c){var b,S;let e="y"===v?"width":"height",t=["top","left"].includes(d(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:y.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(S=l.offset)?void 0:S[p])||0)-(t?y.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[v]:g,[p]:w}}}},ef=(e,t,n)=>{let r=new Map,o={platform:en,...n},i={...o.platform,_c:r};return S(e,t,{...o,platform:i})}},57429:function(e,t,n){n.d(t,{Cp:function(){return w},RR:function(){return m},YF:function(){return f},cv:function(){return p},dp:function(){return g},dr:function(){return v},uY:function(){return h},x7:function(){return x}});var r=n(50929),o=n(46760),i=n(49938),l="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(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(!a(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)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:v=!0,whileElementsMounted:m,open:g}=e,[w,x]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,b]=o.useState(f);a(y,f)||b(f);let[S,R]=o.useState(null),[C,T]=o.useState(null),A=o.useCallback(e=>{e!==P.current&&(P.current=e,R(e))},[]),E=o.useCallback(e=>{e!==k.current&&(k.current=e,T(e))},[]),M=p||S,j=h||C,P=o.useRef(null),k=o.useRef(null),L=o.useRef(w),D=null!=m,N=s(m),O=s(d),V=o.useCallback(()=>{if(!P.current||!k.current)return;let e={placement:t,strategy:n,middleware:y};O.current&&(e.platform=O.current),(0,r.oo)(P.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};H.current&&!a(L.current,t)&&(L.current=t,i.flushSync(()=>{x(t)}))})},[y,t,n,O]);l(()=>{!1===g&&L.current.isPositioned&&(L.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[g]);let H=o.useRef(!1);l(()=>(H.current=!0,()=>{H.current=!1}),[]),l(()=>{if(M&&(P.current=M),j&&(k.current=j),M&&j){if(N.current)return N.current(M,j,V);V()}},[M,j,V,N,D]);let I=o.useMemo(()=>({reference:P,floating:k,setReference:A,setFloating:E}),[A,E]),W=o.useMemo(()=>({reference:M,floating:j}),[M,j]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!W.floating)return e;let t=c(W.floating,w.x),r=c(W.floating,w.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...u(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,W.floating,w.x,w.y]);return o.useMemo(()=>({...w,update:V,refs:I,elements:W,floatingStyles:_}),[w,V,I,W,_])}let d=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),v=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),w=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),x=(e,t)=>({...d(e),options:[e,t]})},5084:function(e,t,n){n.d(t,{u:function(){return r}});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},59649:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(46760),o=n(26086),i=n(79540),l=n(85767),a=n(25418);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};f.displayName=t;let d=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(d,n),u=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(l.g7,{ref:u,children:r})});p.displayName=d;let h=e+"CollectionItemSlot",v="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),f=(0,i.e)(t,c),d=s(h,n);return r.useEffect(()=>(d.itemMap.set(c,{ref:c,...u}),()=>void d.itemMap.delete(c))),(0,a.jsx)(l.g7,{[v]:"",ref:f,children:o})});return m.displayName=h,[{Provider:f,Slot:p,ItemSlot:m},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]}},37560:function(e,t,n){n.d(t,{_9:function(){return l},gm:function(){return a}});var r=n(46760),o=n(25418),i=r.createContext(void 0),l=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(i.Provider,{value:t,children:n})};function a(e){let t=r.useContext(i);return e||t||"ltr"}},55261:function(e,t,n){n.d(t,{ee:function(){return D},Eh:function(){return O},VY:function(){return N},fC:function(){return L},D7:function(){return m}});var r=n(46760),o=n(57429),i=n(50929),l=n(38098),a=n(25418),u=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(l.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});u.displayName="Arrow";var c=n(79540),s=n(26086),f=n(90661),d=n(9101),p=n(27691),h="Popper",[v,m]=(0,s.b)(h),[g,w]=v(h),x=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,a.jsx)(g,{scope:t,anchor:o,onAnchorChange:i,children:n})};x.displayName=h;var y="PopperAnchor",b=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,u=w(y,n),s=r.useRef(null),f=(0,c.e)(t,s);return r.useEffect(()=>{u.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,a.jsx)(l.WV.div,{...i,ref:f})});b.displayName=y;var S="PopperContent",[R,C]=v(S),T=r.forwardRef((e,t)=>{var n,u,s,h,v,m,g,x;let{__scopePopper:y,side:b="bottom",sideOffset:C=0,align:T="center",alignOffset:A=0,arrowPadding:E=0,avoidCollisions:M=!0,collisionBoundary:L=[],collisionPadding:D=0,sticky:N="partial",hideWhenDetached:O=!1,updatePositionStrategy:V="optimized",onPlaced:H,...I}=e,W=w(S,y),[_,B]=r.useState(null),F=(0,c.e)(t,e=>B(e)),[z,Y]=r.useState(null),K=(0,p.t)(z),U=null!==(g=null==K?void 0:K.width)&&void 0!==g?g:0,X=null!==(x=null==K?void 0:K.height)&&void 0!==x?x:0,q="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},Z=Array.isArray(L)?L:[L],$=Z.length>0,G={padding:q,boundary:Z.filter(j),altBoundary:$},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,o.YF)({strategy:"fixed",placement:b+("center"!==T?"-"+T:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.Me)(...t,{animationFrame:"always"===V})},elements:{reference:W.anchor},middleware:[(0,o.cv)({mainAxis:C+X,alignmentAxis:A}),M&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?(0,o.dr)():void 0,...G}),M&&(0,o.RR)({...G}),(0,o.dp)({...G,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"))}}),z&&(0,o.x7)({element:z,padding:E}),P({arrowWidth:U,arrowHeight:X}),O&&(0,o.Cp)({strategy:"referenceHidden",...G})]}),[er,eo]=k(ee),ei=(0,f.W)(H);(0,d.b)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ea=null===(u=en.arrow)||void 0===u?void 0:u.y,eu=(null===(s=en.arrow)||void 0===s?void 0:s.centerOffset)!==0,[ec,es]=r.useState();return(0,d.b)(()=>{_&&es(window.getComputedStyle(_).zIndex)},[_]),(0,a.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(h=en.transformOrigin)||void 0===h?void 0:h.x,null===(v=en.transformOrigin)||void 0===v?void 0:v.y].join(" "),...(null===(m=en.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(R,{scope:y,placedSide:er,onArrowChange:Y,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,a.jsx)(l.WV.div,{"data-side":er,"data-align":eo,...I,ref:F,style:{...I.style,animation:et?void 0:"none"}})})})});T.displayName=S;var A="PopperArrow",E={top:"bottom",right:"left",bottom:"top",left:"right"},M=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=C(A,n),i=E[o.placedSide];return(0,a.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,a.jsx)(u,{...r,ref:t,style:{...r.style,display:"block"}})})});function j(e){return null!==e}M.displayName=A;var P=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?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=k(a),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,w="",x="";return"bottom"===p?(w=s?v:"".concat(m,"px"),x="".concat(-d,"px")):"top"===p?(w=s?v:"".concat(m,"px"),x="".concat(u.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),x=s?v:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+d,"px"),x=s?v:"".concat(g,"px")),{data:{x:w,y:x}}}});function k(e){let[t,n="center"]=e.split("-");return[t,n]}var L=x,D=b,N=T,O=M},93284:function(e,t,n){n.d(t,{$G:function(){return eF},B4:function(){return ek},JO:function(){return eL},VY:function(){return eN},Z0:function(){return ez},ZA:function(){return eV},__:function(){return eH},ck:function(){return eI},eT:function(){return eW},fC:function(){return ej},h_:function(){return eD},l_:function(){return eO},u_:function(){return eB},wU:function(){return e_},xz:function(){return eP}});var r=n(46760),o=n(49938),i=n(5084),l=n(37986),a=n(59649),u=n(79540),c=n(26086),s=n(37560),f=n(66068),d=n(65052),p=n(8750),h=n(5593),v=n(55261),m=n(37963),g=n(38098),w=n(85767),x=n(90661),y=n(39782),b=n(9101),S=n(10546),R=n(58588),C=n(11145),T=n(72734),A=n(25418),E=[" ","Enter","ArrowUp","ArrowDown"],M=[" ","Enter"],j="Select",[P,k,L]=(0,a.B)(j),[D,N]=(0,c.b)(j,[L,v.D7]),O=(0,v.D7)(),[V,H]=D(j),[I,W]=D(j),_=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:f,name:d,autoComplete:p,disabled:m,required:g}=e,w=O(t),[x,b]=r.useState(null),[S,R]=r.useState(null),[C,T]=r.useState(!1),E=(0,s.gm)(f),[M=!1,j]=(0,y.T)({prop:o,defaultProp:i,onChange:l}),[k,L]=(0,y.T)({prop:a,defaultProp:u,onChange:c}),D=r.useRef(null),N=!x||!!x.closest("form"),[H,W]=r.useState(new Set),_=Array.from(H).map(e=>e.props.value).join(";");return(0,A.jsx)(v.fC,{...w,children:(0,A.jsxs)(V,{required:g,scope:t,trigger:x,onTriggerChange:b,valueNode:S,onValueNodeChange:R,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:(0,h.M)(),value:k,onValueChange:L,open:M,onOpenChange:j,dir:E,triggerPointerDownPosRef:D,disabled:m,children:[(0,A.jsx)(P.Provider,{scope:t,children:(0,A.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{W(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{W(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,A.jsxs)(eA,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:p,value:k,onChange:e=>L(e.target.value),disabled:m,children:[void 0===k?(0,A.jsx)("option",{value:""}):null,Array.from(H)]},_):null]})})};_.displayName=j;var B="SelectTrigger",F=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=O(n),a=H(B,n),c=a.disabled||r,s=(0,u.e)(t,a.onTriggerChange),f=k(n),[d,p,h]=eE(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eM(t,e,n);void 0!==r&&a.onValueChange(r.value)}),m=()=>{c||(a.onOpenChange(!0),h())};return(0,A.jsx)(v.ee,{asChild:!0,...i,children:(0,A.jsx)(g.WV.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eT(a.value)?"":void 0,...o,ref:s,onClick:(0,l.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,l.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,l.M)(o.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&E.includes(e.key)&&(m(),e.preventDefault())})})})});F.displayName=B;var z="SelectValue",Y=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,c=H(z,n),{onValueNodeHasChildrenChange:s}=c,f=void 0!==i,d=(0,u.e)(t,c.onValueNodeChange);return(0,b.b)(()=>{s(f)},[s,f]),(0,A.jsx)(g.WV.span,{...a,ref:d,style:{pointerEvents:"none"},children:eT(c.value)?(0,A.jsx)(A.Fragment,{children:l}):i})});Y.displayName=z;var K=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,A.jsx)(g.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});K.displayName="SelectIcon";var U=e=>(0,A.jsx)(m.Portal,{asChild:!0,...e});U.displayName="SelectPortal";var X="SelectContent",q=r.forwardRef((e,t)=>{let n=H(X,e.__scopeSelect),[i,l]=r.useState();return((0,b.b)(()=>{l(new DocumentFragment)},[]),n.open)?(0,A.jsx)(G,{...e,ref:t}):i?o.createPortal((0,A.jsx)(Z,{scope:e.__scopeSelect,children:(0,A.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,A.jsx)("div",{children:e.children})})}),i):null});q.displayName=X;var[Z,$]=D(X),G=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:R,...E}=e,M=H(X,n),[j,P]=r.useState(null),[L,D]=r.useState(null),N=(0,u.e)(t,e=>P(e)),[O,V]=r.useState(null),[I,W]=r.useState(null),_=k(n),[B,F]=r.useState(!1),z=r.useRef(!1);r.useEffect(()=>{if(j)return(0,C.Ry)(j)},[j]),(0,d.EW)();let Y=r.useCallback(e=>{let[t,...n]=_().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&L&&(L.scrollTop=0),n===r&&L&&(L.scrollTop=L.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[_,L]),K=r.useCallback(()=>Y([O,j]),[Y,O,j]);r.useEffect(()=>{B&&K()},[B,K]);let{onOpenChange:U,triggerPointerDownPosRef:q}=M;r.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=q.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=q.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():j.contains(n.target)||U(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[j,U,q]),r.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[$,G]=eE(e=>{let t=_().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eM(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==M.value&&M.value===t||r)&&(V(e),r&&(z.current=!0))},[M.value]),et=r.useCallback(()=>null==j?void 0:j.focus(),[j]),en=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==M.value&&M.value===t||r)&&W(e)},[M.value]),er="popper"===o?Q:J,eo=er===Q?{side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:R}:{};return(0,A.jsx)(Z,{scope:n,content:j,viewport:L,onViewportChange:D,itemRefCallback:ee,selectedItem:O,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:K,selectedItemText:I,position:o,isPositioned:B,searchRef:$,children:(0,A.jsx)(T.Z,{as:w.g7,allowPinchZoom:!0,children:(0,A.jsx)(p.M,{asChild:!0,trapped:M.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(i,e=>{var t;null===(t=M.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,A.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:(0,A.jsx)(er,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:e=>e.preventDefault(),...E,...eo,onPlaced:()=>F(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,l.M)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>Y(t)),e.preventDefault()}})})})})})})});G.displayName="SelectContentImpl";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...l}=e,a=H(X,n),c=$(X,n),[s,f]=r.useState(null),[d,p]=r.useState(null),h=(0,u.e)(t,e=>p(e)),v=k(n),m=r.useRef(!1),w=r.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:R}=c,C=r.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&d&&x&&y&&S){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,u=e.width+a,c=Math.max(u,t.width),f=window.innerWidth-10,d=(0,i.u)(l,[10,f-c]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,u=e.width+a,c=Math.max(u,t.width),f=window.innerWidth-10,d=(0,i.u)(l,[10,f-c]);s.style.minWidth=u+"px",s.style.right=d+"px"}let l=v(),u=window.innerHeight-20,c=x.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),g=parseInt(f.borderBottomWidth,10),w=p+h+c+parseInt(f.paddingBottom,10)+g,b=Math.min(5*y.offsetHeight,w),R=window.getComputedStyle(x),C=parseInt(R.paddingTop,10),T=parseInt(R.paddingBottom,10),A=e.top+e.height/2-10,E=y.offsetHeight/2,M=p+h+(y.offsetTop+E);if(M<=A){let e=y===l[l.length-1].ref.current;s.style.bottom="0px";let t=d.clientHeight-x.offsetTop-x.offsetHeight;s.style.height=M+Math.max(u-A,E+(e?T:0)+t+g)+"px"}else{let e=y===l[0].ref.current;s.style.top="0px";let t=Math.max(A,p+x.offsetTop+(e?C:0)+E);s.style.height=t+(w-M)+"px",x.scrollTop=M-A+x.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=b+"px",s.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>m.current=!0)}},[v,a.trigger,a.valueNode,s,d,x,y,S,a.dir,o]);(0,b.b)(()=>C(),[C]);let[T,E]=r.useState();(0,b.b)(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);let M=r.useCallback(e=>{e&&!0===w.current&&(C(),null==R||R(),w.current=!1)},[C,R]);return(0,A.jsx)(ee,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:M,children:(0,A.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,A.jsx)(g.WV.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=O(n);return(0,A.jsx)(v.VY,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=D(X,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,a=$(en,n),c=et(en,n),s=(0,u.e)(t,a.onViewportChange),f=r.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,A.jsx)(P.Slot,{scope:n,children:(0,A.jsx)(g.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,l.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(f.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});er.displayName=en;var eo="SelectGroup",[ei,el]=D(eo),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,h.M)();return(0,A.jsx)(ei,{scope:n,id:o,children:(0,A.jsx)(g.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ea.displayName=eo;var eu="SelectLabel",ec=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=el(eu,n);return(0,A.jsx)(g.WV.div,{id:o.id,...r,ref:t})});ec.displayName=eu;var es="SelectItem",[ef,ed]=D(es),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:a,...c}=e,s=H(es,n),f=$(es,n),d=s.value===o,[p,v]=r.useState(null!=a?a:""),[m,w]=r.useState(!1),x=(0,u.e)(t,e=>{var t;return null===(t=f.itemRefCallback)||void 0===t?void 0:t.call(f,e,o,i)}),y=(0,h.M)(),b=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(""===o)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,A.jsx)(ef,{scope:n,value:o,disabled:i,textId:y,isSelected:d,onItemTextChange:r.useCallback(e=>{v(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,A.jsx)(P.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,A.jsx)(g.WV.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:x,onFocus:(0,l.M)(c.onFocus,()=>w(!0)),onBlur:(0,l.M)(c.onBlur,()=>w(!1)),onPointerUp:(0,l.M)(c.onPointerUp,b),onPointerMove:(0,l.M)(c.onPointerMove,e=>{if(i){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}}),onKeyDown:(0,l.M)(c.onKeyDown,e=>{var t;(null===(t=f.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(M.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});ep.displayName=es;var eh="SelectItemText",ev=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:l,...a}=e,c=H(eh,n),s=$(eh,n),f=ed(eh,n),d=W(eh,n),[p,h]=r.useState(null),v=(0,u.e)(t,e=>h(e),f.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,f.value,f.disabled)}),m=null==p?void 0:p.textContent,w=r.useMemo(()=>(0,A.jsx)("option",{value:f.value,disabled:f.disabled,children:m},f.value),[f.disabled,f.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=d;return(0,b.b)(()=>(x(w),()=>y(w)),[x,y,w]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(g.WV.span,{id:f.textId,...a,ref:v}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?o.createPortal(a.children,c.valueNode):null]})});ev.displayName=eh;var em="SelectItemIndicator",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ed(em,n).isSelected?(0,A.jsx)(g.WV.span,{"aria-hidden":!0,...r,ref:t}):null});eg.displayName=em;var ew="SelectScrollUpButton",ex=r.forwardRef((e,t)=>{let n=$(ew,e.__scopeSelect),o=et(ew,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,b.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,A.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=ew;var ey="SelectScrollDownButton",eb=r.forwardRef((e,t)=>{let n=$(ey,e.__scopeSelect),o=et(ey,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,b.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,A.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,a=$("SelectScrollButton",n),u=r.useRef(null),c=k(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,b.b)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,A.jsx)(g.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,l.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(i.onPointerLeave,()=>{s()})})}),eR=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,A.jsx)(g.WV.div,{"aria-hidden":!0,...r,ref:t})});eR.displayName="SelectSeparator";var eC="SelectArrow";function eT(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=O(n),i=H(eC,n),l=$(eC,n);return i.open&&"popper"===l.position?(0,A.jsx)(v.Eh,{...o,...r,ref:t}):null}).displayName=eC;var eA=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),l=(0,u.e)(t,i),a=(0,S.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,A.jsx)(R.T,{asChild:!0,children:(0,A.jsx)("select",{...o,ref:l,defaultValue:n})})});function eE(e){let t=(0,x.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eM(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}eA.displayName="BubbleSelect";var ej=_,eP=F,ek=Y,eL=K,eD=U,eN=q,eO=er,eV=ea,eH=ec,eI=ep,eW=ev,e_=eg,eB=ex,eF=eb,ez=eR},10546:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(46760);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},27691:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(46760),o=n(9101);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{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}},58588:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(46760),o=n(38098),i=n(25418),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3284],{50929:function(e,t,n){n.d(t,{x7:function(){return ec},Me:function(){return er},oo:function(){return ef},RR:function(){return el},Cp:function(){return eu},dr:function(){return es},cv:function(){return eo},uY:function(){return ei},dp:function(){return ea}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(d(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function y(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 b(e,t,n){let r,{reference:o,floating:i}=e,l=m(t),a=h(m(t)),u=v(a),c=d(t),s="y"===l,f=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,w=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=w*(n&&s?-1:1);break;case"end":r[a]+=w*(n&&s?-1:1)}return r}let S=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:f}=b(c,r,u),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:m,y:g,data:w,reset:x}=await v({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,f=null!=g?g:f,p={...p,[i]:{...p[i],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=b(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function R(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:p=!1,padding:h=0}=f(t,e),v=x(h),m=a[p?"floating"===d?"reference":"floating":d],g=y(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),w="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),S=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(g.top-R.top+v.top)/S.y,bottom:(R.bottom-g.bottom+v.bottom)/S.y,left:(g.left-R.left+v.left)/S.x,right:(R.right-g.right+v.right)/S.x}}function C(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 r.some(t=>e[t]>=0)}async function A(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=d(n),a=p(n),u="y"===m(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,h=f(t,e),{mainAxis:v,crossAxis:g,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),u?{x:g*s,y:v*c}:{x:v*c,y:g*s}}function E(e){return P(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(P(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function P(e){return e instanceof Node||e instanceof M(e).Node}function k(e){return e instanceof Element||e instanceof M(e).Element}function L(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=H(),n=k(e)?W(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function H(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function I(e){return["html","body","#document"].includes(E(e))}function W(e){return M(e).getComputedStyle(e)}function _(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===E(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||j(e);return D(t)?t.host:t}function F(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=B(t);return I(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&N(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=M(o);if(i){let e=z(l);return t.concat(l,l.visualViewport||[],N(o)?o:[],e&&n?F(e):[])}return t.concat(o,F(o,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=W(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=L(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function K(e){return k(e)?e:e.contextElement}function U(e){let t=K(e);if(!L(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let X=u(0);function q(e){let t=M(e);return H()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function Z(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=K(e),a=u(1);t&&(r?k(r)&&(a=U(r)):a=U(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===M(l))&&o)?q(l):u(0),s=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=M(l),t=r&&k(r)?M(r):r,n=e,o=z(n);for(;o&&r&&t!==n;){let e=U(o),t=o.getBoundingClientRect(),r=W(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=l,o=z(n=M(o))}}return y({width:d,height:p,x:s,y:f})}function $(e){return Z(j(e)).left+_(e).scrollLeft}function G(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=M(e),r=j(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=H();(!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=j(e),n=_(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+$(e),u=-n.scrollTop;return"rtl"===W(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(j(e));else if(k(t))r=function(e,t){let n=Z(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=L(e)?U(e):u(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return y(r)}function J(e){return"static"===W(e).position}function Q(e,t){return L(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=M(e);if(O(e))return n;if(!L(e)){let t=B(e);for(;t&&!I(t);){if(k(t)&&!J(t))return t;t=B(t)}return n}let r=Q(e,t);for(;r&&["table","td","th"].includes(E(r))&&J(r);)r=Q(r,t);return r&&I(r)&&J(r)&&!V(r)?n:r||function(e){let t=B(e);for(;L(t)&&!I(t);){if(V(t))return t;if(O(t))break;t=B(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=L(t),o=j(t),i="fixed"===n,l=Z(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!i){if(("body"!==E(t)||N(o))&&(a=_(t)),r){let e=Z(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=$(o))}return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-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}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=j(r),a=!!t&&O(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1),f=u(0),d=L(r);if((d||!d&&!i)&&(("body"!==E(r)||N(l))&&(c=_(r)),L(r))){let e=Z(r);s=U(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+f.x,y:n.y*s.y-c.scrollTop*s.y+f.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?O(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=F(e,[],!1).filter(e=>k(e)&&"body"!==E(e)),o=null,i="fixed"===W(e).position,l=i?B(e):e;for(;k(l)&&!I(l);){let t=W(l),n=V(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||N(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!k(r)||I(r))&&("fixed"===W(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((e,n)=>{let r=G(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},G(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:U,isElement:k,isRTL:function(e){return"rtl"===W(e).direction}};function er(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=K(e),h=u||c?[...p?F(p):[],...F(t)]:[];h.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let v=p&&f?function(e,t){let n,r=null,l=j(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),u();let{left:d,top:p,width:h,height:v}=e.getBoundingClientRect();if(s||t(),!h||!v)return;let m=a(p),g=a(l.clientWidth-(d+h)),w={rootMargin:-m+"px "+-g+"px "+-a(l.clientHeight-(p+v))+"px "+-a(d)+"px",threshold:i(0,o(1,f))||1},x=!0;function y(e){let t=e[0].intersectionRatio;if(t!==f){if(!x)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(y,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(y,w)}r.observe(e)}(!0),u}(p,n):null,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let w=d?Z(e):null;return d&&function t(){let r=Z(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(l)}}let eo=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 A(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}}}}},ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=f(e,t),p={x:n,y:r},v=await R(t,s),g=m(d(l)),w=h(g),x=p[w],y=p[g];if(a){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+v[e],r=x-v[t];x=i(n,o(x,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+v[e],r=y-v[t];y=i(n,o(y,r))}let b=c.fn({...t,[w]:x,[g]:y});return{...b,data:{x:b.x-n,y:b.y-r}}}}},el=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:x,elements:y}=t,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:C,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...M}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let j=d(a),P=m(s),k=d(s)===s,L=await (null==x.isRTL?void 0:x.isRTL(y.floating)),D=C||(k||!E?[w(s)]:function(e){let t=w(e);return[g(e),t,g(t)]}(s)),N="none"!==A;!C&&N&&D.push(...function(e,t,n,r){let o=p(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[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(s,E,A,L));let O=[s,...D],V=await R(t,M),H=[],I=(null==(r=u.flip)?void 0:r.overflows)||[];if(b&&H.push(V[j]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=h(m(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=w(l)),[l,w(l)]}(a,c,L);H.push(V[e[0]],V[e[1]])}if(I=[...I,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(T){case"bestFit":{let e=null==(l=I.filter(e=>{if(N){let t=m(e.placement);return t===P||"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{}}}},ea=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...h}=f(e,t),v=await R(t,h),g=d(l),w=p(l),x="y"===m(l),{width:y,height:b}=a.floating;"top"===g||"bottom"===g?(n=g,r=w===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=g,n="end"===w?"top":"bottom");let S=b-v.top-v.bottom,C=y-v.left-v.right,T=o(b-v[n],S),A=o(y-v[r],C),E=!t.middlewareData.shift,M=T,j=A;if(x?j=w||E?o(A,C):C:M=w||E?o(T,S):S,E&&!w){let e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);x?j=y-2*(0!==e||0!==t?e+t:i(v.left,v.right)):M=b-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await s({...t,availableWidth:j,availableHeight:M});let P=await u.getDimensions(c.floating);return y!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=f(e,t);switch(r){case"referenceHidden":{let e=C(await R(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=C(await R(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:d,padding:g=0}=f(e,t)||{};if(null==d)return{};let w=x(g),y={x:n,y:r},b=h(m(l)),S=v(b),R=await u.getDimensions(d),C="y"===b,T=C?"clientHeight":"clientWidth",A=a.reference[S]+a.reference[b]-y[b]-a.floating[S],E=y[b]-a.reference[b],M=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),j=M?M[T]:0;j&&await (null==u.isElement?void 0:u.isElement(M))||(j=c.floating[T]||a.floating[S]);let P=j/2-R[S]/2-1,k=o(w[C?"top":"left"],P),L=o(w[C?"bottom":"right"],P),D=j-R[S]-L,N=j/2-R[S]/2+(A/2-E/2),O=i(k,o(N,D)),V=!s.arrow&&null!=p(l)&&N!==O&&a.reference[S]/2-(N<k?k:L)-R[S]/2<0,H=V?N<k?N-k:N-D:0;return{[b]:y[b]+H,data:{[b]:O,centerOffset:N-O-H,...V&&{alignmentOffset:H}},reset:V}}}),es=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}=f(e,t),s={x:n,y:r},p=m(o),v=h(p),g=s[v],w=s[p],x=f(a,t),y="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(u){let e="y"===v?"height":"width",t=i.reference[v]-i.floating[e]+y.mainAxis,n=i.reference[v]+i.reference[e]-y.mainAxis;g<t?g=t:g>n&&(g=n)}if(c){var b,S;let e="y"===v?"width":"height",t=["top","left"].includes(d(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:y.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(S=l.offset)?void 0:S[p])||0)-(t?y.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[v]:g,[p]:w}}}},ef=(e,t,n)=>{let r=new Map,o={platform:en,...n},i={...o.platform,_c:r};return S(e,t,{...o,platform:i})}},57429:function(e,t,n){n.d(t,{Cp:function(){return w},RR:function(){return m},YF:function(){return f},cv:function(){return p},dp:function(){return g},dr:function(){return v},uY:function(){return h},x7:function(){return x}});var r=n(50929),o=n(46760),i=n(49938),l="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(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(!a(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)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:v=!0,whileElementsMounted:m,open:g}=e,[w,x]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,b]=o.useState(f);a(y,f)||b(f);let[S,R]=o.useState(null),[C,T]=o.useState(null),A=o.useCallback(e=>{e!==P.current&&(P.current=e,R(e))},[]),E=o.useCallback(e=>{e!==k.current&&(k.current=e,T(e))},[]),M=p||S,j=h||C,P=o.useRef(null),k=o.useRef(null),L=o.useRef(w),D=null!=m,N=s(m),O=s(d),V=o.useCallback(()=>{if(!P.current||!k.current)return;let e={placement:t,strategy:n,middleware:y};O.current&&(e.platform=O.current),(0,r.oo)(P.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};H.current&&!a(L.current,t)&&(L.current=t,i.flushSync(()=>{x(t)}))})},[y,t,n,O]);l(()=>{!1===g&&L.current.isPositioned&&(L.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[g]);let H=o.useRef(!1);l(()=>(H.current=!0,()=>{H.current=!1}),[]),l(()=>{if(M&&(P.current=M),j&&(k.current=j),M&&j){if(N.current)return N.current(M,j,V);V()}},[M,j,V,N,D]);let I=o.useMemo(()=>({reference:P,floating:k,setReference:A,setFloating:E}),[A,E]),W=o.useMemo(()=>({reference:M,floating:j}),[M,j]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!W.floating)return e;let t=c(W.floating,w.x),r=c(W.floating,w.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...u(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,W.floating,w.x,w.y]);return o.useMemo(()=>({...w,update:V,refs:I,elements:W,floatingStyles:_}),[w,V,I,W,_])}let d=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),v=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),w=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),x=(e,t)=>({...d(e),options:[e,t]})},5084:function(e,t,n){n.d(t,{u:function(){return r}});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},59649:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(46760),o=n(26086),i=n(79540),l=n(85767),a=n(25418);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};f.displayName=t;let d=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(d,n),u=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(l.g7,{ref:u,children:r})});p.displayName=d;let h=e+"CollectionItemSlot",v="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),f=(0,i.e)(t,c),d=s(h,n);return r.useEffect(()=>(d.itemMap.set(c,{ref:c,...u}),()=>void d.itemMap.delete(c))),(0,a.jsx)(l.g7,{[v]:"",ref:f,children:o})});return m.displayName=h,[{Provider:f,Slot:p,ItemSlot:m},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]}},37560:function(e,t,n){n.d(t,{_9:function(){return l},gm:function(){return a}});var r=n(46760),o=n(25418),i=r.createContext(void 0),l=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(i.Provider,{value:t,children:n})};function a(e){let t=r.useContext(i);return e||t||"ltr"}},55261:function(e,t,n){n.d(t,{ee:function(){return D},Eh:function(){return O},VY:function(){return N},fC:function(){return L},D7:function(){return m}});var r=n(46760),o=n(57429),i=n(50929),l=n(38098),a=n(25418),u=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(l.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});u.displayName="Arrow";var c=n(79540),s=n(26086),f=n(90661),d=n(9101),p=n(27691),h="Popper",[v,m]=(0,s.b)(h),[g,w]=v(h),x=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,a.jsx)(g,{scope:t,anchor:o,onAnchorChange:i,children:n})};x.displayName=h;var y="PopperAnchor",b=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,u=w(y,n),s=r.useRef(null),f=(0,c.e)(t,s);return r.useEffect(()=>{u.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,a.jsx)(l.WV.div,{...i,ref:f})});b.displayName=y;var S="PopperContent",[R,C]=v(S),T=r.forwardRef((e,t)=>{var n,u,s,h,v,m,g,x;let{__scopePopper:y,side:b="bottom",sideOffset:C=0,align:T="center",alignOffset:A=0,arrowPadding:E=0,avoidCollisions:M=!0,collisionBoundary:L=[],collisionPadding:D=0,sticky:N="partial",hideWhenDetached:O=!1,updatePositionStrategy:V="optimized",onPlaced:H,...I}=e,W=w(S,y),[_,B]=r.useState(null),F=(0,c.e)(t,e=>B(e)),[z,Y]=r.useState(null),K=(0,p.t)(z),U=null!==(g=null==K?void 0:K.width)&&void 0!==g?g:0,X=null!==(x=null==K?void 0:K.height)&&void 0!==x?x:0,q="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},Z=Array.isArray(L)?L:[L],$=Z.length>0,G={padding:q,boundary:Z.filter(j),altBoundary:$},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,o.YF)({strategy:"fixed",placement:b+("center"!==T?"-"+T:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.Me)(...t,{animationFrame:"always"===V})},elements:{reference:W.anchor},middleware:[(0,o.cv)({mainAxis:C+X,alignmentAxis:A}),M&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?(0,o.dr)():void 0,...G}),M&&(0,o.RR)({...G}),(0,o.dp)({...G,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"))}}),z&&(0,o.x7)({element:z,padding:E}),P({arrowWidth:U,arrowHeight:X}),O&&(0,o.Cp)({strategy:"referenceHidden",...G})]}),[er,eo]=k(ee),ei=(0,f.W)(H);(0,d.b)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ea=null===(u=en.arrow)||void 0===u?void 0:u.y,eu=(null===(s=en.arrow)||void 0===s?void 0:s.centerOffset)!==0,[ec,es]=r.useState();return(0,d.b)(()=>{_&&es(window.getComputedStyle(_).zIndex)},[_]),(0,a.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(h=en.transformOrigin)||void 0===h?void 0:h.x,null===(v=en.transformOrigin)||void 0===v?void 0:v.y].join(" "),...(null===(m=en.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(R,{scope:y,placedSide:er,onArrowChange:Y,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,a.jsx)(l.WV.div,{"data-side":er,"data-align":eo,...I,ref:F,style:{...I.style,animation:et?void 0:"none"}})})})});T.displayName=S;var A="PopperArrow",E={top:"bottom",right:"left",bottom:"top",left:"right"},M=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=C(A,n),i=E[o.placedSide];return(0,a.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,a.jsx)(u,{...r,ref:t,style:{...r.style,display:"block"}})})});function j(e){return null!==e}M.displayName=A;var P=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?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=k(a),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,w="",x="";return"bottom"===p?(w=s?v:"".concat(m,"px"),x="".concat(-d,"px")):"top"===p?(w=s?v:"".concat(m,"px"),x="".concat(u.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),x=s?v:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+d,"px"),x=s?v:"".concat(g,"px")),{data:{x:w,y:x}}}});function k(e){let[t,n="center"]=e.split("-");return[t,n]}var L=x,D=b,N=T,O=M},93284:function(e,t,n){n.d(t,{$G:function(){return eF},B4:function(){return ek},JO:function(){return eL},VY:function(){return eN},Z0:function(){return ez},ZA:function(){return eV},__:function(){return eH},ck:function(){return eI},eT:function(){return eW},fC:function(){return ej},h_:function(){return eD},l_:function(){return eO},u_:function(){return eB},wU:function(){return e_},xz:function(){return eP}});var r=n(46760),o=n(49938),i=n(5084),l=n(37986),a=n(59649),u=n(79540),c=n(26086),s=n(37560),f=n(66068),d=n(65052),p=n(8750),h=n(5593),v=n(55261),m=n(37963),g=n(38098),w=n(85767),x=n(90661),y=n(39782),b=n(9101),S=n(10546),R=n(58588),C=n(11145),T=n(80684),A=n(25418),E=[" ","Enter","ArrowUp","ArrowDown"],M=[" ","Enter"],j="Select",[P,k,L]=(0,a.B)(j),[D,N]=(0,c.b)(j,[L,v.D7]),O=(0,v.D7)(),[V,H]=D(j),[I,W]=D(j),_=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:f,name:d,autoComplete:p,disabled:m,required:g}=e,w=O(t),[x,b]=r.useState(null),[S,R]=r.useState(null),[C,T]=r.useState(!1),E=(0,s.gm)(f),[M=!1,j]=(0,y.T)({prop:o,defaultProp:i,onChange:l}),[k,L]=(0,y.T)({prop:a,defaultProp:u,onChange:c}),D=r.useRef(null),N=!x||!!x.closest("form"),[H,W]=r.useState(new Set),_=Array.from(H).map(e=>e.props.value).join(";");return(0,A.jsx)(v.fC,{...w,children:(0,A.jsxs)(V,{required:g,scope:t,trigger:x,onTriggerChange:b,valueNode:S,onValueNodeChange:R,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:(0,h.M)(),value:k,onValueChange:L,open:M,onOpenChange:j,dir:E,triggerPointerDownPosRef:D,disabled:m,children:[(0,A.jsx)(P.Provider,{scope:t,children:(0,A.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{W(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{W(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,A.jsxs)(eA,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:p,value:k,onChange:e=>L(e.target.value),disabled:m,children:[void 0===k?(0,A.jsx)("option",{value:""}):null,Array.from(H)]},_):null]})})};_.displayName=j;var B="SelectTrigger",F=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=O(n),a=H(B,n),c=a.disabled||r,s=(0,u.e)(t,a.onTriggerChange),f=k(n),[d,p,h]=eE(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eM(t,e,n);void 0!==r&&a.onValueChange(r.value)}),m=()=>{c||(a.onOpenChange(!0),h())};return(0,A.jsx)(v.ee,{asChild:!0,...i,children:(0,A.jsx)(g.WV.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eT(a.value)?"":void 0,...o,ref:s,onClick:(0,l.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,l.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,l.M)(o.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&E.includes(e.key)&&(m(),e.preventDefault())})})})});F.displayName=B;var z="SelectValue",Y=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,c=H(z,n),{onValueNodeHasChildrenChange:s}=c,f=void 0!==i,d=(0,u.e)(t,c.onValueNodeChange);return(0,b.b)(()=>{s(f)},[s,f]),(0,A.jsx)(g.WV.span,{...a,ref:d,style:{pointerEvents:"none"},children:eT(c.value)?(0,A.jsx)(A.Fragment,{children:l}):i})});Y.displayName=z;var K=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,A.jsx)(g.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});K.displayName="SelectIcon";var U=e=>(0,A.jsx)(m.Portal,{asChild:!0,...e});U.displayName="SelectPortal";var X="SelectContent",q=r.forwardRef((e,t)=>{let n=H(X,e.__scopeSelect),[i,l]=r.useState();return((0,b.b)(()=>{l(new DocumentFragment)},[]),n.open)?(0,A.jsx)(G,{...e,ref:t}):i?o.createPortal((0,A.jsx)(Z,{scope:e.__scopeSelect,children:(0,A.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,A.jsx)("div",{children:e.children})})}),i):null});q.displayName=X;var[Z,$]=D(X),G=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:R,...E}=e,M=H(X,n),[j,P]=r.useState(null),[L,D]=r.useState(null),N=(0,u.e)(t,e=>P(e)),[O,V]=r.useState(null),[I,W]=r.useState(null),_=k(n),[B,F]=r.useState(!1),z=r.useRef(!1);r.useEffect(()=>{if(j)return(0,C.Ry)(j)},[j]),(0,d.EW)();let Y=r.useCallback(e=>{let[t,...n]=_().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&L&&(L.scrollTop=0),n===r&&L&&(L.scrollTop=L.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[_,L]),K=r.useCallback(()=>Y([O,j]),[Y,O,j]);r.useEffect(()=>{B&&K()},[B,K]);let{onOpenChange:U,triggerPointerDownPosRef:q}=M;r.useEffect(()=>{if(j){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=q.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=q.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():j.contains(n.target)||U(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[j,U,q]),r.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[$,G]=eE(e=>{let t=_().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eM(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==M.value&&M.value===t||r)&&(V(e),r&&(z.current=!0))},[M.value]),et=r.useCallback(()=>null==j?void 0:j.focus(),[j]),en=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==M.value&&M.value===t||r)&&W(e)},[M.value]),er="popper"===o?Q:J,eo=er===Q?{side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:R}:{};return(0,A.jsx)(Z,{scope:n,content:j,viewport:L,onViewportChange:D,itemRefCallback:ee,selectedItem:O,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:K,selectedItemText:I,position:o,isPositioned:B,searchRef:$,children:(0,A.jsx)(T.Z,{as:w.g7,allowPinchZoom:!0,children:(0,A.jsx)(p.M,{asChild:!0,trapped:M.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(i,e=>{var t;null===(t=M.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,A.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:(0,A.jsx)(er,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:e=>e.preventDefault(),...E,...eo,onPlaced:()=>F(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,l.M)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>Y(t)),e.preventDefault()}})})})})})})});G.displayName="SelectContentImpl";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...l}=e,a=H(X,n),c=$(X,n),[s,f]=r.useState(null),[d,p]=r.useState(null),h=(0,u.e)(t,e=>p(e)),v=k(n),m=r.useRef(!1),w=r.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:R}=c,C=r.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&d&&x&&y&&S){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,u=e.width+a,c=Math.max(u,t.width),f=window.innerWidth-10,d=(0,i.u)(l,[10,f-c]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,u=e.width+a,c=Math.max(u,t.width),f=window.innerWidth-10,d=(0,i.u)(l,[10,f-c]);s.style.minWidth=u+"px",s.style.right=d+"px"}let l=v(),u=window.innerHeight-20,c=x.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),g=parseInt(f.borderBottomWidth,10),w=p+h+c+parseInt(f.paddingBottom,10)+g,b=Math.min(5*y.offsetHeight,w),R=window.getComputedStyle(x),C=parseInt(R.paddingTop,10),T=parseInt(R.paddingBottom,10),A=e.top+e.height/2-10,E=y.offsetHeight/2,M=p+h+(y.offsetTop+E);if(M<=A){let e=y===l[l.length-1].ref.current;s.style.bottom="0px";let t=d.clientHeight-x.offsetTop-x.offsetHeight;s.style.height=M+Math.max(u-A,E+(e?T:0)+t+g)+"px"}else{let e=y===l[0].ref.current;s.style.top="0px";let t=Math.max(A,p+x.offsetTop+(e?C:0)+E);s.style.height=t+(w-M)+"px",x.scrollTop=M-A+x.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=b+"px",s.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>m.current=!0)}},[v,a.trigger,a.valueNode,s,d,x,y,S,a.dir,o]);(0,b.b)(()=>C(),[C]);let[T,E]=r.useState();(0,b.b)(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);let M=r.useCallback(e=>{e&&!0===w.current&&(C(),null==R||R(),w.current=!1)},[C,R]);return(0,A.jsx)(ee,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:M,children:(0,A.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,A.jsx)(g.WV.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=O(n);return(0,A.jsx)(v.VY,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=D(X,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,a=$(en,n),c=et(en,n),s=(0,u.e)(t,a.onViewportChange),f=r.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,A.jsx)(P.Slot,{scope:n,children:(0,A.jsx)(g.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,l.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(f.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});er.displayName=en;var eo="SelectGroup",[ei,el]=D(eo),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,h.M)();return(0,A.jsx)(ei,{scope:n,id:o,children:(0,A.jsx)(g.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ea.displayName=eo;var eu="SelectLabel",ec=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=el(eu,n);return(0,A.jsx)(g.WV.div,{id:o.id,...r,ref:t})});ec.displayName=eu;var es="SelectItem",[ef,ed]=D(es),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:a,...c}=e,s=H(es,n),f=$(es,n),d=s.value===o,[p,v]=r.useState(null!=a?a:""),[m,w]=r.useState(!1),x=(0,u.e)(t,e=>{var t;return null===(t=f.itemRefCallback)||void 0===t?void 0:t.call(f,e,o,i)}),y=(0,h.M)(),b=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(""===o)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,A.jsx)(ef,{scope:n,value:o,disabled:i,textId:y,isSelected:d,onItemTextChange:r.useCallback(e=>{v(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,A.jsx)(P.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,A.jsx)(g.WV.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:x,onFocus:(0,l.M)(c.onFocus,()=>w(!0)),onBlur:(0,l.M)(c.onBlur,()=>w(!1)),onPointerUp:(0,l.M)(c.onPointerUp,b),onPointerMove:(0,l.M)(c.onPointerMove,e=>{if(i){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=f.onItemLeave)||void 0===t||t.call(f)}}),onKeyDown:(0,l.M)(c.onKeyDown,e=>{var t;(null===(t=f.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(M.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});ep.displayName=es;var eh="SelectItemText",ev=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:l,...a}=e,c=H(eh,n),s=$(eh,n),f=ed(eh,n),d=W(eh,n),[p,h]=r.useState(null),v=(0,u.e)(t,e=>h(e),f.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,f.value,f.disabled)}),m=null==p?void 0:p.textContent,w=r.useMemo(()=>(0,A.jsx)("option",{value:f.value,disabled:f.disabled,children:m},f.value),[f.disabled,f.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=d;return(0,b.b)(()=>(x(w),()=>y(w)),[x,y,w]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(g.WV.span,{id:f.textId,...a,ref:v}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?o.createPortal(a.children,c.valueNode):null]})});ev.displayName=eh;var em="SelectItemIndicator",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ed(em,n).isSelected?(0,A.jsx)(g.WV.span,{"aria-hidden":!0,...r,ref:t}):null});eg.displayName=em;var ew="SelectScrollUpButton",ex=r.forwardRef((e,t)=>{let n=$(ew,e.__scopeSelect),o=et(ew,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,b.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,A.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=ew;var ey="SelectScrollDownButton",eb=r.forwardRef((e,t)=>{let n=$(ey,e.__scopeSelect),o=et(ey,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,b.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,A.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,a=$("SelectScrollButton",n),u=r.useRef(null),c=k(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,b.b)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,A.jsx)(g.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,l.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(i.onPointerLeave,()=>{s()})})}),eR=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,A.jsx)(g.WV.div,{"aria-hidden":!0,...r,ref:t})});eR.displayName="SelectSeparator";var eC="SelectArrow";function eT(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=O(n),i=H(eC,n),l=$(eC,n);return i.open&&"popper"===l.position?(0,A.jsx)(v.Eh,{...o,...r,ref:t}):null}).displayName=eC;var eA=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),l=(0,u.e)(t,i),a=(0,S.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,A.jsx)(R.T,{asChild:!0,children:(0,A.jsx)("select",{...o,ref:l,defaultValue:n})})});function eE(e){let t=(0,x.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eM(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}eA.displayName="BubbleSelect";var ej=_,eP=F,ek=Y,eL=K,eD=U,eN=q,eO=er,eV=ea,eH=ec,eI=ep,eW=ev,e_=eg,eB=ex,eF=eb,ez=eR},10546:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(46760);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},27691:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(46760),o=n(9101);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{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}},58588:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(46760),o=n(38098),i=n(25418),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3498],{11145:function(e,t,n){n.d(t,{Ry:function(){return l}});var r=new WeakMap,o=new WeakMap,u={},a=0,i=function(e){return e&&(e.host||i(e.parentNode))},c=function(e,t,n,c){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=i(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});u[n]||(u[n]=new WeakMap);var s=u[n],d=[],f=new Set,v=new Set(l),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};l.forEach(m);var p=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))p(e);else try{var t=e.getAttribute(c),u=null!==t&&"false"!==t,a=(r.get(e)||0)+1,i=(s.get(e)||0)+1;r.set(e,a),s.set(e,i),d.push(e),1===a&&u&&o.set(e,!0),1===i&&e.setAttribute(n,"true"),u||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return p(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,u=s.get(e)-1;r.set(e,t),s.set(e,u),t||(o.has(e)||e.removeAttribute(c),o.delete(e)),u||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,u={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),c(r,o,n,"aria-hidden")):function(){return null}}},80684:function(e,t,n){n.d(t,{Z:function(){return T}});var r=n(52401),o=n(46760),u=n(73839),a=n(262),i=(0,n(16199)._)(),c=function(){},l=o.forwardRef(function(e,t){var n=o.useRef(null),u=o.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),l=u[0],s=u[1],d=e.forwardProps,f=e.children,v=e.className,m=e.removeScrollBar,p=e.enabled,h=e.shards,E=e.sideCar,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,g=e.as,C=e.gapMode,L=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(0,a.q)([n,t]),k=(0,r.pi)((0,r.pi)({},L),l);return o.createElement(o.Fragment,null,p&&o.createElement(E,{sideCar:i,removeScrollBar:m,shards:h,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:C}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},k),{ref:S})):o.createElement(void 0===g?"div":g,(0,r.pi)({},k,{className:v,ref:S}),f))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:u.zi,zeroRight:u.pF};var s=n(32565),d=n(68770),f=n(23359),v=!1;if("undefined"!=typeof window)try{var m=Object.defineProperty({},"passive",{get:function(){return v=!0,!0}});window.addEventListener("test",m,m),window.removeEventListener("test",m,m)}catch(e){v=!1}var p=!!v&&{passive:!1},h=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},E=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=b(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?h(t,"overflowY"):h(t,"overflowX")},b=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},w=function(e,t,n,r,o){var u,a=(u=window.getComputedStyle(t).direction,"h"===e&&"rtl"===u?-1:1),i=a*r,c=n.target,l=t.contains(c),s=!1,d=i>0,f=0,v=0;do{var m=b(e,c),p=m[0],h=m[1]-m[2]-a*p;(p||h)&&y(e,c)&&(f+=h,v+=p),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&i>f)?s=!0:!d&&(o&&1>Math.abs(v)||!o&&-i>v)&&(s=!0),s},g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},C=function(e){return[e.deltaX,e.deltaY]},L=function(e){return e&&"current"in e?e.current:e},S=0,k=[],N=(0,s.L)(i,function(e){var t=o.useRef([]),n=o.useRef([0,0]),u=o.useRef(),a=o.useState(S++)[0],i=o.useState(f.Ws)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(L),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var r,o=g(e),a=n.current,i="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],s=e.target,d=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=E(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=E(d,s)),!f)return!1;if(!u.current&&"changedTouches"in e&&(i||l)&&(u.current=r),!r)return!0;var v=u.current||r;return w(v,t,e,"h"===v?i:l,!0)},[]),s=o.useCallback(function(e){if(k.length&&k[k.length-1]===i){var n="deltaY"in e?C(e):g(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(L).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),v=o.useCallback(function(e,n,r,o){var u={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(u),setTimeout(function(){t.current=t.current.filter(function(e){return e!==u})},1)},[]),m=o.useCallback(function(e){n.current=g(e),u.current=void 0},[]),h=o.useCallback(function(t){v(t.type,C(t),t.target,l(t,e.lockRef.current))},[]),y=o.useCallback(function(t){v(t.type,g(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return k.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",s,p),document.addEventListener("touchmove",s,p),document.addEventListener("touchstart",m,p),function(){k=k.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,p),document.removeEventListener("touchmove",s,p),document.removeEventListener("touchstart",m,p)}},[]);var b=e.removeScrollBar,N=e.inert;return o.createElement(o.Fragment,null,N?o.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,b?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),P=o.forwardRef(function(e,t){return o.createElement(l,(0,r.pi)({},e,{ref:t,sideCar:N}))});P.classNames=l.classNames;var T=P},37986:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},26086:function(e,t,n){n.d(t,{b:function(){return a},k:function(){return u}});var r=n(46760),o=n(25418);function u(e,t){let n=r.createContext(t);function u(e){let{children:t,...u}=e,a=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(n.Provider,{value:a,children:t})}return u.displayName=e+"Provider",[u,function(o){let u=r.useContext(n);if(u)return u;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],u=()=>{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 u.scopeName=e,[function(t,u){let a=r.createContext(u),i=n.length;function c(t){let{scope:n,children:u,...c}=t,l=n?.[e][i]||a,s=r.useMemo(()=>c,Object.values(c));return(0,o.jsx)(l.Provider,{value:s,children:u})}return n=[...n,u],c.displayName=t+"Provider",[c,function(n,o){let c=o?.[e][i]||a,l=r.useContext(c);if(l)return l;if(void 0!==u)return u;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}(u,...t)]}},66068:function(e,t,n){n.d(t,{XB:function(){return v}});var r,o=n(46760),u=n(37986),a=n(38098),i=n(79540),c=n(90661),l=n(18545),s=n(25418),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=o.forwardRef((e,t)=>{var n,v;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:E,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:g,...C}=e,L=o.useContext(f),[S,k]=o.useState(null),N=null!==(v=null==S?void 0:S.ownerDocument)&&void 0!==v?v:null===(n=globalThis)||void 0===n?void 0:n.document,[,P]=o.useState({}),T=(0,i.e)(t,e=>k(e)),R=Array.from(L.layers),[W]=[...L.layersWithOutsidePointerEventsDisabled].slice(-1),M=R.indexOf(W),x=S?R.indexOf(S):-1,A=L.layersWithOutsidePointerEventsDisabled.size>0,D=x>=M,F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.W)(e),u=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!u.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);u.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>u.current=!0}}(e=>{let t=e.target,n=[...L.branches].some(e=>e.contains(t));!D||n||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==g||g())},N),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.W)(e),u=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!u.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}(e=>{let t=e.target;[...L.branches].some(e=>e.contains(t))||(null==b||b(e),null==w||w(e),e.defaultPrevented||null==g||g())},N);return(0,l.e)(e=>{x!==L.layers.size-1||(null==E||E(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},N),o.useEffect(()=>{if(S)return h&&(0===L.layersWithOutsidePointerEventsDisabled.size&&(r=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),L.layersWithOutsidePointerEventsDisabled.add(S)),L.layers.add(S),m(),()=>{h&&1===L.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=r)}},[S,N,h,L]),o.useEffect(()=>()=>{S&&(L.layers.delete(S),L.layersWithOutsidePointerEventsDisabled.delete(S),m())},[S,L]),o.useEffect(()=>{let e=()=>P({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(a.WV.div,{...C,ref:T,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,u.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,u.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,u.M)(e.onPointerDownCapture,F.onPointerDownCapture)})});function m(){let e=new CustomEvent(d);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:o}=r,u=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),o?(0,a.jH)(u,i):u.dispatchEvent(i)}v.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),u=(0,i.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(a.WV.div,{...e,ref:u})}).displayName="DismissableLayerBranch"},65052:function(e,t,n){n.d(t,{EW:function(){return u}});var r=n(46760),o=0;function u(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},8750:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(46760),u=n(79540),a=n(38098),i=n(90661),c=n(25418),l="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:E,...y}=e,[b,w]=o.useState(null),g=(0,i.W)(f),C=(0,i.W)(E),L=o.useRef(null),S=(0,u.e)(t,e=>w(e)),k=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?L.current=t:p(L.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||p(L.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&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,b,k.paused]),o.useEffect(()=>{if(b){h.add(k);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,d);b.addEventListener(l,g),b.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(p(r,{select:t}),document.activeElement!==n)return}(v(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(l,g),setTimeout(()=>{let t=new CustomEvent(s,d);b.addEventListener(s,C),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(s,C),h.remove(k)},0)}}},[b,g,C,k]);let N=o.useCallback(e=>{if(!n&&!r||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,u]=function(e){let t=v(e);return[m(t,e),m(t.reverse(),e)]}(t);r&&u?e.shiftKey||o!==u?e.shiftKey&&o===r&&(e.preventDefault(),n&&p(u,{select:!0})):(e.preventDefault(),n&&p(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,k.paused]);return(0,c.jsx)(a.WV.div,{tabIndex:-1,...y,ref:S,onKeyDown:N})});function v(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 m(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 p(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()}}f.displayName="FocusScope";var h=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=E(r,e)).unshift(e)},remove(e){var t;null===(t=(r=E(r,e))[0])||void 0===t||t.resume()}});function E(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},5593:function(e,t,n){n.d(t,{M:function(){return c}});var r,o=n(46760),u=n(9101),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),i=0;function c(e){let[t,n]=o.useState(a());return(0,u.b)(()=>{e||n(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},37963:function(e,t,n){n.d(t,{Portal:function(){return c}});var r=n(46760),o=n(49938),u=n(38098),a=n(9101),i=n(25418),c=r.forwardRef((e,t)=>{var n,c;let{container:l,...s}=e,[d,f]=r.useState(!1);(0,a.b)(()=>f(!0),[]);let v=l||d&&(null===(c=globalThis)||void 0===c?void 0:null===(n=c.document)||void 0===n?void 0:n.body);return v?o.createPortal((0,i.jsx)(u.WV.div,{...s,ref:t}),v):null});c.displayName="Portal"},90661:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(46760);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},39782:function(e,t,n){n.d(t,{T:function(){return u}});var r=n(46760),o=n(90661);function u({prop:e,defaultProp:t,onChange:n=()=>{}}){let[u,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[u]=n,a=r.useRef(u),i=(0,o.W)(t);return r.useEffect(()=>{a.current!==u&&(i(u),a.current=u)},[u,a,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,c=i?e:u,l=(0,o.W)(n);return[c,r.useCallback(t=>{if(i){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else a(t)},[i,e,a,l])]}},18545:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(46760),o=n(90661);function u(e,t=globalThis?.document){let n=(0,o.W)(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])}},9101:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(46760),o=globalThis?.document?r.useLayoutEffect:()=>{}}}]);