!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09e5b-4df1-77e2-8eeb-cfb13325f267")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,354022,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M18.75 12.75h1.5a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5ZM12 6a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 12 6ZM12 18a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 12 18ZM3.75 6.75h1.5a.75.75 0 1 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5ZM5.25 18.75h-1.5a.75.75 0 0 1 0-1.5h1.5a.75.75 0 0 1 0 1.5ZM3 12a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 3 12ZM9 3.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5ZM12.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM9 15.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}))});e.s(["AdjustmentsHorizontalIcon",0,r],354022)},913998,e=>{"use strict";var t=e.i(270401);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M18.375 2.25c-1.035 0-1.875.84-1.875 1.875v15.75c0 1.035.84 1.875 1.875 1.875h.75c1.035 0 1.875-.84 1.875-1.875V4.125c0-1.036-.84-1.875-1.875-1.875h-.75ZM9.75 8.625c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-.75a1.875 1.875 0 0 1-1.875-1.875V8.625ZM3 13.125c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v6.75c0 1.035-.84 1.875-1.875 1.875h-.75A1.875 1.875 0 0 1 3 19.875v-6.75Z"}))});e.s(["ChartBarIcon",0,r],913998)},73962,e=>{"use strict";e.s(["Line",()=>X,"computeLinePoints",()=>$]);var t=e.i(270401),r=e.i(470733),a=e.i(308061),n=e.i(940736),i=e.i(989419),l=e.i(853862),s=e.i(320012),o=e.i(153893),c=e.i(603195),u=e.i(160735),d=e.i(68827),p=e.i(90406),m=e.i(872961),f=e.i(765193),v=e.i(48378),h=e.i(478880),x=e.i(84073),y=e.i(557059),g=e.i(125259),b=e.i(694384),w=e.i(437171),O=e.i(52551),j=e.i(201742),P=e.i(852105),N=e.i(768462),E=e.i(409117),A=e.i(74114),S=e.i(979921),C=["id"],I=["type","layout","connectNulls","needClip"],T=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function D(e){for(var t=1;t"".concat(t,"px ").concat(e-t,"px");function _(e){var{clipPathId:a,points:l,props:s}=e,{dot:c,dataKey:u,needClip:d}=s;if(null==l||!c&&1!==l.length)return null;var{id:p}=s,m=R(s,C),f=(0,o.isClipDot)(c),v=(0,N.svgPropertiesNoEvents)(m),h=(0,A.svgPropertiesAndEventsFromUnknown)(c),x=l.map((e,a)=>{var i,s=D(D(D({key:"dot-".concat(a),r:3},v),h),{},{index:a,cx:e.x,cy:e.y,dataKey:u,value:e.value,payload:e.payload,points:l});if(t.isValidElement(c))i=t.cloneElement(c,s);else if("function"==typeof c)i=c(s);else{var o=(0,r.clsx)("recharts-line-dot","boolean"!=typeof c?c.className:"");i=t.createElement(n.Dot,k({},s,{className:o}))}return i}),y={clipPath:d?"url(#clipPath-".concat(f?"":"dots-").concat(a,")"):void 0};return t.createElement(i.Layer,k({className:"recharts-line-dots",key:"dots"},y),x)}function z(e){var{showLabels:r,children:a,points:n}=e,i=(0,t.useMemo)(()=>null==n?void 0:n.map(e=>{var t={x:e.x,y:e.y,width:0,height:0};return D(D({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[n]);return t.createElement(l.CartesianLabelListContextProvider,{value:r?i:null},a)}function Z(e){var{clipPathId:r,pathRef:n,points:i,strokeDasharray:l,props:s}=e,{type:o,layout:c,connectNulls:u,needClip:d}=s,p=R(s,I),m=D(D({},(0,A.svgPropertiesAndEvents)(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(r,")"):void 0,points:i,type:o,layout:c,connectNulls:u,strokeDasharray:null!=l?l:s.strokeDasharray});return t.createElement(t.Fragment,null,(null==i?void 0:i.length)>1&&t.createElement(a.Curve,k({},m,{pathRef:n})),t.createElement(_,{points:i,clipPathId:r,props:s}))}function B(e){var{clipPathId:r,props:a,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:c,strokeDasharray:u,isAnimationActive:d,animationBegin:p,animationDuration:m,animationEasing:f,animateNewValues:v,width:h,height:x,onAnimationEnd:y,onAnimationStart:g}=a,w=i.current,O=(0,b.useAnimationId)(a,"recharts-line-"),[j,P]=(0,t.useState)(!1),N=(0,t.useCallback)(()=>{"function"==typeof y&&y(),P(!1)},[y]),A=(0,t.useCallback)(()=>{"function"==typeof g&&g(),P(!0)},[g]),S=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(n.current),C=o.current;return t.createElement(z,{points:c,showLabels:!j},a.children,t.createElement(E.JavascriptAnimate,{animationId:O,begin:p,duration:m,isActive:d,easing:f,onAnimationEnd:N,onAnimationStart:A,key:O},e=>{var l,p=Math.min((0,s.interpolate)(C,S+C,e),S);if(l=d?u?((e,t,r)=>{var a=r.reduce((e,t)=>e+t);if(!a)return W(t,e);for(var n=Math.floor(e/a),i=e%a,l=t-e,s=[],o=0,c=0;oi){s=[...r.slice(0,o),i-c];break}var u=s.length%2==0?[0,l]:[l];return[...function(e,t){for(var r=e.length%2!=0?[...e,0]:e,a=[],n=0;n"".concat(e,"px")).join(", ")})(p,S,"".concat(u).split(/[,\s]+/gim).map(e=>parseFloat(e))):W(S,p):null==u?void 0:String(u),w){var m=w.length/c.length,f=1===e?c:c.map((t,r)=>{var a=Math.floor(r*m);if(w[a]){var n=w[a];return D(D({},t),{},{x:(0,s.interpolate)(n.x,t.x,e),y:(0,s.interpolate)(n.y,t.y,e)})}return v?D(D({},t),{},{x:(0,s.interpolate)(2*h,t.x,e),y:(0,s.interpolate)(x/2,t.y,e)}):D(D({},t),{},{x:t.x,y:t.y})});return i.current=f,t.createElement(Z,{props:a,points:f,clipPathId:r,pathRef:n,strokeDasharray:l})}return e>0&&S>0&&(i.current=c,o.current=p),t.createElement(Z,{props:a,points:c,clipPathId:r,pathRef:n,strokeDasharray:l})}),t.createElement(l.LabelListFromLabelProp,{label:a.label}))}function F(e){var{clipPathId:r,props:a}=e,n=(0,t.useRef)(null),i=(0,t.useRef)(0),l=(0,t.useRef)(null);return t.createElement(B,{props:a,clipPathId:r,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:l})}var V=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:(0,u.getValueByDataKey)(e.payload,t)});class H extends t.Component{render(){var{hide:e,dot:a,points:n,className:l,xAxisId:s,yAxisId:c,top:u,left:p,width:v,height:h,id:x,needClip:y}=this.props;if(e)return null;var g=(0,r.clsx)("recharts-line",l),{r:b,strokeWidth:w}=(0,S.getRadiusAndStrokeWidthFromDot)(a),O=(0,o.isClipDot)(a),j=2*b+w;return t.createElement(t.Fragment,null,t.createElement(i.Layer,{className:g},y&&t.createElement("defs",null,t.createElement(f.GraphicalItemClipPath,{clipPathId:x,xAxisId:s,yAxisId:c}),!O&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:p-j/2,y:u-j/2,width:v+j,height:h+j}))),t.createElement(m.SetErrorBarContext,{xAxisId:s,yAxisId:c,data:n,dataPointFormatter:V,errorBarOffset:0},t.createElement(F,{props:this.props,clipPathId:x}))),t.createElement(d.ActivePoints,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var K={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!c.Global.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function U(e){var r=(0,w.resolveDefaultProps)(e,K),{activeDot:a,animateNewValues:n,animationBegin:i,animationDuration:l,animationEasing:s,connectNulls:o,dot:c,hide:u,isAnimationActive:d,label:p,legendType:m,xAxisId:g,yAxisId:b,id:j}=r,P=R(r,T),{needClip:N}=(0,f.useNeedsClip)(g,b),E=(0,O.usePlotArea)(),A=(0,v.useChartLayout)(),S=(0,h.useIsPanorama)(),C=(0,y.useAppSelector)(e=>(0,x.selectLinePoints)(e,g,b,S,j));if("horizontal"!==A&&"vertical"!==A||null==C||null==E)return null;var{height:I,width:L,x:D,y:M}=E;return t.createElement(H,k({},P,{id:j,connectNulls:o,dot:c,activeDot:a,animateNewValues:n,animationBegin:i,animationDuration:l,animationEasing:s,isAnimationActive:d,hide:u,label:p,legendType:m,xAxisId:g,yAxisId:b,points:C,layout:A,height:I,width:L,left:D,top:M,needClip:N}))}function $(e){var{layout:t,xAxis:r,yAxis:a,xAxisTicks:n,yAxisTicks:i,dataKey:l,bandSize:o,displayedData:c}=e;return c.map((e,c)=>{var d=(0,u.getValueByDataKey)(e,l);if("horizontal"===t)return{x:(0,u.getCateCoordinateOfLine)({axis:r,ticks:n,bandSize:o,entry:e,index:c}),y:(0,s.isNullish)(d)?null:a.scale(d),value:d,payload:e};var p=(0,s.isNullish)(d)?null:r.scale(d),m=(0,u.getCateCoordinateOfLine)({axis:a,ticks:i,bandSize:o,entry:e,index:c});return null==p||null==m?null:{x:p,y:m,value:d,payload:e}}).filter(Boolean)}var X=t.memo(function(e){var r=(0,w.resolveDefaultProps)(e,K),a=(0,h.useIsPanorama)();return t.createElement(j.RegisterGraphicalItemId,{id:r.id,type:"line"},e=>t.createElement(t.Fragment,null,t.createElement(g.SetLegendPayload,{legendPayload:(e=>{var{dataKey:t,name:r,stroke:a,legendType:n,hide:i}=e;return[{inactive:i,dataKey:t,type:n,color:a,value:(0,u.getTooltipNameProp)(r,t),payload:e}]})(r)}),t.createElement(p.SetTooltipEntrySettings,{fn:M,args:r}),t.createElement(P.SetCartesianGraphicalItem,{type:"line",id:e,data:r.data,xAxisId:r.xAxisId,yAxisId:r.yAxisId,zAxisId:0,dataKey:r.dataKey,hide:r.hide,isPanorama:a}),t.createElement(U,k({},r,{id:e}))))});X.displayName="Line"},642887,e=>{"use strict";var t=e.i(270401),r=e.i(470733),a=e.i(989419),n=e.i(853976),i=e.i(320012),l=e.i(691221),s=e.i(48378),o=e.i(317918),c=e.i(557059),u=e.i(824845),d=e.i(478880),p=e.i(937917),m=e.i(74114);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function v(e){for(var t=1;t(r((0,o.addLine)(e)),()=>{r((0,o.removeLine)(e))})),null}function g(e){var{x:o,y:f,segment:h,xAxisId:y,yAxisId:g,shape:b,className:w,ifOverflow:O}=e,j=(0,d.useIsPanorama)(),P=(0,p.useClipPathId)(),N=(0,c.useAppSelector)(e=>(0,u.selectXAxisSettings)(e,y)),E=(0,c.useAppSelector)(e=>(0,u.selectYAxisSettings)(e,g)),A=(0,c.useAppSelector)(e=>(0,u.selectAxisScale)(e,"xAxis",y,j)),S=(0,c.useAppSelector)(e=>(0,u.selectAxisScale)(e,"yAxis",g,j)),C=(0,s.useViewBox)(),I=(0,i.isNumOrStr)(o),T=(0,i.isNumOrStr)(f);if(!P||!C||null==N||null==E||null==A||null==S)return null;var L=((e,t,r,a,n,l,s,o,c)=>{var{x:u,y:d,width:p,height:m}=n;if(r){var{y:f}=c,v=e.y.apply(f,{position:l});if((0,i.isNan)(v)||"discard"===c.ifOverflow&&!e.y.isInRange(v))return null;var h=[{x:u+p,y:v},{x:u,y:v}];return"left"===o?h.reverse():h}if(t){var{x:x}=c,y=e.x.apply(x,{position:l});if((0,i.isNan)(y)||"discard"===c.ifOverflow&&!e.x.isInRange(y))return null;var g=[{x:y,y:d+m},{x:y,y:d}];return"top"===s?g.reverse():g}if(a){var{segment:b}=c,w=b.map(t=>e.apply(t,{position:l}));return"discard"===c.ifOverflow&&w.some(t=>!e.isInRange(t))?null:w}return null})((0,l.createLabeledScales)({x:A,y:S}),I,T,h&&2===h.length,C,e.position,N.orientation,E.orientation,e);if(!L)return null;var[{x:D,y:R},{x:k,y:M}]=L,W=v(v({clipPath:"hidden"===O?"url(#".concat(P,")"):void 0},(0,m.svgPropertiesAndEvents)(e)),{},{x1:D,y1:R,x2:k,y2:M});return t.createElement(a.Layer,{className:(0,r.clsx)("recharts-reference-line",w)},t.isValidElement(b)?t.cloneElement(b,W):"function"==typeof b?b(W):t.createElement("line",x({},W,{className:"recharts-reference-line-line"})),t.createElement(n.CartesianLabelContextProvider,(0,l.rectWithCoords)({x1:D,y1:R,x2:k,y2:M}),t.createElement(n.CartesianLabelFromLabelProp,{label:e.label}),e.children))}function b(e){return t.createElement(t.Fragment,null,t.createElement(y,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x:e.x,y:e.y}),t.createElement(g,e))}class w extends t.Component{render(){return t.createElement(b,this.props)}}h(w,"displayName","ReferenceLine"),h(w,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"}),e.s(["ReferenceLine",0,w])},905854,e=>{"use strict";var t=e.i(270401),r=e.i(952750),a=e.i(907579),n=["axis"],i=(0,t.forwardRef)((e,i)=>t.createElement(a.CartesianChart,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:n,tooltipPayloadSearcher:r.arrayTooltipSearcher,categoricalChartProps:e,ref:i}));e.s(["LineChart",0,i])},940736,68827,e=>{"use strict";var t=e.i(270401),r=e.i(470733),a=e.i(282545),n=e.i(768462);function i(){return(i=Object.assign.bind()).apply(null,arguments)}var l=e=>{var{cx:l,cy:s,r:o,className:c}=e,u=(0,r.clsx)("recharts-dot",c);return l===+l&&s===+s&&o===+o?t.createElement("circle",i({},(0,n.svgPropertiesNoEvents)(e),(0,a.adaptEventHandlers)(e),{className:u,cx:l,cy:s,r:o})):null};e.s(["Dot",0,l],940736);var s=e.i(989419),o=e.i(557059),c=e.i(414757),u=e.i(52551),d=e.i(320012);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function m(e){for(var t=1;th.includes(e.payload));return(0,d.isNullish)(x)?null:(e=>{var r,{point:i,childIndex:o,mainColor:c,activeDot:u,dataKey:d}=e;if(!1===u||null==i.x||null==i.y)return null;var p=m(m({index:o,dataKey:d,cx:i.x,cy:i.y,r:4,fill:null!=c?c:"none",strokeWidth:2,stroke:"#fff",payload:i.payload,value:i.value},(0,n.svgPropertiesNoEventsFromUnknown)(u)),(0,a.adaptEventHandlers)(u));return r=(0,t.isValidElement)(u)?(0,t.cloneElement)(u,p):"function"==typeof u?u(p):t.createElement(l,p),t.createElement(s.Layer,{className:"recharts-active-dot"},r)})({point:x,childIndex:Number(v),mainColor:i,dataKey:f,activeDot:p})}],68827)},84073,e=>{"use strict";e.s(["selectLinePoints",()=>f]);var t=e.i(321801),r=e.i(73962),a=e.i(391552),n=e.i(48378),i=e.i(824845),l=e.i(160735),s=(e,t,r,a)=>(0,i.selectAxisWithScale)(e,"xAxis",t,a),o=(e,t,r,a)=>(0,i.selectTicksOfGraphicalItem)(e,"xAxis",t,a),c=(e,t,r,a)=>(0,i.selectAxisWithScale)(e,"yAxis",r,a),u=(e,t,r,a)=>(0,i.selectTicksOfGraphicalItem)(e,"yAxis",r,a),d=(0,t.createSelector)([n.selectChartLayout,s,c,o,u],(e,t,r,a,n)=>(0,l.isCategoricalAxis)(e,"xAxis")?(0,l.getBandSizeOfAxis)(t,a,!1):(0,l.getBandSizeOfAxis)(r,n,!1));function p(e){return"line"===e.type}var m=(0,t.createSelector)([i.selectUnfilteredCartesianItems,(e,t,r,a,n)=>n],(e,t)=>e.filter(p).find(e=>e.id===t)),f=(0,t.createSelector)([n.selectChartLayout,s,c,o,u,m,d,a.selectChartDataWithIndexesIfNotInPanorama],(e,t,a,n,i,l,s,o)=>{var c,{chartData:u,dataStartIndex:d,dataEndIndex:p}=o;if(null!=l&&null!=t&&null!=a&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=s){var{dataKey:m,data:f}=l;if(null!=(c=null!=f&&f.length>0?f:null==u?void 0:u.slice(d,p+1)))return(0,r.computeLinePoints)({layout:e,xAxis:t,yAxis:a,xAxisTicks:n,yAxisTicks:i,dataKey:m,bandSize:s,displayedData:c})}})},979921,e=>{"use strict";var t=e.i(768462);e.s(["getRadiusAndStrokeWidthFromDot",0,function(e){var r=(0,t.svgPropertiesNoEventsFromUnknown)(e);if(null!=r){var{r:a,strokeWidth:n}=r,i=Number(a),l=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(l)||l<0)&&(l=2),{r:i,strokeWidth:l}}return{r:3,strokeWidth:2}}])},440409,e=>{"use strict";var t,r=e.i(222666),a=e.i(505962),n=e.i(839539),i=e.i(452473),l=e.i(779100),s=e.i(230953),o=e.i(370066),c=e.i(678998),u=e.i(217631),d=e.i(270401),p=e.i(379165),m=e.i(150049),f=e.i(956302),v=((t={}).Ascending="asc",t.Descending="desc",t);function h(e){return(0,r.jsxs)("div",{className:(0,i.cn)("flex w-full gap-1 rounded-sm p-1"),children:[(0,r.jsx)("span",{className:"w-1 shrink-0"}),(0,r.jsxs)("span",{className:"grid w-full grid-cols-[minmax(0,1fr)_auto] items-baseline gap-6",children:[(0,r.jsx)("span",{className:"min-w-0 truncate text-left text-muted-foreground",children:e.label}),(0,r.jsx)("span",{className:"whitespace-nowrap text-right font-medium text-foreground",children:e.value})]})]},e.label)}function x(e){return(0,u.isMember)(String(e.name),n.ForecastWindow)}function y(e,t){return e+Number(t.value)}function g({payload:e,highlightedRef:t,onLabel:a,valueFormatter:n,shouldWrapLabels:s}){let u=(0,l.useLocale)(),p=n??(e=>(0,o.formatNumber)(e||0,{locale:u,preset:"compact-significant-thousands"})??"—"),{name:m,value:f,color:v}=e,h=m?.toString().startsWith("country-")?m.toString().replace("country-",""):void 0,x=h&&"xx"!==h?(0,c.getLocalIconUri)(`flags/${h}.svg`):void 0,y=a?.(m)??m,b=(0,d.useMemo)(()=>Array.isArray(f)?f.map(e=>p(Number(e))).join(", "):p(Number(f)),[f,p]);return(0,r.jsxs)("div",{className:(0,i.cn)("flex w-full gap-1 rounded-sm p-1",{"bg-accent":t?.current?.has(m)}),children:[(0,r.jsx)("span",{className:"w-1 shrink-0 rounded-sm",style:{backgroundColor:v}}),(0,r.jsxs)("span",{className:"grid w-full grid-cols-[minmax(0,1fr)_auto] items-baseline gap-6",children:[(0,r.jsx)("span",{className:(0,i.cn)("min-w-0 text-left",s?"whitespace-normal break-words":"truncate"),children:h?(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[x&&(0,r.jsx)("img",{src:x,width:"16",alt:h}),(0,r.jsx)("span",{children:"xx"===h?"Other":h.toUpperCase()})]}):y}),(0,r.jsx)("span",{className:"whitespace-nowrap text-right font-medium text-foreground",children:b})]})]})}e.s(["CHART_TOOLTIP_HEADER_PX",0,24,"CHART_TOOLTIP_ROW_PX",0,24,"ChartTooltip",0,function(e){let t,c,d,v,b,w,O,j,P,N,E,A,S,C,I,T,L,D=(0,a.c)(104),{label:R,payload:k,formattedLabel:M,filterZeroValues:W,shouldShowTotal:_,summaryLabel:z,summaryValue:Z,shouldShowTime:B,displayTimezone:F,sortOrder:V,onLabel:H,highlightedRef:K,wrapperClassName:U,style:$,contentWidth:X,shouldWrapLabels:G,valueFormatter:J,forecast:Y,extraRows:q,maxItems:Q,overflowMode:ee}=e,et=void 0===W||W,er=void 0===_||_,ea=void 0===z?"Total":z,en=void 0!==B&&B,ei=void 0===V?"desc":V,el=void 0===X?f.CHART_TOOLTIP_WIDTH_PX:X,es=void 0!==G&&G,eo=void 0===ee?"end":ee,ec=(0,l.useLocale)();D[0]!==ec||D[1]!==J?(t=J??(e=>(0,o.formatNumber)(e||0,{locale:ec,preset:"compact-significant-thousands"})??"—"),D[0]=ec,D[1]=J,D[2]=t):t=D[2];let eu=t,ed=(0,m.useResolvedDisplayTimeZone)(void 0===F?"local":F),ep="string"==typeof R?R:"";if(D[3]!==k?(c=k??[],D[3]=k,D[4]=c):c=D[4],D[5]!==et||D[6]!==ei||D[7]!==c){let e,t;D[9]!==et?(e=e=>void 0!==e.value&&null!==e.value&&(!et||0!==e.value)&&!(0,u.isMember)(String(e.name),n.ForecastWindow),D[9]=et,D[10]=e):e=D[10];let r=c.filter(e);D[11]!==ei?(t=(e,t)=>{let r=Number(e.value),a=Number(t.value);return"asc"===ei?r-a:a-r},D[11]=ei,D[12]=t):t=D[12],d=r.toSorted(t),D[5]=et,D[6]=ei,D[7]=c,D[8]=d}else d=D[8];let em=d;if(D[13]!==ep||D[14]!==ec||D[15]!==en||D[16]!==ed){let e=(0,p.parseDateStringAsUTC)(ep);v=(en?(0,s.formatDateTime)(e,{locale:ec,timeZone:ed,preset:"long"}):(0,s.formatDate)(e,{locale:ec,timeZone:"UTC",preset:"long"}))??"—",D[13]=ep,D[14]=ec,D[15]=en,D[16]=ed,D[17]=v}else v=D[17];let ef=v;D[18]!==em?(b=em?.reduce(y,0),D[18]=em,D[19]=b):b=D[19];let ev=b,eh=Z??ev;if(D[20]!==el||D[21]!==ep||D[22]!==q||D[23]!==Y||D[24]!==ef||D[25]!==M||D[26]!==K||D[27]!==Q||D[28]!==H||D[29]!==eo||D[30]!==k||D[31]!==er||D[32]!==es||D[33]!==em||D[34]!==$||D[35]!==eh||D[36]!==ea||D[37]!==ev||D[38]!==eu||D[39]!==U){let e,t=k?.find(x),a=t?.value??0;D[50]!==Y?(e=(0,n.getForecastLabel)(Y),D[50]=Y,D[51]=e):e=D[51];let l=e,s=em&&em.length>1&&er;if(D[52]!==el||D[53]!==ep||D[54]!==ef||D[55]!==M||D[56]!==K||D[57]!==Q||D[58]!==H||D[59]!==eo||D[60]!==es||D[61]!==em||D[62]!==$||D[63]!==eu||D[64]!==U){let e,t,{headPayload:a,tailPayload:n,overflowCount:l}=function(e){let{payload:t,maxItems:r,overflowMode:a}=e;if(void 0===r||t.length<=r)return{headPayload:t,tailPayload:[],overflowCount:0};if("middle"===a){let e=Math.ceil(r/2),a=Math.floor(r/2);return{headPayload:t.slice(0,e),tailPayload:a>0?t.slice(-a):[],overflowCount:t.length-e-a}}return{headPayload:t.slice(0,r),tailPayload:[],overflowCount:t.length-r}}({payload:em,maxItems:Q,overflowMode:eo});D[73]!==U?(S=(0,i.cn)("relative flex flex-col gap-2",U),D[73]=U,D[74]=S):S=D[74],C=$,D[75]!==ep||D[76]!==ef||D[77]!==M?(e=void 0===M?(0,r.jsx)("time",{dateTime:ep,children:ef}):M,D[75]=ep,D[76]=ef,D[77]=M,D[78]=e):e=D[78],D[79]!==e?(I=(0,r.jsx)("span",{className:"w-max rounded-md bg-foreground p-1 text-overline leading-3 text-background shrink-0",children:e}),D[79]=e,D[80]=I):I=D[80],D[81]===Symbol.for("react.memo_cache_sentinel")?(w=(0,i.cn)("relative flex flex-col p-1","rounded-lg border bg-popover text-popover-foreground shadow-md","overflow-hidden text-overline leading-4"),D[81]=w):w=D[81],D[82]!==el?(O={width:el},D[82]=el,D[83]=O):O=D[83],j=a?.map(e=>(0,r.jsx)(g,{payload:e,onLabel:H,highlightedRef:K,valueFormatter:eu,shouldWrapLabels:es},String(e.dataKey??e.name))),P=l>0&&(0,r.jsxs)("div",{className:"flex w-full gap-1 rounded-sm p-1",children:[(0,r.jsx)("span",{className:"w-1 shrink-0"}),(0,r.jsx)("span",{className:"text-left text-muted-foreground",children:n.length>0?`⋯ ${l} more ⋯`:`+${l} more`})]}),D[84]!==K||D[85]!==H||D[86]!==es||D[87]!==eu?(t=e=>(0,r.jsx)(g,{payload:e,onLabel:H,highlightedRef:K,valueFormatter:eu,shouldWrapLabels:es},String(e.dataKey??e.name)),D[84]=K,D[85]=H,D[86]=es,D[87]=eu,D[88]=t):t=D[88],N=n.map(t),D[52]=el,D[53]=ep,D[54]=ef,D[55]=M,D[56]=K,D[57]=Q,D[58]=H,D[59]=eo,D[60]=es,D[61]=em,D[62]=$,D[63]=eu,D[64]=U,D[65]=w,D[66]=O,D[67]=j,D[68]=P,D[69]=N,D[70]=S,D[71]=C,D[72]=I}else w=D[65],O=D[66],j=D[67],P=D[68],N=D[69],S=D[70],C=D[71],I=D[72];D[89]!==q?(E=q?.map(h),D[89]=q,D[90]=E):E=D[90],A=s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("hr",{className:"my-1"}),(0,r.jsx)("div",{className:(0,i.cn)("flex w-full gap-1 rounded-sm p-1"),children:(0,r.jsxs)("span",{className:"grid w-full grid-cols-[minmax(0,1fr)_auto] items-baseline gap-6",children:[(0,r.jsx)("span",{className:"min-w-0 truncate text-left",children:ea}),(0,r.jsx)("span",{className:"whitespace-nowrap text-right font-medium text-foreground",children:eu(eh||0)})]})}),"number"==typeof a&&a>0&&Y&&(0,r.jsx)("div",{className:(0,i.cn)("flex w-full gap-1 rounded-sm p-1"),children:(0,r.jsxs)("span",{className:"grid w-full grid-cols-[minmax(0,1fr)_auto] items-baseline gap-6",children:[(0,r.jsx)("span",{className:"min-w-0 truncate text-left",children:l}),(0,r.jsx)("span",{className:"whitespace-nowrap text-right font-medium text-foreground",children:`${eu((ev||0)+a)} (+${eu(a)})`})]})})]}),D[20]=el,D[21]=ep,D[22]=q,D[23]=Y,D[24]=ef,D[25]=M,D[26]=K,D[27]=Q,D[28]=H,D[29]=eo,D[30]=k,D[31]=er,D[32]=es,D[33]=em,D[34]=$,D[35]=eh,D[36]=ea,D[37]=ev,D[38]=eu,D[39]=U,D[40]=w,D[41]=O,D[42]=j,D[43]=P,D[44]=N,D[45]=E,D[46]=A,D[47]=S,D[48]=C,D[49]=I}else w=D[40],O=D[41],j=D[42],P=D[43],N=D[44],E=D[45],A=D[46],S=D[47],C=D[48],I=D[49];return D[91]!==w||D[92]!==O||D[93]!==j||D[94]!==P||D[95]!==N||D[96]!==E||D[97]!==A?(T=(0,r.jsxs)("span",{className:w,style:O,children:[j,P,N,E,A]}),D[91]=w,D[92]=O,D[93]=j,D[94]=P,D[95]=N,D[96]=E,D[97]=A,D[98]=T):T=D[98],D[99]!==S||D[100]!==C||D[101]!==I||D[102]!==T?(L=(0,r.jsxs)("div",{className:S,style:C,children:[I,T]}),D[99]=S,D[100]=C,D[101]=I,D[102]=T,D[103]=L):L=D[103],L},"SortOrder",()=>v])},536582,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(354022),n=e.i(913998),i=e.i(270401);let l=i.forwardRef(function({title:e,titleId:t,...r},a){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M2.25 13.5a8.25 8.25 0 0 1 8.25-8.25.75.75 0 0 1 .75.75v6.75H18a.75.75 0 0 1 .75.75 8.25 8.25 0 0 1-16.5 0Z",clipRule:"evenodd"}),i.createElement("path",{fillRule:"evenodd",d:"M12.75 3a.75.75 0 0 1 .75-.75 8.25 8.25 0 0 1 8.25 8.25.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75V3Z",clipRule:"evenodd"}))}),s=i.forwardRef(function({title:e,titleId:t,...r},a){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}),o=i.forwardRef(function({title:e,titleId:t,...r},a){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h2.25a3 3 0 0 1 3 3v2.25a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm9.75 0a3 3 0 0 1 3-3H18a3 3 0 0 1 3 3v2.25a3 3 0 0 1-3 3h-2.25a3 3 0 0 1-3-3V6ZM3 15.75a3 3 0 0 1 3-3h2.25a3 3 0 0 1 3 3V18a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-2.25Zm9.75 0a3 3 0 0 1 3-3H18a3 3 0 0 1 3 3V18a3 3 0 0 1-3 3h-2.25a3 3 0 0 1-3-3v-2.25Z",clipRule:"evenodd"}))});var c=e.i(452473);let u={bar:(0,t.jsx)(n.ChartBarIcon,{className:"size-10 text-border"}),pie:(0,t.jsx)(l,{className:"size-10 text-border"}),app:(0,t.jsx)(o,{className:"size-10 text-border"}),uptime:(0,t.jsx)(s,{className:"size-10 text-border"}),parameters:(0,t.jsx)(a.AdjustmentsHorizontalIcon,{className:"size-10 text-border"})};e.s(["EmptyAnalyticsData",0,function(e){let a,n,i,l,s=(0,r.c)(11),{message:o,className:d,icon:p,height:m}=e,f=void 0===o?"Not enough data to display yet.":o;s[0]!==d?(a=(0,c.cn)("flex w-full flex-col items-center justify-center gap-2 p-6 text-center","text-muted-foreground",d),s[0]=d,s[1]=a):a=s[1],s[2]!==m?(n={height:m},s[2]=m,s[3]=n):n=s[3];let v=u[void 0===p?"bar":p];return s[4]!==f?(i=(0,t.jsx)("h3",{children:f}),s[4]=f,s[5]=i):i=s[5],s[6]!==a||s[7]!==n||s[8]!==v||s[9]!==i?(l=(0,t.jsxs)("div",{"data-slot":"empty-analytics-data",className:a,style:n,children:[v,i]}),s[6]=a,s[7]=n,s[8]=v,s[9]=i,s[10]=l):l=s[10],l}],536582)},758665,e=>{"use strict";var t=e.i(222666),r=e.i(505962),a=e.i(779100),n=e.i(230953),i=e.i(370066),l=e.i(379165),s=e.i(150049);e.s(["SimpleChartTooltip",0,function(e){let o,c,u,d,p,m,f,v=(0,r.c)(45),{coordinate:h,active:x,label:y,payload:g,totalConfig:b,chartHeight:w,isHighRes:O,displayTimezone:j}=e,P=(0,a.useLocale)(),N=(0,s.useResolvedDisplayTimeZone)(void 0===j?"utc":j);if(!x||!h||void 0===h.x||!y)return null;let E="string"==typeof y?y:"";if(v[0]!==w||v[1]!==h.x||v[2]!==E||v[3]!==O||v[4]!==P||v[5]!==g||v[6]!==N||v[7]!==b){c=Symbol.for("react.early_return_sentinel");e:{let e=(0,l.parseDateStringAsUTC)(E);if(b){var A;let r,a,l,s,o,u,d,p;if(v[10]!==P||v[11]!==g){let e=g?g.reduce((e,t)=>e+(Number(t.value)||0),0):0;r=(0,i.formatNumber)(e,{locale:P,preset:"decimal-3"})??"—",v[10]=P,v[11]=g,v[12]=r}else r=v[12];let m=r,f=O?(0,n.formatTime)(e,{locale:P,timeZone:N,preset:"numeric"})??"—":void 0,x=(0,n.formatDate)(e,{locale:P,timeZone:N,preset:"weekday-day-month"})??"—";if(v[13]!==b.bucketMs)a=b.bucketMs?(A=b.bucketMs,A<6e4?`${A/1e3}s`:A<36e5?`${A/6e4}m`:A<864e5?`${A/36e5}h`:`${A/864e5}d`):void 0,v[13]=b.bucketMs,v[14]=a;else a=v[14];let y=a,j=w??0;v[15]!==h.x?(l={left:h.x,top:-28,transform:"translateX(-50%)"},v[15]=h.x,v[16]=l):l=v[16],v[17]!==m||v[18]!==b.suffix?(s=(0,t.jsxs)("span",{className:"rounded-sm bg-base-3 px-1.5 py-0.5 text-xs font-medium text-base-12 whitespace-nowrap",children:["~",m,b.suffix]}),v[17]=m,v[18]=b.suffix,v[19]=s):s=v[19],v[20]!==l||v[21]!==s?(o=(0,t.jsx)("div",{className:"absolute pointer-events-none z-overlay",style:l,children:s}),v[20]=l,v[21]=s,v[22]=o):o=v[22];let E=j-26;v[23]!==h.x||v[24]!==E?(u={left:h.x,top:E,transform:"translateX(-50%)"},v[23]=h.x,v[24]=E,v[25]=u):u=v[25],v[26]!==y?(d=y&&(0,t.jsx)("span",{className:"rounded-sm bg-base-5 px-1 py-px font-semibold text-base-12",children:y}),v[26]=y,v[27]=d):d=v[27];let S=(0,t.jsx)("div",{className:"absolute pointer-events-none z-overlay",style:u,children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-sm shadow-md border border-base-6 bg-background px-1.5 py-0.5 text-2xs text-base-11 whitespace-nowrap",children:[d,f&&`${f} `,x]})});v[28]!==S||v[29]!==o?(p=(0,t.jsxs)(t.Fragment,{children:[o,S]}),v[28]=S,v[29]=o,v[30]=p):p=v[30],c=p;break e}o=O?(0,n.formatTime)(e,{locale:P,timeZone:N,preset:"numeric"})??"—":(0,n.formatDate)(e,{locale:P,timeZone:N,preset:"medium"})??"—"}v[0]=w,v[1]=h.x,v[2]=E,v[3]=O,v[4]=P,v[5]=g,v[6]=N,v[7]=b,v[8]=o,v[9]=c}else o=v[8],c=v[9];if(c!==Symbol.for("react.early_return_sentinel"))return c;let S=o,C=h.x>200,I=h.x+(C?2.5:-2.5),T=C?"translateX(-100%)":"translateX(0%)";return v[31]!==I||v[32]!==T?(u={left:I,top:-20,transform:T},v[31]=I,v[32]=T,v[33]=u):u=v[33],v[34]!==S||v[35]!==C?(d=C&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:S}),v[34]=S,v[35]=C,v[36]=d):d=v[36],v[37]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)("div",{className:"size-1 md:size-2 rounded-full bg-border"}),v[37]=p):p=v[37],v[38]!==S||v[39]!==C?(m=!C&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:S}),v[38]=S,v[39]=C,v[40]=m):m=v[40],v[41]!==u||v[42]!==d||v[43]!==m?(f=(0,t.jsxs)("div",{className:"absolute pointer-events-none z-overlay flex items-center gap-2",style:u,children:[d,p,m]}),v[41]=u,v[42]=d,v[43]=m,v[44]=f):f=v[44],f}])},203599,e=>{"use strict";var t=e.i(505962),r=e.i(270401),a=e.i(956302);let n={position:"absolute",left:0,top:0};e.s(["useRightMarginTooltipPlacement",0,function(e){let i,l,s,o,c,u,d=(0,t.c)(15),{enabled:p,hasBlockingLegend:m}=e,f=void 0!==m&&m;d[0]===Symbol.for("react.memo_cache_sentinel")?(i={containerWidth:0,spaceOnRight:0},d[0]=i):i=d[0];let[v,h]=(0,r.useState)(i),x=(0,r.useRef)(null);d[1]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{if(x.current?.(),x.current=null,!e)return;let t=()=>{let t=e.getBoundingClientRect(),r={containerWidth:t.width,spaceOnRight:window.innerWidth-t.right};h(e=>e.containerWidth===r.containerWidth&&e.spaceOnRight===r.spaceOnRight?e:r)};t();let r="u"{r?.disconnect(),window.removeEventListener("resize",t)}},d[1]=l):l=d[1];let y=l;d[2]!==p||d[3]!==f||d[4]!==v?(s=function({enabled:e,spaceOnRight:t,containerWidth:r,hasBlockingLegend:n=!1}){return e&&!n&&r>0&&t>=24+a.CHART_TOOLTIP_WIDTH_PX+8}({enabled:p,hasBlockingLegend:f,...v}),d[2]=p,d[3]=f,d[4]=v,d[5]=s):s=d[5];let g=s;d[6]!==v.containerWidth||d[7]!==g?(o=function({containerWidth:e,shouldUseRightPlacement:t}){return t?{zIndex:10,position:"absolute",left:e+24,top:16,width:"max-content",transform:"none",transition:"none"}:{zIndex:10}}({containerWidth:v.containerWidth,shouldUseRightPlacement:g}),d[6]=v.containerWidth,d[7]=g,d[8]=o):o=d[8];let b=o,w=g?n:void 0;d[9]!==g?(c={x:g,y:g},d[9]=g,d[10]=c):c=d[10];let O=c;return d[11]!==O||d[12]!==w||d[13]!==b?(u={containerRef:y,tooltipWrapperStyle:b,tooltipContentStyle:w,tooltipAllowEscapeViewBox:O},d[11]=O,d[12]=w,d[13]=b,d[14]=u):u=d[14],u}])},20629,e=>{"use strict";var t=e.i(956302);e.s(["createStableColorMapping",0,function(e,r=t.defaultColors){let a=e.filter(e=>"Others"!==e).sort(),n=new Map;return a.forEach((e,a)=>{n.set(e,r[a%r.length]??t.Colors.Slate400)}),e.includes("Others")&&n.set("Others",t.Colors.Slate400),n},"getColorForSeries",0,function(e,r,a=t.Colors.Slate400){return r.get(e)??a}])}]); //# sourceMappingURL=1btma-4y86_p_.js.map //# chunkId=01a09e5b-4df1-77e2-8eeb-cfb13325f267