usage-board 3.2.1 → 4.0.1
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.
- package/dist/index.mjs +1 -1
- package/dist/public/_nuxt/37OOe3RF.js +1 -0
- package/dist/public/_nuxt/65Ayv2XK.js +146 -0
- package/dist/public/_nuxt/BOWwkrCY.js +25 -0
- package/dist/public/_nuxt/C0GhHHgI.js +3 -0
- package/dist/public/_nuxt/{CLHpvfq1.js → D7qEPtpx.js} +1 -1
- package/dist/public/_nuxt/D9-Yw1TR.js +1 -0
- package/dist/public/_nuxt/DF2WsXH3.js +1 -0
- package/dist/public/_nuxt/DKaPq50Z.js +6 -0
- package/dist/public/_nuxt/{CBu27bzx.js → DXWxIyGU.js} +1 -1
- package/dist/public/_nuxt/De8DvPWL.js +1 -0
- package/dist/public/_nuxt/DgMMKsPE.js +258 -0
- package/dist/public/_nuxt/DxvuOJRP.js +1 -0
- package/dist/public/_nuxt/Jp5cgQZi.js +4 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/34b12f78-e5b7-490f-99ba-b4a8ab41b914.json +1 -0
- package/dist/public/_nuxt/entry.DnkKc-6G.css +1 -0
- package/dist/public/_nuxt/qXgLTL_3.js +21 -0
- package/dist/public/_nuxt/y6mAKUDU.js +1 -0
- package/dist/server/chunks/build/client.precomputed.mjs +1 -1
- package/dist/server/chunks/nitro/nitro.mjs +2509 -1687
- package/dist/server/chunks/routes/api/analysis/agent/session.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/agent/token.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/cache.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/hot-project.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/model.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/overview-cards.json.mjs +4 -4
- package/dist/server/chunks/routes/api/analysis/session.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/token/daily.json.mjs +1 -1
- package/dist/server/chunks/routes/api/analysis/token/today-hourly.json.mjs +21 -0
- package/dist/server/chunks/routes/api/analysis/token.json.mjs +1 -1
- package/dist/server/chunks/routes/api/payload.json.mjs +2 -2
- package/dist/server/chunks/routes/api/projects/_project/modules.get.mjs +2 -2
- package/dist/server/chunks/routes/api/projects/catalog.get.mjs +2 -2
- package/dist/server/chunks/routes/renderer.mjs +2 -2
- package/dist/server/chunks/routes/ws.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/package.json +1 -1
- package/package.json +2 -2
- package/dist/public/_nuxt/BL-DadsH.js +0 -260
- package/dist/public/_nuxt/BO_d_Oyx.js +0 -6
- package/dist/public/_nuxt/BtuXxixc.js +0 -25
- package/dist/public/_nuxt/CC4_0abj.js +0 -1
- package/dist/public/_nuxt/CGsjOcfM.js +0 -21
- package/dist/public/_nuxt/COBlwcVj.js +0 -1
- package/dist/public/_nuxt/CjeAKHhp.js +0 -1
- package/dist/public/_nuxt/CvvesHM7.js +0 -105
- package/dist/public/_nuxt/IstswKJB.js +0 -4
- package/dist/public/_nuxt/N8W_Dp-N.js +0 -119
- package/dist/public/_nuxt/builds/meta/be10c896-ee75-4f4f-911d-c3f0a8b4d417.json +0 -1
- package/dist/public/_nuxt/entry.vHfFzkyD.css +0 -1
- package/dist/public/_nuxt/vkAmg0G5.js +0 -1
- package/dist/public/_nuxt/wUprbfrX.js +0 -1
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import{ah as zu,ai as mi,aj as Yi,g as F,a7 as Wu,v as Uu,ak as qu,m as de,r as Y,al as Vu,am as Yu,N as _e,q as rl,an as Gu,h as pt,s as on,n as pe,i as fs,y as P,E as ds,W as Xu,p as bn,z as Nt,ao as ju,o as $,A as Z,w as H,B,C as T,P as Gi,D as sl,T as Zu,G as vi,ap as Ku,K as Xi,aq as ol,c as G,J as Vt,ar as Qu,a6 as Ju,as as ze,a3 as th,at as eh,b as lt,au as nh,Q as ps,R as gs,av as ji,F as ih,aw as rh,l as po,d as qe,t as Jt,L as sh,j as oh,M as ah,ax as lh,U as ch,a as Et,V as it,H as al,I as ll,af as yr,ad as un,ab as Zi}from"./IstswKJB.js";import{r as uh,P as Ne,c as ht,a as hh}from"./CjeAKHhp.js";import{_ as cl}from"./BO_d_Oyx.js";function ul(t,e,n){const i=n.originalEvent.target,r=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),i.dispatchEvent(r)}function fh(t){return t==null}function dh(t){const e=Yi(),n=e?.type.emits,i={};return n?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),n?.forEach(r=>{i[zu(mi(r))]=(...s)=>t(r,...s)}),i}function hl(t){const e=Yi(),n=Object.keys(e?.type.props??{}).reduce((r,s)=>{const o=(e?.type.props[s]).default;return o!==void 0&&(r[s]=o),r},{}),i=Wu(t);return F(()=>{const r={},s=e?.vnode.props??{};return Object.keys(s).forEach(o=>{r[mi(o)]=s[o]}),Object.keys({...n,...r}).reduce((o,a)=>(i.value[a]!==void 0&&(o[a]=i.value[a]),o),{})})}function ms(t,e){const n=hl(t),i=e?dh(e):{};return F(()=>({...n.value,...i}))}function ph(t,e){const n=Uu(!1,300);qu(()=>{n.value=!1});const i=Y(null),r=Vu();function s(){i.value=null,n.value=!1}function o(a,l){if(!l)return;const c=a.currentTarget,u={x:a.clientX,y:a.clientY},h=gh(u,c.getBoundingClientRect()),f=mh(u,h,1),d=vh(l.getBoundingClientRect()),p=yh([...f,...d]);i.value=p,n.value=!0}return de(a=>{if(t.value&&e.value){const l=u=>o(u,e.value),c=u=>o(u,t.value);t.value.addEventListener("pointerleave",l),e.value.addEventListener("pointerleave",c),a(()=>{t.value?.removeEventListener("pointerleave",l),e.value?.removeEventListener("pointerleave",c)})}}),de(a=>{if(i.value){const l=c=>{if(!i.value||!(c.target instanceof Element))return;const u=c.target,h={x:c.clientX,y:c.clientY},f=t.value?.contains(u)||e.value?.contains(u),d=!_h(h,i.value),p=!!u.closest("[data-grace-area-trigger]");f?s():(d||p)&&(s(),r.trigger())};t.value?.ownerDocument.addEventListener("pointermove",l),a(()=>t.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:n,onPointerExit:r.on}}function gh(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,i,r,s)){case s:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function mh(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function vh(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}function _h(t,e){const{x:n,y:i}=t;let r=!1;for(let s=0,o=e.length-1;s<e.length;o=s++){const a=e[s].x,l=e[s].y,c=e[o].x,u=e[o].y;l>i!=u>i&&n<(c-a)*(i-l)/(u-l)+a&&(r=!r)}return r}function yh(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),xh(e)}function xh(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const r=t[i];for(;e.length>=2;){const s=e.at(-1),o=e[e.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const r=t[i];for(;n.length>=2;){const s=n.at(-1),o=n[n.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}function fl(t,e="reka"){let n;return n=Yu?.(),e?`${e}-${n}`:n}function bh(t){const e=Y(),n=F(()=>e.value?.width??0),i=F(()=>e.value?.height??0);return _e(()=>{const r=rl(t);if(r){e.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,h=Array.isArray(u)?u[0]:u;l=h.inlineSize,c=h.blockSize}else l=r.offsetWidth,c=r.offsetHeight;e.value={width:l,height:c}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else e.value=void 0}),{width:n,height:i}}function wh(t,e){const n=Y(t);function i(s){return e[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=i(s)}}}function kh(t,e){const n=Y({}),i=Y("none"),r=Y(t),s=t.value?"mounted":"unmounted";let o;const a=e.value?.ownerDocument.defaultView??Gu,{state:l,dispatch:c}=wh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=m=>{if(fs){const v=new CustomEvent(m,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(v)}};pt(t,async(m,v)=>{const y=v!==m;if(await pe(),y){const _=i.value,b=Vn(e.value);m?(c("MOUNT"),u("enter"),b==="none"&&u("after-enter")):b==="none"||b==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):v&&_!==b?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const h=m=>{const v=Vn(e.value),y=v.includes(CSS.escape(m.animationName)),_=l.value==="mounted"?"enter":"leave";if(m.target===e.value&&y&&(u(`after-${_}`),c("ANIMATION_END"),!r.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}m.target===e.value&&v==="none"&&c("ANIMATION_END")},f=m=>{m.target===e.value&&(i.value=Vn(e.value))},d=pt(e,(m,v)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",f),m.addEventListener("animationcancel",h),m.addEventListener("animationend",h)):(c("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),v?.removeEventListener("animationstart",f),v?.removeEventListener("animationcancel",h),v?.removeEventListener("animationend",h))},{immediate:!0}),p=pt(l,()=>{const m=Vn(e.value);i.value=l.value==="mounted"?m:"none"});return on(()=>{d(),p()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(l.value))}}function Vn(t){return t&&getComputedStyle(t).animationName||"none"}var Sh=P({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:n}){const{present:i,forceMount:r}=ds(t),s=Y(),{isPresent:o}=kh(i,s);n({present:o});let a=e.default({present:o.value});a=uh(a||[]);const l=Yi();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
|
|
2
|
-
`)].join(`
|
|
3
|
-
`))}return()=>r.value||i.value||o.value?Xu(e.default({present:o.value})[0],{ref:c=>{const u=rl(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?s.value=u.firstElementChild:s.value=u),u}}):null}});const Th="dismissableLayer.pointerDownOutside",Ch="dismissableLayer.focusOutside";function dl(t,e){if(!(e instanceof Element))return!1;const n=e.closest("[data-dismissable-layer]"),i=t.dataset.dismissableLayer===""?t:t.querySelector("[data-dismissable-layer]"),r=Array.from(t.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(i===n||r.indexOf(i)<r.indexOf(n)))}function Ah(t,e,n=!0){const i=e?.value?.ownerDocument??globalThis?.document,r=Y(!1),s=Y(()=>{});return de(o=>{if(!fs||!bn(n))return;const a=async c=>{const u=c.target;if(!(!e?.value||!u)){if(dl(e.value,u)){r.value=!1;return}if(c.target&&!r.value){let f=function(){ul(Th,t,h)};const h={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",s.value),s.value=f,i.addEventListener("click",s.value,{once:!0})):f()}else i.removeEventListener("click",s.value);r.value=!1}},l=window.setTimeout(()=>{i.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),i.removeEventListener("pointerdown",a),i.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{bn(n)&&(r.value=!0)}}}function Mh(t,e,n=!0){const i=e?.value?.ownerDocument??globalThis?.document,r=Y(!1);return de(s=>{if(!fs||!bn(n))return;const o=async a=>{if(!e?.value)return;await pe(),await pe();const l=a.target;!e.value||!l||dl(e.value,l)||a.target&&!r.value&&ul(Ch,t,{originalEvent:a})};i.addEventListener("focusin",o),s(()=>i.removeEventListener("focusin",o))}),{onFocusCapture:()=>{bn(n)&&(r.value=!0)},onBlurCapture:()=>{bn(n)&&(r.value=!1)}}}const Ct=sl({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var Oh=P({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(t,{emit:e}){const n=t,i=e,{forwardRef:r,currentElement:s}=Nt(),o=F(()=>s.value?.ownerDocument??globalThis.document),a=F(()=>Ct.layersRoot),l=F(()=>s.value?Array.from(a.value).indexOf(s.value):-1),c=F(()=>Ct.layersWithOutsidePointerEventsDisabled.size>0),u=F(()=>{const d=Array.from(a.value),[p]=[...Ct.layersWithOutsidePointerEventsDisabled].slice(-1),g=d.indexOf(p);return l.value>=g}),h=Ah(async d=>{const p=[...Ct.branches].some(g=>g?.contains(d.target));!u.value||p||(i("pointerDownOutside",d),i("interactOutside",d),await pe(),d.defaultPrevented||i("dismiss"))},s),f=Mh(d=>{[...Ct.branches].some(g=>g?.contains(d.target))||(i("focusOutside",d),i("interactOutside",d),d.defaultPrevented||i("dismiss"))},s);return ju("Escape",d=>{l.value===a.value.size-1&&(i("escapeKeyDown",d),d.defaultPrevented||i("dismiss"))}),de(d=>{s.value&&(n.disableOutsidePointerEvents&&(Ct.layersWithOutsidePointerEventsDisabled.size===0&&(Ct.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),Ct.layersWithOutsidePointerEventsDisabled.add(s.value)),a.value.add(s.value),d(()=>{n.disableOutsidePointerEvents&&Ct.layersWithOutsidePointerEventsDisabled.size===1&&!fh(Ct.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=Ct.originalBodyPointerEvents)}))}),de(d=>{d(()=>{s.value&&(a.value.delete(s.value),Ct.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(d,p)=>($(),Z(T(Ne),{ref:T(r),"as-child":d.asChild,as:d.as,"data-dismissable-layer":"",style:Gi({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:T(f).onFocusCapture,onBlurCapture:T(f).onBlurCapture,onPointerdownCapture:T(h).onPointerDownCapture},{default:H(()=>[B(d.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Eh=Oh,Dh=P({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=Ku();return(n,i)=>T(e)||n.forceMount?($(),Z(Zu,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[B(n.$slots,"default")],8,["to","disabled","defer"])):vi("v-if",!0)}}),$h=Dh,Fh=P({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(t){return(e,n)=>($(),Z(T(Ne),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:H(()=>[B(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Ph=Fh;const[pl,Rh]=Xi("PopperRoot");var Nh=P({inheritAttrs:!1,__name:"PopperRoot",setup(t){const e=Y();return Rh({anchor:e,onAnchorChange:n=>e.value=n}),(n,i)=>B(n.$slots,"default")}}),Bh=Nh,Lh=P({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n,currentElement:i}=Nt(),r=pl();return ol(()=>{r.onAnchorChange(e.reference??i.value)}),(s,o)=>($(),Z(T(Ne),{ref:T(n),as:s.as,"as-child":s.asChild},{default:H(()=>[B(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ih=Lh;const Hh={key:0,d:"M0 0L6 6L12 0"},zh={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Wh=P({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Nt(),(n,i)=>($(),Z(T(Ne),Vt(e,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:H(()=>[B(n.$slots,"default",{},()=>[n.rounded?($(),G("path",zh)):($(),G("path",Hh))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Uh=Wh;function qh(t){return t!==null}function Vh(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:r}=e,o=r.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=Rr(n),h={start:"0%",center:"50%",end:"100%"}[u],f=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let p="",g="";return c==="bottom"?(p=o?h:`${f}px`,g=`${-l}px`):c==="top"?(p=o?h:`${f}px`,g=`${i.floating.height+l}px`):c==="right"?(p=`${-l}px`,g=o?h:`${d}px`):c==="left"&&(p=`${i.floating.width+l}px`,g=o?h:`${d}px`),{data:{x:p,y:g}}}}}function Rr(t){const[e,n="center"]=t.split("-");return[e,n]}const Yh=["top","right","bottom","left"],ge=Math.min,wt=Math.max,_i=Math.round,Yn=Math.floor,Wt=t=>({x:t,y:t}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"};function Nr(t,e,n){return wt(t,ge(e,n))}function te(t,e){return typeof t=="function"?t(e):t}function ee(t){return t.split("-")[0]}function an(t){return t.split("-")[1]}function vs(t){return t==="x"?"y":"x"}function _s(t){return t==="y"?"height":"width"}function zt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function ys(t){return vs(zt(t))}function Xh(t,e,n){n===void 0&&(n=!1);const i=an(t),r=ys(t),s=_s(r);let o=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=yi(o)),[o,yi(o)]}function jh(t){const e=yi(t);return[Br(t),e,Br(e)]}function Br(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const go=["left","right"],mo=["right","left"],Zh=["top","bottom"],Kh=["bottom","top"];function Qh(t,e,n){switch(t){case"top":case"bottom":return n?e?mo:go:e?go:mo;case"left":case"right":return e?Zh:Kh;default:return[]}}function Jh(t,e,n,i){const r=an(t);let s=Qh(ee(t),n==="start",i);return r&&(s=s.map(o=>o+"-"+r),e&&(s=s.concat(s.map(Br)))),s}function yi(t){const e=ee(t);return Gh[e]+t.slice(e.length)}function tf(t){return{top:0,right:0,bottom:0,left:0,...t}}function gl(t){return typeof t!="number"?tf(t):{top:t,right:t,bottom:t,left:t}}function xi(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function vo(t,e,n){let{reference:i,floating:r}=t;const s=zt(e),o=ys(e),a=_s(o),l=ee(e),c=s==="y",u=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:i.y-r.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:h};break;case"left":d={x:i.x-r.width,y:h};break;default:d={x:i.x,y:i.y}}switch(an(e)){case"start":d[o]-=f*(n&&c?-1:1);break;case"end":d[o]+=f*(n&&c?-1:1);break}return d}async function ef(t,e){var n;e===void 0&&(e={});const{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=te(e,t),p=gl(d),m=a[f?h==="floating"?"reference":"floating":h],v=xi(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},k=xi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-k.top+p.top)/b.y,bottom:(k.bottom-v.bottom+p.bottom)/b.y,left:(v.left-k.left+p.left)/b.x,right:(k.right-v.right+p.right)/b.x}}const nf=50,rf=async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:ef},l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:h}=vo(c,i,l),f=i,d=0;const p={};for(let g=0;g<s.length;g++){const m=s[g];if(!m)continue;const{name:v,fn:y}=m,{x:_,y:b,data:k,reset:x}=await y({x:u,y:h,initialPlacement:i,placement:f,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=_??u,h=b??h,p[v]={...p[v],...k},x&&d<nf&&(d++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:r}):x.rects),{x:u,y:h}=vo(c,f,l)),g=-1)}return{x:u,y:h,placement:f,strategy:r,middlewareData:p}},sf=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=te(t,e)||{};if(c==null)return{};const h=gl(u),f={x:n,y:i},d=ys(r),p=_s(d),g=await o.getDimensions(c),m=d==="y",v=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",b=s.reference[p]+s.reference[d]-f[d]-s.floating[p],k=f[d]-s.reference[d],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let w=x?x[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(x)))&&(w=a.floating[_]||s.floating[p]);const D=b/2-k/2,E=w/2-g[p]/2-1,O=ge(h[v],E),L=ge(h[y],E),C=O,z=w-g[p]-L,I=w/2-g[p]/2+D,tt=Nr(C,I,z),ot=!l.arrow&&an(r)!=null&&I!==tt&&s.reference[p]/2-(I<C?O:L)-g[p]/2<0,et=ot?I<C?I-C:I-z:0;return{[d]:f[d]+et,data:{[d]:tt,centerOffset:I-tt-et,...ot&&{alignmentOffset:et}},reset:ot}}}),of=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=te(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ee(r),y=zt(a),_=ee(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(_||!g?[yi(a)]:jh(a)),x=p!=="none";!f&&x&&k.push(...Jh(a,g,p,b));const w=[a,...k],D=await l.detectOverflow(e,m),E=[];let O=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&E.push(D[v]),h){const I=Xh(r,o,b);E.push(D[I[0]],D[I[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every(I=>I<=0)){var L,C;const I=(((L=s.flip)==null?void 0:L.index)||0)+1,tt=w[I];if(tt&&(!(h==="alignment"?y!==zt(tt):!1)||O.every(j=>zt(j.placement)===y?j.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:tt}};let ot=(C=O.filter(et=>et.overflows[0]<=0).sort((et,j)=>et.overflows[1]-j.overflows[1])[0])==null?void 0:C.placement;if(!ot)switch(d){case"bestFit":{var z;const et=(z=O.filter(j=>{if(x){const dt=zt(j.placement);return dt===y||dt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(dt=>dt>0).reduce((dt,yt)=>dt+yt,0)]).sort((j,dt)=>j[1]-dt[1])[0])==null?void 0:z[0];et&&(ot=et);break}case"initialPlacement":ot=a;break}if(r!==ot)return{reset:{placement:ot}}}return{}}}};function _o(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function yo(t){return Yh.some(e=>t[e]>=0)}const af=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:i}=e,{strategy:r="referenceHidden",...s}=te(t,e);switch(r){case"referenceHidden":{const o=await i.detectOverflow(e,{...s,elementContext:"reference"}),a=_o(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:yo(a)}}}case"escaped":{const o=await i.detectOverflow(e,{...s,altBoundary:!0}),a=_o(o,n.floating);return{data:{escapedOffsets:a,escaped:yo(a)}}}default:return{}}}}},ml=new Set(["left","top"]);async function lf(t,e){const{placement:n,platform:i,elements:r}=t,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=ee(n),a=an(n),l=zt(n)==="y",c=ml.has(o)?-1:1,u=s&&l?-1:1,h=te(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const cf=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:o,middlewareData:a}=e,l=await lf(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:o}}}}},uf=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...c}=te(t,e),u={x:n,y:i},h=await s.detectOverflow(e,c),f=zt(ee(r)),d=vs(f);let p=u[d],g=u[f];if(o){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",_=p+h[v],b=p-h[y];p=Nr(_,p,b)}if(a){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",_=g+h[v],b=g-h[y];g=Nr(_,g,b)}const m=l.fn({...e,[d]:p,[f]:g});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[d]:o,[f]:a}}}}}},hf=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:r,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=te(t,e),u={x:n,y:i},h=zt(r),f=vs(h);let d=u[f],p=u[h];const g=te(a,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const _=f==="y"?"height":"width",b=s.reference[f]-s.floating[_]+m.mainAxis,k=s.reference[f]+s.reference[_]-m.mainAxis;d<b?d=b:d>k&&(d=k)}if(c){var v,y;const _=f==="y"?"width":"height",b=ml.has(ee(r)),k=s.reference[h]-s.floating[_]+(b&&((v=o.offset)==null?void 0:v[h])||0)+(b?0:m.crossAxis),x=s.reference[h]+s.reference[_]+(b?0:((y=o.offset)==null?void 0:y[h])||0)-(b?m.crossAxis:0);p<k?p=k:p>x&&(p=x)}return{[f]:d,[h]:p}}}},ff=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:r,rects:s,platform:o,elements:a}=e,{apply:l=()=>{},...c}=te(t,e),u=await o.detectOverflow(e,c),h=ee(r),f=an(r),d=zt(r)==="y",{width:p,height:g}=s.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const y=g-u.top-u.bottom,_=p-u.left-u.right,b=ge(g-u[m],y),k=ge(p-u[v],_),x=!e.middlewareData.shift;let w=b,D=k;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=_),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(w=y),x&&!f){const O=wt(u.left,0),L=wt(u.right,0),C=wt(u.top,0),z=wt(u.bottom,0);d?D=p-2*(O!==0||L!==0?O+L:wt(u.left,u.right)):w=g-2*(C!==0||z!==0?C+z:wt(u.top,u.bottom))}await l({...e,availableWidth:D,availableHeight:w});const E=await o.getDimensions(a.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ki(){return typeof window<"u"}function Be(t){return xs(t)?(t.nodeName||"").toLowerCase():"#document"}function kt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Yt(t){var e;return(e=(xs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xs(t){return Ki()?t instanceof Node||t instanceof kt(t).Node:!1}function Pt(t){return Ki()?t instanceof Element||t instanceof kt(t).Element:!1}function oe(t){return Ki()?t instanceof HTMLElement||t instanceof kt(t).HTMLElement:!1}function xo(t){return!Ki()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kt(t).ShadowRoot}function Nn(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&r!=="inline"&&r!=="contents"}function df(t){return/^(table|td|th)$/.test(Be(t))}function Qi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const pf=/transform|translate|scale|rotate|perspective|filter/,gf=/paint|layout|strict|content/,xe=t=>!!t&&t!=="none";let xr;function bs(t){const e=Pt(t)?Rt(t):t;return xe(e.transform)||xe(e.translate)||xe(e.scale)||xe(e.rotate)||xe(e.perspective)||!ws()&&(xe(e.backdropFilter)||xe(e.filter))||pf.test(e.willChange||"")||gf.test(e.contain||"")}function mf(t){let e=me(t);for(;oe(e)&&!Ze(e);){if(bs(e))return e;if(Qi(e))return null;e=me(e)}return null}function ws(){return xr==null&&(xr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xr}function Ze(t){return/^(html|body|#document)$/.test(Be(t))}function Rt(t){return kt(t).getComputedStyle(t)}function Ji(t){return Pt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function me(t){if(Be(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xo(t)&&t.host||Yt(t);return xo(e)?e.host:e}function vl(t){const e=me(t);return Ze(e)?t.ownerDocument?t.ownerDocument.body:t.body:oe(e)&&Nn(e)?e:vl(e)}function An(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=vl(t),s=r===((i=t.ownerDocument)==null?void 0:i.body),o=kt(r);if(s){const a=Lr(o);return e.concat(o,o.visualViewport||[],Nn(r)?r:[],a&&n?An(a):[])}else return e.concat(r,An(r,[],n))}function Lr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _l(t){const e=Rt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=oe(t),s=r?t.offsetWidth:n,o=r?t.offsetHeight:i,a=_i(n)!==s||_i(i)!==o;return a&&(n=s,i=o),{width:n,height:i,$:a}}function ks(t){return Pt(t)?t:t.contextElement}function Ve(t){const e=ks(t);if(!oe(e))return Wt(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=_l(e);let o=(s?_i(n.width):n.width)/i,a=(s?_i(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const vf=Wt(0);function yl(t){const e=kt(t);return!ws()||!e.visualViewport?vf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _f(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==kt(t)?!1:e}function Ee(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=ks(t);let o=Wt(1);e&&(i?Pt(i)&&(o=Ve(i)):o=Ve(t));const a=_f(s,n,i)?yl(s):Wt(0);let l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(s){const f=kt(s),d=i&&Pt(i)?kt(i):i;let p=f,g=Lr(p);for(;g&&i&&d!==p;){const m=Ve(g),v=g.getBoundingClientRect(),y=Rt(g),_=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,b=v.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,h*=m.y,l+=_,c+=b,p=kt(g),g=Lr(p)}}return xi({width:u,height:h,x:l,y:c})}function tr(t,e){const n=Ji(t).scrollLeft;return e?e.left+n:Ee(Yt(t)).left+n}function xl(t,e){const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-tr(t,n),r=n.top+e.scrollTop;return{x:i,y:r}}function yf(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s=r==="fixed",o=Yt(i),a=e?Qi(e.floating):!1;if(i===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Wt(1);const u=Wt(0),h=oe(i);if((h||!h&&!s)&&((Be(i)!=="body"||Nn(o))&&(l=Ji(i)),h)){const d=Ee(i);c=Ve(i),u.x=d.x+i.clientLeft,u.y=d.y+i.clientTop}const f=o&&!h&&!s?xl(o,l):Wt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function xf(t){return Array.from(t.getClientRects())}function bf(t){const e=Yt(t),n=Ji(t),i=t.ownerDocument.body,r=wt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=wt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+tr(t);const a=-n.scrollTop;return Rt(i).direction==="rtl"&&(o+=wt(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}const bo=25;function wf(t,e){const n=kt(t),i=Yt(t),r=n.visualViewport;let s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;const u=ws();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=tr(i);if(c<=0){const u=i.ownerDocument,h=u.body,f=getComputedStyle(h),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(i.clientWidth-h.clientWidth-d);p<=bo&&(s-=p)}else c<=bo&&(s+=c);return{width:s,height:o,x:a,y:l}}function kf(t,e){const n=Ee(t,!0,e==="fixed"),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=oe(t)?Ve(t):Wt(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function wo(t,e,n){let i;if(e==="viewport")i=wf(t,n);else if(e==="document")i=bf(Yt(t));else if(Pt(e))i=kf(e,n);else{const r=yl(t);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return xi(i)}function bl(t,e){const n=me(t);return n===e||!Pt(n)||Ze(n)?!1:Rt(n).position==="fixed"||bl(n,e)}function Sf(t,e){const n=e.get(t);if(n)return n;let i=An(t,[],!1).filter(a=>Pt(a)&&Be(a)!=="body"),r=null;const s=Rt(t).position==="fixed";let o=s?me(t):t;for(;Pt(o)&&!Ze(o);){const a=Rt(o),l=bs(o);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Nn(o)&&!l&&bl(t,o))?i=i.filter(u=>u!==o):r=a,o=me(o)}return e.set(t,i),i}function Tf(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[...n==="clippingAncestors"?Qi(e)?[]:Sf(e,this._c):[].concat(n),i],a=wo(e,o[0],r);let l=a.top,c=a.right,u=a.bottom,h=a.left;for(let f=1;f<o.length;f++){const d=wo(e,o[f],r);l=wt(d.top,l),c=ge(d.right,c),u=ge(d.bottom,u),h=wt(d.left,h)}return{width:c-h,height:u-l,x:h,y:l}}function Cf(t){const{width:e,height:n}=_l(t);return{width:e,height:n}}function Af(t,e,n){const i=oe(e),r=Yt(e),s=n==="fixed",o=Ee(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=Wt(0);function c(){l.x=tr(r)}if(i||!i&&!s)if((Be(e)!=="body"||Nn(r))&&(a=Ji(e)),i){const d=Ee(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&c();s&&!i&&r&&c();const u=r&&!i&&!s?xl(r,a):Wt(0),h=o.left+a.scrollLeft-l.x-u.x,f=o.top+a.scrollTop-l.y-u.y;return{x:h,y:f,width:o.width,height:o.height}}function br(t){return Rt(t).position==="static"}function ko(t,e){if(!oe(t)||Rt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Yt(t)===n&&(n=n.ownerDocument.body),n}function wl(t,e){const n=kt(t);if(Qi(t))return n;if(!oe(t)){let r=me(t);for(;r&&!Ze(r);){if(Pt(r)&&!br(r))return r;r=me(r)}return n}let i=ko(t,e);for(;i&&df(i)&&br(i);)i=ko(i,e);return i&&Ze(i)&&br(i)&&!bs(i)?n:i||mf(t)||n}const Mf=async function(t){const e=this.getOffsetParent||wl,n=this.getDimensions,i=await n(t.floating);return{reference:Af(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Of(t){return Rt(t).direction==="rtl"}const Ef={convertOffsetParentRelativeRectToViewportRelativeRect:yf,getDocumentElement:Yt,getClippingRect:Tf,getOffsetParent:wl,getElementRects:Mf,getClientRects:xf,getDimensions:Cf,getScale:Ve,isElement:Pt,isRTL:Of};function kl(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Df(t,e){let n=null,i;const r=Yt(t);function s(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:u,top:h,width:f,height:d}=c;if(a||e(),!f||!d)return;const p=Yn(h),g=Yn(r.clientWidth-(u+f)),m=Yn(r.clientHeight-(h+d)),v=Yn(u),_={rootMargin:-p+"px "+-g+"px "+-m+"px "+-v+"px",threshold:wt(0,ge(1,l))||1};let b=!0;function k(x){const w=x[0].intersectionRatio;if(w!==l){if(!b)return o();w?o(!1,w):i=setTimeout(()=>{o(!1,1e-7)},1e3)}w===1&&!kl(c,t.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(k,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return o(!0),s}function $f(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=ks(t),u=r||s?[...c?An(c):[],...e?An(e):[]]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=c&&a?Df(c,n):null;let f=-1,d=null;o&&(d=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&d&&e&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=d)==null||_.observe(e)})),n()}),c&&!l&&d.observe(c),e&&d.observe(e));let p,g=l?Ee(t):null;l&&m();function m(){const v=Ee(t);g&&!kl(g,v)&&n(),g=v,p=requestAnimationFrame(m)}return n(),()=>{var v;u.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h?.(),(v=d)==null||v.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Ff=cf,Pf=uf,So=of,Rf=ff,Nf=af,Bf=sf,Lf=hf,If=(t,e,n)=>{const i=new Map,r={platform:Ef,...n},s={...r.platform,_c:i};return rf(t,e,{...r,platform:s})};function Hf(t){return t!=null&&typeof t=="object"&&"$el"in t}function Ir(t){if(Hf(t)){const e=t.$el;return xs(e)&&Be(e)==="#comment"?null:e}return t}function Ue(t){return typeof t=="function"?t():T(t)}function zf(t){return{name:"arrow",options:t,fn(e){const n=Ir(Ue(t.element));return n==null?{}:Bf({element:n,padding:t.padding}).fn(e)}}}function Sl(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function To(t,e){const n=Sl(t);return Math.round(e*n)/n}function Wf(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,r=F(()=>{var w;return(w=Ue(n.open))!=null?w:!0}),s=F(()=>Ue(n.middleware)),o=F(()=>{var w;return(w=Ue(n.placement))!=null?w:"bottom"}),a=F(()=>{var w;return(w=Ue(n.strategy))!=null?w:"absolute"}),l=F(()=>{var w;return(w=Ue(n.transform))!=null?w:!0}),c=F(()=>Ir(t.value)),u=F(()=>Ir(e.value)),h=Y(0),f=Y(0),d=Y(a.value),p=Y(o.value),g=th({}),m=Y(!1),v=F(()=>{const w={position:d.value,left:"0",top:"0"};if(!u.value)return w;const D=To(u.value,h.value),E=To(u.value,f.value);return l.value?{...w,transform:"translate("+D+"px, "+E+"px)",...Sl(u.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:D+"px",top:E+"px"}});let y;function _(){if(c.value==null||u.value==null)return;const w=r.value;If(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(D=>{h.value=D.x,f.value=D.y,d.value=D.strategy,p.value=D.placement,g.value=D.middlewareData,m.value=w!==!1})}function b(){typeof y=="function"&&(y(),y=void 0)}function k(){if(b(),i===void 0){_();return}if(c.value!=null&&u.value!=null){y=i(c.value,u.value,_);return}}function x(){r.value||(m.value=!1)}return pt([s,o,a,r],_,{flush:"sync"}),pt([c,u],k,{flush:"sync"}),pt(r,x,{flush:"sync"}),Qu()&&Ju(b),{x:ze(h),y:ze(f),strategy:ze(d),placement:ze(p),middlewareData:ze(g),isPositioned:ze(m),floatingStyles:v,update:_}}const Uf={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[qf,Vf]=Xi("PopperContent");var Yf=P({inheritAttrs:!1,__name:"PopperContent",props:nh({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Uf}),emits:["placed"],setup(t,{emit:e}){const n=t,i=e,r=pl(),{forwardRef:s,currentElement:o}=Nt(),a=Y(),l=Y(),{width:c,height:u}=bh(l),h=F(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=F(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=F(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=F(()=>({padding:f.value,boundary:d.value.filter(qh),altBoundary:d.value.length>0})),g=F(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),m=eh(()=>[Ff({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&So({...p.value,...g.value}),n.avoidCollisions&&Pf({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Lf():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&So({...p.value,...g.value}),Rf({...p.value,apply:({elements:C,rects:z,availableWidth:I,availableHeight:tt})=>{const{width:ot,height:et}=z.reference,j=C.floating.style;j.setProperty("--reka-popper-available-width",`${I}px`),j.setProperty("--reka-popper-available-height",`${tt}px`),j.setProperty("--reka-popper-anchor-width",`${ot}px`),j.setProperty("--reka-popper-anchor-height",`${et}px`)}}),l.value&&zf({element:l.value,padding:n.arrowPadding}),Vh({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&Nf({strategy:"referenceHidden",...p.value})]),v=F(()=>n.reference??r.anchor.value),{floatingStyles:y,placement:_,isPositioned:b,middlewareData:k}=Wf(v,a,{strategy:n.positionStrategy,placement:h,whileElementsMounted:(...C)=>$f(...C,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),x=F(()=>Rr(_.value)[0]),w=F(()=>Rr(_.value)[1]);ol(()=>{b.value&&i("placed")});const D=F(()=>{const C=k.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&C}),E=Y("");de(()=>{o.value&&(E.value=window.getComputedStyle(o.value).zIndex)});const O=F(()=>k.value.arrow?.x??0),L=F(()=>k.value.arrow?.y??0);return Vf({placedSide:x,onArrowChange:C=>l.value=C,arrowX:O,arrowY:L,shouldHideArrow:D}),(C,z)=>($(),G("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:Gi({...T(y),transform:T(b)?T(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[T(k).transformOrigin?.x,T(k).transformOrigin?.y].join(" "),...T(k).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[lt(T(Ne),Vt({ref:T(s)},C.$attrs,{"as-child":n.asChild,as:C.as,"data-side":x.value,"data-align":w.value,style:{animation:T(b)?void 0:"none"}}),{default:H(()=>[B(C.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Gf=Yf;const Xf={top:"bottom",right:"left",bottom:"top",left:"right"};var jf=P({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const{forwardRef:e}=Nt(),n=qf(),i=F(()=>Xf[n.placedSide.value]);return(r,s)=>($(),G("span",{ref:o=>{T(n).onArrowChange(o??void 0)},style:Gi({position:"absolute",left:T(n).arrowX?.value?`${T(n).arrowX?.value}px`:void 0,top:T(n).arrowY?.value?`${T(n).arrowY?.value}px`:void 0,[i.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[T(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[T(n).placedSide.value],visibility:T(n).shouldHideArrow.value?"hidden":void 0})},[lt(Uh,Vt(r.$attrs,{ref:T(e),style:{display:"block"},as:r.as,"as-child":r.asChild,rounded:r.rounded,width:r.width,height:r.height}),{default:H(()=>[B(r.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Zf=jf,Kf=P({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Nt(),(n,i)=>($(),Z(T(Zf),ps(gs(e)),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),Qf=Kf;const Tl="tooltip.open",[er,Jf]=Xi("TooltipRoot");var td=P({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:e}){const n=t,i=e;Nt();const r=ji(),s=F(()=>n.disableHoverableContent??r.disableHoverableContent.value),o=F(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),a=F(()=>n.disabled??r.disabled.value),l=F(()=>n.delayDuration??r.delayDuration.value),c=F(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=ih(n,"open",i,{defaultValue:n.defaultOpen,passive:n.open===void 0});pt(u,_=>{r.onClose&&(_?(r.onOpen(),document.dispatchEvent(new CustomEvent(Tl))):r.onClose())});const h=Y(!1),f=Y(),d=F(()=>u.value?h.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=rh(()=>{h.value=!0,u.value=!0},l,{immediate:!1});function m(){g(),h.value=!1,u.value=!0}function v(){g(),u.value=!1}function y(){p()}return Jf({contentId:"",open:u,stateAttribute:d,trigger:f,onTriggerChange(_){f.value=_},onTriggerEnter(){r.isOpenDelayed.value?y():m()},onTriggerLeave(){s.value?v():g()},onOpen:m,onClose:v,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:c}),(_,b)=>($(),Z(T(Bh),null,{default:H(()=>[B(_.$slots,"default",{open:T(u)})]),_:3}))}}),ed=td,nd=P({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=er(),s=ji(),{forwardRef:o,currentElement:a}=Nt(),l=F(()=>n.ariaLabel||a.value?.textContent),c=F(()=>{const{ariaLabel:u,...h}=n;return oh(h,s.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return _e(()=>{po(window,"scroll",u=>{u.target?.contains(r.trigger.value)&&r.onClose()},{capture:!0}),po(window,Tl,r.onClose)}),(u,h)=>($(),Z(T(Eh),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:h[0]||(h[0]=f=>i("escapeKeyDown",f)),onPointerDownOutside:h[1]||(h[1]=f=>{T(r).disableClosingTrigger.value&&T(r).trigger.value?.contains(f.target)&&f.preventDefault(),i("pointerDownOutside",f)}),onFocusOutside:h[2]||(h[2]=sh(()=>{},["prevent"])),onDismiss:h[3]||(h[3]=f=>T(r).onClose())},{default:H(()=>[lt(T(Gf),Vt({ref:T(o),"data-state":T(r).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:H(()=>[B(u.$slots,"default"),lt(T(Ph),{id:T(r).contentId,role:"tooltip"},{default:H(()=>[qe(Jt(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Cl=nd,id=P({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=hl(t),{forwardRef:i,currentElement:r}=Nt(),{trigger:s,onClose:o}=er(),a=ji(),{isPointerInTransit:l,onPointerExit:c}=ph(s,r);return a.isPointerInTransitRef=l,c(()=>{o()}),(u,h)=>($(),Z(Cl,Vt({ref:T(i)},T(n)),{default:H(()=>[B(u.$slots,"default")]),_:3},16))}}),rd=id,sd=P({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=er(),s=ms(n,i),{forwardRef:o}=Nt();return(a,l)=>($(),Z(T(Sh),{present:a.forceMount||T(r).open.value},{default:H(()=>[($(),Z(ah(T(r).disableHoverableContent.value?Cl:rd),Vt({ref:T(o)},T(s)),{default:H(()=>[B(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),od=sd,ad=P({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=t;return(n,i)=>($(),Z(T($h),ps(gs(e)),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),ld=ad,cd=P({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,n=er(),i=ji();n.contentId||=fl(void 0,"reka-tooltip-content");const{forwardRef:r,currentElement:s}=Nt(),o=Y(!1),a=Y(!1),l=F(()=>n.disabled.value?{}:{click:g,focus:d,pointermove:h,pointerleave:f,pointerdown:u,blur:p});_e(()=>{n.onTriggerChange(s.value)});function c(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener("pointerup",c,{once:!0})}function h(m){m.pointerType!=="touch"&&!a.value&&!i.isPointerInTransitRef.value&&(n.onTriggerEnter(),a.value=!0)}function f(){n.onTriggerLeave(),a.value=!1}function d(m){o.value||n.ignoreNonKeyboardFocus.value&&!m.target.matches?.(":focus-visible")||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(m,v)=>($(),Z(T(Ih),{"as-child":"",reference:m.reference},{default:H(()=>[lt(T(Ne),Vt({ref:T(r),"aria-describedby":T(n).open.value?T(n).contentId:void 0,"data-state":T(n).stateAttribute.value,as:m.as,"as-child":e.asChild,"data-grace-area-trigger":""},lh(l.value)),{default:H(()=>[B(m.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),ud=cd;const hd=P({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const r=ms(t,e);return(s,o)=>($(),Z(T(ed),Vt({"data-slot":"tooltip"},T(r)),{default:H(a=>[B(s.$slots,"default",ps(gs(a)))]),_:3},16))}}),fd=P({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=ch(n,"class"),s=ms(r,i);return(o,a)=>($(),Z(T(ld),null,{default:H(()=>[lt(T(od),Vt({"data-slot":"tooltip-content"},{...T(s),...o.$attrs},{class:T(ht)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",n.class)}),{default:H(()=>[B(o.$slots,"default"),lt(T(Qf),{class:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),dd=P({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,i)=>($(),Z(T(ud),Vt({"data-slot":"tooltip-trigger"},e),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),pd={class:"max-w-64 leading-relaxed"},gd=P({name:"ValueTooltip",__name:"ValueTooltip",props:{content:{}},setup(t){return(e,n)=>{const i=dd,r=fd,s=hd;return t.content?($(),Z(s,{key:1},{default:H(()=>[lt(i,{"as-child":""},{default:H(()=>[B(e.$slots,"default")]),_:3}),lt(r,{side:"bottom"},{default:H(()=>[Et("p",pd,Jt(t.content),1)]),_:1})]),_:3})):B(e.$slots,"default",{key:0})}}}),md=Object.assign(gd,{__name:"ValueTooltip"}),vd=P({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card",class:it(T(ht)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[B(n.$slots,"default")],2))}}),_d=P({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card-content",class:it(T(ht)("px-6",e.class))},[B(n.$slots,"default")],2))}}),yd=P({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card-header",class:it(T(ht)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class))},[B(n.$slots,"default")],2))}}),xd=P({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("h3",{"data-slot":"card-title",class:it(T(ht)("leading-none font-semibold",e.class))},[B(n.$slots,"default")],2))}}),bd={class:"flex items-start justify-between gap-4"},wd={class:"min-w-0 space-y-1"},kd={key:0,class:"text-sm text-muted-foreground"},Sd=P({name:"StatisticalAnalysisPanel",__name:"Panel",props:{compact:{type:Boolean},description:{},icon:{},title:{}},setup(t){return(e,n)=>{const i=xd,r=cl,s=yd,o=_d,a=vd;return $(),Z(a,{class:it(T(ht)("shadow-none bg-transparent",t.compact?"gap-3 py-4":"gap-4 py-5"))},{default:H(()=>[lt(s,{class:it(T(ht)(t.compact?"px-4":"px-5"))},{default:H(()=>[Et("div",bd,[Et("div",wd,[lt(i,{class:it(t.compact?"text-xs font-medium text-muted-foreground uppercase tracking-wide":"text-base")},{default:H(()=>[qe(Jt(t.title),1)]),_:1},8,["class"]),t.description?($(),G("p",kd,Jt(t.description),1)):vi("",!0)]),t.icon?($(),G("div",{key:0,class:it(T(ht)("shrink-0 rounded-lg bg-secondary text-secondary-foreground flex items-center justify-center",t.compact?"size-7":"size-8"))},[lt(r,{mode:"svg",name:t.icon,class:it(t.compact?"size-3.5":"size-4")},null,8,["name","class"])],2)):vi("",!0)])]),_:1},8,["class"]),lt(o,{class:it(T(ht)(t.compact?"px-4":"px-5"))},{default:H(()=>[B(e.$slots,"default")]),_:3},8,["class"])]),_:3},8,["class"])}}}),Td=Object.assign(Sd,{__name:"StatisticalAnalysisPanel"}),Cd={class:"flex justify-between items-center"},Ad={class:"flex items-center gap-1"},Md=P({name:"StatisticalAnalysisTotalCard",__name:"TotalCard",props:{detail:{},name:{},value:{},icon:{},trend:{},trendTone:{default:"neutral"}},setup(t){const e=t,n=F(()=>e.trendTone==="down"?{icon:"lucide:trending-down",iconClass:"size-3 text-red-500",textClass:"text-xs font-medium text-red-500"}:e.trendTone==="up"?{icon:"lucide:trending-up",iconClass:"size-3 text-emerald-500",textClass:"text-xs font-medium text-emerald-600 dark:text-emerald-400"}:{icon:"lucide:minus",iconClass:"size-3 text-muted-foreground",textClass:"text-xs font-medium text-muted-foreground"});return(i,r)=>{const s=md,o=cl,a=Td;return $(),Z(a,{compact:"",icon:t.icon,title:t.name},{default:H(()=>[Et("div",Cd,[lt(s,{content:t.detail},{default:H(()=>[Et("span",{class:it(T(ht)("text-2xl font-bold tracking-tight"))},Jt(t.value),3)]),_:1},8,["content"]),Et("div",Ad,[lt(o,{class:it(T(n).iconClass),mode:"svg",name:T(n).icon},null,8,["class","name"]),Et("span",{class:it(T(n).textClass)},Jt(t.trend),3)])])]),_:1},8,["icon","title"])}}}),Od=Object.assign(Md,{__name:"StatisticalAnalysisTotalCard"}),Ed={class:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4"},Dd=P({name:"DashboardOverviewCards",__name:"OverviewCards",props:{cards:{}},setup(t){return(e,n)=>{const i=Od;return $(),G("div",Ed,[($(!0),G(al,null,ll(t.cards,r=>($(),Z(i,{key:r.name,detail:r.detail,icon:r.icon,name:r.name,trend:r.trend,"trend-tone":r.trendTone,value:r.value},null,8,["detail","icon","name","trend","trend-tone","value"]))),128))])}}}),F1=Object.assign(Dd,{__name:"DashboardOverviewCards"}),$d=P({__name:"ChartStyle",props:{id:{}},setup(t){const{config:e}=l1(),n=F(()=>Object.entries(e.value).filter(([,i])=>i.theme||i.color));return(i,r)=>n.value.length?($(),Z(T(Ne),{key:0,as:"style"},{default:H(()=>[qe(Jt(Object.entries(T(a1)).map(([s,o])=>`
|
|
4
|
-
${o} [data-chart=${t.id}] {
|
|
5
|
-
${n.value.map(([a,l])=>{const c=l.theme?.[s]||l.color;return c?` --color-${a}: ${c};`:null}).join(`
|
|
6
|
-
`)}
|
|
7
|
-
}
|
|
8
|
-
`).join(`
|
|
9
|
-
`)),1)]),_:1})):vi("",!0)}}),Fd=["data-chart"],P1=P({__name:"ChartContainer",props:{id:{},class:{type:[Boolean,null,String,Object,Array]},config:{},cursor:{type:Boolean}},setup(t){const e=t,{config:n}=ds(e),i=fl(),r=F(()=>`chart-${e.id||i.replace(/:/g,"")}`);return c1({id:i,config:n}),(s,o)=>($(),G("div",{"data-slot":"chart","data-chart":r.value,class:it(T(ht)("[&_.tick_text]:!fill-muted-foreground [&_.tick_line]:!stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex flex-col aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden [&_[data-vis-xy-container]]:h-full [&_[data-vis-single-container]]:h-full h-full [&_[data-vis-xy-container]]:w-full [&_[data-vis-single-container]]:w-full w-full ",e.class)),style:Gi({"--vis-tooltip-padding":"0px","--vis-tooltip-background-color":"transparent","--vis-tooltip-border-color":"transparent","--vis-tooltip-text-color":"none","--vis-tooltip-shadow-color":"none","--vis-tooltip-backdrop-filter":"none","--vis-crosshair-circle-stroke-color":"#0000","--vis-crosshair-line-stroke-width":t.cursor?"1px":"0px","--vis-font-family":"var(--font-sans)"})},[B(s.$slots,"default",{id:T(i),config:T(n)}),lt($d,{id:r.value},null,8,["id"])],14,Fd))}});var Hr="http://www.w3.org/1999/xhtml";const Co={svg:"http://www.w3.org/2000/svg",xhtml:Hr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nr(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Co.hasOwnProperty(e)?{space:Co[e],local:t}:t}function Pd(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Hr&&e.documentElement.namespaceURI===Hr?e.createElement(t):e.createElementNS(n,t)}}function Rd(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Al(t){var e=nr(t);return(e.local?Rd:Pd)(e)}function Nd(){}function Ss(t){return t==null?Nd:function(){return this.querySelector(t)}}function Bd(t){typeof t!="function"&&(t=Ss(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=new Array(o),l,c,u=0;u<o;++u)(l=s[u])&&(c=t.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new Tt(i,this._parents)}function Ld(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Id(){return[]}function Ml(t){return t==null?Id:function(){return this.querySelectorAll(t)}}function Hd(t){return function(){return Ld(t.apply(this,arguments))}}function zd(t){typeof t=="function"?t=Hd(t):t=Ml(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),r.push(l));return new Tt(i,r)}function Ol(t){return function(){return this.matches(t)}}function El(t){return function(e){return e.matches(t)}}var Wd=Array.prototype.find;function Ud(t){return function(){return Wd.call(this.children,t)}}function qd(){return this.firstElementChild}function Vd(t){return this.select(t==null?qd:Ud(typeof t=="function"?t:El(t)))}var Yd=Array.prototype.filter;function Gd(){return Array.from(this.children)}function Xd(t){return function(){return Yd.call(this.children,t)}}function jd(t){return this.selectAll(t==null?Gd:Xd(typeof t=="function"?t:El(t)))}function Zd(t){typeof t!="function"&&(t=Ol(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new Tt(i,this._parents)}function Dl(t){return new Array(t.length)}function Kd(){return new Tt(this._enter||this._groups.map(Dl),this._parents)}function bi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bi.prototype={constructor:bi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Qd(t){return function(){return t}}function Jd(t,e,n,i,r,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],i[o]=a):n[o]=new bi(t,s[o]);for(;o<l;++o)(a=e[o])&&(r[o]=a)}function tp(t,e,n,i,r,s,o){var a,l,c=new Map,u=e.length,h=s.length,f=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(f[a]=d=o.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<h;++a)d=o.call(t,s[a],a,s)+"",(l=c.get(d))?(i[a]=l,l.__data__=s[a],c.delete(d)):n[a]=new bi(t,s[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function ep(t){return t.__data__}function np(t,e){if(!arguments.length)return Array.from(this,ep);var n=e?tp:Jd,i=this._parents,r=this._groups;typeof t!="function"&&(t=Qd(t));for(var s=r.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var u=i[c],h=r[c],f=h.length,d=ip(t.call(u,u&&u.__data__,c,i)),p=d.length,g=a[c]=new Array(p),m=o[c]=new Array(p),v=l[c]=new Array(f);n(u,h,g,m,v,d,e);for(var y=0,_=0,b,k;y<p;++y)if(b=g[y]){for(y>=_&&(_=y+1);!(k=m[_])&&++_<p;);b._next=k||null}}return o=new Tt(o,i),o._enter=a,o._exit=l,o}function ip(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function rp(){return new Tt(this._exit||this._groups.map(Dl),this._parents)}function sp(t,e,n){var i=this.enter(),r=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?s.remove():n(s),i&&r?i.merge(r).order():r}function op(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),l=0;l<o;++l)for(var c=n[l],u=i[l],h=c.length,f=a[l]=new Array(h),d,p=0;p<h;++p)(d=c[p]||u[p])&&(f[p]=d);for(;l<r;++l)a[l]=n[l];return new Tt(a,this._parents)}function ap(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,s=i[r],o;--r>=0;)(o=i[r])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function lp(t){t||(t=cp);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o=n[s],a=o.length,l=r[s]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(e)}return new Tt(r,this._parents).order()}function cp(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function up(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function hp(){return Array.from(this)}function fp(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null}function dp(){let t=0;for(const e of this)++t;return t}function pp(){return!this.node()}function gp(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],s=0,o=r.length,a;s<o;++s)(a=r[s])&&t.call(a,a.__data__,s,r);return this}function mp(t){return function(){this.removeAttribute(t)}}function vp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _p(t,e){return function(){this.setAttribute(t,e)}}function yp(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xp(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function bp(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wp(t,e){var n=nr(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?vp:mp:typeof e=="function"?n.local?bp:xp:n.local?yp:_p)(n,e))}function $l(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function kp(t){return function(){this.style.removeProperty(t)}}function Sp(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Tp(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Cp(t,e,n){return arguments.length>1?this.each((e==null?kp:typeof e=="function"?Tp:Sp)(t,e,n??"")):Ke(this.node(),t)}function Ke(t,e){return t.style.getPropertyValue(e)||$l(t).getComputedStyle(t,null).getPropertyValue(e)}function Ap(t){return function(){delete this[t]}}function Mp(t,e){return function(){this[t]=e}}function Op(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ep(t,e){return arguments.length>1?this.each((e==null?Ap:typeof e=="function"?Op:Mp)(t,e)):this.node()[t]}function Fl(t){return t.trim().split(/^|\s+/)}function Ts(t){return t.classList||new Pl(t)}function Pl(t){this._node=t,this._names=Fl(t.getAttribute("class")||"")}Pl.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Rl(t,e){for(var n=Ts(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Nl(t,e){for(var n=Ts(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Dp(t){return function(){Rl(this,t)}}function $p(t){return function(){Nl(this,t)}}function Fp(t,e){return function(){(e.apply(this,arguments)?Rl:Nl)(this,t)}}function Pp(t,e){var n=Fl(t+"");if(arguments.length<2){for(var i=Ts(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Fp:e?Dp:$p)(n,e))}function Rp(){this.textContent=""}function Np(t){return function(){this.textContent=t}}function Bp(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Lp(t){return arguments.length?this.each(t==null?Rp:(typeof t=="function"?Bp:Np)(t)):this.node().textContent}function Ip(){this.innerHTML=""}function Hp(t){return function(){this.innerHTML=t}}function zp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Wp(t){return arguments.length?this.each(t==null?Ip:(typeof t=="function"?zp:Hp)(t)):this.node().innerHTML}function Up(){this.nextSibling&&this.parentNode.appendChild(this)}function qp(){return this.each(Up)}function Vp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yp(){return this.each(Vp)}function Gp(t){var e=typeof t=="function"?t:Al(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Xp(){return null}function jp(t,e){var n=typeof t=="function"?t:Al(t),i=e==null?Xp:typeof e=="function"?e:Ss(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Zp(){var t=this.parentNode;t&&t.removeChild(this)}function Kp(){return this.each(Zp)}function Qp(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Jp(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tg(t){return this.select(t?Jp:Qp)}function eg(t){return arguments.length?this.property("__data__",t):this.node().__data__}function ng(t){return function(e){t.call(this,e,this.__data__)}}function ig(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function rg(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,s;n<r;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function sg(t,e,n){return function(){var i=this.__on,r,s=ng(e);if(i){for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),r.value=e;return}}this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function og(t,e,n){var i=ig(t+""),r,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(r=0,u=a[l];r<s;++r)if((o=i[r]).type===u.type&&o.name===u.name)return u.value}return}for(a=e?sg:rg,r=0;r<s;++r)this.each(a(i[r],e,n));return this}function Bl(t,e,n){var i=$l(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function ag(t,e){return function(){return Bl(this,t,e)}}function lg(t,e){return function(){return Bl(this,t,e.apply(this,arguments))}}function cg(t,e){return this.each((typeof e=="function"?lg:ag)(t,e))}function*ug(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length,o;r<s;++r)(o=i[r])&&(yield o)}var Ll=[null];function Tt(t,e){this._groups=t,this._parents=e}function Bn(){return new Tt([[document.documentElement]],Ll)}function hg(){return this}Tt.prototype=Bn.prototype={constructor:Tt,select:Bd,selectAll:zd,selectChild:Vd,selectChildren:jd,filter:Zd,data:np,enter:Kd,exit:rp,join:sp,merge:op,selection:hg,order:ap,sort:lp,call:up,nodes:hp,node:fp,size:dp,empty:pp,each:gp,attr:wp,style:Cp,property:Ep,classed:Pp,text:Lp,html:Wp,raise:qp,lower:Yp,append:Gp,insert:jp,remove:Kp,clone:tg,datum:eg,on:og,dispatch:cg,[Symbol.iterator]:ug};function $t(t){return typeof t=="string"?new Tt([[document.querySelector(t)]],[document.documentElement]):new Tt([[t]],Ll)}function fg(t){let e;for(;e=t.sourceEvent;)t=e;return t}function wi(t,e){if(t=fg(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var wn;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(wn||(wn={}));var Qe;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Qe||(Qe={}));function kn(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dg(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cs(t){let e,n,i;t.length!==2?(e=kn,n=(a,l)=>kn(t(a),l),i=(a,l)=>t(a)-l):(e=t===kn||t===dg?t:pg,n=t,i=t);function r(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<0?c=h+1:u=h}while(c<u)}return c}function s(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<=0?c=h+1:u=h}while(c<u)}return c}function o(a,l,c=0,u=a.length){const h=r(a,l,c,u-1);return h>c&&i(a[h-1],l)>-i(a[h],l)?h-1:h}return{left:r,center:o,right:s}}function pg(){return 0}function Il(t){return t===null?NaN:+t}const Hl=Cs(kn),Ln=Hl.right,gg=Hl.left;Cs(Il).center;function mg(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class Ao extends Map{constructor(e,n=yg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Mo(this,e))}has(e){return super.has(Mo(this,e))}set(e,n){return super.set(vg(this,e),n)}delete(e){return super.delete(_g(this,e))}}function Mo({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function vg({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function _g({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function yg(t){return t!==null&&typeof t=="object"?t.valueOf():t}const xg=Math.sqrt(50),bg=Math.sqrt(10),wg=Math.sqrt(2);function ki(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),s=i/Math.pow(10,r),o=s>=xg?10:s>=bg?5:s>=wg?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/o,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*o,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?ki(t,e,n*2):[a,l,c]}function zr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,s,o]=i?ki(e,t,n):ki(t,e,n);if(!(s>=r))return[];const a=s-r+1,l=new Array(a);if(i)if(o<0)for(let c=0;c<a;++c)l[c]=(s-c)/-o;else for(let c=0;c<a;++c)l[c]=(s-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(r+c)/-o;else for(let c=0;c<a;++c)l[c]=(r+c)*o;return l}function Wr(t,e,n){return e=+e,t=+t,n=+n,ki(t,e,n)[2]}function Ur(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Wr(e,t,n):Wr(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Oo(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Eo(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function kg(t,e,n=Il){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(r-s)}}function Sg(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function*Tg(t){for(const e of t)yield*e}function Cg(t){return Array.from(Tg(t))}function Ag(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(r);++i<r;)s[i]=t+i*n;return s}function Mg(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Og(t,e,n){var i={},r=i.noTrailing,s=r===void 0?!1:r,o=i.noLeading,a=o===void 0?!1:o,l=i.debounceMode,c=l===void 0?void 0:l,u,h=!1,f=0;function d(){u&&clearTimeout(u)}function p(m){var v=m||{},y=v.upcomingOnly,_=y===void 0?!1:y;d(),h=!_}function g(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];var _=this,b=Date.now()-f;if(h)return;function k(){f=Date.now(),e.apply(_,v)}function x(){u=void 0}!a&&c&&!u&&k(),d(),c===void 0&&b>t?a?(f=Date.now(),s||(u=setTimeout(c?x:k,t))):k():s!==!0&&(u=setTimeout(c?x:k,c===void 0?t-b:t))}return g.cancel=p,g}var Zt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(Zt||(Zt={}));const Se=t=>typeof t=="number",As=t=>typeof t=="function",De=t=>Array.isArray(t),Eg=t=>t instanceof Object,Si=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Do=t=>Eg(t)&&!De(t)&&!As(t)&&!Si(t),R1=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,$e=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!$e(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(o=>!n.includes(o)),s=Object.keys(e).filter(o=>!n.includes(o));if(r.length!==s.length)return!1;if(i.has(t))return!0;i.add(t);for(const o of r)if(!$e(t[o],e[o],n,i))return!1;return!0}return t===e},qr=t=>t.flat(),Ti=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):Ti(i,e));return n}if(Si(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,s)=>(r[s]=e.has(i[s])?e.get(i[s]):Ti(i[s],e),r),n),n}return t},Je=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Si(t)?t:Ti(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Do(t[r])&&Do(e[r])?i[r]=Je(t[r],e[r],n):Si(e)?i[r]=e:i[r]=Ti(e[r]))}),i)},Ci=(t,e,n)=>Og(e,t);function Ms(t,e,n){return As(e)?e(t,n):e}function Vr(t,e,n){return Ms(t,e,n)}function nt(t,e,n){return Ms(t,e,n)}function hn(t){return t.filter(e=>e&&!Se(e))}function ce(t,e,n){return Math.min(Math.max(t,e),n)}function Dg(t,...e){if(!t)return[void 0,void 0];if(De(e)){let n=0,i=0;return t.forEach((r,s)=>{let o=0,a=0;for(const l of e){const c=nt(r,l,s)||0;c>=0?o+=c:a+=c}o>i&&(i=o),a<n&&(n=a)}),[n,i]}}function $g(t,e,...n){const i=[];let r=0,s=0;for(const o of n){const a=nt(t,o,e)||0;a>=0?i.push(r+=a):i.push(s+=a)}return i}function Fg(t,e,n,i){const r=t.map((a,l)=>nt(a,e,l)||0),s=n.map((a,l)=>{const c=Sg(t,(u,h)=>nt(u,a,h)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),o=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],u=r[l];n.forEach((h,f)=>{const d=nt(a,h,l)||0;d>=0?o[f].push([c,c+=d]):o[f].push([u,u+=d])})}),o.forEach((a,l)=>{a.isMostlyNegative=s[l]}),o}function Pg(t,...e){return t?Eo(t,(i,r)=>Eo(e,s=>nt(i,s,r))):void 0}function Rg(t,...e){return t?Oo(t,(i,r)=>Oo(e,s=>nt(i,s,r))):void 0}function wr(t,...e){return[Pg(t,...e),Rg(t,...e)]}function Ai(t,e,n,i=Zt.Auto){if(t.length<=1)return t[0];const s=t.map((l,c)=>[l,c]).sort(([l,c],[u,h])=>nt(l,n,c)-nt(u,n,h)),o=s.map(([l,c])=>nt(l,n,c)),a=i===Zt.Right?gg(o,e,0,t.length-1):Ln(o,e,1,t.length);return i===Zt.Right?s[a][0]:i===Zt.Left?s[a-1][0]:e-o[a-1]>o[a]-e?s[a][0]:s[a-1][0]}function zl(t,e,n,i=!1){if(!n)return[];const r=t.filter((s,o)=>{const a=nt(s,n,o);return a>=e[0]&&a<=e[1]});if(i){if(r.length===0){const h=Ai(t,e[0],n,Zt.Left),f=Ai(t,e[1],n,Zt.Right);return[h,f].filter(Boolean)}const s=r[0],o=r[r.length-1],a=t.findIndex(h=>h===s),l=t.findIndex(h=>h===o),c=Math.max(0,a-1),u=Math.min(t.length-1,l+1);return t.slice(c,u+1)}return r}var Te=[],Ng=function(){return Te.some(function(t){return t.activeTargets.length>0})},Bg=function(){return Te.some(function(t){return t.skippedTargets.length>0})},$o="ResizeObserver loop completed with undelivered notifications.",Lg=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:$o}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=$o),window.dispatchEvent(t)},Mn;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Mn||(Mn={}));var Ce=function(t){return Object.freeze(t)},Ig=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Ce(this)}return t})(),Wl=(function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ce(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:s,bottom:o,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Os=function(t){return t instanceof SVGElement&&"getBBox"in t},Ul=function(t){if(Os(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||t.getClientRects().length)},Fo=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Hg=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Sn=typeof window<"u"?window:{},Gn=new WeakMap,Po=/auto|scroll/,zg=/^tb|vertical/,Wg=/msie|trident/i.test(Sn.navigator&&Sn.navigator.userAgent),It=function(t){return parseFloat(t||"0")},Ye=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Ig((n?e:t)||0,(n?t:e)||0)},Ro=Ce({devicePixelContentBoxSize:Ye(),borderBoxSize:Ye(),contentBoxSize:Ye(),contentRect:new Wl(0,0,0,0)}),ql=function(t,e){if(e===void 0&&(e=!1),Gn.has(t)&&!e)return Gn.get(t);if(Ul(t))return Gn.set(t,Ro),Ro;var n=getComputedStyle(t),i=Os(t)&&t.ownerSVGElement&&t.getBBox(),r=!Wg&&n.boxSizing==="border-box",s=zg.test(n.writingMode||""),o=!i&&Po.test(n.overflowY||""),a=!i&&Po.test(n.overflowX||""),l=i?0:It(n.paddingTop),c=i?0:It(n.paddingRight),u=i?0:It(n.paddingBottom),h=i?0:It(n.paddingLeft),f=i?0:It(n.borderTopWidth),d=i?0:It(n.borderRightWidth),p=i?0:It(n.borderBottomWidth),g=i?0:It(n.borderLeftWidth),m=h+c,v=l+u,y=g+d,_=f+p,b=a?t.offsetHeight-_-t.clientHeight:0,k=o?t.offsetWidth-y-t.clientWidth:0,x=r?m+y:0,w=r?v+_:0,D=i?i.width:It(n.width)-x-k,E=i?i.height:It(n.height)-w-b,O=D+m+k+y,L=E+v+b+_,C=Ce({devicePixelContentBoxSize:Ye(Math.round(D*devicePixelRatio),Math.round(E*devicePixelRatio),s),borderBoxSize:Ye(O,L,s),contentBoxSize:Ye(D,E,s),contentRect:new Wl(h,l,D,E)});return Gn.set(t,C),C},Vl=function(t,e,n){var i=ql(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Mn.DEVICE_PIXEL_CONTENT_BOX:return o;case Mn.BORDER_BOX:return r;default:return s}},Ug=(function(){function t(e){var n=ql(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Ce([n.borderBoxSize]),this.contentBoxSize=Ce([n.contentBoxSize]),this.devicePixelContentBoxSize=Ce([n.devicePixelContentBoxSize])}return t})(),Yl=function(t){if(Ul(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},qg=function(){var t=1/0,e=[];Te.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(c){var u=new Ug(c.target),h=Yl(c.target);a.push(u),c.lastReportedSize=Vl(c.target,c.observedBox),h<t&&(t=h)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},No=function(t){Te.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Yl(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Vg=function(){var t=0;for(No(t);Ng();)t=qg(),No(t);return Bg()&&Lg(),t>0},kr,Gl=[],Yg=function(){return Gl.splice(0).forEach(function(t){return t()})},Gg=function(t){if(!kr){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Yg()}).observe(n,i),kr=function(){n.textContent="".concat(e?e--:e++)}}Gl.push(t),kr()},Xg=function(t){Gg(function(){requestAnimationFrame(t)})},ei=0,jg=function(){return!!ei},Zg=250,Kg={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Lo=function(t){return t===void 0&&(t=0),Date.now()+t},Sr=!1,Qg=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Zg),!Sr){Sr=!0;var i=Lo(e);Xg(function(){var r=!1;try{r=Vg()}finally{if(Sr=!1,e=i-Lo(),!jg())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Kg)};document.body?n():Sn.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bo.forEach(function(n){return Sn.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Bo.forEach(function(n){return Sn.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Yr=new Qg,Io=function(t){!ei&&t>0&&Yr.start(),ei+=t,!ei&&Yr.stop()},Jg=function(t){return!Os(t)&&!Hg(t)&&getComputedStyle(t).display==="inline"},t0=(function(){function t(e,n){this.target=e,this.observedBox=n||Mn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Vl(this.target,this.observedBox,!0);return Jg(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),e0=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),Xn=new WeakMap,Ho=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},jn=(function(){function t(){}return t.connect=function(e,n){var i=new e0(e,n);Xn.set(e,i)},t.observe=function(e,n,i){var r=Xn.get(e),s=r.observationTargets.length===0;Ho(r.observationTargets,n)<0&&(s&&Te.push(r),r.observationTargets.push(new t0(n,i&&i.box)),Io(1),Yr.schedule())},t.unobserve=function(e,n){var i=Xn.get(e),r=Ho(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&Te.splice(Te.indexOf(i),1),i.observationTargets.splice(r,1),Io(-1))},t.disconnect=function(e){var n=this,i=Xn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t})(),n0=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");jn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Fo(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");jn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Fo(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");jn.unobserve(this,e)},t.prototype.disconnect=function(){jn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const i0=globalThis.ResizeObserver||n0,Xl={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Qe.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class On{constructor(e){this._defaultConfig=Xl,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=$t(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",On.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Je(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;$t(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||On.DEFAULT_CONTAINER_HEIGHT}get width(){return ce(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return ce(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===Qe.Fit||e.sizing===Qe.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new i0((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),s={width:r.width,height:r.height};!$e(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}On.DEFAULT_CONTAINER_HEIGHT=300;function r0(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function s0(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var o0=(function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(s0(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=r0(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t})(),ft="-ms-",Mi="-moz-",q="-webkit-",jl="comm",Es="rule",Ds="decl",a0="@import",Zl="@keyframes",l0="@layer",c0=Math.abs,ir=String.fromCharCode,u0=Object.assign;function h0(t,e){return ut(t,0)^45?(((e<<2^ut(t,0))<<2^ut(t,1))<<2^ut(t,2))<<2^ut(t,3):0}function Kl(t){return t.trim()}function f0(t,e){return(t=e.exec(t))?t[0]:t}function V(t,e,n){return t.replace(e,n)}function Gr(t,e){return t.indexOf(e)}function ut(t,e){return t.charCodeAt(e)|0}function En(t,e,n){return t.slice(e,n)}function Ht(t){return t.length}function $s(t){return t.length}function Zn(t,e){return e.push(t),t}function d0(t,e){return t.map(e).join("")}var rr=1,tn=1,Ql=0,_t=0,rt=0,ln="";function sr(t,e,n,i,r,s,o){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:rr,column:tn,length:o,return:""}}function fn(t,e){return u0(sr("",null,null,"",null,null,0),t,{length:-t.length},e)}function p0(){return rt}function g0(){return rt=_t>0?ut(ln,--_t):0,tn--,rt===10&&(tn=1,rr--),rt}function St(){return rt=_t<Ql?ut(ln,_t++):0,tn++,rt===10&&(tn=1,rr++),rt}function Ut(){return ut(ln,_t)}function ni(){return _t}function In(t,e){return En(ln,t,e)}function Dn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jl(t){return rr=tn=1,Ql=Ht(ln=t),_t=0,[]}function tc(t){return ln="",t}function ii(t){return Kl(In(_t-1,Xr(t===91?t+2:t===40?t+1:t)))}function m0(t){for(;(rt=Ut())&&rt<33;)St();return Dn(t)>2||Dn(rt)>3?"":" "}function v0(t,e){for(;--e&&St()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return In(t,ni()+(e<6&&Ut()==32&&St()==32))}function Xr(t){for(;St();)switch(rt){case t:return _t;case 34:case 39:t!==34&&t!==39&&Xr(rt);break;case 40:t===41&&Xr(t);break;case 92:St();break}return _t}function _0(t,e){for(;St()&&t+rt!==57;)if(t+rt===84&&Ut()===47)break;return"/*"+In(e,_t-1)+"*"+ir(t===47?t:St())}function y0(t){for(;!Dn(Ut());)St();return In(t,_t)}function x0(t){return tc(ri("",null,null,null,[""],t=Jl(t),0,[0],t))}function ri(t,e,n,i,r,s,o,a,l){for(var c=0,u=0,h=o,f=0,d=0,p=0,g=1,m=1,v=1,y=0,_="",b=r,k=s,x=i,w=_;m;)switch(p=y,y=St()){case 40:if(p!=108&&ut(w,h-1)==58){Gr(w+=V(ii(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=ii(y);break;case 9:case 10:case 13:case 32:w+=m0(p);break;case 92:w+=v0(ni()-1,7);continue;case 47:switch(Ut()){case 42:case 47:Zn(b0(_0(St(),ni()),e,n),l);break;default:w+="/"}break;case 123*g:a[c++]=Ht(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:v==-1&&(w=V(w,/\f/g,"")),d>0&&Ht(w)-h&&Zn(d>32?Wo(w+";",i,n,h-1):Wo(V(w," ","")+";",i,n,h-2),l);break;case 59:w+=";";default:if(Zn(x=zo(w,e,n,c,u,r,a,_,b=[],k=[],h),s),y===123)if(u===0)ri(w,e,x,x,b,s,h,a,k);else switch(f===99&&ut(w,3)===110?100:f){case 100:case 108:case 109:case 115:ri(t,x,x,i&&Zn(zo(t,x,x,0,0,r,a,_,r,b=[],h),k),r,k,h,a,i?b:k);break;default:ri(w,x,x,x,[""],k,0,a,k)}}c=u=d=0,g=v=1,_=w="",h=o;break;case 58:h=1+Ht(w),d=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&g0()==125)continue}switch(w+=ir(y),y*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Ht(w)-1)*v,v=1;break;case 64:Ut()===45&&(w+=ii(St())),f=Ut(),u=h=Ht(_=w+=y0(ni())),y++;break;case 45:p===45&&Ht(w)==2&&(g=0)}}return s}function zo(t,e,n,i,r,s,o,a,l,c,u){for(var h=r-1,f=r===0?s:[""],d=$s(f),p=0,g=0,m=0;p<i;++p)for(var v=0,y=En(t,h+1,h=c0(g=o[p])),_=t;v<d;++v)(_=Kl(g>0?f[v]+" "+y:V(y,/&\f/g,f[v])))&&(l[m++]=_);return sr(t,e,n,r===0?Es:a,l,c,u)}function b0(t,e,n){return sr(t,e,n,jl,ir(p0()),En(t,2,-2),0)}function Wo(t,e,n,i){return sr(t,e,n,Ds,En(t,0,i),En(t,i+1,-1),i)}function Ge(t,e){for(var n="",i=$s(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function w0(t,e,n,i){switch(t.type){case l0:if(t.children.length)break;case a0:case Ds:return t.return=t.return||t.value;case jl:return"";case Zl:return t.return=t.value+"{"+Ge(t.children,i)+"}";case Es:t.value=t.props.join(",")}return Ht(n=Ge(t.children,i))?t.return=t.value+"{"+n+"}":""}function k0(t){var e=$s(t);return function(n,i,r,s){for(var o="",a=0;a<e;a++)o+=t[a](n,i,r,s)||"";return o}}function S0(t){return function(e){e.root||(e=e.return)&&t(e)}}function T0(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var C0=function(e,n,i){for(var r=0,s=0;r=s,s=Ut(),r===38&&s===12&&(n[i]=1),!Dn(s);)St();return In(e,_t)},A0=function(e,n){var i=-1,r=44;do switch(Dn(r)){case 0:r===38&&Ut()===12&&(n[i]=1),e[i]+=C0(_t-1,n,i);break;case 2:e[i]+=ii(r);break;case 4:if(r===44){e[++i]=Ut()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=ir(r)}while(r=St());return e},M0=function(e,n){return tc(A0(Jl(e),n))},Uo=new WeakMap,O0=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Uo.get(i))&&!r){Uo.set(e,!0);for(var s=[],o=M0(n,s),a=i.props,l=0,c=0;l<o.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=s[l]?o[l].replace(/&\f/g,a[u]):a[u]+" "+o[l]}}},E0=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function ec(t,e){switch(h0(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+Mi+t+ft+t+t;case 6828:case 4268:return q+t+ft+t+t;case 6165:return q+t+ft+"flex-"+t+t;case 5187:return q+t+V(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return q+t+ft+"flex-item-"+V(t,/flex-|-self/,"")+t;case 4675:return q+t+ft+"flex-line-pack"+V(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+ft+V(t,"shrink","negative")+t;case 5292:return q+t+ft+V(t,"basis","preferred-size")+t;case 6060:return q+"box-"+V(t,"-grow","")+q+t+ft+V(t,"grow","positive")+t;case 4554:return q+V(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return V(V(V(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return V(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return V(V(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return V(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(t)-1-e>6)switch(ut(t,e+1)){case 109:if(ut(t,e+4)!==45)break;case 102:return V(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Mi+(ut(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Gr(t,"stretch")?ec(V(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ut(t,e+1)!==115)break;case 6444:switch(ut(t,Ht(t)-3-(~Gr(t,"!important")&&10))){case 107:return V(t,":",":"+q)+t;case 101:return V(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(ut(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(ut(t,e+11)){case 114:return q+t+ft+V(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+ft+V(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+ft+V(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+ft+t+t}return t}var D0=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Ds:e.return=ec(e.value,e.length);break;case Zl:return Ge([fn(e,{value:V(e.value,"@","@"+q)})],r);case Es:if(e.length)return d0(e.props,function(s){switch(f0(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ge([fn(e,{props:[V(s,/:(read-\w+)/,":"+Mi+"$1")]})],r);case"::placeholder":return Ge([fn(e,{props:[V(s,/:(plac\w+)/,":"+q+"input-$1")]}),fn(e,{props:[V(s,/:(plac\w+)/,":"+Mi+"$1")]}),fn(e,{props:[V(s,/:(plac\w+)/,ft+"input-$1")]})],r)}return""})}},$0=[D0],F0=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||$0,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),v=1;v<m.length;v++)s[m[v]]=!0;a.push(g)});var l,c=[O0,E0];{var u,h=[w0,S0(function(g){u.insert(g)})],f=k0(c.concat(r,h)),d=function(m){return Ge(x0(m),f)};l=function(m,v,y,_){u=y,d(m?m+"{"+v.styles+"}":v.styles),_&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new o0({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return p.sheet.hydrate(a),p};function P0(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var R0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},N0=/[A-Z]|^ms/g,B0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nc=function(e){return e.charCodeAt(1)===45},qo=function(e){return e!=null&&typeof e!="boolean"},Tr=T0(function(t){return nc(t)?t:t.replace(N0,"-$&").toLowerCase()}),Vo=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(B0,function(i,r,s){return ue={name:r,styles:s,next:ue},r})}return R0[e]!==1&&!nc(e)&&typeof n=="number"&&n!==0?n+"px":n};function Oi(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ue={name:r.name,styles:r.styles,next:ue},r.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)ue={name:o.name,styles:o.styles,next:ue},o=o.next;var a=s.styles+";";return a}return L0(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function L0(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Oi(t,e,n[r])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?i+=s+"{"+e[a]+"}":qo(a)&&(i+=Tr(s)+":"+Vo(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)qo(o[l])&&(i+=Tr(s)+":"+Vo(s,o[l])+";");else{var c=Oi(t,e,o);switch(s){case"animation":case"animationName":{i+=Tr(s)+":"+c+";";break}default:i+=s+"{"+c+"}"}}}return i}var Yo=/label:\s*([^\s;{]+)\s*(;|$)/g,ue;function Cr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";ue=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,r+=Oi(n,e,s);else{var o=s;r+=o[0]}for(var a=1;a<t.length;a++)if(r+=Oi(n,e,t[a]),i){var l=s;r+=l[a]}Yo.lastIndex=0;for(var c="",u;(u=Yo.exec(r))!==null;)c+="-"+u[1];var h=P0(r)+c;return{name:h,styles:r,next:ue}}function ic(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var I0=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},H0=function(e,n,i){I0(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function Go(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Xo(t,e,n){var i=[],r=ic(t,i,n);return i.length<2?n:r+e(i)}var z0=function(e){var n=F0(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=Cr(c,n.registered,void 0);return H0(n,h),n.key+"-"+h.name},r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=Cr(c,n.registered),f="animation-"+h.name;return Go(n,{name:h.name,styles:"@keyframes "+f+"{"+h.styles+"}"}),f},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=Cr(c,n.registered);Go(n,h)},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Xo(n.registered,i,W0(c))};return{css:i,cx:o,injectGlobal:s,keyframes:r,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ic.bind(null,n.registered),merge:Xo.bind(null,n.registered,i)}},W0=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var s=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))s=t(r);else{s="";for(var o in r)r[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=r}s&&(n&&(n+=" "),n+=s)}}return n},rc=z0({key:"css"}),Hn=rc.injectGlobal,K=rc.css;function sc(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const jo=new WeakMap;function U0(t,e){const n=t.substr(4,t.length-5);let i=jo.get(e);if(i||(i=new Map,jo.set(e,i)),i.has(n))return i.get(n);const r=getComputedStyle(e).getPropertyValue(n);return i.set(n,r),r}function q0(t,e,n=0){const[i,r,s,o]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,l,c,u]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<u||l<o||s<a||c<i)}function Fs(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function oc(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function zn(){}var $n=.7,Ei=1/$n,Xe="\\s*([+-]?\\d+)\\s*",Fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",V0=/^#([0-9a-f]{3,8})$/,Y0=new RegExp(`^rgb\\(${Xe},${Xe},${Xe}\\)$`),G0=new RegExp(`^rgb\\(${qt},${qt},${qt}\\)$`),X0=new RegExp(`^rgba\\(${Xe},${Xe},${Xe},${Fn}\\)$`),j0=new RegExp(`^rgba\\(${qt},${qt},${qt},${Fn}\\)$`),Z0=new RegExp(`^hsl\\(${Fn},${qt},${qt}\\)$`),K0=new RegExp(`^hsla\\(${Fn},${qt},${qt},${Fn}\\)$`),Zo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Fs(zn,Fe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ko,formatHex:Ko,formatHex8:Q0,formatHsl:J0,formatRgb:Qo,toString:Qo});function Ko(){return this.rgb().formatHex()}function Q0(){return this.rgb().formatHex8()}function J0(){return ac(this).formatHsl()}function Qo(){return this.rgb().formatRgb()}function Fe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=V0.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Jo(e):n===3?new mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Kn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Kn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Y0.exec(t))?new mt(e[1],e[2],e[3],1):(e=G0.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=X0.exec(t))?Kn(e[1],e[2],e[3],e[4]):(e=j0.exec(t))?Kn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Z0.exec(t))?na(e[1],e[2]/100,e[3]/100,1):(e=K0.exec(t))?na(e[1],e[2]/100,e[3]/100,e[4]):Zo.hasOwnProperty(t)?Jo(Zo[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Jo(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function Kn(t,e,n,i){return i<=0&&(t=e=n=NaN),new mt(t,e,n,i)}function tm(t){return t instanceof zn||(t=Fe(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function jr(t,e,n,i){return arguments.length===1?tm(t):new mt(t,e,n,i??1)}function mt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Fs(mt,jr,oc(zn,{brighter(t){return t=t==null?Ei:Math.pow(Ei,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?$n:Math.pow($n,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(Ae(this.r),Ae(this.g),Ae(this.b),Di(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ta,formatHex:ta,formatHex8:em,formatRgb:ea,toString:ea}));function ta(){return`#${we(this.r)}${we(this.g)}${we(this.b)}`}function em(){return`#${we(this.r)}${we(this.g)}${we(this.b)}${we((isNaN(this.opacity)?1:this.opacity)*255)}`}function ea(){const t=Di(this.opacity);return`${t===1?"rgb(":"rgba("}${Ae(this.r)}, ${Ae(this.g)}, ${Ae(this.b)}${t===1?")":`, ${t})`}`}function Di(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ae(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function we(t){return t=Ae(t),(t<16?"0":"")+t.toString(16)}function na(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,n,i)}function ac(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof zn||(t=Fe(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,l=(s+r)/2;return a?(e===s?o=(n-i)/a+(n<i)*6:n===s?o=(i-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+r:2-s-r,o*=60):a=l>0&&l<1?0:o,new Ot(o,a,l,t.opacity)}function Ps(t,e,n,i){return arguments.length===1?ac(t):new Ot(t,e,n,i??1)}function Ot(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Fs(Ot,Ps,oc(zn,{brighter(t){return t=t==null?Ei:Math.pow(Ei,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?$n:Math.pow($n,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new mt(Ar(t>=240?t-240:t+120,r,i),Ar(t,r,i),Ar(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Ot(ia(this.h),Qn(this.s),Qn(this.l),Di(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Di(this.opacity);return`${t===1?"hsl(":"hsla("}${ia(this.h)}, ${Qn(this.s)*100}%, ${Qn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ia(t){return t=(t||0)%360,t<0?t+360:t}function Qn(t){return Math.max(0,Math.min(1,t||0))}function Ar(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const vn=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],nm=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],ae=t=>`--vis-${Se(t)?`color${t%vn.length}`:t}`;function im(t,e=.4){const n=Ps(t);return n.l=n.l*(1+e),n.formatHex()}function rm(t,e=.4,n=.6){const i=Ps(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const $i=10,Zr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Kr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function le(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const sm=t=>`<mask id="${le(t)}">
|
|
10
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${$i}" height="${$i}" patternUnits="userSpaceOnUse">
|
|
11
|
-
<rect width="100%" height="100%" fill="#fff"/>
|
|
12
|
-
${t.svg}
|
|
13
|
-
</pattern>
|
|
14
|
-
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
|
|
15
|
-
</mask>`,om=(t,e)=>`<marker id="${le(t)}"
|
|
16
|
-
fill="var(${ae(e)})"
|
|
17
|
-
markerUnits="userSpaceOnUse"
|
|
18
|
-
refX="5"
|
|
19
|
-
refY="5"
|
|
20
|
-
markerWidth="${$i}"
|
|
21
|
-
markerHeight="${$i}">
|
|
22
|
-
${t.marker}
|
|
23
|
-
</marker>`;function am(){const t=Zr.map(sm).concat(Kr.map(om)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&am();const lc=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,cc=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],uc=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",Tn=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};Hn`
|
|
24
|
-
:root {
|
|
25
|
-
label: vis-root-styles;
|
|
26
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
27
|
-
--vis-font-wh-ratio: ${lc};
|
|
28
|
-
--vis-color-main: var(${ae(0)});
|
|
29
|
-
--vis-color-main-light: ${im(vn[0])};
|
|
30
|
-
--vis-color-main-dark: ${rm(vn[0])};
|
|
31
|
-
--vis-color-grey: #2a2a2a;
|
|
32
|
-
${vn.map((t,e)=>`${ae(e)}: ${t};`)}
|
|
33
|
-
${nm.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
34
|
-
${Zr.map((t,e)=>`
|
|
35
|
-
--${le(t)}: url(#${le(t)});
|
|
36
|
-
--vis-pattern-fill${e}: var(--${le(t)});
|
|
37
|
-
`)}
|
|
38
|
-
${Kr.map((t,e)=>{var n;return`
|
|
39
|
-
--${le(t)}: url(#${le(t)});
|
|
40
|
-
--vis-pattern-marker${e}: var(--${le(t)});
|
|
41
|
-
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
42
|
-
`})}
|
|
43
|
-
|
|
44
|
-
body.theme-dark {
|
|
45
|
-
${vn.map((t,e)=>`${ae(e)}: var(--vis-dark-color${e});`)}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
body.theme-patterns {
|
|
49
|
-
${Zr.map((t,e)=>`path[style*="fill: var(${ae(e)})"] {
|
|
50
|
-
mask: var(--vis-pattern-fill${e});
|
|
51
|
-
}`)}
|
|
52
|
-
${Kr.map((t,e)=>`
|
|
53
|
-
path[stroke="var(${ae(e)})"]:not([style*="fill"]),
|
|
54
|
-
path[style*="stroke: var(${ae(e)})"]:not([style*="fill"]) {
|
|
55
|
-
marker: var(--vis-pattern-marker${e});
|
|
56
|
-
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
57
|
-
}
|
|
58
|
-
`)}
|
|
59
|
-
}
|
|
60
|
-
`;function Rs(t=window?.document.body){return t?+U0("var(--vis-font-wh-ratio)",t):lc}var lm={value:()=>{}};function hc(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new si(n)}function si(t){this._=t}function cm(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}si.prototype=hc.prototype={constructor:si,on:function(t,e){var n=this._,i=cm(t+"",n),r,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((r=(t=i[s]).type)&&(r=um(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(r=(t=i[s]).type)n[r]=ra(n[r],t.name,e);else if(e==null)for(r in n)n[r]=ra(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new si(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,s;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,r=s.length;i<r;++i)s[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};function um(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function ra(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=lm,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var en=0,_n=0,dn=0,fc=1e3,Fi,yn,Pi=0,Pe=0,or=0,Pn=typeof performance=="object"&&performance.now?performance:Date,dc=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ns(){return Pe||(dc(hm),Pe=Pn.now()+or)}function hm(){Pe=0}function Ri(){this._call=this._time=this._next=null}Ri.prototype=pc.prototype={constructor:Ri,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ns():+n)+(e==null?0:+e),!this._next&&yn!==this&&(yn?yn._next=this:Fi=this,yn=this),this._call=t,this._time=n,Qr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qr())}};function pc(t,e,n){var i=new Ri;return i.restart(t,e,n),i}function fm(){Ns(),++en;for(var t=Fi,e;t;)(e=Pe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--en}function sa(){Pe=(Pi=Pn.now())+or,en=_n=0;try{fm()}finally{en=0,pm(),Pe=0}}function dm(){var t=Pn.now(),e=t-Pi;e>fc&&(or-=e,Pi=t)}function pm(){for(var t,e=Fi,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Fi=n);yn=t,Qr(i)}function Qr(t){if(!en){_n&&(_n=clearTimeout(_n));var e=t-Pe;e>24?(t<1/0&&(_n=setTimeout(sa,t-Pn.now()-or)),dn&&(dn=clearInterval(dn))):(dn||(Pi=Pn.now(),dn=setInterval(dm,fc)),en=1,dc(sa))}}function oa(t,e,n){var i=new Ri;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var gm=hc("start","end","cancel","interrupt"),mm=[],gc=0,aa=1,Jr=2,oi=3,la=4,ts=5,ai=6;function ar(t,e,n,i,r,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;vm(t,n,{name:e,index:i,group:r,on:gm,tween:mm,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:gc})}function Bs(t,e){var n=Bt(t,e);if(n.state>gc)throw new Error("too late; already scheduled");return n}function Gt(t,e){var n=Bt(t,e);if(n.state>oi)throw new Error("too late; already running");return n}function Bt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function vm(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=pc(s,0,n.time);function s(c){n.state=aa,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var u,h,f,d;if(n.state!==aa)return l();for(u in i)if(d=i[u],d.name===n.name){if(d.state===oi)return oa(o);d.state===la?(d.state=ai,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u<e&&(d.state=ai,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[u])}if(oa(function(){n.state===oi&&(n.state=la,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Jr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Jr){for(n.state=oi,r=new Array(f=n.tween.length),u=0,h=-1;u<f;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++h]=d);r.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=ts,1),h=-1,f=r.length;++h<f;)r[h].call(t,u);n.state===ts&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=ai,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function Ls(t,e){var n=t.__transition,i,r,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((i=n[o]).name!==e){s=!1;continue}r=i.state>Jr&&i.state<ts,i.state=ai,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[o]}s&&delete t.__transition}}function _m(t){return this.each(function(){Ls(this,t)})}const Is=t=>()=>t;function ym(t,e){return function(n){return t+n*e}}function xm(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function bm(t){return(t=+t)==1?mc:function(e,n){return n-e?xm(e,n,t):Is(isNaN(e)?n:e)}}function mc(t,e){var n=e-t;return n?ym(t,n):Is(isNaN(t)?e:t)}const Ni=(function t(e){var n=bm(e);function i(r,s){var o=n((r=jr(r)).r,(s=jr(s)).r),a=n(r.g,s.g),l=n(r.b,s.b),c=mc(r.opacity,s.opacity);return function(u){return r.r=o(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i})(1);function wm(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(s){for(r=0;r<n;++r)i[r]=t[r]*(1-s)+e[r]*s;return i}}function km(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Sm(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),s=new Array(n),o;for(o=0;o<i;++o)r[o]=cn(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<i;++o)s[o]=r[o](a);return s}}function Tm(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Mt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Cm(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=cn(t[r],e[r]):i[r]=e[r];return function(s){for(r in n)i[r]=n[r](s);return i}}var es=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(es.source,"g");function Am(t){return function(){return t}}function Mm(t){return function(e){return t(e)+""}}function vc(t,e){var n=es.lastIndex=Mr.lastIndex=0,i,r,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(i=es.exec(t))&&(r=Mr.exec(e));)(s=r.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(i=i[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:Mt(i,r)})),n=Mr.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?Mm(l[0].x):Am(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function cn(t,e){var n=typeof e,i;return e==null||n==="boolean"?Is(e):(n==="number"?Mt:n==="string"?(i=Fe(e))?(e=i,Ni):vc:e instanceof Fe?Ni:e instanceof Date?Tm:km(e)?wm:Array.isArray(e)?Sm:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Cm:Mt)(t,e)}function Hs(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ca=180/Math.PI,ns={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _c(t,e,n,i,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*ca,skewX:Math.atan(l)*ca,scaleX:o,scaleY:a}}var Jn;function Om(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ns:_c(e.a,e.b,e.c,e.d,e.e,e.f)}function Em(t){return t==null||(Jn||(Jn=document.createElementNS("http://www.w3.org/2000/svg","g")),Jn.setAttribute("transform",t),!(t=Jn.transform.baseVal.consolidate()))?ns:(t=t.matrix,_c(t.a,t.b,t.c,t.d,t.e,t.f))}function yc(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function s(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push("translate(",null,e,null,n);p.push({i:g-4,x:Mt(c,h)},{i:g-2,x:Mt(u,f)})}else(h||f)&&d.push("translate("+h+e+f+n)}function o(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(r(h)+"rotate(",null,i)-2,x:Mt(c,u)})):u&&h.push(r(h)+"rotate("+u+i)}function a(c,u,h,f){c!==u?f.push({i:h.push(r(h)+"skewX(",null,i)-2,x:Mt(c,u)}):u&&h.push(r(h)+"skewX("+u+i)}function l(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:Mt(c,h)},{i:g-2,x:Mt(u,f)})}else(h!==1||f!==1)&&d.push(r(d)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=t(c),u=t(u),s(c.translateX,c.translateY,u.translateX,u.translateY,h,f),o(c.rotate,u.rotate,h,f),a(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(d){for(var p=-1,g=f.length,m;++p<g;)h[(m=f[p]).i]=m.x(d);return h.join("")}}}var Dm=yc(Om,"px, ","px)","deg)"),$m=yc(Em,", ",")",")");function Fm(t,e){e===void 0&&(e=t,t=cn);for(var n=0,i=e.length-1,r=e[0],s=new Array(i<0?0:i);n<i;)s[n]=t(r,r=e[++n]);return function(o){var a=Math.max(0,Math.min(i-1,Math.floor(o*=i)));return s[a](o-a)}}function Pm(t,e){var n,i;return function(){var r=Gt(this,t),s=r.tween;if(s!==n){i=n=s;for(var o=0,a=i.length;o<a;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}r.tween=i}}function Rm(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var s=Gt(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}s.tween=r}}function Nm(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Bt(this.node(),n).tween,r=0,s=i.length,o;r<s;++r)if((o=i[r]).name===t)return o.value;return null}return this.each((e==null?Pm:Rm)(n,t,e))}function zs(t,e,n){var i=t._id;return t.each(function(){var r=Gt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return Bt(r,i).value[e]}}function xc(t,e){var n;return(typeof e=="number"?Mt:e instanceof Fe?Ni:(n=Fe(e))?(e=n,Ni):vc)(t,e)}function Bm(t){return function(){this.removeAttribute(t)}}function Lm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Im(t,e,n){var i,r=n+"",s;return function(){var o=this.getAttribute(t);return o===r?null:o===i?s:s=e(i=o,n)}}function Hm(t,e,n){var i,r=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===i?s:s=e(i=o,n)}}function zm(t,e,n){var i,r,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a)))}}function Wm(t,e,n){var i,r,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a)))}}function Um(t,e){var n=nr(t),i=n==="transform"?$m:xc;return this.attrTween(t,typeof e=="function"?(n.local?Wm:zm)(n,i,zs(this,"attr."+t,e)):e==null?(n.local?Lm:Bm)(n):(n.local?Hm:Im)(n,i,e))}function qm(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Vm(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ym(t,e){var n,i;function r(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&Vm(t,s)),n}return r._value=e,r}function Gm(t,e){var n,i;function r(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&qm(t,s)),n}return r._value=e,r}function Xm(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=nr(t);return this.tween(n,(i.local?Ym:Gm)(i,e))}function jm(t,e){return function(){Bs(this,t).delay=+e.apply(this,arguments)}}function Zm(t,e){return e=+e,function(){Bs(this,t).delay=e}}function Km(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?jm:Zm)(e,t)):Bt(this.node(),e).delay}function Qm(t,e){return function(){Gt(this,t).duration=+e.apply(this,arguments)}}function Jm(t,e){return e=+e,function(){Gt(this,t).duration=e}}function tv(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Qm:Jm)(e,t)):Bt(this.node(),e).duration}function ev(t,e){if(typeof e!="function")throw new Error;return function(){Gt(this,t).ease=e}}function nv(t){var e=this._id;return arguments.length?this.each(ev(e,t)):Bt(this.node(),e).ease}function iv(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Gt(this,t).ease=n}}function rv(t){if(typeof t!="function")throw new Error;return this.each(iv(this._id,t))}function sv(t){typeof t!="function"&&(t=Ol(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new ne(i,this._parents,this._name,this._id)}function ov(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,s=Math.min(i,r),o=new Array(i),a=0;a<s;++a)for(var l=e[a],c=n[a],u=l.length,h=o[a]=new Array(u),f,d=0;d<u;++d)(f=l[d]||c[d])&&(h[d]=f);for(;a<i;++a)o[a]=e[a];return new ne(o,this._parents,this._name,this._id)}function av(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function lv(t,e,n){var i,r,s=av(e)?Bs:Gt;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}function cv(t,e){var n=this._id;return arguments.length<2?Bt(this.node(),n).on.on(t):this.each(lv(n,t,e))}function uv(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function hv(){return this.on("end.remove",uv(this._id))}function fv(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ss(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a=i[o],l=a.length,c=s[o]=new Array(l),u,h,f=0;f<l;++f)(u=a[f])&&(h=t.call(u,u.__data__,f,a))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,ar(c[f],e,n,f,c,Bt(u,n)));return new ne(s,this._parents,e,n)}function dv(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ml(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var l=i[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=t.call(u,u.__data__,h,l),d,p=Bt(u,n),g=0,m=f.length;g<m;++g)(d=f[g])&&ar(d,e,n,g,f,p);s.push(f),o.push(u)}return new ne(s,o,e,n)}var pv=Bn.prototype.constructor;function gv(){return new pv(this._groups,this._parents)}function mv(t,e){var n,i,r;return function(){var s=Ke(this,t),o=(this.style.removeProperty(t),Ke(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}function bc(t){return function(){this.style.removeProperty(t)}}function vv(t,e,n){var i,r=n+"",s;return function(){var o=Ke(this,t);return o===r?null:o===i?s:s=e(i=o,n)}}function _v(t,e,n){var i,r,s;return function(){var o=Ke(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Ke(this,t))),o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a))}}function yv(t,e){var n,i,r,s="style."+e,o="end."+s,a;return function(){var l=Gt(this,t),c=l.on,u=l.value[s]==null?a||(a=bc(e)):void 0;(c!==n||r!==u)&&(i=(n=c).copy()).on(o,r=u),l.on=i}}function xv(t,e,n){var i=(t+="")=="transform"?Dm:xc;return e==null?this.styleTween(t,mv(t,i)).on("end.style."+t,bc(t)):typeof e=="function"?this.styleTween(t,_v(t,i,zs(this,"style."+t,e))).each(yv(this._id,t)):this.styleTween(t,vv(t,i,e),n).on("end.style."+t,null)}function bv(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function wv(t,e,n){var i,r;function s(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&bv(t,o,n)),i}return s._value=e,s}function kv(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,wv(t,e,n??""))}function Sv(t){return function(){this.textContent=t}}function Tv(t){return function(){var e=t(this);this.textContent=e??""}}function Cv(t){return this.tween("text",typeof t=="function"?Tv(zs(this,"text",t)):Sv(t==null?"":t+""))}function Av(t){return function(e){this.textContent=t.call(this,e)}}function Mv(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Av(r)),e}return i._value=t,i}function Ov(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Mv(t))}function Ev(){for(var t=this._name,e=this._id,n=wc(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o=i[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=Bt(l,e);ar(l,t,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ne(i,this._parents,t,n)}function Dv(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--r===0&&s()}};n.each(function(){var c=Gt(this,i),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&s()})}var $v=0;function ne(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function wc(){return++$v}var Xt=Bn.prototype;ne.prototype={constructor:ne,select:fv,selectAll:dv,selectChild:Xt.selectChild,selectChildren:Xt.selectChildren,filter:sv,merge:ov,selection:gv,transition:Ev,call:Xt.call,nodes:Xt.nodes,node:Xt.node,size:Xt.size,empty:Xt.empty,each:Xt.each,on:cv,attr:Um,attrTween:Xm,style:xv,styleTween:kv,text:Cv,textTween:Ov,remove:hv,tween:Nm,delay:Km,duration:tv,ease:nv,easeVarying:rv,end:Dv,[Symbol.iterator]:Xt[Symbol.iterator]};const ua=t=>+t;function Fv(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Pv={time:null,delay:0,duration:250,ease:Fv};function Rv(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Nv(t){var e,n;t instanceof ne?(e=t._id,t=t._name):(e=wc(),(n=Pv).time=Ns(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o=i[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&ar(l,t,e,c,o,n||Rv(l,e));return new ne(i,this._parents,t,e)}Bn.prototype.interrupt=_m;Bn.prototype.transition=Nv;function Dt(t,e,n){if(t.nodes().forEach(i=>Ls(i)),e){const i=t.transition().duration(e);return n&&i.ease(n),i}else return t}class Ws{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var N;(function(t){t.X="x",t.Y="y"})(N||(N={}));function Lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function kc(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const ha=Symbol("implicit");function Us(){var t=new Ao,e=[],n=[],i=ha;function r(s){let o=t.get(s);if(o===void 0){if(i!==ha)return i;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return r.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Ao;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(s){return arguments.length?(n=Array.from(s),r):n.slice()},r.unknown=function(s){return arguments.length?(i=s,r):i},r.copy=function(){return Us(e,n).unknown(i)},Lt.apply(r,arguments),r}function qs(){var t=Us().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,s,o,a=!1,l=0,c=0,u=.5;delete t.unknown;function h(){var f=e().length,d=r<i,p=d?r:i,g=d?i:r;s=(g-p)/Math.max(1,f-l+c*2),a&&(s=Math.floor(s)),p+=(g-p-s*(f-l))*u,o=s*(1-l),a&&(p=Math.round(p),o=Math.round(o));var m=Ag(f).map(function(v){return p+s*v});return n(d?m.reverse():m)}return t.domain=function(f){return arguments.length?(e(f),h()):e()},t.range=function(f){return arguments.length?([i,r]=f,i=+i,r=+r,h()):[i,r]},t.rangeRound=function(f){return[i,r]=f,i=+i,r=+r,a=!0,h()},t.bandwidth=function(){return o},t.step=function(){return s},t.round=function(f){return arguments.length?(a=!!f,h()):a},t.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),h()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),h()):l},t.paddingOuter=function(f){return arguments.length?(c=+f,h()):c},t.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),h()):u},t.copy=function(){return qs(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(u)},Lt.apply(h(),arguments)}function Sc(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Sc(e())},t}function Bv(){return Sc(qs.apply(null,arguments).paddingInner(1))}function Lv(t){return function(){return t}}function is(t){return+t}var fa=[0,1];function vt(t){return t}function rs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Lv(isNaN(e)?NaN:.5)}function Iv(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Hv(t,e,n){var i=t[0],r=t[1],s=e[0],o=e[1];return r<i?(i=rs(r,i),s=n(o,s)):(i=rs(i,r),s=n(s,o)),function(a){return s(i(a))}}function zv(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),s=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=rs(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(a){var l=Ln(t,a,1,i)-1;return s[l](r[l](a))}}function Wn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function lr(){var t=fa,e=fa,n=cn,i,r,s,o=vt,a,l,c;function u(){var f=Math.min(t.length,e.length);return o!==vt&&(o=Iv(t[0],t[f-1])),a=f>2?zv:Hv,l=c=null,h}function h(f){return f==null||isNaN(f=+f)?s:(l||(l=a(t.map(i),e,n)))(i(o(f)))}return h.invert=function(f){return o(r((c||(c=a(e,t.map(i),Mt)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,is),u()):t.slice()},h.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},h.rangeRound=function(f){return e=Array.from(f),n=Hs,u()},h.clamp=function(f){return arguments.length?(o=f?!0:vt,u()):o!==vt},h.interpolate=function(f){return arguments.length?(n=f,u()):n},h.unknown=function(f){return arguments.length?(s=f,h):s},function(f,d){return i=f,r=d,u()}}function Tc(){return lr()(vt,vt)}function Wv(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Bi(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function nn(t){return t=Bi(Math.abs(t)),t?t[1]:NaN}function Uv(t,e){return function(n,i){for(var r=n.length,s=[],o=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function qv(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Vv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rn(t){if(!(e=Vv.exec(t)))throw new Error("invalid format: "+t);var e;return new Vs({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Rn.prototype=Vs.prototype;function Vs(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Vs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Yv(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var Li;function Gv(t,e){var n=Bi(t,e);if(!n)return Li=void 0,t.toPrecision(e);var i=n[0],r=n[1],s=r-(Li=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Bi(t,Math.max(0,e+s-1))[0]}function da(t,e){var n=Bi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const pa={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Wv,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>da(t*100,e),r:da,s:Gv,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ga(t){return t}var ma=Array.prototype.map,va=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xv(t){var e=t.grouping===void 0||t.thousands===void 0?ga:Uv(ma.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?ga:qv(ma.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(h,f){h=Rn(h);var d=h.fill,p=h.align,g=h.sign,m=h.symbol,v=h.zero,y=h.width,_=h.comma,b=h.precision,k=h.trim,x=h.type;x==="n"?(_=!0,x="g"):pa[x]||(b===void 0&&(b=12),k=!0,x="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var w=(f&&f.prefix!==void 0?f.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),D=(m==="$"?i:/[%p]/.test(x)?o:"")+(f&&f.suffix!==void 0?f.suffix:""),E=pa[x],O=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function L(C){var z=w,I=D,tt,ot,et;if(x==="c")I=E(C)+I,C="";else{C=+C;var j=C<0||1/C<0;if(C=isNaN(C)?l:E(Math.abs(C),b),k&&(C=Yv(C)),j&&+C==0&&g!=="+"&&(j=!1),z=(j?g==="("?g:a:g==="-"||g==="("?"":g)+z,I=(x==="s"&&!isNaN(C)&&Li!==void 0?va[8+Li/3]:"")+I+(j&&g==="("?")":""),O){for(tt=-1,ot=C.length;++tt<ot;)if(et=C.charCodeAt(tt),48>et||et>57){I=(et===46?r+C.slice(tt+1):C.slice(tt))+I,C=C.slice(0,tt);break}}}_&&!v&&(C=e(C,1/0));var dt=z.length+C.length+I.length,yt=dt<y?new Array(y-dt+1).join(d):"";switch(_&&v&&(C=e(yt+C,yt.length?y-I.length:1/0),yt=""),p){case"<":C=z+C+I+yt;break;case"=":C=z+yt+C+I;break;case"^":C=yt.slice(0,dt=yt.length>>1)+z+C+I+yt.slice(dt);break;default:C=yt+z+C+I;break}return s(C)}return L.toString=function(){return h+""},L}function u(h,f){var d=Math.max(-8,Math.min(8,Math.floor(nn(f)/3)))*3,p=Math.pow(10,-d),g=c((h=Rn(h),h.type="f",h),{suffix:va[8+d/3]});return function(m){return g(p*m)}}return{format:c,formatPrefix:u}}var ti,Ys,Cc;jv({thousands:",",grouping:[3],currency:["$",""]});function jv(t){return ti=Xv(t),Ys=ti.format,Cc=ti.formatPrefix,ti}function Zv(t){return Math.max(0,-nn(Math.abs(t)))}function Kv(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nn(e)/3)))*3-nn(Math.abs(t)))}function Qv(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,nn(e)-nn(t))+1}function Jv(t,e,n,i){var r=Ur(t,e,n),s;switch(i=Rn(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=Kv(r,o))&&(i.precision=s),Cc(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=Qv(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=Zv(r))&&(i.precision=s-(i.type==="%")*2);break}}return Ys(i)}function Le(t){var e=t.domain;return t.ticks=function(n){var i=e();return zr(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return Jv(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,s=i.length-1,o=i[r],a=i[s],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=r,r=s,s=c);u-- >0;){if(c=Wr(o,a,n),c===l)return i[r]=o,i[s]=a,e(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function Ac(){var t=Tc();return t.copy=function(){return Wn(t,Ac())},Lt.apply(t,arguments),Le(t)}function Mc(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,is),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return Mc(t).unknown(e)},t=arguments.length?Array.from(t,is):[0,1],Le(n)}function Oc(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],s=t[i],o;return s<r&&(o=n,n=i,i=o,o=r,r=s,s=o),t[n]=e.floor(r),t[i]=e.ceil(s),t}function _a(t){return Math.log(t)}function ya(t){return Math.exp(t)}function t_(t){return-Math.log(-t)}function e_(t){return-Math.exp(-t)}function n_(t){return isFinite(t)?+("1e"+t):t<0?0:t}function i_(t){return t===10?n_:t===Math.E?Math.exp:e=>Math.pow(t,e)}function r_(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function xa(t){return(e,n)=>-t(-e,n)}function s_(t){const e=t(_a,ya),n=e.domain;let i=10,r,s;function o(){return r=r_(i),s=i_(i),n()[0]<0?(r=xa(r),s=xa(s),t(t_,e_)):t(_a,ya),e}return e.base=function(a){return arguments.length?(i=+a,o()):i},e.domain=function(a){return arguments.length?(n(a),o()):n()},e.ticks=a=>{const l=n();let c=l[0],u=l[l.length-1];const h=u<c;h&&([c,u]=[u,c]);let f=r(c),d=r(u),p,g;const m=a==null?10:+a;let v=[];if(!(i%1)&&d-f<m){if(f=Math.floor(f),d=Math.ceil(d),c>0){for(;f<=d;++f)for(p=1;p<i;++p)if(g=f<0?p/s(-f):p*s(f),!(g<c)){if(g>u)break;v.push(g)}}else for(;f<=d;++f)for(p=i-1;p>=1;--p)if(g=f>0?p/s(-f):p*s(f),!(g<c)){if(g>u)break;v.push(g)}v.length*2<m&&(v=zr(c,u,m))}else v=zr(f,d,Math.min(d-f,m)).map(s);return h?v.reverse():v},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=Rn(l)).precision==null&&(l.trim=!0),l=Ys(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return u=>{let h=u/s(Math.round(r(u)));return h*i<i-.5&&(h*=i),h<=c?l(u):""}},e.nice=()=>n(Oc(n(),{floor:a=>s(Math.floor(r(a))),ceil:a=>s(Math.ceil(r(a)))})),e}function Ec(){const t=s_(lr()).domain([1,10]);return t.copy=()=>Wn(t,Ec()).base(t.base()),Lt.apply(t,arguments),t}function ba(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function wa(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function o_(t){var e=1,n=t(ba(e),wa(e));return n.constant=function(i){return arguments.length?t(ba(e=+i),wa(e)):e},Le(n)}function Dc(){var t=o_(lr());return t.copy=function(){return Wn(t,Dc()).constant(t.constant())},Lt.apply(t,arguments)}function ka(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function a_(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function l_(t){return t<0?-t*t:t*t}function c_(t){var e=t(vt,vt),n=1;function i(){return n===1?t(vt,vt):n===.5?t(a_,l_):t(ka(n),ka(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},Le(e)}function Gs(){var t=c_(lr());return t.copy=function(){return Wn(t,Gs()).exponent(t.exponent())},Lt.apply(t,arguments),t}function u_(){return Gs.apply(null,arguments).exponent(.5)}function $c(){var t=[],e=[],n=[],i;function r(){var o=0,a=Math.max(1,e.length);for(n=new Array(a-1);++o<a;)n[o-1]=kg(t,o/a);return s}function s(o){return o==null||isNaN(o=+o)?i:e[Ln(n,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(kn),r()},s.range=function(o){return arguments.length?(e=Array.from(o),r()):e.slice()},s.unknown=function(o){return arguments.length?(i=o,s):i},s.quantiles=function(){return n.slice()},s.copy=function(){return $c().domain(t).range(e).unknown(i)},Lt.apply(s,arguments)}function Fc(){var t=0,e=1,n=1,i=[.5],r=[0,1],s;function o(l){return l!=null&&l<=l?r[Ln(i,l,0,n)]:s}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return o}return o.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},o.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},o.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},o.unknown=function(l){return arguments.length&&(s=l),o},o.thresholds=function(){return i.slice()},o.copy=function(){return Fc().domain([t,e]).range(r).unknown(s)},Lt.apply(Le(o),arguments)}function Pc(){var t=[.5],e=[0,1],n,i=1;function r(s){return s!=null&&s<=s?e[Ln(t,s,0,i)]:n}return r.domain=function(s){return arguments.length?(t=Array.from(s),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(s){return arguments.length?(e=Array.from(s),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(s){var o=e.indexOf(s);return[t[o-1],t[o]]},r.unknown=function(s){return arguments.length?(n=s,r):n},r.copy=function(){return Pc().domain(t).range(e).unknown(n)},Lt.apply(r,arguments)}const Or=new Date,Er=new Date;function st(t,e,n,i){function r(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return r.floor=s=>(t(s=new Date(+s)),s),r.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),r.round=s=>{const o=r(s),a=r.ceil(s);return s-o<a-s?o:a},r.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),r.range=(s,o,a)=>{const l=[];if(s=r.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return l;let c;do l.push(c=new Date(+s)),e(s,a),t(s);while(c<s&&s<o);return l},r.filter=s=>st(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(r.count=(s,o)=>(Or.setTime(+s),Er.setTime(+o),t(Or),t(Er),Math.floor(n(Or,Er))),r.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?r.filter(i?o=>i(o)%s===0:o=>r.count(0,o)%s===0):r)),r}const Ii=st(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ii.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?st(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ii);Ii.range;const Kt=1e3,At=Kt*60,Qt=At*60,ie=Qt*24,Xs=ie*7,Sa=ie*30,Dr=ie*365,ke=st(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Kt)},(t,e)=>(e-t)/Kt,t=>t.getUTCSeconds());ke.range;const js=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Kt)},(t,e)=>{t.setTime(+t+e*At)},(t,e)=>(e-t)/At,t=>t.getMinutes());js.range;const Zs=st(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*At)},(t,e)=>(e-t)/At,t=>t.getUTCMinutes());Zs.range;const Ks=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Kt-t.getMinutes()*At)},(t,e)=>{t.setTime(+t+e*Qt)},(t,e)=>(e-t)/Qt,t=>t.getHours());Ks.range;const Qs=st(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Qt)},(t,e)=>(e-t)/Qt,t=>t.getUTCHours());Qs.range;const Un=st(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*At)/ie,t=>t.getDate()-1);Un.range;const cr=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ie,t=>t.getUTCDate()-1);cr.range;const Rc=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ie,t=>Math.floor(t/ie));Rc.range;function Ie(t){return st(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*At)/Xs)}const ur=Ie(0),Hi=Ie(1),h_=Ie(2),f_=Ie(3),rn=Ie(4),d_=Ie(5),p_=Ie(6);ur.range;Hi.range;h_.range;f_.range;rn.range;d_.range;p_.range;function He(t){return st(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Xs)}const hr=He(0),zi=He(1),g_=He(2),m_=He(3),sn=He(4),v_=He(5),__=He(6);hr.range;zi.range;g_.range;m_.range;sn.range;v_.range;__.range;const Js=st(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Js.range;const to=st(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());to.range;const re=st(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());re.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});re.range;const se=st(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());se.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});se.range;function Nc(t,e,n,i,r,s){const o=[[ke,1,Kt],[ke,5,5*Kt],[ke,15,15*Kt],[ke,30,30*Kt],[s,1,At],[s,5,5*At],[s,15,15*At],[s,30,30*At],[r,1,Qt],[r,3,3*Qt],[r,6,6*Qt],[r,12,12*Qt],[i,1,ie],[i,2,2*ie],[n,1,Xs],[e,1,Sa],[e,3,3*Sa],[t,1,Dr]];function a(c,u,h){const f=u<c;f&&([c,u]=[u,c]);const d=h&&typeof h.range=="function"?h:l(c,u,h),p=d?d.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,h){const f=Math.abs(u-c)/h,d=Cs(([,,m])=>m).right(o,f);if(d===o.length)return t.every(Ur(c/Dr,u/Dr,h));if(d===0)return Ii.every(Math.max(Ur(c,u,h),1));const[p,g]=o[f/o[d-1][2]<o[d][2]/f?d-1:d];return p.every(g)}return[a,l]}const[y_,x_]=Nc(se,to,hr,Rc,Qs,Zs),[b_,w_]=Nc(re,Js,ur,Un,Ks,js);function $r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Fr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function pn(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function k_(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=gn(r),u=mn(r),h=gn(s),f=mn(s),d=gn(o),p=mn(o),g=gn(a),m=mn(a),v=gn(l),y=mn(l),_={a:et,A:j,b:dt,B:yt,c:null,d:Ea,e:Ea,f:Y_,g:ny,G:ry,H:U_,I:q_,j:V_,L:Bc,m:G_,M:X_,p:Fu,q:Pu,Q:Fa,s:Pa,S:j_,u:Z_,U:K_,V:Q_,w:J_,W:ty,x:null,X:null,y:ey,Y:iy,Z:sy,"%":$a},b={a:Ru,A:Nu,b:Bu,B:Lu,c:null,d:Da,e:Da,f:cy,g:yy,G:by,H:oy,I:ay,j:ly,L:Ic,m:uy,M:hy,p:Iu,q:Hu,Q:Fa,s:Pa,S:fy,u:dy,U:py,V:gy,w:my,W:vy,x:null,X:null,y:_y,Y:xy,Z:wy,"%":$a},k={a:O,A:L,b:C,B:z,c:I,d:Ma,e:Ma,f:I_,g:Aa,G:Ca,H:Oa,I:Oa,j:R_,L:L_,m:P_,M:N_,p:E,q:F_,Q:z_,s:W_,S:B_,u:M_,U:O_,V:E_,w:A_,W:D_,x:tt,X:ot,y:Aa,Y:Ca,Z:$_,"%":H_};_.x=x(n,_),_.X=x(i,_),_.c=x(e,_),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b);function x(M,R){return function(W){var S=[],gt=-1,X=0,xt=M.length,bt,ye,fo;for(W instanceof Date||(W=new Date(+W));++gt<xt;)M.charCodeAt(gt)===37&&(S.push(M.slice(X,gt)),(ye=Ta[bt=M.charAt(++gt)])!=null?bt=M.charAt(++gt):ye=bt==="e"?" ":"0",(fo=R[bt])&&(bt=fo(W,ye)),S.push(bt),X=gt+1);return S.push(M.slice(X,gt)),S.join("")}}function w(M,R){return function(W){var S=pn(1900,void 0,1),gt=D(S,M,W+="",0),X,xt;if(gt!=W.length)return null;if("Q"in S)return new Date(S.Q);if("s"in S)return new Date(S.s*1e3+("L"in S?S.L:0));if(R&&!("Z"in S)&&(S.Z=0),"p"in S&&(S.H=S.H%12+S.p*12),S.m===void 0&&(S.m="q"in S?S.q:0),"V"in S){if(S.V<1||S.V>53)return null;"w"in S||(S.w=1),"Z"in S?(X=Fr(pn(S.y,0,1)),xt=X.getUTCDay(),X=xt>4||xt===0?zi.ceil(X):zi(X),X=cr.offset(X,(S.V-1)*7),S.y=X.getUTCFullYear(),S.m=X.getUTCMonth(),S.d=X.getUTCDate()+(S.w+6)%7):(X=$r(pn(S.y,0,1)),xt=X.getDay(),X=xt>4||xt===0?Hi.ceil(X):Hi(X),X=Un.offset(X,(S.V-1)*7),S.y=X.getFullYear(),S.m=X.getMonth(),S.d=X.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),xt="Z"in S?Fr(pn(S.y,0,1)).getUTCDay():$r(pn(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(xt+5)%7:S.w+S.U*7-(xt+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,Fr(S)):$r(S)}}function D(M,R,W,S){for(var gt=0,X=R.length,xt=W.length,bt,ye;gt<X;){if(S>=xt)return-1;if(bt=R.charCodeAt(gt++),bt===37){if(bt=R.charAt(gt++),ye=k[bt in Ta?R.charAt(gt++):bt],!ye||(S=ye(M,W,S))<0)return-1}else if(bt!=W.charCodeAt(S++))return-1}return S}function E(M,R,W){var S=c.exec(R.slice(W));return S?(M.p=u.get(S[0].toLowerCase()),W+S[0].length):-1}function O(M,R,W){var S=d.exec(R.slice(W));return S?(M.w=p.get(S[0].toLowerCase()),W+S[0].length):-1}function L(M,R,W){var S=h.exec(R.slice(W));return S?(M.w=f.get(S[0].toLowerCase()),W+S[0].length):-1}function C(M,R,W){var S=v.exec(R.slice(W));return S?(M.m=y.get(S[0].toLowerCase()),W+S[0].length):-1}function z(M,R,W){var S=g.exec(R.slice(W));return S?(M.m=m.get(S[0].toLowerCase()),W+S[0].length):-1}function I(M,R,W){return D(M,e,R,W)}function tt(M,R,W){return D(M,n,R,W)}function ot(M,R,W){return D(M,i,R,W)}function et(M){return o[M.getDay()]}function j(M){return s[M.getDay()]}function dt(M){return l[M.getMonth()]}function yt(M){return a[M.getMonth()]}function Fu(M){return r[+(M.getHours()>=12)]}function Pu(M){return 1+~~(M.getMonth()/3)}function Ru(M){return o[M.getUTCDay()]}function Nu(M){return s[M.getUTCDay()]}function Bu(M){return l[M.getUTCMonth()]}function Lu(M){return a[M.getUTCMonth()]}function Iu(M){return r[+(M.getUTCHours()>=12)]}function Hu(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var R=x(M+="",_);return R.toString=function(){return M},R},parse:function(M){var R=w(M+="",!1);return R.toString=function(){return M},R},utcFormat:function(M){var R=x(M+="",b);return R.toString=function(){return M},R},utcParse:function(M){var R=w(M+="",!0);return R.toString=function(){return M},R}}}var Ta={"-":"",_:" ",0:"0"},ct=/^\s*\d+/,S_=/^%/,T_=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s<n?new Array(n-s+1).join(e)+r:r)}function C_(t){return t.replace(T_,"\\$&")}function gn(t){return new RegExp("^(?:"+t.map(C_).join("|")+")","i")}function mn(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function A_(t,e,n){var i=ct.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function M_(t,e,n){var i=ct.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function O_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function E_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function D_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Ca(t,e,n){var i=ct.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Aa(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function $_(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function F_(t,e,n){var i=ct.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function P_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ma(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function R_(t,e,n){var i=ct.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Oa(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function N_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function B_(t,e,n){var i=ct.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function L_(t,e,n){var i=ct.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function I_(t,e,n){var i=ct.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function H_(t,e,n){var i=S_.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function z_(t,e,n){var i=ct.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function W_(t,e,n){var i=ct.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ea(t,e){return U(t.getDate(),e,2)}function U_(t,e){return U(t.getHours(),e,2)}function q_(t,e){return U(t.getHours()%12||12,e,2)}function V_(t,e){return U(1+Un.count(re(t),t),e,3)}function Bc(t,e){return U(t.getMilliseconds(),e,3)}function Y_(t,e){return Bc(t,e)+"000"}function G_(t,e){return U(t.getMonth()+1,e,2)}function X_(t,e){return U(t.getMinutes(),e,2)}function j_(t,e){return U(t.getSeconds(),e,2)}function Z_(t){var e=t.getDay();return e===0?7:e}function K_(t,e){return U(ur.count(re(t)-1,t),e,2)}function Lc(t){var e=t.getDay();return e>=4||e===0?rn(t):rn.ceil(t)}function Q_(t,e){return t=Lc(t),U(rn.count(re(t),t)+(re(t).getDay()===4),e,2)}function J_(t){return t.getDay()}function ty(t,e){return U(Hi.count(re(t)-1,t),e,2)}function ey(t,e){return U(t.getFullYear()%100,e,2)}function ny(t,e){return t=Lc(t),U(t.getFullYear()%100,e,2)}function iy(t,e){return U(t.getFullYear()%1e4,e,4)}function ry(t,e){var n=t.getDay();return t=n>=4||n===0?rn(t):rn.ceil(t),U(t.getFullYear()%1e4,e,4)}function sy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Da(t,e){return U(t.getUTCDate(),e,2)}function oy(t,e){return U(t.getUTCHours(),e,2)}function ay(t,e){return U(t.getUTCHours()%12||12,e,2)}function ly(t,e){return U(1+cr.count(se(t),t),e,3)}function Ic(t,e){return U(t.getUTCMilliseconds(),e,3)}function cy(t,e){return Ic(t,e)+"000"}function uy(t,e){return U(t.getUTCMonth()+1,e,2)}function hy(t,e){return U(t.getUTCMinutes(),e,2)}function fy(t,e){return U(t.getUTCSeconds(),e,2)}function dy(t){var e=t.getUTCDay();return e===0?7:e}function py(t,e){return U(hr.count(se(t)-1,t),e,2)}function Hc(t){var e=t.getUTCDay();return e>=4||e===0?sn(t):sn.ceil(t)}function gy(t,e){return t=Hc(t),U(sn.count(se(t),t)+(se(t).getUTCDay()===4),e,2)}function my(t){return t.getUTCDay()}function vy(t,e){return U(zi.count(se(t)-1,t),e,2)}function _y(t,e){return U(t.getUTCFullYear()%100,e,2)}function yy(t,e){return t=Hc(t),U(t.getUTCFullYear()%100,e,2)}function xy(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function by(t,e){var n=t.getUTCDay();return t=n>=4||n===0?sn(t):sn.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function wy(){return"+0000"}function $a(){return"%"}function Fa(t){return+t}function Pa(t){return Math.floor(+t/1e3)}var We,zc,Wc;ky({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ky(t){return We=k_(t),zc=We.format,We.parse,Wc=We.utcFormat,We.utcParse,We}function Sy(t){return new Date(t)}function Ty(t){return t instanceof Date?+t:+new Date(+t)}function eo(t,e,n,i,r,s,o,a,l,c){var u=Tc(),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function k(x){return(l(x)<x?d:a(x)<x?p:o(x)<x?g:s(x)<x?m:i(x)<x?r(x)<x?v:y:n(x)<x?_:b)(x)}return u.invert=function(x){return new Date(h(x))},u.domain=function(x){return arguments.length?f(Array.from(x,Ty)):f().map(Sy)},u.ticks=function(x){var w=f();return t(w[0],w[w.length-1],x??10)},u.tickFormat=function(x,w){return w==null?k:c(w)},u.nice=function(x){var w=f();return(!x||typeof x.range!="function")&&(x=e(w[0],w[w.length-1],x??10)),x?f(Oc(w,x)):u},u.copy=function(){return Wn(u,eo(t,e,n,i,r,s,o,a,l,c))},u}function Cy(){return Lt.apply(eo(b_,w_,re,Js,ur,Un,Ks,js,ke,zc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ay(){return Lt.apply(eo(y_,x_,se,to,hr,cr,Qs,Zs,ke,Wc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function My(){var t=0,e=1,n,i,r,s,o=vt,a=!1,l;function c(h){return h==null||isNaN(h=+h)?l:o(r===0?.5:(h=(s(h)-n)*r,a?Math.max(0,Math.min(1,h)):h))}c.domain=function(h){return arguments.length?([t,e]=h,n=s(t=+t),i=s(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(h){return arguments.length?(a=!!h,c):a},c.interpolator=function(h){return arguments.length?(o=h,c):o};function u(h){return function(f){var d,p;return arguments.length?([d,p]=f,o=h(d,p),c):[o(0),o(1)]}}return c.range=u(cn),c.rangeRound=u(Hs),c.unknown=function(h){return arguments.length?(l=h,c):l},function(h){return s=h,n=h(t),i=h(e),r=n===i?0:1/(i-n),c}}function Uc(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function qc(){var t=Le(My()(vt));return t.copy=function(){return Uc(t,qc())},kc.apply(t,arguments)}function Oy(){var t=0,e=.5,n=1,i=1,r,s,o,a,l,c=vt,u,h=!1,f;function d(g){return isNaN(g=+g)?f:(g=.5+((g=+u(g))-s)*(i*g<i*s?a:l),c(h?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,r=u(t=+t),s=u(e=+e),o=u(n=+n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,d):[t,e,n]},d.clamp=function(g){return arguments.length?(h=!!g,d):h},d.interpolator=function(g){return arguments.length?(c=g,d):c};function p(g){return function(m){var v,y,_;return arguments.length?([v,y,_]=m,c=Fm(g,[v,y,_]),d):[c(0),c(.5),c(1)]}}return d.range=p(cn),d.rangeRound=p(Hs),d.unknown=function(g){return arguments.length?(f=g,d):f},function(g){return u=g,r=g(t),s=g(e),o=g(n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,d}}function Vc(){var t=Le(Oy()(vt));return t.copy=function(){return Uc(t,Vc())},kc.apply(t,arguments)}const Ra={scaleLinear:Ac,scalePow:Gs,scaleSqrt:u_,scaleLog:Ec,scaleSymlog:Dc,scaleIdentity:Mc,scaleTime:Cy,scaleUtc:Ay,scaleSequential:qc,scaleDiverging:Vc,scaleQuantize:Fc,scaleQuantile:$c,scaleThreshold:Pc,scaleOrdinal:Us,scaleBand:qs,scalePoint:Bv};var J;(function(t){t.X="x",t.Y="y"})(J||(J={}));var Me;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Me||(Me={}));const Ey=Object.assign(Object.assign({},Xl),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Me.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class Dy extends On{constructor(e,n,i){var r,s;super(e),this._defaultConfig=Ey,this.datamodel=new Ws,this.config=this._defaultConfig,this._clipPathId=sc(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const o="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",K`
|
|
61
|
-
--highlight-filter-id: url(${a}#${o}); // defining a css variable
|
|
62
|
-
`),this._svgDefs.append("filter").attr("id",o).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(l=>l.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return ce(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return ce(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,s,o,a;const{components:l,config:c}=this;if(!e)return;this.datamodel.data=e,l.forEach(h=>{h.setData(e)}),(i=c.crosshair)===null||i===void 0||i.setData(e),(r=c.xAxis)===null||r===void 0||r.setData(e),(s=c.yAxis)===null||s===void 0||s.setData(e),!$e(this.datamodel.data,e)&&((o=c.tooltip)===null||o===void 0||o.hide(),(a=c.crosshair)===null||a===void 0||a.hide()),n||this.render()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=N.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=N.Y,this.element.appendChild(e.yAxis.element));for(const o of this.components)this.element.appendChild(o.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const s=e.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,s)=>{e[s]&&r.setConfig(e[s])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=hn([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]),i=this._getMargin();for(const r of n)r.setSize(this.width,this.height,this.containerWidth,this.containerHeight),r.setContainerMargin(i);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,s,o,a;const{config:l}=this;super._render();const c=this._getMargin();for(const f of this.components)f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",f.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",f.clippable?`url(#${this._clipPathId})`:null),f.render(e);this._renderAxes(this._firstRender?0:e);const u=l.clipPathExtend;this._clipPath.select("rect").attr("x",-u).attr("y",-u).attr("width",this.width+2*u).attr("height",this.height+2*u),(n=l.tooltip)===null||n===void 0||n.update();const h=l.crosshair;if(h){const f=this.components.filter(m=>!m.stacked).map(m=>m.config.y),d=this.components.filter(m=>m.stacked).map(m=>m.config.y),p=(i=this.components.find(m=>m.config.baseline))===null||i===void 0?void 0:i.config,g=p?.baseline;h.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:qr(f),yStacked:qr(d),baseline:g},h.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),h.render()}(s=l.annotations)===null||s===void 0||s.g.attr("transform",`translate(${c.left},${c.top})`),(o=l.annotations)===null||o===void 0||o.render(),this._firstRender=!1,(a=l.onRenderComplete)===null||a===void 0||a.call(l,this.svg.node(),c,this._getBleed(this.components),this.containerWidth,this.containerHeight,this.width,this.height)}_updateScales(...e){const n=hn(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(J.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(J.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(J).forEach(r=>{var s,o,a,l,c,u,h,f;const[d,p]=mg(Cg(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),g=r===J.Y?n.yDomain:n.xDomain,m=r===J.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,v=r===J.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,y=(o=(s=g?.[0])!==null&&s!==void 0?s:d)!==null&&o!==void 0?o:0,_=(l=(a=g?.[1])!==null&&a!==void 0?a:p)!==null&&l!==void 0?l:1,b=[ce(y,(c=m?.[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(u=m?.[1])!==null&&u!==void 0?u:Number.POSITIVE_INFINITY),ce(_,(h=v?.[0])!==null&&h!==void 0?h:Number.NEGATIVE_INFINITY,(f=v?.[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(b[0]===b[1]){const k=i.some(x=>{var w;return((w=x.datamodel.data)===null||w===void 0?void 0:w.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===J.Y))&&(b[1]=b[0]+1)}e.forEach(k=>k.setScaleDomain(r,b))})}_updateScalesRange(...e){var n,i,r,s,o,a;const{config:l}=this;if(!e)return;const c=l.yDirection===Me.South,u=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],h=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(s=l.padding.top)!==null&&s!==void 0?s:0];c&&h.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(J.X,(o=l.xRange)!==null&&o!==void 0?o:u),d.setScaleRange(J.Y,(a=l.yRange)!==null&&a!==void 0?a:h);const f=this._getBleed(e);for(const d of e)d.setScaleRange(J.X,[u[0]+f.left,u[1]-f.right]),d.setScaleRange(J.Y,c?[h[0]+f.top,h[1]-f.bottom]:[h[0]-f.bottom,h[1]+f.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();hn([n,i]).forEach(o=>{const a=o.getOffset(r);o.g.attr("transform",`translate(${a.left},${a.top})`),o.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=hn([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let s=0;s<r;s+=1){const o={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),hn([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();o.top<c.top&&(o.top=c.top),o.bottom<c.bottom&&(o.bottom=c.bottom),o.left<c.left&&(o.left=c.left),o.right<c.right&&(o.right=c.right)}),this._axisMargin=o}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}_getBleed(e){return e.map(n=>n.bleed).reduce((n,i)=>{for(const r of Object.keys(n)){const s=r;n[s]<i[s]&&(n[s]=i[s])}return n},{top:0,bottom:0,left:0,right:0})}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:s,yAxis:o}}=this;super.destroy();for(const a of e)a?.destroy();n?.destroy(),i?.destroy(),r?.destroy(),s?.destroy(),o?.destroy()}}const Yc={duration:600,events:{},attributes:{}};class $y{constructor(e=wn.SVG){var n,i;this.type=wn.SVG,this.datamodel=new Ws,this.sizing=Qe.Fit,this.events={},this._defaultConfig=Yc,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Ci(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Ci(this._setCustomAttributes,500),e===wn.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=sc(),this.g=$t(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=Je(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const s=this.g.selectAll(`.${i}`);s.on(r+n,(o,a)=>{const l=s.nodes(),c=l.indexOf(o.currentTarget),u=e[i][r];return u?.(a,o,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Fy extends Ws{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const fr=Object.assign(Object.assign({},Yc),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class no extends $y{constructor(){super(...arguments),this.datamodel=new Fy,this.clippable=!0,this.stacked=!1,this._defaultConfig=fr,this._xScale=Ra.scaleLinear(),this._yScale=Ra.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===J.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===J.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===J.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===J.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===J.X&&(this._xScale=n),n&&e===J.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case J.X:return this.getXDataExtent();case J.Y:return this.getYDataExtent(n);default:return wr(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return wr(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=this.xScale.domain(),s=e?zl(i.data,r,n.x,!0):i.data,o=De(n.y)?n.y:[n.y];return wr(s,...o)}}var A;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(A||(A={}));var Na;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Na||(Na={}));var Ba;(function(t){t.Inside="inside",t.Outside="outside",t.Center="center"})(Ba||(Ba={}));var La;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(La||(La={}));const Py={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:A.Auto,horizontalShift:0,verticalPlacement:A.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},dr=K`
|
|
63
|
-
label: tooltip;
|
|
64
|
-
display: inline-block;
|
|
65
|
-
left: 0;
|
|
66
|
-
bottom: 0;
|
|
67
|
-
min-width: max-content;
|
|
68
|
-
position: absolute;
|
|
69
|
-
opacity: 0;
|
|
70
|
-
transition: opacity;
|
|
71
|
-
transition-duration: var(--vis-tooltip-transition-duration);
|
|
72
|
-
z-index: 999999;
|
|
73
|
-
padding: var(--vis-tooltip-padding);
|
|
74
|
-
color: var(--vis-tooltip-text-color);
|
|
75
|
-
border-radius: var(--vis-tooltip-border-radius);
|
|
76
|
-
box-shadow: var(--vis-tooltip-box-shadow);
|
|
77
|
-
border: solid 1px var(--vis-tooltip-border-color);
|
|
78
|
-
background-color: var(--vis-tooltip-background-color);
|
|
79
|
-
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
80
|
-
`,Ry=dr,Ny=Hn`
|
|
81
|
-
:root {
|
|
82
|
-
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
83
|
-
--vis-tooltip-border-color: #e5e9f7;
|
|
84
|
-
--vis-tooltip-text-color: #000;
|
|
85
|
-
--vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
|
|
86
|
-
--vis-tooltip-backdrop-filter: none;
|
|
87
|
-
--vis-tooltip-padding: 10px 15px;
|
|
88
|
-
--vis-tooltip-border-radius: 5px;
|
|
89
|
-
--vis-tooltip-transition-duration: 300ms;
|
|
90
|
-
--vis-tooltip-box-shadow: none;
|
|
91
|
-
|
|
92
|
-
--vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
93
|
-
--vis-dark-tooltip-text-color: #e5e9f7;
|
|
94
|
-
--vis-dark-tooltip-border-color: var(--vis-color-grey);
|
|
95
|
-
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
body.theme-dark ${`.${dr}`} {
|
|
99
|
-
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
100
|
-
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
101
|
-
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
102
|
-
--vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
body.theme-dark {
|
|
106
|
-
--vis-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
107
|
-
--vis-tooltip-text-color: #e5e9f7;
|
|
108
|
-
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
109
|
-
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
110
|
-
}
|
|
111
|
-
`,Gc=K`
|
|
112
|
-
bottom: unset;
|
|
113
|
-
position: fixed;
|
|
114
|
-
`,li=K`
|
|
115
|
-
opacity: 1;
|
|
116
|
-
`,ci=K`
|
|
117
|
-
display: none;
|
|
118
|
-
`,Xc=K`
|
|
119
|
-
label: non-interactive;
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
user-select: none;
|
|
122
|
-
`,By=Object.freeze(Object.defineProperty({__proto__:null,hidden:ci,nonInteractive:Xc,positionFixed:Gc,root:dr,show:li,tooltip:Ry,variables:Ny},Symbol.toStringTag,{value:"Module"}));class jc{constructor(e={}){this._defaultConfig=Py,this.config=this._defaultConfig,this._setUpEventsThrottled=Ci(this._setUpEvents,500),this._setContainerPositionThrottled=Ci(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=$t(this.element).attr("class",dr).classed(li,!1).classed(ci,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=Je(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(li,!1).on("transitionend",()=>{this.div.classed(ci,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(ci,!1).classed(li,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,i=this.element.offsetWidth,r=this.element.offsetHeight,s=this._overriddenHorizontalPlacement||(n.horizontalPlacement===A.Auto?A.Center:n.horizontalPlacement),o=n.verticalPlacement===A.Auto?e.y-r<0?A.Bottom:A.Top:n.verticalPlacement,a=5,l=s===A.Left?-i-a-n.horizontalShift:s===A.Center?-i/2:a+n.horizontalShift,c=o===A.Bottom?a+n.verticalShift:o===A.Center?-r/2:-a-n.verticalShift-r,[u,h]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(u,h,r)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const i=5,r=this.element.offsetWidth,s=this.element.offsetHeight,o=this.isContainerBody(),a=o?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=o?[l.x,l.y]:wi({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),u=this._overriddenHorizontalPlacement||(n.horizontalPlacement===A.Auto?c[0]-r<0?A.Right:c[0]+r>a?A.Left:A.Center:n.horizontalPlacement);let h=0;switch(u){case A.Left:h=-r-i-n.horizontalShift;break;case A.Right:h=l.width+i+n.horizontalShift;break;case A.Center:default:h=(-r+l.width)/2;break}const f=n.verticalPlacement===A.Auto?u!==A.Center?A.Center:c[1]-s<0?A.Bottom:A.Top:n.verticalPlacement;let d=-s;switch(f){case A.Center:d+=(s+l.height)/2;break;case A.Bottom:d+=s+l.height+i+n.verticalShift;break;case A.Top:default:d+=-i-n.verticalShift;break}const[p,g]=this._constraintPosToContainer(c[0]+h,c[1]+d,r,s);this._applyPosition(p,g,s)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:i,prevConfig:r}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed(Xc,!i.allowHover),r?.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),s=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Gc,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${s-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const s=this.isContainerBody(),o=s?window.innerHeight:this._container.scrollHeight,a=s?window.innerWidth:this._container.scrollWidth,l=10,c=e>a-i-l,u=e<l,h=c?a-i-l:u?l:e,f=10,d=n>o-r-f,p=n<f,g=d?o-r-f:p?f:n;return[a<i?0:h,o<r?0:g]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const i=$t(n.element);i.on("mousemove.tooltip",r=>{const{config:s}=this,o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const a of Object.keys(s.triggers)){const l=s.triggers[a];if(!l)continue;const c=i.selectAll(`.${a}`).nodes();for(const u of o){if(u===i.node())break;if(u.classList.contains(a)){const h=c.indexOf(u),f=$t(u).datum(),d=l(f,h,c),[p,g]=this.isContainerBody()?[r.clientX,r.clientY]:wi(r,this._container);d===null?this.hide():(this.render(d),s.followCursor?this.place({x:p,y:g}):this.placeByElement(u)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}jc.selectors=By;function at(t){return function(){return t}}const N1=Math.abs,B1=Math.atan2,L1=Math.cos,I1=Math.max,H1=Math.min,z1=Math.sin,W1=Math.sqrt,Ia=1e-12,io=Math.PI,Ha=io/2,U1=2*io;function q1(t){return t>1?0:t<-1?io:Math.acos(t)}function V1(t){return t>=1?Ha:t<=-1?-Ha:Math.asin(t)}const ss=Math.PI,os=2*ss,be=1e-6,Ly=os-be;function Zc(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Iy(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Zc;const n=10**e;return function(i){this._+=i[0];for(let r=1,s=i.length;r<s;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class Hy{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Zc:Iy(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,s,o){this._append`C${+e},${+n},${+i},${+r},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,i,r,s){if(e=+e,n=+n,i=+i,r=+r,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,l=i-e,c=r-n,u=o-e,h=a-n,f=u*u+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>be)if(!(Math.abs(h*l-c*u)>be)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-o,p=r-a,g=l*l+c*c,m=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(f),_=s*Math.tan((ss-Math.acos((g+f-m)/(2*v*y)))/2),b=_/y,k=_/v;Math.abs(b-1)>be&&this._append`L${e+b*u},${n+b*h}`,this._append`A${s},${s},0,0,${+(h*d>u*p)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,s,o){if(e=+e,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),c=e+a,u=n+l,h=1^o,f=o?r-s:s-r;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>be||Math.abs(this._y1-u)>be)&&this._append`L${c},${u}`,i&&(f<0&&(f=f%os+os),f>Ly?this._append`A${i},${i},0,1,${h},${e-a},${n-l}A${i},${i},0,1,${h},${this._x1=c},${this._y1=u}`:f>be&&this._append`A${i},${i},0,${+(f>=ss)},${h},${this._x1=e+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Kc(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new Hy(e)}function Qc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Jc(t){this._context=t}Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ro(t){return new Jc(t)}function tu(t){return t[0]}function eu(t){return t[1]}function nu(t,e){var n=at(!0),i=null,r=ro,s=null,o=Kc(a);t=typeof t=="function"?t:t===void 0?tu:at(t),e=typeof e=="function"?e:e===void 0?eu:at(e);function a(l){var c,u=(l=Qc(l)).length,h,f=!1,d;for(i==null&&(s=r(d=o())),c=0;c<=u;++c)!(c<u&&n(h=l[c],c,l))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(h,c,l),+e(h,c,l));if(d)return s=null,d+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:at(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(s=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=s=null:s=r(i=l),a):i},a}function zy(t,e,n){var i=null,r=at(!0),s=null,o=ro,a=null,l=Kc(c);t=typeof t=="function"?t:t===void 0?tu:at(+t),e=typeof e=="function"?e:at(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?eu:at(+n);function c(h){var f,d,p,g=(h=Qc(h)).length,m,v=!1,y,_=new Array(g),b=new Array(g);for(s==null&&(a=o(y=l())),f=0;f<=g;++f){if(!(f<g&&r(m=h[f],f,h))===v)if(v=!v)d=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),p=f-1;p>=d;--p)a.point(_[p],b[p]);a.lineEnd(),a.areaEnd()}v&&(_[f]=+t(m,f,h),b[f]=+e(m,f,h),a.point(i?+i(m,f,h):_[f],n?+n(m,f,h):b[f]))}if(y)return a=null,y+""||null}function u(){return nu().defined(r).curve(o).context(s)}return c.x=function(h){return arguments.length?(t=typeof h=="function"?h:at(+h),i=null,c):t},c.x0=function(h){return arguments.length?(t=typeof h=="function"?h:at(+h),c):t},c.x1=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:at(+h),c):i},c.y=function(h){return arguments.length?(e=typeof h=="function"?h:at(+h),n=null,c):e},c.y0=function(h){return arguments.length?(e=typeof h=="function"?h:at(+h),c):e},c.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:at(+h),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(i).y(e)},c.defined=function(h){return arguments.length?(r=typeof h=="function"?h:at(!!h),c):r},c.curve=function(h){return arguments.length?(o=h,s!=null&&(a=o(s)),c):o},c.context=function(h){return arguments.length?(h==null?s=a=null:a=o(s=h),c):s},c}function ve(){}function Wi(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function pr(t){this._context=t}pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wy(t){return new pr(t)}function iu(t){this._context=t}iu.prototype={areaStart:ve,areaEnd:ve,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Wi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uy(t){return new iu(t)}function ru(t){this._context=t}ru.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Wi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function qy(t){return new ru(t)}function su(t,e){this._basis=new pr(t),this._beta=e}su.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],s=t[n]-i,o=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*s),this._beta*e[a]+(1-this._beta)*(r+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Vy=(function t(e){function n(i){return e===1?new pr(i):new su(i,e)}return n.beta=function(i){return t(+i)},n})(.85);function Ui(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function so(t,e){this._context=t,this._k=(1-e)/6}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ui(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ui(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yy=(function t(e){function n(i){return new so(i,e)}return n.tension=function(i){return t(+i)},n})(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.prototype={areaStart:ve,areaEnd:ve,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ui(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gy=(function t(e){function n(i){return new oo(i,e)}return n.tension=function(i){return t(+i)},n})(0);function ao(t,e){this._context=t,this._k=(1-e)/6}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ui(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xy=(function t(e){function n(i){return new ao(i,e)}return n.tension=function(i){return t(+i)},n})(0);function lo(t,e,n){var i=t._x1,r=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Ia){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ia){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,s,o,t._x2,t._y2)}function ou(t,e){this._context=t,this._alpha=e}ou.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:lo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jy=(function t(e){function n(i){return e?new ou(i,e):new so(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function au(t,e){this._context=t,this._alpha=e}au.prototype={areaStart:ve,areaEnd:ve,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:lo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Zy=(function t(e){function n(i){return e?new au(i,e):new oo(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function lu(t,e){this._context=t,this._alpha=e}lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:lo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ky=(function t(e){function n(i){return e?new lu(i,e):new ao(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function cu(t){this._context=t}cu.prototype={areaStart:ve,areaEnd:ve,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Qy(t){return new cu(t)}function za(t){return t<0?-1:1}function Wa(t,e,n){var i=t._x1-t._x0,r=e-t._x1,s=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),a=(s*r+o*i)/(i+r);return(za(s)+za(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Ua(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Pr(t,e,n){var i=t._x0,r=t._y0,s=t._x1,o=t._y1,a=(s-i)/3;t._context.bezierCurveTo(i+a,r+a*e,s-a,o-a*n,s,o)}function qi(t){this._context=t}qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pr(this,this._t0,Ua(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Pr(this,Ua(this,n=Wa(this,t,e)),n);break;default:Pr(this,this._t0,n=Wa(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function uu(t){this._context=new hu(t)}(uu.prototype=Object.create(qi.prototype)).point=function(t,e){qi.prototype.point.call(this,e,t)};function hu(t){this._context=t}hu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,s){this._context.bezierCurveTo(e,t,i,n,s,r)}};function Jy(t){return new qi(t)}function tx(t){return new uu(t)}function fu(t){this._context=t}fu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=qa(t),r=qa(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(i[0][s],r[0][s],i[1][s],r[1][s],t[o],e[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function qa(t){var e,n=t.length-1,i,r=new Array(n),s=new Array(n),o=new Array(n);for(r[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/s[e-1],s[e]-=i,o[e]-=i*o[e-1];for(r[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)r[e]=(o[e]-r[e+1])/s[e];for(s[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-r[e+1];return[r,s]}function ex(t){return new fu(t)}function gr(t,e){this._context=t,this._t=e}gr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function nx(t){return new gr(t,.5)}function ix(t){return new gr(t,0)}function rx(t){return new gr(t,1)}function Va(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function sx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Va(Object(n),!0).forEach(function(i){ox(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Cn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cn=function(e){return typeof e}:Cn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(t)}function ox(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vi(){return Vi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Vi.apply(this,arguments)}function ax(t,e){if(t){if(typeof t=="string")return Ya(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ya(t,e)}}function Ya(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function du(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ax(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
123
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function lx(t,e){var n=[],i=[];function r(s,o){if(s.length===1)n.push(s[0]),i.push(s[0]);else{for(var a=Array(s.length-1),l=0;l<a.length;l++)l===0&&n.push(s[0]),l===a.length-1&&i.push(s[l+1]),a[l]=[(1-o)*s[l][0]+o*s[l+1][0],(1-o)*s[l][1]+o*s[l+1][1]];r(a,o)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function cx(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function ux(t,e){e=e||2;for(var n=[],i=t,r=1/e,s=0;s<e-1;s++){var o=r/(1-r*s),a=lx(i,o);n.push(a.left),i=a.right}return n.push(i),n}function hx(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),ux(i,n).map(cx)}var fx=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,je={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(je).forEach(function(t){je[t.toLowerCase()]=je[t]});function as(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function dx(t){return"".concat(t.type).concat(je[t.type].map(function(e){return t[e]}).join(","))}function px(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var r={};Object.keys(e).forEach(function(s){var o=e[s],a=t[s];a===void 0&&(i.includes(s)?a=o:(a===void 0&&n[s]&&(a=t[n[s]]),a===void 0&&(a=0))),r[s]=a}),r.type=e.type,t=r}return t}function gx(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(hx(t,e,n));else{var r=Vi({},t);r.type==="M"&&(r.type="L"),i=i.concat(as(n-1).map(function(){return r})),i.push(e)}return i}function Ga(t,e,n){var i=t.length-1,r=e.length-1,s=i/r,o=as(r).reduce(function(l,c,u){var h=Math.floor(s*u);if(n&&h<t.length-1&&n(t[h],t[h+1])){var f=s*u%1<.5;l[h]&&(f?h>0?h-=1:h<t.length-1&&(h+=1):h<t.length-1?h+=1:h>0&&(h-=1))}return l[h]=(l[h]||0)+1,l},[]),a=o.reduce(function(l,c,u){if(u===t.length-1){var h=as(c,Vi({},t[t.length-1]));return h[0].type==="M"&&h.forEach(function(f){f.type="L"}),l.concat(h)}return l.concat(gx(t[u],t[u+1],c))},[]);return a.unshift(t[0]),a}function Xa(t){for(var e=(t||"").match(fx)||[],n=[],i,r,s=0;s<e.length;++s)if(i=je[e[s]],i){r={type:e[s]};for(var o=0;o<i.length;++o)r[i[o]]=+e[s+o+1];s+=i.length,n.push(r)}return n}function mx(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),s=Cn(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=s.excludeSegment,a=s.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var l=(i.length===0||i[i.length-1].type==="Z")&&(r.length===0||r[r.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),r.length>0&&r[r.length-1].type==="Z"&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]);var c=Math.abs(r.length-i.length);c!==0&&(r.length>i.length?i=Ga(i,r,o):r.length<i.length&&(r=Ga(r,i,o))),i=i.map(function(h,f){return px(h,r[f])});var u=i.map(function(h){return sx({},h)});return l&&(u.push({type:"Z"}),i.push({type:"Z"})),function(f){if(f===1&&a)return e??[];if(f===0)return i;for(var d=0;d<u.length;++d){var p=i[d],g=r[d],m=u[d],v=du(je[m.type]),y;try{for(v.s();!(y=v.n()).done;){var _=y.value;m[_]=(1-f)*p[_]+f*g[_],(_==="largeArcFlag"||_==="sweepFlag")&&(m[_]=Math.round(m[_]))}}catch(b){v.e(b)}finally{v.f()}}return u}}function ja(t,e,n){var i=Xa(t),r=Xa(e),s=Cn(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=s.excludeSegment,a=s.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=mx(i,r,{excludeSegment:o,snapEndsToInput:a});return function(u){if(u===1&&a)return e??"";var h=l(u),f="",d=du(h),p;try{for(d.s();!(p=d.n()).done;){var g=p.value;f+=dx(g)}}catch(m){d.e(m)}finally{d.f()}return f}}function he(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:Vr(t,e,n)||(Se(n)?`var(${ae(n)})`:null)}var Q;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(Q||(Q={}));const Za={[Q.Basis]:Wy,[Q.BasisClosed]:Uy,[Q.BasisOpen]:qy,[Q.Bundle]:Vy,[Q.Cardinal]:Yy,[Q.CardinalClosed]:Gy,[Q.CardinalOpen]:Xy,[Q.CatmullRom]:jy,[Q.CatmullRomClosed]:Zy,[Q.CatmullRomOpen]:Ky,[Q.Linear]:ro,[Q.LinearClosed]:Qy,[Q.MonotoneX]:Jy,[Q.MonotoneY]:tx,[Q.Natural]:ex,[Q.Step]:nx,[Q.StepAfter]:rx,[Q.StepBefore]:ix};function vx(t){return t}var ui=1,hi=2,ls=3,xn=4,Ka=1e-6;function _x(t){return"translate("+t+",0)"}function yx(t){return"translate(0,"+t+")"}function xx(t){return e=>+t(e)}function bx(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function wx(){return!this.__axis}function mr(t,e){var n=[],i=null,r=null,s=6,o=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===ui||t===xn?-1:1,u=t===xn||t===hi?"x":"y",h=t===ui||t===ls?_x:yx;function f(d){var p=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):vx),m=Math.max(s,0)+a,v=e.range(),y=+v[0]+l,_=+v[v.length-1]+l,b=(e.bandwidth?bx:xx)(e.copy(),l),k=d.selection?d.selection():d,x=k.selectAll(".domain").data([null]),w=k.selectAll(".tick").data(p,e).order(),D=w.exit(),E=w.enter().append("g").attr("class","tick"),O=w.select("line"),L=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),O=O.merge(E.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),L=L.merge(E.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy",t===ui?"0em":t===ls?"0.71em":"0.32em")),d!==k&&(x=x.transition(d),w=w.transition(d),O=O.transition(d),L=L.transition(d),D=D.transition(d).attr("opacity",Ka).attr("transform",function(C){return isFinite(C=b(C))?h(C+l):this.getAttribute("transform")}),E.attr("opacity",Ka).attr("transform",function(C){var z=this.parentNode.__axis;return h((z&&isFinite(z=z(C))?z:b(C))+l)})),D.remove(),x.attr("d",t===xn||t===hi?o?"M"+c*o+","+y+"H"+l+"V"+_+"H"+c*o:"M"+l+","+y+"V"+_:o?"M"+y+","+c*o+"V"+l+"H"+_+"V"+c*o:"M"+y+","+l+"H"+_),w.attr("opacity",1).attr("transform",function(C){return h(b(C)+l)}),O.attr(u+"2",c*s),L.attr(u,c*m).text(g),k.filter(wx).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===hi?"start":t===xn?"end":"middle"),k.each(function(){this.__axis=b})}return f.scale=function(d){return arguments.length?(e=d,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),f):n.slice()},f.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),f):i&&i.slice()},f.tickFormat=function(d){return arguments.length?(r=d,f):r},f.tickSize=function(d){return arguments.length?(s=o=+d,f):s},f.tickSizeInner=function(d){return arguments.length?(s=+d,f):s},f.tickSizeOuter=function(d){return arguments.length?(o=+d,f):o},f.tickPadding=function(d){return arguments.length?(a=+d,f):a},f.offset=function(d){return arguments.length?(l=+d,f):l},f}function Qa(t){return mr(ui,t)}function Ja(t){return mr(hi,t)}function tl(t){return mr(ls,t)}function el(t){return mr(xn,t)}var fe;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(fe||(fe={}));var Oe;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Oe||(Oe={}));var jt;(function(t){t.Wrap="wrap",t.Trim="trim"})(jt||(jt={}));var Ft;(function(t){t.Left="left",t.Center="center",t.Right="right"})(Ft||(Ft={}));function kx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fi={exports:{}},Sx=fi.exports,nl;function Tx(){return nl||(nl=1,(function(t){(function(e){if(typeof n!="function"){var n=function(p){return p};n.nonNative=!0}const i=n("plaintext"),r=n("html"),s=n("comment"),o=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function l(p,g,m){p=p||"",g=g||[],m=m||"";let v=u(g,m);return h(p,v)}function c(p,g){p=p||[],g=g||"";let m=u(p,g);return function(y){return h(y||"",m)}}l.init_streaming_mode=c;function u(p,g){return p=f(p),{allowable_tags:p,tag_replacement:g,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function h(p,g){if(typeof p!="string")throw new TypeError("'html' parameter must be a string");let m=g.allowable_tags,v=g.tag_replacement,y=g.state,_=g.tag_buffer,b=g.depth,k=g.in_quote_char,x="";for(let w=0,D=p.length;w<D;w++){let E=p[w];if(y===i)E==="<"?(y=r,_+=E):x+=E;else if(y===r)switch(E){case"<":if(k)break;b++;break;case">":if(k)break;if(b){b--;break}k="",y=i,_+=">",m.has(d(_))?x+=_:x+=v,_="";break;case'"':case"'":E===k?k="":k=k||E,_+=E;break;case"-":_==="<!-"&&(y=s),_+=E;break;case" ":case`
|
|
124
|
-
`:if(_==="<"){y=i,x+="< ",_="";break}_+=E;break;default:_+=E;break}else y===s&&(E===">"?(_.slice(-2)=="--"&&(y=i),_=""):_+=E)}return g.state=y,g.tag_buffer=_,g.depth=b,g.in_quote_char=k,x}function f(p){let g=new Set;if(typeof p=="string"){let m;for(;m=o.exec(p);)g.add(m[1])}else!n.nonNative&&typeof p[n.iterator]=="function"?g=new Set(p):typeof p.forEach=="function"&&p.forEach(g.add,g);return g}function d(p){let g=a.exec(p);return g?g[1].toLowerCase():null}t.exports?t.exports=l:e.striptags=l})(Sx)})(fi)),fi.exports}var Cx=Tx();const Ax=kx(Cx);function Mx(t){switch(t){case Ft.Center:return"middle";case Ft.Right:return"end";case Ft.Left:default:return"start"}}const Ox=t=>{switch(t){case Ft.Left:return"start";case Ft.Right:return"end";case Ft.Center:return"middle";default:return null}};function Ex(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function Dx(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function $x(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function Fx(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function Px(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function Rx(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function Nx(t,e=15,n=fe.Middle){if(!t)return"";let i=Rx(t,e);return n===fe.Start?i=Fx(t,e):n===fe.Middle&&(i=Px(t,e)),i}function pu(t,e=[" "]){let n=[t];for(let i=0;i<e.length;i++){const r=e[i];n.forEach((s,o)=>{const a=s.split(r),l=a.map((c,u)=>`${c}${u===a.length-1?"":r}`);n[o]=l}),n=qr(n)}return n}function Bx(t,e,n=[" ","-",".",","]){const i=t.text();if(!i)return;const r=De(n)?n:[n],s=pu(i,r),o=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",o),l=`${s[0]}`;a.text(l),s.forEach((c,u)=>{if(u===0)return;const h=`${l}${c}`;a.text(h),a.node().getComputedTextLength()>e?(a.text(l.trim()),a=t.append("tspan").attr("x",o).attr("dy","1.2em").text(c),l=c):l+=c})}function il(t,e,n,i,r,s){var o;e===void 0&&(e=50),n===void 0&&(n=fe.Middle),r===void 0&&(r=+((o=window.getComputedStyle(t.node()))===null||o===void 0?void 0:o.fontSize)||0),s===void 0&&(s=Rs());const a=t.text()||"",l=a.length,c=r*l*s,h=Math.ceil(l*e/(1.1*c));return h<l?(t.text(Nx(a,h,n)),!0):!1}function di(t,e,n=Rs()){return t.length*e*n||0}function pi(t,e,n){const i="http://www.w3.org/2000/svg",r=document.createElementNS(i,"svg"),s=document.createElementNS(i,"text");s.textContent=t,s.setAttribute("font-size",`${n}`),s.setAttribute("font-family",e),r.appendChild(s),document.body.appendChild(r);const o=s.getComputedTextLength();return document.body.removeChild(r),o}function Lx(t,e=void 0,n=!0,i=cc,r=!1){var s,o,a;const l=`${t.text}`;if(!l)return[];const c=(s=t.fontSize)!==null&&s!==void 0?s:Tn.fontSize,u=(o=t.fontFamily)!==null&&o!==void 0?o:Tn.fontFamily,h=(a=t.fontWidthToHeightRatio)!==null&&a!==void 0?a:Tn.fontWidthToHeightRatio,f=Array.isArray(i)?i:[i];return l.split(`
|
|
125
|
-
`).map(p=>{const g=[];if(!e)return[p];const m=pu(p,f);let v="";for(let y=0;y<m.length;y+=1){(n?di(v+m[y],c,h):pi(v+m[y],u,c))<e||y===0?v+=m[y]:(g.push(v.trim()),v=m[y]);const b=2;if(r)for(;v.trim().length>b&&(n?di(v,c,h):pi(v,u,c))>e;){let x=v.trim().length-b;for(;x>0;){const w=`${v.substring(0,x)}${uc}`;if((n?di(w,c,h):pi(w,u,c))<=e||x===1){g.push(w.trim()),v=v.substring(x);break}x--}}}return v&&g.push(v.trim()),g}).flat()}function Ix(t,e=void 0,n=void 0,i=!0,r=cc,s=!1){const o=Array.isArray(t)?t.map(h=>Je(Tn,h)):[Je(Tn,t)],a=o.map(h=>Lx(h,e,i,r,s)),l=o[0];let c=-l.fontSize*(l.lineHeight-1);const u=[];return o.forEach((h,f)=>{var d;let p=a[f];const g=f>0?u[f-1]:void 0,m=g?g.marginBottom:0,v=h.marginTop,y=Math.max(m,v);c+=y;const _=h.fontSize*h.lineHeight;let b=0;for(let k=0;k<p.length;k+=1){let x=p[k];c+=_;const w=`${x} …`,D=i?di(w,h.fontSize,h.fontWidthToHeightRatio):pi(w,h.fontFamily,h.fontSize);if(b=Math.max(D,b),n&&c+_>n&&k!==p.length-1){x.charAt(x.length-1)===uc&&(x=x.substr(0,p[k].length-1)),D<e?p[k]=w:p[k]=`${p[k].substr(0,p[k].length-2)}…`,p=p.slice(0,k+1);break}}u.push(Object.assign(Object.assign({},h),{_lines:p,_estimatedHeight:c-(g?._estimatedHeight||0),_maxWidth:Math.max(b,(d=g?._maxWidth)!==null&&d!==void 0?d:0)}))}),u}function Hx(t,e=0,n,i){return t.map((r,s)=>{const o=s>0?t[s-1]:void 0,a=o?o.marginBottom/o.fontSize:0,l=r.marginTop/r.fontSize,c=Math.max(a,l),u={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:s===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(u).filter(([f,d])=>d).map(([f,d])=>`${Dx(f)}="${$x(d.toString())}"`).join(" ")}>${r._lines.map((f,d)=>{let p;return s===0&&d===0?p=c:d===0?p=c+r.lineHeight:p=r.lineHeight,`<tspan x="${e}" dy="${p}em" dominant-baseline="${i??"auto"}">${f.length?f:" "}</tspan>`}).join("")}</tspan>`})}function zx(t){return Mg(t,e=>e._estimatedHeight)}const Wx=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function Ux(t,e,n,i){var r,s;const o=Ix(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),l=(s=n.y)!==null&&s!==void 0?s:+t.getAttribute("y"),c=a??0;let u=l??0;if(n.textAlign&&t.setAttribute("text-anchor",Mx(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Oe.Top){const f=zx(o),d=n.verticalAlign===Oe.Middle?-f/2:n.verticalAlign===Oe.Bottom?-f:0;u+=d}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${c} ${u})`):t.removeAttribute("transform");const h=new DOMParser;t.textContent="",o.forEach(f=>{const d=Hx([f],c,u,i).join(""),p=Ax(d,Wx),g=h.parseFromString(p,"image/svg+xml").firstChild;t.appendChild(g)})}const qx=Object.assign(Object.assign({},fr),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:jt.Wrap,labelTextTrimType:fe.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:fe.Middle,tickTextFitMode:jt.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function Vx(t,e){const n="--vis-",i=Object.entries(t);return Object.fromEntries(i.map(([r])=>[Ex(r.replace(n,"")),r]))}function Yx(t,e){Hn({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const gu=K`
|
|
126
|
-
label: axis-component;
|
|
127
|
-
`,co={"--vis-axis-tick-color":"#e8e9ef","--vis-axis-grid-color":"#e8e9ef","--vis-axis-grid-line-width":"1px","--vis-axis-grid-line-dasharray":"none","--vis-axis-label-font-size":"14px","--vis-axis-label-color":"#6c778c","--vis-axis-label-weight":"500","--vis-axis-tick-label-color":"#6c778c","--vis-axis-tick-label-font-size":"12px","--vis-axis-tick-label-weight":"500","--vis-axis-tick-label-cursor":"default","--vis-axis-tick-label-text-decoration":"none","--vis-axis-tick-line-width":"1px","--vis-axis-tick-label-hide-transition":"opacity 400ms ease-in-out","--vis-dark-axis-tick-color":"#6c778c","--vis-dark-axis-tick-label-color":"#e8e9ef","--vis-dark-axis-grid-color":"#6c778c","--vis-dark-axis-label-color":"#fefefe"},Gx=Vx(co);Yx(co,gu);const uo=K`
|
|
128
|
-
label: hide-tick-line;
|
|
129
|
-
`,ho=K`
|
|
130
|
-
label: hide-domain;
|
|
131
|
-
`,mu=K`
|
|
132
|
-
label: axis;
|
|
133
|
-
|
|
134
|
-
user-select: none;
|
|
135
|
-
|
|
136
|
-
.domain {
|
|
137
|
-
stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
|
|
138
|
-
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
139
|
-
stroke-dasharray: var(--vis-axis-domain-line-dasharray, var(--vis-axis-grid-line-dasharray));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&${`.${uo}`} {
|
|
143
|
-
.tick > line {
|
|
144
|
-
opacity: 0;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&${`.${ho}`} {
|
|
149
|
-
.domain {
|
|
150
|
-
opacity: 0;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`,vu=K`
|
|
154
|
-
label: grid;
|
|
155
|
-
|
|
156
|
-
.domain {
|
|
157
|
-
opacity: 0;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
line {
|
|
161
|
-
stroke: var(--vis-axis-grid-color);
|
|
162
|
-
stroke-width: var(--vis-axis-grid-line-width);
|
|
163
|
-
stroke-dasharray: var(--vis-axis-grid-line-dasharray);
|
|
164
|
-
}
|
|
165
|
-
`,_u=K`
|
|
166
|
-
label: tick;
|
|
167
|
-
|
|
168
|
-
stroke: none;
|
|
169
|
-
font-size: var(--vis-axis-tick-label-font-size);
|
|
170
|
-
font-weight: var(--vis-axis-tick-label-weight);
|
|
171
|
-
|
|
172
|
-
line {
|
|
173
|
-
stroke: var(--vis-axis-tick-color);
|
|
174
|
-
stroke-width: var(--vis-axis-tick-line-width);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
text {
|
|
178
|
-
fill: var(--vis-axis-tick-label-color);
|
|
179
|
-
cursor: var(--vis-axis-tick-label-cursor);
|
|
180
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
181
|
-
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
182
|
-
stroke: none;
|
|
183
|
-
}
|
|
184
|
-
`,cs=K`
|
|
185
|
-
label: tick-text-exiting;
|
|
186
|
-
`,us=K`
|
|
187
|
-
label: label;
|
|
188
|
-
fill: var(--vis-axis-label-color);
|
|
189
|
-
font-size: var(--vis-axis-label-font-size);
|
|
190
|
-
font-weight: var(--vis-axis-label-weight);
|
|
191
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
192
|
-
text-anchor: middle;
|
|
193
|
-
`,yu=K`
|
|
194
|
-
label: tick-label;
|
|
195
|
-
`,xu=K`
|
|
196
|
-
label: tick-label-hideable;
|
|
197
|
-
opacity: 0;
|
|
198
|
-
transition: var(--vis-axis-tick-label-hide-transition);
|
|
199
|
-
`,Xx=Object.freeze(Object.defineProperty({__proto__:null,axis:mu,cssVarDefaults:co,grid:vu,hideDomain:ho,hideTickLine:uo,label:us,root:gu,tick:_u,tickLabel:yu,tickLabelHideable:xu,tickTextExiting:cs,variables:Gx},Symbol.toStringTag,{value:"Module"}));class bu extends no{constructor(e){super(),this._defaultConfig=qx,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",vu)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===N.X?A.Bottom:A.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case N.X:{const s=this._axisSizeBBox.x+this._axisSizeBBox.width,o=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=s-this._width>1?s-this._width:0;switch(i){case A.Top:return{top:e.height,left:o,right:a};case A.Bottom:default:return{bottom:e.height,left:o,right:a}}}case N.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,s=r,o=r;switch(i){case A.Right:return{right:e.width,top:s,bottom:o};case A.Left:default:return{left:e.width,top:s,bottom:o}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case N.X:switch(i){case A.Top:return{top:e.top,left:e.left};case A.Bottom:default:return{top:e.top+this._height,left:e.left}}case N.Y:switch(i){case A.Right:return{top:e.top,left:e.left+this._width};case A.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:i}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),i.gridLine){const r=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),Dt(this.gridGroup,e).call(r).style("opacity",1)}else Dt(this.gridGroup,e).style("opacity",0);i.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:i}}=this,r=this._getNumTicks();switch(e){case N.X:switch(n){case A.Top:return Qa(this.xScale).ticks(r).tickPadding(i);case A.Bottom:default:return tl(this.xScale).ticks(r).tickPadding(i)}case N.Y:switch(n){case A.Right:return Ja(this.yScale).ticks(r).tickPadding(i);case A.Left:default:return el(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case N.X:switch(e.position){case A.Top:{n=Qa(this.xScale);break}case A.Bottom:default:{n=tl(this.xScale);break}}n.tickSize(-this._height);break;case N.Y:switch(e.position){case A.Right:{n=Ja(this.yScale);break}case A.Left:default:{n=el(this.yScale);break}}n.tickSize(-this._width)}n.tickSizeOuter(0).tickFormat(()=>"");const i=this._getNumTicks()*2,r=n.scale(),s=r.domain(),o=()=>{if(!e.minMaxTicksOnlyShowGridLines)return s;const l=r.ticks(i);if(l.length<2)return s;const c=+l[1]-+l[0],u=s[1];return+u-+l[l.length-1]>c/2?[...l,u]:l},a=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o():r.ticks(i);return n.tickValues(a),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),s=r.scale(),o=i.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?s.domain():s.ticks(this._getNumTicks()),a=o.length;r.tickValues(o),e.selectAll("*").interrupt();const l=Dt(e,n).call(r);e.selectAll("text").attr("dy",null).attr("y",null),l.on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed(_u,!0).style("font-size",i.tickTextFontSize);const u=e.selectAll("g.tick > text").filter(p=>o.some(g=>$e(p,g))).classed(yu,!0).classed(xu,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);e.selectAll("g.tick > text").filter(p=>!o.some(g=>$e(p,g))).classed(cs,!0),u.nodes().forEach(p=>Ls(p));const h=r.tickSize(),f=this.getPosition(),d=i.tickTextWidth||(i.type===N.X?this._containerWidth/(a+1):this._containerWidth/5);if(u.each((p,g,m)=>{var v,y;let _=(y=(v=i.tickFormat)===null||v===void 0?void 0:v.call(i,p,g,o))!==null&&y!==void 0?y:`${p}`;const b=m[g];if(!this._tickTextStyleCached){const O=getComputedStyle(b);this._tickTextStyleCached={fontSize:Number.parseFloat(O.fontSize),fontFamily:O.fontFamily,fontWidthToHeightRatio:Rs()}}const[k,x]=this._getTickTextOffset(f,h,this._tickTextStyleCached.fontSize),w={verticalAlign:i.type===N.X?Oe.Top:Oe.Middle,width:d,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak,x:k,y:x};if(i.tickTextFitMode===jt.Trim){const O=$t(b).text(_);il(O,d,i.tickTextTrimType,!0,this._tickTextStyleCached.fontSize,.58),_=$t(b).text()}const D=Object.assign({text:_},this._tickTextStyleCached),E=i.type===N.X?"central":"hanging";Ux(b,D,w,E)}),e.classed(mu,!0).classed(uo,!i.tickLine).classed(ho,!i.domainLine),i.fullSize){const p=this._getFullDomainPath(0);Dt(e.select(".domain"),n).attr("d",p)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll(`g.tick > text:not(.${cs})`);if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,s)=>{const o=s[r];o._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,s,o)=>{const a=o[s];if(!a._visible)return;const c=a.getBoundingClientRect();for(let u=s+1;u<o.length;u+=1){if(s===u)continue;const h=o[u];if(h._visible){const d=h.getBoundingClientRect();if(q0(c,d,-5)){h._visible=!1;break}}}});e.each((i,r,s)=>{const o=s[r];$t(o).style("opacity",o._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===N.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===N.Y){const i=this.yScale.range(),r=Math.abs(i[0]-i[1]);return Math.pow(r,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===N.X?this.xScale:this.yScale,i=n?.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===N.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case N.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case N.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:i,label:r,labelMargin:s,labelFontSize:o,labelTextFitMode:a}=this.config;if(e.selectAll(`.${us}`).remove(),!r)return;const l=this.getPosition(),{width:c,height:u}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),h=i===N.Y?-90:0,f=e.append("text").attr("class",us).attr("dy",`${this._getLabelDY()}em`).style("font-size",o).style("fill",this.config.labelColor);f.text(r);let d=!1;if(a===jt.Wrap){const b=i===N.Y?this._height:this._width;f.node().getComputedTextLength()>b&&(Bx(f,b),d=!0)}let p=c,g=u;if(a===jt.Wrap){const b=f.node().getBBox();p=b.width,g=b.height}else{const b=i===N.X?p:g,k=getComputedStyle(f.node()),x=Number.parseFloat(k.fontSize);il(f,b,this.config.labelTextTrimType,!0,x);const w=f.node().getBBox();p=w.width,g=w.height}const m=i===N.X?this._width/2:i===N.Y&&a===jt.Wrap&&d?l===A.Left?-c-g/2-10:c:Math.pow(-1,+(l===A.Left))*c,v=i===N.Y?this._height/2:i===N.X&&a===jt.Wrap?l===A.Top?-u-g/2:u:Math.pow(-1,+(l===A.Top))*u,y=i===N.X?0:Math.pow(-1,+(l===A.Left))*s,_=i===N.X?Math.pow(-1,+(l===A.Top))*s:0;f.attr("transform",`translate(${m+y},${v+_}) rotate(${h})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case N.X:switch(n){case A.Top:return 0;case A.Bottom:default:return .75}case N.Y:switch(n){case A.Right:return .75;case A.Left:default:return-.25}}}_getTickTextOffset(e,n,i){var r;const{config:s}=this,o=((r=s.tickTextAngle)!==null&&r!==void 0?r:0)/180*Math.PI,a=n+s.tickPadding;if(s.type===N.X){const l=e===A.Bottom?1:-1;return[l*a*Math.sin(o),l*(a+i/2)*Math.cos(o)]}else{const l=e===A.Right?1:-1;return[l*a*Math.cos(o),l*a*Math.sin(o)]}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,s=this.g.selectAll("g.tick > text"),o=Ox(n),a=e===N.X?0:this._getYTickTextTranslate(n,r),l=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;s.attr("transform",l).attr("text-anchor",o)}_getYTickTextTranslate(e,n=A.Left){var i,r,s,o;const a=this.config.tickPadding+1,l=((o=(r=(i=this._axisRawBBox)===null||i===void 0?void 0:i.width)!==null&&r!==void 0?r:(s=this.axisGroup.node())===null||s===void 0?void 0:s.getBBox().width)!==null&&o!==void 0?o:0)-a;switch(e){case Ft.Left:return n===A.Left?l*-1:0;case Ft.Right:return n===A.Left?0:l;case Ft.Center:return n===A.Left?l*-.5:l*.5;default:return 0}}}bu.selectors=Xx;const jx=Object.assign(Object.assign({},fr),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,i)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),Zx=Hn`
|
|
200
|
-
:root {
|
|
201
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
202
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
203
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
204
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
205
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
206
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
207
|
-
}
|
|
208
|
-
`,Kx=K`
|
|
209
|
-
label: crosshair-component;
|
|
210
|
-
`,wu=K`
|
|
211
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
212
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
213
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
214
|
-
pointer-events: none;
|
|
215
|
-
`,ku=K`
|
|
216
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
217
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
218
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
219
|
-
pointer-events: none;
|
|
220
|
-
`,Qx=Object.freeze(Object.defineProperty({__proto__:null,circle:ku,globalStyles:Zx,line:wu,root:Kx},Symbol.toStringTag,{value:"Module"}));class Su extends no{constructor(e){super(),this.clippable=!0,this._defaultConfig=jx,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",wu)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,i=!!(n.x||n.y||n.yStacked),r=i?n.x:this._accessors.x,s=i?n.y:this._accessors.y,o=s?De(s)?s:[s]:void 0,a=i?n.yStacked:this._accessors.yStacked,l=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:r,y:o,yStacked:a,baseline:l}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),i=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,s=Math.max(0,Math.min(n.right,i)-Math.max(n.left,0)),o=Math.max(0,Math.min(n.bottom,r)-Math.max(n.top,0)),a=n.width*n.height,l=s*o;return a>0&&l/a>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,i,r,s,o;const{config:a,datamodel:l}=this,c=Se(e)?e:a.duration,u=a.forceShowAt!==void 0,h=u?this.xScale(a.forceShowAt):this._xPx,f=this.xScale.invert(h),d=!((n=l.data)===null||n===void 0)&&n.length&&this.accessors.x?l.data.indexOf(Ai(l.data,f,this.accessors.x,Zt.Left)):void 0;let p,g;a.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((i=l.data)===null||i===void 0)&&i.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((r=l.data)===null||r===void 0)&&r.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),p=Ai(l.data,f,this.accessors.x),g=l.data.indexOf(p));const m=this.xScale.range(),v=this.yScale.range(),y=a.snapToData&&p?ce(Math.round(this.xScale(nt(p,this.accessors.x,g))),0,this._width):ce(h,m[0],m[1]),_=h>=m[0]&&h<=m[1],b=this._yPx>=Math.min(v[0],v[1])&&this._yPx<=Math.max(v[0],v[1]);let k=a.skipRangeCheck?!!this._xPx:this._xPx?_&&b:_;a.hideWhenFarFromPointer&&Math.abs(y-+h)>=a.hideWhenFarFromPointerDistance&&(k=!1);const x=(s=a.tooltip)!==null&&s!==void 0?s:this.tooltip;if(k&&x&&this._isContainerInViewport()){const O=x.getContainer()||this.container.node(),L=x.isContainerBody(),C=this.accessors.x?nt(p,this.accessors.x,g):void 0;if(u){const z=this.container.node().getBoundingClientRect(),I=(L?h+z.left:h)+this._containerMargin.left,tt=this._height/2+(L?z.top:0),ot=[I,tt];this._showTooltip(p,C,ot,d)}else if(this._mouseEvent){const z=L?[this._mouseEvent.clientX,this._mouseEvent.clientY]:wi(this._mouseEvent,O);this._showTooltip(p,C,z,d)}}else this._hideTooltip();if(this._mouseEvent&&((o=a.onCrosshairMove)===null||o===void 0||o.call(a,k?this.xScale.invert(this._xPx):void 0,p,g,this._mouseEvent),this._mouseEvent=void 0),Dt(this.g,c).style("opacity",k?1:0),!isFinite(h))return;this.line.attr("y1",0).attr("y2",this._height),Dt(this.line,c,ua).attr("x1",y).attr("x2",y);const w=As(a.getCircles)?a.getCircles(f,l.data,this.yScale,d):this.getCircleData(p,g),D=this.g.selectAll("circle").data(w,(O,L)=>{var C;return(C=O.id)!==null&&C!==void 0?C:L}),E=D.enter().append("circle").attr("class",ku).attr("r",0).attr("cx",y).attr("cy",O=>O.y).style("fill",O=>O.color).style("stroke",O=>O.strokeColor).style("stroke-width",O=>O.strokeWidth);Dt(E.merge(D),c,ua).attr("cx",y).attr("cy",O=>O.y).attr("r",4).style("opacity",O=>O.opacity).style("fill",O=>O.color).style("stroke",O=>O.strokeColor).style("stroke-width",O=>O.strokeWidth),D.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,i;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(i=(n=this.config).onCrosshairMove)===null||i===void 0||i.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:i,element:r}=this;!this.accessors.x&&(!((n=i.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[s,o]=wi(e,r);this._xPx=s,this._yPx=o,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,i,r){var s;const{config:o,datamodel:a}=this,l=(s=o.tooltip)!==null&&s!==void 0?s:this.tooltip;if(!l||!i)return;const[c,u]=i,h=o.template(e,n,a.data,r);if(l.config.followCursor=!0,!l.config.horizontalPlacement||l.config.horizontalPlacement===A.Auto){const f=l.isContainerBody()?c-this.container.node().getBoundingClientRect().left:c;l.overrideHorizontalPlacement(f>this._containerWidth/2?A.Left:A.Right)}h&&l.show(h,{x:c,y:u})}_hideTooltip(){var e;const{config:n}=this,i=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;i?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var i,r;const{config:s}=this;if(s.snapToData&&e){const o=(i=this.accessors.y)!==null&&i!==void 0?i:[],a=(r=this.accessors.yStacked)!==null&&r!==void 0?r:[],l=nt(e,this.accessors.baseline,n)||0,c=$g(e,n,...a).map((h,f)=>({y:this.yScale(h+l),opacity:Se(nt(e,a[f],f))?1:0,color:he(e,s.color,f),strokeColor:s.strokeColor?he(e,s.strokeColor,f):void 0,strokeWidth:s.strokeWidth?nt(e,s.strokeWidth,f):void 0})),u=o.map((h,f)=>{const d=nt(e,h,n);return{y:this.yScale(d),opacity:Se(d)?1:0,color:he(e,s.color,c.length+f),strokeColor:s.strokeColor?he(e,s.strokeColor,f):void 0,strokeWidth:s.strokeWidth?nt(e,s.strokeWidth,f):void 0}});return c.concat(u)}return[]}}Su.selectors=Qx;const Jx=Object.assign(Object.assign({},fr),{color:void 0,curveType:Q.MonotoneX,baseline:()=>0,opacity:1,cursor:null,line:!1,lineColor:void 0,lineWidth:2,lineDashArray:void 0,minHeight1Px:!1,minHeight:void 0,stackMinHeight:!1}),Tu=K`
|
|
221
|
-
label: area-component;
|
|
222
|
-
`,t1=Hn`
|
|
223
|
-
:root {
|
|
224
|
-
--vis-area-cursor: default;
|
|
225
|
-
--vis-area-fill-opacity: 1;
|
|
226
|
-
--vis-area-stroke-color: none;
|
|
227
|
-
--vis-area-stroke-width: 0px;
|
|
228
|
-
--vis-area-stroke-dasharray: none;
|
|
229
|
-
--vis-area-stroke-opacity: 1;
|
|
230
|
-
--vis-area-hover-fill-opacity: none;
|
|
231
|
-
--vis-area-hover-stroke-width: none;
|
|
232
|
-
|
|
233
|
-
/* Dark Theme */
|
|
234
|
-
--vis-dark-area-stroke-color: none;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
body.theme-dark ${`.${Tu}`} {
|
|
238
|
-
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
`,gi=K`
|
|
242
|
-
label: area;
|
|
243
|
-
cursor: var(--vis-area-cursor);
|
|
244
|
-
fill-opacity: var(--vis-area-fill-opacity);
|
|
245
|
-
stroke-width: var(--vis-area-stroke-width);
|
|
246
|
-
stroke-dasharray: var(--vis-area-stroke-dasharray);
|
|
247
|
-
stroke: var(--vis-area-stroke-color);
|
|
248
|
-
stroke-opacity: var(--vis-area-stroke-opacity);
|
|
249
|
-
|
|
250
|
-
&:hover {
|
|
251
|
-
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
252
|
-
stroke-width: var(--vis-area-hover-stroke-width);
|
|
253
|
-
}
|
|
254
|
-
`,hs=K`
|
|
255
|
-
label: areaLinePath;
|
|
256
|
-
fill: none;
|
|
257
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
258
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
259
|
-
`,e1=Object.freeze(Object.defineProperty({__proto__:null,area:gi,areaLinePath:hs,globalStyles:t1,root:Tu},Symbol.toStringTag,{value:"Module"}));class vr extends no{constructor(e){super(),this._defaultConfig=Jx,this.config=this._defaultConfig,this.stacked=!0,this.events={[vr.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}get bleed(){const{config:{line:e,lineWidth:n}}=this;if(!e)return{top:0,bottom:0,left:0,right:0};const i=this.yScale.domain(),s=(this.yScale.range()[0]>this.yScale.range()[1]?Me.North:Me.South)===Me.South,o=n>3,a=n>=10;return{top:!a&&(!s&&i[1]===0||s&&i[0]===0)?0:n/2,bottom:!a&&(!s&&i[0]===0||s&&i[1]===0)?0:n/2,left:o?n/2:0,right:o?n/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=Se(e)?e:n.duration,s=Za[n.curveType];this._areaGen=zy().x(m=>m.x).y0(m=>m.y0).y1(m=>m.y1).curve(s);const o=De(n.y)?n.y:[n.y],a=i.map((m,v)=>this.xScale(nt(m,n.x,v))),l=Fg(i,n.baseline,o,this._prevNegative);this._prevNegative=l.map(m=>!!m.isMostlyNegative);const c=[],u=l.map(m=>m.map((v,y)=>{var _,b;const k=a[y],x=this.yScale(v[0]),w=this.yScale(v[1]),D=w>x,E=n.stackMinHeight&&c[y]||0,O=D?x+E:x-E,L=D?w+E:w-E;let C=0;return(n.minHeight||n.minHeight1Px)&&Math.abs(L-O)<((_=n.minHeight)!==null&&_!==void 0?_:1)&&(C=((b=n.minHeight)!==null&&b!==void 0?b:1)-Math.abs(L-O),n.stackMinHeight&&(c[y]=E+C)),{x:k,y0:O,y1:D?L+C:L-C}})),h=u.length-1,f=[...u].reverse(),d=this.g.selectAll(`.${gi}`).data(f),p=d.enter().append("path").attr("class",gi).attr("d",m=>this._areaGen(m)||this._emptyPath()).style("opacity",0).style("fill",(m,v)=>he(i,n.color,h-v)),g=Dt(p.merge(d),r).style("opacity",(m,v)=>m.some(_=>_.y0-_.y1!==0)?nt(i,n.opacity,h-v):0).style("fill",(m,v)=>he(i,n.color,h-v)).style("cursor",(m,v)=>Vr(i,n.cursor,h-v));r?g.attrTween("d",(v,y,_)=>{const b=$t(_[y]).attr("d"),k=this._areaGen(v)||this._emptyPath();return ja(b,k)}):g.attr("d",m=>this._areaGen(m)||this._emptyPath()),Dt(d.exit(),r).style("opacity",0).remove(),n.line&&this._renderLines(r,u)}_renderLines(e,n){var i;const{config:r,datamodel:{data:s}}=this,o=n.length-1,a=[...n].reverse(),l=(i=r.lineColor)!==null&&i!==void 0?i:r.color,c=this.g.selectAll(`.${hs}`).data(a),u=this.g.selectAll(`.${gi}`).nodes(),h=c.enter().insert("path",(p,g)=>u[g+1]).attr("class",hs).attr("stroke",(p,g)=>he(s,l,o-g)).attr("stroke-width",r.lineWidth).attr("stroke-opacity",0),f=Dt(h.merge(c),e).attr("stroke",(p,g)=>he(s,l,o-g)).attr("stroke-width",r.lineWidth).attr("stroke-opacity",1).attr("cursor",(p,g)=>Vr(s,r.cursor,o-g)).style("stroke-dasharray",(p,g)=>{var m,v;return(v=(m=Ms(s,r.lineDashArray,g))===null||m===void 0?void 0:m.join(" "))!==null&&v!==void 0?v:null}),d=Za[r.curveType];this._lineGen=nu().x(p=>p.x).y(p=>p.y1).curve(d),e?f.attrTween("d",(g,m,v)=>{const y=$t(v[m]).attr("d")||this._emptyLinePath(),_=this._lineGen(g)||this._emptyLinePath();return ja(y,_)}):f.attr("d",p=>this._lineGen(p)||this._emptyLinePath()),Dt(c.exit(),e).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=De(n.y)?n.y:[n.y],s=this.xScale.domain(),o=e?zl(i.data,s,n.x,!0):i.data;return Dg(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}_emptyLinePath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}}vr.selectors=e1;const Cu=Symbol("componentAccessorKey"),Au=Symbol("tooltipAccessorKey"),Mu=Symbol("crosshairAccessorKey"),Ou=Symbol("axisAccessorKey"),n1=Symbol("annotationsAccessorKey");function _r(t,e){return $e(t,e)}function qn(t){const e=Yi(),n=e.attrs;return F(()=>{const i={},r=e?.vnode.props??{};return Object.keys(r).forEach(s=>{i[mi(s)]=t[mi(s)]}),{...i,...n}})}const Y1=P({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=ds(n),r=qn(n),s=Y(),o=sl({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=Y();return pt(i,()=>{s.value&&s.value.setData(i.value,!0)}),de(()=>{var l;o.components.map(c=>c.config),(l=s.value)==null||l.updateContainer({...yr(r.value),...yr(o)})}),_e(()=>{a.value&&(s.value=new Dy(a.value,{...yr(o)},i.value))}),on(()=>{var l;return(l=s.value)==null?void 0:l.destroy()}),un(Cu,{data:i,update:l=>o.components=[...o.components,l],destroy:()=>{var l;return o.components=(l=o.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),un(Ou,{data:i,update:l=>o[`${l.config.type}Axis`]=l,destroy:l=>{o[`${l}Axis`]=void 0}}),un(Mu,{data:i,update:l=>o.crosshair=l,destroy:()=>{o.crosshair=void 0}}),un(Au,{data:i,update:l=>o.tooltip=l,destroy:()=>{o.tooltip=void 0}}),un(n1,{data:i,update:l=>o.annotations=l,destroy:()=>{o.annotations=void 0}}),e({component:s}),(l,c)=>($(),G("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[B(l.$slots,"default")],512))}}),i1={"data-vis-component":""},G1=P({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},baseline:{type:[Function,Number,null]},opacity:{type:[Function,Number,null]},cursor:{type:[Function,String,null]},minHeight1Px:{type:Boolean},minHeight:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Zi(Cu),i=t,r=F(()=>n.data.value??i.data),s=qn(i),o=Y();return _e(()=>{pe(()=>{var a;o.value=new vr(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),on(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),pt(s,(a,l)=>{var c;_r(a,l)||(c=o.value)==null||c.setConfig(s.value)}),pt(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>($(),G("div",i1))}}),r1={"data-vis-axis":""},X1=P({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Zi(Ou),i=t,r=F(()=>n.data.value??i.data),s=qn(i),o=Y();return _e(()=>{pe(()=>{var a;o.value=new bu(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),on(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy(i.type)}),pt(s,(a,l)=>{var c;_r(a,l)||(c=o.value)==null||c.setConfig(s.value)}),pt(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>($(),G("div",r1))}}),s1={"data-vis-crosshair":""},j1=P({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=Zi(Mu),i=t,r=F(()=>n.data.value??i.data),s=qn(i),o=Y();return _e(()=>{pe(()=>{var a;o.value=new Su(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),on(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),pt(s,(a,l)=>{var c;_r(a,l)||(c=o.value)==null||c.setConfig(s.value)}),pt(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>($(),G("div",s1))}}),o1={"data-vis-tooltip":""},Z1=P({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=Zi(Au),i=qn(t),r=Y();return _e(()=>{pe(()=>{r.value=new jc(i.value),n.update(r.value)})}),on(()=>{var s;(s=r.value)==null||s.destroy(),n.destroy()}),pt(i,(s,o)=>{var a;_r(s,o)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(s,o)=>($(),G("div",o1))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-flow-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const a1={light:"",dark:".dark"},[l1,c1]=Xi("Chart"),u1=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}),h1=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),f1=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}),d1=new Intl.DateTimeFormat("en-CA",{day:"2-digit",month:"2-digit",year:"numeric"}),Eu=new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"short",timeZone:"UTC",year:"numeric"});function Re(t){return typeof t=="number"&&Number.isFinite(t)?t:0}function p1(t){return Math.round(t*1e6)/1e6}function K1(t){return Array.from(new Set(t))}function Q1(t){return u1.format(Re(t))}function J1(t){return h1.format(Re(t))}function g1(t){return f1.format(Re(t))}function tb(t){return Eu.format(new Date(t))}function eb(t,e){const n=Re(t),i=Re(e);if(i===0)return{label:n>0?"+100%":"0%",tone:n>0?"up":"neutral"};const r=(n-i)/i;return{label:Du(r),tone:$u(r)}}function nb(t,e,n){const i=Math.max(Re(t),0),r=Math.max(Re(e),0);if(r===0)return i===0?{trend:"0.0%",trendTone:"neutral"}:{trend:`+${n(i)}`,trendTone:"up"};const s=(i-r)/r;return{trend:Du(s),trendTone:$u(s)}}function m1(t){const e=d1.formatToParts(t),n=e.find(s=>s.type==="year")?.value??"0000",i=e.find(s=>s.type==="month")?.value??"01",r=e.find(s=>s.type==="day")?.value??"01";return`${n}-${i}-${r}`}function v1(t){const e=new Date(t);return Number.isNaN(e.getTime())?t:m1(e)}function _1(t,e=t){const[n,i,r]=t.split("-").map(s=>Number.parseInt(s,10));return!n||!i||!r?e:Eu.format(new Date(Date.UTC(n,i-1,r)))}function ib(t){const e=new Map;for(const n of t){const i=v1(n.date),r=e.get(i)??{cachedInputTokens:0,costUSD:0,date:_1(i,n.date),inputTokens:0,models:new Map,outputTokens:0,reasoningOutputTokens:0,totalTokens:0};r.cachedInputTokens+=n.cachedInputTokens,r.costUSD+=n.costUSD,r.inputTokens+=n.inputTokens,r.outputTokens+=n.outputTokens,r.reasoningOutputTokens+=n.reasoningOutputTokens,r.totalTokens+=n.totalTokens;for(const[s,o]of Object.entries(n.models)){const a=r.models.get(s)??y1();a.cachedInputTokens+=o.cachedInputTokens,a.inputTokens+=o.inputTokens,a.isFallback=a.isFallback||o.isFallback,a.outputTokens+=o.outputTokens,a.reasoningOutputTokens+=o.reasoningOutputTokens,a.totalTokens+=o.totalTokens,r.models.set(s,a)}e.set(i,r)}return Array.from(e.entries()).sort((n,i)=>i[0].localeCompare(n[0])).map(([,n])=>({cachedInputTokens:n.cachedInputTokens,costUSD:p1(n.costUSD),date:n.date,inputTokens:n.inputTokens,models:Object.fromEntries(n.models.entries()),outputTokens:n.outputTokens,reasoningOutputTokens:n.reasoningOutputTokens,totalTokens:n.totalTokens}))}function Du(t){return`${t>0?"+":""}${g1(t)}`}function $u(t){return t>0?"up":t<0?"down":"neutral"}function y1(){return{cachedInputTokens:0,inputTokens:0,isFallback:!1,outputTokens:0,reasoningOutputTokens:0,totalTokens:0}}function rb(t,e,n){return Math.min(Math.max(t,e),n)}function sb(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const x1={"data-slot":"table-container",class:"relative w-full overflow-auto"},ob=P({__name:"Table",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",x1,[Et("table",{"data-slot":"table",class:it(T(ht)("w-full caption-bottom text-sm",e.class))},[B(n.$slots,"default")],2)]))}}),ab=P({__name:"TableBody",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("tbody",{"data-slot":"table-body",class:it(T(ht)("[&_tr:last-child]:border-0",e.class))},[B(n.$slots,"default")],2))}}),lb=P({__name:"TableCell",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("td",{"data-slot":"table-cell",class:it(T(ht)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e.class))},[B(n.$slots,"default")],2))}}),cb=P({__name:"TableRow",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("tr",{"data-slot":"table-row",class:it(T(ht)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e.class))},[B(n.$slots,"default")],2))}}),ub=P({__name:"TableHead",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("th",{"data-slot":"table-head",class:it(T(ht)("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e.class))},[B(n.$slots,"default")],2))}}),hb=P({__name:"TableHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("thead",{"data-slot":"table-header",class:it(T(ht)("[&_tr]:border-b",e.class))},[B(n.$slots,"default")],2))}}),b1={class:"mt-4 flex flex-col gap-3 border-t pt-4 sm:flex-row sm:items-center sm:justify-between"},w1={class:"text-sm text-muted-foreground"},k1={class:"flex items-center justify-end gap-2"},S1={class:"flex items-center gap-1"},T1=P({name:"UsageAnalyticsPaginationFooter",__name:"PaginationFooter",props:{page:{},pageCount:{},pageSize:{},total:{}},emits:["update:page"],setup(t,{emit:e}){const n=t,i=e,r=F(()=>{const o=Math.max(1,n.page-2),a=Math.min(n.pageCount,o+4),l=Math.max(1,a-4);return Array.from({length:a-l+1},(c,u)=>l+u)}),s=F(()=>{if(n.total===0)return"No records";const o=(n.page-1)*n.pageSize+1,a=Math.min(n.page*n.pageSize,n.total);return`${o}-${a} of ${n.total}`});return(o,a)=>{const l=hh;return $(),G("div",b1,[Et("p",w1,Jt(T(s)),1),Et("div",k1,[lt(l,{disabled:t.page<=1,size:"sm",variant:"outline",onClick:a[0]||(a[0]=c=>i("update:page",t.page-1))},{default:H(()=>[...a[2]||(a[2]=[qe(" Previous ",-1)])]),_:1},8,["disabled"]),Et("div",S1,[($(!0),G(al,null,ll(T(r),c=>($(),Z(l,{key:c,variant:c===t.page?"default":"ghost",class:"tabular-nums",size:"icon-sm",onClick:u=>i("update:page",c)},{default:H(()=>[qe(Jt(c),1)]),_:2},1032,["variant","onClick"]))),128))]),lt(l,{disabled:t.page>=t.pageCount,size:"sm",variant:"outline",onClick:a[1]||(a[1]=c=>i("update:page",t.page+1))},{default:H(()=>[...a[3]||(a[3]=[qe(" Next ",-1)])]),_:1},8,["disabled"])])])}}}),fb=Object.assign(T1,{__name:"UsageAnalyticsPaginationFooter"});(function(){function t(){}return t.AddUnsigned=function(e,n){var i,r,s,o,a;return s=e&2147483648,o=n&2147483648,i=e&1073741824,r=n&1073741824,a=(e&1073741823)+(n&1073741823),i&r?a^2147483648^s^o:i|r?a&1073741824?a^3221225472^s^o:a^1073741824^s^o:a^s^o},t.FF=function(e,n,i,r,s,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.F(n,i,r),s),a)),this.AddUnsigned(this.RotateLeft(e,o),n)},t.GG=function(e,n,i,r,s,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.G(n,i,r),s),a)),this.AddUnsigned(this.RotateLeft(e,o),n)},t.HH=function(e,n,i,r,s,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.H(n,i,r),s),a)),this.AddUnsigned(this.RotateLeft(e,o),n)},t.II=function(e,n,i,r,s,o,a){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.I(n,i,r),s),a)),this.AddUnsigned(this.RotateLeft(e,o),n)},t.ConvertToWordArray=function(e){for(var n,i=e.length,r=i+8,s=(r-r%64)/64,o=(s+1)*16,a=Array(o-1),l=0,c=0;c<i;)n=(c-c%4)/4,l=c%4*8,a[n]=a[n]|e.charCodeAt(c)<<l,c++;return n=(c-c%4)/4,l=c%4*8,a[n]=a[n]|128<<l,a[o-2]=i<<3,a[o-1]=i>>>29,a},t.WordToHex=function(e){var n="",i="",r,s;for(s=0;s<=3;s++)r=e>>>s*8&255,i="0"+r.toString(16),n=n+i.substr(i.length-2,2);return n},t.Utf8Encode=function(e){var n="",i;e=e.replace(/\r\n/g,`
|
|
260
|
-
`);for(var r=0;r<e.length;r++)i=e.charCodeAt(r),i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128));return n},t.init=function(e){var n;for(typeof e!="string"&&(e=JSON.stringify(e)),this._string=this.Utf8Encode(e),this.x=this.ConvertToWordArray(this._string),this.a=1732584193,this.b=4023233417,this.c=2562383102,this.d=271733878,this.k=0;this.k<this.x.length;this.k+=16)this.AA=this.a,this.BB=this.b,this.CC=this.c,this.DD=this.d,this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k],this.S11,3614090360),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+1],this.S12,3905402710),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S13,606105819),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+3],this.S14,3250441966),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S11,4118548399),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+5],this.S12,1200080426),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S13,2821735955),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+7],this.S14,4249261313),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S11,1770035416),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+9],this.S12,2336552879),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S13,4294925233),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+11],this.S14,2304563134),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S11,1804603682),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+13],this.S12,4254626195),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S13,2792965006),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+15],this.S14,1236535329),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S21,4129170786),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+6],this.S22,3225465664),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S23,643717713),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k],this.S24,3921069994),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S21,3593408605),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+10],this.S22,38016083),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S23,3634488961),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+4],this.S24,3889429448),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S21,568446438),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+14],this.S22,3275163606),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S23,4107603335),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+8],this.S24,1163531501),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S21,2850285829),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+2],this.S22,4243563512),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S23,1735328473),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+12],this.S24,2368359562),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S31,4294588738),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+8],this.S32,2272392833),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S33,1839030562),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+14],this.S34,4259657740),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S31,2763975236),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+4],this.S32,1272893353),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S33,4139469664),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+10],this.S34,3200236656),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S31,681279174),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k],this.S32,3936430074),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S33,3572445317),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+6],this.S34,76029189),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S31,3654602809),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+12],this.S32,3873151461),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S33,530742520),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+2],this.S34,3299628645),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k],this.S41,4096336452),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+7],this.S42,1126891415),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S43,2878612391),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+5],this.S44,4237533241),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S41,1700485571),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+3],this.S42,2399980690),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S43,4293915773),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+1],this.S44,2240044497),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S41,1873313359),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+15],this.S42,4264355552),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S43,2734768916),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+13],this.S44,1309151649),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S41,4149444226),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+11],this.S42,3174756917),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S43,718787259),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+9],this.S44,3951481745),this.a=this.AddUnsigned(this.a,this.AA),this.b=this.AddUnsigned(this.b,this.BB),this.c=this.AddUnsigned(this.c,this.CC),this.d=this.AddUnsigned(this.d,this.DD);return n=this.WordToHex(this.a)+this.WordToHex(this.b)+this.WordToHex(this.c)+this.WordToHex(this.d),n.toLowerCase()},t.x=Array(),t.S11=7,t.S12=12,t.S13=17,t.S14=22,t.S21=5,t.S22=9,t.S23=14,t.S24=20,t.S31=4,t.S32=11,t.S33=16,t.S34=23,t.S41=6,t.S42=10,t.S43=15,t.S44=21,t.RotateLeft=function(e,n){return e<<n|e>>>32-n},t.F=function(e,n,i){return e&n|~e&i},t.G=function(e,n,i){return e&i|n&~i},t.H=function(e,n,i){return e^n^i},t.I=function(e,n,i){return n^(e|~i)},t})();function db(t){return t.toLocaleString("en-US")}const C1={class:"grid grid-cols-1 gap-4 md:grid-cols-12"},A1=P({name:"DashboardPanelGrid",__name:"PanelGrid",setup(t){return(e,n)=>($(),G("div",C1,[B(e.$slots,"default")]))}}),pb=Object.assign(A1,{__name:"DashboardPanelGrid"}),M1={class:"grow container mx-auto space-y-8"},O1=P({name:"DashboardPage",__name:"Page",setup(t){return(e,n)=>($(),G("div",M1,[B(e.$slots,"default")]))}}),gb=Object.assign(O1,{__name:"DashboardPage"});export{Ia as $,j1 as A,lb as B,G1 as C,Eh as D,ob as E,fb as F,ib as G,gb as H,pb as I,F1 as J,Td as K,Od as L,Xl as M,On as N,Qe as O,Bh as P,Dt as Q,Kc as R,Y1 as S,$h as T,io as U,Ph as V,L1 as W,z1 as X,at as Y,Ha as Z,P1 as _,Gf as a,U1 as a0,W1 as a1,H1 as a2,N1 as a3,B1 as a4,I1 as a5,V1 as a6,q1 as a7,Qc as a8,fr as a9,La as aa,K as ab,Hn as ac,no as ad,De as ae,nt as af,Eo as ag,Oo as ah,Se as ai,Fg as aj,Vr as ak,he as al,R1 as am,Dg as an,wr as ao,ce as ap,Yc as aq,cn as ar,$y as as,Fy as at,Bx as au,qn as av,Cu as aw,Au as ax,n1 as ay,_r as az,ms as b,Sh as c,fl as d,Ih as e,X1 as f,Q1 as g,ul as h,fh as i,sb as j,rb as k,db as l,J1 as m,K1 as n,nb as o,eb as p,g1 as q,_1 as r,m1 as s,tb as t,hl as u,hb as v,cb as w,ub as x,ab as y,Z1 as z};
|