"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[265],{1482:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},5196:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9428:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},13052:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},13717:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},24357:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},25673:(e,t,n)=>{n.d(t,{H_:()=>nP,UC:()=>nw,YJ:()=>nb,q7:()=>nR,VF:()=>nk,JU:()=>nA,ZL:()=>nx,z6:()=>nj,hN:()=>nC,bL:()=>ny,wv:()=>nO,Pb:()=>nE,G5:()=>nD,ZP:()=>nM,l9:()=>ng});var r=n(12115),o=n(85185),i=n(6101),a=n(46081),l=n(5845),u=n(63655),s=n(82284),c=n(94315),d=n(19178),f=n(92293),p=n(25519),h=n(61285);let m=["top","right","bottom","left"],v=Math.min,y=Math.max,g=Math.round,x=Math.floor,w=e=>({x:e,y:e}),b={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function P(e){return e.split("-")[0]}function j(e){return e.split("-")[1]}function C(e){return"x"===e?"y":"x"}function k(e){return"y"===e?"height":"width"}function O(e){return["top","bottom"].includes(P(e))?"y":"x"}function E(e){return e.replace(/start|end/g,e=>A[e])}function M(e){return e.replace(/left|right|bottom|top/g,e=>b[e])}function D(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(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 T(e,t,n){let r,{reference:o,floating:i}=e,a=O(t),l=C(O(t)),u=k(l),s=P(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(j(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let L=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=T(s,r,u),f=r,p={},h=0;for(let n=0;ne[t]>=0)}async function F(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=P(n),l=j(n),u="y"===O(n),s=["left","top"].includes(a)?-1:1,c=i&&u?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function B(){return"undefined"!=typeof window}function H(e){return G(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(G(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function G(e){return!!B()&&(e instanceof Node||e instanceof V(e).Node)}function z(e){return!!B()&&(e instanceof Element||e instanceof V(e).Element)}function K(e){return!!B()&&(e instanceof HTMLElement||e instanceof V(e).HTMLElement)}function q(e){return!!B()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof V(e).ShadowRoot)}function X(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function U(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function J(e){let t=Y(),n=z(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Y(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(H(e))}function $(e){return V(e).getComputedStyle(e)}function Q(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===H(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||W(e);return q(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ee(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&X(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=V(o);if(i){let e=en(a);return t.concat(a,a.visualViewport||[],X(o)?o:[],e&&n?et(e):[])}return t.concat(o,et(o,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=g(n)!==i||g(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function eo(e){return z(e)?e:e.contextElement}function ei(e){let t=eo(e);if(!K(t))return w(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=er(t),a=(i?g(n.width):n.width)/r,l=(i?g(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let ea=w(0);function el(e){let t=V(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ea}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=eo(e),l=w(1);t&&(r?z(r)&&(l=ei(r)):l=ei(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===V(a))&&o)?el(a):w(0),s=(i.left+u.x)/l.x,c=(i.top+u.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=V(a),t=r&&z(r)?V(r):r,n=e,o=en(n);for(;o&&r&&t!==n;){let e=ei(o),t=o.getBoundingClientRect(),r=$(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=a,o=en(n=V(o))}}return S({width:d,height:f,x:s,y:c})}function es(e,t){let n=Q(e).scrollLeft;return t?t.left+n:eu(W(e)).left+n}function ec(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:es(e,r)),y:r.top+t.scrollTop}}function ed(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=V(e),r=W(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=Y();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=W(e),n=Q(e),r=e.ownerDocument.body,o=y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+es(e),l=-n.scrollTop;return"rtl"===$(r).direction&&(a+=y(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(W(e));else if(z(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ei(e):w(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:a,height:l,x:o*i.x,y:r*i.y}}(t,n);else{let n=el(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function ef(e){return"static"===$(e).position}function ep(e,t){if(!K(e)||"fixed"===$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){let n=V(e);if(U(e))return n;if(!K(e)){let t=ee(e);for(;t&&!Z(t);){if(z(t)&&!ef(t))return t;t=ee(t)}return n}let r=ep(e,t);for(;r&&["table","td","th"].includes(H(r))&&ef(r);)r=ep(r,t);return r&&Z(r)&&ef(r)&&!J(r)?n:r||function(e){let t=ee(e);for(;K(t)&&!Z(t);){if(J(t))return t;if(U(t))break;t=ee(t)}return null}(e)||n}let em=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=W(t),i="fixed"===n,a=eu(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=w(0);if(r||!r&&!i){if(("body"!==H(t)||X(o))&&(l=Q(t)),r){let e=eu(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=es(o))}i&&!r&&o&&(u.x=es(o));let s=!o||r||i?w(0):ec(o,l);return{x:a.left+l.scrollLeft-u.x-s.x,y:a.top+l.scrollTop-u.y-s.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=W(r),l=!!t&&U(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},s=w(1),c=w(0),d=K(r);if((d||!d&&!i)&&(("body"!==H(r)||X(a))&&(u=Q(r)),K(r))){let e=eu(r);s=ei(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?w(0):ec(a,u,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?U(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=et(e,[],!1).filter(e=>z(e)&&"body"!==H(e)),o=null,i="fixed"===$(e).position,a=i?ee(e):e;for(;z(a)&&!Z(a);){let t=$(a),n=J(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||X(a)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!z(r)||Z(r))&&("fixed"===$(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=ee(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=ed(t,n,o);return e.top=y(r.top,e.top),e.right=v(r.right,e.right),e.bottom=v(r.bottom,e.bottom),e.left=y(r.left,e.left),e},ed(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eh,getElementRects:em,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ei,isElement:z,isRTL:function(e){return"rtl"===$(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:s,padding:c=0}=R(e,t)||{};if(null==s)return{};let d=D(c),f={x:n,y:r},p=C(O(o)),h=k(p),m=await a.getDimensions(s),g="y"===p,x=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],b=f[p]-i.reference[p],A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s)),P=A?A[x]:0;P&&await (null==a.isElement?void 0:a.isElement(A))||(P=l.floating[x]||i.floating[h]);let E=P/2-m[h]/2-1,M=v(d[g?"top":"left"],E),S=v(d[g?"bottom":"right"],E),T=P-m[h]-S,L=P/2-m[h]/2+(w/2-b/2),N=y(M,v(L,T)),_=!u.arrow&&null!=j(o)&&L!==N&&i.reference[h]/2-(L{let r=new Map,o={platform:ev,...n},i={...o.platform,_c:r};return L(e,t,{...o,platform:i})};var ew=n(47650),eb="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eA(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(!eA(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)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eR(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eP(e,t){let n=eR(e);return Math.round(t*n)/n}function ej(e){let t=r.useRef(e);return eb(()=>{t.current=e}),t}let eC=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eg({element:n.current,padding:r}).fn(t):{}:n?eg({element:n,padding:r}).fn(t):{}}}),ek=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,u=await F(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}}(e),options:[e,t]}),eO=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=R(e,t),s={x:n,y:r},c=await N(t,u),d=O(P(o)),f=C(d),p=s[f],h=s[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=y(n,v(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=y(n,v(h,r))}let m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}}(e),options:[e,t]}),eE=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=R(e,t),c={x:n,y:r},d=O(o),f=C(d),p=c[f],h=c[d],m=R(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;pn&&(p=n)}if(s){var y,g;let e="y"===f?"width":"height",t=["top","left"].includes(P(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[d])||0)-(t?v.crossAxis:0);hr&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}),eM=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a,l;let{placement:u,middlewareData:s,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...w}=R(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let b=P(u),A=O(d),D=P(d)===d,S=await (null==f.isRTL?void 0:f.isRTL(p.floating)),T=v||(D||!x?[M(d)]:function(e){let t=M(e);return[E(e),t,E(t)]}(d)),L="none"!==g;!v&&L&&T.push(...function(e,t,n,r){let o=j(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[]}}(P(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(E)))),i}(d,x,g,S));let _=[d,...T],I=await N(t,w),F=[],B=(null==(r=s.flip)?void 0:r.overflows)||[];if(h&&F.push(I[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=j(e),o=C(O(e)),i=k(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=M(a)),[a,M(a)]}(u,c,S);F.push(I[e[0]],I[e[1]])}if(B=[...B,{placement:u,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=_[e];if(t){let n="alignment"===m&&A!==O(t),r=(null==(a=B[0])?void 0:a.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:B},reset:{placement:t}}}let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(y){case"bestFit":{let e=null==(l=B.filter(e=>{if(L){let t=O(e.placement);return t===A||"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=d}if(u!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eD=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i;let{placement:a,rects:l,platform:u,elements:s}=t,{apply:c=()=>{},...d}=R(e,t),f=await N(t,d),p=P(a),h=j(a),m="y"===O(a),{width:g,height:x}=l.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let w=x-f.top-f.bottom,b=g-f.left-f.right,A=v(x-f[o],w),C=v(g-f[i],b),k=!t.middlewareData.shift,E=A,M=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(M=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=w),k&&!h){let e=y(f.left,0),t=y(f.right,0),n=y(f.top,0),r=y(f.bottom,0);m?M=g-2*(0!==e||0!==t?e+t:y(f.left,f.right)):E=x-2*(0!==n||0!==r?n+r:y(f.top,f.bottom))}await c({...t,availableWidth:M,availableHeight:E});let D=await u.getDimensions(s.floating);return g!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),eS=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=R(e,t);switch(r){case"referenceHidden":{let e=_(await N(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=_(await N(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}}(e),options:[e,t]}),eT=(e,t)=>({...eC(e),options:[e,t]});var eL=n(95155),eN=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eL.jsx)(u.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eL.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eN.displayName="Arrow";var e_=n(39033),eI=n(52712),eF="Popper",[eB,eH]=(0,a.A)(eF),[eV,eW]=eB(eF),eG=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eL.jsx)(eV,{scope:t,anchor:o,onAnchorChange:i,children:n})};eG.displayName=eF;var ez="PopperAnchor",eK=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,l=eW(ez,n),s=r.useRef(null),c=(0,i.s)(t,s);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,eL.jsx)(u.sG.div,{...a,ref:c})});eK.displayName=ez;var eq="PopperContent",[eX,eU]=eB(eq),eJ=r.forwardRef((e,t)=>{var n,o,a,l,s,c,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:w=0,arrowPadding:b=0,avoidCollisions:A=!0,collisionBoundary:R=[],collisionPadding:P=0,sticky:j="partial",hideWhenDetached:C=!1,updatePositionStrategy:k="optimized",onPlaced:O,...E}=e,M=eW(eq,p),[D,S]=r.useState(null),T=(0,i.s)(t,e=>S(e)),[L,N]=r.useState(null),_=function(e){let[t,n]=r.useState(void 0);return(0,eI.N)(()=>{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}(L),I=null!==(d=null==_?void 0:_.width)&&void 0!==d?d:0,F=null!==(f=null==_?void 0:_.height)&&void 0!==f?f:0,B="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},H=Array.isArray(R)?R:[R],V=H.length>0,G={padding:B,boundary:H.filter(eQ),altBoundary:V},{refs:z,floatingStyles:K,placement:q,isPositioned:X,middlewareData:U}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eA(p,o)||h(o);let[m,v]=r.useState(null),[y,g]=r.useState(null),x=r.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),w=r.useCallback(e=>{e!==P.current&&(P.current=e,g(e))},[]),b=a||m,A=l||y,R=r.useRef(null),P=r.useRef(null),j=r.useRef(d),C=null!=s,k=ej(s),O=ej(i),E=ej(c),M=r.useCallback(()=>{if(!R.current||!P.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),ex(R.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==E.current};D.current&&!eA(j.current,t)&&(j.current=t,ew.flushSync(()=>{f(t)}))})},[p,t,n,O,E]);eb(()=>{!1===c&&j.current.isPositioned&&(j.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let D=r.useRef(!1);eb(()=>(D.current=!0,()=>{D.current=!1}),[]),eb(()=>{if(b&&(R.current=b),A&&(P.current=A),b&&A){if(k.current)return k.current(b,A,M);M()}},[b,A,M,k,C]);let S=r.useMemo(()=>({reference:R,floating:P,setReference:x,setFloating:w}),[x,w]),T=r.useMemo(()=>({reference:b,floating:A}),[b,A]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=eP(T.floating,d.x),r=eP(T.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eR(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,T.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:S,elements:T,floatingStyles:L}),[d,M,S,T,L])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,o=W(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(l||t(),!f||!p)return;let h=x(d),m=x(o.clientWidth-(c+f)),g={rootMargin:-h+"px "+-m+"px "+-x(o.clientHeight-(d+p))+"px "+-x(c)+"px",threshold:y(0,v(1,u))||1},w=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!w)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ey(s,e.getBoundingClientRect())||a(),w=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let m=s?eu(e):null;return s&&function t(){let r=eu(e);m&&!ey(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===k})},elements:{reference:M.anchor},middleware:[ek({mainAxis:m+F,alignmentAxis:w}),A&&eO({mainAxis:!0,crossAxis:!1,limiter:"partial"===j?eE():void 0,...G}),A&&eM({...G}),eD({...G,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),L&&eT({element:L,padding:b}),e0({arrowWidth:I,arrowHeight:F}),C&&eS({strategy:"referenceHidden",...G})]}),[J,Y]=e1(q),Z=(0,e_.c)(O);(0,eI.N)(()=>{X&&(null==Z||Z())},[X,Z]);let $=null===(n=U.arrow)||void 0===n?void 0:n.x,Q=null===(o=U.arrow)||void 0===o?void 0:o.y,ee=(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,er]=r.useState();return(0,eI.N)(()=>{D&&er(window.getComputedStyle(D).zIndex)},[D]),(0,eL.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:X?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(l=U.transformOrigin)||void 0===l?void 0:l.x,null===(s=U.transformOrigin)||void 0===s?void 0:s.y].join(" "),...(null===(c=U.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eL.jsx)(eX,{scope:p,placedSide:J,onArrowChange:N,arrowX:$,arrowY:Q,shouldHideArrow:ee,children:(0,eL.jsx)(u.sG.div,{"data-side":J,"data-align":Y,...E,ref:T,style:{...E.style,animation:X?void 0:"none"}})})})});eJ.displayName=eq;var eY="PopperArrow",eZ={top:"bottom",right:"left",bottom:"top",left:"right"},e$=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eU(eY,n),i=eZ[o.placedSide];return(0,eL.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,eL.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})});function eQ(e){return null!==e}e$.displayName=eY;var e0=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=e1(l),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,y=(null!==(a=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,g="",x="";return"bottom"===p?(g=c?m:"".concat(v,"px"),x="".concat(-f,"px")):"top"===p?(g=c?m:"".concat(v,"px"),x="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),x=c?m:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),x=c?m:"".concat(y,"px")),{data:{x:g,y:x}}}});function e1(e){let[t,n="center"]=e.split("-");return[t,n]}var e2=n(34378),e5=n(28905),e9=n(89196),e4=n(99708),e6=n(38168),e3=n(93795),e8=["Enter"," "],e7=["ArrowUp","PageDown","End"],te=["ArrowDown","PageUp","Home",...e7],tt={ltr:[...e8,"ArrowRight"],rtl:[...e8,"ArrowLeft"]},tn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tr="Menu",[to,ti,ta]=(0,s.N)(tr),[tl,tu]=(0,a.A)(tr,[ta,eH,e9.RG]),ts=eH(),tc=(0,e9.RG)(),[td,tf]=tl(tr),[tp,th]=tl(tr),tm=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=ts(t),[s,d]=r.useState(null),f=r.useRef(!1),p=(0,e_.c)(a),h=(0,c.jH)(i);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eL.jsx)(eG,{...u,children:(0,eL.jsx)(td,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,eL.jsx)(tp,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:o})})})};tm.displayName=tr;var tv=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eL.jsx)(eK,{...o,...r,ref:t})});tv.displayName="MenuAnchor";var ty="MenuPortal",[tg,tx]=tl(ty,{forceMount:void 0}),tw=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tf(ty,t);return(0,eL.jsx)(tg,{scope:t,forceMount:n,children:(0,eL.jsx)(e5.C,{present:n||i.open,children:(0,eL.jsx)(e2.Z,{asChild:!0,container:o,children:r})})})};tw.displayName=ty;var tb="MenuContent",[tA,tR]=tl(tb),tP=r.forwardRef((e,t)=>{let n=tx(tb,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tf(tb,e.__scopeMenu),a=th(tb,e.__scopeMenu);return(0,eL.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eL.jsx)(e5.C,{present:r||i.open,children:(0,eL.jsx)(to.Slot,{scope:e.__scopeMenu,children:a.modal?(0,eL.jsx)(tj,{...o,ref:t}):(0,eL.jsx)(tC,{...o,ref:t})})})})}),tj=r.forwardRef((e,t)=>{let n=tf(tb,e.__scopeMenu),a=r.useRef(null),l=(0,i.s)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,e6.Eq)(e)},[]),(0,eL.jsx)(tk,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tC=r.forwardRef((e,t)=>{let n=tf(tb,e.__scopeMenu);return(0,eL.jsx)(tk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tk=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:g,onDismiss:x,disableOutsideScroll:w,...b}=e,A=tf(tb,n),R=th(tb,n),P=ts(n),j=tc(n),C=ti(n),[k,O]=r.useState(null),E=r.useRef(null),M=(0,i.s)(t,E,A.onContentChange),D=r.useRef(0),S=r.useRef(""),T=r.useRef(0),L=r.useRef(null),N=r.useRef("right"),_=r.useRef(0),I=w?e3.A:r.Fragment,F=w?{as:e4.DX,allowPinchZoom:!0}:void 0,B=e=>{var t,n;let r=S.current+e,o=C().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,l=function(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 a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),u=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};r.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,f.Oh)();let H=r.useCallback(e=>{var t,n;return N.current===(null===(t=L.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=s>r&&n<(u-a)*(r-l)/(s-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=L.current)||void 0===n?void 0:n.area)},[]);return(0,eL.jsx)(tA,{scope:n,searchRef:S,onItemEnter:r.useCallback(e=>{H(e)&&e.preventDefault()},[H]),onItemLeave:r.useCallback(e=>{var t;H(e)||(null===(t=E.current)||void 0===t||t.focus(),O(null))},[H]),onTriggerLeave:r.useCallback(e=>{H(e)&&e.preventDefault()},[H]),pointerGraceTimerRef:T,onPointerGraceIntentChange:r.useCallback(e=>{L.current=e},[]),children:(0,eL.jsx)(I,{...F,children:(0,eL.jsx)(p.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,eL.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:g,onDismiss:x,children:(0,eL.jsx)(e9.bL,{asChild:!0,...j,dir:R.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.m)(h,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eL.jsx)(eJ,{role:"menu","aria-orientation":"vertical","data-state":t1(A.open),"data-radix-menu-content":"",dir:R.dir,...P,...b,ref:M,style:{outline:"none",...b.style},onKeyDown:(0,o.m)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&B(e.key));let o=E.current;if(e.target!==o||!te.includes(e.key))return;e.preventDefault();let i=C().filter(e=>!e.disabled).map(e=>e.ref.current);e7.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),S.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,t9(e=>{let t=e.target,n=_.current!==e.clientX;e.currentTarget.contains(t)&&n&&(N.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});tP.displayName=tb;var tO=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eL.jsx)(u.sG.div,{role:"group",...r,ref:t})});tO.displayName="MenuGroup";var tE=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eL.jsx)(u.sG.div,{...r,ref:t})});tE.displayName="MenuLabel";var tM="MenuItem",tD="menu.itemSelect",tS=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,s=r.useRef(null),c=th(tM,e.__scopeMenu),d=tR(tM,e.__scopeMenu),f=(0,i.s)(t,s),p=r.useRef(!1);return(0,eL.jsx)(tT,{...l,ref:f,disabled:n,onClick:(0,o.m)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(tD,{bubbles:!0,cancelable:!0});e.addEventListener(tD,e=>null==a?void 0:a(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&e8.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tS.displayName=tM;var tT=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...s}=e,c=tR(tM,n),d=tc(n),f=r.useRef(null),p=(0,i.s)(t,f),[h,m]=r.useState(!1),[v,y]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,eL.jsx)(to.ItemSlot,{scope:n,disabled:a,textValue:null!=l?l:v,children:(0,eL.jsx)(e9.q7,{asChild:!0,...d,focusable:!a,children:(0,eL.jsx)(u.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,t9(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,t9(e=>c.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>m(!0)),onBlur:(0,o.m)(e.onBlur,()=>m(!1))})})})}),tL=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eL.jsx)(tW,{scope:e.__scopeMenu,checked:n,children:(0,eL.jsx)(tS,{role:"menuitemcheckbox","aria-checked":t2(n)?"mixed":n,...i,ref:t,"data-state":t5(n),onSelect:(0,o.m)(i.onSelect,()=>null==r?void 0:r(!!t2(n)||!n),{checkForDefaultPrevented:!1})})})});tL.displayName="MenuCheckboxItem";var tN="MenuRadioGroup",[t_,tI]=tl(tN,{value:void 0,onValueChange:()=>{}}),tF=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,e_.c)(r);return(0,eL.jsx)(t_,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eL.jsx)(tO,{...o,ref:t})})});tF.displayName=tN;var tB="MenuRadioItem",tH=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=tI(tB,e.__scopeMenu),a=n===i.value;return(0,eL.jsx)(tW,{scope:e.__scopeMenu,checked:a,children:(0,eL.jsx)(tS,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":t5(a),onSelect:(0,o.m)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});tH.displayName=tB;var tV="MenuItemIndicator",[tW,tG]=tl(tV,{checked:!1}),tz=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=tG(tV,n);return(0,eL.jsx)(e5.C,{present:r||t2(i.checked)||!0===i.checked,children:(0,eL.jsx)(u.sG.span,{...o,ref:t,"data-state":t5(i.checked)})})});tz.displayName=tV;var tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eL.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tK.displayName="MenuSeparator";var tq=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eL.jsx)(e$,{...o,...r,ref:t})});tq.displayName="MenuArrow";var tX="MenuSub",[tU,tJ]=tl(tX),tY=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=tf(tX,t),l=ts(t),[u,s]=r.useState(null),[c,d]=r.useState(null),f=(0,e_.c)(i);return r.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,eL.jsx)(eG,{...l,children:(0,eL.jsx)(td,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,eL.jsx)(tU,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:u,onTriggerChange:s,children:n})})})};tY.displayName=tX;var tZ="MenuSubTrigger",t$=r.forwardRef((e,t)=>{let n=tf(tZ,e.__scopeMenu),a=th(tZ,e.__scopeMenu),l=tJ(tZ,e.__scopeMenu),u=tR(tZ,e.__scopeMenu),s=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,eL.jsx)(tv,{asChild:!0,...f,children:(0,eL.jsx)(tT,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":t1(n.open),...e,ref:(0,i.t)(t,l.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,t9(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,t9(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&tt[a.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});t$.displayName=tZ;var tQ="MenuSubContent",t0=r.forwardRef((e,t)=>{let n=tx(tb,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=tf(tb,e.__scopeMenu),s=th(tb,e.__scopeMenu),c=tJ(tQ,e.__scopeMenu),d=r.useRef(null),f=(0,i.s)(t,d);return(0,eL.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eL.jsx)(e5.C,{present:a||u.open,children:(0,eL.jsx)(to.Slot,{scope:e.__scopeMenu,children:(0,eL.jsx)(tk,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tn[s.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function t1(e){return e?"open":"closed"}function t2(e){return"indeterminate"===e}function t5(e){return t2(e)?"indeterminate":e?"checked":"unchecked"}function t9(e){return t=>"mouse"===t.pointerType?e(t):void 0}t0.displayName=tQ;var t4="DropdownMenu",[t6,t3]=(0,a.A)(t4,[tu]),t8=tu(),[t7,ne]=t6(t4),nt=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:s=!0}=e,c=t8(t),d=r.useRef(null),[f=!1,p]=(0,l.i)({prop:i,defaultProp:a,onChange:u});return(0,eL.jsx)(t7,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,eL.jsx)(tm,{...c,open:f,onOpenChange:p,dir:o,modal:s,children:n})})};nt.displayName=t4;var nn="DropdownMenuTrigger",nr=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=ne(nn,n),s=t8(n);return(0,eL.jsx)(tv,{asChild:!0,...s,children:(0,eL.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.t)(t,l.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nr.displayName=nn;var no=e=>{let{__scopeDropdownMenu:t,...n}=e,r=t8(t);return(0,eL.jsx)(tw,{...r,...n})};no.displayName="DropdownMenuPortal";var ni="DropdownMenuContent",na=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=ne(ni,n),l=t8(n),u=r.useRef(!1);return(0,eL.jsx)(tP,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});na.displayName=ni;var nl=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tO,{...o,...r,ref:t})});nl.displayName="DropdownMenuGroup";var nu=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tE,{...o,...r,ref:t})});nu.displayName="DropdownMenuLabel";var ns=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tS,{...o,...r,ref:t})});ns.displayName="DropdownMenuItem";var nc=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tL,{...o,...r,ref:t})});nc.displayName="DropdownMenuCheckboxItem";var nd=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tF,{...o,...r,ref:t})});nd.displayName="DropdownMenuRadioGroup";var nf=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tH,{...o,...r,ref:t})});nf.displayName="DropdownMenuRadioItem";var np=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tz,{...o,...r,ref:t})});np.displayName="DropdownMenuItemIndicator";var nh=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tK,{...o,...r,ref:t})});nh.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(tq,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nm=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(t$,{...o,...r,ref:t})});nm.displayName="DropdownMenuSubTrigger";var nv=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t8(n);return(0,eL.jsx)(t0,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nv.displayName="DropdownMenuSubContent";var ny=nt,ng=nr,nx=no,nw=na,nb=nl,nA=nu,nR=ns,nP=nc,nj=nd,nC=nf,nk=np,nO=nh,nE=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=t8(t),[u=!1,s]=(0,l.i)({prop:r,defaultProp:i,onChange:o});return(0,eL.jsx)(tY,{...a,open:u,onOpenChange:s,children:n})},nM=nm,nD=nv},44020:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},47924:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},55863:(e,t,n)=>{n.d(t,{C1:()=>b,bL:()=>w});var r=n(12115),o=n(46081),i=n(63655),a=n(95155),l="Progress",[u,s]=(0,o.A)(l),[c,d]=u(l),f=r.forwardRef((e,t)=>{var n,r,o,l;let{__scopeProgress:u,value:s=null,max:d,getValueLabel:f=m,...p}=e;(d||0===d)&&!g(d)&&console.error((n="".concat(d),r="Progress","Invalid prop `max` of value `".concat(n,"` supplied to `").concat(r,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let h=g(d)?d:100;null===s||x(s,h)||console.error((o="".concat(s),l="Progress","Invalid prop `value` of value `".concat(o,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let w=x(s,h)?s:null,b=y(w)?f(w,h):void 0;return(0,a.jsx)(c,{scope:u,value:w,max:h,children:(0,a.jsx)(i.sG.div,{"aria-valuemax":h,"aria-valuemin":0,"aria-valuenow":y(w)?w:void 0,"aria-valuetext":b,role:"progressbar","data-state":v(w,h),"data-value":null!=w?w:void 0,"data-max":h,...p,ref:t})})});f.displayName=l;var p="ProgressIndicator",h=r.forwardRef((e,t)=>{var n;let{__scopeProgress:r,...o}=e,l=d(p,r);return(0,a.jsx)(i.sG.div,{"data-state":v(l.value,l.max),"data-value":null!==(n=l.value)&&void 0!==n?n:void 0,"data-max":l.max,...o,ref:t})});function m(e,t){return"".concat(Math.round(e/t*100),"%")}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function y(e){return"number"==typeof e}function g(e){return y(e)&&!isNaN(e)&&e>0}function x(e,t){return y(e)&&!isNaN(e)&&e<=t&&e>=0}h.displayName=p;var w=f,b=h},62341:(e,t,n)=>{n.d(t,{G:()=>I});var r=n(12115),o=n(52596),i=n(9557),a=n(40139),l=n.n(a),u=n(22315),s=n.n(u),c=n(59882),d=n.n(c),f=n(13908),p=n.n(f),h=n(60245),m=n.n(h),v=n(70688),y=n(51172),g=n(2348),x=n(36079),w=n(41643),b=n(16377),A=n(12814),R=n(70788),P=["layout","type","stroke","connectNulls","isRange","ref"],j=["key"];function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!m()(l,r)||!m()(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,i=t.dot,a=t.points,l=t.className,u=t.top,s=t.left,c=t.xAxis,f=t.yAxis,p=t.width,h=t.height,m=t.isAnimationActive,v=t.id;if(n||!a||!a.length)return null;var y=this.state.isAnimationFinished,w=1===a.length,b=(0,o.A)("recharts-area",l),A=c&&c.allowDataOverflow,P=f&&f.allowDataOverflow,j=A||P,C=d()(v)?this.id:v,k=null!==(e=(0,R.J9)(i,!1))&&void 0!==e?e:{r:3,strokeWidth:2},O=k.r,E=k.strokeWidth,M=((0,R.sT)(i)?i:{}).clipDot,D=void 0===M||M,S=2*(void 0===O?3:O)+(void 0===E?2:E);return r.createElement(g.W,{className:b},A||P?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(C)},r.createElement("rect",{x:A?s:s-p/2,y:P?u:u-h/2,width:A?p:2*p,height:P?h:2*h})),!D&&r.createElement("clipPath",{id:"clipPath-dots-".concat(C)},r.createElement("rect",{x:s-S/2,y:u-S/2,width:p+S,height:h+S}))):null,w?null:this.renderArea(j,C),(i||w)&&this.renderDots(j,D,C),(!m||y)&&x.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&D(a.prototype,t),n&&D(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);N(I,"displayName","Area"),N(I,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!w.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),N(I,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=null!=a?a:i;if((0,b.Et)(l)&&"number"==typeof l)return l;var u="horizontal"===o?r:n,s=u.scale.domain();if("number"===u.type){var c=Math.max(s[0],s[1]),d=Math.min(s[0],s[1]);return"dataMin"===l?d:"dataMax"===l?c:c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===l?s[0]:"dataMax"===l?s[1]:s[0]}),N(I,"getComposedData",function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,d=e.dataStartIndex,f=e.displayedData,p=e.offset,h=n.layout,m=c&&c.length,v=I.getBaseValue(n,r,o,i),y="horizontal"===h,g=!1,x=f.map(function(e,t){m?n=c[d+t]:Array.isArray(n=(0,A.kr)(e,s))?g=!0:n=[v,n];var n,r=null==n[1]||m&&null==(0,A.kr)(e,s);return y?{x:(0,A.nb)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:o.scale(n[1]),y:(0,A.nb)({axis:i,ticks:l,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=m||g?x.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return y?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):y?i.scale(v):o.scale(v),M({points:x,baseLine:t,layout:h,isRange:g},p)}),N(I,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,u=k(t,j);n=r.createElement(y.c,O({},u,{key:a,className:i}))}return n})},62525:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(19946).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},99445:(e,t,n)=>{n.d(t,{Q:()=>u});var r=n(92418),o=n(62341),i=n(96025),a=n(16238),l=n(53707),u=(0,r.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})}}]);