@mesh.ai/rabbit 0.0.64 → 0.0.66

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.
@@ -1,12 +1,12 @@
1
- (function(ee,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],_):(ee=typeof globalThis<"u"?globalThis:ee||self,_((ee["@mesh"]=ee["@mesh"]||{},ee["@mesh"]["ai/rabbit"]={}),ee["react/jsx-runtime"],ee.React,ee.ReactDOM))})(this,function(ee,_,c,Cn){"use strict";function lp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ge=lp(c),Cx=lp(Cn),gj="";function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Ex(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Na(...e){return t=>e.forEach(n=>Ex(n,t))}function ke(...e){return c.useCallback(Na(...e),e)}function vt(e,t=[]){let n=[];function r(a,i){const l=c.createContext(i),u=n.length;n=[...n,i];function s(f){const{scope:p,children:m,...h}=f,v=(p==null?void 0:p[e][u])||l,w=c.useMemo(()=>h,Object.values(h));return c.createElement(v.Provider,{value:w},m)}function d(f,p){const m=(p==null?void 0:p[e][u])||l,h=c.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return s.displayName=a+"Provider",[s,d]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(l){const u=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return o.scopeName=e,[r,Tx(o,...t)]}function Tx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:u,scopeName:s})=>{const f=u(a)[`__scope${s}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ct(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _t({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=kx({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=ct(n),u=c.useCallback(s=>{if(a){const f=typeof s=="function"?s(e):s;f!==e&&l(f)}else o(s)},[a,e,o,l]);return[i,u]}function kx({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=ct(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function gu(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const gt=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function yu(e){const[t,n]=c.useState(void 0);return gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const u=a.borderBoxSize,s=Array.isArray(u)?u[0]:u;i=s.inlineSize,l=s.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Nx(e,t){return c.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const sn=e=>{const{present:t,children:n}=e,r=Dx(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ke(r.ref,o.ref);return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};sn.displayName="Presence";function Dx(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[l,u]=Nx(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const s=Da(r.current);a.current=l==="mounted"?s:"none"},[l]),gt(()=>{const s=r.current,d=o.current;if(d!==e){const p=a.current,m=Da(s);e?u("MOUNT"):m==="none"||(s==null?void 0:s.display)==="none"?u("UNMOUNT"):u(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),gt(()=>{if(t){const s=f=>{const m=Da(r.current).includes(f.animationName);f.target===t&&m&&Cn.flushSync(()=>u("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Da(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(s=>{s&&(r.current=getComputedStyle(s)),n(s)},[])}}function Da(e){return(e==null?void 0:e.animationName)||"none"}const cn=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(Ax);if(a){const i=a.props.children,l=o.map(u=>u===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:u);return c.createElement(bu,X({},r,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,l):null)}return c.createElement(bu,X({},r,{ref:t}),n)});cn.displayName="Slot";const bu=c.forwardRef((e,t)=>{const{children:n,...r}=e;return c.isValidElement(n)?c.cloneElement(n,{...Ix(r,n.props),ref:t?Na(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});bu.displayName="SlotClone";const up=({children:e})=>c.createElement(c.Fragment,null,e);function Ax(e){return c.isValidElement(e)&&e.type===up}function Ix(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const we=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?cn:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,X({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sp(e,t){e&&Cn.flushSync(()=>e.dispatchEvent(t))}const cp="Checkbox",[Lx,bj]=vt(cp),[Fx,jx]=Lx(cp),Wx=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:u="on",onCheckedChange:s,...d}=e,[f,p]=c.useState(null),m=ke(t,$=>p($)),h=c.useRef(!1),v=f?!!f.closest("form"):!0,[w=!1,g]=_t({prop:o,defaultProp:a,onChange:s}),y=c.useRef(w);return c.useEffect(()=>{const $=f==null?void 0:f.form;if($){const S=()=>g(y.current);return $.addEventListener("reset",S),()=>$.removeEventListener("reset",S)}},[f,g]),c.createElement(Fx,{scope:n,state:w,disabled:l},c.createElement(we.button,X({type:"button",role:"checkbox","aria-checked":Gn(w)?"mixed":w,"aria-required":i,"data-state":fp(w),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:m,onKeyDown:de(e.onKeyDown,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:de(e.onClick,$=>{g(S=>Gn(S)?!0:!S),v&&(h.current=$.isPropagationStopped(),h.current||$.stopPropagation())})})),v&&c.createElement(qx,{control:f,bubbles:!h.current,name:r,value:u,checked:w,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),zx="CheckboxIndicator",Bx=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=jx(zx,n);return c.createElement(sn,{present:r||Gn(a.state)||a.state===!0},c.createElement(we.span,X({"data-state":fp(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),qx=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=gu(n),l=yu(t);return c.useEffect(()=>{const u=a.current,s=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(s,"checked").set;if(i!==n&&f){const p=new Event("click",{bubbles:r});u.indeterminate=Gn(n),f.call(u,Gn(n)?!1:n),u.dispatchEvent(p)}},[i,n,r]),c.createElement("input",X({type:"checkbox","aria-hidden":!0,defaultChecked:Gn(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Gn(e){return e==="indeterminate"}function fp(e){return Gn(e)?"indeterminate":e?"checked":"unchecked"}const dp=Wx,Hx=Bx;var Ux={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Vx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yn=(e,t)=>{const n=c.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:l,...u},s)=>c.createElement("svg",{ref:s,...Ux,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:`lucide lucide-${Vx(e)}`,...u},[...t.map(([d,f])=>c.createElement(d,f)),...(Array.isArray(l)?l:[l])||[]]));return n.displayName=`${e}`,n},Aa=Yn("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),wu=Yn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Gx=Yn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Yx=Yn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Kx=Yn("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]),Xx=Yn("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Rx=Yn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function pp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=pp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function hp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=pp(e))&&(r&&(r+=" "),r+=t);return r}function Zx(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=mp(t))&&(r&&(r+=" "),r+=n);return r}function mp(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=mp(e[r]))&&(n&&(n+=" "),n+=t);return n}var xu="-";function Qx(e){var t=e$(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(l){var u=l.split(xu);return u[0]===""&&u.length!==1&&u.shift(),vp(u,t)||Jx(l)}function i(l,u){var s=n[l]||[];return u&&o[l]?[].concat(s,o[l]):s}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function vp(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?vp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(xu);return(i=t.validators.find(function(l){var u=l.validator;return u(a)}))==null?void 0:i.classGroupId}}var gp=/^\[(.+)\]$/;function Jx(e){if(gp.test(e)){var t=gp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function e$(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=n$(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],l=a[1];$u(l,r,i,t)}),r}function $u(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:yp(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(t$(o)){$u(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var l=i[0],u=i[1];$u(u,yp(t,l),n,r)})})}function yp(e,t){var n=e;return t.split(xu).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function t$(e){return e.isThemeGetter}function n$(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],s=l[1];return[t+u,s]})):i});return[r,a]}):e}function r$(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set:function(i,l){n.has(i)?n.set(i,l):o(i,l)}}}var bp="!";function o$(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var l=[],u=0,s=0,d,f=0;f<i.length;f++){var p=i[f];if(u===0){if(p===r&&(n||i.slice(f,f+o)===t)){l.push(i.slice(s,f)),s=f+o;continue}if(p==="/"){d=f;continue}}p==="["?u++:p==="]"&&u--}var m=l.length===0?i:i.substring(s),h=m.startsWith(bp),v=h?m.substring(1):m,w=d&&d>s?d-s:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:w}}}function a$(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function i$(e){return{cache:r$(e.cacheSize),splitModifiers:o$(e),...Qx(e)}}var l$=/\s+/;function u$(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(l$).map(function(i){var l=n(i),u=l.modifiers,s=l.hasImportantModifier,d=l.baseClassName,f=l.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var h=a$(u).join(":"),v=s?h+bp:h;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,s=i.hasPostfixModifier,d=l+u;return a.has(d)?!1:(a.add(d),o(u,s).forEach(function(f){return a.add(l+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function s$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=l;function l(s){var d=t[0],f=t.slice(1),p=f.reduce(function(m,h){return h(m)},d());return r=i$(p),o=r.cache.get,a=r.cache.set,i=u,u(s)}function u(s){var d=o(s);if(d)return d;var f=u$(s,r);return a(s,f),f}return function(){return i(Zx.apply(null,arguments))}}function Fe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var wp=/^\[(?:([a-z-]+):)?(.+)\]$/i,c$=/^\d+\/\d+$/,f$=new Set(["px","full","screen"]),d$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h$=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Dt(e){return Kn(e)||f$.has(e)||c$.test(e)||_u(e)}function _u(e){return Xn(e,"length",w$)}function m$(e){return Xn(e,"size",xp)}function v$(e){return Xn(e,"position",xp)}function g$(e){return Xn(e,"url",x$)}function Ia(e){return Xn(e,"number",Kn)}function Kn(e){return!Number.isNaN(Number(e))}function y$(e){return e.endsWith("%")&&Kn(e.slice(0,-1))}function Oo(e){return $p(e)||Xn(e,"number",$p)}function Pe(e){return wp.test(e)}function Mo(){return!0}function En(e){return d$.test(e)}function b$(e){return Xn(e,"",$$)}function Xn(e,t,n){var r=wp.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function w$(e){return p$.test(e)}function xp(){return!1}function x$(e){return e.startsWith("url(")}function $p(e){return Number.isInteger(Number(e))}function $$(e){return h$.test(e)}function _$(){var e=Fe("colors"),t=Fe("spacing"),n=Fe("blur"),r=Fe("brightness"),o=Fe("borderColor"),a=Fe("borderRadius"),i=Fe("borderSpacing"),l=Fe("borderWidth"),u=Fe("contrast"),s=Fe("grayscale"),d=Fe("hueRotate"),f=Fe("invert"),p=Fe("gap"),m=Fe("gradientColorStops"),h=Fe("gradientColorStopPositions"),v=Fe("inset"),w=Fe("margin"),g=Fe("opacity"),y=Fe("padding"),$=Fe("saturate"),S=Fe("scale"),x=Fe("sepia"),C=Fe("skew"),E=Fe("space"),M=Fe("translate"),T=function(){return["auto","contain","none"]},j=function(){return["auto","hidden","clip","visible","scroll"]},I=function(){return["auto",Pe,t]},B=function(){return[Pe,t]},Y=function(){return["",Dt]},q=function(){return["auto",Kn,Pe]},P=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},L=function(){return["solid","dashed","dotted","double","none"]},z=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},N=function(){return["","0",Pe]},D=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[Kn,Ia]},te=function(){return[Kn,Pe]};return{cacheSize:500,theme:{colors:[Mo],spacing:[Dt],blur:["none","",En,Pe],brightness:W(),borderColor:[e],borderRadius:["none","","full",En,Pe],borderSpacing:B(),borderWidth:Y(),contrast:W(),grayscale:N(),hueRotate:te(),invert:N(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[y$,_u],inset:I(),margin:I(),opacity:W(),padding:B(),saturate:W(),scale:W(),sepia:N(),skew:te(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(P(),[Pe])}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oo]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Oo]}],"grid-cols":[{"grid-cols":[Mo]}],"col-start-end":[{col:["auto",{span:["full",Oo]},Pe]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Mo]}],"row-start-end":[{row:["auto",{span:[Oo]},Pe]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Pe,t]}],"min-w":[{"min-w":["min","max","fit",Pe,Dt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[En]},En,Pe]}],h:[{h:[Pe,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Pe,Dt]}],"max-h":[{"max-h":[Pe,t,"min","max","fit"]}],"font-size":[{text:["base",En,_u]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ia]}],"font-family":[{font:[Mo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",Kn,Ia]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pe,Dt]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(L(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt]}],"underline-offset":[{"underline-offset":["auto",Pe,Dt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(P(),[v$])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",m$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},g$]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[].concat(L(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(L())}],"outline-offset":[{"outline-offset":[Pe,Dt]}],"outline-w":[{outline:[Dt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Dt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",En,b$]}],"shadow-color":[{shadow:[Mo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",En,Pe]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[$]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Oo,Pe]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Dt,Ia]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var P$=s$(_$);function be(...e){return P$(hp(e))}const _p=c.forwardRef(({className:e,...t},n)=>_.jsx("span",{className:"rabbit-ds",children:_.jsx(dp,{ref:n,className:be("h-4 w-4 shrink-0 rounded-sm border-2 border-[#104F95] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#104F95] data-[state=checked]:text-white",e,"rabbit-ds"),...t,children:_.jsx(Hx,{className:be("flex items-center justify-center text-current rabbit-ds"),children:_.jsx(Aa,{className:"h-3 w-3"})})})}));_p.displayName=dp.displayName;const Pp=_p,Sp=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,l]=_t({prop:n,onChange:o,defaultProp:r});return c.createElement(we.button,X({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:de(e.onClick,()=>{e.disabled||l(!i)})}))}),S$=Sp;function O$({icon:e,count:t,label:n,selected:r=!1,onSelectedChange:o}){return _.jsx("div",{className:"rabbit-ds h-7 flex-col w-auto p-0 rounded-full border-0 justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2",children:_.jsx(S$,{defaultPressed:r,asChild:!0,onPressedChange:o,className:be("px-4 py-1 rounded-full border flex-row justify-start items-center gap-2.5 flex","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:_.jsxs("div",{children:[e?_.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:e}):null,_.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[n?_.jsx("span",{children:n}):null," ",t?_.jsxs("span",{children:["(",t,")"]}):null]})]})})})}const Pu=c.forwardRef(({className:e,type:t,...n},r)=>_.jsxs("div",{className:"rabbit-ds relative font-sans",children:[t==="search"?_.jsx("div",{className:"absolute text-neutral-400 inset-y-0 left-0 mx-2 pointer-events-none w-5 h-5 my-auto p-0.5 justify-center items-center flex",children:_.jsx(Rx,{})}):null,_.jsx("input",{type:t,className:be("text-sm min-w-[224px] w-full h-10 px-3 py-2.5 bg-white rounded border border-neutral-400 gap-2.5 focus:outline-none hover:outline-none focus:border-sky-700 hover:border-sky-700 disabled:pointer-events-none disabled:bg-neutral-50 disabled:border-neutral-100 disable:text-neutral-400",e,t==="search"?"pl-8":""),ref:r,...n})]}));Pu.displayName="Input",Pu.defaultProps={className:""};const M$=Pu,Op="Progress",La=100,[C$,wj]=vt(Op),[E$,T$]=C$(Op),Mp=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=D$,...i}=e,l=Su(o)?o:La,u=Ep(r,l)?r:null,s=Fa(u)?a(u,l):void 0;return c.createElement(E$,{scope:n,value:u,max:l},c.createElement(we.div,X({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Fa(u)?u:void 0,"aria-valuetext":s,role:"progressbar","data-state":Cp(u,l),"data-value":u??void 0,"data-max":l},i,{ref:t})))});Mp.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Su(r)?new Error(A$(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=Su(e.max)?e.max:La;return r!=null&&!Ep(r,a)?new Error(I$(o,n)):null}};const k$="ProgressIndicator",N$=c.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=T$(k$,r);return c.createElement(we.div,X({"data-state":Cp(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function D$(e,t){return`${Math.round(e/t*100)}%`}function Cp(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Fa(e){return typeof e=="number"}function Su(e){return Fa(e)&&!isNaN(e)&&e>0}function Ep(e,t){return Fa(e)&&!isNaN(e)&&e<=t&&e>=0}function A$(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${La}\`.`}function I$(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ (function(K,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],y):(K=typeof globalThis<"u"?globalThis:K||self,y((K["@mesh"]=K["@mesh"]||{},K["@mesh"]["ai/rabbit"]={}),K["react/jsx-runtime"],K.React,K.ReactDOM))})(this,function(K,y,u,pn){"use strict";function od(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const be=od(u),rb=od(pn),d_="";function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}function ob(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function aa(...e){return t=>e.forEach(n=>ob(n,t))}function Oe(...e){return u.useCallback(aa(...e),e)}function ht(e,t=[]){let n=[];function r(a,i){const s=u.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:h,children:g,...p}=d,m=(h==null?void 0:h[e][l])||s,x=u.useMemo(()=>p,Object.values(p));return u.createElement(m.Provider,{value:x},g)}function f(d,h){const g=(h==null?void 0:h[e][l])||s,p=u.useContext(g);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,f]}const o=()=>{const a=n.map(i=>u.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ab(o,...t)]}function ab(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function wt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ib({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=lt(n),l=u.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function ib({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),a=lt(t);return u.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function ds(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const pt=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function fs(e){const[t,n]=u.useState(void 0);return pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function sb(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Xt=e=>{const{present:t,children:n}=e,r=lb(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=Oe(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Xt.displayName="Presence";function lb(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),a=u.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=ia(r.current);a.current=s==="mounted"?c:"none"},[s]),pt(()=>{const c=r.current,f=o.current;if(f!==e){const h=a.current,g=ia(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pt(()=>{if(t){const c=d=>{const g=ia(r.current).includes(d.animationName);d.target===t&&g&&pn.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(a.current=ia(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ia(e){return(e==null?void 0:e.animationName)||"none"}const Zt=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),a=o.find(cb);if(a){const i=a.props.children,s=o.map(l=>l===a?u.Children.count(i)>1?u.Children.only(null):u.isValidElement(i)?i.props.children:null:l);return u.createElement(hs,J({},r,{ref:t}),u.isValidElement(i)?u.cloneElement(i,void 0,s):null)}return u.createElement(hs,J({},r,{ref:t}),n)});Zt.displayName="Slot";const hs=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...ub(r,n.props),ref:t?aa(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});hs.displayName="SlotClone";const ad=({children:e})=>u.createElement(u.Fragment,null,e);function cb(e){return u.isValidElement(e)&&e.type===ad}function ub(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const we=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Zt:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,J({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function id(e,t){e&&pn.flushSync(()=>e.dispatchEvent(t))}const sd="Checkbox",[db,h_]=ht(sd),[fb,hb]=db(sd),pb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(!1),m=d?!!d.closest("form"):!0,[x=!1,b]=wt({prop:o,defaultProp:a,onChange:c}),v=u.useRef(x);return u.useEffect(()=>{const w=d==null?void 0:d.form;if(w){const E=()=>b(v.current);return w.addEventListener("reset",E),()=>w.removeEventListener("reset",E)}},[d,b]),u.createElement(fb,{scope:n,state:x,disabled:s},u.createElement(we.button,J({type:"button",role:"checkbox","aria-checked":Ln(x)?"mixed":x,"aria-required":i,"data-state":ld(x),"data-disabled":s?"":void 0,disabled:s,value:l},f,{ref:g,onKeyDown:pe(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:pe(e.onClick,w=>{b(E=>Ln(E)?!0:!E),m&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})),m&&u.createElement(vb,{control:d,bubbles:!p.current,name:r,value:l,checked:x,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),mb="CheckboxIndicator",gb=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=hb(mb,n);return u.createElement(Xt,{present:r||Ln(a.state)||a.state===!0},u.createElement(we.span,J({"data-state":ld(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),vb=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=u.useRef(null),i=ds(n),s=fs(t);return u.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const h=new Event("click",{bubbles:r});l.indeterminate=Ln(n),d.call(l,Ln(n)?!1:n),l.dispatchEvent(h)}},[i,n,r]),u.createElement("input",J({type:"checkbox","aria-hidden":!0,defaultChecked:Ln(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ln(e){return e==="indeterminate"}function ld(e){return Ln(e)?"indeterminate":e?"checked":"unchecked"}const cd=pb,bb=gb;var yb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const wb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fn=(e,t)=>{const n=u.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,children:s,...l},c)=>u.createElement("svg",{ref:c,...yb,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:`lucide lucide-${wb(e)}`,...l},[...t.map(([f,d])=>u.createElement(f,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},sa=Fn("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),ps=Fn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),xb=Fn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),$b=Fn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Sb=Fn("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]),Cb=Fn("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Eb=Fn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function ud(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ud(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ud(e))&&(r&&(r+=" "),r+=t);return r}function Tb(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=fd(t))&&(r&&(r+=" "),r+=n);return r}function fd(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=fd(e[r]))&&(n&&(n+=" "),n+=t);return n}var ms="-";function Mb(e){var t=kb(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(s){var l=s.split(ms);return l[0]===""&&l.length!==1&&l.shift(),hd(l,t)||Pb(s)}function i(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function hd(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?hd(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(ms);return(i=t.validators.find(function(s){var l=s.validator;return l(a)}))==null?void 0:i.classGroupId}}var pd=/^\[(.+)\]$/;function Pb(e){if(pd.test(e)){var t=pd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function kb(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Nb(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],s=a[1];gs(s,r,i,t)}),r}function gs(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:md(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Ob(o)){gs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var s=i[0],l=i[1];gs(l,md(t,s),n,r)})})}function md(e,t){var n=e;return t.split(ms).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ob(e){return e.isThemeGetter}function Nb(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):i});return[r,a]}):e}function _b(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var gd="!";function Db(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,f,d=0;d<i.length;d++){var h=i[d];if(l===0){if(h===r&&(n||i.slice(d,d+o)===t)){s.push(i.slice(c,d)),c=d+o;continue}if(h==="/"){f=d;continue}}h==="["?l++:h==="]"&&l--}var g=s.length===0?i:i.substring(c),p=g.startsWith(gd),m=p?g.substring(1):g,x=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:x}}}function Ab(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Ib(e){return{cache:_b(e.cacheSize),splitModifiers:Db(e),...Mb(e)}}var Lb=/\s+/;function Fb(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Lb).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,f=s.baseClassName,d=s.maybePostfixModifierPosition,h=r(d?f.substring(0,d):f),g=!!d;if(!h){if(!d)return{isTailwindClass:!1,originalClassName:i};if(h=r(f),!h)return{isTailwindClass:!1,originalClassName:i};g=!1}var p=Ab(l).join(":"),m=c?p+gd:p;return{isTailwindClass:!0,modifierId:m,classGroupId:h,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,f=s+l;return a.has(f)?!1:(a.add(f),o(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function jb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=s;function s(c){var f=t[0],d=t.slice(1),h=d.reduce(function(g,p){return p(g)},f());return r=Ib(h),o=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){var f=o(c);if(f)return f;var d=Fb(c,r);return a(c,d),d}return function(){return i(Tb.apply(null,arguments))}}function Le(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var vd=/^\[(?:([a-z-]+):)?(.+)\]$/i,zb=/^\d+\/\d+$/,Bb=new Set(["px","full","screen"]),Wb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hb=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Mt(e){return jn(e)||Bb.has(e)||zb.test(e)||vs(e)}function vs(e){return zn(e,"length",Xb)}function Gb(e){return zn(e,"size",bd)}function Ub(e){return zn(e,"position",bd)}function Yb(e){return zn(e,"url",Zb)}function la(e){return zn(e,"number",jn)}function jn(e){return!Number.isNaN(Number(e))}function qb(e){return e.endsWith("%")&&jn(e.slice(0,-1))}function oo(e){return yd(e)||zn(e,"number",yd)}function Ce(e){return vd.test(e)}function ao(){return!0}function mn(e){return Wb.test(e)}function Kb(e){return zn(e,"",Qb)}function zn(e,t,n){var r=vd.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function Xb(e){return Vb.test(e)}function bd(){return!1}function Zb(e){return e.startsWith("url(")}function yd(e){return Number.isInteger(Number(e))}function Qb(e){return Hb.test(e)}function Jb(){var e=Le("colors"),t=Le("spacing"),n=Le("blur"),r=Le("brightness"),o=Le("borderColor"),a=Le("borderRadius"),i=Le("borderSpacing"),s=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),f=Le("hueRotate"),d=Le("invert"),h=Le("gap"),g=Le("gradientColorStops"),p=Le("gradientColorStopPositions"),m=Le("inset"),x=Le("margin"),b=Le("opacity"),v=Le("padding"),w=Le("saturate"),E=Le("scale"),S=Le("sepia"),M=Le("skew"),N=Le("space"),T=Le("translate"),O=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},j=function(){return["auto",Ce,t]},H=function(){return[Ce,t]},G=function(){return["",Mt]},L=function(){return["auto",jn,Ce]},C=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},_=function(){return["solid","dashed","dotted","double","none"]},B=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},D=function(){return["","0",Ce]},A=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},W=function(){return[jn,la]},ne=function(){return[jn,Ce]};return{cacheSize:500,theme:{colors:[ao],spacing:[Mt],blur:["none","",mn,Ce],brightness:W(),borderColor:[e],borderRadius:["none","","full",mn,Ce],borderSpacing:H(),borderWidth:G(),contrast:W(),grayscale:D(),hueRotate:ne(),invert:D(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[qb,vs],inset:j(),margin:j(),opacity:W(),padding:H(),saturate:W(),scale:W(),sepia:D(),skew:ne(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(C(),[Ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oo]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",oo]}],"grid-cols":[{"grid-cols":[ao]}],"col-start-end":[{col:["auto",{span:["full",oo]},Ce]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[ao]}],"row-start-end":[{row:["auto",{span:[oo]},Ce]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Ce,t]}],"min-w":[{"min-w":["min","max","fit",Ce,Mt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[mn]},mn,Ce]}],h:[{h:[Ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Ce,Mt]}],"max-h":[{"max-h":[Ce,t,"min","max","fit"]}],"font-size":[{text:["base",mn,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",la]}],"font-family":[{font:[ao]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",jn,la]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,Mt]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(_(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Mt]}],"underline-offset":[{"underline-offset":["auto",Ce,Mt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(C(),[Ub])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(_(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:_()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(_())}],"outline-offset":[{"outline-offset":[Ce,Mt]}],"outline-w":[{outline:[Mt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Mt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mn,Kb]}],"shadow-color":[{shadow:[ao]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":B()}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mn,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[oo,Ce]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mt,la]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Rb=jb(Jb);function ge(...e){return Rb(dd(e))}const ey=e=>e.charAt(0).toUpperCase()+e.slice(1),wd=u.forwardRef(({className:e,...t},n)=>y.jsx("span",{className:"rabbit-ds",children:y.jsx(cd,{ref:n,className:ge("h-4 w-4 shrink-0 rounded-sm border-2 border-[#104F95] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#104F95] data-[state=checked]:text-white",e,"rabbit-ds"),...t,children:y.jsx(bb,{className:ge("flex items-center justify-center text-current rabbit-ds"),children:y.jsx(sa,{className:"h-3 w-3"})})})}));wd.displayName=cd.displayName;const xd=wd,$d=u.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=wt({prop:n,onChange:o,defaultProp:r});return u.createElement(we.button,J({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:pe(e.onClick,()=>{e.disabled||s(!i)})}))}),ty=$d;function ny({icon:e,count:t,label:n,selected:r=!1,onSelectedChange:o}){return y.jsx("div",{className:"rabbit-ds h-7 flex-col w-auto p-0 rounded-full border-0 justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2",children:y.jsx(ty,{defaultPressed:r,asChild:!0,onPressedChange:o,className:ge("px-4 py-1 rounded-full border flex-row justify-start items-center gap-2.5 flex","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:y.jsxs("div",{children:[e?y.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:e}):null,y.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[n?y.jsx("span",{children:n}):null," ",t?y.jsxs("span",{children:["(",t,")"]}):null]})]})})})}const bs=u.forwardRef(({className:e,type:t,...n},r)=>y.jsxs("div",{className:"rabbit-ds relative font-sans",children:[t==="search"?y.jsx("div",{className:"absolute text-neutral-400 inset-y-0 left-0 mx-2 pointer-events-none w-5 h-5 my-auto p-0.5 justify-center items-center flex",children:y.jsx(Eb,{})}):null,y.jsx("input",{type:t,className:ge("text-sm min-w-[224px] w-full h-10 px-3 py-2.5 bg-white rounded border border-neutral-400 gap-2.5 focus:outline-none hover:outline-none focus:border-sky-700 hover:border-sky-700 disabled:pointer-events-none disabled:bg-neutral-50 disabled:border-neutral-100 disable:text-neutral-400",e,t==="search"?"pl-8":""),ref:r,...n})]}));bs.displayName="Input",bs.defaultProps={className:""};const ry=bs,Sd="Progress",ca=100,[oy,p_]=ht(Sd),[ay,iy]=oy(Sd),Cd=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:a=cy,...i}=e,s=ys(o)?o:ca,l=Td(r,s)?r:null,c=ua(l)?a(l,s):void 0;return u.createElement(ay,{scope:n,value:l,max:s},u.createElement(we.div,J({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":ua(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Ed(l,s),"data-value":l??void 0,"data-max":s},i,{ref:t})))});Cd.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!ys(r)?new Error(uy(o,n)):null},value(e,t,n){const r=e[t],o=String(r),a=ys(e.max)?e.max:ca;return r!=null&&!Td(r,a)?new Error(dy(o,n)):null}};const sy="ProgressIndicator",ly=u.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...o}=e,a=iy(sy,r);return u.createElement(we.div,J({"data-state":Ed(a.value,a.max),"data-value":(n=a.value)!==null&&n!==void 0?n:void 0,"data-max":a.max},o,{ref:t}))});function cy(e,t){return`${Math.round(e/t*100)}%`}function Ed(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ua(e){return typeof e=="number"}function ys(e){return ua(e)&&!isNaN(e)&&e>0}function Td(e,t){return ua(e)&&!isNaN(e)&&e<=t&&e>=0}function uy(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ca}\`.`}function dy(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
- - less than the value passed to \`max\` (or ${La} if no \`max\` prop is set)
3
+ - less than the value passed to \`max\` (or ${ca} if no \`max\` prop is set)
4
4
  - \`null\` if the progress is indeterminate.
5
5
 
6
- Defaulting to \`null\`.`}const L$=Mp,F$=N$;var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ou(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ja={},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.defaultOptions=void 0,Wa.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getLocales=Xt.getFractionDigits=Xt.roundTo=Xt.parseValue=void 0;function j$(e){const t=parseFloat(e==null?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t}Xt.parseValue=j$;function W$(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))}Xt.roundTo=W$;function z$(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0}Xt.getFractionDigits=z$;function B$(){var e;return typeof navigator>"u"?[]:Array.from((e=navigator.languages)!==null&&e!==void 0?e:[])}Xt.getLocales=B$,Object.defineProperty(ja,"__esModule",{value:!0}),ja.millify=void 0;const Tp=Wa,za=Xt,kp=1e3;function*Np(e){let t=kp;for(;;){const n=e/t;if(n<1)return;yield n,t*=kp}}function Dp(e,t){var n,r;const o=t?{...Tp.defaultOptions,...t}:Tp.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let a;try{a=za.parseValue(e)}catch(h){return h instanceof Error&&console.warn(`WARN: ${h.message} (millify)`),String(e)}const i=a<0?"-":"";a=Math.abs(a);let l=0;for(const h of Np(a))a=h,l+=1;if(l>=o.units.length)return e.toString();let s=za.roundTo(a,o.precision);for(const h of Np(s))s=h,l+=1;const d=(n=o.units[l])!==null&&n!==void 0?n:"",f=o.lowercase?d.toLowerCase():d,p=o.space?" ":"",m=s.toLocaleString((r=o.locales)!==null&&r!==void 0?r:za.getLocales(),{minimumFractionDigits:za.getFractionDigits(s)});return`${i}${m}${p}${f}`}ja.millify=Dp;var Ba=ja.default=Dp,Ve=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(Ve||{});const $r={[Ve.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[Ve.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[Ve.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[Ve.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[Ve.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[Ve.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},Mu={[Ve.ON_TRACK]:"On-track",[Ve.OFF_TRACK]:"Off-track",[Ve.AT_RISK]:"At-risk",[Ve.CLOSED_ACHIEVED]:"Closed & achieved",[Ve.CLOSED_DROPPED]:"Closed & dropped",[Ve.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function Ap({progressInPercentage:e=0,status:t=Ve.ON_TRACK}){const{backgroundColor:n,indicatorColor:r,textColor:o}=$r[t]?$r[t]:$r[Ve.ON_TRACK];return _.jsxs(L$,{className:"rabbit-ds relative overflow-hidden w-full h-5 justify-start items-start inline-flex rounded-md min-w-[210px] box-border",style:{transform:"translateZ(0)",backgroundColor:n},value:e,children:[_.jsx(F$,{className:" w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:r}}),_.jsx("div",{className:"left-0 top-0 absolute justify-start items-center inline-flex",children:_.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex",children:_.jsx("div",{className:"text-xs font-semibold leading-2",style:{color:o},children:Mu[t]?Mu[t]:Mu[Ve.ON_TRACK]})})}),_.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex absolute right-0 top-0",children:_.jsxs("div",{className:"text-right text-xs font-semibold leading-2",style:{color:o},children:[Ba(e),"%"]})})]})}function qa(e,[t,n]){return Math.min(n,Math.max(t,e))}const q$=c.createContext(void 0);function _r(e){const t=c.useContext(q$);return e||t||"ltr"}function Ha(e){const t=e+"CollectionProvider",[n,r]=vt(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:h,children:v}=m,w=c.useRef(null),g=c.useRef(new Map).current;return c.createElement(o,{scope:h,itemMap:g,collectionRef:w},v)},l=e+"CollectionSlot",u=c.forwardRef((m,h)=>{const{scope:v,children:w}=m,g=a(l,v),y=ke(h,g.collectionRef);return c.createElement(cn,{ref:y},w)}),s=e+"CollectionItemSlot",d="data-radix-collection-item",f=c.forwardRef((m,h)=>{const{scope:v,children:w,...g}=m,y=c.useRef(null),$=ke(h,y),S=a(s,v);return c.useEffect(()=>(S.itemMap.set(y,{ref:y,...g}),()=>void S.itemMap.delete(y))),c.createElement(cn,{[d]:"",ref:$},w)});function p(m){const h=a(e+"CollectionConsumer",m);return c.useCallback(()=>{const w=h.collectionRef.current;if(!w)return[];const g=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,x)=>g.indexOf(S.ref.current)-g.indexOf(x.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},p,r]}const Ip=["PageUp","PageDown"],Lp=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Fp={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Eo="Slider",[Cu,H$,U$]=Ha(Eo),[jp,xj]=vt(Eo,[U$]),[V$,Ua]=jp(Eo),G$=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:u=0,defaultValue:s=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,...h}=e,[v,w]=c.useState(null),g=ke(t,q=>w(q)),y=c.useRef(new Set),$=c.useRef(0),S=i==="horizontal",x=v?!!v.closest("form"):!0,C=S?Y$:K$,[E=[],M]=_t({prop:d,defaultProp:s,onChange:q=>{var P;(P=[...y.current][$.current])===null||P===void 0||P.focus(),f(q)}}),T=c.useRef(E);function j(q){const P=r_(E,q);Y(q,P)}function I(q){Y(q,$.current)}function B(){const q=T.current[$.current];E[$.current]!==q&&p(E)}function Y(q,P,{commit:L}={commit:!1}){const z=l_(a),H=u_(Math.round((q-r)/a)*a+r,z),N=qa(H,[r,o]);M((D=[])=>{const W=t_(D,N,P);if(i_(W,u*a)){$.current=W.indexOf(N);const te=String(W)!==String(D);return te&&L&&p(W),te?W:D}else return D})}return c.createElement(V$,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:$,thumbs:y.current,values:E,orientation:i},c.createElement(Cu.Provider,{scope:e.__scopeSlider},c.createElement(Cu.Slot,{scope:e.__scopeSlider},c.createElement(C,X({"aria-disabled":l,"data-disabled":l?"":void 0},h,{ref:g,onPointerDown:de(h.onPointerDown,()=>{l||(T.current=E)}),min:r,max:o,inverted:m,onSlideStart:l?void 0:j,onSlideMove:l?void 0:I,onSlideEnd:l?void 0:B,onHomeKeyDown:()=>!l&&Y(r,0,{commit:!0}),onEndKeyDown:()=>!l&&Y(o,E.length-1,{commit:!0}),onStepKeyDown:({event:q,direction:P})=>{if(!l){const H=Ip.includes(q.key)||q.shiftKey&&Lp.includes(q.key)?10:1,N=$.current,D=E[N],W=a*H*P;Y(D+W,N,{commit:!0})}}})))),x&&E.map((q,P)=>c.createElement(e_,{key:P,name:n?n+(E.length>1?"[]":""):void 0,value:q})))}),[Wp,zp]=jp(Eo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Y$=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:u,onStepKeyDown:s,...d}=e,[f,p]=c.useState(null),m=ke(t,$=>p($)),h=c.useRef(),v=_r(o),w=v==="ltr",g=w&&!a||!w&&a;function y($){const S=h.current||f.getBoundingClientRect(),x=[0,S.width],E=Eu(x,g?[n,r]:[r,n]);return h.current=S,E($-S.left)}return c.createElement(Wp,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width"},c.createElement(Bp,X({dir:v,"data-orientation":"horizontal"},d,{ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:$=>{const S=y($.clientX);i==null||i(S)},onSlideMove:$=>{const S=y($.clientX);l==null||l(S)},onSlideEnd:()=>{h.current=void 0,u==null||u()},onStepKeyDown:$=>{const x=Fp[g?"from-left":"from-right"].includes($.key);s==null||s({event:$,direction:x?-1:1})}})))}),K$=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:u,...s}=e,d=c.useRef(null),f=ke(t,d),p=c.useRef(),m=!o;function h(v){const w=p.current||d.current.getBoundingClientRect(),g=[0,w.height],$=Eu(g,m?[r,n]:[n,r]);return p.current=w,$(v-w.top)}return c.createElement(Wp,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1},c.createElement(Bp,X({"data-orientation":"vertical"},s,{ref:f,style:{...s.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const w=h(v.clientY);a==null||a(w)},onSlideMove:v=>{const w=h(v.clientY);i==null||i(w)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:v=>{const g=Fp[m?"from-bottom":"from-top"].includes(v.key);u==null||u({event:v,direction:g?-1:1})}})))}),Bp=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:u,...s}=e,d=Ua(Eo,n);return c.createElement(we.span,X({},s,{ref:t,onKeyDown:de(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(l(f),f.preventDefault()):Ip.concat(Lp).includes(f.key)&&(u(f),f.preventDefault())}),onPointerDown:de(e.onPointerDown,f=>{const p=f.target;p.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(p)?p.focus():r(f)}),onPointerMove:de(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:de(e.onPointerUp,f=>{const p=f.target;p.hasPointerCapture(f.pointerId)&&(p.releasePointerCapture(f.pointerId),a(f))})}))}),X$="SliderTrack",R$=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ua(X$,n);return c.createElement(we.span,X({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),qp="SliderRange",Z$=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ua(qp,n),a=zp(qp,n),i=c.useRef(null),l=ke(t,i),u=o.values.length,s=o.values.map(p=>Up(p,o.min,o.max)),d=u>1?Math.min(...s):0,f=100-Math.max(...s);return c.createElement(we.span,X({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:l,style:{...e.style,[a.startEdge]:d+"%",[a.endEdge]:f+"%"}}))}),Hp="SliderThumb",Q$=c.forwardRef((e,t)=>{const n=H$(e.__scopeSlider),[r,o]=c.useState(null),a=ke(t,l=>o(l)),i=c.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return c.createElement(J$,X({},e,{ref:a,index:i}))}),J$=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=Ua(Hp,n),i=zp(Hp,n),[l,u]=c.useState(null),s=ke(t,w=>u(w)),d=yu(l),f=a.values[r],p=f===void 0?0:Up(f,a.min,a.max),m=n_(r,a.values.length),h=d==null?void 0:d[i.size],v=h?o_(h,p,i.direction):0;return c.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),c.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${p}% + ${v}px)`}},c.createElement(Cu.ItemSlot,{scope:e.__scopeSlider},c.createElement(we.span,X({role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":f,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:s,style:f===void 0?{display:"none"}:e.style,onFocus:de(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),e_=e=>{const{value:t,...n}=e,r=c.useRef(null),o=gu(t);return c.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&u){const s=new Event("input",{bubbles:!0});u.call(a,t),a.dispatchEvent(s)}},[o,t]),c.createElement("input",X({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function t_(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function Up(e,t,n){const a=100/(n-t)*(e-t);return qa(a,[0,100])}function n_(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function r_(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function o_(e,t,n){const r=e/2,a=Eu([0,50],[0,r]);return(r-a(t)*n)*n}function a_(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function i_(e,t){if(t>0){const n=a_(e);return Math.min(...n)>=t}return!0}function Eu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function l_(e){return(String(e).split(".")[1]||"").length}function u_(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const s_=G$,c_=R$,f_=Z$,d_=Q$;function p_({startValue:e=0,targetValue:t=100,achievedValue:n=0,isReadOnly:r=!1,status:o=Ve.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:l=()=>{}}){const[u,s]=c.useState(n),[d,f]=c.useState(n),p=c.useRef(!0),m=e>t,h=m?t:e,v=m?e:t,w=m?-1:1;c.useEffect(()=>{n!==u&&s(n)},[n]),c.useEffect(()=>{p.current?p.current=!1:a(d)},[d]),c.useEffect(()=>{i(u)},[u]);const g=S=>{s(m?t+e-S:S)},y=S=>{f(m?t+e-S:S)},$=$r[o]?$r[o]:$r[Ve.ON_TRACK];return _.jsxs(s_,{className:"rabbit-ds relative flex items-center select-none touch-none min-w-[200px] w-full box-border",value:[m?t+e-u:u],min:h,max:v,step:w,inverted:h>v,disabled:r,onValueCommit:S=>y(S[0]),onValueChange:S=>g(S[0]),onLostPointerCapture:()=>{d!==u&&f(u)},children:[_.jsx(c_,{className:"relative grow h-7 bg-[#EAEAEA] rounded",children:_.jsx(f_,{className:"absolute bg-white rounded-l h-full",style:{backgroundColor:$.indicatorColor}})}),_.jsxs(d_,{className:"block w-7 h-7 p-0.5 rounded-2xl focus:outline-none bg-[#1565BC] ","aria-label":"Volume",style:{pointerEvents:r?"none":"auto"},onClick:l,children:[" ",_.jsx(Kx,{color:"white"})]})]})}const Vp=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Gp=hp,yt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Gp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(s=>{const d=n==null?void 0:n[s],f=a==null?void 0:a[s];if(d===null)return null;const p=Vp(d)||Vp(f);return o[s][p]}),l=n&&Object.entries(n).reduce((s,d)=>{let[f,p]=d;return p===void 0||(s[f]=p),s},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((s,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(h=>{let[v,w]=h;return Array.isArray(w)?w.includes({...a,...l}[v]):{...a,...l}[v]===w})?[...s,f,p]:s},[]);return Gp(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},h_=yt("rabbit-ds font-sans px-4 py-2 rounded text-sm font-semibold justify-center items-center gap-1 inline-flex transition-colors focus:outline-1 focus:outline-offset-2 disabled:pointer-events-none",{variants:{variant:{filled:"",outline:"",text:""},status:{default:"",error:""},size:{normal:"h-10",small:"h-7",icon:"h-10 w-10 p-2",smallIcon:"h-7 w-7 p-1"}},compoundVariants:[{variant:"filled",status:"default",className:"bg-[#1565BC] text-white hover:bg-[#125AA9] focus:bg-[#104F95] disabled:bg-[#99D2F9]"},{variant:"filled",status:"error",className:"bg-[#C62C02] text-white hover:bg-[#AA2602] focus:bg-[#A12402] disabled:bg-[#F6B9B9]"},{variant:"outline",status:"default",className:"bg-white text-[#1565BC] border border-[#1565BC] hover:text-[#125AA9] hover:border-[#125AA9] focus:border-[#104F95] focus:text-[#104F95] disabled:border-[#104F95] disabled:text-[#104F95]"},{variant:"outline",status:"error",className:"bg-white text-[#C62C02] border border-[#C62C02] hover:text-[#AA2602] hover:border-[#AA2602] focus:border-[#A12402] focus:text-[#A12402] disabled:border-[#F6B9B9] disabled:text-[#F6B9B9]"},{variant:"text",status:"default",className:"bg-white text-[#1565BC] border-0 hover:text-[#125AA9] focus:text-[#104F95] disabled:text-[#104F95]"},{variant:"text",status:"error",className:"bg-white text-[#C62C02] border-0 hover:text-[#AA2602] focus:text-[#A12402] disabled:text-[#F6B9B9]"}],defaultVariants:{variant:"filled",status:"default",size:"normal"}}),Yp=yt("",{variants:{size:{normal:"h-4 w-4",small:"h-3 w-3",icon:"h4 w-4",smallIcon:"h3 w-3"}},defaultVariants:{size:"normal"}}),Pr=c.forwardRef(({className:e,variant:t,iconLeft:n=void 0,iconRight:r=void 0,status:o,size:a,asChild:i=!1,children:l,...u},s)=>{const d=i?cn:"button";return _.jsx("div",{className:"rabbit-ds",children:_.jsxs(d,{className:be(h_({variant:t,className:e,size:a,status:o})),ref:s,...u,children:[n?_.jsx("div",{className:be(Yp({size:a})),children:n}):null,l,r?_.jsx("div",{className:be(Yp({size:a})),children:r}):null]})})});Pr.displayName="Button";function m_(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Tu="dismissableLayer.update",v_="dismissableLayer.pointerDownOutside",g_="dismissableLayer.focusOutside";let Kp;const y_=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ku=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...s}=e,d=c.useContext(y_),[f,p]=c.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=c.useState({}),v=ke(t,M=>p(M)),w=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(g),$=f?w.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,x=$>=y,C=b_(M=>{const T=M.target,j=[...d.branches].some(I=>I.contains(T));!x||j||(a==null||a(M),l==null||l(M),M.defaultPrevented||u==null||u())},m),E=w_(M=>{const T=M.target;[...d.branches].some(I=>I.contains(T))||(i==null||i(M),l==null||l(M),M.defaultPrevented||u==null||u())},m);return m_(M=>{$===d.layers.size-1&&(o==null||o(M),!M.defaultPrevented&&u&&(M.preventDefault(),u()))},m),c.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Xp(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Kp)}},[f,m,r,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Xp())},[f,d]),c.useEffect(()=>{const M=()=>h({});return document.addEventListener(Tu,M),()=>document.removeEventListener(Tu,M)},[]),c.createElement(we.div,X({},s,{ref:v,style:{pointerEvents:S?x?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,E.onFocusCapture),onBlurCapture:de(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,C.onPointerDownCapture)}))});function b_(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let s=function(){Rp(v_,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function w_(e,t=globalThis==null?void 0:globalThis.document){const n=ct(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Rp(g_,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xp(){const e=new CustomEvent(Tu);document.dispatchEvent(e)}function Rp(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sp(o,a):o.dispatchEvent(a)}let Nu=0;function Zp(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Qp()),Nu++,()=>{Nu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Nu--}},[])}function Qp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Du="focusScope.autoFocusOnMount",Au="focusScope.autoFocusOnUnmount",Jp={bubbles:!1,cancelable:!0},eh=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=c.useState(null),s=ct(o),d=ct(a),f=c.useRef(null),p=ke(t,v=>u(v)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let v=function($){if(m.paused||!l)return;const S=$.target;l.contains(S)?f.current=S:Tn(f.current,{select:!0})},w=function($){if(m.paused||!l)return;const S=$.relatedTarget;S!==null&&(l.contains(S)||Tn(f.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const x of $)x.removedNodes.length>0&&Tn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const y=new MutationObserver(g);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),y.disconnect()}}},[r,l,m.paused]),c.useEffect(()=>{if(l){rh.add(m);const v=document.activeElement;if(!l.contains(v)){const g=new CustomEvent(Du,Jp);l.addEventListener(Du,s),l.dispatchEvent(g),g.defaultPrevented||(x_(O_(th(l)),{select:!0}),document.activeElement===v&&Tn(l))}return()=>{l.removeEventListener(Du,s),setTimeout(()=>{const g=new CustomEvent(Au,Jp);l.addEventListener(Au,d),l.dispatchEvent(g),g.defaultPrevented||Tn(v??document.body,{select:!0}),l.removeEventListener(Au,d),rh.remove(m)},0)}}},[l,s,d,m]);const h=c.useCallback(v=>{if(!n&&!r||m.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(w&&g){const y=v.currentTarget,[$,S]=$_(y);$&&S?!v.shiftKey&&g===S?(v.preventDefault(),n&&Tn($,{select:!0})):v.shiftKey&&g===$&&(v.preventDefault(),n&&Tn(S,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return c.createElement(we.div,X({tabIndex:-1},i,{ref:p,onKeyDown:h}))});function x_(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function $_(e){const t=th(e),n=nh(t,e),r=nh(t.reverse(),e);return[n,r]}function th(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nh(e,t){for(const n of e)if(!__(n,{upTo:t}))return n}function __(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P_(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&P_(e)&&t&&e.select()}}const rh=S_();function S_(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oh(e,t),e.unshift(t)},remove(t){var n;e=oh(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function oh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function O_(e){return e.filter(t=>t.tagName!=="A")}const M_=ge["useId".toString()]||(()=>{});let C_=0;function Rt(e){const[t,n]=ge.useState(M_());return gt(()=>{e||n(r=>r??String(C_++))},[e]),e||(t?`radix-${t}`:"")}const E_=["top","right","bottom","left"],kn=Math.min,bt=Math.max,Va=Math.round,Ga=Math.floor,Nn=e=>({x:e,y:e}),T_={left:"right",right:"left",bottom:"top",top:"bottom"},k_={start:"end",end:"start"};function Iu(e,t,n){return bt(e,kn(t,n))}function fn(e,t){return typeof e=="function"?e(t):e}function dn(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function Lu(e){return e==="x"?"y":"x"}function Fu(e){return e==="y"?"height":"width"}function Or(e){return["top","bottom"].includes(dn(e))?"y":"x"}function ju(e){return Lu(Or(e))}function N_(e,t,n){n===void 0&&(n=!1);const r=Sr(e),o=ju(e),a=Fu(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ya(i)),[i,Ya(i)]}function D_(e){const t=Ya(e);return[Wu(e),t,Wu(t)]}function Wu(e){return e.replace(/start|end/g,t=>k_[t])}function A_(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function I_(e,t,n,r){const o=Sr(e);let a=A_(dn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Wu)))),a}function Ya(e){return e.replace(/left|right|bottom|top/g,t=>T_[t])}function L_(e){return{top:0,right:0,bottom:0,left:0,...e}}function ah(e){return typeof e!="number"?L_(e):{top:e,right:e,bottom:e,left:e}}function Ka(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ih(e,t,n){let{reference:r,floating:o}=e;const a=Or(t),i=ju(t),l=Fu(i),u=dn(t),s=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let m;switch(u){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Sr(t)){case"start":m[i]-=p*(n&&s?-1:1);break;case"end":m[i]+=p*(n&&s?-1:1);break}return m}const F_=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=ih(s,r,u),p=r,m={},h=0;for(let v=0;v<l.length;v++){const{name:w,fn:g}=l[v],{x:y,y:$,data:S,reset:x}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:s,platform:i,elements:{reference:e,floating:t}});if(d=y??d,f=$??f,m={...m,[w]:{...m[w],...S}},x&&h<=50){h++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(s=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=ih(s,p,u)),v=-1;continue}}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function To(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=fn(t,e),h=ah(m),w=l[p?f==="floating"?"reference":"floating":f],g=Ka(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:s,rootBoundary:d,strategy:u})),y=f==="floating"?{...i.floating,x:r,y:o}:i.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},x=Ka(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:$,strategy:u}):y);return{top:(g.top-x.top+h.top)/S.y,bottom:(x.bottom-g.bottom+h.bottom)/S.y,left:(g.left-x.left+h.left)/S.x,right:(x.right-g.right+h.right)/S.x}}const lh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:u}=t,{element:s,padding:d=0}=fn(e,t)||{};if(s==null)return{};const f=ah(d),p={x:n,y:r},m=ju(o),h=Fu(m),v=await i.getDimensions(s),w=m==="y",g=w?"top":"left",y=w?"bottom":"right",$=w?"clientHeight":"clientWidth",S=a.reference[h]+a.reference[m]-p[m]-a.floating[h],x=p[m]-a.reference[m],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s));let E=C?C[$]:0;(!E||!await(i.isElement==null?void 0:i.isElement(C)))&&(E=l.floating[$]||a.floating[h]);const M=S/2-x/2,T=E/2-v[h]/2-1,j=kn(f[g],T),I=kn(f[y],T),B=j,Y=E-v[h]-I,q=E/2-v[h]/2+M,P=Iu(B,q,Y),L=!u.arrow&&Sr(o)!=null&&q!=P&&a.reference[h]/2-(q<B?j:I)-v[h]/2<0,z=L?q<B?q-B:q-Y:0;return{[m]:p[m]+z,data:{[m]:P,centerOffset:q-P-z,...L&&{alignmentOffset:z}},reset:L}}}),j_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:u,elements:s}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=fn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=dn(o),y=dn(l)===l,$=await(u.isRTL==null?void 0:u.isRTL(s.floating)),S=p||(y||!v?[Ya(l)]:D_(l));!p&&h!=="none"&&S.push(...I_(l,v,h,$));const x=[l,...S],C=await To(t,w),E=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&E.push(C[g]),f){const B=N_(o,i,$);E.push(C[B[0]],C[B[1]])}if(M=[...M,{placement:o,overflows:E}],!E.every(B=>B<=0)){var T,j;const B=(((T=a.flip)==null?void 0:T.index)||0)+1,Y=x[B];if(Y)return{data:{index:B,overflows:M},reset:{placement:Y}};let q=(j=M.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:j.placement;if(!q)switch(m){case"bestFit":{var I;const P=(I=M.map(L=>[L.placement,L.overflows.filter(z=>z>0).reduce((z,H)=>z+H,0)]).sort((L,z)=>L[1]-z[1])[0])==null?void 0:I[0];P&&(q=P);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function uh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sh(e){return E_.some(t=>e[t]>=0)}const W_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fn(e,t);switch(r){case"referenceHidden":{const a=await To(t,{...o,elementContext:"reference"}),i=uh(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:sh(i)}}}case"escaped":{const a=await To(t,{...o,altBoundary:!0}),i=uh(a,n.floating);return{data:{escapedOffsets:i,escaped:sh(i)}}}default:return{}}}}};async function z_(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=dn(n),l=Sr(n),u=Or(n)==="y",s=["left","top"].includes(i)?-1:1,d=a&&u?-1:1,f=fn(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof h=="number"&&(m=l==="end"?h*-1:h),u?{x:m*d,y:p*s}:{x:p*s,y:m*d}}const B_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await z_(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},q_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...u}=fn(e,t),s={x:n,y:r},d=await To(t,u),f=Or(dn(o)),p=Lu(f);let m=s[p],h=s[f];if(a){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=m+d[w],$=m-d[g];m=Iu(y,m,$)}if(i){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=h+d[w],$=h-d[g];h=Iu(y,h,$)}const v=l.fn({...t,[p]:m,[f]:h});return{...v,data:{x:v.x-n,y:v.y-r}}}}},H_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=fn(e,t),d={x:n,y:r},f=Or(o),p=Lu(f);let m=d[p],h=d[f];const v=fn(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const $=p==="y"?"height":"width",S=a.reference[p]-a.floating[$]+w.mainAxis,x=a.reference[p]+a.reference[$]-w.mainAxis;m<S?m=S:m>x&&(m=x)}if(s){var g,y;const $=p==="y"?"width":"height",S=["top","left"].includes(dn(o)),x=a.reference[f]-a.floating[$]+(S&&((g=i.offset)==null?void 0:g[f])||0)+(S?0:w.crossAxis),C=a.reference[f]+a.reference[$]+(S?0:((y=i.offset)==null?void 0:y[f])||0)-(S?w.crossAxis:0);h<x?h=x:h>C&&(h=C)}return{[p]:m,[f]:h}}}},U_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...l}=fn(e,t),u=await To(t,l),s=dn(n),d=Sr(n),f=Or(n)==="y",{width:p,height:m}=r.floating;let h,v;s==="top"||s==="bottom"?(h=s,v=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=s,h=d==="end"?"top":"bottom");const w=m-u[h],g=p-u[v],y=!t.middlewareData.shift;let $=w,S=g;if(f){const C=p-u.left-u.right;S=d||y?kn(g,C):C}else{const C=m-u.top-u.bottom;$=d||y?kn(w,C):C}if(y&&!d){const C=bt(u.left,0),E=bt(u.right,0),M=bt(u.top,0),T=bt(u.bottom,0);f?S=p-2*(C!==0||E!==0?C+E:bt(u.left,u.right)):$=m-2*(M!==0||T!==0?M+T:bt(u.top,u.bottom))}await i({...t,availableWidth:S,availableHeight:$});const x=await o.getDimensions(a.floating);return p!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}};function Dn(e){return ch(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=(ch(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ch(e){return e instanceof Node||e instanceof wt(e).Node}function hn(e){return e instanceof Element||e instanceof wt(e).Element}function Zt(e){return e instanceof HTMLElement||e instanceof wt(e).HTMLElement}function fh(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function V_(e){return["table","td","th"].includes(Dn(e))}function zu(e){const t=Bu(),n=Pt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function G_(e){let t=Mr(e);for(;Zt(t)&&!Xa(t);){if(zu(t))return t;t=Mr(t)}return null}function Bu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xa(e){return["html","body","#document"].includes(Dn(e))}function Pt(e){return wt(e).getComputedStyle(e)}function Ra(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mr(e){if(Dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fh(e)&&e.host||pn(e);return fh(t)?t.host:t}function dh(e){const t=Mr(e);return Xa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&ko(t)?t:dh(t)}function No(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dh(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=wt(o);return a?t.concat(i,i.visualViewport||[],ko(o)?o:[],i.frameElement&&n?No(i.frameElement):[]):t.concat(o,No(o,[],n))}function ph(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Va(n)!==a||Va(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function qu(e){return hn(e)?e:e.contextElement}function Cr(e){const t=qu(e);if(!Zt(t))return Nn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ph(t);let i=(a?Va(n.width):n.width)/r,l=(a?Va(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Y_=Nn(0);function hh(e){const t=wt(e);return!Bu()||!t.visualViewport?Y_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function Rn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=qu(e);let i=Nn(1);t&&(r?hn(r)&&(i=Cr(r)):i=Cr(e));const l=K_(a,n,r)?hh(a):Nn(0);let u=(o.left+l.x)/i.x,s=(o.top+l.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(a){const p=wt(a),m=r&&hn(r)?wt(r):r;let h=p.frameElement;for(;h&&r&&m!==p;){const v=Cr(h),w=h.getBoundingClientRect(),g=Pt(h),y=w.left+(h.clientLeft+parseFloat(g.paddingLeft))*v.x,$=w.top+(h.clientTop+parseFloat(g.paddingTop))*v.y;u*=v.x,s*=v.y,d*=v.x,f*=v.y,u+=y,s+=$,h=wt(h).frameElement}}return Ka({width:d,height:f,x:u,y:s})}function X_(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Zt(n),a=pn(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},l=Nn(1);const u=Nn(0);if((o||!o&&r!=="fixed")&&((Dn(n)!=="body"||ko(a))&&(i=Ra(n)),Zt(n))){const s=Rn(n);l=Cr(n),u.x=s.x+n.clientLeft,u.y=s.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}}function R_(e){return Array.from(e.getClientRects())}function mh(e){return Rn(pn(e)).left+Ra(e).scrollLeft}function Z_(e){const t=pn(e),n=Ra(e),r=e.ownerDocument.body,o=bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+mh(e);const l=-n.scrollTop;return Pt(r).direction==="rtl"&&(i+=bt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}function Q_(e,t){const n=wt(e),r=pn(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;const s=Bu();(!s||s&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l,y:u}}function J_(e,t){const n=Rn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Zt(e)?Cr(e):Nn(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,u=o*a.x,s=r*a.y;return{width:i,height:l,x:u,y:s}}function vh(e,t,n){let r;if(t==="viewport")r=Q_(e,n);else if(t==="document")r=Z_(pn(e));else if(hn(t))r=J_(t,n);else{const o=hh(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ka(r)}function gh(e,t){const n=Mr(e);return n===t||!hn(n)||Xa(n)?!1:Pt(n).position==="fixed"||gh(n,t)}function eP(e,t){const n=t.get(e);if(n)return n;let r=No(e,[],!1).filter(l=>hn(l)&&Dn(l)!=="body"),o=null;const a=Pt(e).position==="fixed";let i=a?Mr(e):e;for(;hn(i)&&!Xa(i);){const l=Pt(i),u=zu(i);!u&&l.position==="fixed"&&(o=null),(a?!u&&!o:!u&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ko(i)&&!u&&gh(e,i))?r=r.filter(d=>d!==i):o=l,i=Mr(i)}return t.set(e,r),r}function tP(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?eP(t,this._c):[].concat(n),r],l=i[0],u=i.reduce((s,d)=>{const f=vh(t,d,o);return s.top=bt(f.top,s.top),s.right=kn(f.right,s.right),s.bottom=kn(f.bottom,s.bottom),s.left=bt(f.left,s.left),s},vh(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function nP(e){return ph(e)}function rP(e,t,n){const r=Zt(t),o=pn(t),a=n==="fixed",i=Rn(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const u=Nn(0);if(r||!r&&!a)if((Dn(t)!=="body"||ko(o))&&(l=Ra(t)),r){const s=Rn(t,!0,a,t);u.x=s.x+t.clientLeft,u.y=s.y+t.clientTop}else o&&(u.x=mh(o));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function yh(e,t){return!Zt(e)||Pt(e).position==="fixed"?null:t?t(e):e.offsetParent}function bh(e,t){const n=wt(e);if(!Zt(e))return n;let r=yh(e,t);for(;r&&V_(r)&&Pt(r).position==="static";)r=yh(r,t);return r&&(Dn(r)==="html"||Dn(r)==="body"&&Pt(r).position==="static"&&!zu(r))?n:r||G_(e)||n}const oP=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||bh,a=this.getDimensions;return{reference:rP(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function aP(e){return Pt(e).direction==="rtl"}const iP={convertOffsetParentRelativeRectToViewportRelativeRect:X_,getDocumentElement:pn,getClippingRect:tP,getOffsetParent:bh,getElementRects:oP,getClientRects:R_,getDimensions:nP,getScale:Cr,isElement:hn,isRTL:aP};function lP(e,t){let n=null,r;const o=pn(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function i(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),a();const{left:s,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const m=Ga(d),h=Ga(o.clientWidth-(s+f)),v=Ga(o.clientHeight-(d+p)),w=Ga(s),y={rootMargin:-m+"px "+-h+"px "+-v+"px "+-w+"px",threshold:bt(0,kn(1,u))||1};let $=!0;function S(x){const C=x[0].intersectionRatio;if(C!==u){if(!$)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return i(!0),a}function uP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=qu(e),d=o||a?[...s?No(s):[],...No(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const f=s&&l?lP(s,n):null;let p=-1,m=null;i&&(m=new ResizeObserver(g=>{let[y]=g;y&&y.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),s&&!u&&m.observe(s),m.observe(t));let h,v=u?Rn(e):null;u&&w();function w(){const g=Rn(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,h=requestAnimationFrame(w)}return n(),()=>{d.forEach(g=>{o&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const sP=(e,t,n)=>{const r=new Map,o={platform:iP,...n},a={...o.platform,_c:r};return F_(e,t,{...o,platform:a})},cP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?lh({element:r.current,padding:o}).fn(n):{}:r?lh({element:r,padding:o}).fn(n):{}}}};var Za=typeof document<"u"?c.useLayoutEffect:c.useEffect;function Qa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Qa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Qa(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function wh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xh(e,t){const n=wh(e);return Math.round(t*n)/n}function $h(e){const t=ge.useRef(e);return Za(()=>{t.current=e}),t}function fP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:s}=e,[d,f]=ge.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ge.useState(r);Qa(p,r)||m(r);const[h,v]=ge.useState(null),[w,g]=ge.useState(null),y=ge.useCallback(L=>{L!=C.current&&(C.current=L,v(L))},[v]),$=ge.useCallback(L=>{L!==E.current&&(E.current=L,g(L))},[g]),S=a||h,x=i||w,C=ge.useRef(null),E=ge.useRef(null),M=ge.useRef(d),T=$h(u),j=$h(o),I=ge.useCallback(()=>{if(!C.current||!E.current)return;const L={placement:t,strategy:n,middleware:p};j.current&&(L.platform=j.current),sP(C.current,E.current,L).then(z=>{const H={...z,isPositioned:!0};B.current&&!Qa(M.current,H)&&(M.current=H,Cx.flushSync(()=>{f(H)}))})},[p,t,n,j]);Za(()=>{s===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[s]);const B=ge.useRef(!1);Za(()=>(B.current=!0,()=>{B.current=!1}),[]),Za(()=>{if(S&&(C.current=S),x&&(E.current=x),S&&x){if(T.current)return T.current(S,x,I);I()}},[S,x,I,T]);const Y=ge.useMemo(()=>({reference:C,floating:E,setReference:y,setFloating:$}),[y,$]),q=ge.useMemo(()=>({reference:S,floating:x}),[S,x]),P=ge.useMemo(()=>{const L={position:n,left:0,top:0};if(!q.floating)return L;const z=xh(q.floating,d.x),H=xh(q.floating,d.y);return l?{...L,transform:"translate("+z+"px, "+H+"px)",...wh(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:H}},[n,l,q.floating,d.x,d.y]);return ge.useMemo(()=>({...d,update:I,refs:Y,elements:q,floatingStyles:P}),[d,I,Y,q,P])}const _h="Popper",[Ph,Er]=vt(_h),[dP,Sh]=Ph(_h),pP=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return c.createElement(dP,{scope:t,anchor:r,onAnchorChange:o},n)},hP="PopperAnchor",mP=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Sh(hP,n),i=c.useRef(null),l=ke(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.createElement(we.div,X({},o,{ref:l}))}),Oh="PopperContent",[vP,$j]=Ph(Oh),gP=c.forwardRef((e,t)=>{var n,r,o,a,i,l,u,s;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:m="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:$="partial",hideWhenDetached:S=!1,updatePositionStrategy:x="optimized",onPlaced:C,...E}=e,M=Sh(Oh,d),[T,j]=c.useState(null),I=ke(t,Oe=>j(Oe)),[B,Y]=c.useState(null),q=yu(B),P=(n=q==null?void 0:q.width)!==null&&n!==void 0?n:0,L=(r=q==null?void 0:q.height)!==null&&r!==void 0?r:0,z=f+(m!=="center"?"-"+m:""),H=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},N=Array.isArray(g)?g:[g],D=N.length>0,W={padding:H,boundary:N.filter(yP),altBoundary:D},{refs:te,floatingStyles:J,placement:ae,isPositioned:re,middlewareData:le}=fP({strategy:"fixed",placement:z,whileElementsMounted:(...Oe)=>uP(...Oe,{animationFrame:x==="always"}),elements:{reference:M.anchor},middleware:[B_({mainAxis:p+L,alignmentAxis:h}),w&&q_({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?H_():void 0,...W}),w&&j_({...W}),U_({...W,apply:({elements:Oe,rects:Ae,availableWidth:Ue,availableHeight:on})=>{const{width:Un,height:Tt}=Ae.reference,kt=Oe.floating.style;kt.setProperty("--radix-popper-available-width",`${Ue}px`),kt.setProperty("--radix-popper-available-height",`${on}px`),kt.setProperty("--radix-popper-anchor-width",`${Un}px`),kt.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),B&&cP({element:B,padding:v}),bP({arrowWidth:P,arrowHeight:L}),S&&W_({strategy:"referenceHidden",...W})]}),[R,ce]=Mh(ae),V=ct(C);gt(()=>{re&&(V==null||V())},[re,V]);const K=(o=le.arrow)===null||o===void 0?void 0:o.x,ie=(a=le.arrow)===null||a===void 0?void 0:a.y,A=((i=le.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[pe,me]=c.useState();return gt(()=>{T&&me(window.getComputedStyle(T).zIndex)},[T]),c.createElement("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:re?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(l=le.transformOrigin)===null||l===void 0?void 0:l.x,(u=le.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},c.createElement(vP,{scope:d,placedSide:R,onArrowChange:Y,arrowX:K,arrowY:ie,shouldHideArrow:A},c.createElement(we.div,X({"data-side":R,"data-align":ce},E,{ref:I,style:{...E.style,animation:re?void 0:"none",opacity:(s=le.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}}))))});function yP(e){return e!==null}const bP=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:l,rects:u,middlewareData:s}=t,f=((n=s.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,m=f?0:e.arrowHeight,[h,v]=Mh(l),w={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=s.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,y=((a=(i=s.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+m/2;let $="",S="";return h==="bottom"?($=f?w:`${g}px`,S=`${-m}px`):h==="top"?($=f?w:`${g}px`,S=`${u.floating.height+m}px`):h==="right"?($=`${-m}px`,S=f?w:`${y}px`):h==="left"&&($=`${u.floating.width+m}px`,S=f?w:`${y}px`),{data:{x:$,y:S}}}});function Mh(e){const[t,n="center"]=e.split("-");return[t,n]}const Ja=pP,Hu=mP,Uu=gP,Vu=c.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Cn.createPortal(c.createElement(we.div,X({},o,{ref:t})),r):null}),Gu="rovingFocusGroup.onEntryFocus",wP={bubbles:!1,cancelable:!0},Yu="RovingFocusGroup",[Ku,Ch,xP]=Ha(Yu),[$P,Tr]=vt(Yu,[xP]),[_P,PP]=$P(Yu),SP=c.forwardRef((e,t)=>c.createElement(Ku.Provider,{scope:e.__scopeRovingFocusGroup},c.createElement(Ku.Slot,{scope:e.__scopeRovingFocusGroup},c.createElement(OP,X({},e,{ref:t}))))),OP=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:s,...d}=e,f=c.useRef(null),p=ke(t,f),m=_r(a),[h=null,v]=_t({prop:i,defaultProp:l,onChange:u}),[w,g]=c.useState(!1),y=ct(s),$=Ch(n),S=c.useRef(!1),[x,C]=c.useState(0);return c.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Gu,y),()=>E.removeEventListener(Gu,y)},[y]),c.createElement(_P,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(E=>v(E),[v]),onItemShiftTab:c.useCallback(()=>g(!0),[]),onFocusableItemAdd:c.useCallback(()=>C(E=>E+1),[]),onFocusableItemRemove:c.useCallback(()=>C(E=>E-1),[])},c.createElement(we.div,X({tabIndex:w||x===0?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:de(e.onMouseDown,()=>{S.current=!0}),onFocus:de(e.onFocus,E=>{const M=!S.current;if(E.target===E.currentTarget&&M&&!w){const T=new CustomEvent(Gu,wP);if(E.currentTarget.dispatchEvent(T),!T.defaultPrevented){const j=$().filter(P=>P.focusable),I=j.find(P=>P.active),B=j.find(P=>P.id===h),q=[I,B,...j].filter(Boolean).map(P=>P.ref.current);Eh(q)}}S.current=!1}),onBlur:de(e.onBlur,()=>g(!1))})))}),MP="RovingFocusGroupItem",CP=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=Rt(),u=a||l,s=PP(MP,n),d=s.currentTabStopId===u,f=Ch(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=s;return c.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),c.createElement(Ku.ItemSlot,{scope:n,id:u,focusable:r,active:o},c.createElement(we.span,X({tabIndex:d?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:de(e.onMouseDown,h=>{r?s.onItemFocus(u):h.preventDefault()}),onFocus:de(e.onFocus,()=>s.onItemFocus(u)),onKeyDown:de(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){s.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const v=kP(h,s.orientation,s.dir);if(v!==void 0){h.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(h.currentTarget);g=s.loop?NP(g,y+1):g.slice(y+1)}setTimeout(()=>Eh(g))}})})))}),EP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kP(e,t,n){const r=TP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EP[r]}function Eh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function NP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Xu=SP,Ru=CP;var DP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kr=new WeakMap,ei=new WeakMap,ti={},Zu=0,Th=function(e){return e&&(e.host||Th(e.parentNode))},AP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Th(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},IP=function(e,t,n,r){var o=AP(t,Array.isArray(e)?e:[e]);ti[n]||(ti[n]=new WeakMap);var a=ti[n],i=[],l=new Set,u=new Set(o),s=function(f){!f||l.has(f)||(l.add(f),s(f.parentNode))};o.forEach(s);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else{var m=p.getAttribute(r),h=m!==null&&m!=="false",v=(kr.get(p)||0)+1,w=(a.get(p)||0)+1;kr.set(p,v),a.set(p,w),i.push(p),v===1&&h&&ei.set(p,!0),w===1&&p.setAttribute(n,"true"),h||p.setAttribute(r,"true")}})};return d(t),l.clear(),Zu++,function(){i.forEach(function(f){var p=kr.get(f)-1,m=a.get(f)-1;kr.set(f,p),a.set(f,m),p||(ei.has(f)||f.removeAttribute(r),ei.delete(f)),m||f.removeAttribute(n)}),Zu--,Zu||(kr=new WeakMap,kr=new WeakMap,ei=new WeakMap,ti={})}},kh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||DP(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),IP(r,o,n,"aria-hidden")):function(){return null}},Qt=function(){return Qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Qt.apply(this,arguments)};function Nh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function LP(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ni="right-scroll-bar-position",ri="width-before-scroll-bar",FP="with-scroll-bars-hidden",jP="--removed-body-scroll-bar-size";function WP(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zP(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function BP(e,t){return zP(t||null,function(n){return e.forEach(function(r){return WP(r,n)})})}function qP(e){return e}function HP(e,t){t===void 0&&(t=qP);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var u=function(){var d=i;i=[],d.forEach(a)},s=function(){return Promise.resolve().then(u)};s(),n={push:function(d){i.push(d),s()},filter:function(d){return i=i.filter(d),n}}}};return o}function UP(e){e===void 0&&(e={});var t=HP(null);return t.options=Qt({async:!0,ssr:!1},e),t}var Dh=function(e){var t=e.sideCar,n=Nh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ge.createElement(r,Qt({},n))};Dh.isSideCarExport=!0;function VP(e,t){return e.useMedium(t),Dh}var Ah=UP(),Qu=function(){},oi=ge.forwardRef(function(e,t){var n=ge.useRef(null),r=ge.useState({onScrollCapture:Qu,onWheelCapture:Qu,onTouchMoveCapture:Qu}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,w=e.as,g=w===void 0?"div":w,y=Nh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=p,S=BP([n,t]),x=Qt(Qt({},y),o);return ge.createElement(ge.Fragment,null,d&&ge.createElement($,{sideCar:Ah,removeScrollBar:s,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),i?ge.cloneElement(ge.Children.only(l),Qt(Qt({},x),{ref:S})):ge.createElement(g,Qt({},x,{className:u,ref:S}),l))});oi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},oi.classNames={fullWidth:ri,zeroRight:ni};var Ih,GP=function(){if(Ih)return Ih;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GP();return t&&e.setAttribute("nonce",t),e}function KP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var RP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YP())&&(KP(t,n),XP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZP=function(){var e=RP();return function(t,n){ge.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lh=function(){var e=ZP(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},QP={left:0,top:0,right:0,gap:0},Ju=function(e){return parseInt(e||"",10)||0},JP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ju(n),Ju(r),Ju(o)]},eS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QP;var t=JP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tS=Lh(),nS=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
7
- .`.concat(FP,` {
6
+ Defaulting to \`null\`.`}const fy=Cd,hy=ly;var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var da={},fa={};Object.defineProperty(fa,"__esModule",{value:!0}),fa.defaultOptions=void 0,fa.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.getLocales=Bt.getFractionDigits=Bt.roundTo=Bt.parseValue=void 0;function py(e){const t=parseFloat(e==null?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t}Bt.parseValue=py;function my(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))}Bt.roundTo=my;function gy(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0}Bt.getFractionDigits=gy;function vy(){var e;return typeof navigator>"u"?[]:Array.from((e=navigator.languages)!==null&&e!==void 0?e:[])}Bt.getLocales=vy,Object.defineProperty(da,"__esModule",{value:!0}),da.millify=void 0;const Md=fa,ha=Bt,Pd=1e3;function*kd(e){let t=Pd;for(;;){const n=e/t;if(n<1)return;yield n,t*=Pd}}function Od(e,t){var n,r;const o=t?{...Md.defaultOptions,...t}:Md.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let a;try{a=ha.parseValue(e)}catch(p){return p instanceof Error&&console.warn(`WARN: ${p.message} (millify)`),String(e)}const i=a<0?"-":"";a=Math.abs(a);let s=0;for(const p of kd(a))a=p,s+=1;if(s>=o.units.length)return e.toString();let c=ha.roundTo(a,o.precision);for(const p of kd(c))c=p,s+=1;const f=(n=o.units[s])!==null&&n!==void 0?n:"",d=o.lowercase?f.toLowerCase():f,h=o.space?" ":"",g=c.toLocaleString((r=o.locales)!==null&&r!==void 0?r:ha.getLocales(),{minimumFractionDigits:ha.getFractionDigits(c)});return`${i}${g}${h}${d}`}da.millify=Od;var pa=da.default=Od,Ve=(e=>(e.CLOSED_ACHIEVED="CLOSED_ACHIEVED",e.CLOSED_DROPPED="CLOSED_DROPPED",e.CLOSED_NOT_ACHIEVED="CLOSED_NOT_ACHIEVED",e.ON_TRACK="ON_TRACK",e.OFF_TRACK="OFF_TRACK",e.AT_RISK="AT_RISK",e))(Ve||{});const gr={[Ve.ON_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#EFFFEA",textColor:"#44812F"},[Ve.OFF_TRACK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF6D3",textColor:"#8C6A00"},[Ve.AT_RISK]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFF1E4",textColor:"#C62C02"},[Ve.CLOSED_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#DBF2D3",textColor:"#1A5724"},[Ve.CLOSED_DROPPED]:{backgroundColor:"#EAEAEA",indicatorColor:"#CCCCCC",textColor:"#666666"},[Ve.CLOSED_NOT_ACHIEVED]:{backgroundColor:"#EAEAEA",indicatorColor:"#FFE1D9",textColor:"#A12402"}},ws={[Ve.ON_TRACK]:"On-track",[Ve.OFF_TRACK]:"Off-track",[Ve.AT_RISK]:"At-risk",[Ve.CLOSED_ACHIEVED]:"Closed & achieved",[Ve.CLOSED_DROPPED]:"Closed & dropped",[Ve.CLOSED_NOT_ACHIEVED]:"Closed & not achieved"};function Nd({progressInPercentage:e=0,status:t=Ve.ON_TRACK}){const{backgroundColor:n,indicatorColor:r,textColor:o}=gr[t]?gr[t]:gr[Ve.ON_TRACK];return y.jsxs(fy,{className:"rabbit-ds relative overflow-hidden w-full h-5 justify-start items-start inline-flex rounded-md min-w-[210px] box-border",style:{transform:"translateZ(0)",backgroundColor:n},value:e,children:[y.jsx(hy,{className:" w-full h-full transition-transform duration-[660ms] ease-[cubic-bezier(0.65, 0, 0.35, 1)]",style:{transform:`translateX(-${100-e>100?100:100-e}%)`,backgroundColor:r}}),y.jsx("div",{className:"left-0 top-0 absolute justify-start items-center inline-flex",children:y.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex",children:y.jsx("div",{className:"text-xs font-semibold leading-2",style:{color:o},children:ws[t]?ws[t]:ws[Ve.ON_TRACK]})})}),y.jsx("div",{className:"px-1 py-0.5 justify-start items-center inline-flex absolute right-0 top-0",children:y.jsxs("div",{className:"text-right text-xs font-semibold leading-2",style:{color:o},children:[pa(e),"%"]})})]})}function ma(e,[t,n]){return Math.min(n,Math.max(t,e))}const by=u.createContext(void 0);function vr(e){const t=u.useContext(by);return e||t||"ltr"}function ga(e){const t=e+"CollectionProvider",[n,r]=ht(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:p,children:m}=g,x=u.useRef(null),b=u.useRef(new Map).current;return u.createElement(o,{scope:p,itemMap:b,collectionRef:x},m)},s=e+"CollectionSlot",l=u.forwardRef((g,p)=>{const{scope:m,children:x}=g,b=a(s,m),v=Oe(p,b.collectionRef);return u.createElement(Zt,{ref:v},x)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",d=u.forwardRef((g,p)=>{const{scope:m,children:x,...b}=g,v=u.useRef(null),w=Oe(p,v),E=a(c,m);return u.useEffect(()=>(E.itemMap.set(v,{ref:v,...b}),()=>void E.itemMap.delete(v))),u.createElement(Zt,{[f]:"",ref:w},x)});function h(g){const p=a(e+"CollectionConsumer",g);return u.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((E,S)=>b.indexOf(E.ref.current)-b.indexOf(S.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},h,r]}const _d=["PageUp","PageDown"],Dd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ad={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},so="Slider",[xs,yy,wy]=ga(so),[Id,m_]=ht(so,[wy]),[xy,va]=Id(so),$y=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:g=!1,...p}=e,[m,x]=u.useState(null),b=Oe(t,L=>x(L)),v=u.useRef(new Set),w=u.useRef(0),E=i==="horizontal",S=m?!!m.closest("form"):!0,M=E?Sy:Cy,[N=[],T]=wt({prop:f,defaultProp:c,onChange:L=>{var C;(C=[...v.current][w.current])===null||C===void 0||C.focus(),d(L)}}),O=u.useRef(N);function F(L){const C=Dy(N,L);G(L,C)}function j(L){G(L,w.current)}function H(){const L=O.current[w.current];N[w.current]!==L&&h(N)}function G(L,C,{commit:_}={commit:!1}){const B=Fy(a),V=jy(Math.round((L-r)/a)*a+r,B),D=ma(V,[r,o]);T((A=[])=>{const W=Ny(A,D,C);if(Ly(W,l*a)){w.current=W.indexOf(D);const ne=String(W)!==String(A);return ne&&_&&h(W),ne?W:A}else return A})}return u.createElement(xy,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:w,thumbs:v.current,values:N,orientation:i},u.createElement(xs.Provider,{scope:e.__scopeSlider},u.createElement(xs.Slot,{scope:e.__scopeSlider},u.createElement(M,J({"aria-disabled":s,"data-disabled":s?"":void 0},p,{ref:b,onPointerDown:pe(p.onPointerDown,()=>{s||(O.current=N)}),min:r,max:o,inverted:g,onSlideStart:s?void 0:F,onSlideMove:s?void 0:j,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&G(r,0,{commit:!0}),onEndKeyDown:()=>!s&&G(o,N.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:C})=>{if(!s){const V=_d.includes(L.key)||L.shiftKey&&Dd.includes(L.key)?10:1,D=w.current,A=N[D],W=a*V*C;G(A+W,D,{commit:!0})}}})))),S&&N.map((L,C)=>u.createElement(Oy,{key:C,name:n?n+(N.length>1?"[]":""):void 0,value:L})))}),[Ld,Fd]=Id(so,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Sy=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...f}=e,[d,h]=u.useState(null),g=Oe(t,w=>h(w)),p=u.useRef(),m=vr(o),x=m==="ltr",b=x&&!a||!x&&a;function v(w){const E=p.current||d.getBoundingClientRect(),S=[0,E.width],N=$s(S,b?[n,r]:[r,n]);return p.current=E,N(w-E.left)}return u.createElement(Ld,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width"},u.createElement(jd,J({dir:m,"data-orientation":"horizontal"},f,{ref:g,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const E=v(w.clientX);i==null||i(E)},onSlideMove:w=>{const E=v(w.clientX);s==null||s(E)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:w=>{const S=Ad[b?"from-left":"from-right"].includes(w.key);c==null||c({event:w,direction:S?-1:1})}})))}),Cy=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...c}=e,f=u.useRef(null),d=Oe(t,f),h=u.useRef(),g=!o;function p(m){const x=h.current||f.current.getBoundingClientRect(),b=[0,x.height],w=$s(b,g?[r,n]:[n,r]);return h.current=x,w(m-x.top)}return u.createElement(Ld,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1},u.createElement(jd,J({"data-orientation":"vertical"},c,{ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const x=p(m.clientY);a==null||a(x)},onSlideMove:m=>{const x=p(m.clientY);i==null||i(x)},onSlideEnd:()=>{h.current=void 0,s==null||s()},onStepKeyDown:m=>{const b=Ad[g?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:b?-1:1})}})))}),jd=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...c}=e,f=va(so,n);return u.createElement(we.span,J({},c,{ref:t,onKeyDown:pe(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):_d.concat(Dd).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:pe(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():r(d)}),onPointerMove:pe(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:pe(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),a(d))})}))}),Ey="SliderTrack",Ty=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=va(Ey,n);return u.createElement(we.span,J({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))}),zd="SliderRange",My=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=va(zd,n),a=Fd(zd,n),i=u.useRef(null),s=Oe(t,i),l=o.values.length,c=o.values.map(h=>Wd(h,o.min,o.max)),f=l>1?Math.min(...c):0,d=100-Math.max(...c);return u.createElement(we.span,J({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:d+"%"}}))}),Bd="SliderThumb",Py=u.forwardRef((e,t)=>{const n=yy(e.__scopeSlider),[r,o]=u.useState(null),a=Oe(t,s=>o(s)),i=u.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return u.createElement(ky,J({},e,{ref:a,index:i}))}),ky=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=va(Bd,n),i=Fd(Bd,n),[s,l]=u.useState(null),c=Oe(t,x=>l(x)),f=fs(s),d=a.values[r],h=d===void 0?0:Wd(d,a.min,a.max),g=_y(r,a.values.length),p=f==null?void 0:f[i.size],m=p?Ay(p,h,i.direction):0;return u.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]),u.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${h}% + ${m}px)`}},u.createElement(xs.ItemSlot,{scope:e.__scopeSlider},u.createElement(we.span,J({role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:c,style:d===void 0?{display:"none"}:e.style,onFocus:pe(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})}))))}),Oy=e=>{const{value:t,...n}=e,r=u.useRef(null),o=ds(t);return u.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(c)}},[o,t]),u.createElement("input",J({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Ny(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function Wd(e,t,n){const a=100/(n-t)*(e-t);return ma(a,[0,100])}function _y(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Dy(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Ay(e,t,n){const r=e/2,a=$s([0,50],[0,r]);return(r-a(t)*n)*n}function Iy(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Ly(e,t){if(t>0){const n=Iy(e);return Math.min(...n)>=t}return!0}function $s(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Fy(e){return(String(e).split(".")[1]||"").length}function jy(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const zy=$y,By=Ty,Wy=My,Vy=Py;function Hy({startValue:e=0,targetValue:t=100,achievedValue:n=0,isReadOnly:r=!1,status:o=Ve.ON_TRACK,onChangeEnd:a=()=>{},onChange:i=()=>{},onThumbClick:s=()=>{}}){const[l,c]=u.useState(n),[f,d]=u.useState(n),h=u.useRef(!0),g=e>t,p=g?t:e,m=g?e:t,x=g?-1:1;u.useEffect(()=>{n!==l&&c(n)},[n]),u.useEffect(()=>{h.current?h.current=!1:a(f)},[f]),u.useEffect(()=>{i(l)},[l]);const b=E=>{c(g?t+e-E:E)},v=E=>{d(g?t+e-E:E)},w=gr[o]?gr[o]:gr[Ve.ON_TRACK];return y.jsxs(zy,{className:"rabbit-ds relative flex items-center select-none touch-none min-w-[200px] w-full box-border",value:[g?t+e-l:l],min:p,max:m,step:x,inverted:p>m,disabled:r,onValueCommit:E=>v(E[0]),onValueChange:E=>b(E[0]),onLostPointerCapture:()=>{f!==l&&d(l)},children:[y.jsx(By,{className:"relative grow h-7 bg-[#EAEAEA] rounded",children:y.jsx(Wy,{className:"absolute bg-white rounded-l h-full",style:{backgroundColor:w.indicatorColor}})}),y.jsxs(Vy,{className:"block w-7 h-7 p-0.5 rounded-2xl focus:outline-none bg-[#1565BC] ","aria-label":"Volume",style:{pointerEvents:r?"none":"auto"},onClick:s,children:[" ",y.jsx(Sb,{color:"white"})]})]})}const Vd=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Hd=dd,qe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],d=a==null?void 0:a[c];if(f===null)return null;const h=Vd(f)||Vd(d);return o[c][h]}),s=n&&Object.entries(n).reduce((c,f)=>{let[d,h]=f;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(p=>{let[m,x]=p;return Array.isArray(x)?x.includes({...a,...s}[m]):{...a,...s}[m]===x})?[...c,d,h]:c},[]);return Hd(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Gy=qe("rabbit-ds font-sans px-4 py-2 rounded text-sm font-semibold justify-center items-center gap-1 inline-flex transition-colors focus:outline-1 focus:outline-offset-2 disabled:pointer-events-none",{variants:{variant:{filled:"",outline:"",text:""},status:{default:"",error:""},size:{normal:"h-10",small:"h-7",icon:"h-10 w-10 p-2",smallIcon:"h-7 w-7 p-1"}},compoundVariants:[{variant:"filled",status:"default",className:"bg-[#1565BC] text-white hover:bg-[#125AA9] focus:bg-[#104F95] disabled:bg-[#99D2F9]"},{variant:"filled",status:"error",className:"bg-[#C62C02] text-white hover:bg-[#AA2602] focus:bg-[#A12402] disabled:bg-[#F6B9B9]"},{variant:"outline",status:"default",className:"bg-white text-[#1565BC] border border-[#1565BC] hover:text-[#125AA9] hover:border-[#125AA9] focus:border-[#104F95] focus:text-[#104F95] disabled:border-[#104F95] disabled:text-[#104F95]"},{variant:"outline",status:"error",className:"bg-white text-[#C62C02] border border-[#C62C02] hover:text-[#AA2602] hover:border-[#AA2602] focus:border-[#A12402] focus:text-[#A12402] disabled:border-[#F6B9B9] disabled:text-[#F6B9B9]"},{variant:"text",status:"default",className:"bg-white text-[#1565BC] border-0 hover:text-[#125AA9] focus:text-[#104F95] disabled:text-[#104F95]"},{variant:"text",status:"error",className:"bg-white text-[#C62C02] border-0 hover:text-[#AA2602] focus:text-[#A12402] disabled:text-[#F6B9B9]"}],defaultVariants:{variant:"filled",status:"default",size:"normal"}}),Gd=qe("",{variants:{size:{normal:"h-4 w-4",small:"h-3 w-3",icon:"h4 w-4",smallIcon:"h3 w-3"}},defaultVariants:{size:"normal"}}),Qt=u.forwardRef(({className:e,variant:t,iconLeft:n=void 0,iconRight:r=void 0,status:o,size:a,asChild:i=!1,children:s,...l},c)=>{const f=i?Zt:"button";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs(f,{className:ge(Gy({variant:t,className:e,size:a,status:o})),ref:c,...l,children:[n?y.jsx("div",{className:ge(Gd({size:a})),children:n}):null,s,r?y.jsx("div",{className:ge(Gd({size:a})),children:r}):null]})})});Qt.displayName="Button";function Uy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ss="dismissableLayer.update",Yy="dismissableLayer.pointerDownOutside",qy="dismissableLayer.focusOutside";let Ud;const Ky=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cs=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,f=u.useContext(Ky),[d,h]=u.useState(null),g=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=u.useState({}),m=Oe(t,T=>h(T)),x=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(b),w=d?x.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=w>=v,M=Xy(T=>{const O=T.target,F=[...f.branches].some(j=>j.contains(O));!S||F||(a==null||a(T),s==null||s(T),T.defaultPrevented||l==null||l())},g),N=Zy(T=>{const O=T.target;[...f.branches].some(j=>j.contains(O))||(i==null||i(T),s==null||s(T),T.defaultPrevented||l==null||l())},g);return Uy(T=>{w===f.layers.size-1&&(o==null||o(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},g),u.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Yd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ud)}},[d,g,r,f]),u.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Yd())},[d,f]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(Ss,T),()=>document.removeEventListener(Ss,T)},[]),u.createElement(we.div,J({},c,{ref:m,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,M.onPointerDownCapture)}))});function Xy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){qd(Yy,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zy(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&qd(qy,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yd(){const e=new CustomEvent(Ss);document.dispatchEvent(e)}function qd(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?id(o,a):o.dispatchEvent(a)}let Es=0;function Kd(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Xd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Xd()),Es++,()=>{Es===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Es--}},[])}function Xd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ts="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",Zd={bubbles:!1,cancelable:!0},Qd=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=u.useState(null),c=lt(o),f=lt(a),d=u.useRef(null),h=Oe(t,m=>l(m)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(w){if(g.paused||!s)return;const E=w.target;s.contains(E)?d.current=E:gn(d.current,{select:!0})},x=function(w){if(g.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||gn(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&gn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const v=new MutationObserver(b);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),v.disconnect()}}},[r,s,g.paused]),u.useEffect(()=>{if(s){ef.add(g);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Ts,Zd);s.addEventListener(Ts,c),s.dispatchEvent(b),b.defaultPrevented||(Qy(nw(Jd(s)),{select:!0}),document.activeElement===m&&gn(s))}return()=>{s.removeEventListener(Ts,c),setTimeout(()=>{const b=new CustomEvent(Ms,Zd);s.addEventListener(Ms,f),s.dispatchEvent(b),b.defaultPrevented||gn(m??document.body,{select:!0}),s.removeEventListener(Ms,f),ef.remove(g)},0)}}},[s,c,f,g]);const p=u.useCallback(m=>{if(!n&&!r||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(x&&b){const v=m.currentTarget,[w,E]=Jy(v);w&&E?!m.shiftKey&&b===E?(m.preventDefault(),n&&gn(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),n&&gn(E,{select:!0})):b===v&&m.preventDefault()}},[n,r,g.paused]);return u.createElement(we.div,J({tabIndex:-1},i,{ref:h,onKeyDown:p}))});function Qy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gn(r,{select:t}),document.activeElement!==n)return}function Jy(e){const t=Jd(e),n=Rd(t,e),r=Rd(t.reverse(),e);return[n,r]}function Jd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rd(e,t){for(const n of e)if(!Ry(n,{upTo:t}))return n}function Ry(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ew(e){return e instanceof HTMLInputElement&&"select"in e}function gn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ew(e)&&t&&e.select()}}const ef=tw();function tw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tf(e,t),e.unshift(t)},remove(t){var n;e=tf(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function tf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nw(e){return e.filter(t=>t.tagName!=="A")}const rw=be["useId".toString()]||(()=>{});let ow=0;function Wt(e){const[t,n]=be.useState(rw());return pt(()=>{e||n(r=>r??String(ow++))},[e]),e||(t?`radix-${t}`:"")}const aw=["top","right","bottom","left"],vn=Math.min,mt=Math.max,ba=Math.round,ya=Math.floor,bn=e=>({x:e,y:e}),iw={left:"right",right:"left",bottom:"top",top:"bottom"},sw={start:"end",end:"start"};function Ps(e,t,n){return mt(e,vn(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function ks(e){return e==="x"?"y":"x"}function Os(e){return e==="y"?"height":"width"}function yr(e){return["top","bottom"].includes(Rt(e))?"y":"x"}function Ns(e){return ks(yr(e))}function lw(e,t,n){n===void 0&&(n=!1);const r=br(e),o=Ns(e),a=Os(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=wa(i)),[i,wa(i)]}function cw(e){const t=wa(e);return[_s(e),t,_s(t)]}function _s(e){return e.replace(/start|end/g,t=>sw[t])}function uw(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function dw(e,t,n,r){const o=br(e);let a=uw(Rt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(_s)))),a}function wa(e){return e.replace(/left|right|bottom|top/g,t=>iw[t])}function fw(e){return{top:0,right:0,bottom:0,left:0,...e}}function nf(e){return typeof e!="number"?fw(e):{top:e,right:e,bottom:e,left:e}}function xa(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function rf(e,t,n){let{reference:r,floating:o}=e;const a=yr(t),i=Ns(t),s=Os(i),l=Rt(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(br(t)){case"start":g[i]-=h*(n&&c?-1:1);break;case"end":g[i]+=h*(n&&c?-1:1);break}return g}const hw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=rf(c,r,l),h=r,g={},p=0;for(let m=0;m<s.length;m++){const{name:x,fn:b}=s[m],{x:v,y:w,data:E,reset:S}=await b({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,g={...g,[x]:{...g[x],...E}},S&&p<=50){p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:d}=rf(c,h,l)),m=-1;continue}}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function lo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Jt(t,e),p=nf(g),x=s[h?d==="floating"?"reference":"floating":d],b=xa(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),v=d==="floating"?{...i.floating,x:r,y:o}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},S=xa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-S.top+p.top)/E.y,bottom:(S.bottom-b.bottom+p.bottom)/E.y,left:(b.left-S.left+p.left)/E.x,right:(S.right-b.right+p.right)/E.x}}const of=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:f=0}=Jt(e,t)||{};if(c==null)return{};const d=nf(f),h={x:n,y:r},g=Ns(o),p=Os(g),m=await i.getDimensions(c),x=g==="y",b=x?"top":"left",v=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=a.reference[p]+a.reference[g]-h[g]-a.floating[p],S=h[g]-a.reference[g],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let N=M?M[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(M)))&&(N=s.floating[w]||a.floating[p]);const T=E/2-S/2,O=N/2-m[p]/2-1,F=vn(d[b],O),j=vn(d[v],O),H=F,G=N-m[p]-j,L=N/2-m[p]/2+T,C=Ps(H,L,G),_=!l.arrow&&br(o)!=null&&L!=C&&a.reference[p]/2-(L<H?F:j)-m[p]/2<0,B=_?L<H?L-H:L-G:0;return{[g]:h[g]+B,data:{[g]:C,centerOffset:L-C-B,..._&&{alignmentOffset:B}},reset:_}}}),pw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...x}=Jt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Rt(o),v=Rt(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(v||!m?[wa(s)]:cw(s));!h&&p!=="none"&&E.push(...dw(s,m,p,w));const S=[s,...E],M=await lo(t,x),N=[];let T=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&N.push(M[b]),d){const H=lw(o,i,w);N.push(M[H[0]],M[H[1]])}if(T=[...T,{placement:o,overflows:N}],!N.every(H=>H<=0)){var O,F;const H=(((O=a.flip)==null?void 0:O.index)||0)+1,G=S[H];if(G)return{data:{index:H,overflows:T},reset:{placement:G}};let L=(F=T.filter(C=>C.overflows[0]<=0).sort((C,_)=>C.overflows[1]-_.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(g){case"bestFit":{var j;const C=(j=T.map(_=>[_.placement,_.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((_,B)=>_[1]-B[1])[0])==null?void 0:j[0];C&&(L=C);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function af(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sf(e){return aw.some(t=>e[t]>=0)}const mw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Jt(e,t);switch(r){case"referenceHidden":{const a=await lo(t,{...o,elementContext:"reference"}),i=af(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:sf(i)}}}case"escaped":{const a=await lo(t,{...o,altBoundary:!0}),i=af(a,n.floating);return{data:{escapedOffsets:i,escaped:sf(i)}}}default:return{}}}}};async function gw(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Rt(n),s=br(n),l=yr(n)==="y",c=["left","top"].includes(i)?-1:1,f=a&&l?-1:1,d=Jt(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),l?{x:g*f,y:h*c}:{x:h*c,y:g*f}}const vw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await gw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},bw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:x=>{let{x:b,y:v}=x;return{x:b,y:v}}},...l}=Jt(e,t),c={x:n,y:r},f=await lo(t,l),d=yr(Rt(o)),h=ks(d);let g=c[h],p=c[d];if(a){const x=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=g+f[x],w=g-f[b];g=Ps(v,g,w)}if(i){const x=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=p+f[x],w=p-f[b];p=Ps(v,p,w)}const m=s.fn({...t,[h]:g,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},yw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Jt(e,t),f={x:n,y:r},d=yr(o),h=ks(d);let g=f[h],p=f[d];const m=Jt(s,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=h==="y"?"height":"width",E=a.reference[h]-a.floating[w]+x.mainAxis,S=a.reference[h]+a.reference[w]-x.mainAxis;g<E?g=E:g>S&&(g=S)}if(c){var b,v;const w=h==="y"?"width":"height",E=["top","left"].includes(Rt(o)),S=a.reference[d]-a.floating[w]+(E&&((b=i.offset)==null?void 0:b[d])||0)+(E?0:x.crossAxis),M=a.reference[d]+a.reference[w]+(E?0:((v=i.offset)==null?void 0:v[d])||0)-(E?x.crossAxis:0);p<S?p=S:p>M&&(p=M)}return{[h]:g,[d]:p}}}},ww=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Jt(e,t),l=await lo(t,s),c=Rt(n),f=br(n),d=yr(n)==="y",{width:h,height:g}=r.floating;let p,m;c==="top"||c==="bottom"?(p=c,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,p=f==="end"?"top":"bottom");const x=g-l[p],b=h-l[m],v=!t.middlewareData.shift;let w=x,E=b;if(d){const M=h-l.left-l.right;E=f||v?vn(b,M):M}else{const M=g-l.top-l.bottom;w=f||v?vn(x,M):M}if(v&&!f){const M=mt(l.left,0),N=mt(l.right,0),T=mt(l.top,0),O=mt(l.bottom,0);d?E=h-2*(M!==0||N!==0?M+N:mt(l.left,l.right)):w=g-2*(T!==0||O!==0?T+O:mt(l.top,l.bottom))}await i({...t,availableWidth:E,availableHeight:w});const S=await o.getDimensions(a.floating);return h!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function yn(e){return lf(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function en(e){var t;return(t=(lf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lf(e){return e instanceof Node||e instanceof gt(e).Node}function tn(e){return e instanceof Element||e instanceof gt(e).Element}function Vt(e){return e instanceof HTMLElement||e instanceof gt(e).HTMLElement}function cf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}function co(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xw(e){return["table","td","th"].includes(yn(e))}function Ds(e){const t=As(),n=xt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $w(e){let t=wr(e);for(;Vt(t)&&!$a(t);){if(Ds(t))return t;t=wr(t)}return null}function As(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $a(e){return["html","body","#document"].includes(yn(e))}function xt(e){return gt(e).getComputedStyle(e)}function Sa(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wr(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cf(e)&&e.host||en(e);return cf(t)?t.host:t}function uf(e){const t=wr(e);return $a(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&co(t)?t:uf(t)}function uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=uf(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=gt(o);return a?t.concat(i,i.visualViewport||[],co(o)?o:[],i.frameElement&&n?uo(i.frameElement):[]):t.concat(o,uo(o,[],n))}function df(e){const t=xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ba(n)!==a||ba(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Is(e){return tn(e)?e:e.contextElement}function xr(e){const t=Is(e);if(!Vt(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=df(t);let i=(a?ba(n.width):n.width)/r,s=(a?ba(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Sw=bn(0);function ff(e){const t=gt(e);return!As()||!t.visualViewport?Sw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Is(e);let i=bn(1);t&&(r?tn(r)&&(i=xr(r)):i=xr(e));const s=Cw(a,n,r)?ff(a):bn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(a){const h=gt(a),g=r&&tn(r)?gt(r):r;let p=h.frameElement;for(;p&&r&&g!==h;){const m=xr(p),x=p.getBoundingClientRect(),b=xt(p),v=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*m.x,w=x.top+(p.clientTop+parseFloat(b.paddingTop))*m.y;l*=m.x,c*=m.y,f*=m.x,d*=m.y,l+=v,c+=w,p=gt(p).frameElement}}return xa({width:f,height:d,x:l,y:c})}function Ew(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Vt(n),a=en(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=bn(1);const l=bn(0);if((o||!o&&r!=="fixed")&&((yn(n)!=="body"||co(a))&&(i=Sa(n)),Vt(n))){const c=Bn(n);s=xr(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}}function Tw(e){return Array.from(e.getClientRects())}function hf(e){return Bn(en(e)).left+Sa(e).scrollLeft}function Mw(e){const t=en(e),n=Sa(e),r=e.ownerDocument.body,o=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+hf(e);const s=-n.scrollTop;return xt(r).direction==="rtl"&&(i+=mt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Pw(e,t){const n=gt(e),r=en(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=As();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function kw(e,t){const n=Bn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Vt(e)?xr(e):bn(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function pf(e,t,n){let r;if(t==="viewport")r=Pw(e,n);else if(t==="document")r=Mw(en(e));else if(tn(t))r=kw(t,n);else{const o=ff(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return xa(r)}function mf(e,t){const n=wr(e);return n===t||!tn(n)||$a(n)?!1:xt(n).position==="fixed"||mf(n,t)}function Ow(e,t){const n=t.get(e);if(n)return n;let r=uo(e,[],!1).filter(s=>tn(s)&&yn(s)!=="body"),o=null;const a=xt(e).position==="fixed";let i=a?wr(e):e;for(;tn(i)&&!$a(i);){const s=xt(i),l=Ds(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||co(i)&&!l&&mf(e,i))?r=r.filter(f=>f!==i):o=s,i=wr(i)}return t.set(e,r),r}function Nw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ow(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,f)=>{const d=pf(t,f,o);return c.top=mt(d.top,c.top),c.right=vn(d.right,c.right),c.bottom=vn(d.bottom,c.bottom),c.left=mt(d.left,c.left),c},pf(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _w(e){return df(e)}function Dw(e,t,n){const r=Vt(t),o=en(t),a=n==="fixed",i=Bn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bn(0);if(r||!r&&!a)if((yn(t)!=="body"||co(o))&&(s=Sa(t)),r){const c=Bn(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=hf(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function gf(e,t){return!Vt(e)||xt(e).position==="fixed"?null:t?t(e):e.offsetParent}function vf(e,t){const n=gt(e);if(!Vt(e))return n;let r=gf(e,t);for(;r&&xw(r)&&xt(r).position==="static";)r=gf(r,t);return r&&(yn(r)==="html"||yn(r)==="body"&&xt(r).position==="static"&&!Ds(r))?n:r||$w(e)||n}const Aw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||vf,a=this.getDimensions;return{reference:Dw(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function Iw(e){return xt(e).direction==="rtl"}const Lw={convertOffsetParentRelativeRectToViewportRelativeRect:Ew,getDocumentElement:en,getClippingRect:Nw,getOffsetParent:vf,getElementRects:Aw,getClientRects:Tw,getDimensions:_w,getScale:xr,isElement:tn,isRTL:Iw};function Fw(e,t){let n=null,r;const o=en(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g=ya(f),p=ya(o.clientWidth-(c+d)),m=ya(o.clientHeight-(f+h)),x=ya(c),v={rootMargin:-g+"px "+-p+"px "+-m+"px "+-x+"px",threshold:mt(0,vn(1,l))||1};let w=!0;function E(S){const M=S[0].intersectionRatio;if(M!==l){if(!w)return i();M?i(!1,M):r=setTimeout(()=>{i(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return i(!0),a}function jw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Is(e),f=o||a?[...c?uo(c):[],...uo(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const d=c&&s?Fw(c,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let p,m=l?Bn(e):null;l&&x();function x(){const b=Bn(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,p=requestAnimationFrame(x)}return n(),()=>{f.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const zw=(e,t,n)=>{const r=new Map,o={platform:Lw,...n},a={...o.platform,_c:r};return hw(e,t,{...o,platform:a})},Bw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?of({element:r.current,padding:o}).fn(n):{}:r?of({element:r,padding:o}).fn(n):{}}}};var Ca=typeof document<"u"?u.useLayoutEffect:u.useEffect;function Ea(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ea(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ea(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function bf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yf(e,t){const n=bf(e);return Math.round(t*n)/n}function wf(e){const t=be.useRef(e);return Ca(()=>{t.current=e}),t}function Ww(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[f,d]=be.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=be.useState(r);Ea(h,r)||g(r);const[p,m]=be.useState(null),[x,b]=be.useState(null),v=be.useCallback(_=>{_!=M.current&&(M.current=_,m(_))},[m]),w=be.useCallback(_=>{_!==N.current&&(N.current=_,b(_))},[b]),E=a||p,S=i||x,M=be.useRef(null),N=be.useRef(null),T=be.useRef(f),O=wf(l),F=wf(o),j=be.useCallback(()=>{if(!M.current||!N.current)return;const _={placement:t,strategy:n,middleware:h};F.current&&(_.platform=F.current),zw(M.current,N.current,_).then(B=>{const V={...B,isPositioned:!0};H.current&&!Ea(T.current,V)&&(T.current=V,rb.flushSync(()=>{d(V)}))})},[h,t,n,F]);Ca(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[c]);const H=be.useRef(!1);Ca(()=>(H.current=!0,()=>{H.current=!1}),[]),Ca(()=>{if(E&&(M.current=E),S&&(N.current=S),E&&S){if(O.current)return O.current(E,S,j);j()}},[E,S,j,O]);const G=be.useMemo(()=>({reference:M,floating:N,setReference:v,setFloating:w}),[v,w]),L=be.useMemo(()=>({reference:E,floating:S}),[E,S]),C=be.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const B=yf(L.floating,f.x),V=yf(L.floating,f.y);return s?{..._,transform:"translate("+B+"px, "+V+"px)",...bf(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:V}},[n,s,L.floating,f.x,f.y]);return be.useMemo(()=>({...f,update:j,refs:G,elements:L,floatingStyles:C}),[f,j,G,L,C])}const xf="Popper",[$f,$r]=ht(xf),[Vw,Sf]=$f(xf),Hw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(Vw,{scope:t,anchor:r,onAnchorChange:o},n)},Gw="PopperAnchor",Uw=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Sf(Gw,n),i=u.useRef(null),s=Oe(t,i);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.createElement(we.div,J({},o,{ref:s}))}),Cf="PopperContent",[Yw,g_]=$f(Cf),qw=u.forwardRef((e,t)=>{var n,r,o,a,i,s,l,c;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:g="center",alignOffset:p=0,arrowPadding:m=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:M,...N}=e,T=Sf(Cf,f),[O,F]=u.useState(null),j=Oe(t,me=>F(me)),[H,G]=u.useState(null),L=fs(H),C=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,_=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,B=d+(g!=="center"?"-"+g:""),V=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},D=Array.isArray(b)?b:[b],A=D.length>0,W={padding:V,boundary:D.filter(Kw),altBoundary:A},{refs:ne,floatingStyles:Q,placement:re,isPositioned:oe,middlewareData:ue}=Ww({strategy:"fixed",placement:B,whileElementsMounted:(...me)=>jw(...me,{animationFrame:S==="always"}),elements:{reference:T.anchor},middleware:[vw({mainAxis:h+_,alignmentAxis:p}),x&&bw({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?yw():void 0,...W}),x&&pw({...W}),ww({...W,apply:({elements:me,rects:ye,availableWidth:Ee,availableHeight:Ke})=>{const{width:Xe,height:ot}=ye.reference,vt=me.floating.style;vt.setProperty("--radix-popper-available-width",`${Ee}px`),vt.setProperty("--radix-popper-available-height",`${Ke}px`),vt.setProperty("--radix-popper-anchor-width",`${Xe}px`),vt.setProperty("--radix-popper-anchor-height",`${ot}px`)}}),H&&Bw({element:H,padding:m}),Xw({arrowWidth:C,arrowHeight:_}),E&&mw({strategy:"referenceHidden",...W})]}),[X,le]=Ef(re),U=lt(M);pt(()=>{oe&&(U==null||U())},[oe,U]);const Z=(o=ue.arrow)===null||o===void 0?void 0:o.x,ie=(a=ue.arrow)===null||a===void 0?void 0:a.y,k=((i=ue.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[te,ae]=u.useState();return pt(()=>{O&&ae(window.getComputedStyle(O).zIndex)},[O]),u.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:oe?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(s=ue.transformOrigin)===null||s===void 0?void 0:s.x,(l=ue.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},u.createElement(Yw,{scope:f,placedSide:X,onArrowChange:G,arrowX:Z,arrowY:ie,shouldHideArrow:k},u.createElement(we.div,J({"data-side":X,"data-align":le},N,{ref:j,style:{...N.style,animation:oe?void 0:"none",opacity:(c=ue.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function Kw(e){return e!==null}const Xw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[p,m]=Ef(s),x={start:"0%",center:"50%",end:"100%"}[m],b=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,v=((a=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+g/2;let w="",E="";return p==="bottom"?(w=d?x:`${b}px`,E=`${-g}px`):p==="top"?(w=d?x:`${b}px`,E=`${l.floating.height+g}px`):p==="right"?(w=`${-g}px`,E=d?x:`${v}px`):p==="left"&&(w=`${l.floating.width+g}px`,E=d?x:`${v}px`),{data:{x:w,y:E}}}});function Ef(e){const[t,n="center"]=e.split("-");return[t,n]}const Ta=Hw,Ls=Uw,Fs=qw,js=u.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?pn.createPortal(u.createElement(we.div,J({},o,{ref:t})),r):null}),zs="rovingFocusGroup.onEntryFocus",Zw={bubbles:!1,cancelable:!0},Bs="RovingFocusGroup",[Ws,Tf,Qw]=ga(Bs),[Jw,Sr]=ht(Bs,[Qw]),[Rw,ex]=Jw(Bs),tx=u.forwardRef((e,t)=>u.createElement(Ws.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(Ws.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(nx,J({},e,{ref:t}))))),nx=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,d=u.useRef(null),h=Oe(t,d),g=vr(a),[p=null,m]=wt({prop:i,defaultProp:s,onChange:l}),[x,b]=u.useState(!1),v=lt(c),w=Tf(n),E=u.useRef(!1),[S,M]=u.useState(0);return u.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(zs,v),()=>N.removeEventListener(zs,v)},[v]),u.createElement(Rw,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:u.useCallback(N=>m(N),[m]),onItemShiftTab:u.useCallback(()=>b(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(N=>N+1),[]),onFocusableItemRemove:u.useCallback(()=>M(N=>N-1),[])},u.createElement(we.div,J({tabIndex:x||S===0?-1:0,"data-orientation":r},f,{ref:h,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{E.current=!0}),onFocus:pe(e.onFocus,N=>{const T=!E.current;if(N.target===N.currentTarget&&T&&!x){const O=new CustomEvent(zs,Zw);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const F=w().filter(C=>C.focusable),j=F.find(C=>C.active),H=F.find(C=>C.id===p),L=[j,H,...F].filter(Boolean).map(C=>C.ref.current);Mf(L)}}E.current=!1}),onBlur:pe(e.onBlur,()=>b(!1))})))}),rx="RovingFocusGroupItem",ox=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Wt(),l=a||s,c=ex(rx,n),f=c.currentTabStopId===l,d=Tf(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return u.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),u.createElement(Ws.ItemSlot,{scope:n,id:l,focusable:r,active:o},u.createElement(we.span,J({tabIndex:f?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:pe(e.onMouseDown,p=>{r?c.onItemFocus(l):p.preventDefault()}),onFocus:pe(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:pe(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){c.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const m=sx(p,c.orientation,c.dir);if(m!==void 0){p.preventDefault();let b=d().filter(v=>v.focusable).map(v=>v.ref.current);if(m==="last")b.reverse();else if(m==="prev"||m==="next"){m==="prev"&&b.reverse();const v=b.indexOf(p.currentTarget);b=c.loop?lx(b,v+1):b.slice(v+1)}setTimeout(()=>Mf(b))}})})))}),ax={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ix(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sx(e,t,n){const r=ix(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ax[r]}function Mf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Vs=tx,Hs=ox;var cx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cr=new WeakMap,Ma=new WeakMap,Pa={},Gs=0,Pf=function(e){return e&&(e.host||Pf(e.parentNode))},ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Pf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dx=function(e,t,n,r){var o=ux(t,Array.isArray(e)?e:[e]);Pa[n]||(Pa[n]=new WeakMap);var a=Pa[n],i=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))f(h);else{var g=h.getAttribute(r),p=g!==null&&g!=="false",m=(Cr.get(h)||0)+1,x=(a.get(h)||0)+1;Cr.set(h,m),a.set(h,x),i.push(h),m===1&&p&&Ma.set(h,!0),x===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return f(t),s.clear(),Gs++,function(){i.forEach(function(d){var h=Cr.get(d)-1,g=a.get(d)-1;Cr.set(d,h),a.set(d,g),h||(Ma.has(d)||d.removeAttribute(r),Ma.delete(d)),g||d.removeAttribute(n)}),Gs--,Gs||(Cr=new WeakMap,Cr=new WeakMap,Ma=new WeakMap,Pa={})}},kf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||cx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),dx(r,o,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ht.apply(this,arguments)};function Of(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fx(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ka="right-scroll-bar-position",Oa="width-before-scroll-bar",hx="with-scroll-bars-hidden",px="--removed-body-scroll-bar-size";function mx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gx(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function vx(e,t){return gx(t||null,function(n){return e.forEach(function(r){return mx(r,n)})})}function bx(e){return e}function yx(e,t){t===void 0&&(t=bx);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var f=i;i=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){i.push(f),c()},filter:function(f){return i=i.filter(f),n}}}};return o}function wx(e){e===void 0&&(e={});var t=yx(null);return t.options=Ht({async:!0,ssr:!1},e),t}var Nf=function(e){var t=e.sideCar,n=Of(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return be.createElement(r,Ht({},n))};Nf.isSideCarExport=!0;function xx(e,t){return e.useMedium(t),Nf}var _f=wx(),Us=function(){},Na=be.forwardRef(function(e,t){var n=be.useRef(null),r=be.useState({onScrollCapture:Us,onWheelCapture:Us,onTouchMoveCapture:Us}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,p=e.inert,m=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,v=Of(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,E=vx([n,t]),S=Ht(Ht({},v),o);return be.createElement(be.Fragment,null,f&&be.createElement(w,{sideCar:_f,removeScrollBar:c,shards:d,noIsolation:g,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?be.cloneElement(be.Children.only(s),Ht(Ht({},S),{ref:E})):be.createElement(b,Ht({},S,{className:l,ref:E}),s))});Na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Na.classNames={fullWidth:Oa,zeroRight:ka};var Df,$x=function(){if(Df)return Df;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$x();return t&&e.setAttribute("nonce",t),e}function Cx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ex(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Tx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Sx())&&(Cx(t,n),Ex(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mx=function(){var e=Tx();return function(t,n){be.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Af=function(){var e=Mx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Px={left:0,top:0,right:0,gap:0},Ys=function(e){return parseInt(e||"",10)||0},kx=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ys(n),Ys(r),Ys(o)]},Ox=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Px;var t=kx(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Nx=Af(),_x=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
7
+ .`.concat(hx,` {
8
8
  overflow: hidden `).concat(r,`;
9
- padding-right: `).concat(l,"px ").concat(r,`;
9
+ padding-right: `).concat(s,"px ").concat(r,`;
10
10
  }
11
11
  body {
12
12
  overflow: hidden `).concat(r,`;
@@ -17,75 +17,75 @@ Defaulting to \`null\`.`}const L$=Mp,F$=N$;var Co=typeof globalThis<"u"?globalTh
17
17
  padding-right: `).concat(i,`px;
18
18
  margin-left:0;
19
19
  margin-top:0;
20
- margin-right: `).concat(l,"px ").concat(r,`;
21
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
20
+ margin-right: `).concat(s,"px ").concat(r,`;
21
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
22
22
  }
23
23
 
24
- .`).concat(ni,` {
25
- right: `).concat(l,"px ").concat(r,`;
24
+ .`).concat(ka,` {
25
+ right: `).concat(s,"px ").concat(r,`;
26
26
  }
27
27
 
28
- .`).concat(ri,` {
29
- margin-right: `).concat(l,"px ").concat(r,`;
28
+ .`).concat(Oa,` {
29
+ margin-right: `).concat(s,"px ").concat(r,`;
30
30
  }
31
31
 
32
- .`).concat(ni," .").concat(ni,` {
32
+ .`).concat(ka," .").concat(ka,` {
33
33
  right: 0 `).concat(r,`;
34
34
  }
35
35
 
36
- .`).concat(ri," .").concat(ri,` {
36
+ .`).concat(Oa," .").concat(Oa,` {
37
37
  margin-right: 0 `).concat(r,`;
38
38
  }
39
39
 
40
40
  body {
41
- `).concat(jP,": ").concat(l,`px;
41
+ `).concat(px,": ").concat(s,`px;
42
42
  }
43
- `)},rS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=ge.useMemo(function(){return eS(o)},[o]);return ge.createElement(tS,{styles:nS(a,!t,o,n?"":"!important")})},es=!1;if(typeof window<"u")try{var ai=Object.defineProperty({},"passive",{get:function(){return es=!0,!0}});window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{es=!1}var Nr=es?{passive:!1}:!1,oS=function(e){return e.tagName==="TEXTAREA"},Fh=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oS(e)&&n[t]==="visible")},aS=function(e){return Fh(e,"overflowY")},iS=function(e){return Fh(e,"overflowX")},jh=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Wh(e,n);if(r){var o=zh(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},lS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wh=function(e,t){return e==="v"?aS(t):iS(t)},zh=function(e,t){return e==="v"?lS(t):uS(t)},sS=function(e,t){return e==="h"&&t==="rtl"?-1:1},cS=function(e,t,n,r,o){var a=sS(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,u=t.contains(l),s=!1,d=i>0,f=0,p=0;do{var m=zh(e,l),h=m[0],v=m[1],w=m[2],g=v-w-a*h;(h||g)&&Wh(e,l)&&(f+=g,p+=h),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(d&&(o&&f===0||!o&&i>f)||!d&&(o&&p===0||!o&&-i>p))&&(s=!0),s},ii=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bh=function(e){return[e.deltaX,e.deltaY]},qh=function(e){return e&&"current"in e?e.current:e},fS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dS=function(e){return`
43
+ `)},Dx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=be.useMemo(function(){return Ox(o)},[o]);return be.createElement(Nx,{styles:_x(a,!t,o,n?"":"!important")})},qs=!1;if(typeof window<"u")try{var _a=Object.defineProperty({},"passive",{get:function(){return qs=!0,!0}});window.addEventListener("test",_a,_a),window.removeEventListener("test",_a,_a)}catch{qs=!1}var Er=qs?{passive:!1}:!1,Ax=function(e){return e.tagName==="TEXTAREA"},If=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ax(e)&&n[t]==="visible")},Ix=function(e){return If(e,"overflowY")},Lx=function(e){return If(e,"overflowX")},Lf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Ff(e,n);if(r){var o=jf(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Fx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ff=function(e,t){return e==="v"?Ix(t):Lx(t)},jf=function(e,t){return e==="v"?Fx(t):jx(t)},zx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bx=function(e,t,n,r,o){var a=zx(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,f=i>0,d=0,h=0;do{var g=jf(e,s),p=g[0],m=g[1],x=g[2],b=m-x-a*p;(p||b)&&Ff(e,s)&&(d+=b,h+=p),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(o&&d===0||!o&&i>d)||!f&&(o&&h===0||!o&&-i>h))&&(c=!0),c},Da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zf=function(e){return[e.deltaX,e.deltaY]},Bf=function(e){return e&&"current"in e?e.current:e},Wx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vx=function(e){return`
44
44
  .block-interactivity-`.concat(e,` {pointer-events: none;}
45
45
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46
- `)},pS=0,Dr=[];function hS(e){var t=ge.useRef([]),n=ge.useRef([0,0]),r=ge.useRef(),o=ge.useState(pS++)[0],a=ge.useState(function(){return Lh()})[0],i=ge.useRef(e);ge.useEffect(function(){i.current=e},[e]),ge.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=LP([e.lockRef.current],(e.shards||[]).map(qh),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=ge.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=ii(v),y=n.current,$="deltaX"in v?v.deltaX:y[0]-g[0],S="deltaY"in v?v.deltaY:y[1]-g[1],x,C=v.target,E=Math.abs($)>Math.abs(S)?"h":"v";if("touches"in v&&E==="h"&&C.type==="range")return!1;var M=jh(E,C);if(!M)return!0;if(M?x=E:(x=E==="v"?"h":"v",M=jh(E,C)),!M)return!1;if(!r.current&&"changedTouches"in v&&($||S)&&(r.current=x),!x)return!0;var T=r.current||x;return cS(T,w,v,T==="h"?$:S,!0)},[]),u=ge.useCallback(function(v){var w=v;if(!(!Dr.length||Dr[Dr.length-1]!==a)){var g="deltaY"in w?Bh(w):ii(w),y=t.current.filter(function(x){return x.name===w.type&&x.target===w.target&&fS(x.delta,g)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}if(!y){var $=(i.current.shards||[]).map(qh).filter(Boolean).filter(function(x){return x.contains(w.target)}),S=$.length>0?l(w,$[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),s=ge.useCallback(function(v,w,g,y){var $={name:v,delta:w,target:g,should:y};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(S){return S!==$})},1)},[]),d=ge.useCallback(function(v){n.current=ii(v),r.current=void 0},[]),f=ge.useCallback(function(v){s(v.type,Bh(v),v.target,l(v,e.lockRef.current))},[]),p=ge.useCallback(function(v){s(v.type,ii(v),v.target,l(v,e.lockRef.current))},[]);ge.useEffect(function(){return Dr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Nr),document.addEventListener("touchmove",u,Nr),document.addEventListener("touchstart",d,Nr),function(){Dr=Dr.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,Nr),document.removeEventListener("touchmove",u,Nr),document.removeEventListener("touchstart",d,Nr)}},[]);var m=e.removeScrollBar,h=e.inert;return ge.createElement(ge.Fragment,null,h?ge.createElement(a,{styles:dS(o)}):null,m?ge.createElement(rS,{gapMode:"margin"}):null)}const mS=VP(Ah,hS);var Hh=ge.forwardRef(function(e,t){return ge.createElement(oi,Qt({},e,{ref:t,sideCar:mS}))});Hh.classNames=oi.classNames;const Uh=Hh,ts=["Enter"," "],vS=["ArrowDown","PageUp","Home"],Vh=["ArrowUp","PageDown","End"],gS=[...vS,...Vh],yS={ltr:[...ts,"ArrowRight"],rtl:[...ts,"ArrowLeft"]},bS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},li="Menu",[Do,wS,xS]=Ha(li),[Zn,Gh]=vt(li,[xS,Er,Tr]),ui=Er(),Yh=Tr(),[Kh,An]=Zn(li),[$S,Ao]=Zn(li),_S=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=ui(t),[u,s]=c.useState(null),d=c.useRef(!1),f=ct(a),p=_r(o);return c.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c.createElement(Ja,l,c.createElement(Kh,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:s},c.createElement($S,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:i},r)))},Xh=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ui(n);return c.createElement(Hu,X({},o,r,{ref:t}))}),Rh="MenuPortal",[PS,Zh]=Zn(Rh,{forceMount:void 0}),SS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=An(Rh,t);return c.createElement(PS,{scope:t,forceMount:n},c.createElement(sn,{present:n||a.open},c.createElement(Vu,{asChild:!0,container:o},r)))},At="MenuContent",[OS,ns]=Zn(At),MS=c.forwardRef((e,t)=>{const n=Zh(At,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=An(At,e.__scopeMenu),i=Ao(At,e.__scopeMenu);return c.createElement(Do.Provider,{scope:e.__scopeMenu},c.createElement(sn,{present:r||a.open},c.createElement(Do.Slot,{scope:e.__scopeMenu},i.modal?c.createElement(CS,X({},o,{ref:t})):c.createElement(ES,X({},o,{ref:t})))))}),CS=c.forwardRef((e,t)=>{const n=An(At,e.__scopeMenu),r=c.useRef(null),o=ke(t,r);return c.useEffect(()=>{const a=r.current;if(a)return kh(a)},[]),c.createElement(rs,X({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:de(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),ES=c.forwardRef((e,t)=>{const n=An(At,e.__scopeMenu);return c.createElement(rs,X({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),rs=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...v}=e,w=An(At,n),g=Ao(At,n),y=ui(n),$=Yh(n),S=wS(n),[x,C]=c.useState(null),E=c.useRef(null),M=ke(t,E,w.onContentChange),T=c.useRef(0),j=c.useRef(""),I=c.useRef(0),B=c.useRef(null),Y=c.useRef("right"),q=c.useRef(0),P=h?Uh:c.Fragment,L=h?{as:cn,allowPinchZoom:!0}:void 0,z=N=>{var D,W;const te=j.current+N,J=S().filter(V=>!V.disabled),ae=document.activeElement,re=(D=J.find(V=>V.ref.current===ae))===null||D===void 0?void 0:D.textValue,le=J.map(V=>V.textValue),R=KS(le,te,re),ce=(W=J.find(V=>V.textValue===R))===null||W===void 0?void 0:W.ref.current;(function V(K){j.current=K,window.clearTimeout(T.current),K!==""&&(T.current=window.setTimeout(()=>V(""),1e3))})(te),ce&&setTimeout(()=>ce.focus())};c.useEffect(()=>()=>window.clearTimeout(T.current),[]),Zp();const H=c.useCallback(N=>{var D,W;return Y.current===((D=B.current)===null||D===void 0?void 0:D.side)&&RS(N,(W=B.current)===null||W===void 0?void 0:W.area)},[]);return c.createElement(OS,{scope:n,searchRef:j,onItemEnter:c.useCallback(N=>{H(N)&&N.preventDefault()},[H]),onItemLeave:c.useCallback(N=>{var D;H(N)||((D=E.current)===null||D===void 0||D.focus(),C(null))},[H]),onTriggerLeave:c.useCallback(N=>{H(N)&&N.preventDefault()},[H]),pointerGraceTimerRef:I,onPointerGraceIntentChange:c.useCallback(N=>{B.current=N},[])},c.createElement(P,L,c.createElement(eh,{asChild:!0,trapped:o,onMountAutoFocus:de(a,N=>{var D;N.preventDefault(),(D=E.current)===null||D===void 0||D.focus()}),onUnmountAutoFocus:i},c.createElement(ku,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m},c.createElement(Xu,X({asChild:!0},$,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:C,onEntryFocus:de(u,N=>{g.isUsingKeyboardRef.current||N.preventDefault()})}),c.createElement(Uu,X({role:"menu","aria-orientation":"vertical","data-state":am(w.open),"data-radix-menu-content":"",dir:g.dir},y,v,{ref:M,style:{outline:"none",...v.style},onKeyDown:de(v.onKeyDown,N=>{const W=N.target.closest("[data-radix-menu-content]")===N.currentTarget,te=N.ctrlKey||N.altKey||N.metaKey,J=N.key.length===1;W&&(N.key==="Tab"&&N.preventDefault(),!te&&J&&z(N.key));const ae=E.current;if(N.target!==ae||!gS.includes(N.key))return;N.preventDefault();const le=S().filter(R=>!R.disabled).map(R=>R.ref.current);Vh.includes(N.key)&&le.reverse(),GS(le)}),onBlur:de(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(T.current),j.current="")}),onPointerMove:de(e.onPointerMove,Io(N=>{const D=N.target,W=q.current!==N.clientX;if(N.currentTarget.contains(D)&&W){const te=N.clientX>q.current?"right":"left";Y.current=te,q.current=N.clientX}}))})))))))}),Qh=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(we.div,X({role:"group"},r,{ref:t}))}),TS=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(we.div,X({},r,{ref:t}))}),os="MenuItem",Jh="menu.itemSelect",as=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=Ao(os,e.__scopeMenu),l=ns(os,e.__scopeMenu),u=ke(t,a),s=c.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const p=new CustomEvent(Jh,{bubbles:!0,cancelable:!0});f.addEventListener(Jh,m=>r==null?void 0:r(m),{once:!0}),sp(f,p),p.defaultPrevented?s.current=!1:i.onClose()}};return c.createElement(em,X({},o,{ref:u,disabled:n,onClick:de(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,f),s.current=!0},onPointerUp:de(e.onPointerUp,f=>{var p;s.current||(p=f.currentTarget)===null||p===void 0||p.click()}),onKeyDown:de(e.onKeyDown,f=>{const p=l.searchRef.current!=="";n||p&&f.key===" "||ts.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),em=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=ns(os,n),l=Yh(n),u=c.useRef(null),s=ke(t,u),[d,f]=c.useState(!1),[p,m]=c.useState("");return c.useEffect(()=>{const h=u.current;if(h){var v;m(((v=h.textContent)!==null&&v!==void 0?v:"").trim())}},[a.children]),c.createElement(Do.ItemSlot,{scope:n,disabled:r,textValue:o??p},c.createElement(Ru,X({asChild:!0},l,{focusable:!r}),c.createElement(we.div,X({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:s,onPointerMove:de(e.onPointerMove,Io(h=>{r?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:de(e.onPointerLeave,Io(h=>i.onItemLeave(h))),onFocus:de(e.onFocus,()=>f(!0)),onBlur:de(e.onBlur,()=>f(!1))}))))}),kS=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.createElement(nm,{scope:e.__scopeMenu,checked:n},c.createElement(as,X({role:"menuitemcheckbox","aria-checked":ci(n)?"mixed":n},o,{ref:t,"data-state":is(n),onSelect:de(o.onSelect,()=>r==null?void 0:r(ci(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),NS="MenuRadioGroup",[DS,AS]=Zn(NS,{value:void 0,onValueChange:()=>{}}),IS=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ct(r);return c.createElement(DS,{scope:e.__scopeMenu,value:n,onValueChange:a},c.createElement(Qh,X({},o,{ref:t})))}),LS="MenuRadioItem",FS=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=AS(LS,e.__scopeMenu),a=n===o.value;return c.createElement(nm,{scope:e.__scopeMenu,checked:a},c.createElement(as,X({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":is(a),onSelect:de(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),tm="MenuItemIndicator",[nm,jS]=Zn(tm,{checked:!1}),WS=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=jS(tm,n);return c.createElement(sn,{present:r||ci(a.checked)||a.checked===!0},c.createElement(we.span,X({},o,{ref:t,"data-state":is(a.checked)})))}),zS=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.createElement(we.div,X({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),rm="MenuSub",[BS,om]=Zn(rm),qS=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=An(rm,t),i=ui(t),[l,u]=c.useState(null),[s,d]=c.useState(null),f=ct(o);return c.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.createElement(Ja,i,c.createElement(Kh,{scope:t,open:r,onOpenChange:f,content:s,onContentChange:d},c.createElement(BS,{scope:t,contentId:Rt(),triggerId:Rt(),trigger:l,onTriggerChange:u},n)))},si="MenuSubTrigger",HS=c.forwardRef((e,t)=>{const n=An(si,e.__scopeMenu),r=Ao(si,e.__scopeMenu),o=om(si,e.__scopeMenu),a=ns(si,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=a,s={__scopeMenu:e.__scopeMenu},d=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>d,[d]),c.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),u(null)}},[l,u]),c.createElement(Xh,X({asChild:!0},s),c.createElement(em,X({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":am(n.open)},e,{ref:Na(t,o.onTriggerChange),onClick:f=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:de(e.onPointerMove,Io(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:de(e.onPointerLeave,Io(f=>{var p;d();const m=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(m){var h;const v=(h=n.content)===null||h===void 0?void 0:h.dataset.side,w=v==="right",g=w?-5:5,y=m[w?"left":"right"],$=m[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+g,y:f.clientY},{x:y,y:m.top},{x:$,y:m.top},{x:$,y:m.bottom},{x:y,y:m.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:de(e.onKeyDown,f=>{const p=a.searchRef.current!=="";if(!(e.disabled||p&&f.key===" ")&&yS[r.dir].includes(f.key)){var m;n.onOpenChange(!0),(m=n.content)===null||m===void 0||m.focus(),f.preventDefault()}})})))}),US="MenuSubContent",VS=c.forwardRef((e,t)=>{const n=Zh(At,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=An(At,e.__scopeMenu),i=Ao(At,e.__scopeMenu),l=om(US,e.__scopeMenu),u=c.useRef(null),s=ke(t,u);return c.createElement(Do.Provider,{scope:e.__scopeMenu},c.createElement(sn,{present:r||a.open},c.createElement(Do.Slot,{scope:e.__scopeMenu},c.createElement(rs,X({id:l.contentId,"aria-labelledby":l.triggerId},o,{ref:s,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=u.current)===null||f===void 0||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:de(e.onFocusOutside,d=>{d.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:de(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:de(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),p=bS[i.dir].includes(d.key);if(f&&p){var m;a.onOpenChange(!1),(m=l.trigger)===null||m===void 0||m.focus(),d.preventDefault()}})})))))});function am(e){return e?"open":"closed"}function ci(e){return e==="indeterminate"}function is(e){return ci(e)?"indeterminate":e?"checked":"unchecked"}function GS(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function YS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function KS(e,t,n){const o=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=YS(e,Math.max(a,0));o.length===1&&(i=i.filter(s=>s!==n));const u=i.find(s=>s.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function XS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,u=t[a].y,s=t[i].x,d=t[i].y;u>r!=d>r&&n<(s-l)*(r-u)/(d-u)+l&&(o=!o)}return o}function RS(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return XS(n,t)}function Io(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ZS=_S,QS=Xh,JS=SS,eO=MS,tO=Qh,nO=TS,rO=as,oO=kS,aO=IS,iO=FS,lO=WS,uO=zS,sO=qS,cO=HS,fO=VS,im="DropdownMenu",[dO,_j]=vt(im,[Gh]),Ze=Gh(),[pO,lm]=dO(im),hO=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=Ze(t),s=c.useRef(null),[d=!1,f]=_t({prop:o,defaultProp:a,onChange:i});return c.createElement(pO,{scope:t,triggerId:Rt(),triggerRef:s,contentId:Rt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:l},c.createElement(ZS,X({},u,{open:d,onOpenChange:f,dir:r,modal:l}),n))},mO="DropdownMenuTrigger",vO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=lm(mO,n),i=Ze(n);return c.createElement(QS,X({asChild:!0},i),c.createElement(we.button,X({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Na(t,a.triggerRef),onPointerDown:de(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:de(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),gO=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ze(t);return c.createElement(JS,X({},r,n))},yO="DropdownMenuContent",bO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lm(yO,n),a=Ze(n),i=c.useRef(!1);return c.createElement(eO,X({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:de(e.onCloseAutoFocus,l=>{var u;i.current||(u=o.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:de(e.onInteractOutside,l=>{const u=l.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0,d=u.button===2||s;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),wO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(tO,X({},o,r,{ref:t}))}),xO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(nO,X({},o,r,{ref:t}))}),$O=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(rO,X({},o,r,{ref:t}))}),_O=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(oO,X({},o,r,{ref:t}))}),PO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(aO,X({},o,r,{ref:t}))}),SO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(iO,X({},o,r,{ref:t}))}),OO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(lO,X({},o,r,{ref:t}))}),MO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(uO,X({},o,r,{ref:t}))}),CO=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ze(t),[l=!1,u]=_t({prop:r,defaultProp:a,onChange:o});return c.createElement(sO,X({},i,{open:l,onOpenChange:u}),n)},EO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(cO,X({},o,r,{ref:t}))}),TO=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return c.createElement(fO,X({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),kO=hO,NO=vO,um=gO,sm=bO,cm=wO,fm=xO,dm=$O,pm=_O,hm=PO,mm=SO,vm=OO,gm=MO,DO=CO,ym=EO,bm=TO,ls=kO,us=NO,wm=um,xm=DO,fi=c.forwardRef(({className:e,...t},n)=>_.jsx(hm,{ref:n,className:be("w-full",e),...t}));fi.displayName=hm.displayName;const di=c.forwardRef(({className:e,...t},n)=>_.jsx(cm,{ref:n,className:be("w-full",e),...t}));di.displayName=cm.displayName;const ss=c.forwardRef(({className:e,children:t,...n},r)=>_.jsxs(ym,{ref:r,className:be("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,_.jsx(Gx,{className:"ml-auto h-4 w-4"})]}));ss.displayName=ym.displayName;const cs=c.forwardRef(({className:e,...t},n)=>_.jsx(bm,{ref:n,className:be("rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...t}));cs.displayName=bm.displayName;const pi=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>_.jsx(um,{children:_.jsx("div",{className:"rabbit-ds ",children:_.jsx(sm,{ref:r,sideOffset:t,className:be("z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...n})})}));pi.displayName=sm.displayName;const hi=c.forwardRef(({className:e,...t},n)=>_.jsx(dm,{ref:n,className:be("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));hi.displayName=dm.displayName;const mi=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>_.jsxs(pm,{ref:o,className:be("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[_.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:_.jsx(vm,{children:_.jsx(Aa,{className:"h-4 w-4 text-sky-800"})})}),t]}));mi.displayName=pm.displayName;const vi=c.forwardRef(({className:e,children:t,...n},r)=>_.jsxs(mm,{ref:r,className:be("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[state=checked]:bg-card-bg-focus data-[state=checked]:text-card-text-focus",e),...n,children:[_.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:_.jsx(vm,{children:_.jsx(Aa,{className:"h-4 w-4"})})}),t]}));vi.displayName=mm.displayName;const gi=c.forwardRef(({className:e,...t},n)=>_.jsx(fm,{ref:n,className:be("px-2 py-1.5 text-sm font-semibold",e),...t}));gi.displayName=fm.displayName;const fs=c.forwardRef(({className:e,...t},n)=>_.jsx(gm,{ref:n,className:be("h-px w-full bg-athens-gray-100",e),...t}));fs.displayName=gm.displayName;const $m=c.forwardRef((e,t)=>c.createElement(we.span,X({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),AO=$m,IO=[" ","Enter","ArrowUp","ArrowDown"],LO=[" ","Enter"],yi="Select",[bi,ds,FO]=Ha(yi),[Ar,Pj]=vt(yi,[FO,Er]),ps=Er(),[jO,Qn]=Ar(yi),[WO,zO]=Ar(yi),BO=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:u,dir:s,name:d,autoComplete:f,disabled:p,required:m}=e,h=ps(t),[v,w]=c.useState(null),[g,y]=c.useState(null),[$,S]=c.useState(!1),x=_r(s),[C=!1,E]=_t({prop:r,defaultProp:o,onChange:a}),[M,T]=_t({prop:i,defaultProp:l,onChange:u}),j=c.useRef(null),I=v?!!v.closest("form"):!0,[B,Y]=c.useState(new Set),q=Array.from(B).map(P=>P.props.value).join(";");return c.createElement(Ja,h,c.createElement(jO,{required:m,scope:t,trigger:v,onTriggerChange:w,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:$,onValueNodeHasChildrenChange:S,contentId:Rt(),value:M,onValueChange:T,open:C,onOpenChange:E,dir:x,triggerPointerDownPosRef:j,disabled:p},c.createElement(bi.Provider,{scope:t},c.createElement(WO,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(P=>{Y(L=>new Set(L).add(P))},[]),onNativeOptionRemove:c.useCallback(P=>{Y(L=>{const z=new Set(L);return z.delete(P),z})},[])},n)),I?c.createElement(Cm,{key:q,"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:M,onChange:P=>T(P.target.value),disabled:p},M===void 0?c.createElement("option",{value:""}):null,Array.from(B)):null))},qO="SelectTrigger",HO=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ps(n),i=Qn(qO,n),l=i.disabled||r,u=ke(t,i.onTriggerChange),s=ds(n),[d,f,p]=Em(h=>{const v=s().filter(y=>!y.disabled),w=v.find(y=>y.value===i.value),g=Tm(v,h,w);g!==void 0&&i.onValueChange(g.value)}),m=()=>{l||(i.onOpenChange(!0),p())};return c.createElement(Hu,X({asChild:!0},a),c.createElement(we.button,X({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Mm(i.value)?"":void 0},o,{ref:u,onClick:de(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:de(o.onPointerDown,h=>{const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(m(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:de(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&IO.includes(h.key)&&(m(),h.preventDefault())})})))}),UO="SelectValue",VO=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,u=Qn(UO,n),{onValueNodeHasChildrenChange:s}=u,d=a!==void 0,f=ke(t,u.onValueNodeChange);return gt(()=>{s(d)},[s,d]),c.createElement(we.span,X({},l,{ref:f,style:{pointerEvents:"none"}}),Mm(u.value)?c.createElement(c.Fragment,null,i):a)}),GO=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.createElement(we.span,X({"aria-hidden":!0},o,{ref:t}),r||"▼")}),YO=e=>c.createElement(Vu,X({asChild:!0},e)),Ir="SelectContent",KO=c.forwardRef((e,t)=>{const n=Qn(Ir,e.__scopeSelect),[r,o]=c.useState();if(gt(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Cn.createPortal(c.createElement(_m,{scope:e.__scopeSelect},c.createElement(bi.Slot,{scope:e.__scopeSelect},c.createElement("div",null,e.children))),a):null}return c.createElement(XO,X({},e,{ref:t}))}),mn=10,[_m,wi]=Ar(Ir),XO=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:u,align:s,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:v,avoidCollisions:w,...g}=e,y=Qn(Ir,n),[$,S]=c.useState(null),[x,C]=c.useState(null),E=ke(t,R=>S(R)),[M,T]=c.useState(null),[j,I]=c.useState(null),B=ds(n),[Y,q]=c.useState(!1),P=c.useRef(!1);c.useEffect(()=>{if($)return kh($)},[$]),Zp();const L=c.useCallback(R=>{const[ce,...V]=B().map(A=>A.ref.current),[K]=V.slice(-1),ie=document.activeElement;for(const A of R)if(A===ie||(A==null||A.scrollIntoView({block:"nearest"}),A===ce&&x&&(x.scrollTop=0),A===K&&x&&(x.scrollTop=x.scrollHeight),A==null||A.focus(),document.activeElement!==ie))return},[B,x]),z=c.useCallback(()=>L([M,$]),[L,M,$]);c.useEffect(()=>{Y&&z()},[Y,z]);const{onOpenChange:H,triggerPointerDownPosRef:N}=y;c.useEffect(()=>{if($){let R={x:0,y:0};const ce=K=>{var ie,A,pe,me;R={x:Math.abs(Math.round(K.pageX)-((ie=(A=N.current)===null||A===void 0?void 0:A.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(K.pageY)-((pe=(me=N.current)===null||me===void 0?void 0:me.y)!==null&&pe!==void 0?pe:0))}},V=K=>{R.x<=10&&R.y<=10?K.preventDefault():$.contains(K.target)||H(!1),document.removeEventListener("pointermove",ce),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",V,{capture:!0})}}},[$,H,N]),c.useEffect(()=>{const R=()=>H(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[H]);const[D,W]=Em(R=>{const ce=B().filter(ie=>!ie.disabled),V=ce.find(ie=>ie.ref.current===document.activeElement),K=Tm(ce,R,V);K&&setTimeout(()=>K.ref.current.focus())}),te=c.useCallback((R,ce,V)=>{const K=!P.current&&!V;(y.value!==void 0&&y.value===ce||K)&&(T(R),K&&(P.current=!0))},[y.value]),J=c.useCallback(()=>$==null?void 0:$.focus(),[$]),ae=c.useCallback((R,ce,V)=>{const K=!P.current&&!V;(y.value!==void 0&&y.value===ce||K)&&I(R)},[y.value]),re=r==="popper"?Pm:RO,le=re===Pm?{side:l,sideOffset:u,align:s,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:v,avoidCollisions:w}:{};return c.createElement(_m,{scope:n,content:$,viewport:x,onViewportChange:C,itemRefCallback:te,selectedItem:M,onItemLeave:J,itemTextRefCallback:ae,focusSelectedItem:z,selectedItemText:j,position:r,isPositioned:Y,searchRef:D},c.createElement(Uh,{as:cn,allowPinchZoom:!0},c.createElement(eh,{asChild:!0,trapped:y.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:de(o,R=>{var ce;(ce=y.trigger)===null||ce===void 0||ce.focus({preventScroll:!0}),R.preventDefault()})},c.createElement(ku,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},c.createElement(re,X({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:R=>R.preventDefault()},g,le,{onPlaced:()=>q(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:de(g.onKeyDown,R=>{const ce=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!ce&&R.key.length===1&&W(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let K=B().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(R.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const ie=R.target,A=K.indexOf(ie);K=K.slice(A+1)}setTimeout(()=>L(K)),R.preventDefault()}})}))))))}),RO=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Qn(Ir,n),i=wi(Ir,n),[l,u]=c.useState(null),[s,d]=c.useState(null),f=ke(t,E=>d(E)),p=ds(n),m=c.useRef(!1),h=c.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:g,focusSelectedItem:y}=i,$=c.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&s&&v&&w&&g){const E=a.trigger.getBoundingClientRect(),M=s.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),j=g.getBoundingClientRect();if(a.dir!=="rtl"){const ie=j.left-M.left,A=T.left-ie,pe=E.left-A,me=E.width+pe,Oe=Math.max(me,M.width),Ae=window.innerWidth-mn,Ue=qa(A,[mn,Ae-Oe]);l.style.minWidth=me+"px",l.style.left=Ue+"px"}else{const ie=M.right-j.right,A=window.innerWidth-T.right-ie,pe=window.innerWidth-E.right-A,me=E.width+pe,Oe=Math.max(me,M.width),Ae=window.innerWidth-mn,Ue=qa(A,[mn,Ae-Oe]);l.style.minWidth=me+"px",l.style.right=Ue+"px"}const I=p(),B=window.innerHeight-mn*2,Y=v.scrollHeight,q=window.getComputedStyle(s),P=parseInt(q.borderTopWidth,10),L=parseInt(q.paddingTop,10),z=parseInt(q.borderBottomWidth,10),H=parseInt(q.paddingBottom,10),N=P+L+Y+H+z,D=Math.min(w.offsetHeight*5,N),W=window.getComputedStyle(v),te=parseInt(W.paddingTop,10),J=parseInt(W.paddingBottom,10),ae=E.top+E.height/2-mn,re=B-ae,le=w.offsetHeight/2,R=w.offsetTop+le,ce=P+L+R,V=N-ce;if(ce<=ae){const ie=w===I[I.length-1].ref.current;l.style.bottom="0px";const A=s.clientHeight-v.offsetTop-v.offsetHeight,pe=Math.max(re,le+(ie?J:0)+A+z),me=ce+pe;l.style.height=me+"px"}else{const ie=w===I[0].ref.current;l.style.top="0px";const pe=Math.max(ae,P+v.offsetTop+(ie?te:0)+le)+V;l.style.height=pe+"px",v.scrollTop=ce-ae+v.offsetTop}l.style.margin=`${mn}px 0`,l.style.minHeight=D+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,l,s,v,w,g,a.dir,r]);gt(()=>$(),[$]);const[S,x]=c.useState();gt(()=>{s&&x(window.getComputedStyle(s).zIndex)},[s]);const C=c.useCallback(E=>{E&&h.current===!0&&($(),y==null||y(),h.current=!1)},[$,y]);return c.createElement(ZO,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:C},c.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S}},c.createElement(we.div,X({},o,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Pm=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=mn,...a}=e,i=ps(n);return c.createElement(Uu,X({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ZO,QO]=Ar(Ir,{}),Sm="SelectViewport",JO=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=wi(Sm,n),a=QO(Sm,n),i=ke(t,o.onViewportChange),l=c.useRef(0);return c.createElement(c.Fragment,null,c.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),c.createElement(bi.Slot,{scope:n},c.createElement(we.div,X({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:de(r.onScroll,u=>{const s=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=a;if(f!=null&&f.current&&d){const p=Math.abs(l.current-s.scrollTop);if(p>0){const m=window.innerHeight-mn*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),w=Math.max(h,v);if(w<m){const g=w+p,y=Math.min(m,g),$=g-y;d.style.height=y+"px",d.style.bottom==="0px"&&(s.scrollTop=$>0?$:0,d.style.justifyContent="flex-end")}}}l.current=s.scrollTop})}))))}),eM="SelectGroup",[tM,nM]=Ar(eM),rM=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rt();return c.createElement(tM,{scope:n,id:o},c.createElement(we.div,X({role:"group","aria-labelledby":o},r,{ref:t})))}),oM="SelectLabel",aM=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=nM(oM,n);return c.createElement(we.div,X({id:o.id},r,{ref:t}))}),hs="SelectItem",[iM,Om]=Ar(hs),lM=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Qn(hs,n),u=wi(hs,n),s=l.value===r,[d,f]=c.useState(a??""),[p,m]=c.useState(!1),h=ke(t,g=>{var y;return(y=u.itemRefCallback)===null||y===void 0?void 0:y.call(u,g,r,o)}),v=Rt(),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.createElement(iM,{scope:n,value:r,disabled:o,textId:v,isSelected:s,onItemTextChange:c.useCallback(g=>{f(y=>{var $;return y||(($=g==null?void 0:g.textContent)!==null&&$!==void 0?$:"").trim()})},[])},c.createElement(bi.ItemSlot,{scope:n,value:r,disabled:o,textValue:d},c.createElement(we.div,X({role:"option","aria-labelledby":v,"data-highlighted":p?"":void 0,"aria-selected":s&&p,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:h,onFocus:de(i.onFocus,()=>m(!0)),onBlur:de(i.onBlur,()=>m(!1)),onPointerUp:de(i.onPointerUp,w),onPointerMove:de(i.onPointerMove,g=>{if(o){var y;(y=u.onItemLeave)===null||y===void 0||y.call(u)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:de(i.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var y;(y=u.onItemLeave)===null||y===void 0||y.call(u)}}),onKeyDown:de(i.onKeyDown,g=>{var y;((y=u.searchRef)===null||y===void 0?void 0:y.current)!==""&&g.key===" "||(LO.includes(g.key)&&w(),g.key===" "&&g.preventDefault())})}))))}),xi="SelectItemText",uM=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Qn(xi,n),l=wi(xi,n),u=Om(xi,n),s=zO(xi,n),[d,f]=c.useState(null),p=ke(t,g=>f(g),u.onItemTextChange,g=>{var y;return(y=l.itemTextRefCallback)===null||y===void 0?void 0:y.call(l,g,u.value,u.disabled)}),m=d==null?void 0:d.textContent,h=c.useMemo(()=>c.createElement("option",{key:u.value,value:u.value,disabled:u.disabled},m),[u.disabled,u.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=s;return gt(()=>(v(h),()=>w(h)),[v,w,h]),c.createElement(c.Fragment,null,c.createElement(we.span,X({id:u.textId},a,{ref:p})),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Cn.createPortal(a.children,i.valueNode):null)}),sM="SelectItemIndicator",cM=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Om(sM,n).isSelected?c.createElement(we.span,X({"aria-hidden":!0},r,{ref:t})):null}),fM=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.createElement(we.div,X({"aria-hidden":!0},r,{ref:t}))});function Mm(e){return e===""||e===void 0}const Cm=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=c.useRef(null),a=ke(t,o),i=gu(n);return c.useEffect(()=>{const l=o.current,u=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==n&&d){const f=new Event("change",{bubbles:!0});d.call(l,n),l.dispatchEvent(f)}},[i,n]),c.createElement($m,{asChild:!0},c.createElement("select",X({},r,{ref:a,defaultValue:n})))});Cm.displayName="BubbleSelect";function Em(e){const t=ct(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const l=n.current+i;t(l),function u(s){n.current=s,window.clearTimeout(r.current),s!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(l)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Tm(e,t,n){const o=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=dM(e,Math.max(a,0));o.length===1&&(i=i.filter(s=>s!==n));const u=i.find(s=>s.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function dM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const pM=BO,km=HO,hM=VO,mM=GO,vM=YO,Nm=KO,gM=JO,yM=rM,Dm=aM,Am=lM,bM=uM,wM=cM,Im=fM,xM=pM,$M=yM,_M=hM,Lm=c.forwardRef(({className:e,children:t,...n},r)=>_.jsx("div",{className:"rabbit-ds",children:_.jsxs(km,{ref:r,className:be("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,_.jsx(mM,{asChild:!0,children:_.jsx(wu,{className:"h-4 w-4"})})]})}));Lm.displayName=km.displayName;const Fm=c.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>_.jsx(vM,{children:_.jsx(Nm,{ref:o,className:be("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:_.jsx(gM,{className:be("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Fm.displayName=Nm.displayName;const jm=c.forwardRef(({className:e,...t},n)=>_.jsx(Dm,{ref:n,className:be("py-1.5 px-2 text-sm font-semibold",e),...t}));jm.displayName=Dm.displayName;const Wm=c.forwardRef(({className:e,children:t,...n},r)=>_.jsxs(Am,{ref:r,className:be("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[_.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:_.jsx(wM,{children:_.jsx(Aa,{className:"h-4 w-4 text-sky-800"})})}),_.jsx(bM,{children:t})]}));Wm.displayName=Am.displayName;const zm=c.forwardRef(({className:e,...t},n)=>_.jsx(Im,{ref:n,className:be("-mx-1 my-1 h-px bg-muted",e),...t}));zm.displayName=Im.displayName;const[$i,Sj]=vt("Tooltip",[Er]),ms=Er(),PM="TooltipProvider",SM=700,vs="tooltip.open",[OM,gs]=$i(PM),MM=e=>{const{__scopeTooltip:t,delayDuration:n=SM,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=c.useState(!0),u=c.useRef(!1),s=c.useRef(0);return c.useEffect(()=>{const d=s.current;return()=>window.clearTimeout(d)},[]),c.createElement(OM,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(s.current),l(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:c.useCallback(d=>{u.current=d},[]),disableHoverableContent:o},a)},ys="Tooltip",[CM,Lo]=$i(ys),EM=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,u=gs(ys,e.__scopeTooltip),s=ms(t),[d,f]=c.useState(null),p=Rt(),m=c.useRef(0),h=i??u.disableHoverableContent,v=l??u.delayDuration,w=c.useRef(!1),[g=!1,y]=_t({prop:r,defaultProp:o,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(vs))):u.onClose(),a==null||a(E)}}),$=c.useMemo(()=>g?w.current?"delayed-open":"instant-open":"closed",[g]),S=c.useCallback(()=>{window.clearTimeout(m.current),w.current=!1,y(!0)},[y]),x=c.useCallback(()=>{window.clearTimeout(m.current),y(!1)},[y]),C=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,y(!0)},v)},[v,y]);return c.useEffect(()=>()=>window.clearTimeout(m.current),[]),c.createElement(Ja,s,c.createElement(CM,{scope:t,contentId:p,open:g,stateAttribute:$,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayed?C():S()},[u.isOpenDelayed,C,S]),onTriggerLeave:c.useCallback(()=>{h?x():window.clearTimeout(m.current)},[x,h]),onOpen:S,onClose:x,disableHoverableContent:h},n))},Bm="TooltipTrigger",TM=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Lo(Bm,n),a=gs(Bm,n),i=ms(n),l=c.useRef(null),u=ke(t,l,o.onTriggerChange),s=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>s.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.createElement(Hu,X({asChild:!0},i),c.createElement(we.button,X({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:de(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:de(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:de(e.onPointerDown,()=>{s.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:de(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:de(e.onBlur,o.onClose),onClick:de(e.onClick,o.onClose)})))}),qm="TooltipPortal",[kM,NM]=$i(qm,{forceMount:void 0}),DM=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Lo(qm,t);return c.createElement(kM,{scope:t,forceMount:n},c.createElement(sn,{present:n||a.open},c.createElement(Vu,{asChild:!0,container:o},r)))},Fo="TooltipContent",AM=c.forwardRef((e,t)=>{const n=NM(Fo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Lo(Fo,e.__scopeTooltip);return c.createElement(sn,{present:r||i.open},i.disableHoverableContent?c.createElement(Hm,X({side:o},a,{ref:t})):c.createElement(IM,X({side:o},a,{ref:t})))}),IM=c.forwardRef((e,t)=>{const n=Lo(Fo,e.__scopeTooltip),r=gs(Fo,e.__scopeTooltip),o=c.useRef(null),a=ke(t,o),[i,l]=c.useState(null),{trigger:u,onClose:s}=n,d=o.current,{onPointerInTransitChange:f}=r,p=c.useCallback(()=>{l(null),f(!1)},[f]),m=c.useCallback((h,v)=>{const w=h.currentTarget,g={x:h.clientX,y:h.clientY},y=FM(g,w.getBoundingClientRect()),$=jM(g,y),S=WM(v.getBoundingClientRect()),x=BM([...$,...S]);l(x),f(!0)},[f]);return c.useEffect(()=>()=>p(),[p]),c.useEffect(()=>{if(u&&d){const h=w=>m(w,d),v=w=>m(w,u);return u.addEventListener("pointerleave",h),d.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",v)}}},[u,d,m,p]),c.useEffect(()=>{if(i){const h=v=>{const w=v.target,g={x:v.clientX,y:v.clientY},y=(u==null?void 0:u.contains(w))||(d==null?void 0:d.contains(w)),$=!zM(g,i);y?p():$&&(p(),s())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[u,d,i,s,p]),c.createElement(Hm,X({},e,{ref:a}))}),[LM,Oj]=$i(ys,{isInside:!1}),Hm=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,u=Lo(Fo,n),s=ms(n),{onClose:d}=u;return c.useEffect(()=>(document.addEventListener(vs,d),()=>document.removeEventListener(vs,d)),[d]),c.useEffect(()=>{if(u.trigger){const f=p=>{const m=p.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),c.createElement(ku,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d},c.createElement(Uu,X({"data-state":u.stateAttribute},s,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),c.createElement(up,null,r),c.createElement(LM,{scope:n,isInside:!0},c.createElement(AO,{id:u.contentId,role:"tooltip"},o||r))))});function FM(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function jM(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function WM(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function zM(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,u=t[a].y,s=t[i].x,d=t[i].y;u>r!=d>r&&n<(s-l)*(r-u)/(d-u)+l&&(o=!o)}return o}function BM(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),qM(t)}function qM(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const HM=MM,UM=EM,VM=TM,GM=DM,Um=AM,Vm=HM,Gm=UM,Ym=VM,Km=GM,bs=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>_.jsx(Um,{ref:r,sideOffset:t,className:be("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs 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",e,"rabbit-ds"),...n}));bs.displayName=Um.displayName;const YM=yt(["rabbit-ds relative h-14 w-14 font-sans rounded-lg text-3xs text-dark-medium font-normal justify-center items-center flex transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:text-card-text-hover","focus:outline-1 focus:outline-offset-2 focus:bg-card-bg-focus focus:text-card-text-focus","active:bg-card-bg-focus active:text-card-text-focus","is-active:bg-card-bg-focus is-active:text-card-text-focus "],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),KM=yt("flex items-center justify-center",{variants:{variant:{default:"",withNotification:"mr-4",withMenu:"",gradient:""},iconSize:{normal:"h-6 w-6 p-1",large:"h-10 w-10"}},defaultVariants:{variant:"default",iconSize:"normal"}}),XM=yt("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [background-clip:text] [-webkit-background-clip:text]"}},defaultVariants:{variant:"default"}}),Xm=c.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,asChild:a=!1,isActive:i=!1,children:l,...u},s)=>{const d=a?cn:"button",f=r;return _.jsx("div",{className:"rabbit-ds",children:_.jsxs(d,{className:be(YM({variant:t,className:e})),ref:s,"data-active":i,...u,children:[_.jsxs("div",{className:"flex flex-col items-center",children:[_.jsxs("div",{className:"relative flex items-center justify-center",children:[_.jsx("div",{className:be(KM({variant:t,iconSize:o}),"flex-initial"),children:_.jsx(f,{})}),t==="withNotification"&&_.jsxs("div",{className:"bg-functional-warn flex items-center justify-center h-5 w-6 text-xs rounded-xl absolute left-3 text-white px-2",children:[_.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),_.jsx("div",{className:be(XM({variant:t==="gradient"?t:"default"})),children:l})]}),t==="withMenu"&&_.jsx("div",{className:"flex items-center justify-center absolute right-0 w-3 h-14",children:_.jsx(Xx,{height:"14px",width:"14px"})})]})})});Xm.displayName="NavButton";const Rm=c.createContext({}),RM=()=>c.useContext(Rm);function Zm({isActive:e,isDisabled:t,className:n,children:r,...o}){const a=c.useMemo(()=>({isActive:e,isDisabled:t}),[e,t]);return _.jsx(Rm.Provider,{value:a,children:_.jsx("div",{className:"rabbit-ds",children:_.jsx("button",{className:be("flex items-center px-3 py-1 gap-2 text-dark-medium w-full cursor-pointer rounded-lg","hover:text-card-text-hover","is-active:bg-card-bg-focus is-active:text-card-text-focus","is-disabled:opacity-50 is-disabled:pointer-events-none",n),type:"button","data-active":e,"data-disabled":t,...o,children:r})})})}function ZM({title:e,subTitle:t}){const{isActive:n}=RM();return _.jsxs("div",{className:"flex flex-col items-start",children:[_.jsx("span",{className:"text-sm is-active:font-semibold","data-active":n,children:e}),_.jsx("span",{className:"text-xs",children:t})]})}const QM=yt("",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function JM({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>_.jsx("img",{src:e,alt:""}):e;return _.jsx("div",{className:be(QM({iconSize:t,shape:r}),n),children:_.jsx(o,{})})}const eC=yt("ml-auto",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function tC({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>_.jsx("img",{src:e,alt:"right icon"}):e;return _.jsx("div",{className:be(eC({iconSize:t,shape:r}),n),children:_.jsx(o,{})})}const Qm="Tabs",[nC,Mj]=vt(Qm,[Tr]),Jm=Tr(),[rC,ws]=nC(Qm),oC=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:u="automatic",...s}=e,d=_r(l),[f,p]=_t({prop:r,onChange:o,defaultProp:a});return c.createElement(rC,{scope:n,baseId:Rt(),value:f,onValueChange:p,orientation:i,dir:d,activationMode:u},c.createElement(we.div,X({dir:d,"data-orientation":i},s,{ref:t})))}),aC="TabsList",iC=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=ws(aC,n),i=Jm(n);return c.createElement(Xu,X({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),c.createElement(we.div,X({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),lC="TabsTrigger",uC=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=ws(lC,n),l=Jm(n),u=ev(i.baseId,r),s=tv(i.baseId,r),d=r===i.value;return c.createElement(Ru,X({asChild:!0},l,{focusable:!o,active:d}),c.createElement(we.button,X({type:"button",role:"tab","aria-selected":d,"aria-controls":s,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},a,{ref:t,onMouseDown:de(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:de(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:de(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})))}),sC="TabsContent",cC=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=ws(sC,n),u=ev(l.baseId,r),s=tv(l.baseId,r),d=r===l.value,f=c.useRef(d);return c.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),c.createElement(sn,{present:o||d},({present:p})=>c.createElement(we.div,X({"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:s,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),p&&a))});function ev(e,t){return`${e}-trigger-${t}`}function tv(e,t){return`${e}-content-${t}`}const nv=oC,rv=iC,ov=uC,av=cC,iv=c.forwardRef(({children:e,...t},n)=>_.jsx(nv,{ref:n,...t,className:be("rabbit-ds",t.className),children:e})),lv=c.forwardRef(({children:e,...t},n)=>_.jsx(rv,{ref:n,...t,className:be("rabbit-ds flex gap-2",t.className),children:e})),uv=c.forwardRef(({children:e,...t},n)=>_.jsx(ov,{ref:n,className:be("rabbit-ds text-sm text-[#666666] px-4 py-3 font-semibold","data-[state=inactive]:text-[#666666] data-[state=inactive]:border-b-2 data-[state=inactive]:border-transparent","data-[state=active]:text-[#104F95] data-[state=active]:border-b-2 data-[state=active]:border-[#104F95]"),...t,children:e})),sv=c.forwardRef(({children:e,...t},n)=>_.jsx(av,{ref:n,...t,className:be("rabbit-ds",t.className),children:e}));iv.displayName=nv.displayName,lv.displayName=rv.displayName,uv.displayName=ov.displayName,sv.displayName=av.displayName;const cv=c.forwardRef(({src:e,title:t,alt:n,className:r,...o},a)=>_.jsxs("div",{className:"rabbit-ds relative",children:[_.jsx("img",{className:be("h-10 w-10 rounded-full",r),src:e,alt:n??t,ref:a,...o}),_.jsx("div",{className:"text-3xs text-white bg-orange-primary px-0.5 absolute bottom-0 left-1/2 -translate-x-1/2 rounded-sm leading-3 mx-auto",children:t})]}));cv.displayName="NavProfilePhoto";const fC=yt("px-2 py-1 rounded flex items-center justify-center",{variants:{variant:{default:"font-semibold text-xs",outlined:"shadow-[0px_0px_1px_0px_rgba(0,0,0,0.25)] bg-[#F2F2F2] text-dark-high text-sm"}}});function _i({children:e,colorScheme:t="tag-yellow",variant:n="default",className:r}){return _.jsx("div",{className:"rabbit-ds",children:_.jsx("div",{className:be(n==="outlined"?"":t,fC({variant:n}),r),children:e})})}const fv="Avatar",[dC,Cj]=vt(fv),[pC,dv]=dC(fv),hC=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return c.createElement(pC,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},c.createElement(we.span,X({},r,{ref:t})))}),mC="AvatarImage",vC=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=dv(mC,n),l=bC(r),u=ct(s=>{o(s),i.onImageLoadingStatusChange(s)});return gt(()=>{l!=="idle"&&u(l)},[l,u]),l==="loaded"?c.createElement(we.img,X({},a,{ref:t,src:r})):null}),gC="AvatarFallback",yC=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=dv(gC,n),[i,l]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&a.imageLoadingStatus!=="loaded"?c.createElement(we.span,X({},o,{ref:t})):null});function bC(e){const[t,n]=c.useState("idle");return gt(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}const pv=hC,hv=vC,mv=yC,wC=yt("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}}),Lr=ge.forwardRef(({className:e,size:t,...n},r)=>_.jsx(pv,{ref:r,className:be(wC({size:t}),"relative flex shrink-0 overflow-hidden rounded-full",e),...n}));Lr.displayName=pv.displayName;const Fr=ge.forwardRef(({className:e,...t},n)=>_.jsx(hv,{ref:n,className:be("aspect-square h-full w-full",e),...t}));Fr.displayName=hv.displayName;const vv=ge.forwardRef(({className:e,...t},n)=>_.jsx(mv,{ref:n,className:be("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));vv.displayName=mv.displayName;var xs={exports:{}},Pi={exports:{}},Ne={};/** @license React v16.13.1
46
+ `)},Hx=0,Tr=[];function Gx(e){var t=be.useRef([]),n=be.useRef([0,0]),r=be.useRef(),o=be.useState(Hx++)[0],a=be.useState(function(){return Af()})[0],i=be.useRef(e);be.useEffect(function(){i.current=e},[e]),be.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=fx([e.lockRef.current],(e.shards||[]).map(Bf),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=be.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var b=Da(m),v=n.current,w="deltaX"in m?m.deltaX:v[0]-b[0],E="deltaY"in m?m.deltaY:v[1]-b[1],S,M=m.target,N=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&N==="h"&&M.type==="range")return!1;var T=Lf(N,M);if(!T)return!0;if(T?S=N:(S=N==="v"?"h":"v",T=Lf(N,M)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=S),!S)return!0;var O=r.current||S;return Bx(O,x,m,O==="h"?w:E,!0)},[]),l=be.useCallback(function(m){var x=m;if(!(!Tr.length||Tr[Tr.length-1]!==a)){var b="deltaY"in x?zf(x):Da(x),v=t.current.filter(function(S){return S.name===x.type&&S.target===x.target&&Wx(S.delta,b)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Bf).filter(Boolean).filter(function(S){return S.contains(x.target)}),E=w.length>0?s(x,w[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=be.useCallback(function(m,x,b,v){var w={name:m,delta:x,target:b,should:v};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=be.useCallback(function(m){n.current=Da(m),r.current=void 0},[]),d=be.useCallback(function(m){c(m.type,zf(m),m.target,s(m,e.lockRef.current))},[]),h=be.useCallback(function(m){c(m.type,Da(m),m.target,s(m,e.lockRef.current))},[]);be.useEffect(function(){return Tr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Er),document.addEventListener("touchmove",l,Er),document.addEventListener("touchstart",f,Er),function(){Tr=Tr.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Er),document.removeEventListener("touchmove",l,Er),document.removeEventListener("touchstart",f,Er)}},[]);var g=e.removeScrollBar,p=e.inert;return be.createElement(be.Fragment,null,p?be.createElement(a,{styles:Vx(o)}):null,g?be.createElement(Dx,{gapMode:"margin"}):null)}const Ux=xx(_f,Gx);var Wf=be.forwardRef(function(e,t){return be.createElement(Na,Ht({},e,{ref:t,sideCar:Ux}))});Wf.classNames=Na.classNames;const Vf=Wf,Ks=["Enter"," "],Yx=["ArrowDown","PageUp","Home"],Hf=["ArrowUp","PageDown","End"],qx=[...Yx,...Hf],Kx={ltr:[...Ks,"ArrowRight"],rtl:[...Ks,"ArrowLeft"]},Xx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Aa="Menu",[fo,Zx,Qx]=ga(Aa),[Wn,Gf]=ht(Aa,[Qx,$r,Sr]),Ia=$r(),Uf=Sr(),[Yf,wn]=Wn(Aa),[Jx,ho]=Wn(Aa),Rx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Ia(t),[l,c]=u.useState(null),f=u.useRef(!1),d=lt(a),h=vr(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),u.createElement(Ta,s,u.createElement(Yf,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},u.createElement(Jx,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:i},r)))},qf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ia(n);return u.createElement(Ls,J({},o,r,{ref:t}))}),Kf="MenuPortal",[e2,Xf]=Wn(Kf,{forceMount:void 0}),t2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=wn(Kf,t);return u.createElement(e2,{scope:t,forceMount:n},u.createElement(Xt,{present:n||a.open},u.createElement(js,{asChild:!0,container:o},r)))},Pt="MenuContent",[n2,Xs]=Wn(Pt),r2=u.forwardRef((e,t)=>{const n=Xf(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(Pt,e.__scopeMenu),i=ho(Pt,e.__scopeMenu);return u.createElement(fo.Provider,{scope:e.__scopeMenu},u.createElement(Xt,{present:r||a.open},u.createElement(fo.Slot,{scope:e.__scopeMenu},i.modal?u.createElement(o2,J({},o,{ref:t})):u.createElement(a2,J({},o,{ref:t})))))}),o2=u.forwardRef((e,t)=>{const n=wn(Pt,e.__scopeMenu),r=u.useRef(null),o=Oe(t,r);return u.useEffect(()=>{const a=r.current;if(a)return kf(a)},[]),u.createElement(Zs,J({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:pe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),a2=u.forwardRef((e,t)=>{const n=wn(Pt,e.__scopeMenu);return u.createElement(Zs,J({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Zs=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:p,...m}=e,x=wn(Pt,n),b=ho(Pt,n),v=Ia(n),w=Uf(n),E=Zx(n),[S,M]=u.useState(null),N=u.useRef(null),T=Oe(t,N,x.onContentChange),O=u.useRef(0),F=u.useRef(""),j=u.useRef(0),H=u.useRef(null),G=u.useRef("right"),L=u.useRef(0),C=p?Vf:u.Fragment,_=p?{as:Zt,allowPinchZoom:!0}:void 0,B=D=>{var A,W;const ne=F.current+D,Q=E().filter(U=>!U.disabled),re=document.activeElement,oe=(A=Q.find(U=>U.ref.current===re))===null||A===void 0?void 0:A.textValue,ue=Q.map(U=>U.textValue),X=C2(ue,ne,oe),le=(W=Q.find(U=>U.textValue===X))===null||W===void 0?void 0:W.ref.current;(function U(Z){F.current=Z,window.clearTimeout(O.current),Z!==""&&(O.current=window.setTimeout(()=>U(""),1e3))})(ne),le&&setTimeout(()=>le.focus())};u.useEffect(()=>()=>window.clearTimeout(O.current),[]),Kd();const V=u.useCallback(D=>{var A,W;return G.current===((A=H.current)===null||A===void 0?void 0:A.side)&&T2(D,(W=H.current)===null||W===void 0?void 0:W.area)},[]);return u.createElement(n2,{scope:n,searchRef:F,onItemEnter:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),onItemLeave:u.useCallback(D=>{var A;V(D)||((A=N.current)===null||A===void 0||A.focus(),M(null))},[V]),onTriggerLeave:u.useCallback(D=>{V(D)&&D.preventDefault()},[V]),pointerGraceTimerRef:j,onPointerGraceIntentChange:u.useCallback(D=>{H.current=D},[])},u.createElement(C,_,u.createElement(Qd,{asChild:!0,trapped:o,onMountAutoFocus:pe(a,D=>{var A;D.preventDefault(),(A=N.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:i},u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:g},u.createElement(Vs,J({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:pe(l,D=>{b.isUsingKeyboardRef.current||D.preventDefault()})}),u.createElement(Fs,J({role:"menu","aria-orientation":"vertical","data-state":rh(x.open),"data-radix-menu-content":"",dir:b.dir},v,m,{ref:T,style:{outline:"none",...m.style},onKeyDown:pe(m.onKeyDown,D=>{const W=D.target.closest("[data-radix-menu-content]")===D.currentTarget,ne=D.ctrlKey||D.altKey||D.metaKey,Q=D.key.length===1;W&&(D.key==="Tab"&&D.preventDefault(),!ne&&Q&&B(D.key));const re=N.current;if(D.target!==re||!qx.includes(D.key))return;D.preventDefault();const ue=E().filter(X=>!X.disabled).map(X=>X.ref.current);Hf.includes(D.key)&&ue.reverse(),$2(ue)}),onBlur:pe(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(O.current),F.current="")}),onPointerMove:pe(e.onPointerMove,po(D=>{const A=D.target,W=L.current!==D.clientX;if(D.currentTarget.contains(A)&&W){const ne=D.clientX>L.current?"right":"left";G.current=ne,L.current=D.clientX}}))})))))))}),Zf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({role:"group"},r,{ref:t}))}),i2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({},r,{ref:t}))}),Qs="MenuItem",Qf="menu.itemSelect",Js=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),i=ho(Qs,e.__scopeMenu),s=Xs(Qs,e.__scopeMenu),l=Oe(t,a),c=u.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const h=new CustomEvent(Qf,{bubbles:!0,cancelable:!0});d.addEventListener(Qf,g=>r==null?void 0:r(g),{once:!0}),id(d,h),h.defaultPrevented?c.current=!1:i.onClose()}};return u.createElement(Jf,J({},o,{ref:l,disabled:n,onClick:pe(e.onClick,f),onPointerDown:d=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,d),c.current=!0},onPointerUp:pe(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)===null||h===void 0||h.click()}),onKeyDown:pe(e.onKeyDown,d=>{const h=s.searchRef.current!=="";n||h&&d.key===" "||Ks.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),Jf=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Xs(Qs,n),s=Uf(n),l=u.useRef(null),c=Oe(t,l),[f,d]=u.useState(!1),[h,g]=u.useState("");return u.useEffect(()=>{const p=l.current;if(p){var m;g(((m=p.textContent)!==null&&m!==void 0?m:"").trim())}},[a.children]),u.createElement(fo.ItemSlot,{scope:n,disabled:r,textValue:o??h},u.createElement(Hs,J({asChild:!0},s,{focusable:!r}),u.createElement(we.div,J({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:pe(e.onPointerMove,po(p=>{r?i.onItemLeave(p):(i.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:pe(e.onPointerLeave,po(p=>i.onItemLeave(p))),onFocus:pe(e.onFocus,()=>d(!0)),onBlur:pe(e.onBlur,()=>d(!1))}))))}),s2=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(eh,{scope:e.__scopeMenu,checked:n},u.createElement(Js,J({role:"menuitemcheckbox","aria-checked":Fa(n)?"mixed":n},o,{ref:t,"data-state":Rs(n),onSelect:pe(o.onSelect,()=>r==null?void 0:r(Fa(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),l2="MenuRadioGroup",[c2,u2]=Wn(l2,{value:void 0,onValueChange:()=>{}}),d2=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=lt(r);return u.createElement(c2,{scope:e.__scopeMenu,value:n,onValueChange:a},u.createElement(Zf,J({},o,{ref:t})))}),f2="MenuRadioItem",h2=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u2(f2,e.__scopeMenu),a=n===o.value;return u.createElement(eh,{scope:e.__scopeMenu,checked:a},u.createElement(Js,J({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Rs(a),onSelect:pe(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),Rf="MenuItemIndicator",[eh,p2]=Wn(Rf,{checked:!1}),m2=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=p2(Rf,n);return u.createElement(Xt,{present:r||Fa(a.checked)||a.checked===!0},u.createElement(we.span,J({},o,{ref:t,"data-state":Rs(a.checked)})))}),g2=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(we.div,J({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),th="MenuSub",[v2,nh]=Wn(th),b2=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=wn(th,t),i=Ia(t),[s,l]=u.useState(null),[c,f]=u.useState(null),d=lt(o);return u.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),u.createElement(Ta,i,u.createElement(Yf,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f},u.createElement(v2,{scope:t,contentId:Wt(),triggerId:Wt(),trigger:s,onTriggerChange:l},n)))},La="MenuSubTrigger",y2=u.forwardRef((e,t)=>{const n=wn(La,e.__scopeMenu),r=ho(La,e.__scopeMenu),o=nh(La,e.__scopeMenu),a=Xs(La,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.createElement(qf,J({asChild:!0},c),u.createElement(Jf,J({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":rh(n.open)},e,{ref:aa(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:pe(e.onPointerMove,po(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:pe(e.onPointerLeave,po(d=>{var h;f();const g=(h=n.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var p;const m=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=m==="right",b=x?-5:5,v=g[x?"left":"right"],w=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x:v,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x:v,y:g.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:pe(e.onKeyDown,d=>{const h=a.searchRef.current!=="";if(!(e.disabled||h&&d.key===" ")&&Kx[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),w2="MenuSubContent",x2=u.forwardRef((e,t)=>{const n=Xf(Pt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=wn(Pt,e.__scopeMenu),i=ho(Pt,e.__scopeMenu),s=nh(w2,e.__scopeMenu),l=u.useRef(null),c=Oe(t,l);return u.createElement(fo.Provider,{scope:e.__scopeMenu},u.createElement(Xt,{present:r||a.open},u.createElement(fo.Slot,{scope:e.__scopeMenu},u.createElement(Zs,J({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:pe(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:pe(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:pe(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),h=Xx[i.dir].includes(f.key);if(d&&h){var g;a.onOpenChange(!1),(g=s.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function rh(e){return e?"open":"closed"}function Fa(e){return e==="indeterminate"}function Rs(e){return Fa(e)?"indeterminate":e?"checked":"unchecked"}function $2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function S2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function C2(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=S2(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function E2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function T2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return E2(n,t)}function po(e){return t=>t.pointerType==="mouse"?e(t):void 0}const M2=Rx,P2=qf,k2=t2,O2=r2,N2=Zf,_2=i2,D2=Js,A2=s2,I2=d2,L2=h2,F2=m2,j2=g2,z2=b2,B2=y2,W2=x2,oh="DropdownMenu",[V2,v_]=ht(oh,[Gf]),Qe=Gf(),[H2,ah]=V2(oh),G2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Qe(t),c=u.useRef(null),[f=!1,d]=wt({prop:o,defaultProp:a,onChange:i});return u.createElement(H2,{scope:t,triggerId:Wt(),triggerRef:c,contentId:Wt(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(h=>!h),[d]),modal:s},u.createElement(M2,J({},l,{open:f,onOpenChange:d,dir:r,modal:s}),n))},U2="DropdownMenuTrigger",Y2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=ah(U2,n),i=Qe(n);return u.createElement(P2,J({asChild:!0},i),u.createElement(we.button,J({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:aa(t,a.triggerRef),onPointerDown:pe(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:pe(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),q2=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Qe(t);return u.createElement(k2,J({},r,n))},K2="DropdownMenuContent",X2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ah(K2,n),a=Qe(n),i=u.useRef(!1);return u.createElement(O2,J({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:pe(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Z2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(N2,J({},o,r,{ref:t}))}),Q2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(_2,J({},o,r,{ref:t}))}),J2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(D2,J({},o,r,{ref:t}))}),R2=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(A2,J({},o,r,{ref:t}))}),e$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(I2,J({},o,r,{ref:t}))}),t$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(L2,J({},o,r,{ref:t}))}),n$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(F2,J({},o,r,{ref:t}))}),r$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(j2,J({},o,r,{ref:t}))}),o$=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Qe(t),[s=!1,l]=wt({prop:r,defaultProp:a,onChange:o});return u.createElement(z2,J({},i,{open:s,onOpenChange:l}),n)},a$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(B2,J({},o,r,{ref:t}))}),i$=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qe(n);return u.createElement(W2,J({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),s$=G2,l$=Y2,ih=q2,sh=X2,lh=Z2,ch=Q2,uh=J2,dh=R2,fh=e$,hh=t$,ph=n$,mh=r$,c$=o$,gh=a$,vh=i$,el=s$,tl=l$,bh=ih,yh=c$,ja=u.forwardRef(({className:e,...t},n)=>y.jsx(fh,{ref:n,className:ge("w-full",e),...t}));ja.displayName=fh.displayName;const za=u.forwardRef(({className:e,...t},n)=>y.jsx(lh,{ref:n,className:ge("w-full",e),...t}));za.displayName=lh.displayName;const nl=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(gh,{ref:r,className:ge("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,y.jsx(xb,{className:"ml-auto h-4 w-4"})]}));nl.displayName=gh.displayName;const rl=u.forwardRef(({className:e,...t},n)=>y.jsx(vh,{ref:n,className:ge("rabbit-ds z-[1510] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...t}));rl.displayName=vh.displayName;const Ba=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(ih,{children:y.jsx("div",{className:"rabbit-ds ",children:y.jsx(sh,{ref:r,sideOffset:t,className:ge("z-[1500] relative min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...n})})}));Ba.displayName=sh.displayName;const Wa=u.forwardRef(({className:e,...t},n)=>y.jsx(uh,{ref:n,className:ge("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Wa.displayName=uh.displayName;const Va=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(dh,{ref:o,className:ge("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(ph,{children:y.jsx(sa,{className:"h-4 w-4 text-sky-800"})})}),t]}));Va.displayName=dh.displayName;const Ha=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(hh,{ref:r,className:ge("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[state=checked]:bg-card-bg-focus data-[state=checked]:text-card-text-focus",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:y.jsx(ph,{children:y.jsx(sa,{className:"h-4 w-4"})})}),t]}));Ha.displayName=hh.displayName;const Ga=u.forwardRef(({className:e,...t},n)=>y.jsx(ch,{ref:n,className:ge("px-2 py-1.5 text-sm font-semibold",e),...t}));Ga.displayName=ch.displayName;const ol=u.forwardRef(({className:e,...t},n)=>y.jsx(mh,{ref:n,className:ge("h-px w-full bg-athens-gray-100",e),...t}));ol.displayName=mh.displayName;const wh=u.forwardRef((e,t)=>u.createElement(we.span,J({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),u$=wh,d$=[" ","Enter","ArrowUp","ArrowDown"],f$=[" ","Enter"],Ua="Select",[Ya,al,h$]=ga(Ua),[Mr,b_]=ht(Ua,[h$,$r]),il=$r(),[p$,Vn]=Mr(Ua),[m$,g$]=Mr(Ua),v$=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:h,required:g}=e,p=il(t),[m,x]=u.useState(null),[b,v]=u.useState(null),[w,E]=u.useState(!1),S=vr(c),[M=!1,N]=wt({prop:r,defaultProp:o,onChange:a}),[T,O]=wt({prop:i,defaultProp:s,onChange:l}),F=u.useRef(null),j=m?!!m.closest("form"):!0,[H,G]=u.useState(new Set),L=Array.from(H).map(C=>C.props.value).join(";");return u.createElement(Ta,p,u.createElement(p$,{required:g,scope:t,trigger:m,onTriggerChange:x,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:w,onValueNodeHasChildrenChange:E,contentId:Wt(),value:T,onValueChange:O,open:M,onOpenChange:N,dir:S,triggerPointerDownPosRef:F,disabled:h},u.createElement(Ya.Provider,{scope:t},u.createElement(m$,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(C=>{G(_=>new Set(_).add(C))},[]),onNativeOptionRemove:u.useCallback(C=>{G(_=>{const B=new Set(_);return B.delete(C),B})},[])},n)),j?u.createElement(Th,{key:L,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:T,onChange:C=>O(C.target.value),disabled:h},T===void 0?u.createElement("option",{value:""}):null,Array.from(H)):null))},b$="SelectTrigger",y$=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=il(n),i=Vn(b$,n),s=i.disabled||r,l=Oe(t,i.onTriggerChange),c=al(n),[f,d,h]=Mh(p=>{const m=c().filter(v=>!v.disabled),x=m.find(v=>v.value===i.value),b=Ph(m,p,x);b!==void 0&&i.onValueChange(b.value)}),g=()=>{s||(i.onOpenChange(!0),h())};return u.createElement(Ls,J({asChild:!0},a),u.createElement(we.button,J({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Eh(i.value)?"":void 0},o,{ref:l,onClick:pe(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:pe(o.onPointerDown,p=>{const m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(g(),i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:pe(o.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(m&&p.key===" ")&&d$.includes(p.key)&&(g(),p.preventDefault())})})))}),w$="SelectValue",x$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=Vn(w$,n),{onValueNodeHasChildrenChange:c}=l,f=a!==void 0,d=Oe(t,l.onValueNodeChange);return pt(()=>{c(f)},[c,f]),u.createElement(we.span,J({},s,{ref:d,style:{pointerEvents:"none"}}),Eh(l.value)?u.createElement(u.Fragment,null,i):a)}),$$=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.createElement(we.span,J({"aria-hidden":!0},o,{ref:t}),r||"▼")}),S$=e=>u.createElement(js,J({asChild:!0},e)),Pr="SelectContent",C$=u.forwardRef((e,t)=>{const n=Vn(Pr,e.__scopeSelect),[r,o]=u.useState();if(pt(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?pn.createPortal(u.createElement(xh,{scope:e.__scopeSelect},u.createElement(Ya.Slot,{scope:e.__scopeSelect},u.createElement("div",null,e.children))),a):null}return u.createElement(E$,J({},e,{ref:t}))}),nn=10,[xh,qa]=Mr(Pr),E$=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x,...b}=e,v=Vn(Pr,n),[w,E]=u.useState(null),[S,M]=u.useState(null),N=Oe(t,X=>E(X)),[T,O]=u.useState(null),[F,j]=u.useState(null),H=al(n),[G,L]=u.useState(!1),C=u.useRef(!1);u.useEffect(()=>{if(w)return kf(w)},[w]),Kd();const _=u.useCallback(X=>{const[le,...U]=H().map(k=>k.ref.current),[Z]=U.slice(-1),ie=document.activeElement;for(const k of X)if(k===ie||(k==null||k.scrollIntoView({block:"nearest"}),k===le&&S&&(S.scrollTop=0),k===Z&&S&&(S.scrollTop=S.scrollHeight),k==null||k.focus(),document.activeElement!==ie))return},[H,S]),B=u.useCallback(()=>_([T,w]),[_,T,w]);u.useEffect(()=>{G&&B()},[G,B]);const{onOpenChange:V,triggerPointerDownPosRef:D}=v;u.useEffect(()=>{if(w){let X={x:0,y:0};const le=Z=>{var ie,k,te,ae;X={x:Math.abs(Math.round(Z.pageX)-((ie=(k=D.current)===null||k===void 0?void 0:k.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(Z.pageY)-((te=(ae=D.current)===null||ae===void 0?void 0:ae.y)!==null&&te!==void 0?te:0))}},U=Z=>{X.x<=10&&X.y<=10?Z.preventDefault():w.contains(Z.target)||V(!1),document.removeEventListener("pointermove",le),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,V,D]),u.useEffect(()=>{const X=()=>V(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[V]);const[A,W]=Mh(X=>{const le=H().filter(ie=>!ie.disabled),U=le.find(ie=>ie.ref.current===document.activeElement),Z=Ph(le,X,U);Z&&setTimeout(()=>Z.ref.current.focus())}),ne=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(v.value!==void 0&&v.value===le||Z)&&(O(X),Z&&(C.current=!0))},[v.value]),Q=u.useCallback(()=>w==null?void 0:w.focus(),[w]),re=u.useCallback((X,le,U)=>{const Z=!C.current&&!U;(v.value!==void 0&&v.value===le||Z)&&j(X)},[v.value]),oe=r==="popper"?$h:T$,ue=oe===$h?{side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:p,hideWhenDetached:m,avoidCollisions:x}:{};return u.createElement(xh,{scope:n,content:w,viewport:S,onViewportChange:M,itemRefCallback:ne,selectedItem:T,onItemLeave:Q,itemTextRefCallback:re,focusSelectedItem:B,selectedItemText:F,position:r,isPositioned:G,searchRef:A},u.createElement(Vf,{as:Zt,allowPinchZoom:!0},u.createElement(Qd,{asChild:!0,trapped:v.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:pe(o,X=>{var le;(le=v.trigger)===null||le===void 0||le.focus({preventScroll:!0}),X.preventDefault()})},u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},u.createElement(oe,J({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:X=>X.preventDefault()},b,ue,{onPlaced:()=>L(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:pe(b.onKeyDown,X=>{const le=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!le&&X.key.length===1&&W(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let Z=H().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(X.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ie=X.target,k=Z.indexOf(ie);Z=Z.slice(k+1)}setTimeout(()=>_(Z)),X.preventDefault()}})}))))))}),T$=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Vn(Pr,n),i=qa(Pr,n),[s,l]=u.useState(null),[c,f]=u.useState(null),d=Oe(t,N=>f(N)),h=al(n),g=u.useRef(!1),p=u.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:b,focusSelectedItem:v}=i,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&x&&b){const N=a.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(a.dir!=="rtl"){const ie=F.left-T.left,k=O.left-ie,te=N.left-k,ae=N.width+te,me=Math.max(ae,T.width),ye=window.innerWidth-nn,Ee=ma(k,[nn,ye-me]);s.style.minWidth=ae+"px",s.style.left=Ee+"px"}else{const ie=T.right-F.right,k=window.innerWidth-O.right-ie,te=window.innerWidth-N.right-k,ae=N.width+te,me=Math.max(ae,T.width),ye=window.innerWidth-nn,Ee=ma(k,[nn,ye-me]);s.style.minWidth=ae+"px",s.style.right=Ee+"px"}const j=h(),H=window.innerHeight-nn*2,G=m.scrollHeight,L=window.getComputedStyle(c),C=parseInt(L.borderTopWidth,10),_=parseInt(L.paddingTop,10),B=parseInt(L.borderBottomWidth,10),V=parseInt(L.paddingBottom,10),D=C+_+G+V+B,A=Math.min(x.offsetHeight*5,D),W=window.getComputedStyle(m),ne=parseInt(W.paddingTop,10),Q=parseInt(W.paddingBottom,10),re=N.top+N.height/2-nn,oe=H-re,ue=x.offsetHeight/2,X=x.offsetTop+ue,le=C+_+X,U=D-le;if(le<=re){const ie=x===j[j.length-1].ref.current;s.style.bottom="0px";const k=c.clientHeight-m.offsetTop-m.offsetHeight,te=Math.max(oe,ue+(ie?Q:0)+k+B),ae=le+te;s.style.height=ae+"px"}else{const ie=x===j[0].ref.current;s.style.top="0px";const te=Math.max(re,C+m.offsetTop+(ie?ne:0)+ue)+U;s.style.height=te+"px",m.scrollTop=le-re+m.offsetTop}s.style.margin=`${nn}px 0`,s.style.minHeight=A+"px",s.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,c,m,x,b,a.dir,r]);pt(()=>w(),[w]);const[E,S]=u.useState();pt(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const M=u.useCallback(N=>{N&&p.current===!0&&(w(),v==null||v(),p.current=!1)},[w,v]);return u.createElement(M$,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:M},u.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},u.createElement(we.div,J({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),$h=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=nn,...a}=e,i=il(n);return u.createElement(Fs,J({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[M$,P$]=Mr(Pr,{}),Sh="SelectViewport",k$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qa(Sh,n),a=P$(Sh,n),i=Oe(t,o.onViewportChange),s=u.useRef(0);return u.createElement(u.Fragment,null,u.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),u.createElement(Ya.Slot,{scope:n},u.createElement(we.div,J({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:pe(r.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const g=window.innerHeight-nn*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),x=Math.max(p,m);if(x<g){const b=x+h,v=Math.min(g,b),w=b-v;f.style.height=v+"px",f.style.bottom==="0px"&&(c.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})}))))}),O$="SelectGroup",[N$,_$]=Mr(O$),D$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wt();return u.createElement(N$,{scope:n,id:o},u.createElement(we.div,J({role:"group","aria-labelledby":o},r,{ref:t})))}),A$="SelectLabel",I$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_$(A$,n);return u.createElement(we.div,J({id:o.id},r,{ref:t}))}),sl="SelectItem",[L$,Ch]=Mr(sl),F$=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Vn(sl,n),l=qa(sl,n),c=s.value===r,[f,d]=u.useState(a??""),[h,g]=u.useState(!1),p=Oe(t,b=>{var v;return(v=l.itemRefCallback)===null||v===void 0?void 0:v.call(l,b,r,o)}),m=Wt(),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.createElement(L$,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:u.useCallback(b=>{d(v=>{var w;return v||((w=b==null?void 0:b.textContent)!==null&&w!==void 0?w:"").trim()})},[])},u.createElement(Ya.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},u.createElement(we.div,J({role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:p,onFocus:pe(i.onFocus,()=>g(!0)),onBlur:pe(i.onBlur,()=>g(!1)),onPointerUp:pe(i.onPointerUp,x),onPointerMove:pe(i.onPointerMove,b=>{if(o){var v;(v=l.onItemLeave)===null||v===void 0||v.call(l)}else b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,b=>{if(b.currentTarget===document.activeElement){var v;(v=l.onItemLeave)===null||v===void 0||v.call(l)}}),onKeyDown:pe(i.onKeyDown,b=>{var v;((v=l.searchRef)===null||v===void 0?void 0:v.current)!==""&&b.key===" "||(f$.includes(b.key)&&x(),b.key===" "&&b.preventDefault())})}))))}),Ka="SelectItemText",j$=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Vn(Ka,n),s=qa(Ka,n),l=Ch(Ka,n),c=g$(Ka,n),[f,d]=u.useState(null),h=Oe(t,b=>d(b),l.onItemTextChange,b=>{var v;return(v=s.itemTextRefCallback)===null||v===void 0?void 0:v.call(s,b,l.value,l.disabled)}),g=f==null?void 0:f.textContent,p=u.useMemo(()=>u.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return pt(()=>(m(p),()=>x(p)),[m,x,p]),u.createElement(u.Fragment,null,u.createElement(we.span,J({id:l.textId},a,{ref:h})),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?pn.createPortal(a.children,i.valueNode):null)}),z$="SelectItemIndicator",B$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ch(z$,n).isSelected?u.createElement(we.span,J({"aria-hidden":!0},r,{ref:t})):null}),W$=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.createElement(we.div,J({"aria-hidden":!0},r,{ref:t}))});function Eh(e){return e===""||e===void 0}const Th=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),a=Oe(t,o),i=ds(n);return u.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(d)}},[i,n]),u.createElement(wh,{asChild:!0},u.createElement("select",J({},r,{ref:a,defaultValue:n})))});Th.displayName="BubbleSelect";function Mh(e){const t=lt(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const s=n.current+i;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ph(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=V$(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function V$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const H$=v$,kh=y$,G$=x$,U$=$$,Y$=S$,Oh=C$,q$=k$,K$=D$,Nh=I$,_h=F$,X$=j$,Z$=B$,Dh=W$,Q$=H$,J$=K$,R$=G$,Ah=u.forwardRef(({className:e,children:t,...n},r)=>y.jsx("div",{className:"rabbit-ds",children:y.jsxs(kh,{ref:r,className:ge("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,y.jsx(U$,{asChild:!0,children:y.jsx(ps,{className:"h-4 w-4"})})]})}));Ah.displayName=kh.displayName;const Ih=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Y$,{children:y.jsx(Oh,{ref:o,className:ge("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:y.jsx(q$,{className:ge("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Ih.displayName=Oh.displayName;const Lh=u.forwardRef(({className:e,...t},n)=>y.jsx(Nh,{ref:n,className:ge("py-1.5 px-2 text-sm font-semibold",e),...t}));Lh.displayName=Nh.displayName;const Fh=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(_h,{ref:r,className:ge("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:y.jsx(Z$,{children:y.jsx(sa,{className:"h-4 w-4 text-sky-800"})})}),y.jsx(X$,{children:t})]}));Fh.displayName=_h.displayName;const jh=u.forwardRef(({className:e,...t},n)=>y.jsx(Dh,{ref:n,className:ge("-mx-1 my-1 h-px bg-muted",e),...t}));jh.displayName=Dh.displayName;const[Xa,y_]=ht("Tooltip",[$r]),ll=$r(),eS="TooltipProvider",tS=700,cl="tooltip.open",[nS,ul]=Xa(eS),rS=e=>{const{__scopeTooltip:t,delayDuration:n=tS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=u.useState(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.createElement(nS,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},dl="Tooltip",[oS,mo]=Xa(dl),aS=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=ul(dl,e.__scopeTooltip),c=ll(t),[f,d]=u.useState(null),h=Wt(),g=u.useRef(0),p=i??l.disableHoverableContent,m=s??l.delayDuration,x=u.useRef(!1),[b=!1,v]=wt({prop:r,defaultProp:o,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(cl))):l.onClose(),a==null||a(N)}}),w=u.useMemo(()=>b?x.current?"delayed-open":"instant-open":"closed",[b]),E=u.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,v(!0)},[v]),S=u.useCallback(()=>{window.clearTimeout(g.current),v(!1)},[v]),M=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,v(!0)},m)},[m,v]);return u.useEffect(()=>()=>window.clearTimeout(g.current),[]),u.createElement(Ta,c,u.createElement(oS,{scope:t,contentId:h,open:b,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayed?M():E()},[l.isOpenDelayed,M,E]),onTriggerLeave:u.useCallback(()=>{p?S():window.clearTimeout(g.current)},[S,p]),onOpen:E,onClose:S,disableHoverableContent:p},n))},zh="TooltipTrigger",iS=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mo(zh,n),a=ul(zh,n),i=ll(n),s=u.useRef(null),l=Oe(t,s,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.createElement(Ls,J({asChild:!0},i),u.createElement(we.button,J({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:pe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:pe(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})))}),Bh="TooltipPortal",[sS,lS]=Xa(Bh,{forceMount:void 0}),cS=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=mo(Bh,t);return u.createElement(sS,{scope:t,forceMount:n},u.createElement(Xt,{present:n||a.open},u.createElement(js,{asChild:!0,container:o},r)))},go="TooltipContent",uS=u.forwardRef((e,t)=>{const n=lS(go,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=mo(go,e.__scopeTooltip);return u.createElement(Xt,{present:r||i.open},i.disableHoverableContent?u.createElement(Wh,J({side:o},a,{ref:t})):u.createElement(dS,J({side:o},a,{ref:t})))}),dS=u.forwardRef((e,t)=>{const n=mo(go,e.__scopeTooltip),r=ul(go,e.__scopeTooltip),o=u.useRef(null),a=Oe(t,o),[i,s]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,h=u.useCallback(()=>{s(null),d(!1)},[d]),g=u.useCallback((p,m)=>{const x=p.currentTarget,b={x:p.clientX,y:p.clientY},v=hS(b,x.getBoundingClientRect()),w=pS(b,v),E=mS(m.getBoundingClientRect()),S=vS([...w,...E]);s(S),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&f){const p=x=>g(x,f),m=x=>g(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",m)}}},[l,f,g,h]),u.useEffect(()=>{if(i){const p=m=>{const x=m.target,b={x:m.clientX,y:m.clientY},v=(l==null?void 0:l.contains(x))||(f==null?void 0:f.contains(x)),w=!gS(b,i);v?h():w&&(h(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,i,c,h]),u.createElement(Wh,J({},e,{ref:a}))}),[fS,w_]=Xa(dl,{isInside:!1}),Wh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=mo(go,n),c=ll(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(cl,f),()=>document.removeEventListener(cl,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),u.createElement(Cs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f},u.createElement(Fs,J({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),u.createElement(ad,null,r),u.createElement(fS,{scope:n,isInside:!0},u.createElement(u$,{id:l.contentId,role:"tooltip"},o||r))))});function hS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function mS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,f=t[i].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function vS(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),bS(t)}function bS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const yS=rS,wS=aS,xS=iS,$S=cS,Vh=uS,Hh=yS,Gh=wS,Uh=xS,Yh=$S,fl=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Vh,{ref:r,sideOffset:t,className:ge("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs 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",e,"rabbit-ds"),...n}));fl.displayName=Vh.displayName;function SS(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("path",{fill:"currentColor",d:"M10.667 5.333a1.333 1.333 0 1 1 2.666 0v13.334a1.333 1.333 0 0 1-2.666 0z"}),y.jsx("path",{fill:"currentColor",d:"M5.333 13.333a1.333 1.333 0 1 1 0-2.666h13.334a1.333 1.333 0 0 1 0 2.666z"})]})}function qh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[y.jsx("rect",{width:27,height:27,x:-.5,y:.5,stroke:"currentColor",rx:13.5,transform:"matrix(-1 0 0 1 27 0)"}),y.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.244.566l3.326 3.2a.847.847 0 0 0 .591.244.85.85 0 0 0 .595-.234.785.785 0 0 0 .244-.573.787.787 0 0 0-.254-.569l-3.326-3.2a.848.848 0 0 0-.588-.234.849.849 0 0 0-.588.235.785.785 0 0 0-.244.565"}),y.jsx("path",{fill:"currentColor",d:"M11.5 13.99c0 .212.088.416.243.566.156.15.368.234.588.234.221 0 .433-.084.588-.234l3.327-3.2a.779.779 0 0 0 .204-.768.816.816 0 0 0-.582-.56.855.855 0 0 0-.798.197l-3.326 3.2a.785.785 0 0 0-.244.565"})]})}function Kh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 28 28",...e,children:[y.jsx("rect",{width:27,height:27,x:.5,y:.5,stroke:"currentColor",rx:13.5}),y.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566l-3.326 3.2a.847.847 0 0 1-.591.244.85.85 0 0 1-.596-.234.785.785 0 0 1-.243-.573.787.787 0 0 1 .254-.569l3.326-3.2a.848.848 0 0 1 .588-.234c.22 0 .432.085.588.235.156.15.244.353.244.565"}),y.jsx("path",{fill:"currentColor",d:"M16.5 13.99a.785.785 0 0 1-.244.566.849.849 0 0 1-.588.234.848.848 0 0 1-.587-.234l-3.327-3.2a.779.779 0 0 1-.204-.768.817.817 0 0 1 .582-.56.855.855 0 0 1 .798.197l3.326 3.2c.156.15.244.353.244.565"})]})}function Xh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707l4.345-4c.202-.193.48-.303.772-.305.291-.002.571.103.777.293.206.19.32.447.318.716a.964.964 0 0 1-.331.71l-4.345 4c-.203.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.961.961 0 0 1-.318-.707"}),y.jsx("path",{fill:"currentColor",d:"M5.235 12.012c0-.265.115-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.345 4a.945.945 0 0 1 .266.959c-.102.34-.39.606-.76.7-.37.093-.766 0-1.042-.246l-4.345-4a.961.961 0 0 1-.318-.707M12.235 12.012c0-.265.114-.52.318-.707l4.345-4c.202-.193.48-.303.771-.305.292-.002.572.103.778.293a.96.96 0 0 1 .318.716.964.964 0 0 1-.331.71l-4.345 4c-.204.188-.48.293-.768.293-.288 0-.564-.105-.768-.293a.962.962 0 0 1-.318-.707"}),y.jsx("path",{fill:"currentColor",d:"M12.235 12.012c0-.265.114-.52.318-.707.204-.187.48-.292.768-.292.288 0 .564.105.768.293l4.344 4c.267.253.368.618.267.959-.102.34-.39.606-.76.7-.37.093-.767 0-1.042-.246l-4.345-4a.962.962 0 0 1-.318-.707"})]})}function CS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.002 6.209a1.44 1.44 0 0 1 1.131-.55h3.734c.527 0 .91.274 1.13.55.196.244.336.575.336.916v.09h3.2c.31 0 .726.077 1.057.409.332.331.41.747.41 1.057v9.867H4V8.68c0-.31.078-.726.41-1.057.331-.332.747-.41 1.057-.41h3.2v-.089c0-.34.14-.672.335-.916m-.335 3.005H6v2.667h2.667zm2 2.667V9.214h2.666v2.667zm-2 2H6v2.667h2.667zm2 2.667V13.88h2.666v2.667zm4.666 0H18V13.88h-2.667zm0-4.667H18V9.214h-2.667z",clipRule:"evenodd"})})}function ES(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 25",...e,children:[y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M18.366 9.542c.392.266.634.72.634 1.214v7.294c0 .391-.152.762-.417 1.033-.265.27-.618.417-.983.417H6.4c-.364 0-.718-.148-.983-.417A1.477 1.477 0 0 1 5 18.05v-7.293c0-.496.243-.95.633-1.215h.001l5.6-3.805a1.365 1.365 0 0 1 1.533 0z"}),y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M10 15.5a2 2 0 1 1 4 0v4h-4z"})]})}function TS(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 36 36",...e,children:[y.jsxs("g",{filter:"url(#a)",children:[y.jsx("path",{fill:"currentColor",d:"M26.464 18.342a1.54 1.54 0 0 1-1.539 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.538-1.542c.85 0 1.54.69 1.54 1.542M15.919 10.404a2.311 2.311 0 0 1-3.303-2.088 2.311 2.311 0 0 1 2.307-2.314 2.311 2.311 0 0 1 2.083 3.311l2.904 2.911a1.54 1.54 0 0 1 1.937 1.49 1.54 1.54 0 0 1-1.538 1.543 1.54 1.54 0 0 1-1.487-1.942z"}),y.jsx("path",{fill:"currentColor",d:"M12.606 13.708a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M16.323 19.777a1.54 1.54 0 0 1-1.937-1.49 1.54 1.54 0 0 1 1.538-1.543 1.54 1.54 0 0 1 1.487 1.943l2.904 2.91a2.311 2.311 0 0 1 3.303 2.088 2.311 2.311 0 0 1-2.308 2.315 2.311 2.311 0 0 1-2.308-2.314c0-.357.08-.696.225-.998z"}),y.jsx("path",{fill:"currentColor",d:"M17.234 22.967a1.54 1.54 0 0 1-1.54 1.543 1.54 1.54 0 0 1-1.538-1.543 1.54 1.54 0 0 1 1.539-1.542c.85 0 1.538.69 1.538 1.542M28.005 12.94a2.311 2.311 0 0 1-3.296 2.092l-2.91 2.916a1.54 1.54 0 0 1-1.489 1.934 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.946-1.488l2.899-2.907a2.31 2.31 0 0 1-.229-1.005 2.311 2.311 0 0 1 2.309-2.313 2.311 2.311 0 0 1 2.308 2.313"}),y.jsx("path",{fill:"currentColor",d:"M21.844 9.083a1.54 1.54 0 0 1-1.539 1.542 1.54 1.54 0 0 1-1.538-1.542 1.54 1.54 0 0 1 1.538-1.543c.85 0 1.54.69 1.54 1.543M17.228 13.71a1.54 1.54 0 0 1-1.929 1.493L12.39 18.12c.142.3.221.636.221.99a2.311 2.311 0 0 1-2.308 2.314 2.311 2.311 0 0 1-2.308-2.314 2.311 2.311 0 0 1 3.31-2.084l2.9-2.906a1.54 1.54 0 0 1 1.484-1.95c.85-.001 1.539.69 1.539 1.541"})]}),y.jsx("defs",{children:y.jsxs("filter",{id:"a",width:40,height:40,x:-2,y:-2,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y.jsx("feOffset",{dy:2}),y.jsx("feGaussianBlur",{stdDeviation:4}),y.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),y.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),y.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_864_105"}),y.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_864_105",result:"shape"})]})})]})}function MS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 10.125c.775 0 1.625-.719 1.625-1.875 0-1.156-.85-1.875-1.625-1.875s-1.625.719-1.625 1.875c0 1.156.85 1.875 1.625 1.875m-5.107 7.438c-.018.037-.018.052-.018.062h10.25c0-.01 0-.025-.018-.062a.945.945 0 0 0-.19-.244c-.247-.245-.673-.522-1.279-.782-1.221-.524-2.72-.787-3.638-.787-.919 0-2.417.263-3.638.787-.607.26-1.032.537-1.278.782a.947.947 0 0 0-.19.244M5 19.5v-1.875c0-2.496 4.66-3.75 7-3.75s7 1.254 7 3.75V19.5zM15.5 8.25c0 2.068-1.57 3.75-3.5 3.75s-3.5-1.682-3.5-3.75S10.07 4.5 12 4.5s3.5 1.682 3.5 3.75",clipRule:"evenodd"})})}function PS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"m19.783 18.616-2.986-2.955c2.266-2.822 2.053-6.976-.533-9.558A7.103 7.103 0 0 0 11.198 4c-1.92 0-3.732.745-5.092 2.103A7.099 7.099 0 0 0 4 11.188c0 1.943.747 3.727 2.106 5.085 1.36 1.331 3.146 2.103 5.092 2.103 1.627 0 3.226-.56 4.48-1.57l2.959 2.954c.16.16.346.24.56.24.213 0 .426-.08.56-.24.32-.32.32-.825.026-1.144m-2.986-7.428a5.47 5.47 0 0 1-1.653 3.94c-1.066 1.038-2.453 1.65-3.946 1.65a5.486 5.486 0 0 1-3.945-1.65c-1.04-1.065-1.653-2.45-1.653-3.94a5.47 5.47 0 0 1 1.652-3.94c1.067-1.039 2.427-1.65 3.946-1.65 1.493 0 2.906.585 3.946 1.65s1.653 2.422 1.653 3.94"})})}function Zh(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[y.jsx("rect",{width:15,height:15,x:4.5,y:4.041,stroke:"currentColor",rx:1.5}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:"M9 16v-6M12 16V8M15 15.541v-3"})]})}function kS(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:y.jsx("path",{stroke:"currentColor",strokeWidth:2,d:"M17.8 16.5c0-.461-.066-.889-.185-1.284.095.043.188.088.278.135.876.455 1.107.88 1.107 1.149v.5h-1.2zM11.4 9c0 1.168-.872 2-1.8 2s-1.8-.832-1.8-2c0-1.168.872-2 1.8-2s1.8.832 1.8 2ZM5 16.5c0-.158.066-.354.315-.6.258-.256.66-.508 1.177-.73 1.04-.446 2.306-.67 3.108-.67s2.068.224 3.108.67c.517.222.919.474 1.177.73.249.246.315.442.315.6v.5H5zM16.2 9c0 1.056-.712 1.837-1.535 1.977A5.972 5.972 0 0 0 15 9c0-.692-.118-1.36-.335-1.977.823.14 1.535.921 1.535 1.977Z"})})}const Qh=qe("",{variants:{size:{default:24,small:16,"x-small":12,large:32,"x-large":48}},defaultVariants:{size:"default"}});function kr({size:e,IconSVG:t,className:n}){return y.jsx("div",{className:"rabbit-ds",children:y.jsx(t,{width:Qh({size:e}),height:Qh({size:e}),className:ge(n)})})}const OS=qe(["rabbit-ds relative h-14 w-14 font-sans rounded-lg text-3xs text-dark-medium font-base justify-center items-center flex transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:text-card-text-hover hover:font-medium","focus:outline-1 focus:outline-offset-2 focus:bg-card-bg-focus focus:text-card-text-focus focus:font-medium","active:bg-card-bg-focus active:text-card-text-focus active:font-medium","is-active:bg-card-bg-focus is-active:text-card-text-focus "],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),NS=qe("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [background-clip:text] [-webkit-background-clip:text]"}},defaultVariants:{variant:"default"}}),Jh=u.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,asChild:a=!1,isActive:i=!1,children:s,...l},c)=>{const f=a?Zt:"button";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs(f,{className:ge(OS({variant:t,className:e})),ref:c,"data-active":i,...l,children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsxs("div",{className:"relative flex items-center justify-center",children:[y.jsx(kr,{IconSVG:r}),t==="withNotification"&&y.jsxs("div",{className:"bg-functional-warn flex items-center justify-center h-5 w-6 text-xs rounded-xl absolute left-3 text-white px-2",children:[y.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),y.jsx("div",{className:ge(NS({variant:t==="gradient"?t:"default"})),children:s})]}),t==="withMenu"&&y.jsx("div",{className:"flex items-center justify-center absolute right-0 w-3 h-14",children:y.jsx(Cb,{height:"14px",width:"14px"})})]})})});Jh.displayName="NavButton";const Rh=u.createContext({}),_S=()=>u.useContext(Rh);function ep({isActive:e,isDisabled:t,className:n,children:r,...o}){const a=u.useMemo(()=>({isActive:e,isDisabled:t}),[e,t]);return y.jsx(Rh.Provider,{value:a,children:y.jsx("div",{className:"rabbit-ds",children:y.jsx("button",{className:ge("flex items-center px-3 py-1 gap-2 text-dark-medium w-full cursor-pointer rounded-lg","hover:text-card-text-hover","is-active:bg-card-bg-focus is-active:text-card-text-focus","is-disabled:opacity-50 is-disabled:pointer-events-none",n),type:"button","data-active":e,"data-disabled":t,...o,children:r})})})}function DS({title:e,subTitle:t}){const{isActive:n}=_S();return y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("span",{className:"text-sm is-active:font-semibold","data-active":n,children:e}),y.jsx("span",{className:"text-xs",children:t})]})}const AS=qe("",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function IS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>y.jsx("img",{src:e,alt:""}):e;return y.jsx("div",{className:ge(AS({iconSize:t,shape:r}),n),children:y.jsx(o,{})})}const LS=qe("ml-auto",{variants:{shape:{default:"",round:"rounded-full overflow-hidden"},iconSize:{normal:"w-6 h-6",large:"w-8 h-8"}},defaultVariants:{iconSize:"normal"}});function FS({icon:e,iconSize:t,className:n,shape:r}){const o=e==="string"?()=>y.jsx("img",{src:e,alt:"right icon"}):e;return y.jsx("div",{className:ge(LS({iconSize:t,shape:r}),n),children:y.jsx(o,{})})}const tp="Tabs",[jS,x_]=ht(tp,[Sr]),np=Sr(),[zS,hl]=jS(tp),BS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,f=vr(s),[d,h]=wt({prop:r,onChange:o,defaultProp:a});return u.createElement(zS,{scope:n,baseId:Wt(),value:d,onValueChange:h,orientation:i,dir:f,activationMode:l},u.createElement(we.div,J({dir:f,"data-orientation":i},c,{ref:t})))}),WS="TabsList",VS=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=hl(WS,n),i=np(n);return u.createElement(Vs,J({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),u.createElement(we.div,J({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),HS="TabsTrigger",GS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=hl(HS,n),s=np(n),l=rp(i.baseId,r),c=op(i.baseId,r),f=r===i.value;return u.createElement(Hs,J({asChild:!0},s,{focusable:!o,active:f}),u.createElement(we.button,J({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:pe(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:pe(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:pe(e.onFocus,()=>{const d=i.activationMode!=="manual";!f&&!o&&d&&i.onValueChange(r)})})))}),US="TabsContent",YS=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=hl(US,n),l=rp(s.baseId,r),c=op(s.baseId,r),f=r===s.value,d=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),u.createElement(Xt,{present:o||f},({present:h})=>u.createElement(we.div,J({"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function rp(e,t){return`${e}-trigger-${t}`}function op(e,t){return`${e}-content-${t}`}const ap=BS,ip=VS,sp=GS,lp=YS,cp=u.forwardRef(({children:e,...t},n)=>y.jsx(ap,{ref:n,...t,className:ge("rabbit-ds",t.className),children:e})),up=u.forwardRef(({children:e,...t},n)=>y.jsx(ip,{ref:n,...t,className:ge("rabbit-ds flex gap-2",t.className),children:e})),dp=u.forwardRef(({children:e,...t},n)=>y.jsx(sp,{ref:n,className:ge("rabbit-ds text-sm text-[#666666] px-4 py-3 font-semibold","data-[state=inactive]:text-[#666666] data-[state=inactive]:border-b-2 data-[state=inactive]:border-transparent","data-[state=active]:text-[#104F95] data-[state=active]:border-b-2 data-[state=active]:border-[#104F95]"),...t,children:e})),fp=u.forwardRef(({children:e,...t},n)=>y.jsx(lp,{ref:n,...t,className:ge("rabbit-ds",t.className),children:e}));cp.displayName=ap.displayName,up.displayName=ip.displayName,dp.displayName=sp.displayName,fp.displayName=lp.displayName;const hp=u.forwardRef(({src:e,title:t,alt:n,className:r,...o},a)=>y.jsxs("div",{className:"rabbit-ds relative",children:[y.jsx("img",{className:ge("h-10 w-10 rounded-full",r),src:e,alt:n??t,ref:a,...o}),y.jsx("div",{className:"text-3xs text-white bg-orange-primary px-0.5 absolute bottom-0 left-1/2 -translate-x-1/2 rounded-sm leading-3 mx-auto",children:t})]}));hp.displayName="NavProfilePhoto";const qS=qe("px-2 py-1 rounded flex items-center justify-center",{variants:{variant:{default:"font-semibold text-xs",outlined:"shadow-[0px_0px_1px_0px_rgba(0,0,0,0.25)] bg-[#F2F2F2] text-dark-high text-sm"}}});function Za({children:e,colorScheme:t="tag-yellow",variant:n="default",className:r}){return y.jsx("div",{className:"rabbit-ds",children:y.jsx("div",{className:ge(n==="outlined"?"":t,qS({variant:n}),r),children:e})})}const pp="Avatar",[KS,$_]=ht(pp),[XS,mp]=KS(pp),ZS=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return u.createElement(XS,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a},u.createElement(we.span,J({},r,{ref:t})))}),QS="AvatarImage",JS=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=mp(QS,n),s=tC(r),l=lt(c=>{o(c),i.onImageLoadingStatusChange(c)});return pt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.createElement(we.img,J({},a,{ref:t,src:r})):null}),RS="AvatarFallback",eC=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=mp(RS,n),[i,s]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?u.createElement(we.span,J({},o,{ref:t})):null});function tC(e){const[t,n]=u.useState("idle");return pt(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}const gp=ZS,vp=JS,bp=eC,nC=qe("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}}),Hn=be.forwardRef(({className:e,size:t,...n},r)=>y.jsx(gp,{ref:r,className:ge(nC({size:t}),"relative flex shrink-0 overflow-hidden rounded-full",e),...n}));Hn.displayName=gp.displayName;const Gn=be.forwardRef(({className:e,...t},n)=>y.jsx(vp,{ref:n,className:ge("aspect-square h-full w-full",e),...t}));Gn.displayName=vp.displayName;const yp=be.forwardRef(({className:e,...t},n)=>y.jsx(bp,{ref:n,className:ge("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yp.displayName=bp.displayName;function Ae(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Un(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const wp=6048e5,rC=864e5,Qa=43200,xp=1440;let oC={};function vo(){return oC}function bo(e,t){var s,l,c,f;const n=vo(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,o=Ae(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Ja(e){return bo(e,{weekStartsOn:1})}function $p(e){const t=Ae(e),n=t.getFullYear(),r=Un(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Ja(r),a=Un(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=Ja(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ra(e){const t=Ae(e);return t.setHours(0,0,0,0),t}function ei(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function aC(e,t){const n=Ra(e),r=Ra(t),o=n.getTime()-ei(n),a=r.getTime()-ei(r);return Math.round((o-a)/rC)}function iC(e){const t=$p(e),n=Un(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ja(n)}function ti(e,t){const n=Ae(e),r=Ae(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function sC(e,t){const n=Ra(e),r=Ra(t);return+n==+r}function lC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cC(e){if(!lC(e)&&typeof e!="number")return!1;const t=Ae(e);return!isNaN(Number(t))}function uC(e,t){const n=Ae(e),r=Ae(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return o*12+a}function dC(e,t){return Ae(e).getTime()-Ae(t).getTime()}function fC(e){return e?Math[e]:Math.trunc}function hC(e){const t=Ae(e);return t.setHours(23,59,59,999),t}function pC(e){const t=Ae(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mC(e){const t=Ae(e);return+hC(t)==+pC(t)}function gC(e,t){const n=Ae(e),r=Ae(t),o=ti(n,r),a=Math.abs(uC(n,r));let i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);let s=ti(n,r)===-o;mC(Ae(e))&&a===1&&ti(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function vC(e,t,n){const r=dC(e,t)/1e3;return fC(n==null?void 0:n.roundingMethod)(r)}function bC(e){const t=Ae(e),n=Un(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const yC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wC=(e,t,n)=>{let r;const o=yC[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$C={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CC={date:pl({formats:xC,defaultWidth:"full"}),time:pl({formats:$C,defaultWidth:"full"}),dateTime:pl({formats:SC,defaultWidth:"full"})},EC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TC=(e,t,n,r)=>EC[e];function yo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const MC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},PC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},OC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},NC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_C={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},DC={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:yo({values:MC,defaultWidth:"wide"}),quarter:yo({values:PC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yo({values:kC,defaultWidth:"wide"}),day:yo({values:OC,defaultWidth:"wide"}),dayPeriod:yo({values:NC,defaultWidth:"wide",formattingValues:_C,defaultFormattingWidth:"wide"})};function wo(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?IC(s,d=>d.test(i)):AC(s,d=>d.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(i.length);return{value:c,rest:f}}}function AC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function IC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function LC(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const FC=/^(\d+)(th|st|nd|rd)?/i,jC=/\d+/i,zC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},BC={any:[/^b/i,/^(a|c)/i]},WC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},VC={any:[/1/i,/2/i,/3/i,/4/i]},HC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},GC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},UC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},YC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},KC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XC={ordinalNumber:LC({matchPattern:FC,parsePattern:jC,valueCallback:e=>parseInt(e,10)}),era:wo({matchPatterns:zC,defaultMatchWidth:"wide",parsePatterns:BC,defaultParseWidth:"any"}),quarter:wo({matchPatterns:WC,defaultMatchWidth:"wide",parsePatterns:VC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wo({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any"}),day:wo({matchPatterns:UC,defaultMatchWidth:"wide",parsePatterns:YC,defaultParseWidth:"any"}),dayPeriod:wo({matchPatterns:qC,defaultMatchWidth:"any",parsePatterns:KC,defaultParseWidth:"any"})},Sp={code:"en-US",formatDistance:wC,formatLong:CC,formatRelative:TC,localize:DC,match:XC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZC(e){const t=Ae(e);return aC(t,bC(t))+1}function QC(e){const t=Ae(e),n=Ja(t).getTime()-iC(t).getTime();return Math.round(n/wp)+1}function Cp(e,t){var f,d,h,g;const n=Ae(e),r=n.getFullYear(),o=vo(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=Un(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=bo(i,t),l=Un(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function JC(e,t){var s,l,c,f;const n=vo(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,o=Cp(e,t),a=Un(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),bo(a,t)}function RC(e,t){const n=Ae(e),r=bo(n,t).getTime()-JC(n,t).getTime();return Math.round(r/wp)+1}function De(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return De(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):De(n+1,2)},d(e,t){return De(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return De(e.getHours()%12||12,t.length)},H(e,t){return De(e.getHours(),t.length)},m(e,t){return De(e.getMinutes(),t.length)},s(e,t){return De(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return De(o,t.length)}},Or={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},e3={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return xn.y(e,t)},Y:function(e,t,n,r){const o=Cp(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return De(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,t.length)},R:function(e,t){const n=$p(e);return De(n,t.length)},u:function(e,t){const n=e.getFullYear();return De(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return De(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return De(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return De(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=RC(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,t.length)},I:function(e,t,n){const r=QC(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):De(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xn.d(e,t)},D:function(e,t,n){const r=ZC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):De(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return De(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return De(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Or.noon:r===0?o=Or.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Or.evening:r>=12?o=Or.afternoon:r>=4?o=Or.morning:o=Or.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):De(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):De(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xn.s(e,t)},S:function(e,t){return xn.S(e,t)},X:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return Tp(a);case"XXXX":case"XX":return Yn(a);case"XXXXX":case"XXX":default:return Yn(a,":")}},x:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Tp(a);case"xxxx":case"xx":return Yn(a);case"xxxxx":case"xxx":default:return Yn(a,":")}},O:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ep(a,":");case"OOOO":default:return"GMT"+Yn(a,":")}},z:function(e,t,n,r){const a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ep(a,":");case"zzzz":default:return"GMT"+Yn(a,":")}},t:function(e,t,n,r){const o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return De(a,t.length)},T:function(e,t,n,r){const a=(r._originalDate||e).getTime();return De(a,t.length)}};function Ep(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+De(a,2)}function Tp(e,t){return e%60===0?(e>0?"-":"+")+De(Math.abs(e)/60,2):Yn(e,t)}function Yn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=De(Math.floor(r/60),2),a=De(r%60,2);return n+o+t+a}const Mp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},t3={p:Pp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Mp(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Mp(r,t)).replace("{{time}}",Pp(o,t))}},n3=["D","DD"],r3=["YY","YYYY"];function o3(e){return n3.indexOf(e)!==-1}function a3(e){return r3.indexOf(e)!==-1}function kp(e,t,n){if(e==="YYYY")throw new RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="YY")throw new RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="D")throw new RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e==="DD")throw new RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}const i3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l3=/^'([^]*?)'?$/,c3=/''/g,u3=/[a-zA-Z]/;function Op(e,t,n){var f,d,h,g,p,m,x,b;const r=vo(),o=(n==null?void 0:n.locale)??r.locale??Sp,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((b=(x=r.locale)==null?void 0:x.options)==null?void 0:b.weekStartsOn)??0,s=Ae(e);if(!cC(s))throw new RangeError("Invalid time value");const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o,_originalDate:s};return t.match(s3).map(function(v){const w=v[0];if(w==="p"||w==="P"){const E=t3[w];return E(v,o.formatLong)}return v}).join("").match(i3).map(function(v){if(v==="''")return"'";const w=v[0];if(w==="'")return d3(v);const E=e3[w];if(E)return!(n!=null&&n.useAdditionalWeekYearTokens)&&a3(v)&&kp(v,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&o3(v)&&kp(v,t,String(e)),E(s,v,o.localize,l);if(w.match(u3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return v}).join("")}function d3(e){const t=e.match(l3);return t?t[1].replace(c3,"'"):e}function f3(e,t,n){const r=vo(),o=(n==null?void 0:n.locale)??r.locale??Sp,a=2520,i=ti(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i});let l,c;i>0?(l=Ae(t),c=Ae(e)):(l=Ae(e),c=Ae(t));const f=vC(c,l),d=(ei(c)-ei(l))/1e3,h=Math.round((f-d)/60);let g;if(h<2)return n!=null&&n.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,s):f<10?o.formatDistance("lessThanXSeconds",10,s):f<20?o.formatDistance("lessThanXSeconds",20,s):f<40?o.formatDistance("halfAMinute",0,s):f<60?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",1,s):h===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",h,s);if(h<45)return o.formatDistance("xMinutes",h,s);if(h<90)return o.formatDistance("aboutXHours",1,s);if(h<xp){const p=Math.round(h/60);return o.formatDistance("aboutXHours",p,s)}else{if(h<a)return o.formatDistance("xDays",1,s);if(h<Qa){const p=Math.round(h/xp);return o.formatDistance("xDays",p,s)}else if(h<Qa*2)return g=Math.round(h/Qa),o.formatDistance("aboutXMonths",g,s)}if(g=gC(c,l),g<12){const p=Math.round(h/Qa);return o.formatDistance("xMonths",p,s)}else{const p=g%12,m=Math.floor(g/12);return p<3?o.formatDistance("aboutXYears",m,s):p<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function h3(e,t){return f3(e,Date.now(),t)}function p3(e,t){const n=Ae(e),r=Ae(t);return n.getTime()>r.getTime()}function Np({date:e,showRelativeTime:t=!1,showTime:n=!1,dateFormat:r="MMM dd, yyyy",timeFormat:o="HH:mm",highlightDate:a=t}){const i=new Date,s=sC(e,i)||p3(e,i);let l="";t?(l=h3(e,{addSuffix:!0}),l=ey(l)):l=Op(e,r);const c=s?"text-functional-warn font-semibold":"";return y.jsx("div",{className:"rabbit-ds",children:y.jsxs("span",{className:ge("text-sm",a&&c),children:[l,n&&" • ",n&&Op(e,o)]})})}var ml={exports:{}},ni={exports:{}},Ne={};/** @license React v16.13.1
47
47
  * react-is.production.min.js
48
48
  *
49
49
  * Copyright (c) Facebook, Inc. and its affiliates.
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var gv;function xC(){if(gv)return Ne;gv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function $(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case t:switch(x=x.type,x){case u:case s:case r:case a:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case h:case m:case i:return x;default:return C}}case n:return C}}}function S(x){return $(x)===s}return Ne.AsyncMode=u,Ne.ConcurrentMode=s,Ne.ContextConsumer=l,Ne.ContextProvider=i,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=r,Ne.Lazy=h,Ne.Memo=m,Ne.Portal=n,Ne.Profiler=a,Ne.StrictMode=o,Ne.Suspense=f,Ne.isAsyncMode=function(x){return S(x)||$(x)===u},Ne.isConcurrentMode=S,Ne.isContextConsumer=function(x){return $(x)===l},Ne.isContextProvider=function(x){return $(x)===i},Ne.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Ne.isForwardRef=function(x){return $(x)===d},Ne.isFragment=function(x){return $(x)===r},Ne.isLazy=function(x){return $(x)===h},Ne.isMemo=function(x){return $(x)===m},Ne.isPortal=function(x){return $(x)===n},Ne.isProfiler=function(x){return $(x)===a},Ne.isStrictMode=function(x){return $(x)===o},Ne.isSuspense=function(x){return $(x)===f},Ne.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===s||x===a||x===o||x===f||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===m||x.$$typeof===i||x.$$typeof===l||x.$$typeof===d||x.$$typeof===w||x.$$typeof===g||x.$$typeof===y||x.$$typeof===v)},Ne.typeOf=$,Ne}var De={};/** @license React v16.13.1
53
+ */var _p;function m3(){if(_p)return Ne;_p=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var M=S.$$typeof;switch(M){case t:switch(S=S.type,S){case l:case c:case r:case a:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case f:case p:case g:case i:return S;default:return M}}case n:return M}}}function E(S){return w(S)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=s,Ne.ContextProvider=i,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=r,Ne.Lazy=p,Ne.Memo=g,Ne.Portal=n,Ne.Profiler=a,Ne.StrictMode=o,Ne.Suspense=d,Ne.isAsyncMode=function(S){return E(S)||w(S)===l},Ne.isConcurrentMode=E,Ne.isContextConsumer=function(S){return w(S)===s},Ne.isContextProvider=function(S){return w(S)===i},Ne.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ne.isForwardRef=function(S){return w(S)===f},Ne.isFragment=function(S){return w(S)===r},Ne.isLazy=function(S){return w(S)===p},Ne.isMemo=function(S){return w(S)===g},Ne.isPortal=function(S){return w(S)===n},Ne.isProfiler=function(S){return w(S)===a},Ne.isStrictMode=function(S){return w(S)===o},Ne.isSuspense=function(S){return w(S)===d},Ne.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===a||S===o||S===d||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===p||S.$$typeof===g||S.$$typeof===i||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.$$typeof===b||S.$$typeof===v||S.$$typeof===m)},Ne.typeOf=w,Ne}var _e={};/** @license React v16.13.1
54
54
  * react-is.development.js
55
55
  *
56
56
  * Copyright (c) Facebook, Inc. and its affiliates.
57
57
  *
58
58
  * This source code is licensed under the MIT license found in the
59
59
  * LICENSE file in the root directory of this source tree.
60
- */var yv;function $C(){return yv||(yv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function $(A){return typeof A=="string"||typeof A=="function"||A===r||A===s||A===a||A===o||A===f||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===h||A.$$typeof===m||A.$$typeof===i||A.$$typeof===l||A.$$typeof===d||A.$$typeof===w||A.$$typeof===g||A.$$typeof===y||A.$$typeof===v)}function S(A){if(typeof A=="object"&&A!==null){var pe=A.$$typeof;switch(pe){case t:var me=A.type;switch(me){case u:case s:case r:case a:case o:case f:return me;default:var Oe=me&&me.$$typeof;switch(Oe){case l:case d:case h:case m:case i:return Oe;default:return pe}}case n:return pe}}}var x=u,C=s,E=l,M=i,T=t,j=d,I=r,B=h,Y=m,q=n,P=a,L=o,z=f,H=!1;function N(A){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(A)||S(A)===u}function D(A){return S(A)===s}function W(A){return S(A)===l}function te(A){return S(A)===i}function J(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function ae(A){return S(A)===d}function re(A){return S(A)===r}function le(A){return S(A)===h}function R(A){return S(A)===m}function ce(A){return S(A)===n}function V(A){return S(A)===a}function K(A){return S(A)===o}function ie(A){return S(A)===f}De.AsyncMode=x,De.ConcurrentMode=C,De.ContextConsumer=E,De.ContextProvider=M,De.Element=T,De.ForwardRef=j,De.Fragment=I,De.Lazy=B,De.Memo=Y,De.Portal=q,De.Profiler=P,De.StrictMode=L,De.Suspense=z,De.isAsyncMode=N,De.isConcurrentMode=D,De.isContextConsumer=W,De.isContextProvider=te,De.isElement=J,De.isForwardRef=ae,De.isFragment=re,De.isLazy=le,De.isMemo=R,De.isPortal=ce,De.isProfiler=V,De.isStrictMode=K,De.isSuspense=ie,De.isValidElementType=$,De.typeOf=S}()),De}var bv;function wv(){return bv||(bv=1,process.env.NODE_ENV==="production"?Pi.exports=xC():Pi.exports=$C()),Pi.exports}/*
60
+ */var Dp;function g3(){return Dp||(Dp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===a||k===o||k===d||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===p||k.$$typeof===g||k.$$typeof===i||k.$$typeof===s||k.$$typeof===f||k.$$typeof===x||k.$$typeof===b||k.$$typeof===v||k.$$typeof===m)}function E(k){if(typeof k=="object"&&k!==null){var te=k.$$typeof;switch(te){case t:var ae=k.type;switch(ae){case l:case c:case r:case a:case o:case d:return ae;default:var me=ae&&ae.$$typeof;switch(me){case s:case f:case p:case g:case i:return me;default:return te}}case n:return te}}}var S=l,M=c,N=s,T=i,O=t,F=f,j=r,H=p,G=g,L=n,C=a,_=o,B=d,V=!1;function D(k){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(k)||E(k)===l}function A(k){return E(k)===c}function W(k){return E(k)===s}function ne(k){return E(k)===i}function Q(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function re(k){return E(k)===f}function oe(k){return E(k)===r}function ue(k){return E(k)===p}function X(k){return E(k)===g}function le(k){return E(k)===n}function U(k){return E(k)===a}function Z(k){return E(k)===o}function ie(k){return E(k)===d}_e.AsyncMode=S,_e.ConcurrentMode=M,_e.ContextConsumer=N,_e.ContextProvider=T,_e.Element=O,_e.ForwardRef=F,_e.Fragment=j,_e.Lazy=H,_e.Memo=G,_e.Portal=L,_e.Profiler=C,_e.StrictMode=_,_e.Suspense=B,_e.isAsyncMode=D,_e.isConcurrentMode=A,_e.isContextConsumer=W,_e.isContextProvider=ne,_e.isElement=Q,_e.isForwardRef=re,_e.isFragment=oe,_e.isLazy=ue,_e.isMemo=X,_e.isPortal=le,_e.isProfiler=U,_e.isStrictMode=Z,_e.isSuspense=ie,_e.isValidElementType=w,_e.typeOf=E}()),_e}var Ap;function Ip(){return Ap||(Ap=1,process.env.NODE_ENV==="production"?ni.exports=m3():ni.exports=g3()),ni.exports}/*
61
61
  object-assign
62
62
  (c) Sindre Sorhus
63
63
  @license MIT
64
- */var $s,xv;function _C(){if(xv)return $s;xv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(u.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(d){s[d]=d}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $s=o()?Object.assign:function(a,i){for(var l,u=r(a),s,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(u[f]=l[f]);if(e){s=e(l);for(var p=0;p<s.length;p++)n.call(l,s[p])&&(u[s[p]]=l[s[p]])}}return u},$s}var _s,$v;function Ps(){if($v)return _s;$v=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _s=e,_s}var Ss,_v;function Pv(){return _v||(_v=1,Ss=Function.call.bind(Object.prototype.hasOwnProperty)),Ss}var Os,Sv;function PC(){if(Sv)return Os;Sv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ps(),n={},r=Pv();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,u,s){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var f;try{if(typeof a[d]!="function"){var p=Error((u||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=a[d](i,d,u,l,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var m=s?s():"";e("Failed "+l+" type: "+f.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Os=o,Os}var Ms,Ov;function SC(){if(Ov)return Ms;Ov=1;var e=wv(),t=_C(),n=Ps(),r=Pv(),o=PC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Ms=function(l,u){var s=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(D){var W=D&&(s&&D[s]||D[d]);if(typeof W=="function")return W}var p="<<anonymous>>",m={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:y(),arrayOf:$,element:S(),elementType:x(),instanceOf:C,node:j(),objectOf:M,oneOf:E,oneOfType:T,shape:B,exact:Y};function h(D,W){return D===W?D!==0||1/D===1/W:D!==D&&W!==W}function v(D,W){this.message=D,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function w(D){if(process.env.NODE_ENV!=="production")var W={},te=0;function J(re,le,R,ce,V,K,ie){if(ce=ce||p,K=K||R,ie!==n){if(u){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ce+":"+R;!W[pe]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[pe]=!0,te++)}}return le[R]==null?re?le[R]===null?new v("The "+V+" `"+K+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+V+" `"+K+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:D(le,R,ce,V,K)}var ae=J.bind(null,!1);return ae.isRequired=J.bind(null,!0),ae}function g(D){function W(te,J,ae,re,le,R){var ce=te[J],V=L(ce);if(V!==D){var K=z(ce);return new v("Invalid "+re+" `"+le+"` of type "+("`"+K+"` supplied to `"+ae+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return w(W)}function y(){return w(i)}function $(D){function W(te,J,ae,re,le){if(typeof D!="function")return new v("Property `"+le+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var R=te[J];if(!Array.isArray(R)){var ce=L(R);return new v("Invalid "+re+" `"+le+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an array."))}for(var V=0;V<R.length;V++){var K=D(R,V,ae,re,le+"["+V+"]",n);if(K instanceof Error)return K}return null}return w(W)}function S(){function D(W,te,J,ae,re){var le=W[te];if(!l(le)){var R=L(le);return new v("Invalid "+ae+" `"+re+"` of type "+("`"+R+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return w(D)}function x(){function D(W,te,J,ae,re){var le=W[te];if(!e.isValidElementType(le)){var R=L(le);return new v("Invalid "+ae+" `"+re+"` of type "+("`"+R+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return w(D)}function C(D){function W(te,J,ae,re,le){if(!(te[J]instanceof D)){var R=D.name||p,ce=N(te[J]);return new v("Invalid "+re+" `"+le+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected ")+("instance of `"+R+"`."))}return null}return w(W)}function E(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function W(te,J,ae,re,le){for(var R=te[J],ce=0;ce<D.length;ce++)if(h(R,D[ce]))return null;var V=JSON.stringify(D,function(ie,A){var pe=z(A);return pe==="symbol"?String(A):A});return new v("Invalid "+re+" `"+le+"` of value `"+String(R)+"` "+("supplied to `"+ae+"`, expected one of "+V+"."))}return w(W)}function M(D){function W(te,J,ae,re,le){if(typeof D!="function")return new v("Property `"+le+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var R=te[J],ce=L(R);if(ce!=="object")return new v("Invalid "+re+" `"+le+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an object."));for(var V in R)if(r(R,V)){var K=D(R,V,ae,re,le+"."+V,n);if(K instanceof Error)return K}return null}return w(W)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var W=0;W<D.length;W++){var te=D[W];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(te)+" at index "+W+"."),i}function J(ae,re,le,R,ce){for(var V=[],K=0;K<D.length;K++){var ie=D[K],A=ie(ae,re,le,R,ce,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&V.push(A.data.expectedType)}var pe=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new v("Invalid "+R+" `"+ce+"` supplied to "+("`"+le+"`"+pe+"."))}return w(J)}function j(){function D(W,te,J,ae,re){return q(W[te])?null:new v("Invalid "+ae+" `"+re+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return w(D)}function I(D,W,te,J,ae){return new v((D||"React class")+": "+W+" type `"+te+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function B(D){function W(te,J,ae,re,le){var R=te[J],ce=L(R);if(ce!=="object")return new v("Invalid "+re+" `"+le+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));for(var V in D){var K=D[V];if(typeof K!="function")return I(ae,re,le,V,z(K));var ie=K(R,V,ae,re,le+"."+V,n);if(ie)return ie}return null}return w(W)}function Y(D){function W(te,J,ae,re,le){var R=te[J],ce=L(R);if(ce!=="object")return new v("Invalid "+re+" `"+le+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));var V=t({},te[J],D);for(var K in V){var ie=D[K];if(r(D,K)&&typeof ie!="function")return I(ae,re,le,K,z(ie));if(!ie)return new v("Invalid "+re+" `"+le+"` key `"+K+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(te[J],null," ")+`
65
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var A=ie(R,K,ae,re,le+"."+K,n);if(A)return A}return null}return w(W)}function q(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(q);if(D===null||l(D))return!0;var W=f(D);if(W){var te=W.call(D),J;if(W!==D.entries){for(;!(J=te.next()).done;)if(!q(J.value))return!1}else for(;!(J=te.next()).done;){var ae=J.value;if(ae&&!q(ae[1]))return!1}}else return!1;return!0;default:return!1}}function P(D,W){return D==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function L(D){var W=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":P(W,D)?"symbol":W}function z(D){if(typeof D>"u"||D===null)return""+D;var W=L(D);if(W==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return W}function H(D){var W=z(D);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function N(D){return!D.constructor||!D.constructor.name?p:D.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Ms}var Cs,Mv;function OC(){if(Mv)return Cs;Mv=1;var e=Ps();function t(){}function n(){}return n.resetWarningCache=t,Cs=function(){function r(i,l,u,s,d,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Cs}if(process.env.NODE_ENV!=="production"){var MC=wv(),CC=!0;xs.exports=SC()(MC.isElement,CC)}else xs.exports=OC()();var Si=xs.exports;const ne=xr(Si);var Cv={exports:{}};/*!
64
+ */var gl,Lp;function v3(){if(Lp)return gl;Lp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gl=o()?Object.assign:function(a,i){for(var s,l=r(a),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var h=0;h<c.length;h++)n.call(s,c[h])&&(l[c[h]]=s[c[h]])}}return l},gl}var vl,Fp;function bl(){if(Fp)return vl;Fp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vl=e,vl}var yl,jp;function zp(){return jp||(jp=1,yl=Function.call.bind(Object.prototype.hasOwnProperty)),yl}var wl,Bp;function b3(){if(Bp)return wl;Bp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=bl(),n={},r=zp();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,l,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var d;try{if(typeof a[f]!="function"){var h=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=a[f](i,f,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wl=o,wl}var xl,Wp;function y3(){if(Wp)return xl;Wp=1;var e=Ip(),t=v3(),n=bl(),r=zp(),o=b3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return xl=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(A){var W=A&&(c&&A[c]||A[f]);if(typeof W=="function")return W}var h="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:w,element:E(),elementType:S(),instanceOf:M,node:F(),objectOf:T,oneOf:N,oneOfType:O,shape:H,exact:G};function p(A,W){return A===W?A!==0||1/A===1/W:A!==A&&W!==W}function m(A,W){this.message=A,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function x(A){if(process.env.NODE_ENV!=="production")var W={},ne=0;function Q(oe,ue,X,le,U,Z,ie){if(le=le||h,Z=Z||X,ie!==n){if(l){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=le+":"+X;!W[te]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[te]=!0,ne++)}}return ue[X]==null?oe?ue[X]===null?new m("The "+U+" `"+Z+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new m("The "+U+" `"+Z+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:A(ue,X,le,U,Z)}var re=Q.bind(null,!1);return re.isRequired=Q.bind(null,!0),re}function b(A){function W(ne,Q,re,oe,ue,X){var le=ne[Q],U=_(le);if(U!==A){var Z=B(le);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return x(W)}function v(){return x(i)}function w(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var X=ne[Q];if(!Array.isArray(X)){var le=_(X);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an array."))}for(var U=0;U<X.length;U++){var Z=A(X,U,re,oe,ue+"["+U+"]",n);if(Z instanceof Error)return Z}return null}return x(W)}function E(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!s(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return x(A)}function S(){function A(W,ne,Q,re,oe){var ue=W[ne];if(!e.isValidElementType(ue)){var X=_(ue);return new m("Invalid "+re+" `"+oe+"` of type "+("`"+X+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return x(A)}function M(A){function W(ne,Q,re,oe,ue){if(!(ne[Q]instanceof A)){var X=A.name||h,le=D(ne[Q]);return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected ")+("instance of `"+X+"`."))}return null}return x(W)}function N(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function W(ne,Q,re,oe,ue){for(var X=ne[Q],le=0;le<A.length;le++)if(p(X,A[le]))return null;var U=JSON.stringify(A,function(ie,k){var te=B(k);return te==="symbol"?String(k):k});return new m("Invalid "+oe+" `"+ue+"` of value `"+String(X)+"` "+("supplied to `"+re+"`, expected one of "+U+"."))}return x(W)}function T(A){function W(ne,Q,re,oe,ue){if(typeof A!="function")return new m("Property `"+ue+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+re+"`, expected an object."));for(var U in X)if(r(X,U)){var Z=A(X,U,re,oe,ue+"."+U,n);if(Z instanceof Error)return Z}return null}return x(W)}function O(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var W=0;W<A.length;W++){var ne=A[W];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ne)+" at index "+W+"."),i}function Q(re,oe,ue,X,le){for(var U=[],Z=0;Z<A.length;Z++){var ie=A[Z],k=ie(re,oe,ue,X,le,n);if(k==null)return null;k.data&&r(k.data,"expectedType")&&U.push(k.data.expectedType)}var te=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new m("Invalid "+X+" `"+le+"` supplied to "+("`"+ue+"`"+te+"."))}return x(Q)}function F(){function A(W,ne,Q,re,oe){return L(W[ne])?null:new m("Invalid "+re+" `"+oe+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return x(A)}function j(A,W,ne,Q,re){return new m((A||"React class")+": "+W+" type `"+ne+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function H(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));for(var U in A){var Z=A[U];if(typeof Z!="function")return j(re,oe,ue,U,B(Z));var ie=Z(X,U,re,oe,ue+"."+U,n);if(ie)return ie}return null}return x(W)}function G(A){function W(ne,Q,re,oe,ue){var X=ne[Q],le=_(X);if(le!=="object")return new m("Invalid "+oe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+re+"`, expected `object`."));var U=t({},ne[Q],A);for(var Z in U){var ie=A[Z];if(r(A,Z)&&typeof ie!="function")return j(re,oe,ue,Z,B(ie));if(!ie)return new m("Invalid "+oe+" `"+ue+"` key `"+Z+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ne[Q],null," ")+`
65
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var k=ie(X,Z,re,oe,ue+"."+Z,n);if(k)return k}return null}return x(W)}function L(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(L);if(A===null||s(A))return!0;var W=d(A);if(W){var ne=W.call(A),Q;if(W!==A.entries){for(;!(Q=ne.next()).done;)if(!L(Q.value))return!1}else for(;!(Q=ne.next()).done;){var re=Q.value;if(re&&!L(re[1]))return!1}}else return!1;return!0;default:return!1}}function C(A,W){return A==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function _(A){var W=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":C(W,A)?"symbol":W}function B(A){if(typeof A>"u"||A===null)return""+A;var W=_(A);if(W==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return W}function V(A){var W=B(A);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function D(A){return!A.constructor||!A.constructor.name?h:A.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},xl}var $l,Vp;function w3(){if(Vp)return $l;Vp=1;var e=bl();function t(){}function n(){}return n.resetWarningCache=t,$l=function(){function r(i,s,l,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},$l}if(process.env.NODE_ENV!=="production"){var x3=Ip(),$3=!0;ml.exports=y3()(x3.isElement,$3)}else ml.exports=w3()();var ri=ml.exports;const se=pr(ri);var Hp={exports:{}};/*!
66
66
  Copyright (c) 2018 Jed Watson.
67
67
  Licensed under the MIT License (MIT), see
68
68
  http://jedwatson.github.io/classnames
69
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var u in a)t.call(a,u)&&a[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Cv);var Oi=Cv.exports;const ft=xr(Oi);var EC=["top","left","transform","className","children","innerRef"];function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(this,arguments)}function TC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Jn(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.transform,i=e.className,l=e.children,u=e.innerRef,s=TC(e,EC);return c.createElement("g",Es({ref:u,className:ft("visx-group",i),transform:a||"translate("+o+", "+n+")"},s),l)}Jn.propTypes={top:ne.number,left:ne.number,transform:ne.string,className:ne.string,children:ne.node,innerRef:ne.oneOfType([ne.string,ne.func,ne.object])};const kC=Object.freeze(Object.defineProperty({__proto__:null,Group:Jn},Symbol.toStringTag,{value:"Module"}));var NC=Ev;function Ev(e,t,n){e instanceof RegExp&&(e=Tv(e,n)),t instanceof RegExp&&(t=Tv(t,n));var r=kv(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Tv(e,t){var n=t.match(e);return n?n[0]:null}Ev.range=kv;function kv(e,t,n){var r,o,a,i,l,u=n.indexOf(e),s=n.indexOf(t,u+1),d=u;if(u>=0&&s>0){for(r=[],a=n.length;d>=0&&!l;)d==u?(r.push(d),u=n.indexOf(e,d+1)):r.length==1?l=[r.pop(),s]:(o=r.pop(),o<a&&(a=o,i=s),s=n.indexOf(t,d+1)),d=u<s&&u>=0?u:s;r.length&&(l=[a,i])}return l}var DC=Nv;function Nv(e,t,n){e instanceof RegExp&&(e=Dv(e,n)),t instanceof RegExp&&(t=Dv(t,n));var r=Av(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Dv(e,t){var n=t.match(e);return n?n[0]:null}Nv.range=Av;function Av(e,t,n){var r,o,a,i,l,u=n.indexOf(e),s=n.indexOf(t,u+1),d=u;if(u>=0&&s>0){if(e===t)return[u,s];for(r=[],a=n.length;d>=0&&!l;)d==u?(r.push(d),u=n.indexOf(e,d+1)):r.length==1?l=[r.pop(),s]:(o=r.pop(),o<a&&(a=o,i=s),s=n.indexOf(t,d+1)),d=u<s&&u>=0?u:s;r.length&&(l=[a,i])}return l}var AC=DC,IC=Iv;function Iv(e,t,n){var r=e;return LC(e,t).reduce(function(o,a){return o.replace(a.functionIdentifier+"("+a.matches.body+")",FC(a.matches.body,a.functionIdentifier,n,r,t))},e)}function LC(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var o=r.exec(e);if(!o)return n;if(o[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],i=o.index,l=AC("(",")",e.substring(i));if(!l||l.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(r.test(e));return n}function FC(e,t,n,r,o){return n(Iv(e,o,n),t,r)}var Qe=function(e){this.value=e};Qe.math={isDegree:!0,acos:function(e){return Qe.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Qe.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Qe.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,o=t;o<r&&(o=r,r=t);for(var a=o+1;a<=e;a++)n*=a;return n/Qe.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Qe.math.isDegree&&(e=Qe.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return Qe.math.isDegree&&(e=Qe.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Qe.math.isDegree&&(e=Qe.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Qe.sinha(e)/Qe.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Qe.Exception=function(e){this.message=e};var jC=Qe,xe=jC;function Je(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var In=[{token:"sin",show:"sin",type:0,value:xe.math.sin},{token:"cos",show:"cos",type:0,value:xe.math.cos},{token:"tan",show:"tan",type:0,value:xe.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:xe.math.P},{token:"C",show:"C",type:10,value:xe.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:xe.math.asin},{token:"acos",show:"acos",type:0,value:xe.math.acos},{token:"atan",show:"atan",type:0,value:xe.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:xe.math.cosh},{token:"acosh",show:"acosh",type:0,value:xe.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:xe.math.div},{token:"!",show:"!",type:7,value:xe.math.fact},{token:"tanh",show:"tanh",type:0,value:xe.math.tanh},{token:"atanh",show:"atanh",type:0,value:xe.math.atanh},{token:"Mod",show:" Mod ",type:2,value:xe.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:xe.math.mul},{token:"sinh",show:"sinh",type:0,value:xe.math.sinh},{token:"asinh",show:"asinh",type:0,value:xe.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:xe.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:xe.math.add},{token:"-",show:"-",type:9,value:xe.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:xe.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:xe.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:xe.math.and}],Ts={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},Mi=0;Mi<In.length;Mi++)In[Mi].precedence=Ts[In[Mi].type];var Jt={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},jr={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},WC={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},It={},jo={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},zC={1:!0},et=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function BC(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}xe.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},xe.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===xe.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),et[n]=et[n]||[];for(var o=0;o<et[n].length;o++)if(e[t].token===et[n][o]){r=Lv(et[n][o],In);break}r===-1?(In.push(e[t]),e[t].precedence=Ts[e[t].type],et.length<=e[t].token.length&&(et[e[t].token.length]=[]),et[e[t].token.length].push(e[t].token)):(In[r]=e[t],e[t].precedence=Ts[e[t].type])}};function Lv(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function qC(e){for(var t=[],n=e.length,r,o,a,i=0;i<n;i++)if(!(i<n-1&&e[i]===" "&&e[i+1]===" ")){for(r="",o=e.length-i>et.length-2?et.length-1:e.length-i;o>0;o--)if(et[o]!==void 0)for(a=0;a<et[o].length;a++)BC(e,et[o][a],i,o)&&(r=et[o][a],a=et[o].length,o=0);if(i+=r.length-1,r==="")throw new xe.Exception("Can't understand after "+e.slice(i));t.push(In[Lv(r,In)])}return t}var HC={value:xe.math.changeSign,type:0,pre:21,show:"-"},Ci={value:")",show:")",type:5,pre:0},Wo={value:"(",type:4,pre:0,show:"("};xe.lex=function(e,t){var n=[Wo],r=[],o=e,a=Jt,i=0,l=It,u="",s;typeof t<"u"&&xe.addToken(t);var d={},f=qC(o);for(s=0;s<f.length;s++){var p=f[s];if(p.type===14){if(s>0&&s<f.length-1&&f[s+1].type===1&&(f[s-1].type===1||f[s-1].type===6))throw new xe.Exception("Unexpected Space");continue}var m=p.token,h=p.type,v=p.value,w=p.precedence,g=p.show,y=n[n.length-1],$;for($=r.length;$--&&r[$]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(h)!==-1){if(a[h]!==!0)throw new xe.Exception(m+" is not allowed after "+u);n.push(Ci),a=jr,l=jo,r.pop()}if(a[h]!==!0)throw new xe.Exception(m+" is not allowed after "+u);if(l[h]===!0&&(h=2,v=xe.math.mul,g="&times;",w=3,s=s-1),d={value:v,type:h,pre:w,show:g,numberOfArguments:p.numberOfArguments},h===0)a=Jt,l=It,Je(r,2),n.push(d),f[s+1].type!==4&&(n.push(Wo),r.push(2));else if(h===1)y.type===1?(y.value+=v,Je(r,1)):n.push(d),a=jr,l=WC;else if(h===2)a=Jt,l=It,Je(r,2),n.push(d);else if(h===3)n.push(d),a=jr,l=jo;else if(h===4)Je(r,1),i++,a=Jt,l=It,n.push(d);else if(h===5){if(!i)throw new xe.Exception("Closing parenthesis are more than opening one, wait What!!!");i--,a=jr,l=jo,n.push(d),Je(r,1)}else if(h===6){if(y.hasDec)throw new xe.Exception("Two decimals are not allowed in one number");y.type!==1&&(y={value:0,type:1,pre:0},n.push(y)),a=zC,Je(r,1),l=It,y.value+=v,y.hasDec=!0}else h===7&&(a=jr,l=jo,Je(r,1),n.push(d));h===8?(a=Jt,l=It,Je(r,p.numberOfArguments+2),n.push(d),f[s+1].type!==4&&(n.push(Wo),r.push(p.numberOfArguments+2))):h===9?(y.type===9?y.value===xe.math.add?(y.value=v,y.show=g,Je(r,1)):y.value===xe.math.sub&&g==="-"&&(y.value=xe.math.add,y.show="+",Je(r,1)):y.type!==5&&y.type!==7&&y.type!==1&&y.type!==3&&y.type!==13?m==="-"&&(a=Jt,l=It,Je(r,2).push(2),n.push(HC),n.push(Wo)):(n.push(d),Je(r,2)),a=Jt,l=It):h===10?(a=Jt,l=It,Je(r,2),n.push(d)):h===11?(a=Jt,l=It,n.push(d)):h===12?(a=Jt,l=It,Je(r,6),n.push(d),f[s+1].type!==4&&(n.push(Wo),r.push(6))):h===13&&(a=jr,l=jo,n.push(d)),Je(r,-1),u=m}for($=r.length;$--;)n.push(Ci);if(a[5]!==!0)throw new xe.Exception("complete the expression");for(;i--;)n.push(Ci);return n.push(Ci),new xe(n)};var UC=xe,ks=UC;ks.prototype.toPostfix=function(){for(var e=[],t,n,r,o,a,i=[{value:"(",type:4,pre:0}],l=this.value,u=1;u<l.length;u++)if(l[u].type===1||l[u].type===3||l[u].type===13)l[u].type===1&&(l[u].value=Number(l[u].value)),e.push(l[u]);else if(l[u].type===4)i.push(l[u]);else if(l[u].type===5)for(;(n=i.pop()).type!==4;)e.push(n);else if(l[u].type===11){for(;(n=i.pop()).type!==4;)e.push(n);i.push(n)}else{t=l[u],o=t.pre,a=i[i.length-1],r=a.pre;var s=a.value=="Math.pow"&&t.value=="Math.pow";if(o>r)i.push(t);else{for(;r>=o&&!s||s&&o<r;)n=i.pop(),a=i[i.length-1],e.push(n),r=a.pre,s=t.value=="Math.pow"&&a.value=="Math.pow";i.push(t)}}return new ks(e)};var VC=ks,zo=VC;zo.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,o,a=this.value,i=typeof e.n<"u",l=0;l<a.length;l++)if(a[l].type===1)t.push({value:a[l].value,type:1});else if(a[l].type===3)t.push({value:e[a[l].value],type:1});else if(a[l].type===0)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[l]):t[t.length-1].value=a[l].value(t[t.length-1].value);else if(a[l].type===7)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[l]):t[t.length-1].value=a[l].value(t[t.length-1].value);else if(a[l].type===8){for(var u=[],s=0;s<a[l].numberOfArguments;s++)u.push(t.pop().value);t.push({type:1,value:a[l].value.apply(a[l],u.reverse())})}else a[l].type===10?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r.value=r.concat(n),r.value.push(a[l]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[l]),t.push(n)):t.push({type:1,value:a[l].value(r.value,n.value)})):a[l].type===2||a[l].type===9?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r=r.concat(n),r.push(a[l]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[l]),t.push(n)):t.push({type:1,value:a[l].value(r.value,n.value)})):a[l].type===12?(n=t.pop(),typeof n.type<"u"&&(n=[n]),r=t.pop(),o=t.pop(),t.push({type:1,value:a[l].value(o.value,r.value,new zo(n))})):a[l].type===13&&(i?t.push({value:e[a[l].value],type:3}):t.push([a[l]]));if(t.length>1)throw new zo.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},zo.eval=function(e,t,n){return typeof t>"u"?this.lex(e).toPostfix().postfixEval():typeof n>"u"?typeof t.length<"u"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var GC=zo,Fv=GC;Fv.prototype.formulaEval=function(){for(var e,t,n,r=[],o=this.value,a=0;a<o.length;a++)o[a].type===1||o[a].type===3?r.push({value:o[a].type===3?o[a].show:o[a].value,type:1}):o[a].type===13?r.push({value:o[a].show,type:1}):o[a].type===0?r[r.length-1]={value:o[a].show+(o[a].show!="-"?"(":"")+r[r.length-1].value+(o[a].show!="-"?")":""),type:0}:o[a].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+o[a].show,type:7}:o[a].type===10?(e=r.pop(),t=r.pop(),o[a].show==="P"||o[a].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+o[a].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):o[a].type===2||o[a].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+o[a].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:o[a].type})):o[a].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var YC=Fv,KC=NC,XC=IC,RC=YC,ZC=100,QC=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,Ns,JC=e2;function e2(e,t){Ns=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(o,a,i){if(Ns++>ZC)throw Ns=0,new Error("Call stack overflow for "+i);if(o==="")throw new Error(a+"(): '"+i+"' must contain a non-whitespace string");o=r(o,i);var l=t2(o);if(l.length>1||o.indexOf("var(")>-1)return a+"("+o+")";var u=l[0]||"";u==="%"&&(o=o.replace(/\b[0-9\.]+%/g,function(f){return parseFloat(f.slice(0,-1))*.01}));var s=o.replace(new RegExp(u,"gi"),""),d;try{d=RC.eval(s)}catch{return a+"("+o+")"}return u==="%"&&(d*=100),(a.length||u==="%")&&(d=Math.round(d*t)/t),d+=u,d}function r(o,a){o=o.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var i="",l=o,u;u=QC.exec(l);){u[0].index>0&&(i+=l.substring(0,u[0].index));var s=KC("(",")",l.substring([0].index));if(s.body==="")throw new Error("'"+o+"' must contain a non-whitespace string");var d=n(s.body,"",a);i+=s.pre+d,l=s.post}return i+l}return XC(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function t2(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);o;)!o||!o[1]||(n.indexOf(o[1].toLowerCase())===-1&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}const Ds=xr(JC);var n2=typeof Co=="object"&&Co&&Co.Object===Object&&Co,r2=n2,o2=r2,a2=typeof self=="object"&&self&&self.Object===Object&&self,i2=o2||a2||Function("return this")(),Ei=i2,l2=Ei,u2=l2.Symbol,jv=u2,Wv=jv,zv=Object.prototype,s2=zv.hasOwnProperty,c2=zv.toString,Bo=Wv?Wv.toStringTag:void 0;function f2(e){var t=s2.call(e,Bo),n=e[Bo];try{e[Bo]=void 0;var r=!0}catch{}var o=c2.call(e);return r&&(t?e[Bo]=n:delete e[Bo]),o}var d2=f2,p2=Object.prototype,h2=p2.toString;function m2(e){return h2.call(e)}var v2=m2,Bv=jv,g2=d2,y2=v2,b2="[object Null]",w2="[object Undefined]",qv=Bv?Bv.toStringTag:void 0;function x2(e){return e==null?e===void 0?w2:b2:qv&&qv in Object(e)?g2(e):y2(e)}var Hv=x2;function $2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ti=$2,_2=Hv,P2=Ti,S2="[object AsyncFunction]",O2="[object Function]",M2="[object GeneratorFunction]",C2="[object Proxy]";function E2(e){if(!P2(e))return!1;var t=_2(e);return t==O2||t==M2||t==S2||t==C2}var T2=E2,k2=Ei,N2=k2["__core-js_shared__"],D2=N2,As=D2,Uv=function(){var e=/[^.]+$/.exec(As&&As.keys&&As.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function A2(e){return!!Uv&&Uv in e}var I2=A2,L2=Function.prototype,F2=L2.toString;function j2(e){if(e!=null){try{return F2.call(e)}catch{}try{return e+""}catch{}}return""}var W2=j2,z2=T2,B2=I2,q2=Ti,H2=W2,U2=/[\\^$.*+?()[\]{}|]/g,V2=/^\[object .+?Constructor\]$/,G2=Function.prototype,Y2=Object.prototype,K2=G2.toString,X2=Y2.hasOwnProperty,R2=RegExp("^"+K2.call(X2).replace(U2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z2(e){if(!q2(e)||B2(e))return!1;var t=z2(e)?R2:V2;return t.test(H2(e))}var Q2=Z2;function J2(e,t){return e==null?void 0:e[t]}var eE=J2,tE=Q2,nE=eE;function rE(e,t){var n=nE(e,t);return tE(n)?n:void 0}var Vv=rE,oE=Vv,aE=oE(Object,"create"),ki=aE,Gv=ki;function iE(){this.__data__=Gv?Gv(null):{},this.size=0}var lE=iE;function uE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sE=uE,cE=ki,fE="__lodash_hash_undefined__",dE=Object.prototype,pE=dE.hasOwnProperty;function hE(e){var t=this.__data__;if(cE){var n=t[e];return n===fE?void 0:n}return pE.call(t,e)?t[e]:void 0}var mE=hE,vE=ki,gE=Object.prototype,yE=gE.hasOwnProperty;function bE(e){var t=this.__data__;return vE?t[e]!==void 0:yE.call(t,e)}var wE=bE,xE=ki,$E="__lodash_hash_undefined__";function _E(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xE&&t===void 0?$E:t,this}var PE=_E,SE=lE,OE=sE,ME=mE,CE=wE,EE=PE;function Wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wr.prototype.clear=SE,Wr.prototype.delete=OE,Wr.prototype.get=ME,Wr.prototype.has=CE,Wr.prototype.set=EE;var TE=Wr;function kE(){this.__data__=[],this.size=0}var NE=kE;function DE(e,t){return e===t||e!==e&&t!==t}var AE=DE,IE=AE;function LE(e,t){for(var n=e.length;n--;)if(IE(e[n][0],t))return n;return-1}var Ni=LE,FE=Ni,jE=Array.prototype,WE=jE.splice;function zE(e){var t=this.__data__,n=FE(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():WE.call(t,n,1),--this.size,!0}var BE=zE,qE=Ni;function HE(e){var t=this.__data__,n=qE(t,e);return n<0?void 0:t[n][1]}var UE=HE,VE=Ni;function GE(e){return VE(this.__data__,e)>-1}var YE=GE,KE=Ni;function XE(e,t){var n=this.__data__,r=KE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var RE=XE,ZE=NE,QE=BE,JE=UE,eT=YE,tT=RE;function zr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zr.prototype.clear=ZE,zr.prototype.delete=QE,zr.prototype.get=JE,zr.prototype.has=eT,zr.prototype.set=tT;var nT=zr,rT=Vv,oT=Ei,aT=rT(oT,"Map"),iT=aT,Yv=TE,lT=nT,uT=iT;function sT(){this.size=0,this.__data__={hash:new Yv,map:new(uT||lT),string:new Yv}}var cT=sT;function fT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var dT=fT,pT=dT;function hT(e,t){var n=e.__data__;return pT(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Di=hT,mT=Di;function vT(e){var t=mT(this,e).delete(e);return this.size-=t?1:0,t}var gT=vT,yT=Di;function bT(e){return yT(this,e).get(e)}var wT=bT,xT=Di;function $T(e){return xT(this,e).has(e)}var _T=$T,PT=Di;function ST(e,t){var n=PT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var OT=ST,MT=cT,CT=gT,ET=wT,TT=_T,kT=OT;function Br(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Br.prototype.clear=MT,Br.prototype.delete=CT,Br.prototype.get=ET,Br.prototype.has=TT,Br.prototype.set=kT;var NT=Br,Kv=NT,DT="Expected a function";function Is(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DT);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Is.Cache||Kv),n}Is.Cache=Kv;var AT=Is;const IT=xr(AT);var Xv="__react_svg_text_measurement_id";function LT(e,t){try{var n=document.getElementById(Xv);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",Xv),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const Rv=IT(LT,function(e,t){return e+"_"+JSON.stringify(t)});var FT=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function jT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ls(e){return typeof e=="number"}function Zv(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function WT(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,o=r===void 0?!1:r,a=e.angle,i=e.width,l=e.lineHeight,u=l===void 0?"1em":l,s=e.capHeight,d=s===void 0?"0.71em":s,f=e.children,p=e.style,m=jT(e,FT),h=m.x,v=h===void 0?0:h,w=m.y,g=w===void 0?0:w,y=!Zv(v)||!Zv(g),$=c.useMemo(function(){var T=f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:T.map(function(j){return{word:j,wordWidth:Rv(j,p)||0}}),spaceWidth:Rv(" ",p)||0}},[f,p]),S=$.wordsWithWidth,x=$.spaceWidth,C=c.useMemo(function(){return y?[]:i||o?S.reduce(function(T,j){var I=j.word,B=j.wordWidth,Y=T[T.length-1];if(Y&&(i==null||o||(Y.width||0)+B+x<i))Y.words.push(I),Y.width=Y.width||0,Y.width+=B+x;else{var q={words:[I],width:B};T.push(q)}return T},[]):[{words:f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[y,i,o,f,S,x]),E=c.useMemo(function(){var T=y?"":Ds(n==="start"?"calc("+d+")":n==="middle"?"calc("+(C.length-1)/2+" * -"+u+" + ("+d+" / 2))":"calc("+(C.length-1)+" * -"+u+")");return T},[y,n,d,C.length,u]),M=c.useMemo(function(){var T=[];if(y)return"";if(Ls(v)&&Ls(g)&&Ls(i)&&o&&C.length>0){var j=C[0].width||1,I=o==="shrink-only"?Math.min(i/j,1):i/j,B=I,Y=v-I*v,q=g-B*g;T.push("matrix("+I+", 0, 0, "+B+", "+Y+", "+q+")")}return a&&T.push("rotate("+a+", "+v+", "+g+")"),T.length>0?T.join(" "):""},[y,v,g,i,o,C,a]);return{wordsByLines:C,startDy:E,transform:M}}var zT=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fs.apply(this,arguments)}function BT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var qT={overflow:"visible"};function js(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,o=r===void 0?0:r,a=e.textAnchor,i=a===void 0?"start":a,l=e.innerRef,u=e.innerTextRef;e.verticalAnchor,e.angle;var s=e.lineHeight,d=s===void 0?"1em":s;e.scaleToFit,e.capHeight,e.width;var f=BT(e,zT),p=f.x,m=p===void 0?0:p,h=f.fontSize,v=WT(e),w=v.wordsByLines,g=v.startDy,y=v.transform;return c.createElement("svg",{ref:l,x:n,y:o,fontSize:h,style:qT},w.length>0?c.createElement("text",Fs({ref:u,transform:y},f,{textAnchor:i}),w.map(function($,S){return c.createElement("tspan",{key:S,x:m,dy:S===0?g:d},$.words.join(" "))})):null)}function Ws(e,t,n){var r,o,a,i,l;t==null&&(t=100);function u(){var d=Date.now()-i;d<t&&d>=0?r=setTimeout(u,t-d):(r=null,n||(l=e.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,i=Date.now();var d=n&&!r;return r||(r=setTimeout(u,t)),d&&(l=e.apply(a,o),a=o=null),l};return s.clear=function(){r&&(clearTimeout(r),r=null)},s.flush=function(){r&&(l=e.apply(a,o),a=o=null,clearTimeout(r),r=null)},s}Ws.debounce=Ws;var HT=Ws;const Qv=xr(HT);function UT(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,l]=c.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=c.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i}),s=t?typeof t=="number"?t:t.scroll:null,d=t?typeof t=="number"?t:t.resize:null,f=c.useRef(!1);c.useEffect(()=>(f.current=!0,()=>void(f.current=!1)));const[p,m,h]=c.useMemo(()=>{const y=()=>{if(!u.current.element)return;const{left:$,top:S,width:x,height:C,bottom:E,right:M,x:T,y:j}=u.current.element.getBoundingClientRect(),I={left:$,top:S,width:x,height:C,bottom:E,right:M,x:T,y:j};u.current.element instanceof HTMLElement&&o&&(I.height=u.current.element.offsetHeight,I.width=u.current.element.offsetWidth),Object.freeze(I),f.current&&!KT(u.current.lastBounds,I)&&l(u.current.lastBounds=I)};return[y,d?Qv(y,d):y,s?Qv(y,s):y]},[l,o,s,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",h,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function w(){u.current.element&&(u.current.resizeObserver=new a(h),u.current.resizeObserver.observe(u.current.element),n&&u.current.scrollContainers&&u.current.scrollContainers.forEach(y=>y.addEventListener("scroll",h,{capture:!0,passive:!0})))}const g=y=>{!y||y===u.current.element||(v(),u.current.element=y,u.current.scrollContainers=Jv(y),w())};return GT(h,!!n),VT(m),c.useEffect(()=>{v(),w()},[n,h,m]),c.useEffect(()=>v,[]),[g,i,p]}function VT(e){c.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function GT(e,t){c.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function Jv(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(a=>a==="auto"||a==="scroll")&&t.push(e),[...t,...Jv(e.parentElement)]}const YT=["x","y","top","bottom","left","right","width","height"],KT=(e,t)=>YT.every(n=>e[n]===t[n]);var Ln=function(){function e(n){var r=n.x,o=r===void 0?0:r,a=n.y,i=a===void 0?0:a;this.x=0,this.y=0,this.x=o,this.y=i}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function XT(e,t){return new Ln({x:e.x+t.x,y:e.y+t.y})}function RT(e,t){return new Ln({x:e.x-t.x,y:e.y-t.y})}const eg=Ou(Object.freeze(Object.defineProperty({__proto__:null,Point:Ln,subtractPoints:RT,sumPoints:XT},Symbol.toStringTag,{value:"Module"})));function ZT(e){return!!e&&e instanceof Element}function QT(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function JT(e){return!!e&&"createSVGPoint"in e}function ek(e){return!!e&&"getScreenCTM"in e}function tk(e){return!!e&&"changedTouches"in e}function nk(e){return!!e&&"clientX"in e}function rk(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo.apply(this,arguments)}var zs={x:0,y:0};function ok(e){if(!e)return qo({},zs);if(tk(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:qo({},zs);if(nk(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:qo({},zs)}function tg(e,t){if(!e||!t)return null;var n=ok(t),r=QT(e)?e.ownerSVGElement:e,o=ek(r)?r.getScreenCTM():null;if(JT(r)&&o){var a=r.createSVGPoint();return a.x=n.x,a.y=n.y,a=a.matrixTransform(o.inverse()),new Ln({x:a.x,y:a.y})}var i=e.getBoundingClientRect();return new Ln({x:n.x-i.left-e.clientLeft,y:n.y-i.top-e.clientTop})}function ak(e,t){if(ZT(e)&&t)return tg(e,t);if(rk(e)){var n=e,r=n.target;if(r)return tg(r,n)}return null}var ng={},Ai={},St={},Lt={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.default=ik;function ik(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var Ii={},Li={};Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=lk;function lk(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=sk;var Bs=rg(Ot),uk=rg(Li);function rg(e){return e&&e.__esModule?e:{default:e}}function sk(e){let t,n,r;e.length!==2?(t=Bs.default,n=(l,u)=>(0,Bs.default)(e(l),u),r=(l,u)=>e(l)-u):(t=e===Bs.default||e===uk.default?e:ck,n=e,r=e);function o(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<0?s=f+1:d=f}while(s<d)}return s}function a(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<=0?s=f+1:d=f}while(s<d)}return s}function i(l,u,s=0,d=l.length){const f=o(l,u,s,d-1);return f>s&&r(l[f-1],u)>-r(l[f],u)?f-1:f}return{left:o,center:i,right:a}}function ck(){return 0}var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=fk,Ho.numbers=dk;function fk(e){return e===null?NaN:+e}function*dk(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=Lt.bisectRight=Lt.bisectLeft=Lt.bisectCenter=void 0;var pk=qs(Ot),og=qs(Ii),hk=qs(Ho);function qs(e){return e&&e.__esModule?e:{default:e}}const ag=(0,og.default)(pk.default),ig=ag.right;Lt.bisectRight=ig;const mk=ag.left;Lt.bisectLeft=mk;const vk=(0,og.default)(hk.default).center;Lt.bisectCenter=vk;var gk=ig;Lt.default=gk;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.blur=yk,er.blurImage=er.blur2=void 0;function yk(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=Hs(t),o=e.slice();return r(e,o,0,n,1),r(o,e,0,n,1),r(e,o,0,n,1),e}const bk=lg(Hs);er.blur2=bk;const wk=lg(xk);er.blurImage=wk;function lg(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:o,width:a,height:i}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((i=Math.floor(i!==void 0?i:o.length/a))>=0))throw new RangeError("invalid height");if(!a||!i||!n&&!r)return t;const l=n&&e(n),u=r&&e(r),s=o.slice();return l&&u?(qr(l,s,o,a,i),qr(l,o,s,a,i),qr(l,s,o,a,i),Hr(u,o,s,a,i),Hr(u,s,o,a,i),Hr(u,o,s,a,i)):l?(qr(l,o,s,a,i),qr(l,s,o,a,i),qr(l,o,s,a,i)):u&&(Hr(u,o,s,a,i),Hr(u,s,o,a,i),Hr(u,o,s,a,i)),t}}function qr(e,t,n,r,o){for(let a=0,i=r*o;a<i;)e(t,n,a,a+=r,1)}function Hr(e,t,n,r,o){for(let a=0,i=r*o;a<r;++a)e(t,n,a,a+i,r)}function xk(e){const t=Hs(e);return(n,r,o,a,i)=>{o<<=2,a<<=2,i<<=2,t(n,r,o+0,a+0,i),t(n,r,o+1,a+1,i),t(n,r,o+2,a+2,i),t(n,r,o+3,a+3,i)}}function Hs(e){const t=Math.floor(e);if(t===e)return $k(e);const n=e-t,r=2*e+1;return(o,a,i,l,u)=>{if(!((l-=u)>=i))return;let s=t*a[i];const d=u*t,f=d+u;for(let p=i,m=i+d;p<m;p+=u)s+=a[Math.min(l,p)];for(let p=i,m=l;p<=m;p+=u)s+=a[Math.min(l,p+d)],o[p]=(s+n*(a[Math.max(i,p-f)]+a[Math.min(l,p+f)]))/r,s-=a[Math.max(i,p-d)]}}function $k(e){const t=2*e+1;return(n,r,o,a,i)=>{if(!((a-=i)>=o))return;let l=e*r[o];const u=i*e;for(let s=o,d=o+u;s<d;s+=i)l+=r[Math.min(a,s)];for(let s=o,d=a;s<=d;s+=i)l+=r[Math.min(a,s+u)],n[s]=l/t,l-=r[Math.max(o,s-u)]}}var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=_k;function _k(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}var Us={};Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=Ck;function Pk(e){return e.length|0}function Sk(e){return!(e>0)}function Ok(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function Mk(e){return t=>e(...t)}function Ck(...e){const t=typeof e[e.length-1]=="function"&&Mk(e.pop());e=e.map(Ok);const n=e.map(Pk),r=e.length-1,o=new Array(r+1).fill(0),a=[];if(r<0||n.some(Sk))return a;for(;;){a.push(o.map((l,u)=>e[u][l]));let i=r;for(;++o[i]===n[i];){if(i===0)return t?a.map(t):a;o[i--]=0}}}var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=Ek;function Ek(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?o=>n+=+o||0:o=>n+=+t(o,r++,e)||0)}var Fi={},ji={};Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=Tk;function Tk(e,t){let n=0,r,o=0,a=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(r=i-o,o+=r/++n,a+=r*(i-o));else{let i=-1;for(let l of e)(l=t(l,++i,e))!=null&&(l=+l)>=l&&(r=l-o,o+=r/++n,a+=r*(l-o))}if(n>1)return a/(n-1)}Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=Dk;var kk=Nk(ji);function Nk(e){return e&&e.__esModule?e:{default:e}}function Dk(e,t){const n=(0,kk.default)(e,t);return n&&Math.sqrt(n)}var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=Ak;function Ak(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.Adder=void 0,Vr.fcumsum=Lk,Vr.fsum=Ik;class Gs{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let o=0;o<this._n&&o<32;o++){const a=n[o],i=t+a,l=Math.abs(t)<Math.abs(a)?t-(i-a):a-(i-t);l&&(n[r++]=l),t=i}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,o,a,i=0;if(n>0){for(i=t[--n];n>0&&(r=i,o=t[--n],i=r+o,a=o-(i-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(o=a*2,r=i+o,o==r-i&&(i=r))}return i}}Vr.Adder=Gs;function Ik(e,t){const n=new Gs;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function Lk(e,t){const n=new Gs;let r=-1;return Float64Array.from(e,t===void 0?o=>n.add(+o||0):o=>n.add(+t(o,++r,e)||0))}var Ft={},Mt={};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.InternSet=Mt.InternMap=void 0;class Fk extends Map{constructor(t,n=cg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Ys(this,t))}has(t){return super.has(Ys(this,t))}set(t,n){return super.set(ug(this,t),n)}delete(t){return super.delete(sg(this,t))}}Mt.InternMap=Fk;class jk extends Set{constructor(t,n=cg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(Ys(this,t))}add(t){return super.add(ug(this,t))}delete(t){return super.delete(sg(this,t))}}Mt.InternSet=jk;function Ys({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ug({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sg({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function cg(e){return e!==null&&typeof e=="object"?e.valueOf():e}var zi={};Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=Wk;function Wk(e){return e}Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.default=qk,Ft.flatGroup=Hk,Ft.flatRollup=Uk,Ft.groups=fg,Ft.index=Gk,Ft.indexes=Yk,Ft.rollup=Vk,Ft.rollups=pg;var zk=Mt,Uo=Bk(zi);function Bk(e){return e&&e.__esModule?e:{default:e}}function qk(e,...t){return Gr(e,Uo.default,Uo.default,t)}function fg(e,...t){return Gr(e,Array.from,Uo.default,t)}function dg(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(o=>o.pop().map(([a,i])=>[...o,a,i]));return e}function Hk(e,...t){return dg(fg(e,...t),t)}function Uk(e,t,...n){return dg(pg(e,t,...n),n)}function Vk(e,t,...n){return Gr(e,Uo.default,t,n)}function pg(e,t,...n){return Gr(e,Array.from,t,n)}function Gk(e,...t){return Gr(e,Uo.default,hg,t)}function Yk(e,...t){return Gr(e,Array.from,hg,t)}function hg(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function Gr(e,t,n,r){return function o(a,i){if(i>=r.length)return n(a);const l=new zk.InternMap,u=r[i++];let s=-1;for(const d of a){const f=u(d,++s,a),p=l.get(f);p?p.push(d):l.set(f,[d])}for(const[d,f]of l)l.set(d,o(f,i));return t(l)}(e,0)}var Ks={},vn={},Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=Kk;function Kk(e,t){return Array.from(t,n=>e[n])}Object.defineProperty(vn,"__esModule",{value:!0}),vn.ascendingDefined=qi,vn.compareDefined=gg,vn.default=Rk;var mg=vg(Ot),Xk=vg(Bi);function vg(e){return e&&e.__esModule?e:{default:e}}function Rk(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(o,a)=>a);return t.length>1?(t=t.map(o=>e.map(o)),r.sort((o,a)=>{for(const i of t){const l=qi(i[o],i[a]);if(l)return l}})):(n=e.map(n),r.sort((o,a)=>qi(n[o],n[a]))),(0,Xk.default)(e,r)}return e.sort(gg(n))}function gg(e=mg.default){if(e===mg.default)return qi;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function qi(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=Qk;var Xs=xg(Ot),yg=Zk(Ft),bg=xg(vn);function wg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(wg=function(r){return r?n:t})(e)}function Zk(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=wg(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function xg(e){return e&&e.__esModule?e:{default:e}}function Qk(e,t,n){return(t.length!==2?(0,bg.default)((0,yg.rollup)(e,t,n),([r,o],[a,i])=>(0,Xs.default)(o,i)||(0,Xs.default)(r,a)):(0,bg.default)((0,yg.default)(e,n),([r,o],[a,i])=>t(o,i)||(0,Xs.default)(r,a))).map(([r])=>r)}var Rs={},Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.slice=Yr.map=void 0;var $g=Array.prototype,Jk=$g.slice;Yr.slice=Jk;var eN=$g.map;Yr.map=eN;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=tN;function tN(e){return()=>e}var Hi={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=nN,tr.tickIncrement=_g,tr.tickStep=rN;var Qs=Math.sqrt(50),Js=Math.sqrt(10),ec=Math.sqrt(2);function nN(e,t,n){var r,o=-1,a,i,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(l=_g(e,t,n))===0||!isFinite(l))return[];if(l>0){let u=Math.round(e/l),s=Math.round(t/l);for(u*l<e&&++u,s*l>t&&--s,i=new Array(a=s-u+1);++o<a;)i[o]=(u+o)*l}else{l=-l;let u=Math.round(e*l),s=Math.round(t*l);for(u/l<e&&++u,s/l>t&&--s,i=new Array(a=s-u+1);++o<a;)i[o]=(u+o)/l}return r&&i.reverse(),i}function _g(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=Qs?10:a>=Js?5:a>=ec?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Qs?10:a>=Js?5:a>=ec?2:1)}function rN(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=Qs?o*=10:a>=Js?o*=5:a>=ec&&(o*=2),t<e?-o:o}Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=aN;var oN=tr;function aN(e,t,n){let r;for(;;){const o=(0,oN.tickIncrement)(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=uN;var iN=lN(Ur);function lN(e){return e&&e.__esModule?e:{default:e}}function uN(e){return Math.ceil(Math.log((0,iN.default)(e))/Math.LN2)+1}Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=mN;var sN=Yr,cN=Kr(Lt),tc=Kr(Zs),nc=Kr(Wi),fN=Kr(zi),dN=Kr(Hi),rc=hN(tr),pN=Kr(Ui);function Pg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pg=function(r){return r?n:t})(e)}function hN(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pg(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Kr(e){return e&&e.__esModule?e:{default:e}}function mN(){var e=fN.default,t=nc.default,n=pN.default;function r(o){Array.isArray(o)||(o=Array.from(o));var a,i=o.length,l,u,s=new Array(i);for(a=0;a<i;++a)s[a]=e(o[a],a,o);var d=t(s),f=d[0],p=d[1],m=n(s,f,p);if(!Array.isArray(m)){const $=p,S=+m;if(t===nc.default&&([f,p]=(0,dN.default)(f,p,S)),m=(0,rc.default)(f,p,S),m[0]<=f&&(u=(0,rc.tickIncrement)(f,p,S)),m[m.length-1]>=p)if($>=p&&t===nc.default){const x=(0,rc.tickIncrement)(f,p,S);isFinite(x)&&(x>0?p=(Math.floor(p/x)+1)*x:x<0&&(p=(Math.ceil(p*-x)+1)/-x))}else m.pop()}for(var h=m.length,v=0,w=h;m[v]<=f;)++v;for(;m[w-1]>p;)--w;(v||w<h)&&(m=m.slice(v,w),h=w-v);var g=new Array(h+1),y;for(a=0;a<=h;++a)y=g[a]=[],y.x0=a>0?m[a-1]:f,y.x1=a<h?m[a]:p;if(isFinite(u)){if(u>0)for(a=0;a<i;++a)(l=s[a])!=null&&f<=l&&l<=p&&g[Math.min(h,Math.floor((l-f)/u))].push(o[a]);else if(u<0){for(a=0;a<i;++a)if((l=s[a])!=null&&f<=l&&l<=p){const $=Math.floor((f-l)*u);g[Math.min(h,$+(m[$]<=l))].push(o[a])}}}else for(a=0;a<i;++a)(l=s[a])!=null&&f<=l&&l<=p&&g[(0,cN.default)(m,l,0,h)].push(o[a]);return g}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:(0,tc.default)(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:(0,tc.default)([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:(0,tc.default)(Array.isArray(o)?sN.slice.call(o):o),r):n},r}var oc={},nr={},Vi={};Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=vN;function vN(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=gN;function gN(e,t){let n,r=-1,o=-1;if(t===void 0)for(const a of e)++o,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=o);else for(let a of e)(a=t(a,++o,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=o);return r}var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=yN;function yN(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=bN;function bN(e,t){let n,r=-1,o=-1;if(t===void 0)for(const a of e)++o,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=o);else for(let a of e)(a=t(a,++o,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=o);return r}var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=Og;var Sg=vn;function Og(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?Sg.ascendingDefined:(0,Sg.compareDefined)(o);r>n;){if(r-n>600){const u=r-n+1,s=t-n+1,d=Math.log(u),f=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*f*(u-f)/u)*(s-u/2<0?-1:1),m=Math.max(n,Math.floor(t-s*f/u+p)),h=Math.min(r,Math.floor(t+(u-s)*f/u+p));Og(e,t,m,h,o)}const a=e[t];let i=n,l=r;for(Ko(e,n,t),o(e[r],a)>0&&Ko(e,n,r);i<l;){for(Ko(e,i,l),++i,--l;o(e[i],a)<0;)++i;for(;o(e[l],a)>0;)--l}o(e[n],a)===0?Ko(e,n,l):(++l,Ko(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ko(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=xN;var ac=wN(Ot);function wN(e){return e&&e.__esModule?e:{default:e}}function xN(e,t=ac.default){let n,r=!1;if(t.length===1){let o;for(const a of e){const i=t(a);(r?(0,ac.default)(i,o)>0:(0,ac.default)(i,i)===0)&&(n=a,o=i,r=!0)}}else for(const o of e)(r?t(o,n)>0:t(o,o)===0)&&(n=o,r=!0);return n}Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=MN,nr.quantileIndex=EN,nr.quantileSorted=CN;var Mg=Xr(Vi),$N=Xr(Vo),Cg=Xr(Go),_N=Xr(Yo),Eg=Xr(Gi),ic=ON(Ho),PN=vn,SN=Xr(Yi);function Tg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Tg=function(r){return r?n:t})(e)}function ON(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Tg(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Xr(e){return e&&e.__esModule?e:{default:e}}function MN(e,t,n){if(e=Float64Array.from((0,ic.numbers)(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return(0,Cg.default)(e);if(t>=1)return(0,Mg.default)(e);var r,o=(r-1)*t,a=Math.floor(o),i=(0,Mg.default)((0,Eg.default)(e,a).subarray(0,a+1)),l=(0,Cg.default)(e.subarray(a+1));return i+(l-i)*(o-a)}}function CN(e,t,n=ic.default){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return i+(l-i)*(o-a)}}function EN(e,t,n){if(e=Float64Array.from((0,ic.numbers)(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return(0,_N.default)(e);if(t>=1)return(0,$N.default)(e);var r,o=Math.floor((r-1)*t),a=(l,u)=>(0,PN.ascendingDefined)(e[l],e[u]),i=(0,Eg.default)(Uint32Array.from(e,(l,u)=>u),o,0,r-1,a);return(0,SN.default)(i.subarray(0,o+1),l=>e[l])}}Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=kN;var TN=Ng(Ur),kg=Ng(nr);function Ng(e){return e&&e.__esModule?e:{default:e}}function kN(e,t,n){return Math.ceil((n-t)/(2*((0,kg.default)(e,.75)-(0,kg.default)(e,.25))*Math.pow((0,TN.default)(e),-1/3)))}var lc={};Object.defineProperty(lc,"__esModule",{value:!0}),lc.default=AN;var NN=Dg(Ur),DN=Dg(Fi);function Dg(e){return e&&e.__esModule?e:{default:e}}function AN(e,t,n){return Math.ceil((n-t)*Math.cbrt((0,NN.default)(e))/(3.49*(0,DN.default)(e)))}var uc={};Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=IN;function IN(e,t){let n=0,r=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=FN,Ki.medianIndex=jN;var Ag=LN(nr);function Ig(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ig=function(r){return r?n:t})(e)}function LN(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ig(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function FN(e,t){return(0,Ag.default)(e,.5,t)}function jN(e,t){return(0,Ag.quantileIndex)(e,.5,t)}var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=zN;function*WN(e){for(const t of e)yield*t}function zN(e){return Array.from(WN(e))}var cc={};Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=qN;var BN=Mt;function qN(e,t){const n=new BN.InternMap;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let i of e)(i=t(i,++a,e))!=null&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,o=0;for(const[a,i]of n)i>o&&(o=i,r=a);return r}var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=HN,Xi.pair=Lg;function HN(e,t=Lg){const n=[];let r,o=!1;for(const a of e)o&&n.push(t(r,a)),r=a,o=!0;return n}function Lg(e,t){return[e,t]}var fc={};Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=UN;function UN(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}var dc={};Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=GN;var pc=VN(Ot),Fg=vn;function VN(e){return e&&e.__esModule?e:{default:e}}function GN(e,t=pc.default){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);t.length!==2&&(n=n.map(t),t=pc.default);const o=(l,u)=>t(n[l],n[u]);let a,i;return Uint32Array.from(n,(l,u)=>u).sort(t===pc.default?(l,u)=>(0,Fg.ascendingDefined)(n[l],n[u]):(0,Fg.compareDefined)(o)).forEach((l,u)=>{const s=o(l,a===void 0?l:a);s>=0?((a===void 0||s>0)&&(a=l,i=u),r[l]=i):r[l]=NaN}),r}var hc={};Object.defineProperty(hc,"__esModule",{value:!0}),hc.default=KN;var mc=YN(Ot);function YN(e){return e&&e.__esModule?e:{default:e}}function KN(e,t=mc.default){let n,r=!1;if(t.length===1){let o;for(const a of e){const i=t(a);(r?(0,mc.default)(i,o)<0:(0,mc.default)(i,i)===0)&&(n=a,o=i,r=!0)}}else for(const o of e)(r?t(o,n)<0:t(o,o)===0)&&(n=o,r=!0);return n}var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=ZN;var XN=jg(Ot),RN=jg(Yo);function jg(e){return e&&e.__esModule?e:{default:e}}function ZN(e,t=XN.default){if(t.length===1)return(0,RN.default)(e,t);let n,r=-1,o=-1;for(const a of e)++o,(r<0?t(a,a)===0:t(a,n)<0)&&(n=a,r=o);return r}var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.default=eD;var QN=Wg(Ot),JN=Wg(Vo);function Wg(e){return e&&e.__esModule?e:{default:e}}function eD(e,t=QN.default){if(t.length===1)return(0,JN.default)(e,t);let n,r=-1,o=-1;for(const a of e)++o,(r<0?t(a,a)===0:t(a,n)>0)&&(n=a,r=o);return r}var gc={};Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=rD;var tD=nD(Ri);function nD(e){return e&&e.__esModule?e:{default:e}}function rD(e,t){const n=(0,tD.default)(e,t);return n<0?void 0:n}var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0,Xo.shuffler=zg;var oD=zg(Math.random);Xo.default=oD;function zg(e){return function(n,r=0,o=n.length){let a=o-(r=+r);for(;a;){const i=e()*a--|0,l=n[a+r];n[a+r]=n[i+r],n[i+r]=l}return n}}var yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=aD;function aD(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=uD;var iD=lD(Go);function lD(e){return e&&e.__esModule?e:{default:e}}function uD(e){if(!(a=e.length))return[];for(var t=-1,n=(0,iD.default)(e,sD),r=new Array(n);++t<n;)for(var o=-1,a,i=r[t]=new Array(a);++o<a;)i[o]=e[o][t];return r}function sD(e){return e.length}var bc={};Object.defineProperty(bc,"__esModule",{value:!0}),bc.default=dD;var cD=fD(Zi);function fD(e){return e&&e.__esModule?e:{default:e}}function dD(){return(0,cD.default)(arguments)}var wc={};Object.defineProperty(wc,"__esModule",{value:!0}),wc.default=pD;function pD(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}var xc={};Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=hD;function hD(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}var $c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.default=mD;function mD(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const o of e)t(o,++r,e)&&n.push(o);return n}var _c={};Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=vD;function vD(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=gD;function gD(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let o,a,i=-1;if(arguments.length<3){if({done:o,value:n}=r.next(),o)return;++i}for(;{done:o,value:a}=r.next(),!o;)n=t(n,a,++i,e);return n}var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.default=yD;function yD(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=wD;var bD=Mt;function wD(e,...t){e=new bD.InternSet(e);for(const n of t)for(const r of n)e.delete(r);return e}var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.default=$D;var xD=Mt;function $D(e,t){const n=t[Symbol.iterator](),r=new xD.InternSet;for(const o of e){if(r.has(o))return!1;let a,i;for(;({value:a,done:i}=n.next())&&!i;){if(Object.is(o,a))return!1;r.add(a)}}return!0}var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=_D;var Ec=Mt;function _D(e,...t){e=new Ec.InternSet(e),t=t.map(PD);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function PD(e){return e instanceof Ec.InternSet?e:new Ec.InternSet(e)}var Tc={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=SD;function SD(e,t){const n=e[Symbol.iterator](),r=new Set;for(const o of t){const a=Bg(o);if(r.has(a))continue;let i,l;for(;{value:i,done:l}=n.next();){if(l)return!1;const u=Bg(i);if(r.add(u),Object.is(a,u))break}}return!0}function Bg(e){return e!==null&&typeof e=="object"?e.valueOf():e}Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=CD;var OD=MD(Qi);function MD(e){return e&&e.__esModule?e:{default:e}}function CD(e,t){return(0,OD.default)(t,e)}var kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=TD;var ED=Mt;function TD(...e){const t=new ED.InternSet;for(const n of e)for(const r of n)t.add(r);return t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Adder",{enumerable:!0,get:function(){return f.Adder}}),Object.defineProperty(e,"InternMap",{enumerable:!0,get:function(){return kt.InternMap}}),Object.defineProperty(e,"InternSet",{enumerable:!0,get:function(){return kt.InternSet}}),Object.defineProperty(e,"ascending",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"bin",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"bisect",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"bisectCenter",{enumerable:!0,get:function(){return t.bisectCenter}}),Object.defineProperty(e,"bisectLeft",{enumerable:!0,get:function(){return t.bisectLeft}}),Object.defineProperty(e,"bisectRight",{enumerable:!0,get:function(){return t.bisectRight}}),Object.defineProperty(e,"bisector",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"blur",{enumerable:!0,get:function(){return o.blur}}),Object.defineProperty(e,"blur2",{enumerable:!0,get:function(){return o.blur2}}),Object.defineProperty(e,"blurImage",{enumerable:!0,get:function(){return o.blurImage}}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"cross",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"cumsum",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"descending",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"deviation",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"disjoint",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(e,"every",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"extent",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"fcumsum",{enumerable:!0,get:function(){return f.fcumsum}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"flatGroup",{enumerable:!0,get:function(){return p.flatGroup}}),Object.defineProperty(e,"flatRollup",{enumerable:!0,get:function(){return p.flatRollup}}),Object.defineProperty(e,"fsum",{enumerable:!0,get:function(){return f.fsum}}),Object.defineProperty(e,"greatest",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"greatestIndex",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"group",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"groupSort",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"groups",{enumerable:!0,get:function(){return p.groups}}),Object.defineProperty(e,"histogram",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"index",{enumerable:!0,get:function(){return p.index}}),Object.defineProperty(e,"indexes",{enumerable:!0,get:function(){return p.indexes}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(e,"least",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"leastIndex",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"maxIndex",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"mean",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"median",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"medianIndex",{enumerable:!0,get:function(){return x.medianIndex}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"minIndex",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"mode",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"nice",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"permute",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"quantile",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"quantileIndex",{enumerable:!0,get:function(){return Y.quantileIndex}}),Object.defineProperty(e,"quantileSorted",{enumerable:!0,get:function(){return Y.quantileSorted}}),Object.defineProperty(e,"quickselect",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"range",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"rank",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"reverse",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"rollup",{enumerable:!0,get:function(){return p.rollup}}),Object.defineProperty(e,"rollups",{enumerable:!0,get:function(){return p.rollups}}),Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"shuffle",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"shuffler",{enumerable:!0,get:function(){return te.shuffler}}),Object.defineProperty(e,"some",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"sort",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"subset",{enumerable:!0,get:function(){return on.default}}),Object.defineProperty(e,"sum",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"superset",{enumerable:!0,get:function(){return Un.default}}),Object.defineProperty(e,"thresholdFreedmanDiaconis",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"thresholdScott",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"thresholdSturges",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"tickIncrement",{enumerable:!0,get:function(){return ae.tickIncrement}}),Object.defineProperty(e,"tickStep",{enumerable:!0,get:function(){return ae.tickStep}}),Object.defineProperty(e,"ticks",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"transpose",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return Tt.default}}),Object.defineProperty(e,"variance",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return R.default}});var t=Kt(Lt),n=ye(Ot),r=ye(Ii),o=er,a=ye(Ur),i=ye(Us),l=ye(Vs),u=ye(Li),s=ye(Fi),d=ye(Wi),f=Vr,p=Kt(Ft),m=ye(Ks),h=ye(Rs),v=ye(oc),w=ye(lc),g=ye(Ui),y=ye(Vi),$=ye(Vo),S=ye(uc),x=Kt(Ki),C=ye(sc),E=ye(Go),M=ye(Yo),T=ye(cc),j=ye(Hi),I=ye(Xi),B=ye(Bi),Y=Kt(nr),q=ye(Gi),P=ye(fc),L=ye(dc),z=ye(hc),H=ye(Ri),N=ye(Yi),D=ye(vc),W=ye(gc),te=Kt(Xo),J=ye(yc),ae=Kt(tr),re=ye(Zi),le=ye(ji),R=ye(bc),ce=ye(wc),V=ye(xc),K=ye($c),ie=ye(_c),A=ye(Pc),pe=ye(Sc),me=ye(vn),Oe=ye(Oc),Ae=ye(Mc),Ue=ye(Cc),on=ye(Tc),Un=ye(Qi),Tt=ye(kc),kt=Mt;function ye(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}function We(Ie){if(typeof WeakMap!="function")return null;var an=new WeakMap,Be=new WeakMap;return(We=function(Re){return Re?Be:an})(Ie)}function Kt(Ie,an){if(!an&&Ie&&Ie.__esModule)return Ie;if(Ie===null||typeof Ie!="object"&&typeof Ie!="function")return{default:Ie};var Be=We(an);if(Be&&Be.has(Ie))return Be.get(Ie);var Re={},_n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var mt in Ie)if(mt!=="default"&&Object.prototype.hasOwnProperty.call(Ie,mt)){var ln=_n?Object.getOwnPropertyDescriptor(Ie,mt):null;ln&&(ln.get||ln.set)?Object.defineProperty(Re,mt,ln):Re[mt]=Ie[mt]}return Re.default=Ie,Be&&Be.set(Ie,Re),Re}})(St);var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.initInterpolator=ND,Ge.initRange=kD;function kD(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ND(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.default=Hg,Rr.implicit=void 0;var qg=St,DD=Ge;const Nc=Symbol("implicit");Rr.implicit=Nc;function Hg(){var e=new qg.InternMap,t=[],n=[],r=Nc;function o(a){let i=e.get(a);if(i===void 0){if(r!==Nc)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return o.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new qg.InternMap;for(const i of a)e.has(i)||e.set(i,t.push(i)-1);return o},o.range=function(a){return arguments.length?(n=Array.from(a),o):n.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return Hg(t,n).unknown(r)},DD.initRange.apply(o,arguments),o}Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=Dc,Ai.point=jD;var AD=St,ID=Ge,LD=FD(Rr);function FD(e){return e&&e.__esModule?e:{default:e}}function Dc(){var e=(0,LD.default)().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,a,i,l=!1,u=0,s=0,d=.5;delete e.unknown;function f(){var p=t().length,m=o<r,h=m?o:r,v=m?r:o;a=(v-h)/Math.max(1,p-u+s*2),l&&(a=Math.floor(a)),h+=(v-h-a*(p-u))*d,i=a*(1-u),l&&(h=Math.round(h),i=Math.round(i));var w=(0,AD.range)(p).map(function(g){return h+a*g});return n(m?w.reverse():w)}return e.domain=function(p){return arguments.length?(t(p),f()):t()},e.range=function(p){return arguments.length?([r,o]=p,r=+r,o=+o,f()):[r,o]},e.rangeRound=function(p){return[r,o]=p,r=+r,o=+o,l=!0,f()},e.bandwidth=function(){return i},e.step=function(){return a},e.round=function(p){return arguments.length?(l=!!p,f()):l},e.padding=function(p){return arguments.length?(u=Math.min(1,s=+p),f()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),f()):u},e.paddingOuter=function(p){return arguments.length?(s=+p,f()):s},e.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),f()):d},e.copy=function(){return Dc(t(),[r,o]).round(l).paddingInner(u).paddingOuter(s).align(d)},ID.initRange.apply(f(),arguments)}function Ug(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Ug(t())},e}function jD(){return Ug(Dc.apply(null,arguments).paddingInner(1))}var Ac={},jt={},dt={},Ro={},Ji={},rr={},tt={},Zr={};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=WD,Zr.extend=zD;function WD(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zD(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}Object.defineProperty(tt,"__esModule",{value:!0}),tt.Color=Qr,tt.Rgb=nt,tt.darker=tt.brighter=void 0,tt.default=el,tt.hsl=t0,tt.hslConvert=Ic,tt.rgb=Zg,tt.rgbConvert=Rg;var Zo=BD(Zr);function Vg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Vg=function(r){return r?n:t})(e)}function BD(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Vg(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Qr(){}var Jr=.7;tt.darker=Jr;var Qo=1/Jr;tt.brighter=Qo;var eo="\\s*([+-]?\\d+)\\s*",Jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",en="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qD=/^#([0-9a-f]{3,8})$/,HD=new RegExp(`^rgb\\(${eo},${eo},${eo}\\)$`),UD=new RegExp(`^rgb\\(${en},${en},${en}\\)$`),VD=new RegExp(`^rgba\\(${eo},${eo},${eo},${Jo}\\)$`),GD=new RegExp(`^rgba\\(${en},${en},${en},${Jo}\\)$`),YD=new RegExp(`^hsl\\(${Jo},${en},${en}\\)$`),KD=new RegExp(`^hsla\\(${Jo},${en},${en},${Jo}\\)$`),Gg={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};(0,Zo.default)(Qr,el,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yg,formatHex:Yg,formatHex8:XD,formatHsl:RD,formatRgb:Kg,toString:Kg});function Yg(){return this.rgb().formatHex()}function XD(){return this.rgb().formatHex8()}function RD(){return Ic(this).formatHsl()}function Kg(){return this.rgb().formatRgb()}function el(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Xg(t):n===3?new nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HD.exec(e))?new nt(t[1],t[2],t[3],1):(t=UD.exec(e))?new nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=VD.exec(e))?tl(t[1],t[2],t[3],t[4]):(t=GD.exec(e))?tl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=YD.exec(e))?e0(t[1],t[2]/100,t[3]/100,1):(t=KD.exec(e))?e0(t[1],t[2]/100,t[3]/100,t[4]):Gg.hasOwnProperty(e)?Xg(Gg[e]):e==="transparent"?new nt(NaN,NaN,NaN,0):null}function Xg(e){return new nt(e>>16&255,e>>8&255,e&255,1)}function tl(e,t,n,r){return r<=0&&(e=t=n=NaN),new nt(e,t,n,r)}function Rg(e){return e instanceof Qr||(e=el(e)),e?(e=e.rgb(),new nt(e.r,e.g,e.b,e.opacity)):new nt}function Zg(e,t,n,r){return arguments.length===1?Rg(e):new nt(e,t,n,r??1)}function nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}(0,Zo.default)(nt,Zg,(0,Zo.extend)(Qr,{brighter(e){return e=e==null?Qo:Math.pow(Qo,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jr:Math.pow(Jr,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nt(or(this.r),or(this.g),or(this.b),nl(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:Qg,formatHex:Qg,formatHex8:ZD,formatRgb:Jg,toString:Jg}));function Qg(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}`}function ZD(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}${ar((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jg(){const e=nl(this.opacity);return`${e===1?"rgb(":"rgba("}${or(this.r)}, ${or(this.g)}, ${or(this.b)}${e===1?")":`, ${e})`}`}function nl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function or(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ar(e){return e=or(e),(e<16?"0":"")+e.toString(16)}function e0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wt(e,t,n,r)}function Ic(e){if(e instanceof Wt)return new Wt(e.h,e.s,e.l,e.opacity);if(e instanceof Qr||(e=el(e)),!e)return new Wt;if(e instanceof Wt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,u=(a+o)/2;return l?(t===a?i=(n-r)/l+(n<r)*6:n===a?i=(r-t)/l+2:i=(t-n)/l+4,l/=u<.5?a+o:2-a-o,i*=60):l=u>0&&u<1?0:i,new Wt(i,l,u,e.opacity)}function t0(e,t,n,r){return arguments.length===1?Ic(e):new Wt(e,t,n,r??1)}function Wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,Zo.default)(Wt,t0,(0,Zo.extend)(Qr,{brighter(e){return e=e==null?Qo:Math.pow(Qo,e),new Wt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jr:Math.pow(Jr,e),new Wt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new nt(Lc(e>=240?e-240:e+120,o,r),Lc(e,o,r),Lc(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Wt(n0(this.h),rl(this.s),rl(this.l),nl(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 e=nl(this.opacity);return`${e===1?"hsl(":"hsla("}${n0(this.h)}, ${rl(this.s)*100}%, ${rl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function n0(e){return e=(e||0)%360,e<0?e+360:e}function rl(e){return Math.max(0,Math.min(1,e||0))}function Lc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Fn={},ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.radians=ir.degrees=void 0;const QD=Math.PI/180;ir.radians=QD;const JD=180/Math.PI;ir.degrees=JD,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.Hcl=zt,Fn.Lab=Ct,Fn.default=f0,Fn.gray=n3,Fn.hcl=p0,Fn.lch=r3;var ol=e3(Zr),ea=tt,r0=ir;function o0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(o0=function(r){return r?n:t})(e)}function e3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=o0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}const al=18,a0=.96422,i0=1,l0=.82521,u0=4/29,to=6/29,s0=3*to*to,t3=to*to*to;function c0(e){if(e instanceof Ct)return new Ct(e.l,e.a,e.b,e.opacity);if(e instanceof zt)return h0(e);e instanceof ea.Rgb||(e=(0,ea.rgbConvert)(e));var t=zc(e.r),n=zc(e.g),r=zc(e.b),o=Fc((.2225045*t+.7168786*n+.0606169*r)/i0),a,i;return t===n&&n===r?a=i=o:(a=Fc((.4360747*t+.3850649*n+.1430804*r)/a0),i=Fc((.0139322*t+.0971045*n+.7141733*r)/l0)),new Ct(116*o-16,500*(a-o),200*(o-i),e.opacity)}function n3(e,t){return new Ct(e,0,0,t??1)}function f0(e,t,n,r){return arguments.length===1?c0(e):new Ct(e,t,n,r??1)}function Ct(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}(0,ol.default)(Ct,f0,(0,ol.extend)(ea.Color,{brighter(e){return new Ct(this.l+al*(e??1),this.a,this.b,this.opacity)},darker(e){return new Ct(this.l-al*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=a0*jc(t),e=i0*jc(e),n=l0*jc(n),new ea.Rgb(Wc(3.1338561*t-1.6168667*e-.4906146*n),Wc(-.9787684*t+1.9161415*e+.033454*n),Wc(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Fc(e){return e>t3?Math.pow(e,1/3):e/s0+u0}function jc(e){return e>to?e*e*e:s0*(e-u0)}function Wc(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zc(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function d0(e){if(e instanceof zt)return new zt(e.h,e.c,e.l,e.opacity);if(e instanceof Ct||(e=c0(e)),e.a===0&&e.b===0)return new zt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*r0.degrees;return new zt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function r3(e,t,n,r){return arguments.length===1?d0(e):new zt(n,t,e,r??1)}function p0(e,t,n,r){return arguments.length===1?d0(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function h0(e){if(isNaN(e.h))return new Ct(e.l,0,0,e.opacity);var t=e.h*r0.radians;return new Ct(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,ol.default)(zt,p0,(0,ol.extend)(ea.Color,{brighter(e){return new zt(this.h,this.c,this.l+al*(e??1),this.opacity)},darker(e){return new zt(this.h,this.c,this.l-al*(e??1),this.opacity)},rgb(){return h0(this).rgb()}}));var il={};Object.defineProperty(il,"__esModule",{value:!0}),il.Cubehelix=Wn,il.default=$0;var m0=o3(Zr),jn=tt,v0=ir;function g0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(g0=function(r){return r?n:t})(e)}function o3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=g0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var y0=-.14861,Bc=1.78277,qc=-.29227,ll=-.90649,ta=1.97294,b0=ta*ll,w0=ta*Bc,x0=Bc*qc-ll*y0;function a3(e){if(e instanceof Wn)return new Wn(e.h,e.s,e.l,e.opacity);e instanceof jn.Rgb||(e=(0,jn.rgbConvert)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(x0*r+b0*t-w0*n)/(x0+b0-w0),a=r-o,i=(ta*(n-o)-qc*a)/ll,l=Math.sqrt(i*i+a*a)/(ta*o*(1-o)),u=l?Math.atan2(i,a)*v0.degrees-120:NaN;return new Wn(u<0?u+360:u,l,o,e.opacity)}function $0(e,t,n,r){return arguments.length===1?a3(e):new Wn(e,t,n,r??1)}function Wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,m0.default)(Wn,$0,(0,m0.extend)(jn.Color,{brighter(e){return e=e==null?jn.brighter:Math.pow(jn.brighter,e),new Wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jn.darker:Math.pow(jn.darker,e),new Wn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*v0.radians,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new jn.Rgb(255*(t+n*(y0*r+Bc*o)),255*(t+n*(qc*r+ll*o)),255*(t+n*(ta*r)),this.opacity)}})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"color",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return n.gray}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return n.hcl}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return t.hsl}}),Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return n.lch}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return t.rgb}});var t=i(tt),n=i(Fn),r=o(il);function o(l){return l&&l.__esModule?l:{default:l}}function a(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,s=new WeakMap;return(a=function(d){return d?s:u})(l)}function i(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var s=a(u);if(s&&s.has(l))return s.get(l);var d={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)){var m=f?Object.getOwnPropertyDescriptor(l,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=l[p]}return d.default=l,s&&s.set(l,d),d}}(rr);var gn={},no={};Object.defineProperty(no,"__esModule",{value:!0}),no.basis=_0,no.default=i3;function _0(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function i3(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=r<t-1?e[r+2]:2*a-o;return _0((n-r/t)*t,i,o,a,l)}}var ul={};Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=u3;var l3=no;function u3(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],l=e[(r+2)%t];return(0,l3.basis)((n-r/t)*t,o,a,i,l)}}var tn={},na={};Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var s3=e=>()=>e;na.default=s3,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=S0,tn.gamma=p3,tn.hue=d3;var Hc=c3(na);function c3(e){return e&&e.__esModule?e:{default:e}}function P0(e,t){return function(n){return e+n*t}}function f3(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function d3(e,t){var n=t-e;return n?P0(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,Hc.default)(isNaN(e)?t:e)}function p3(e){return(e=+e)==1?S0:function(t,n){return n-t?f3(t,n,e):(0,Hc.default)(isNaN(t)?n:t)}}function S0(e,t){var n=t-e;return n?P0(e,n):(0,Hc.default)(isNaN(e)?t:e)}Object.defineProperty(gn,"__esModule",{value:!0}),gn.rgbBasisClosed=gn.rgbBasis=gn.default=void 0;var Uc=rr,h3=C0(no),m3=C0(ul),O0=v3(tn);function M0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(M0=function(r){return r?n:t})(e)}function v3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=M0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function C0(e){return e&&e.__esModule?e:{default:e}}var g3=function e(t){var n=(0,O0.gamma)(t);function r(o,a){var i=n((o=(0,Uc.rgb)(o)).r,(a=(0,Uc.rgb)(a)).r),l=n(o.g,a.g),u=n(o.b,a.b),s=(0,O0.default)(o.opacity,a.opacity);return function(d){return o.r=i(d),o.g=l(d),o.b=u(d),o.opacity=s(d),o+""}}return r.gamma=e,r}(1);gn.default=g3;function E0(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),a=new Array(n),i,l;for(i=0;i<n;++i)l=(0,Uc.rgb)(t[i]),r[i]=l.r||0,o[i]=l.g||0,a[i]=l.b||0;return r=e(r),o=e(o),a=e(a),l.opacity=1,function(u){return l.r=r(u),l.g=o(u),l.b=a(u),l+""}}}var y3=E0(h3.default);gn.rgbBasis=y3;var b3=E0(m3.default);gn.rgbBasisClosed=b3;var ra={},ro={};Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=w3,ro.isNumberArray=x3;function w3(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=e[o]*(1-a)+t[o]*a;return r}}function x3(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var T0;function k0(){if(T0)return ra;T0=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=a,ra.genericArray=i;var e=o(dl()),t=r(ro);function n(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,s=new WeakMap;return(n=function(d){return d?s:u})(l)}function r(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var s=n(u);if(s&&s.has(l))return s.get(l);var d={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)){var m=f?Object.getOwnPropertyDescriptor(l,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=l[p]}return d.default=l,s&&s.set(l,d),d}function o(l){return l&&l.__esModule?l:{default:l}}function a(l,u){return((0,t.isNumberArray)(u)?t.default:i)(l,u)}function i(l,u){var s=u?u.length:0,d=l?Math.min(s,l.length):0,f=new Array(d),p=new Array(s),m;for(m=0;m<d;++m)f[m]=(0,e.default)(l[m],u[m]);for(;m<s;++m)p[m]=u[m];return function(h){for(m=0;m<d;++m)p[m]=f[m](h);return p}}return ra}var sl={};Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=$3;function $3(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var oo={};Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=_3;function _3(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var cl={},N0;function D0(){if(N0)return cl;N0=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=n;var e=t(dl());function t(r){return r&&r.__esModule?r:{default:r}}function n(r,o){var a={},i={},l;(r===null||typeof r!="object")&&(r={}),(o===null||typeof o!="object")&&(o={});for(l in o)l in r?a[l]=(0,e.default)(r[l],o[l]):i[l]=o[l];return function(u){for(l in a)i[l]=a[l](u);return i}}return cl}var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.default=C3;var P3=S3(oo);function S3(e){return e&&e.__esModule?e:{default:e}}var Vc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gc=new RegExp(Vc.source,"g");function O3(e){return function(){return e}}function M3(e){return function(t){return e(t)+""}}function C3(e,t){var n=Vc.lastIndex=Gc.lastIndex=0,r,o,a,i=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Vc.exec(e))&&(o=Gc.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),l[i]?l[i]+=a:l[++i]=a),(r=r[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,u.push({i,x:(0,P3.default)(r,o)})),n=Gc.lastIndex;return n<t.length&&(a=t.slice(n),l[i]?l[i]+=a:l[++i]=a),l.length<2?u[0]?M3(u[0].x):O3(t):(t=u.length,function(s){for(var d=0,f;d<t;++d)l[(f=u[d]).i]=f.x(s);return l.join("")})}var A0;function dl(){if(A0)return Ji;A0=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=p;var e=rr,t=f(gn),n=k0(),r=f(sl),o=f(oo),a=f(D0()),i=f(fl),l=f(na),u=d(ro);function s(m){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(s=function(w){return w?v:h})(m)}function d(m,h){if(!h&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var v=s(h);if(v&&v.has(m))return v.get(m);var w={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in m)if(y!=="default"&&Object.prototype.hasOwnProperty.call(m,y)){var $=g?Object.getOwnPropertyDescriptor(m,y):null;$&&($.get||$.set)?Object.defineProperty(w,y,$):w[y]=m[y]}return w.default=m,v&&v.set(m,w),w}function f(m){return m&&m.__esModule?m:{default:m}}function p(m,h){var v=typeof h,w;return h==null||v==="boolean"?(0,l.default)(h):(v==="number"?o.default:v==="string"?(w=(0,e.color)(h))?(h=w,t.default):i.default:h instanceof e.color?t.default:h instanceof Date?r.default:(0,u.isNumberArray)(h)?u.default:Array.isArray(h)?n.genericArray:typeof h.valueOf!="function"&&typeof h.toString!="function"||isNaN(h)?a.default:o.default)(m,h)}return Ji}var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.default=E3;function E3(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.default=k3;var T3=tn;function k3(e,t){var n=(0,T3.hue)(+e,+t);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.default=N3;function N3(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var ao={},pl={},oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=A3,oa.identity=void 0;var I0=180/Math.PI,D3={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};oa.identity=D3;function A3(e,t,n,r,o,a){var i,l,u;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),e*r<t*n&&(e=-e,t=-t,u=-u,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*I0,skewX:Math.atan(u)*I0,scaleX:i,scaleY:l}}Object.defineProperty(pl,"__esModule",{value:!0}),pl.parseCss=L3,pl.parseSvg=F3;var aa=I3(oa);function L0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(L0=function(r){return r?n:t})(e)}function I3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=L0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var hl;function L3(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?aa.identity:(0,aa.default)(t.a,t.b,t.c,t.d,t.e,t.f)}function F3(e){return e==null||(hl||(hl=document.createElementNS("http://www.w3.org/2000/svg","g")),hl.setAttribute("transform",e),!(e=hl.transform.baseVal.consolidate()))?aa.identity:(e=e.matrix,(0,aa.default)(e.a,e.b,e.c,e.d,e.e,e.f))}Object.defineProperty(ao,"__esModule",{value:!0}),ao.interpolateTransformSvg=ao.interpolateTransformCss=void 0;var io=j3(oo),F0=pl;function j3(e){return e&&e.__esModule?e:{default:e}}function j0(e,t,n,r){function o(s){return s.length?s.pop()+" ":""}function a(s,d,f,p,m,h){if(s!==f||d!==p){var v=m.push("translate(",null,t,null,n);h.push({i:v-4,x:(0,io.default)(s,f)},{i:v-2,x:(0,io.default)(d,p)})}else(f||p)&&m.push("translate("+f+t+p+n)}function i(s,d,f,p){s!==d?(s-d>180?d+=360:d-s>180&&(s+=360),p.push({i:f.push(o(f)+"rotate(",null,r)-2,x:(0,io.default)(s,d)})):d&&f.push(o(f)+"rotate("+d+r)}function l(s,d,f,p){s!==d?p.push({i:f.push(o(f)+"skewX(",null,r)-2,x:(0,io.default)(s,d)}):d&&f.push(o(f)+"skewX("+d+r)}function u(s,d,f,p,m,h){if(s!==f||d!==p){var v=m.push(o(m)+"scale(",null,",",null,")");h.push({i:v-4,x:(0,io.default)(s,f)},{i:v-2,x:(0,io.default)(d,p)})}else(f!==1||p!==1)&&m.push(o(m)+"scale("+f+","+p+")")}return function(s,d){var f=[],p=[];return s=e(s),d=e(d),a(s.translateX,s.translateY,d.translateX,d.translateY,f,p),i(s.rotate,d.rotate,f,p),l(s.skewX,d.skewX,f,p),u(s.scaleX,s.scaleY,d.scaleX,d.scaleY,f,p),s=d=null,function(m){for(var h=-1,v=p.length,w;++h<v;)f[(w=p[h]).i]=w.x(m);return f.join("")}}}var W3=j0(F0.parseCss,"px, ","px)","deg)");ao.interpolateTransformCss=W3;var z3=j0(F0.parseSvg,", ",")",")");ao.interpolateTransformSvg=z3;var ml={};Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var B3=1e-12;function W0(e){return((e=Math.exp(e))+1/e)/2}function q3(e){return((e=Math.exp(e))-1/e)/2}function H3(e){return((e=Math.exp(2*e))-1)/(e+1)}var U3=function e(t,n,r){function o(a,i){var l=a[0],u=a[1],s=a[2],d=i[0],f=i[1],p=i[2],m=d-l,h=f-u,v=m*m+h*h,w,g;if(v<B3)g=Math.log(p/s)/t,w=function(E){return[l+E*m,u+E*h,s*Math.exp(t*E*g)]};else{var y=Math.sqrt(v),$=(p*p-s*s+r*v)/(2*s*n*y),S=(p*p-s*s-r*v)/(2*p*n*y),x=Math.log(Math.sqrt($*$+1)-$),C=Math.log(Math.sqrt(S*S+1)-S);g=(C-x)/t,w=function(E){var M=E*g,T=W0(x),j=s/(n*y)*(T*H3(t*M+x)-q3(x));return[l+j*m,u+j*h,s*T/W0(t*M+x)]}}return w.duration=g*1e3*t/Math.SQRT2,w}return o.rho=function(a){var i=Math.max(.001,+a),l=i*i,u=l*l;return e(i,l,u)},o}(Math.SQRT2,2,4);ml.default=U3;var lo={};Object.defineProperty(lo,"__esModule",{value:!0}),lo.hslLong=lo.default=void 0;var z0=rr,ia=V3(tn);function B0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(B0=function(r){return r?n:t})(e)}function V3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=B0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function q0(e){return function(t,n){var r=e((t=(0,z0.hsl)(t)).h,(n=(0,z0.hsl)(n)).h),o=(0,ia.default)(t.s,n.s),a=(0,ia.default)(t.l,n.l),i=(0,ia.default)(t.opacity,n.opacity);return function(l){return t.h=r(l),t.s=o(l),t.l=a(l),t.opacity=i(l),t+""}}}var G3=q0(ia.hue);lo.default=G3;var Y3=q0(ia.default);lo.hslLong=Y3;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.default=X3;var H0=rr,vl=K3(tn);function K3(e){return e&&e.__esModule?e:{default:e}}function X3(e,t){var n=(0,vl.default)((e=(0,H0.lab)(e)).l,(t=(0,H0.lab)(t)).l),r=(0,vl.default)(e.a,t.a),o=(0,vl.default)(e.b,t.b),a=(0,vl.default)(e.opacity,t.opacity);return function(i){return e.l=n(i),e.a=r(i),e.b=o(i),e.opacity=a(i),e+""}}var uo={};Object.defineProperty(uo,"__esModule",{value:!0}),uo.hclLong=uo.default=void 0;var U0=rr,la=R3(tn);function V0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(V0=function(r){return r?n:t})(e)}function R3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=V0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function G0(e){return function(t,n){var r=e((t=(0,U0.hcl)(t)).h,(n=(0,U0.hcl)(n)).h),o=(0,la.default)(t.c,n.c),a=(0,la.default)(t.l,n.l),i=(0,la.default)(t.opacity,n.opacity);return function(l){return t.h=r(l),t.c=o(l),t.l=a(l),t.opacity=i(l),t+""}}}var Z3=G0(la.hue);uo.default=Z3;var Q3=G0(la.default);uo.hclLong=Q3;var so={};Object.defineProperty(so,"__esModule",{value:!0}),so.default=so.cubehelixLong=void 0;var Y0=rr,ua=J3(tn);function K0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(K0=function(r){return r?n:t})(e)}function J3(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=K0(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function X0(e){return function t(n){n=+n;function r(o,a){var i=e((o=(0,Y0.cubehelix)(o)).h,(a=(0,Y0.cubehelix)(a)).h),l=(0,ua.default)(o.s,a.s),u=(0,ua.default)(o.l,a.l),s=(0,ua.default)(o.opacity,a.opacity);return function(d){return o.h=i(d),o.s=l(d),o.l=u(Math.pow(d,n)),o.opacity=s(d),o+""}}return r.gamma=t,r}(1)}var e6=X0(ua.hue);so.default=e6;var t6=X0(ua.default);so.cubehelixLong=t6;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.default=o6;var n6=r6(dl());function r6(e){return e&&e.__esModule?e:{default:e}}function o6(e,t){t===void 0&&(t=e,e=n6.default);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(i){var l=Math.max(0,Math.min(r-1,Math.floor(i*=r)));return a[l](i-l)}}var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.default=a6;function a6(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return $.cubehelixLong}}),Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return y.hclLong}}),Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return w.hslLong}}),Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return v.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return v.rgbBasisClosed}}),Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return m.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return m.interpolateTransformSvg}}),Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return x.default}});var t=M(dl()),n=M(k0()),r=M(no),o=M(ul),a=M(sl),i=M(Yc),l=M(Kc),u=M(oo),s=M(ro),d=M(D0()),f=M(Xc),p=M(fl),m=ao,h=M(ml),v=E(gn),w=E(lo),g=M(Rc),y=E(uo),$=E(so),S=M(Zc),x=M(Qc);function C(T){if(typeof WeakMap!="function")return null;var j=new WeakMap,I=new WeakMap;return(C=function(B){return B?I:j})(T)}function E(T,j){if(!j&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var I=C(j);if(I&&I.has(T))return I.get(T);var B={},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in T)if(q!=="default"&&Object.prototype.hasOwnProperty.call(T,q)){var P=Y?Object.getOwnPropertyDescriptor(T,q):null;P&&(P.get||P.set)?Object.defineProperty(B,q,P):B[q]=T[q]}return B.default=T,I&&I.set(T,B),B}function M(T){return T&&T.__esModule?T:{default:T}}})(Ro);var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=i6;function i6(e){return function(){return e}}var sa={};Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=l6;function l6(e){return+e}Object.defineProperty(dt,"__esModule",{value:!0}),dt.copy=h6,dt.default=m6,dt.identity=lr,dt.transformer=Q0;var u6=St,ef=Ro,s6=R0(Jc),c6=R0(sa);function R0(e){return e&&e.__esModule?e:{default:e}}var Z0=[0,1];function lr(e){return e}function tf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(0,s6.default)(isNaN(t)?NaN:.5)}function f6(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function d6(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=tf(o,r),a=n(i,a)):(r=tf(r,o),a=n(a,i)),function(l){return a(r(l))}}function p6(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=tf(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(l){var u=(0,u6.bisect)(e,l,1,r)-1;return a[u](o[u](l))}}function h6(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Q0(){var e=Z0,t=Z0,n=ef.interpolate,r,o,a,i=lr,l,u,s;function d(){var p=Math.min(e.length,t.length);return i!==lr&&(i=f6(e[0],e[p-1])),l=p>2?p6:d6,u=s=null,f}function f(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(r),t,n)))(r(i(p)))}return f.invert=function(p){return i(o((s||(s=l(t,e.map(r),ef.interpolateNumber)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,c6.default),d()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),n=ef.interpolateRound,d()},f.clamp=function(p){return arguments.length?(i=p?!0:lr,d()):i!==lr},f.interpolate=function(p){return arguments.length?(n=p,d()):n},f.unknown=function(p){return arguments.length?(a=p,f):a},function(p,m){return r=p,o=m,d()}}function m6(){return Q0()(lr,lr)}var gl={},nf={},yn={},yl={},co={},ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=v6,ur.formatDecimalParts=g6;function v6(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function g6(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Object.defineProperty(co,"__esModule",{value:!0}),co.default=b6;var y6=ur;function b6(e){return e=(0,y6.formatDecimalParts)(Math.abs(e)),e?e[1]:NaN}var rf={};Object.defineProperty(rf,"__esModule",{value:!0}),rf.default=w6;function w6(e,t){return function(n,r){for(var o=n.length,a=[],i=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(n.substring(o-=l,o+l)),!((u+=l+1)>r));)l=e[i=(i+1)%e.length];return a.reverse().join(t)}}var of={};Object.defineProperty(of,"__esModule",{value:!0}),of.default=x6;function x6(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ca={};Object.defineProperty(ca,"__esModule",{value:!0}),ca.FormatSpecifier=bl,ca.default=J0;var $6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function J0(e){if(!(t=$6.exec(e)))throw new Error("invalid format: "+e);var t;return new bl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}J0.prototype=bl.prototype;function bl(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}bl.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};var af={};Object.defineProperty(af,"__esModule",{value:!0}),af.default=_6;function _6(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var wl={},sr={};Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=P6,sr.prefixExponent=void 0;var ey=ur,ty;sr.prefixExponent=ty;function P6(e,t){var n=(0,ey.formatDecimalParts)(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(sr.prefixExponent=ty=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+(0,ey.formatDecimalParts)(e,Math.max(0,t+a-1))[0]}var lf={};Object.defineProperty(lf,"__esModule",{value:!0}),lf.default=O6;var S6=ur;function O6(e,t){var n=(0,S6.formatDecimalParts)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=void 0;var M6=uf(ur),C6=uf(sr),ny=uf(lf);function uf(e){return e&&e.__esModule?e:{default:e}}var E6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:M6.default,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>(0,ny.default)(e*100,t),r:ny.default,s:C6.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};wl.default=E6;var sf={};Object.defineProperty(sf,"__esModule",{value:!0}),sf.default=T6;function T6(e){return e}Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=L6;var k6=cr(co),N6=cr(rf),D6=cr(of),ry=cr(ca),A6=cr(af),oy=cr(wl),I6=sr,ay=cr(sf);function cr(e){return e&&e.__esModule?e:{default:e}}var iy=Array.prototype.map,ly=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function L6(e){var t=e.grouping===void 0||e.thousands===void 0?ay.default:(0,N6.default)(iy.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ay.default:(0,D6.default)(iy.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(f){f=(0,ry.default)(f);var p=f.fill,m=f.align,h=f.sign,v=f.symbol,w=f.zero,g=f.width,y=f.comma,$=f.precision,S=f.trim,x=f.type;x==="n"?(y=!0,x="g"):oy.default[x]||($===void 0&&($=12),S=!0,x="g"),(w||p==="0"&&m==="=")&&(w=!0,p="0",m="=");var C=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",E=v==="$"?r:/[%p]/.test(x)?i:"",M=oy.default[x],T=/[defgprs%]/.test(x);$=$===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function j(I){var B=C,Y=E,q,P,L;if(x==="c")Y=M(I)+Y,I="";else{I=+I;var z=I<0||1/I<0;if(I=isNaN(I)?u:M(Math.abs(I),$),S&&(I=(0,A6.default)(I)),z&&+I==0&&h!=="+"&&(z=!1),B=(z?h==="("?h:l:h==="-"||h==="("?"":h)+B,Y=(x==="s"?ly[8+I6.prefixExponent/3]:"")+Y+(z&&h==="("?")":""),T){for(q=-1,P=I.length;++q<P;)if(L=I.charCodeAt(q),48>L||L>57){Y=(L===46?o+I.slice(q+1):I.slice(q))+Y,I=I.slice(0,q);break}}}y&&!w&&(I=t(I,1/0));var H=B.length+I.length+Y.length,N=H<g?new Array(g-H+1).join(p):"";switch(y&&w&&(I=t(N+I,N.length?g-Y.length:1/0),N=""),m){case"<":I=B+I+Y+N;break;case"=":I=B+N+I+Y;break;case"^":I=N.slice(0,H=N.length>>1)+B+I+Y+N.slice(H);break;default:I=N+B+I+Y;break}return a(I)}return j.toString=function(){return f+""},j}function d(f,p){var m=s((f=(0,ry.default)(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor((0,k6.default)(p)/3)))*3,v=Math.pow(10,-h),w=ly[8+h/3];return function(g){return m(v*g)+w}}return{format:s,formatPrefix:d}}Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=cy,yn.formatPrefix=yn.format=void 0;var F6=j6(yl);function j6(e){return e&&e.__esModule?e:{default:e}}var xl,uy;yn.format=uy;var sy;yn.formatPrefix=sy,cy({thousands:",",grouping:[3],currency:["$",""]});function cy(e){return xl=(0,F6.default)(e),yn.format=uy=xl.format,yn.formatPrefix=sy=xl.formatPrefix,xl}var cf={};Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=B6;var W6=z6(co);function z6(e){return e&&e.__esModule?e:{default:e}}function B6(e){return Math.max(0,-(0,W6.default)(Math.abs(e)))}var ff={};Object.defineProperty(ff,"__esModule",{value:!0}),ff.default=H6;var fy=q6(co);function q6(e){return e&&e.__esModule?e:{default:e}}function H6(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor((0,fy.default)(t)/3)))*3-(0,fy.default)(Math.abs(e)))}var df={};Object.defineProperty(df,"__esModule",{value:!0}),df.default=V6;var dy=U6(co);function U6(e){return e&&e.__esModule?e:{default:e}}function V6(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,dy.default)(t)-(0,dy.default)(e))+1}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"FormatSpecifier",{enumerable:!0,get:function(){return r.FormatSpecifier}}),Object.defineProperty(e,"format",{enumerable:!0,get:function(){return t.format}}),Object.defineProperty(e,"formatDefaultLocale",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"formatLocale",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"formatPrefix",{enumerable:!0,get:function(){return t.formatPrefix}}),Object.defineProperty(e,"formatSpecifier",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"precisionFixed",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"precisionPrefix",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"precisionRound",{enumerable:!0,get:function(){return i.default}});var t=s(yn),n=l(yl),r=s(ca),o=l(cf),a=l(ff),i=l(df);function l(d){return d&&d.__esModule?d:{default:d}}function u(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(u=function(m){return m?p:f})(d)}function s(d,f){if(!f&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=u(f);if(p&&p.has(d))return p.get(d);var m={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in d)if(v!=="default"&&Object.prototype.hasOwnProperty.call(d,v)){var w=h?Object.getOwnPropertyDescriptor(d,v):null;w&&(w.get||w.set)?Object.defineProperty(m,v,w):m[v]=d[v]}return m.default=d,p&&p.set(d,m),m}})(nf),Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=Y6;var G6=St,fo=nf;function Y6(e,t,n,r){var o=(0,G6.tickStep)(e,t,n),a;switch(r=(0,fo.formatSpecifier)(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=(0,fo.precisionPrefix)(o,i))&&(r.precision=a),(0,fo.formatPrefix)(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=(0,fo.precisionRound)(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=(0,fo.precisionFixed)(o))&&(r.precision=a-(r.type==="%")*2);break}}return(0,fo.format)(r)}Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=gy,jt.linearish=vy;var py=St,hy=Z6(dt),K6=Ge,X6=R6(gl);function R6(e){return e&&e.__esModule?e:{default:e}}function my(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(my=function(r){return r?n:t})(e)}function Z6(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=my(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function vy(e){var t=e.domain;return e.ticks=function(n){var r=t();return(0,py.ticks)(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return(0,X6.default)(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,i=r[o],l=r[a],u,s,d=10;for(l<i&&(s=i,i=l,l=s,s=o,o=a,a=s);d-- >0;){if(s=(0,py.tickIncrement)(i,l,n),s===u)return r[o]=i,r[a]=l,t(r);if(s>0)i=Math.floor(i/s)*s,l=Math.ceil(l/s)*s;else if(s<0)i=Math.ceil(i*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function gy(){var e=(0,hy.default)();return e.copy=function(){return(0,hy.copy)(e,gy())},K6.initRange.apply(e,arguments),vy(e)}Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.default=by;var Q6=jt,yy=J6(sa);function J6(e){return e&&e.__esModule?e:{default:e}}function by(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yy.default),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return by(e).unknown(t)},e=arguments.length?Array.from(e,yy.default):[0,1],(0,Q6.linearish)(n)}var po={},$l={};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=eA;function eA(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],i;return a<o&&(i=n,n=r,r=i,i=o,o=a,a=i),e[n]=t.floor(o),e[r]=t.ceil(a),e}Object.defineProperty(po,"__esModule",{value:!0}),po.default=My,po.loggish=Oy;var wy=St,xy=nf,tA=rA($l),$y=dt,nA=Ge;function rA(e){return e&&e.__esModule?e:{default:e}}function _y(e){return Math.log(e)}function Py(e){return Math.exp(e)}function oA(e){return-Math.log(-e)}function aA(e){return-Math.exp(-e)}function iA(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lA(e){return e===10?iA:e===Math.E?Math.exp:t=>Math.pow(e,t)}function uA(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Sy(e){return(t,n)=>-e(-t,n)}function Oy(e){const t=e(_y,Py),n=t.domain;let r=10,o,a;function i(){return o=uA(r),a=lA(r),n()[0]<0?(o=Sy(o),a=Sy(a),e(oA,aA)):e(_y,Py),t}return t.base=function(l){return arguments.length?(r=+l,i()):r},t.domain=function(l){return arguments.length?(n(l),i()):n()},t.ticks=l=>{const u=n();let s=u[0],d=u[u.length-1];const f=d<s;f&&([s,d]=[d,s]);let p=o(s),m=o(d),h,v;const w=l==null?10:+l;let g=[];if(!(r%1)&&m-p<w){if(p=Math.floor(p),m=Math.ceil(m),s>0){for(;p<=m;++p)for(h=1;h<r;++h)if(v=p<0?h/a(-p):h*a(p),!(v<s)){if(v>d)break;g.push(v)}}else for(;p<=m;++p)for(h=r-1;h>=1;--h)if(v=p>0?h/a(-p):h*a(p),!(v<s)){if(v>d)break;g.push(v)}g.length*2<w&&(g=(0,wy.ticks)(s,d,w))}else g=(0,wy.ticks)(p,m,Math.min(m-p,w)).map(a);return f?g.reverse():g},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=(0,xy.formatSpecifier)(u)).precision==null&&(u.trim=!0),u=(0,xy.format)(u)),l===1/0)return u;const s=Math.max(1,r*l/t.ticks().length);return d=>{let f=d/a(Math.round(o(d)));return f*r<r-.5&&(f*=r),f<=s?u(d):""}},t.nice=()=>n((0,tA.default)(n(),{floor:l=>a(Math.floor(o(l))),ceil:l=>a(Math.ceil(o(l)))})),t}function My(){const e=Oy((0,$y.transformer)()).domain([1,10]);return e.copy=()=>(0,$y.copy)(e,My()).base(e.base()),nA.initRange.apply(e,arguments),e}var ho={};Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=Ny,ho.symlogish=ky;var sA=jt,Cy=dt,cA=Ge;function Ey(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ty(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ky(e){var t=1,n=e(Ey(t),Ty(t));return n.constant=function(r){return arguments.length?e(Ey(t=+r),Ty(t)):t},(0,sA.linearish)(n)}function Ny(){var e=ky((0,Cy.transformer)());return e.copy=function(){return(0,Cy.copy)(e,Ny()).constant(e.constant())},cA.initRange.apply(e,arguments)}var fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=pf,fr.powish=Ay,fr.sqrt=mA;var fA=jt,mo=dt,dA=Ge;function Dy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hA(e){return e<0?-e*e:e*e}function Ay(e){var t=e(mo.identity,mo.identity),n=1;function r(){return n===1?e(mo.identity,mo.identity):n===.5?e(pA,hA):e(Dy(n),Dy(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},(0,fA.linearish)(t)}function pf(){var e=Ay((0,mo.transformer)());return e.copy=function(){return(0,mo.copy)(e,pf()).exponent(e.exponent())},dA.initRange.apply(e,arguments),e}function mA(){return pf.apply(null,arguments).exponent(.5)}var hf={};Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=Fy;var vA=Iy(dt),gA=Ge,yA=jt,bA=Iy(sa);function Iy(e){return e&&e.__esModule?e:{default:e}}function Ly(e){return Math.sign(e)*e*e}function wA(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Fy(){var e=(0,vA.default)(),t=[0,1],n=!1,r;function o(a){var i=wA(e(a));return isNaN(i)?r:n?Math.round(i):i}return o.invert=function(a){return e.invert(Ly(a))},o.domain=function(a){return arguments.length?(e.domain(a),o):e.domain()},o.range=function(a){return arguments.length?(e.range((t=Array.from(a,bA.default)).map(Ly)),o):t.slice()},o.rangeRound=function(a){return o.range(a).round(!0)},o.round=function(a){return arguments.length?(n=!!a,o):n},o.clamp=function(a){return arguments.length?(e.clamp(a),o):e.clamp()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return Fy(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},gA.initRange.apply(o,arguments),(0,yA.linearish)(o)}var mf={};Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=jy;var vf=St,xA=Ge;function jy(){var e=[],t=[],n=[],r;function o(){var i=0,l=Math.max(1,t.length);for(n=new Array(l-1);++i<l;)n[i-1]=(0,vf.quantileSorted)(e,i/l);return a}function a(i){return i==null||isNaN(i=+i)?r:t[(0,vf.bisect)(n,i)]}return a.invertExtent=function(i){var l=t.indexOf(i);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let l of i)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(vf.ascending),o()},a.range=function(i){return arguments.length?(t=Array.from(i),o()):t.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return jy().domain(e).range(t).unknown(r)},xA.initRange.apply(a,arguments)}var gf={};Object.defineProperty(gf,"__esModule",{value:!0}),gf.default=Wy;var $A=St,_A=jt,PA=Ge;function Wy(){var e=0,t=1,n=1,r=[.5],o=[0,1],a;function i(u){return u!=null&&u<=u?o[(0,$A.bisect)(r,u,0,n)]:a}function l(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return i}return i.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},i.range=function(u){return arguments.length?(n=(o=Array.from(u)).length-1,l()):o.slice()},i.invertExtent=function(u){var s=o.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,r[0]]:s>=n?[r[n-1],t]:[r[s-1],r[s]]},i.unknown=function(u){return arguments.length&&(a=u),i},i.thresholds=function(){return r.slice()},i.copy=function(){return Wy().domain([e,t]).range(o).unknown(a)},PA.initRange.apply((0,_A.linearish)(i),arguments)}var yf={};Object.defineProperty(yf,"__esModule",{value:!0}),yf.default=zy;var SA=St,OA=Ge;function zy(){var e=[.5],t=[0,1],n,r=1;function o(a){return a!=null&&a<=a?t[(0,SA.bisect)(e,a,0,r)]:n}return o.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(a){var i=t.indexOf(a);return[e[i-1],e[i]]},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return zy().domain(e).range(t).unknown(n)},OA.initRange.apply(o,arguments)}var fa={},da={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.timeInterval=By;const bf=new Date,wf=new Date;function By(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),l=o.ceil(a);return a-i<l-a?i:l},o.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,l)=>{const u=[];if(a=o.ceil(a),l=l==null?1:Math.floor(l),!(a<i)||!(l>0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(s<a&&a<i);return u},o.filter=a=>By(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,l)=>{if(i>=i)if(l<0)for(;++l<=0;)for(;t(i,-1),!a(i););else for(;--l>=0;)for(;t(i,1),!a(i););}),n&&(o.count=(a,i)=>(bf.setTime(+a),wf.setTime(+i),e(bf),e(wf),Math.floor(n(bf,wf))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}var dr={};Object.defineProperty(dr,"__esModule",{value:!0}),dr.milliseconds=dr.millisecond=void 0;var qy=Bt;const _l=(0,qy.timeInterval)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);dr.millisecond=_l,_l.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?(0,qy.timeInterval)(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_l);const MA=_l.range;dr.milliseconds=MA;var pr={},qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.durationYear=qe.durationWeek=qe.durationSecond=qe.durationMonth=qe.durationMinute=qe.durationHour=qe.durationDay=void 0;const Hy=1e3;qe.durationSecond=Hy;const Uy=Hy*60;qe.durationMinute=Uy;const Vy=Uy*60;qe.durationHour=Vy;const Pl=Vy*24;qe.durationDay=Pl;const CA=Pl*7;qe.durationWeek=CA;const EA=Pl*30;qe.durationMonth=EA;const TA=Pl*365;qe.durationYear=TA,Object.defineProperty(pr,"__esModule",{value:!0}),pr.seconds=pr.second=void 0;var kA=Bt,Gy=qe;const Yy=(0,kA.timeInterval)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Gy.durationSecond)},(e,t)=>(t-e)/Gy.durationSecond,e=>e.getUTCSeconds());pr.second=Yy;const NA=Yy.range;pr.seconds=NA;var qt={};Object.defineProperty(qt,"__esModule",{value:!0}),qt.utcMinutes=qt.utcMinute=qt.timeMinutes=qt.timeMinute=void 0;var Ky=Bt,pa=qe;const Xy=(0,Ky.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pa.durationSecond)},(e,t)=>{e.setTime(+e+t*pa.durationMinute)},(e,t)=>(t-e)/pa.durationMinute,e=>e.getMinutes());qt.timeMinute=Xy;const DA=Xy.range;qt.timeMinutes=DA;const Ry=(0,Ky.timeInterval)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*pa.durationMinute)},(e,t)=>(t-e)/pa.durationMinute,e=>e.getUTCMinutes());qt.utcMinute=Ry;const AA=Ry.range;qt.utcMinutes=AA;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.utcHours=Ht.utcHour=Ht.timeHours=Ht.timeHour=void 0;var Zy=Bt,vo=qe;const Qy=(0,Zy.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vo.durationSecond-e.getMinutes()*vo.durationMinute)},(e,t)=>{e.setTime(+e+t*vo.durationHour)},(e,t)=>(t-e)/vo.durationHour,e=>e.getHours());Ht.timeHour=Qy;const IA=Qy.range;Ht.timeHours=IA;const Jy=(0,Zy.timeInterval)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vo.durationHour)},(e,t)=>(t-e)/vo.durationHour,e=>e.getUTCHours());Ht.utcHour=Jy;const LA=Jy.range;Ht.utcHours=LA;var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.utcDays=rt.utcDay=rt.unixDays=rt.unixDay=rt.timeDays=rt.timeDay=void 0;var xf=Bt,ha=qe;const eb=(0,xf.timeInterval)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ha.durationMinute)/ha.durationDay,e=>e.getDate()-1);rt.timeDay=eb;const FA=eb.range;rt.timeDays=FA;const tb=(0,xf.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha.durationDay,e=>e.getUTCDate()-1);rt.utcDay=tb;const jA=tb.range;rt.utcDays=jA;const nb=(0,xf.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha.durationDay,e=>Math.floor(e/ha.durationDay));rt.unixDay=nb;const WA=nb.range;rt.unixDays=WA;var he={};Object.defineProperty(he,"__esModule",{value:!0}),he.utcWednesdays=he.utcWednesday=he.utcTuesdays=he.utcTuesday=he.utcThursdays=he.utcThursday=he.utcSundays=he.utcSunday=he.utcSaturdays=he.utcSaturday=he.utcMondays=he.utcMonday=he.utcFridays=he.utcFriday=he.timeWednesdays=he.timeWednesday=he.timeTuesdays=he.timeTuesday=he.timeThursdays=he.timeThursday=he.timeSundays=he.timeSunday=he.timeSaturdays=he.timeSaturday=he.timeMondays=he.timeMonday=he.timeFridays=he.timeFriday=void 0;var rb=Bt,$f=qe;function hr(e){return(0,rb.timeInterval)(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$f.durationMinute)/$f.durationWeek)}const ob=hr(0);he.timeSunday=ob;const ab=hr(1);he.timeMonday=ab;const ib=hr(2);he.timeTuesday=ib;const lb=hr(3);he.timeWednesday=lb;const ub=hr(4);he.timeThursday=ub;const sb=hr(5);he.timeFriday=sb;const cb=hr(6);he.timeSaturday=cb;const zA=ob.range;he.timeSundays=zA;const BA=ab.range;he.timeMondays=BA;const qA=ib.range;he.timeTuesdays=qA;const HA=lb.range;he.timeWednesdays=HA;const UA=ub.range;he.timeThursdays=UA;const VA=sb.range;he.timeFridays=VA;const GA=cb.range;he.timeSaturdays=GA;function mr(e){return(0,rb.timeInterval)(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/$f.durationWeek)}const fb=mr(0);he.utcSunday=fb;const db=mr(1);he.utcMonday=db;const pb=mr(2);he.utcTuesday=pb;const hb=mr(3);he.utcWednesday=hb;const mb=mr(4);he.utcThursday=mb;const vb=mr(5);he.utcFriday=vb;const gb=mr(6);he.utcSaturday=gb;const YA=fb.range;he.utcSundays=YA;const KA=db.range;he.utcMondays=KA;const XA=pb.range;he.utcTuesdays=XA;const RA=hb.range;he.utcWednesdays=RA;const ZA=mb.range;he.utcThursdays=ZA;const QA=vb.range;he.utcFridays=QA;const JA=gb.range;he.utcSaturdays=JA;var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.utcMonths=Ut.utcMonth=Ut.timeMonths=Ut.timeMonth=void 0;var yb=Bt;const bb=(0,yb.timeInterval)(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ut.timeMonth=bb;const eI=bb.range;Ut.timeMonths=eI;const wb=(0,yb.timeInterval)(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ut.utcMonth=wb;const tI=wb.range;Ut.utcMonths=tI;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.utcYears=Vt.utcYear=Vt.timeYears=Vt.timeYear=void 0;var Sl=Bt;const _f=(0,Sl.timeInterval)(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Vt.timeYear=_f,_f.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:(0,Sl.timeInterval)(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const nI=_f.range;Vt.timeYears=nI;const Pf=(0,Sl.timeInterval)(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Vt.utcYear=Pf,Pf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:(0,Sl.timeInterval)(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const rI=Pf.range;Vt.utcYears=rI;var nn={};Object.defineProperty(nn,"__esModule",{value:!0}),nn.utcTicks=nn.utcTickInterval=nn.timeTicks=nn.timeTickInterval=void 0;var Sf=St,He=qe,oI=dr,Ol=pr,xb=qt,$b=Ht,_b=rt,Pb=he,Sb=Ut,Ob=Vt;function Mb(e,t,n,r,o,a){const i=[[Ol.second,1,He.durationSecond],[Ol.second,5,5*He.durationSecond],[Ol.second,15,15*He.durationSecond],[Ol.second,30,30*He.durationSecond],[a,1,He.durationMinute],[a,5,5*He.durationMinute],[a,15,15*He.durationMinute],[a,30,30*He.durationMinute],[o,1,He.durationHour],[o,3,3*He.durationHour],[o,6,6*He.durationHour],[o,12,12*He.durationHour],[r,1,He.durationDay],[r,2,2*He.durationDay],[n,1,He.durationWeek],[t,1,He.durationMonth],[t,3,3*He.durationMonth],[e,1,He.durationYear]];function l(s,d,f){const p=d<s;p&&([s,d]=[d,s]);const m=f&&typeof f.range=="function"?f:u(s,d,f),h=m?m.range(s,+d+1):[];return p?h.reverse():h}function u(s,d,f){const p=Math.abs(d-s)/f,m=(0,Sf.bisector)(([,,w])=>w).right(i,p);if(m===i.length)return e.every((0,Sf.tickStep)(s/He.durationYear,d/He.durationYear,f));if(m===0)return oI.millisecond.every(Math.max((0,Sf.tickStep)(s,d,f),1));const[h,v]=i[p/i[m-1][2]<i[m][2]/p?m-1:m];return h.every(v)}return[l,u]}const[aI,iI]=Mb(Ob.utcYear,Sb.utcMonth,Pb.utcSunday,_b.unixDay,$b.utcHour,xb.utcMinute);nn.utcTickInterval=iI,nn.utcTicks=aI;const[lI,uI]=Mb(Ob.timeYear,Sb.timeMonth,Pb.timeSunday,_b.timeDay,$b.timeHour,xb.timeMinute);nn.timeTickInterval=uI,nn.timeTicks=lI,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"timeDay",{enumerable:!0,get:function(){return i.timeDay}}),Object.defineProperty(e,"timeDays",{enumerable:!0,get:function(){return i.timeDays}}),Object.defineProperty(e,"timeFriday",{enumerable:!0,get:function(){return l.timeFriday}}),Object.defineProperty(e,"timeFridays",{enumerable:!0,get:function(){return l.timeFridays}}),Object.defineProperty(e,"timeHour",{enumerable:!0,get:function(){return a.timeHour}}),Object.defineProperty(e,"timeHours",{enumerable:!0,get:function(){return a.timeHours}}),Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return t.timeInterval}}),Object.defineProperty(e,"timeMillisecond",{enumerable:!0,get:function(){return n.millisecond}}),Object.defineProperty(e,"timeMilliseconds",{enumerable:!0,get:function(){return n.milliseconds}}),Object.defineProperty(e,"timeMinute",{enumerable:!0,get:function(){return o.timeMinute}}),Object.defineProperty(e,"timeMinutes",{enumerable:!0,get:function(){return o.timeMinutes}}),Object.defineProperty(e,"timeMonday",{enumerable:!0,get:function(){return l.timeMonday}}),Object.defineProperty(e,"timeMondays",{enumerable:!0,get:function(){return l.timeMondays}}),Object.defineProperty(e,"timeMonth",{enumerable:!0,get:function(){return u.timeMonth}}),Object.defineProperty(e,"timeMonths",{enumerable:!0,get:function(){return u.timeMonths}}),Object.defineProperty(e,"timeSaturday",{enumerable:!0,get:function(){return l.timeSaturday}}),Object.defineProperty(e,"timeSaturdays",{enumerable:!0,get:function(){return l.timeSaturdays}}),Object.defineProperty(e,"timeSecond",{enumerable:!0,get:function(){return r.second}}),Object.defineProperty(e,"timeSeconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(e,"timeSunday",{enumerable:!0,get:function(){return l.timeSunday}}),Object.defineProperty(e,"timeSundays",{enumerable:!0,get:function(){return l.timeSundays}}),Object.defineProperty(e,"timeThursday",{enumerable:!0,get:function(){return l.timeThursday}}),Object.defineProperty(e,"timeThursdays",{enumerable:!0,get:function(){return l.timeThursdays}}),Object.defineProperty(e,"timeTickInterval",{enumerable:!0,get:function(){return d.timeTickInterval}}),Object.defineProperty(e,"timeTicks",{enumerable:!0,get:function(){return d.timeTicks}}),Object.defineProperty(e,"timeTuesday",{enumerable:!0,get:function(){return l.timeTuesday}}),Object.defineProperty(e,"timeTuesdays",{enumerable:!0,get:function(){return l.timeTuesdays}}),Object.defineProperty(e,"timeWednesday",{enumerable:!0,get:function(){return l.timeWednesday}}),Object.defineProperty(e,"timeWednesdays",{enumerable:!0,get:function(){return l.timeWednesdays}}),Object.defineProperty(e,"timeWeek",{enumerable:!0,get:function(){return l.timeSunday}}),Object.defineProperty(e,"timeWeeks",{enumerable:!0,get:function(){return l.timeSundays}}),Object.defineProperty(e,"timeYear",{enumerable:!0,get:function(){return s.timeYear}}),Object.defineProperty(e,"timeYears",{enumerable:!0,get:function(){return s.timeYears}}),Object.defineProperty(e,"unixDay",{enumerable:!0,get:function(){return i.unixDay}}),Object.defineProperty(e,"unixDays",{enumerable:!0,get:function(){return i.unixDays}}),Object.defineProperty(e,"utcDay",{enumerable:!0,get:function(){return i.utcDay}}),Object.defineProperty(e,"utcDays",{enumerable:!0,get:function(){return i.utcDays}}),Object.defineProperty(e,"utcFriday",{enumerable:!0,get:function(){return l.utcFriday}}),Object.defineProperty(e,"utcFridays",{enumerable:!0,get:function(){return l.utcFridays}}),Object.defineProperty(e,"utcHour",{enumerable:!0,get:function(){return a.utcHour}}),Object.defineProperty(e,"utcHours",{enumerable:!0,get:function(){return a.utcHours}}),Object.defineProperty(e,"utcMillisecond",{enumerable:!0,get:function(){return n.millisecond}}),Object.defineProperty(e,"utcMilliseconds",{enumerable:!0,get:function(){return n.milliseconds}}),Object.defineProperty(e,"utcMinute",{enumerable:!0,get:function(){return o.utcMinute}}),Object.defineProperty(e,"utcMinutes",{enumerable:!0,get:function(){return o.utcMinutes}}),Object.defineProperty(e,"utcMonday",{enumerable:!0,get:function(){return l.utcMonday}}),Object.defineProperty(e,"utcMondays",{enumerable:!0,get:function(){return l.utcMondays}}),Object.defineProperty(e,"utcMonth",{enumerable:!0,get:function(){return u.utcMonth}}),Object.defineProperty(e,"utcMonths",{enumerable:!0,get:function(){return u.utcMonths}}),Object.defineProperty(e,"utcSaturday",{enumerable:!0,get:function(){return l.utcSaturday}}),Object.defineProperty(e,"utcSaturdays",{enumerable:!0,get:function(){return l.utcSaturdays}}),Object.defineProperty(e,"utcSecond",{enumerable:!0,get:function(){return r.second}}),Object.defineProperty(e,"utcSeconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(e,"utcSunday",{enumerable:!0,get:function(){return l.utcSunday}}),Object.defineProperty(e,"utcSundays",{enumerable:!0,get:function(){return l.utcSundays}}),Object.defineProperty(e,"utcThursday",{enumerable:!0,get:function(){return l.utcThursday}}),Object.defineProperty(e,"utcThursdays",{enumerable:!0,get:function(){return l.utcThursdays}}),Object.defineProperty(e,"utcTickInterval",{enumerable:!0,get:function(){return d.utcTickInterval}}),Object.defineProperty(e,"utcTicks",{enumerable:!0,get:function(){return d.utcTicks}}),Object.defineProperty(e,"utcTuesday",{enumerable:!0,get:function(){return l.utcTuesday}}),Object.defineProperty(e,"utcTuesdays",{enumerable:!0,get:function(){return l.utcTuesdays}}),Object.defineProperty(e,"utcWednesday",{enumerable:!0,get:function(){return l.utcWednesday}}),Object.defineProperty(e,"utcWednesdays",{enumerable:!0,get:function(){return l.utcWednesdays}}),Object.defineProperty(e,"utcWeek",{enumerable:!0,get:function(){return l.utcSunday}}),Object.defineProperty(e,"utcWeeks",{enumerable:!0,get:function(){return l.utcSundays}}),Object.defineProperty(e,"utcYear",{enumerable:!0,get:function(){return s.utcYear}}),Object.defineProperty(e,"utcYears",{enumerable:!0,get:function(){return s.utcYears}});var t=Bt,n=dr,r=pr,o=qt,a=Ht,i=rt,l=he,u=Ut,s=Vt,d=nn}(da);var Of={},Ke={},Ml={};Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=sI;var Me=da;function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ma(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function sI(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,u=e.shortMonths,s=va(o),d=ga(o),f=va(a),p=ga(a),m=va(i),h=ga(i),v=va(l),w=ga(l),g=va(u),y=ga(u),$={a:z,A:H,b:N,B:D,c:null,d:Db,e:Db,f:NI,g:qI,G:UI,H:EI,I:TI,j:kI,L:Ab,m:DI,M:AI,p:W,q:te,Q:zb,s:Bb,S:II,u:LI,U:FI,V:jI,w:WI,W:zI,x:null,X:null,y:BI,Y:HI,Z:VI,"%":Wb},S={a:J,A:ae,b:re,B:le,c:null,d:Lb,e:Lb,f:XI,g:a5,G:l5,H:GI,I:YI,j:KI,L:Fb,m:RI,M:ZI,p:R,q:ce,Q:zb,s:Bb,S:QI,u:JI,U:e5,V:t5,w:n5,W:r5,x:null,X:null,y:o5,Y:i5,Z:u5,"%":Wb},x={a:j,A:I,b:B,B:Y,c:q,d:kb,e:kb,f:SI,g:Tb,G:Eb,H:Nb,I:Nb,j:xI,L:PI,m:wI,M:$I,p:T,q:bI,Q:MI,s:CI,S:_I,u:hI,U:mI,V:vI,w:pI,W:gI,x:P,X:L,y:Tb,Y:Eb,Z:yI,"%":OI};$.x=C(n,$),$.X=C(r,$),$.c=C(t,$),S.x=C(n,S),S.X=C(r,S),S.c=C(t,S);function C(V,K){return function(ie){var A=[],pe=-1,me=0,Oe=V.length,Ae,Ue,on;for(ie instanceof Date||(ie=new Date(+ie));++pe<Oe;)V.charCodeAt(pe)===37&&(A.push(V.slice(me,pe)),(Ue=Cb[Ae=V.charAt(++pe)])!=null?Ae=V.charAt(++pe):Ue=Ae==="e"?" ":"0",(on=K[Ae])&&(Ae=on(ie,Ue)),A.push(Ae),me=pe+1);return A.push(V.slice(me,pe)),A.join("")}}function E(V,K){return function(ie){var A=ma(1900,void 0,1),pe=M(A,V,ie+="",0),me,Oe;if(pe!=ie.length)return null;if("Q"in A)return new Date(A.Q);if("s"in A)return new Date(A.s*1e3+("L"in A?A.L:0));if(K&&!("Z"in A)&&(A.Z=0),"p"in A&&(A.H=A.H%12+A.p*12),A.m===void 0&&(A.m="q"in A?A.q:0),"V"in A){if(A.V<1||A.V>53)return null;"w"in A||(A.w=1),"Z"in A?(me=Cf(ma(A.y,0,1)),Oe=me.getUTCDay(),me=Oe>4||Oe===0?Me.utcMonday.ceil(me):(0,Me.utcMonday)(me),me=Me.utcDay.offset(me,(A.V-1)*7),A.y=me.getUTCFullYear(),A.m=me.getUTCMonth(),A.d=me.getUTCDate()+(A.w+6)%7):(me=Mf(ma(A.y,0,1)),Oe=me.getDay(),me=Oe>4||Oe===0?Me.timeMonday.ceil(me):(0,Me.timeMonday)(me),me=Me.timeDay.offset(me,(A.V-1)*7),A.y=me.getFullYear(),A.m=me.getMonth(),A.d=me.getDate()+(A.w+6)%7)}else("W"in A||"U"in A)&&("w"in A||(A.w="u"in A?A.u%7:"W"in A?1:0),Oe="Z"in A?Cf(ma(A.y,0,1)).getUTCDay():Mf(ma(A.y,0,1)).getDay(),A.m=0,A.d="W"in A?(A.w+6)%7+A.W*7-(Oe+5)%7:A.w+A.U*7-(Oe+6)%7);return"Z"in A?(A.H+=A.Z/100|0,A.M+=A.Z%100,Cf(A)):Mf(A)}}function M(V,K,ie,A){for(var pe=0,me=K.length,Oe=ie.length,Ae,Ue;pe<me;){if(A>=Oe)return-1;if(Ae=K.charCodeAt(pe++),Ae===37){if(Ae=K.charAt(pe++),Ue=x[Ae in Cb?K.charAt(pe++):Ae],!Ue||(A=Ue(V,ie,A))<0)return-1}else if(Ae!=ie.charCodeAt(A++))return-1}return A}function T(V,K,ie){var A=s.exec(K.slice(ie));return A?(V.p=d.get(A[0].toLowerCase()),ie+A[0].length):-1}function j(V,K,ie){var A=m.exec(K.slice(ie));return A?(V.w=h.get(A[0].toLowerCase()),ie+A[0].length):-1}function I(V,K,ie){var A=f.exec(K.slice(ie));return A?(V.w=p.get(A[0].toLowerCase()),ie+A[0].length):-1}function B(V,K,ie){var A=g.exec(K.slice(ie));return A?(V.m=y.get(A[0].toLowerCase()),ie+A[0].length):-1}function Y(V,K,ie){var A=v.exec(K.slice(ie));return A?(V.m=w.get(A[0].toLowerCase()),ie+A[0].length):-1}function q(V,K,ie){return M(V,t,K,ie)}function P(V,K,ie){return M(V,n,K,ie)}function L(V,K,ie){return M(V,r,K,ie)}function z(V){return i[V.getDay()]}function H(V){return a[V.getDay()]}function N(V){return u[V.getMonth()]}function D(V){return l[V.getMonth()]}function W(V){return o[+(V.getHours()>=12)]}function te(V){return 1+~~(V.getMonth()/3)}function J(V){return i[V.getUTCDay()]}function ae(V){return a[V.getUTCDay()]}function re(V){return u[V.getUTCMonth()]}function le(V){return l[V.getUTCMonth()]}function R(V){return o[+(V.getUTCHours()>=12)]}function ce(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var K=C(V+="",$);return K.toString=function(){return V},K},parse:function(V){var K=E(V+="",!1);return K.toString=function(){return V},K},utcFormat:function(V){var K=C(V+="",S);return K.toString=function(){return V},K},utcParse:function(V){var K=E(V+="",!0);return K.toString=function(){return V},K}}}var Cb={"-":"",_:" ",0:"0"},Ye=/^\s*\d+/,cI=/^%/,fI=/[\\^$*+?|[\]().{}]/g;function Ce(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function dI(e){return e.replace(fI,"\\$&")}function va(e){return new RegExp("^(?:"+e.map(dI).join("|")+")","i")}function ga(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pI(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hI(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mI(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function vI(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function gI(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Eb(e,t,n){var r=Ye.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Tb(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yI(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bI(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function wI(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kb(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xI(e,t,n){var r=Ye.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Nb(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $I(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function _I(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Ye.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function SI(e,t,n){var r=Ye.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function OI(e,t,n){var r=cI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function MI(e,t,n){var r=Ye.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function CI(e,t,n){var r=Ye.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Db(e,t){return Ce(e.getDate(),t,2)}function EI(e,t){return Ce(e.getHours(),t,2)}function TI(e,t){return Ce(e.getHours()%12||12,t,2)}function kI(e,t){return Ce(1+Me.timeDay.count((0,Me.timeYear)(e),e),t,3)}function Ab(e,t){return Ce(e.getMilliseconds(),t,3)}function NI(e,t){return Ab(e,t)+"000"}function DI(e,t){return Ce(e.getMonth()+1,t,2)}function AI(e,t){return Ce(e.getMinutes(),t,2)}function II(e,t){return Ce(e.getSeconds(),t,2)}function LI(e){var t=e.getDay();return t===0?7:t}function FI(e,t){return Ce(Me.timeSunday.count((0,Me.timeYear)(e)-1,e),t,2)}function Ib(e){var t=e.getDay();return t>=4||t===0?(0,Me.timeThursday)(e):Me.timeThursday.ceil(e)}function jI(e,t){return e=Ib(e),Ce(Me.timeThursday.count((0,Me.timeYear)(e),e)+((0,Me.timeYear)(e).getDay()===4),t,2)}function WI(e){return e.getDay()}function zI(e,t){return Ce(Me.timeMonday.count((0,Me.timeYear)(e)-1,e),t,2)}function BI(e,t){return Ce(e.getFullYear()%100,t,2)}function qI(e,t){return e=Ib(e),Ce(e.getFullYear()%100,t,2)}function HI(e,t){return Ce(e.getFullYear()%1e4,t,4)}function UI(e,t){var n=e.getDay();return e=n>=4||n===0?(0,Me.timeThursday)(e):Me.timeThursday.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function VI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function Lb(e,t){return Ce(e.getUTCDate(),t,2)}function GI(e,t){return Ce(e.getUTCHours(),t,2)}function YI(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function KI(e,t){return Ce(1+Me.utcDay.count((0,Me.utcYear)(e),e),t,3)}function Fb(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function XI(e,t){return Fb(e,t)+"000"}function RI(e,t){return Ce(e.getUTCMonth()+1,t,2)}function ZI(e,t){return Ce(e.getUTCMinutes(),t,2)}function QI(e,t){return Ce(e.getUTCSeconds(),t,2)}function JI(e){var t=e.getUTCDay();return t===0?7:t}function e5(e,t){return Ce(Me.utcSunday.count((0,Me.utcYear)(e)-1,e),t,2)}function jb(e){var t=e.getUTCDay();return t>=4||t===0?(0,Me.utcThursday)(e):Me.utcThursday.ceil(e)}function t5(e,t){return e=jb(e),Ce(Me.utcThursday.count((0,Me.utcYear)(e),e)+((0,Me.utcYear)(e).getUTCDay()===4),t,2)}function n5(e){return e.getUTCDay()}function r5(e,t){return Ce(Me.utcMonday.count((0,Me.utcYear)(e)-1,e),t,2)}function o5(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function a5(e,t){return e=jb(e),Ce(e.getUTCFullYear()%100,t,2)}function i5(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function l5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?(0,Me.utcThursday)(e):Me.utcThursday.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function u5(){return"+0000"}function Wb(){return"%"}function zb(e){return+e}function Bb(e){return Math.floor(+e/1e3)}Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=Gb,Ke.utcParse=Ke.utcFormat=Ke.timeParse=Ke.timeFormat=void 0;var s5=c5(Ml);function c5(e){return e&&e.__esModule?e:{default:e}}var go,qb;Ke.timeFormat=qb;var Hb;Ke.timeParse=Hb;var Ub;Ke.utcFormat=Ub;var Vb;Ke.utcParse=Vb,Gb({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 Gb(e){return go=(0,s5.default)(e),Ke.timeFormat=qb=go.format,Ke.timeParse=Hb=go.parse,Ke.utcFormat=Ub=go.utcFormat,Ke.utcParse=Vb=go.utcParse,go}var vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.isoSpecifier=vr.default=void 0;var f5=Ke,Yb="%Y-%m-%dT%H:%M:%S.%LZ";vr.isoSpecifier=Yb;function d5(e){return e.toISOString()}var p5=Date.prototype.toISOString?d5:(0,f5.utcFormat)(Yb),h5=p5;vr.default=h5;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var m5=vr,v5=Ke;function g5(e){var t=new Date(e);return isNaN(t)?null:t}var y5=+new Date("2000-01-01T00:00:00.000Z")?g5:(0,v5.utcParse)(m5.isoSpecifier),b5=y5;Cl.default=b5,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isoFormat",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"isoParse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"timeFormat",{enumerable:!0,get:function(){return t.timeFormat}}),Object.defineProperty(e,"timeFormatDefaultLocale",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"timeFormatLocale",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"timeParse",{enumerable:!0,get:function(){return t.timeParse}}),Object.defineProperty(e,"utcFormat",{enumerable:!0,get:function(){return t.utcFormat}}),Object.defineProperty(e,"utcParse",{enumerable:!0,get:function(){return t.utcParse}});var t=l(Ke),n=a(Ml),r=a(vr),o=a(Cl);function a(u){return u&&u.__esModule?u:{default:u}}function i(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,d=new WeakMap;return(i=function(f){return f?d:s})(u)}function l(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var d=i(s);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var h=p?Object.getOwnPropertyDescriptor(u,m):null;h&&(h.get||h.set)?Object.defineProperty(f,m,h):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}}(Of),Object.defineProperty(fa,"__esModule",{value:!0}),fa.calendar=Ef,fa.default=M5;var bn=da,w5=Of,Kb=P5(dt),x5=Ge,$5=_5($l);function _5(e){return e&&e.__esModule?e:{default:e}}function Xb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Xb=function(r){return r?n:t})(e)}function P5(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Xb(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function S5(e){return new Date(e)}function O5(e){return e instanceof Date?+e:+new Date(+e)}function Ef(e,t,n,r,o,a,i,l,u,s){var d=(0,Kb.default)(),f=d.invert,p=d.domain,m=s(".%L"),h=s(":%S"),v=s("%I:%M"),w=s("%I %p"),g=s("%a %d"),y=s("%b %d"),$=s("%B"),S=s("%Y");function x(C){return(u(C)<C?m:l(C)<C?h:i(C)<C?v:a(C)<C?w:r(C)<C?o(C)<C?g:y:n(C)<C?$:S)(C)}return d.invert=function(C){return new Date(f(C))},d.domain=function(C){return arguments.length?p(Array.from(C,O5)):p().map(S5)},d.ticks=function(C){var E=p();return e(E[0],E[E.length-1],C??10)},d.tickFormat=function(C,E){return E==null?x:s(E)},d.nice=function(C){var E=p();return(!C||typeof C.range!="function")&&(C=t(E[0],E[E.length-1],C??10)),C?p((0,$5.default)(E,C)):d},d.copy=function(){return(0,Kb.copy)(d,Ef(e,t,n,r,o,a,i,l,u,s))},d}function M5(){return x5.initRange.apply(Ef(bn.timeTicks,bn.timeTickInterval,bn.timeYear,bn.timeMonth,bn.timeWeek,bn.timeDay,bn.timeHour,bn.timeMinute,bn.timeSecond,w5.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=k5;var wn=da,C5=Of,E5=fa,T5=Ge;function k5(){return T5.initRange.apply((0,E5.calendar)(wn.utcTicks,wn.utcTickInterval,wn.utcYear,wn.utcMonth,wn.utcWeek,wn.utcDay,wn.utcHour,wn.utcMinute,wn.utcSecond,C5.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var xn={};Object.defineProperty(xn,"__esModule",{value:!0}),xn.copy=ya,xn.default=Qb,xn.sequentialLog=Jb,xn.sequentialPow=kf,xn.sequentialSqrt=L5,xn.sequentialSymlog=e1;var Rb=Ro,Zb=dt,El=Ge,N5=jt,D5=po,A5=ho,I5=fr;function Tl(){var e=0,t=1,n,r,o,a,i=Zb.identity,l=!1,u;function s(f){return f==null||isNaN(f=+f)?u:i(o===0?.5:(f=(a(f)-n)*o,l?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),o=n===r?0:1/(r-n),s):[e,t]},s.clamp=function(f){return arguments.length?(l=!!f,s):l},s.interpolator=function(f){return arguments.length?(i=f,s):i};function d(f){return function(p){var m,h;return arguments.length?([m,h]=p,i=f(m,h),s):[i(0),i(1)]}}return s.range=d(Rb.interpolate),s.rangeRound=d(Rb.interpolateRound),s.unknown=function(f){return arguments.length?(u=f,s):u},function(f){return a=f,n=f(e),r=f(t),o=n===r?0:1/(r-n),s}}function ya(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Qb(){var e=(0,N5.linearish)(Tl()(Zb.identity));return e.copy=function(){return ya(e,Qb())},El.initInterpolator.apply(e,arguments)}function Jb(){var e=(0,D5.loggish)(Tl()).domain([1,10]);return e.copy=function(){return ya(e,Jb()).base(e.base())},El.initInterpolator.apply(e,arguments)}function e1(){var e=(0,A5.symlogish)(Tl());return e.copy=function(){return ya(e,e1()).constant(e.constant())},El.initInterpolator.apply(e,arguments)}function kf(){var e=(0,I5.powish)(Tl());return e.copy=function(){return ya(e,kf()).exponent(e.exponent())},El.initInterpolator.apply(e,arguments)}function L5(){return kf.apply(null,arguments).exponent(.5)}var Nf={};Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.default=t1;var Df=St,F5=dt,j5=Ge;function t1(){var e=[],t=F5.identity;function n(r){if(r!=null&&!isNaN(r=+r))return t(((0,Df.bisect)(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Df.ascending),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,a)=>(0,Df.quantile)(e,a/r))},n.copy=function(){return t1(t).domain(e)},j5.initInterpolator.apply(n,arguments)}var gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=r1,gr.divergingLog=o1,gr.divergingPow=If,gr.divergingSqrt=H5,gr.divergingSymlog=a1;var Af=Ro,n1=dt,kl=Ge,W5=jt,z5=po,Nl=xn,B5=ho,q5=fr;function Dl(){var e=0,t=.5,n=1,r=1,o,a,i,l,u,s=n1.identity,d,f=!1,p;function m(v){return isNaN(v=+v)?p:(v=.5+((v=+d(v))-a)*(r*v<r*a?l:u),s(f?Math.max(0,Math.min(1,v)):v))}m.domain=function(v){return arguments.length?([e,t,n]=v,o=d(e=+e),a=d(t=+t),i=d(n=+n),l=o===a?0:.5/(a-o),u=a===i?0:.5/(i-a),r=a<o?-1:1,m):[e,t,n]},m.clamp=function(v){return arguments.length?(f=!!v,m):f},m.interpolator=function(v){return arguments.length?(s=v,m):s};function h(v){return function(w){var g,y,$;return arguments.length?([g,y,$]=w,s=(0,Af.piecewise)(v,[g,y,$]),m):[s(0),s(.5),s(1)]}}return m.range=h(Af.interpolate),m.rangeRound=h(Af.interpolateRound),m.unknown=function(v){return arguments.length?(p=v,m):p},function(v){return d=v,o=v(e),a=v(t),i=v(n),l=o===a?0:.5/(a-o),u=a===i?0:.5/(i-a),r=a<o?-1:1,m}}function r1(){var e=(0,W5.linearish)(Dl()(n1.identity));return e.copy=function(){return(0,Nl.copy)(e,r1())},kl.initInterpolator.apply(e,arguments)}function o1(){var e=(0,z5.loggish)(Dl()).domain([.1,1,10]);return e.copy=function(){return(0,Nl.copy)(e,o1()).base(e.base())},kl.initInterpolator.apply(e,arguments)}function a1(){var e=(0,B5.symlogish)(Dl());return e.copy=function(){return(0,Nl.copy)(e,a1()).constant(e.constant())},kl.initInterpolator.apply(e,arguments)}function If(){var e=(0,q5.powish)(Dl());return e.copy=function(){return(0,Nl.copy)(e,If()).exponent(e.exponent())},kl.initInterpolator.apply(e,arguments)}function H5(){return If.apply(null,arguments).exponent(.5)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"scaleBand",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"scaleDiverging",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"scaleDivergingLog",{enumerable:!0,get:function(){return w.divergingLog}}),Object.defineProperty(e,"scaleDivergingPow",{enumerable:!0,get:function(){return w.divergingPow}}),Object.defineProperty(e,"scaleDivergingSqrt",{enumerable:!0,get:function(){return w.divergingSqrt}}),Object.defineProperty(e,"scaleDivergingSymlog",{enumerable:!0,get:function(){return w.divergingSymlog}}),Object.defineProperty(e,"scaleIdentity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"scaleImplicit",{enumerable:!0,get:function(){return i.implicit}}),Object.defineProperty(e,"scaleLinear",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"scaleLog",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"scaleOrdinal",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"scalePoint",{enumerable:!0,get:function(){return t.point}}),Object.defineProperty(e,"scalePow",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"scaleQuantile",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"scaleQuantize",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"scaleRadial",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"scaleSequential",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"scaleSequentialLog",{enumerable:!0,get:function(){return h.sequentialLog}}),Object.defineProperty(e,"scaleSequentialPow",{enumerable:!0,get:function(){return h.sequentialPow}}),Object.defineProperty(e,"scaleSequentialQuantile",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"scaleSequentialSqrt",{enumerable:!0,get:function(){return h.sequentialSqrt}}),Object.defineProperty(e,"scaleSequentialSymlog",{enumerable:!0,get:function(){return h.sequentialSymlog}}),Object.defineProperty(e,"scaleSqrt",{enumerable:!0,get:function(){return l.sqrt}}),Object.defineProperty(e,"scaleSymlog",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"scaleThreshold",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"scaleTime",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"scaleUtc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"tickFormat",{enumerable:!0,get:function(){return g.default}});var t=S(Ai),n=y(Ac),r=y(jt),o=y(po),a=y(ho),i=S(Rr),l=S(fr),u=y(hf),s=y(mf),d=y(gf),f=y(yf),p=y(fa),m=y(Tf),h=S(xn),v=y(Nf),w=S(gr),g=y(gl);function y(x){return x&&x.__esModule?x:{default:x}}function $(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,E=new WeakMap;return($=function(M){return M?E:C})(x)}function S(x,C){if(!C&&x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var E=$(C);if(E&&E.has(x))return E.get(x);var M={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in x)if(j!=="default"&&Object.prototype.hasOwnProperty.call(x,j)){var I=T?Object.getOwnPropertyDescriptor(x,j):null;I&&(I.get||I.set)?Object.defineProperty(M,j,I):M[j]=x[j]}return M.default=x,E&&E.set(x,M),M}})(ng);var ot=ng;function U5(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function V5(e,t){t.range&&("padding"in e,e.range(t.range))}function G5(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function Y5(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function K5(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function X5(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function R5(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var Gt=Ro,i1={lab:Gt.interpolateLab,hcl:Gt.interpolateHcl,"hcl-long":Gt.interpolateHclLong,hsl:Gt.interpolateHsl,"hsl-long":Gt.interpolateHslLong,cubehelix:Gt.interpolateCubehelix,"cubehelix-long":Gt.interpolateCubehelixLong,rgb:Gt.interpolateRgb};function Z5(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return i1[e]}var t=e.type,n=e.gamma,r=i1[t];return typeof n>"u"?r:r.gamma(n)}function Q5(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=Z5(t.interpolate);e.interpolate(n)}}var at=da,J5=new Date(Date.UTC(2020,1,2,3,4,5)),e7="%Y-%m-%d %H:%M";function l1(e){var t=e.tickFormat(1,e7)(J5);return t==="2020-02-02 03:04"}var u1={day:at.timeDay,hour:at.timeHour,minute:at.timeMinute,month:at.timeMonth,second:at.timeSecond,week:at.timeWeek,year:at.timeYear},s1={day:at.utcDay,hour:at.utcHour,minute:at.utcMinute,month:at.utcMonth,second:at.utcSecond,week:at.utcWeek,year:at.utcYear};function t7(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=l1(r);if(typeof n=="string")r.nice(o?s1[n]:u1[n]);else{var a=n.interval,i=n.step,l=(o?s1[a]:u1[a]).every(i);l!=null&&r.nice(l)}}}}function n7(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function r7(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function o7(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(Gt.interpolateRound))}function a7(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function i7(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],l=i[0],u=i[1],s=[Math.min(0,l),Math.max(0,u)];e.domain(a?s.reverse():s)}}var c1=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],l7={domain:U5,nice:t7,zero:i7,interpolate:Q5,round:o7,align:G5,base:Y5,clamp:K5,constant:X5,exponent:R5,padding:n7,range:V5,reverse:r7,unknown:a7};function it(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=c1.filter(function(a){return r.has(a)});return function(i,l){return typeof l<"u"&&o.forEach(function(u){l7[u](i,l)}),i}}var u7=it("domain","range","reverse","align","padding","round");function f1(e){return u7(ot.scaleBand(),e)}var s7=it("domain","range","reverse","align","padding","round");function d1(e){return s7(ot.scalePoint(),e)}var c7=it("domain","range","reverse","clamp","interpolate","nice","round","zero");function ba(e){return c7(ot.scaleLinear(),e)}var f7=it("domain","range","clamp","nice","round","unknown");function d7(e){return f7(ot.scaleRadial(),e)}var p7=it("domain","range","reverse","clamp","interpolate","nice","round");function p1(e){return p7(ot.scaleTime(),e)}var h7=it("domain","range","reverse","clamp","interpolate","nice","round");function h1(e){return h7(ot.scaleUtc(),e)}var m7=it("domain","range","reverse","base","clamp","interpolate","nice","round");function m1(e){return m7(ot.scaleLog(),e)}var v7=it("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function v1(e){return v7(ot.scalePow(),e)}var g7=it("domain","range","reverse","unknown");function g1(e){return g7(ot.scaleOrdinal(),e)}var y7=it("domain","range","reverse","nice","zero");function y1(e){return y7(ot.scaleQuantize(),e)}var b7=it("domain","range","reverse");function b1(e){return b7(ot.scaleQuantile(),e)}var w7=it("domain","range","reverse","clamp","constant","nice","zero","round");function w1(e){return w7(ot.scaleSymlog(),e)}var x7=it("domain","range","reverse");function x1(e){return x7(ot.scaleThreshold(),e)}var $7=it("domain","range","reverse","clamp","interpolate","nice","round","zero");function $1(e){return $7(ot.scaleSqrt(),e)}function wa(e){if(typeof e<"u"&&"type"in e)switch(e.type){case"linear":return ba(e);case"log":return m1(e);case"pow":return v1(e);case"sqrt":return $1(e);case"symlog":return w1(e);case"time":return p1(e);case"utc":return h1(e);case"quantile":return b1(e);case"quantize":return y1(e);case"threshold":return x1(e);case"ordinal":return g1(e);case"point":return d1(e);case"band":return f1(e)}return ba(e)}var _7=it.apply(void 0,c1);function P7(e,t){return _7(e.copy(),t)}function S7(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?l1(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function Lf(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function Ff(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,o,a){return t==null||a.length<=t||o%Math.round((a.length-1)/t)===0})}function _1(e){return e==null?void 0:e.toString()}var O7=new Set(["linear","pow","quantize","sqrt","symlog"]);function jf(e){return O7.has(e.type)}const M7=Object.freeze(Object.defineProperty({__proto__:null,coerceNumber:Lf,createScale:wa,getTicks:Ff,inferScaleType:S7,scaleBand:f1,scaleCanBeZeroed:jf,scaleLinear:ba,scaleLog:m1,scaleOrdinal:g1,scalePoint:d1,scalePower:v1,scaleQuantile:b1,scaleQuantize:y1,scaleRadial:d7,scaleSqrt:$1,scaleSymlog:w1,scaleThreshold:x1,scaleTime:p1,scaleUtc:h1,toString:_1,updateScale:P7},Symbol.toStringTag,{value:"Module"}));var C7=c.createContext({});const rn=C7;function Wf(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Et(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const P1=Ou(kC),S1=Ou(M7);var zf=Math.PI,Bf=2*zf,yr=1e-6,E7=Bf-yr;function qf(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Hf(){return new qf}qf.prototype=Hf.prototype={constructor:qf,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,l=n-e,u=r-t,s=a-e,d=i-t,f=s*s+d*d;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>yr)if(!(Math.abs(d*l-u*s)>yr)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-a,m=r-i,h=l*l+u*u,v=p*p+m*m,w=Math.sqrt(h),g=Math.sqrt(f),y=o*Math.tan((zf-Math.acos((h+f-v)/(2*w*g)))/2),$=y/g,S=y/w;Math.abs($-1)>yr&&(this._+="L"+(e+$*s)+","+(t+$*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>s*m)+","+(this._x1=e+S*l)+","+(this._y1=t+S*u)}},arc:function(e,t,n,r,o,a){e=+e,t=+t,n=+n,a=!!a;var i=n*Math.cos(r),l=n*Math.sin(r),u=e+i,s=t+l,d=1^a,f=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+s:(Math.abs(this._x1-u)>yr||Math.abs(this._y1-s)>yr)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%Bf+Bf),f>E7?this._+="A"+n+","+n+",0,1,"+d+","+(e-i)+","+(t-l)+"A"+n+","+n+",0,1,"+d+","+(this._x1=u)+","+(this._y1=s):f>yr&&(this._+="A"+n+","+n+",0,"+ +(f>=zf)+","+d+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function yo(e){return function(){return e}}function O1(e){this._context=e}O1.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function T7(e){return new O1(e)}function M1(e){return e[0]}function C1(e){return e[1]}function k7(){var e=M1,t=C1,n=yo(!0),r=null,o=T7,a=null;function i(l){var u,s=l.length,d,f=!1,p;for(r==null&&(a=o(p=Hf())),u=0;u<=s;++u)!(u<s&&n(d=l[u],u,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,u,l),+t(d,u,l));if(p)return a=null,p+""||null}return i.x=function(l){return arguments.length?(e=typeof l=="function"?l:yo(+l),i):e},i.y=function(l){return arguments.length?(t=typeof l=="function"?l:yo(+l),i):t},i.defined=function(l){return arguments.length?(n=typeof l=="function"?l:yo(!!l),i):n},i.curve=function(l){return arguments.length?(o=l,r!=null&&(a=o(r)),i):o},i.context=function(l){return arguments.length?(l==null?r=a=null:a=o(r=l),i):r},i}var N7=Array.prototype.slice;function D7(e){return e.source}function A7(e){return e.target}function I7(e){var t=D7,n=A7,r=M1,o=C1,a=null;function i(){var l,u=N7.call(arguments),s=t.apply(this,u),d=n.apply(this,u);if(a||(a=l=Hf()),e(a,+r.apply(this,(u[0]=s,u)),+o.apply(this,u),+r.apply(this,(u[0]=d,u)),+o.apply(this,u)),l)return a=null,l+""||null}return i.source=function(l){return arguments.length?(t=l,i):t},i.target=function(l){return arguments.length?(n=l,i):n},i.x=function(l){return arguments.length?(r=typeof l=="function"?l:yo(+l),i):r},i.y=function(l){return arguments.length?(o=typeof l=="function"?l:yo(+l),i):o},i.context=function(l){return arguments.length?(a=l??null,i):a},i}function L7(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function F7(){return I7(L7)}function E1(e,t){e(t)}function j7(e){var t=e===void 0?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,i=k7();return n&&E1(i.x,n),r&&E1(i.y,r),o&&i.defined(o),a&&i.curve(a),i}var W7=["from","to","fill","className","innerRef"];function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}function z7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function T1(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,l=e.className,u=e.innerRef,s=z7(e,W7),d=n.x===o.x||n.y===o.y;return c.createElement("line",Uf({ref:u,className:ft("visx-line",l),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:d?"crispEdges":"auto"},s))}var B7=["children","data","x","y","fill","className","curve","innerRef","defined"];function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vf.apply(this,arguments)}function q7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function H7(e){var t=e.children,n=e.data,r=n===void 0?[]:n,o=e.x,a=e.y,i=e.fill,l=i===void 0?"transparent":i,u=e.className,s=e.curve,d=e.innerRef,f=e.defined,p=f===void 0?function(){return!0}:f,m=q7(e,B7),h=j7({x:o,y:a,defined:p,curve:s});return t?c.createElement(c.Fragment,null,t({path:h})):c.createElement("path",Vf({ref:d,className:ft("visx-linepath",u),d:h(r)||"",fill:l,strokeLinecap:"round"},m))}var U7=["className","innerRef"];function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gf.apply(this,arguments)}function V7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function G7(e){var t=e.className,n=e.innerRef,r=V7(e,U7);return c.createElement("rect",Gf({ref:n,className:ft("visx-bar",t)},r))}var Y7=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yf.apply(this,arguments)}function K7(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function X7(e){var t=e.all,n=e.bottom,r=e.bottomLeft,o=e.bottomRight,a=e.height,i=e.left,l=e.radius,u=e.right,s=e.top,d=e.topLeft,f=e.topRight,p=e.width,m=e.x,h=e.y;f=t||s||u||f,o=t||n||u||o,r=t||n||i||r,d=t||s||i||d,l=Math.max(1,Math.min(l,Math.min(p,a)/2));var v=2*l,w=("M"+(m+l)+","+h+" h"+(p-v)+`
70
- `+(f?"a"+l+","+l+" 0 0 1 "+l+","+l:"h"+l+"v"+l)+`
71
- v`+(a-v)+`
72
- `+(o?"a"+l+","+l+" 0 0 1 "+-l+","+l:"v"+l+"h"+-l)+`
73
- h`+(v-p)+`
74
- `+(r?"a"+l+","+l+" 0 0 1 "+-l+","+-l:"h"+-l+"v"+-l)+`
75
- v`+(v-a)+`
76
- `+(d?"a"+l+","+l+" 0 0 1 "+l+","+-l:"v"+-l+"h"+l)+`
69
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Hp);var oi=Hp.exports;const ct=pr(oi);var S3=["top","left","transform","className","children","innerRef"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sl.apply(this,arguments)}function C3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qn(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.transform,i=e.className,s=e.children,l=e.innerRef,c=C3(e,S3);return u.createElement("g",Sl({ref:l,className:ct("visx-group",i),transform:a||"translate("+o+", "+n+")"},c),s)}qn.propTypes={top:se.number,left:se.number,transform:se.string,className:se.string,children:se.node,innerRef:se.oneOfType([se.string,se.func,se.object])};const E3=Object.freeze(Object.defineProperty({__proto__:null,Group:qn},Symbol.toStringTag,{value:"Module"}));var T3=Gp;function Gp(e,t,n){e instanceof RegExp&&(e=Up(e,n)),t instanceof RegExp&&(t=Up(t,n));var r=Yp(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Up(e,t){var n=t.match(e);return n?n[0]:null}Gp.range=Yp;function Yp(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var M3=qp;function qp(e,t,n){e instanceof RegExp&&(e=Kp(e,n)),t instanceof RegExp&&(t=Kp(t,n));var r=Xp(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Kp(e,t){var n=t.match(e);return n?n[0]:null}qp.range=Xp;function Xp(e,t,n){var r,o,a,i,s,l=n.indexOf(e),c=n.indexOf(t,l+1),f=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;f>=0&&!s;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?s=[r.pop(),c]:(o=r.pop(),o<a&&(a=o,i=c),c=n.indexOf(t,f+1)),f=l<c&&l>=0?l:c;r.length&&(s=[a,i])}return s}var P3=M3,k3=Zp;function Zp(e,t,n){var r=e;return O3(e,t).reduce(function(o,a){return o.replace(a.functionIdentifier+"("+a.matches.body+")",N3(a.matches.body,a.functionIdentifier,n,r,t))},e)}function O3(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var o=r.exec(e);if(!o)return n;if(o[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],i=o.index,s=P3("(",")",e.substring(i));if(!s||s.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:a}),e=s.post}while(r.test(e));return n}function N3(e,t,n,r,o){return n(Zp(e,o,n),t,r)}var Je=function(e){this.value=e};Je.math={isDegree:!0,acos:function(e){return Je.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Je.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Je.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,o=t;o<r&&(o=r,r=t);for(var a=o+1;a<=e;a++)n*=a;return n/Je.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Je.math.isDegree&&(e=Je.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Je.sinha(e)/Je.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Je.Exception=function(e){this.message=e};var _3=Je,xe=_3;function Re(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var $n=[{token:"sin",show:"sin",type:0,value:xe.math.sin},{token:"cos",show:"cos",type:0,value:xe.math.cos},{token:"tan",show:"tan",type:0,value:xe.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:xe.math.P},{token:"C",show:"C",type:10,value:xe.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:xe.math.asin},{token:"acos",show:"acos",type:0,value:xe.math.acos},{token:"atan",show:"atan",type:0,value:xe.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:xe.math.cosh},{token:"acosh",show:"acosh",type:0,value:xe.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:xe.math.div},{token:"!",show:"!",type:7,value:xe.math.fact},{token:"tanh",show:"tanh",type:0,value:xe.math.tanh},{token:"atanh",show:"atanh",type:0,value:xe.math.atanh},{token:"Mod",show:" Mod ",type:2,value:xe.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:xe.math.mul},{token:"sinh",show:"sinh",type:0,value:xe.math.sinh},{token:"asinh",show:"asinh",type:0,value:xe.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:xe.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:xe.math.add},{token:"-",show:"-",type:9,value:xe.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:xe.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:xe.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:xe.math.and}],Cl={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},ai=0;ai<$n.length;ai++)$n[ai].precedence=Cl[$n[ai].type];var Gt={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},Nr={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},D3={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},kt={},xo={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},A3={1:!0},et=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function I3(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}xe.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},xe.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===xe.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),et[n]=et[n]||[];for(var o=0;o<et[n].length;o++)if(e[t].token===et[n][o]){r=Qp(et[n][o],$n);break}r===-1?($n.push(e[t]),e[t].precedence=Cl[e[t].type],et.length<=e[t].token.length&&(et[e[t].token.length]=[]),et[e[t].token.length].push(e[t].token)):($n[r]=e[t],e[t].precedence=Cl[e[t].type])}};function Qp(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function L3(e){for(var t=[],n=e.length,r,o,a,i=0;i<n;i++)if(!(i<n-1&&e[i]===" "&&e[i+1]===" ")){for(r="",o=e.length-i>et.length-2?et.length-1:e.length-i;o>0;o--)if(et[o]!==void 0)for(a=0;a<et[o].length;a++)I3(e,et[o][a],i,o)&&(r=et[o][a],a=et[o].length,o=0);if(i+=r.length-1,r==="")throw new xe.Exception("Can't understand after "+e.slice(i));t.push($n[Qp(r,$n)])}return t}var F3={value:xe.math.changeSign,type:0,pre:21,show:"-"},ii={value:")",show:")",type:5,pre:0},$o={value:"(",type:4,pre:0,show:"("};xe.lex=function(e,t){var n=[$o],r=[],o=e,a=Gt,i=0,s=kt,l="",c;typeof t<"u"&&xe.addToken(t);var f={},d=L3(o);for(c=0;c<d.length;c++){var h=d[c];if(h.type===14){if(c>0&&c<d.length-1&&d[c+1].type===1&&(d[c-1].type===1||d[c-1].type===6))throw new xe.Exception("Unexpected Space");continue}var g=h.token,p=h.type,m=h.value,x=h.precedence,b=h.show,v=n[n.length-1],w;for(w=r.length;w--&&r[w]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);n.push(ii),a=Nr,s=xo,r.pop()}if(a[p]!==!0)throw new xe.Exception(g+" is not allowed after "+l);if(s[p]===!0&&(p=2,m=xe.math.mul,b="&times;",x=3,c=c-1),f={value:m,type:p,pre:x,show:b,numberOfArguments:h.numberOfArguments},p===0)a=Gt,s=kt,Re(r,2),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(2));else if(p===1)v.type===1?(v.value+=m,Re(r,1)):n.push(f),a=Nr,s=D3;else if(p===2)a=Gt,s=kt,Re(r,2),n.push(f);else if(p===3)n.push(f),a=Nr,s=xo;else if(p===4)Re(r,1),i++,a=Gt,s=kt,n.push(f);else if(p===5){if(!i)throw new xe.Exception("Closing parenthesis are more than opening one, wait What!!!");i--,a=Nr,s=xo,n.push(f),Re(r,1)}else if(p===6){if(v.hasDec)throw new xe.Exception("Two decimals are not allowed in one number");v.type!==1&&(v={value:0,type:1,pre:0},n.push(v)),a=A3,Re(r,1),s=kt,v.value+=m,v.hasDec=!0}else p===7&&(a=Nr,s=xo,Re(r,1),n.push(f));p===8?(a=Gt,s=kt,Re(r,h.numberOfArguments+2),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(h.numberOfArguments+2))):p===9?(v.type===9?v.value===xe.math.add?(v.value=m,v.show=b,Re(r,1)):v.value===xe.math.sub&&b==="-"&&(v.value=xe.math.add,v.show="+",Re(r,1)):v.type!==5&&v.type!==7&&v.type!==1&&v.type!==3&&v.type!==13?g==="-"&&(a=Gt,s=kt,Re(r,2).push(2),n.push(F3),n.push($o)):(n.push(f),Re(r,2)),a=Gt,s=kt):p===10?(a=Gt,s=kt,Re(r,2),n.push(f)):p===11?(a=Gt,s=kt,n.push(f)):p===12?(a=Gt,s=kt,Re(r,6),n.push(f),d[c+1].type!==4&&(n.push($o),r.push(6))):p===13&&(a=Nr,s=xo,n.push(f)),Re(r,-1),l=g}for(w=r.length;w--;)n.push(ii);if(a[5]!==!0)throw new xe.Exception("complete the expression");for(;i--;)n.push(ii);return n.push(ii),new xe(n)};var j3=xe,El=j3;El.prototype.toPostfix=function(){for(var e=[],t,n,r,o,a,i=[{value:"(",type:4,pre:0}],s=this.value,l=1;l<s.length;l++)if(s[l].type===1||s[l].type===3||s[l].type===13)s[l].type===1&&(s[l].value=Number(s[l].value)),e.push(s[l]);else if(s[l].type===4)i.push(s[l]);else if(s[l].type===5)for(;(n=i.pop()).type!==4;)e.push(n);else if(s[l].type===11){for(;(n=i.pop()).type!==4;)e.push(n);i.push(n)}else{t=s[l],o=t.pre,a=i[i.length-1],r=a.pre;var c=a.value=="Math.pow"&&t.value=="Math.pow";if(o>r)i.push(t);else{for(;r>=o&&!c||c&&o<r;)n=i.pop(),a=i[i.length-1],e.push(n),r=a.pre,c=t.value=="Math.pow"&&a.value=="Math.pow";i.push(t)}}return new El(e)};var z3=El,So=z3;So.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,o,a=this.value,i=typeof e.n<"u",s=0;s<a.length;s++)if(a[s].type===1)t.push({value:a[s].value,type:1});else if(a[s].type===3)t.push({value:e[a[s].value],type:1});else if(a[s].type===0)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===7)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(a[s]):t[t.length-1].value=a[s].value(t[t.length-1].value);else if(a[s].type===8){for(var l=[],c=0;c<a[s].numberOfArguments;c++)l.push(t.pop().value);t.push({type:1,value:a[s].value.apply(a[s],l.reverse())})}else a[s].type===10?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r.value=r.concat(n),r.value.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===2||a[s].type===9?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r=r.concat(n),r.push(a[s]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(a[s]),t.push(n)):t.push({type:1,value:a[s].value(r.value,n.value)})):a[s].type===12?(n=t.pop(),typeof n.type<"u"&&(n=[n]),r=t.pop(),o=t.pop(),t.push({type:1,value:a[s].value(o.value,r.value,new So(n))})):a[s].type===13&&(i?t.push({value:e[a[s].value],type:3}):t.push([a[s]]));if(t.length>1)throw new So.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},So.eval=function(e,t,n){return typeof t>"u"?this.lex(e).toPostfix().postfixEval():typeof n>"u"?typeof t.length<"u"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var B3=So,Jp=B3;Jp.prototype.formulaEval=function(){for(var e,t,n,r=[],o=this.value,a=0;a<o.length;a++)o[a].type===1||o[a].type===3?r.push({value:o[a].type===3?o[a].show:o[a].value,type:1}):o[a].type===13?r.push({value:o[a].show,type:1}):o[a].type===0?r[r.length-1]={value:o[a].show+(o[a].show!="-"?"(":"")+r[r.length-1].value+(o[a].show!="-"?")":""),type:0}:o[a].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+o[a].show,type:7}:o[a].type===10?(e=r.pop(),t=r.pop(),o[a].show==="P"||o[a].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+o[a].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):o[a].type===2||o[a].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+o[a].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:o[a].type})):o[a].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[a].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var W3=Jp,V3=T3,H3=k3,G3=W3,U3=100,Y3=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,Tl,q3=K3;function K3(e,t){Tl=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(o,a,i){if(Tl++>U3)throw Tl=0,new Error("Call stack overflow for "+i);if(o==="")throw new Error(a+"(): '"+i+"' must contain a non-whitespace string");o=r(o,i);var s=X3(o);if(s.length>1||o.indexOf("var(")>-1)return a+"("+o+")";var l=s[0]||"";l==="%"&&(o=o.replace(/\b[0-9\.]+%/g,function(d){return parseFloat(d.slice(0,-1))*.01}));var c=o.replace(new RegExp(l,"gi"),""),f;try{f=G3.eval(c)}catch{return a+"("+o+")"}return l==="%"&&(f*=100),(a.length||l==="%")&&(f=Math.round(f*t)/t),f+=l,f}function r(o,a){o=o.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var i="",s=o,l;l=Y3.exec(s);){l[0].index>0&&(i+=s.substring(0,l[0].index));var c=V3("(",")",s.substring([0].index));if(c.body==="")throw new Error("'"+o+"' must contain a non-whitespace string");var f=n(c.body,"",a);i+=c.pre+f,s=c.post}return i+s}return H3(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function X3(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);o;)!o||!o[1]||(n.indexOf(o[1].toLowerCase())===-1&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}const Ml=pr(q3);var Z3=typeof io=="object"&&io&&io.Object===Object&&io,Q3=Z3,J3=Q3,R3=typeof self=="object"&&self&&self.Object===Object&&self,eE=J3||R3||Function("return this")(),si=eE,tE=si,nE=tE.Symbol,Rp=nE,em=Rp,tm=Object.prototype,rE=tm.hasOwnProperty,oE=tm.toString,Co=em?em.toStringTag:void 0;function aE(e){var t=rE.call(e,Co),n=e[Co];try{e[Co]=void 0;var r=!0}catch{}var o=oE.call(e);return r&&(t?e[Co]=n:delete e[Co]),o}var iE=aE,sE=Object.prototype,lE=sE.toString;function cE(e){return lE.call(e)}var uE=cE,nm=Rp,dE=iE,fE=uE,hE="[object Null]",pE="[object Undefined]",rm=nm?nm.toStringTag:void 0;function mE(e){return e==null?e===void 0?pE:hE:rm&&rm in Object(e)?dE(e):fE(e)}var om=mE;function gE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var li=gE,vE=om,bE=li,yE="[object AsyncFunction]",wE="[object Function]",xE="[object GeneratorFunction]",$E="[object Proxy]";function SE(e){if(!bE(e))return!1;var t=vE(e);return t==wE||t==xE||t==yE||t==$E}var CE=SE,EE=si,TE=EE["__core-js_shared__"],ME=TE,Pl=ME,am=function(){var e=/[^.]+$/.exec(Pl&&Pl.keys&&Pl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PE(e){return!!am&&am in e}var kE=PE,OE=Function.prototype,NE=OE.toString;function _E(e){if(e!=null){try{return NE.call(e)}catch{}try{return e+""}catch{}}return""}var DE=_E,AE=CE,IE=kE,LE=li,FE=DE,jE=/[\\^$.*+?()[\]{}|]/g,zE=/^\[object .+?Constructor\]$/,BE=Function.prototype,WE=Object.prototype,VE=BE.toString,HE=WE.hasOwnProperty,GE=RegExp("^"+VE.call(HE).replace(jE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function UE(e){if(!LE(e)||IE(e))return!1;var t=AE(e)?GE:zE;return t.test(FE(e))}var YE=UE;function qE(e,t){return e==null?void 0:e[t]}var KE=qE,XE=YE,ZE=KE;function QE(e,t){var n=ZE(e,t);return XE(n)?n:void 0}var im=QE,JE=im,RE=JE(Object,"create"),ci=RE,sm=ci;function e5(){this.__data__=sm?sm(null):{},this.size=0}var t5=e5;function n5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var r5=n5,o5=ci,a5="__lodash_hash_undefined__",i5=Object.prototype,s5=i5.hasOwnProperty;function l5(e){var t=this.__data__;if(o5){var n=t[e];return n===a5?void 0:n}return s5.call(t,e)?t[e]:void 0}var c5=l5,u5=ci,d5=Object.prototype,f5=d5.hasOwnProperty;function h5(e){var t=this.__data__;return u5?t[e]!==void 0:f5.call(t,e)}var p5=h5,m5=ci,g5="__lodash_hash_undefined__";function v5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=m5&&t===void 0?g5:t,this}var b5=v5,y5=t5,w5=r5,x5=c5,$5=p5,S5=b5;function _r(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_r.prototype.clear=y5,_r.prototype.delete=w5,_r.prototype.get=x5,_r.prototype.has=$5,_r.prototype.set=S5;var C5=_r;function E5(){this.__data__=[],this.size=0}var T5=E5;function M5(e,t){return e===t||e!==e&&t!==t}var P5=M5,k5=P5;function O5(e,t){for(var n=e.length;n--;)if(k5(e[n][0],t))return n;return-1}var ui=O5,N5=ui,_5=Array.prototype,D5=_5.splice;function A5(e){var t=this.__data__,n=N5(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():D5.call(t,n,1),--this.size,!0}var I5=A5,L5=ui;function F5(e){var t=this.__data__,n=L5(t,e);return n<0?void 0:t[n][1]}var j5=F5,z5=ui;function B5(e){return z5(this.__data__,e)>-1}var W5=B5,V5=ui;function H5(e,t){var n=this.__data__,r=V5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var G5=H5,U5=T5,Y5=I5,q5=j5,K5=W5,X5=G5;function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dr.prototype.clear=U5,Dr.prototype.delete=Y5,Dr.prototype.get=q5,Dr.prototype.has=K5,Dr.prototype.set=X5;var Z5=Dr,Q5=im,J5=si,R5=Q5(J5,"Map"),e6=R5,lm=C5,t6=Z5,n6=e6;function r6(){this.size=0,this.__data__={hash:new lm,map:new(n6||t6),string:new lm}}var o6=r6;function a6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var i6=a6,s6=i6;function l6(e,t){var n=e.__data__;return s6(t)?n[typeof t=="string"?"string":"hash"]:n.map}var di=l6,c6=di;function u6(e){var t=c6(this,e).delete(e);return this.size-=t?1:0,t}var d6=u6,f6=di;function h6(e){return f6(this,e).get(e)}var p6=h6,m6=di;function g6(e){return m6(this,e).has(e)}var v6=g6,b6=di;function y6(e,t){var n=b6(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var w6=y6,x6=o6,$6=d6,S6=p6,C6=v6,E6=w6;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ar.prototype.clear=x6,Ar.prototype.delete=$6,Ar.prototype.get=S6,Ar.prototype.has=C6,Ar.prototype.set=E6;var T6=Ar,cm=T6,M6="Expected a function";function kl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(M6);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(kl.Cache||cm),n}kl.Cache=cm;var P6=kl;const k6=pr(P6);var um="__react_svg_text_measurement_id";function O6(e,t){try{var n=document.getElementById(um);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",um),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const dm=k6(O6,function(e,t){return e+"_"+JSON.stringify(t)});var N6=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function _6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ol(e){return typeof e=="number"}function fm(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function D6(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,o=r===void 0?!1:r,a=e.angle,i=e.width,s=e.lineHeight,l=s===void 0?"1em":s,c=e.capHeight,f=c===void 0?"0.71em":c,d=e.children,h=e.style,g=_6(e,N6),p=g.x,m=p===void 0?0:p,x=g.y,b=x===void 0?0:x,v=!fm(m)||!fm(b),w=u.useMemo(function(){var O=d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:O.map(function(F){return{word:F,wordWidth:dm(F,h)||0}}),spaceWidth:dm(" ",h)||0}},[d,h]),E=w.wordsWithWidth,S=w.spaceWidth,M=u.useMemo(function(){return v?[]:i||o?E.reduce(function(O,F){var j=F.word,H=F.wordWidth,G=O[O.length-1];if(G&&(i==null||o||(G.width||0)+H+S<i))G.words.push(j),G.width=G.width||0,G.width+=H+S;else{var L={words:[j],width:H};O.push(L)}return O},[]):[{words:d==null?[]:d.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[v,i,o,d,E,S]),N=u.useMemo(function(){var O=v?"":Ml(n==="start"?"calc("+f+")":n==="middle"?"calc("+(M.length-1)/2+" * -"+l+" + ("+f+" / 2))":"calc("+(M.length-1)+" * -"+l+")");return O},[v,n,f,M.length,l]),T=u.useMemo(function(){var O=[];if(v)return"";if(Ol(m)&&Ol(b)&&Ol(i)&&o&&M.length>0){var F=M[0].width||1,j=o==="shrink-only"?Math.min(i/F,1):i/F,H=j,G=m-j*m,L=b-H*b;O.push("matrix("+j+", 0, 0, "+H+", "+G+", "+L+")")}return a&&O.push("rotate("+a+", "+m+", "+b+")"),O.length>0?O.join(" "):""},[v,m,b,i,o,M,a]);return{wordsByLines:M,startDy:N,transform:T}}var A6=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}function I6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var L6={overflow:"visible"};function _l(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,o=r===void 0?0:r,a=e.textAnchor,i=a===void 0?"start":a,s=e.innerRef,l=e.innerTextRef;e.verticalAnchor,e.angle;var c=e.lineHeight,f=c===void 0?"1em":c;e.scaleToFit,e.capHeight,e.width;var d=I6(e,A6),h=d.x,g=h===void 0?0:h,p=d.fontSize,m=D6(e),x=m.wordsByLines,b=m.startDy,v=m.transform;return u.createElement("svg",{ref:s,x:n,y:o,fontSize:p,style:L6},x.length>0?u.createElement("text",Nl({ref:l,transform:v},d,{textAnchor:i}),x.map(function(w,E){return u.createElement("tspan",{key:E,x:g,dy:E===0?b:f},w.words.join(" "))})):null)}function Dl(e,t,n){var r,o,a,i,s;t==null&&(t=100);function l(){var f=Date.now()-i;f<t&&f>=0?r=setTimeout(l,t-f):(r=null,n||(s=e.apply(a,o),a=o=null))}var c=function(){a=this,o=arguments,i=Date.now();var f=n&&!r;return r||(r=setTimeout(l,t)),f&&(s=e.apply(a,o),a=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(a,o),a=o=null,clearTimeout(r),r=null)},c}Dl.debounce=Dl;var F6=Dl;const hm=pr(F6);function j6(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,s]=u.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=u.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i}),c=t?typeof t=="number"?t:t.scroll:null,f=t?typeof t=="number"?t:t.resize:null,d=u.useRef(!1);u.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,g,p]=u.useMemo(()=>{const v=()=>{if(!l.current.element)return;const{left:w,top:E,width:S,height:M,bottom:N,right:T,x:O,y:F}=l.current.element.getBoundingClientRect(),j={left:w,top:E,width:S,height:M,bottom:N,right:T,x:O,y:F};l.current.element instanceof HTMLElement&&o&&(j.height=l.current.element.offsetHeight,j.width=l.current.element.offsetWidth),Object.freeze(j),d.current&&!V6(l.current.lastBounds,j)&&s(l.current.lastBounds=j)};return[v,f?hm(v,f):v,c?hm(v,c):v]},[s,o,c,f]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function x(){l.current.element&&(l.current.resizeObserver=new a(p),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(v=>v.addEventListener("scroll",p,{capture:!0,passive:!0})))}const b=v=>{!v||v===l.current.element||(m(),l.current.element=v,l.current.scrollContainers=pm(v),x())};return B6(p,!!n),z6(g),u.useEffect(()=>{m(),x()},[n,p,g]),u.useEffect(()=>m,[]),[b,i,h]}function z6(e){u.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function B6(e,t){u.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function pm(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(a=>a==="auto"||a==="scroll")&&t.push(e),[...t,...pm(e.parentElement)]}const W6=["x","y","top","bottom","left","right","width","height"],V6=(e,t)=>W6.every(n=>e[n]===t[n]);var Sn=function(){function e(n){var r=n.x,o=r===void 0?0:r,a=n.y,i=a===void 0?0:a;this.x=0,this.y=0,this.x=o,this.y=i}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function H6(e,t){return new Sn({x:e.x+t.x,y:e.y+t.y})}function G6(e,t){return new Sn({x:e.x-t.x,y:e.y-t.y})}const mm=mr(Object.freeze(Object.defineProperty({__proto__:null,Point:Sn,subtractPoints:G6,sumPoints:H6},Symbol.toStringTag,{value:"Module"})));function U6(e){return!!e&&e instanceof Element}function Y6(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function q6(e){return!!e&&"createSVGPoint"in e}function K6(e){return!!e&&"getScreenCTM"in e}function X6(e){return!!e&&"changedTouches"in e}function Z6(e){return!!e&&"clientX"in e}function Q6(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eo.apply(this,arguments)}var Al={x:0,y:0};function J6(e){if(!e)return Eo({},Al);if(X6(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Eo({},Al);if(Z6(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Eo({},Al)}function gm(e,t){if(!e||!t)return null;var n=J6(t),r=Y6(e)?e.ownerSVGElement:e,o=K6(r)?r.getScreenCTM():null;if(q6(r)&&o){var a=r.createSVGPoint();return a.x=n.x,a.y=n.y,a=a.matrixTransform(o.inverse()),new Sn({x:a.x,y:a.y})}var i=e.getBoundingClientRect();return new Sn({x:n.x-i.left-e.clientLeft,y:n.y-i.top-e.clientTop})}function R6(e,t){if(U6(e)&&t)return gm(e,t);if(Q6(e)){var n=e,r=n.target;if(r)return gm(r,n)}return null}function Cn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Il(e){let t,n,r;e.length!==2?(t=Cn,n=(s,l)=>Cn(e(s),l),r=(s,l)=>e(s)-l):(t=e===Cn||e===eT?e:tT,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function tT(){return 0}function vm(e){return e===null?NaN:+e}function*nT(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const rT=Il(Cn).right;Il(vm).center;const Ir=rT;function oT(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}function fi(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class bm extends Map{constructor(t,n=sT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(ym(this,t))}has(t){return super.has(ym(this,t))}set(t,n){return super.set(aT(this,t),n)}delete(t){return super.delete(iT(this,t))}}function ym({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function aT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function iT({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function sT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lT(e){return e}function cT(e=Cn){if(e===Cn)return wm;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function wm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var uT=Array.prototype,dT=uT.slice;function Ll(e){return()=>e}const fT=Math.sqrt(50),hT=Math.sqrt(10),pT=Math.sqrt(2);function hi(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=fT?10:a>=hT?5:a>=pT?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?hi(e,t,n*2):[s,l,c]}function pi(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,a,i]=r?hi(t,e,n):hi(e,t,n);if(!(a>=o))return[];const s=a-o+1,l=new Array(s);if(r)if(i<0)for(let c=0;c<s;++c)l[c]=(a-c)/-i;else for(let c=0;c<s;++c)l[c]=(a-c)*i;else if(i<0)for(let c=0;c<s;++c)l[c]=(o+c)/-i;else for(let c=0;c<s;++c)l[c]=(o+c)*i;return l}function Lr(e,t,n){return t=+t,e=+e,n=+n,hi(e,t,n)[2]}function Fl(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Lr(t,e,n):Lr(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mT(e,t,n){let r;for(;;){const o=Lr(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function gT(e){return Math.max(1,Math.ceil(Math.log(oT(e))/Math.LN2)+1)}function vT(){var e=lT,t=fi,n=gT;function r(o){Array.isArray(o)||(o=Array.from(o));var a,i=o.length,s,l,c=new Array(i);for(a=0;a<i;++a)c[a]=e(o[a],a,o);var f=t(c),d=f[0],h=f[1],g=n(c,d,h);if(!Array.isArray(g)){const w=h,E=+g;if(t===fi&&([d,h]=mT(d,h,E)),g=pi(d,h,E),g[0]<=d&&(l=Lr(d,h,E)),g[g.length-1]>=h)if(w>=h&&t===fi){const S=Lr(d,h,E);isFinite(S)&&(S>0?h=(Math.floor(h/S)+1)*S:S<0&&(h=(Math.ceil(h*-S)+1)/-S))}else g.pop()}for(var p=g.length,m=0,x=p;g[m]<=d;)++m;for(;g[x-1]>h;)--x;(m||x<p)&&(g=g.slice(m,x),p=x-m);var b=new Array(p+1),v;for(a=0;a<=p;++a)v=b[a]=[],v.x0=a>0?g[a-1]:d,v.x1=a<p?g[a]:h;if(isFinite(l)){if(l>0)for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Math.min(p,Math.floor((s-d)/l))].push(o[a]);else if(l<0){for(a=0;a<i;++a)if((s=c[a])!=null&&d<=s&&s<=h){const w=Math.floor((d-s)*l);b[Math.min(p,w+(g[w]<=s))].push(o[a])}}}else for(a=0;a<i;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Ir(g,s,0,p)].push(o[a]);return b}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:Ll(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:Ll([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:Ll(Array.isArray(o)?dT.call(o):o),r):n},r}function jl(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function xm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function $m(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?wm:cT(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));$m(e,t,g,p,o)}const a=e[t];let i=n,s=r;for(To(e,n,t),o(e[r],a)>0&&To(e,n,r);i<s;){for(To(e,i,s),++i,--s;o(e[i],a)<0;)++i;for(;o(e[s],a)>0;)--s}o(e[n],a)===0?To(e,n,s):(++s,To(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function To(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bT(e,t,n){if(e=Float64Array.from(nT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return xm(e);if(t>=1)return jl(e);var r,o=(r-1)*t,a=Math.floor(o),i=jl($m(e,a).subarray(0,a+1)),s=xm(e.subarray(a+1));return i+(s-i)*(o-a)}}function yT(e,t,n=vm){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return i+(s-i)*(o-a)}}function wT(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const zl=Symbol("implicit");function mi(){var e=new bm,t=[],n=[],r=zl;function o(a){let i=e.get(a);if(i===void 0){if(r!==zl)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return o.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new bm;for(const i of a)e.has(i)||e.set(i,t.push(i)-1);return o},o.range=function(a){return arguments.length?(n=Array.from(a),o):n.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return mi(t,n).unknown(r)},$t.apply(o,arguments),o}function gi(){var e=mi().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,a,i,s=!1,l=0,c=0,f=.5;delete e.unknown;function d(){var h=t().length,g=o<r,p=g?o:r,m=g?r:o;a=(m-p)/Math.max(1,h-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(h-l))*f,i=a*(1-l),s&&(p=Math.round(p),i=Math.round(i));var x=wT(h).map(function(b){return p+a*b});return n(g?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,o]=h,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(h){return[r,o]=h,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return i},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return gi(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(f)},$t.apply(d(),arguments)}function Sm(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sm(t())},e}function Cm(){return Sm(gi.apply(null,arguments).paddingInner(1))}function Fr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function En(){}var Kn=.7,jr=1/Kn,zr="\\s*([+-]?\\d+)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xT=/^#([0-9a-f]{3,8})$/,$T=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),ST=new RegExp(`^rgb\\(${Ut},${Ut},${Ut}\\)$`),CT=new RegExp(`^rgba\\(${zr},${zr},${zr},${Po}\\)$`),ET=new RegExp(`^rgba\\(${Ut},${Ut},${Ut},${Po}\\)$`),TT=new RegExp(`^hsl\\(${Po},${Ut},${Ut}\\)$`),MT=new RegExp(`^hsla\\(${Po},${Ut},${Ut},${Po}\\)$`),Em={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};Fr(En,ko,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tm,formatHex:Tm,formatHex8:PT,formatHsl:kT,formatRgb:Mm,toString:Mm});function Tm(){return this.rgb().formatHex()}function PT(){return this.rgb().formatHex8()}function kT(){return _m(this).formatHsl()}function Mm(){return this.rgb().formatRgb()}function ko(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xT.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Pm(t):n===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?vi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?vi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$T.exec(e))?new He(t[1],t[2],t[3],1):(t=ST.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CT.exec(e))?vi(t[1],t[2],t[3],t[4]):(t=ET.exec(e))?vi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TT.exec(e))?Nm(t[1],t[2]/100,t[3]/100,1):(t=MT.exec(e))?Nm(t[1],t[2]/100,t[3]/100,t[4]):Em.hasOwnProperty(e)?Pm(Em[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function Pm(e){return new He(e>>16&255,e>>8&255,e&255,1)}function vi(e,t,n,r){return r<=0&&(e=t=n=NaN),new He(e,t,n,r)}function Bl(e){return e instanceof En||(e=ko(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function bi(e,t,n,r){return arguments.length===1?Bl(e):new He(e,t,n,r??1)}function He(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Fr(He,bi,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Xn(this.r),Xn(this.g),Xn(this.b),yi(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:km,formatHex:km,formatHex8:OT,formatRgb:Om,toString:Om}));function km(){return`#${Zn(this.r)}${Zn(this.g)}${Zn(this.b)}`}function OT(){return`#${Zn(this.r)}${Zn(this.g)}${Zn(this.b)}${Zn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Om(){const e=yi(this.opacity);return`${e===1?"rgb(":"rgba("}${Xn(this.r)}, ${Xn(this.g)}, ${Xn(this.b)}${e===1?")":`, ${e})`}`}function yi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zn(e){return e=Xn(e),(e<16?"0":"")+e.toString(16)}function Nm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ot(e,t,n,r)}function _m(e){if(e instanceof Ot)return new Ot(e.h,e.s,e.l,e.opacity);if(e instanceof En||(e=ko(e)),!e)return new Ot;if(e instanceof Ot)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(t===a?i=(n-r)/s+(n<r)*6:n===a?i=(r-t)/s+2:i=(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Ot(i,s,l,e.opacity)}function Wl(e,t,n,r){return arguments.length===1?_m(e):new Ot(e,t,n,r??1)}function Ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fr(Ot,Wl,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new Ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new Ot(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new He(Vl(e>=240?e-240:e+120,o,r),Vl(e,o,r),Vl(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ot(Dm(this.h),wi(this.s),wi(this.l),yi(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 e=yi(this.opacity);return`${e===1?"hsl(":"hsla("}${Dm(this.h)}, ${wi(this.s)*100}%, ${wi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dm(e){return e=(e||0)%360,e<0?e+360:e}function wi(e){return Math.max(0,Math.min(1,e||0))}function Vl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Am=Math.PI/180,Im=180/Math.PI,xi=18,Lm=.96422,Fm=1,jm=.82521,zm=4/29,Br=6/29,Bm=3*Br*Br,NT=Br*Br*Br;function Wm(e){if(e instanceof Yt)return new Yt(e.l,e.a,e.b,e.opacity);if(e instanceof on)return Vm(e);e instanceof He||(e=Bl(e));var t=ql(e.r),n=ql(e.g),r=ql(e.b),o=Gl((.2225045*t+.7168786*n+.0606169*r)/Fm),a,i;return t===n&&n===r?a=i=o:(a=Gl((.4360747*t+.3850649*n+.1430804*r)/Lm),i=Gl((.0139322*t+.0971045*n+.7141733*r)/jm)),new Yt(116*o-16,500*(a-o),200*(o-i),e.opacity)}function Hl(e,t,n,r){return arguments.length===1?Wm(e):new Yt(e,t,n,r??1)}function Yt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Fr(Yt,Hl,Mo(En,{brighter(e){return new Yt(this.l+xi*(e??1),this.a,this.b,this.opacity)},darker(e){return new Yt(this.l-xi*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Lm*Ul(t),e=Fm*Ul(e),n=jm*Ul(n),new He(Yl(3.1338561*t-1.6168667*e-.4906146*n),Yl(-.9787684*t+1.9161415*e+.033454*n),Yl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Gl(e){return e>NT?Math.pow(e,1/3):e/Bm+zm}function Ul(e){return e>Br?e*e*e:Bm*(e-zm)}function Yl(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ql(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _T(e){if(e instanceof on)return new on(e.h,e.c,e.l,e.opacity);if(e instanceof Yt||(e=Wm(e)),e.a===0&&e.b===0)return new on(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Im;return new on(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Kl(e,t,n,r){return arguments.length===1?_T(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Vm(e){if(isNaN(e.h))return new Yt(e.l,0,0,e.opacity);var t=e.h*Am;return new Yt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fr(on,Kl,Mo(En,{brighter(e){return new on(this.h,this.c,this.l+xi*(e??1),this.opacity)},darker(e){return new on(this.h,this.c,this.l-xi*(e??1),this.opacity)},rgb(){return Vm(this).rgb()}}));var Hm=-.14861,Xl=1.78277,Zl=-.29227,$i=-.90649,Oo=1.97294,Gm=Oo*$i,Um=Oo*Xl,Ym=Xl*Zl-$i*Hm;function DT(e){if(e instanceof Qn)return new Qn(e.h,e.s,e.l,e.opacity);e instanceof He||(e=Bl(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Ym*r+Gm*t-Um*n)/(Ym+Gm-Um),a=r-o,i=(Oo*(n-o)-Zl*a)/$i,s=Math.sqrt(i*i+a*a)/(Oo*o*(1-o)),l=s?Math.atan2(i,a)*Im-120:NaN;return new Qn(l<0?l+360:l,s,o,e.opacity)}function Ql(e,t,n,r){return arguments.length===1?DT(e):new Qn(e,t,n,r??1)}function Qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fr(Qn,Ql,Mo(En,{brighter(e){return e=e==null?jr:Math.pow(jr,e),new Qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Kn:Math.pow(Kn,e),new Qn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Am,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new He(255*(t+n*(Hm*r+Xl*o)),255*(t+n*(Zl*r+$i*o)),255*(t+n*(Oo*r)),this.opacity)}}));function qm(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Km(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return qm((n-r/t)*t,i,o,a,s)}}function Xm(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return qm((n-r/t)*t,o,a,i,s)}}const Si=e=>()=>e;function Zm(e,t){return function(n){return e+n*t}}function AT(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ci(e,t){var n=t-e;return n?Zm(e,n>180||n<-180?n-360*Math.round(n/360):n):Si(isNaN(e)?t:e)}function IT(e){return(e=+e)==1?Ge:function(t,n){return n-t?AT(t,n,e):Si(isNaN(t)?n:t)}}function Ge(e,t){var n=t-e;return n?Zm(e,n):Si(isNaN(e)?t:e)}const Ei=function e(t){var n=IT(t);function r(o,a){var i=n((o=bi(o)).r,(a=bi(a)).r),s=n(o.g,a.g),l=n(o.b,a.b),c=Ge(o.opacity,a.opacity);return function(f){return o.r=i(f),o.g=s(f),o.b=l(f),o.opacity=c(f),o+""}}return r.gamma=e,r}(1);function Qm(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),a=new Array(n),i,s;for(i=0;i<n;++i)s=bi(t[i]),r[i]=s.r||0,o[i]=s.g||0,a[i]=s.b||0;return r=e(r),o=e(o),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=o(l),s.b=a(l),s+""}}}var LT=Qm(Km),FT=Qm(Xm);function Jl(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;o<n;++o)r[o]=e[o]*(1-a)+t[o]*a;return r}}function Jm(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jT(e,t){return(Jm(t)?Jl:Rm)(e,t)}function Rm(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),a=new Array(n),i;for(i=0;i<r;++i)o[i]=Jn(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<r;++i)a[i]=o[i](s);return a}}function e0(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Nt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function t0(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Jn(e[o],t[o]):r[o]=t[o];return function(a){for(o in n)r[o]=n[o](a);return r}}var Rl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ec=new RegExp(Rl.source,"g");function zT(e){return function(){return e}}function BT(e){return function(t){return e(t)+""}}function n0(e,t){var n=Rl.lastIndex=ec.lastIndex=0,r,o,a,i=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Rl.exec(e))&&(o=ec.exec(t));)(a=o.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(r=r[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:Nt(r,o)})),n=ec.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?l[0]?BT(l[0].x):zT(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(c);return s.join("")})}function Jn(e,t){var n=typeof t,r;return t==null||n==="boolean"?Si(t):(n==="number"?Nt:n==="string"?(r=ko(t))?(t=r,Ei):n0:t instanceof ko?Ei:t instanceof Date?e0:Jm(t)?Jl:Array.isArray(t)?Rm:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?t0:Nt)(e,t)}function WT(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function VT(e,t){var n=Ci(+e,+t);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function No(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var r0=180/Math.PI,tc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function o0(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*r0,skewX:Math.atan(l)*r0,scaleX:i,scaleY:s}}var Ti;function HT(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?tc:o0(t.a,t.b,t.c,t.d,t.e,t.f)}function GT(e){return e==null||(Ti||(Ti=document.createElementNS("http://www.w3.org/2000/svg","g")),Ti.setAttribute("transform",e),!(e=Ti.transform.baseVal.consolidate()))?tc:(e=e.matrix,o0(e.a,e.b,e.c,e.d,e.e,e.f))}function a0(e,t,n,r){function o(c){return c.length?c.pop()+" ":""}function a(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push("translate(",null,t,null,n);p.push({i:m-4,x:Nt(c,d)},{i:m-2,x:Nt(f,h)})}else(d||h)&&g.push("translate("+d+t+h+n)}function i(c,f,d,h){c!==f?(c-f>180?f+=360:f-c>180&&(c+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:Nt(c,f)})):f&&d.push(o(d)+"rotate("+f+r)}function s(c,f,d,h){c!==f?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:Nt(c,f)}):f&&d.push(o(d)+"skewX("+f+r)}function l(c,f,d,h,g,p){if(c!==d||f!==h){var m=g.push(o(g)+"scale(",null,",",null,")");p.push({i:m-4,x:Nt(c,d)},{i:m-2,x:Nt(f,h)})}else(d!==1||h!==1)&&g.push(o(g)+"scale("+d+","+h+")")}return function(c,f){var d=[],h=[];return c=e(c),f=e(f),a(c.translateX,c.translateY,f.translateX,f.translateY,d,h),i(c.rotate,f.rotate,d,h),s(c.skewX,f.skewX,d,h),l(c.scaleX,c.scaleY,f.scaleX,f.scaleY,d,h),c=f=null,function(g){for(var p=-1,m=h.length,x;++p<m;)d[(x=h[p]).i]=x.x(g);return d.join("")}}}var UT=a0(HT,"px, ","px)","deg)"),YT=a0(GT,", ",")",")"),qT=1e-12;function i0(e){return((e=Math.exp(e))+1/e)/2}function KT(e){return((e=Math.exp(e))-1/e)/2}function XT(e){return((e=Math.exp(2*e))-1)/(e+1)}const ZT=function e(t,n,r){function o(a,i){var s=a[0],l=a[1],c=a[2],f=i[0],d=i[1],h=i[2],g=f-s,p=d-l,m=g*g+p*p,x,b;if(m<qT)b=Math.log(h/c)/t,x=function(N){return[s+N*g,l+N*p,c*Math.exp(t*N*b)]};else{var v=Math.sqrt(m),w=(h*h-c*c+r*m)/(2*c*n*v),E=(h*h-c*c-r*m)/(2*h*n*v),S=Math.log(Math.sqrt(w*w+1)-w),M=Math.log(Math.sqrt(E*E+1)-E);b=(M-S)/t,x=function(N){var T=N*b,O=i0(S),F=c/(n*v)*(O*XT(t*T+S)-KT(S));return[s+F*g,l+F*p,c*O/i0(t*T+S)]}}return x.duration=b*1e3*t/Math.SQRT2,x}return o.rho=function(a){var i=Math.max(.001,+a),s=i*i,l=s*s;return e(i,s,l)},o}(Math.SQRT2,2,4);function s0(e){return function(t,n){var r=e((t=Wl(t)).h,(n=Wl(n)).h),o=Ge(t.s,n.s),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const l0=s0(Ci);var c0=s0(Ge);function u0(e,t){var n=Ge((e=Hl(e)).l,(t=Hl(t)).l),r=Ge(e.a,t.a),o=Ge(e.b,t.b),a=Ge(e.opacity,t.opacity);return function(i){return e.l=n(i),e.a=r(i),e.b=o(i),e.opacity=a(i),e+""}}function d0(e){return function(t,n){var r=e((t=Kl(t)).h,(n=Kl(n)).h),o=Ge(t.c,n.c),a=Ge(t.l,n.l),i=Ge(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=o(s),t.l=a(s),t.opacity=i(s),t+""}}}const f0=d0(Ci);var h0=d0(Ge);function p0(e){return function t(n){n=+n;function r(o,a){var i=e((o=Ql(o)).h,(a=Ql(a)).h),s=Ge(o.s,a.s),l=Ge(o.l,a.l),c=Ge(o.opacity,a.opacity);return function(f){return o.h=i(f),o.s=s(f),o.l=l(Math.pow(f,n)),o.opacity=c(f),o+""}}return r.gamma=t,r}(1)}const m0=p0(Ci);var g0=p0(Ge);function v0(e,t){t===void 0&&(t=e,e=Jn);for(var n=0,r=t.length-1,o=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(o,o=t[++n]);return function(i){var s=Math.max(0,Math.min(r-1,Math.floor(i*=r)));return a[s](i-s)}}function QT(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function JT(e){return function(){return e}}function Mi(e){return+e}var b0=[0,1];function tt(e){return e}function nc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:JT(isNaN(t)?NaN:.5)}function RT(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function eM(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=nc(o,r),a=n(i,a)):(r=nc(r,o),a=n(a,i)),function(s){return a(r(s))}}function tM(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=nc(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(s){var l=Ir(e,s,1,r)-1;return a[l](o[l](s))}}function _o(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pi(){var e=b0,t=b0,n=Jn,r,o,a,i=tt,s,l,c;function f(){var h=Math.min(e.length,t.length);return i!==tt&&(i=RT(e[0],e[h-1])),s=h>2?tM:eM,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(i(h)))}return d.invert=function(h){return i(o((c||(c=s(t,e.map(r),Nt)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Mi),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=No,f()},d.clamp=function(h){return arguments.length?(i=h?!0:tt,f()):i!==tt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,g){return r=h,o=g,f()}}function rc(){return Pi()(tt,tt)}function nM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ki(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Wr(e){return e=ki(Math.abs(e)),e?e[1]:NaN}function rM(e,t){return function(n,r){for(var o=n.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[i=(i+1)%e.length];return a.reverse().join(t)}}function oM(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Do(e){if(!(t=aM.exec(e)))throw new Error("invalid format: "+e);var t;return new oc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Do.prototype=oc.prototype;function oc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}oc.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 iM(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var y0;function sM(e,t){var n=ki(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(y0=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ki(e,Math.max(0,t+a-1))[0]}function w0(e,t){var n=ki(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const x0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:nM,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>w0(e*100,t),r:w0,s:sM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $0(e){return e}var S0=Array.prototype.map,C0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lM(e){var t=e.grouping===void 0||e.thousands===void 0?$0:rM(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?$0:oM(S0.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Do(d);var h=d.fill,g=d.align,p=d.sign,m=d.symbol,x=d.zero,b=d.width,v=d.comma,w=d.precision,E=d.trim,S=d.type;S==="n"?(v=!0,S="g"):x0[S]||(w===void 0&&(w=12),E=!0,S="g"),(x||h==="0"&&g==="=")&&(x=!0,h="0",g="=");var M=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",N=m==="$"?r:/[%p]/.test(S)?i:"",T=x0[S],O=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function F(j){var H=M,G=N,L,C,_;if(S==="c")G=T(j)+G,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?l:T(Math.abs(j),w),E&&(j=iM(j)),B&&+j==0&&p!=="+"&&(B=!1),H=(B?p==="("?p:s:p==="-"||p==="("?"":p)+H,G=(S==="s"?C0[8+y0/3]:"")+G+(B&&p==="("?")":""),O){for(L=-1,C=j.length;++L<C;)if(_=j.charCodeAt(L),48>_||_>57){G=(_===46?o+j.slice(L+1):j.slice(L))+G,j=j.slice(0,L);break}}}v&&!x&&(j=t(j,1/0));var V=H.length+j.length+G.length,D=V<b?new Array(b-V+1).join(h):"";switch(v&&x&&(j=t(D+j,D.length?b-G.length:1/0),D=""),g){case"<":j=H+j+G+D;break;case"=":j=H+D+j+G;break;case"^":j=D.slice(0,V=D.length>>1)+H+j+G+D.slice(V);break;default:j=D+H+j+G;break}return a(j)}return F.toString=function(){return d+""},F}function f(d,h){var g=c((d=Do(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(Wr(h)/3)))*3,m=Math.pow(10,-p),x=C0[8+p/3];return function(b){return g(m*b)+x}}return{format:c,formatPrefix:f}}var Oi,Ni,E0;cM({thousands:",",grouping:[3],currency:["$",""]});function cM(e){return Oi=lM(e),Ni=Oi.format,E0=Oi.formatPrefix,Oi}function uM(e){return Math.max(0,-Wr(Math.abs(e)))}function dM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wr(t)/3)))*3-Wr(Math.abs(e)))}function fM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Wr(t)-Wr(e))+1}function T0(e,t,n,r){var o=Fl(e,t,n),a;switch(r=Do(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=dM(o,i))&&(r.precision=a),E0(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=fM(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=uM(o))&&(r.precision=a-(r.type==="%")*2);break}}return Ni(r)}function Tn(e){var t=e.domain;return e.ticks=function(n){var r=t();return pi(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return T0(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,i=r[o],s=r[a],l,c,f=10;for(s<i&&(c=i,i=s,s=c,c=o,o=a,a=c);f-- >0;){if(c=Lr(i,s,n),c===l)return r[o]=i,r[a]=s,t(r);if(c>0)i=Math.floor(i/c)*c,s=Math.ceil(s/c)*c;else if(c<0)i=Math.ceil(i*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ac(){var e=rc();return e.copy=function(){return _o(e,ac())},$t.apply(e,arguments),Tn(e)}function M0(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Mi),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return M0(e).unknown(t)},e=arguments.length?Array.from(e,Mi):[0,1],Tn(n)}function P0(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],i;return a<o&&(i=n,n=r,r=i,i=o,o=a,a=i),e[n]=t.floor(o),e[r]=t.ceil(a),e}function k0(e){return Math.log(e)}function O0(e){return Math.exp(e)}function hM(e){return-Math.log(-e)}function pM(e){return-Math.exp(-e)}function mM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gM(e){return e===10?mM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function vM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function N0(e){return(t,n)=>-e(-t,n)}function ic(e){const t=e(k0,O0),n=t.domain;let r=10,o,a;function i(){return o=vM(r),a=gM(r),n()[0]<0?(o=N0(o),a=N0(a),e(hM,pM)):e(k0,O0),t}return t.base=function(s){return arguments.length?(r=+s,i()):r},t.domain=function(s){return arguments.length?(n(s),i()):n()},t.ticks=s=>{const l=n();let c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let h=o(c),g=o(f),p,m;const x=s==null?10:+s;let b=[];if(!(r%1)&&g-h<x){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(p=1;p<r;++p)if(m=h<0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;b.push(m)}}else for(;h<=g;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/a(-h):p*a(h),!(m<c)){if(m>f)break;b.push(m)}b.length*2<x&&(b=pi(c,f,x))}else b=pi(h,g,Math.min(g-h,x)).map(a);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Do(l)).precision==null&&(l.trim=!0),l=Ni(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(o(f)));return d*r<r-.5&&(d*=r),d<=c?l(f):""}},t.nice=()=>n(P0(n(),{floor:s=>a(Math.floor(o(s))),ceil:s=>a(Math.ceil(o(s)))})),t}function sc(){const e=ic(Pi()).domain([1,10]);return e.copy=()=>_o(e,sc()).base(e.base()),$t.apply(e,arguments),e}function _0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function D0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function lc(e){var t=1,n=e(_0(t),D0(t));return n.constant=function(r){return arguments.length?e(_0(t=+r),D0(t)):t},Tn(n)}function cc(){var e=lc(Pi());return e.copy=function(){return _o(e,cc()).constant(e.constant())},$t.apply(e,arguments)}function A0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yM(e){return e<0?-e*e:e*e}function uc(e){var t=e(tt,tt),n=1;function r(){return n===1?e(tt,tt):n===.5?e(bM,yM):e(A0(n),A0(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Tn(t)}function _i(){var e=uc(Pi());return e.copy=function(){return _o(e,_i()).exponent(e.exponent())},$t.apply(e,arguments),e}function I0(){return _i.apply(null,arguments).exponent(.5)}function L0(e){return Math.sign(e)*e*e}function wM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function dc(){var e=rc(),t=[0,1],n=!1,r;function o(a){var i=wM(e(a));return isNaN(i)?r:n?Math.round(i):i}return o.invert=function(a){return e.invert(L0(a))},o.domain=function(a){return arguments.length?(e.domain(a),o):e.domain()},o.range=function(a){return arguments.length?(e.range((t=Array.from(a,Mi)).map(L0)),o):t.slice()},o.rangeRound=function(a){return o.range(a).round(!0)},o.round=function(a){return arguments.length?(n=!!a,o):n},o.clamp=function(a){return arguments.length?(e.clamp(a),o):e.clamp()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return dc(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$t.apply(o,arguments),Tn(o)}function fc(){var e=[],t=[],n=[],r;function o(){var i=0,s=Math.max(1,t.length);for(n=new Array(s-1);++i<s;)n[i-1]=yT(e,i/s);return a}function a(i){return i==null||isNaN(i=+i)?r:t[Ir(n,i)]}return a.invertExtent=function(i){var s=t.indexOf(i);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Cn),o()},a.range=function(i){return arguments.length?(t=Array.from(i),o()):t.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return fc().domain(e).range(t).unknown(r)},$t.apply(a,arguments)}function hc(){var e=0,t=1,n=1,r=[.5],o=[0,1],a;function i(l){return l!=null&&l<=l?o[Ir(r,l,0,n)]:a}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return i}return i.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},i.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},i.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},i.unknown=function(l){return arguments.length&&(a=l),i},i.thresholds=function(){return r.slice()},i.copy=function(){return hc().domain([e,t]).range(o).unknown(a)},$t.apply(Tn(i),arguments)}function pc(){var e=[.5],t=[0,1],n,r=1;function o(a){return a!=null&&a<=a?t[Ir(e,a,0,r)]:n}return o.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(a){var i=t.indexOf(a);return[e[i-1],e[i]]},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return pc().domain(e).range(t).unknown(n)},$t.apply(o,arguments)}const mc=new Date,gc=new Date;function We(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),s=o.ceil(a);return a-i<s-a?i:s},o.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,s)=>{const l=[];if(a=o.ceil(a),s=s==null?1:Math.floor(s),!(a<i)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<i);return l},o.filter=a=>We(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),n&&(o.count=(a,i)=>(mc.setTime(+a),gc.setTime(+i),e(mc),e(gc),Math.floor(n(mc,gc))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?i=>r(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const Vr=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vr.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Vr);const F0=Vr.range,an=1e3,St=an*60,sn=St*60,ln=sn*24,vc=ln*7,j0=ln*30,bc=ln*365,_t=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*an)},(e,t)=>(t-e)/an,e=>e.getUTCSeconds()),z0=_t.range,Ao=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getMinutes()),xM=Ao.range,Io=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCMinutes()),$M=Io.range,Lo=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*an-e.getMinutes()*St)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getHours()),SM=Lo.range,Fo=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sn)},(e,t)=>(t-e)/sn,e=>e.getUTCHours()),CM=Fo.range,Rn=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*St)/ln,e=>e.getDate()-1),EM=Rn.range,Hr=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>e.getUTCDate()-1),TM=Hr.range,yc=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ln,e=>Math.floor(e/ln)),MM=yc.range;function er(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*St)/vc)}const tr=er(0),jo=er(1),B0=er(2),W0=er(3),nr=er(4),V0=er(5),H0=er(6),G0=tr.range,PM=jo.range,kM=B0.range,OM=W0.range,NM=nr.range,_M=V0.range,DM=H0.range;function rr(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vc)}const or=rr(0),zo=rr(1),U0=rr(2),Y0=rr(3),ar=rr(4),q0=rr(5),K0=rr(6),X0=or.range,AM=zo.range,IM=U0.range,LM=Y0.range,FM=ar.range,jM=q0.range,zM=K0.range,Bo=We(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),BM=Bo.range,Wo=We(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),WM=Wo.range,Dt=We(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const VM=Dt.range,At=We(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const HM=At.range;function Z0(e,t,n,r,o,a){const i=[[_t,1,an],[_t,5,5*an],[_t,15,15*an],[_t,30,30*an],[a,1,St],[a,5,5*St],[a,15,15*St],[a,30,30*St],[o,1,sn],[o,3,3*sn],[o,6,6*sn],[o,12,12*sn],[r,1,ln],[r,2,2*ln],[n,1,vc],[t,1,j0],[t,3,3*j0],[e,1,bc]];function s(c,f,d){const h=f<c;h&&([c,f]=[f,c]);const g=d&&typeof d.range=="function"?d:l(c,f,d),p=g?g.range(c,+f+1):[];return h?p.reverse():p}function l(c,f,d){const h=Math.abs(f-c)/d,g=Il(([,,x])=>x).right(i,h);if(g===i.length)return e.every(Fl(c/bc,f/bc,d));if(g===0)return Vr.every(Math.max(Fl(c,f,d),1));const[p,m]=i[h/i[g-1][2]<i[g][2]/h?g-1:g];return p.every(m)}return[s,l]}const[Q0,J0]=Z0(At,Wo,or,yc,Fo,Io),[R0,eg]=Z0(Dt,Bo,tr,Rn,Lo,Ao);function wc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function xc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Vo(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function GM(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Ho(o),f=Go(o),d=Ho(a),h=Go(a),g=Ho(i),p=Go(i),m=Ho(s),x=Go(s),b=Ho(l),v=Go(l),w={a:B,A:V,b:D,B:A,c:null,d:ig,e:ig,f:h7,g:S7,G:E7,H:u7,I:d7,j:f7,L:sg,m:p7,M:m7,p:W,q:ne,Q:hg,s:pg,S:g7,u:v7,U:b7,V:y7,w:w7,W:x7,x:null,X:null,y:$7,Y:C7,Z:T7,"%":fg},E={a:Q,A:re,b:oe,B:ue,c:null,d:cg,e:cg,f:O7,g:B7,G:V7,H:M7,I:P7,j:k7,L:ug,m:N7,M:_7,p:X,q:le,Q:hg,s:pg,S:D7,u:A7,U:I7,V:L7,w:F7,W:j7,x:null,X:null,y:z7,Y:W7,Z:H7,"%":fg},S={a:F,A:j,b:H,B:G,c:L,d:og,e:og,f:i7,g:rg,G:ng,H:ag,I:ag,j:n7,L:a7,m:t7,M:r7,p:O,q:e7,Q:l7,s:c7,S:o7,u:XM,U:ZM,V:QM,w:KM,W:JM,x:C,X:_,y:rg,Y:ng,Z:RM,"%":s7};w.x=M(n,w),w.X=M(r,w),w.c=M(t,w),E.x=M(n,E),E.X=M(r,E),E.c=M(t,E);function M(U,Z){return function(ie){var k=[],te=-1,ae=0,me=U.length,ye,Ee,Ke;for(ie instanceof Date||(ie=new Date(+ie));++te<me;)U.charCodeAt(te)===37&&(k.push(U.slice(ae,te)),(Ee=tg[ye=U.charAt(++te)])!=null?ye=U.charAt(++te):Ee=ye==="e"?" ":"0",(Ke=Z[ye])&&(ye=Ke(ie,Ee)),k.push(ye),ae=te+1);return k.push(U.slice(ae,te)),k.join("")}}function N(U,Z){return function(ie){var k=Vo(1900,void 0,1),te=T(k,U,ie+="",0),ae,me;if(te!=ie.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(Z&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(ae=xc(Vo(k.y,0,1)),me=ae.getUTCDay(),ae=me>4||me===0?zo.ceil(ae):zo(ae),ae=Hr.offset(ae,(k.V-1)*7),k.y=ae.getUTCFullYear(),k.m=ae.getUTCMonth(),k.d=ae.getUTCDate()+(k.w+6)%7):(ae=wc(Vo(k.y,0,1)),me=ae.getDay(),ae=me>4||me===0?jo.ceil(ae):jo(ae),ae=Rn.offset(ae,(k.V-1)*7),k.y=ae.getFullYear(),k.m=ae.getMonth(),k.d=ae.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),me="Z"in k?xc(Vo(k.y,0,1)).getUTCDay():wc(Vo(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(me+5)%7:k.w+k.U*7-(me+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,xc(k)):wc(k)}}function T(U,Z,ie,k){for(var te=0,ae=Z.length,me=ie.length,ye,Ee;te<ae;){if(k>=me)return-1;if(ye=Z.charCodeAt(te++),ye===37){if(ye=Z.charAt(te++),Ee=S[ye in tg?Z.charAt(te++):ye],!Ee||(k=Ee(U,ie,k))<0)return-1}else if(ye!=ie.charCodeAt(k++))return-1}return k}function O(U,Z,ie){var k=c.exec(Z.slice(ie));return k?(U.p=f.get(k[0].toLowerCase()),ie+k[0].length):-1}function F(U,Z,ie){var k=g.exec(Z.slice(ie));return k?(U.w=p.get(k[0].toLowerCase()),ie+k[0].length):-1}function j(U,Z,ie){var k=d.exec(Z.slice(ie));return k?(U.w=h.get(k[0].toLowerCase()),ie+k[0].length):-1}function H(U,Z,ie){var k=b.exec(Z.slice(ie));return k?(U.m=v.get(k[0].toLowerCase()),ie+k[0].length):-1}function G(U,Z,ie){var k=m.exec(Z.slice(ie));return k?(U.m=x.get(k[0].toLowerCase()),ie+k[0].length):-1}function L(U,Z,ie){return T(U,t,Z,ie)}function C(U,Z,ie){return T(U,n,Z,ie)}function _(U,Z,ie){return T(U,r,Z,ie)}function B(U){return i[U.getDay()]}function V(U){return a[U.getDay()]}function D(U){return l[U.getMonth()]}function A(U){return s[U.getMonth()]}function W(U){return o[+(U.getHours()>=12)]}function ne(U){return 1+~~(U.getMonth()/3)}function Q(U){return i[U.getUTCDay()]}function re(U){return a[U.getUTCDay()]}function oe(U){return l[U.getUTCMonth()]}function ue(U){return s[U.getUTCMonth()]}function X(U){return o[+(U.getUTCHours()>=12)]}function le(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Z=M(U+="",w);return Z.toString=function(){return U},Z},parse:function(U){var Z=N(U+="",!1);return Z.toString=function(){return U},Z},utcFormat:function(U){var Z=M(U+="",E);return Z.toString=function(){return U},Z},utcParse:function(U){var Z=N(U+="",!0);return Z.toString=function(){return U},Z}}}var tg={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,UM=/^%/,YM=/[\\^$*+?|[\]().{}]/g;function Me(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function qM(e){return e.replace(YM,"\\$&")}function Ho(e){return new RegExp("^(?:"+e.map(qM).join("|")+")","i")}function Go(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function KM(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function XM(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function QM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function JM(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ng(e,t,n){var r=Ue.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rg(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function e7(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function t7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function og(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function n7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ag(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function r7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function o7(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function a7(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function i7(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function s7(e,t,n){var r=UM.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function l7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function c7(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ig(e,t){return Me(e.getDate(),t,2)}function u7(e,t){return Me(e.getHours(),t,2)}function d7(e,t){return Me(e.getHours()%12||12,t,2)}function f7(e,t){return Me(1+Rn.count(Dt(e),e),t,3)}function sg(e,t){return Me(e.getMilliseconds(),t,3)}function h7(e,t){return sg(e,t)+"000"}function p7(e,t){return Me(e.getMonth()+1,t,2)}function m7(e,t){return Me(e.getMinutes(),t,2)}function g7(e,t){return Me(e.getSeconds(),t,2)}function v7(e){var t=e.getDay();return t===0?7:t}function b7(e,t){return Me(tr.count(Dt(e)-1,e),t,2)}function lg(e){var t=e.getDay();return t>=4||t===0?nr(e):nr.ceil(e)}function y7(e,t){return e=lg(e),Me(nr.count(Dt(e),e)+(Dt(e).getDay()===4),t,2)}function w7(e){return e.getDay()}function x7(e,t){return Me(jo.count(Dt(e)-1,e),t,2)}function $7(e,t){return Me(e.getFullYear()%100,t,2)}function S7(e,t){return e=lg(e),Me(e.getFullYear()%100,t,2)}function C7(e,t){return Me(e.getFullYear()%1e4,t,4)}function E7(e,t){var n=e.getDay();return e=n>=4||n===0?nr(e):nr.ceil(e),Me(e.getFullYear()%1e4,t,4)}function T7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Me(t/60|0,"0",2)+Me(t%60,"0",2)}function cg(e,t){return Me(e.getUTCDate(),t,2)}function M7(e,t){return Me(e.getUTCHours(),t,2)}function P7(e,t){return Me(e.getUTCHours()%12||12,t,2)}function k7(e,t){return Me(1+Hr.count(At(e),e),t,3)}function ug(e,t){return Me(e.getUTCMilliseconds(),t,3)}function O7(e,t){return ug(e,t)+"000"}function N7(e,t){return Me(e.getUTCMonth()+1,t,2)}function _7(e,t){return Me(e.getUTCMinutes(),t,2)}function D7(e,t){return Me(e.getUTCSeconds(),t,2)}function A7(e){var t=e.getUTCDay();return t===0?7:t}function I7(e,t){return Me(or.count(At(e)-1,e),t,2)}function dg(e){var t=e.getUTCDay();return t>=4||t===0?ar(e):ar.ceil(e)}function L7(e,t){return e=dg(e),Me(ar.count(At(e),e)+(At(e).getUTCDay()===4),t,2)}function F7(e){return e.getUTCDay()}function j7(e,t){return Me(zo.count(At(e)-1,e),t,2)}function z7(e,t){return Me(e.getUTCFullYear()%100,t,2)}function B7(e,t){return e=dg(e),Me(e.getUTCFullYear()%100,t,2)}function W7(e,t){return Me(e.getUTCFullYear()%1e4,t,4)}function V7(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ar(e):ar.ceil(e),Me(e.getUTCFullYear()%1e4,t,4)}function H7(){return"+0000"}function fg(){return"%"}function hg(e){return+e}function pg(e){return Math.floor(+e/1e3)}var Gr,mg,gg;G7({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 G7(e){return Gr=GM(e),mg=Gr.format,Gr.parse,gg=Gr.utcFormat,Gr.utcParse,Gr}function U7(e){return new Date(e)}function Y7(e){return e instanceof Date?+e:+new Date(+e)}function $c(e,t,n,r,o,a,i,s,l,c){var f=rc(),d=f.invert,h=f.domain,g=c(".%L"),p=c(":%S"),m=c("%I:%M"),x=c("%I %p"),b=c("%a %d"),v=c("%b %d"),w=c("%B"),E=c("%Y");function S(M){return(l(M)<M?g:s(M)<M?p:i(M)<M?m:a(M)<M?x:r(M)<M?o(M)<M?b:v:n(M)<M?w:E)(M)}return f.invert=function(M){return new Date(d(M))},f.domain=function(M){return arguments.length?h(Array.from(M,Y7)):h().map(U7)},f.ticks=function(M){var N=h();return e(N[0],N[N.length-1],M??10)},f.tickFormat=function(M,N){return N==null?S:c(N)},f.nice=function(M){var N=h();return(!M||typeof M.range!="function")&&(M=t(N[0],N[N.length-1],M??10)),M?h(P0(N,M)):f},f.copy=function(){return _o(f,$c(e,t,n,r,o,a,i,s,l,c))},f}function vg(){return $t.apply($c(R0,eg,Dt,Bo,tr,Rn,Lo,Ao,_t,mg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bg(){return $t.apply($c(Q0,J0,At,Wo,or,Hr,Fo,Io,_t,gg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var e=0,t=1,n,r,o,a,i=tt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:i(o===0?.5:(d=(a(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(i=d,c):i};function f(d){return function(h){var g,p;return arguments.length?([g,p]=h,i=d(g,p),c):[i(0),i(1)]}}return c.range=f(Jn),c.rangeRound=f(No),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return a=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function Mn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yg(){var e=Tn(Di()(tt));return e.copy=function(){return Mn(e,yg())},rn.apply(e,arguments)}function wg(){var e=ic(Di()).domain([1,10]);return e.copy=function(){return Mn(e,wg()).base(e.base())},rn.apply(e,arguments)}function xg(){var e=lc(Di());return e.copy=function(){return Mn(e,xg()).constant(e.constant())},rn.apply(e,arguments)}function Sc(){var e=uc(Di());return e.copy=function(){return Mn(e,Sc()).exponent(e.exponent())},rn.apply(e,arguments)}function q7(){return Sc.apply(null,arguments).exponent(.5)}function $g(){var e=[],t=tt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ir(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Cn),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,a)=>bT(e,a/r))},n.copy=function(){return $g(t).domain(e)},rn.apply(n,arguments)}function Ai(){var e=0,t=.5,n=1,r=1,o,a,i,s,l,c=tt,f,d=!1,h;function g(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-a)*(r*m<r*a?s:l),c(d?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t,n]=m,o=f(e=+e),a=f(t=+t),i=f(n=+n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g):[e,t,n]},g.clamp=function(m){return arguments.length?(d=!!m,g):d},g.interpolator=function(m){return arguments.length?(c=m,g):c};function p(m){return function(x){var b,v,w;return arguments.length?([b,v,w]=x,c=v0(m,[b,v,w]),g):[c(0),c(.5),c(1)]}}return g.range=p(Jn),g.rangeRound=p(No),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return f=m,o=m(e),a=m(t),i=m(n),s=o===a?0:.5/(a-o),l=a===i?0:.5/(i-a),r=a<o?-1:1,g}}function Sg(){var e=Tn(Ai()(tt));return e.copy=function(){return Mn(e,Sg())},rn.apply(e,arguments)}function Cg(){var e=ic(Ai()).domain([.1,1,10]);return e.copy=function(){return Mn(e,Cg()).base(e.base())},rn.apply(e,arguments)}function Eg(){var e=lc(Ai());return e.copy=function(){return Mn(e,Eg()).constant(e.constant())},rn.apply(e,arguments)}function Cc(){var e=uc(Ai());return e.copy=function(){return Mn(e,Cc()).exponent(e.exponent())},rn.apply(e,arguments)}function K7(){return Cc.apply(null,arguments).exponent(.5)}const X7=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gi,scaleDiverging:Sg,scaleDivergingLog:Cg,scaleDivergingPow:Cc,scaleDivergingSqrt:K7,scaleDivergingSymlog:Eg,scaleIdentity:M0,scaleImplicit:zl,scaleLinear:ac,scaleLog:sc,scaleOrdinal:mi,scalePoint:Cm,scalePow:_i,scaleQuantile:fc,scaleQuantize:hc,scaleRadial:dc,scaleSequential:yg,scaleSequentialLog:wg,scaleSequentialPow:Sc,scaleSequentialQuantile:$g,scaleSequentialSqrt:q7,scaleSequentialSymlog:xg,scaleSqrt:I0,scaleSymlog:cc,scaleThreshold:pc,scaleTime:vg,scaleUtc:bg,tickFormat:T0},Symbol.toStringTag,{value:"Module"}));function Z7(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function Q7(e,t){t.range&&("padding"in e,e.range(t.range))}function J7(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function R7(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function eP(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function tP(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function nP(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}const rP=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Jn,interpolateArray:jT,interpolateBasis:Km,interpolateBasisClosed:Xm,interpolateCubehelix:m0,interpolateCubehelixLong:g0,interpolateDate:e0,interpolateDiscrete:WT,interpolateHcl:f0,interpolateHclLong:h0,interpolateHsl:l0,interpolateHslLong:c0,interpolateHue:VT,interpolateLab:u0,interpolateNumber:Nt,interpolateNumberArray:Jl,interpolateObject:t0,interpolateRgb:Ei,interpolateRgbBasis:LT,interpolateRgbBasisClosed:FT,interpolateRound:No,interpolateString:n0,interpolateTransformCss:UT,interpolateTransformSvg:YT,interpolateZoom:ZT,piecewise:v0,quantize:QT},Symbol.toStringTag,{value:"Module"}));var Tg={lab:u0,hcl:f0,"hcl-long":h0,hsl:l0,"hsl-long":c0,cubehelix:m0,"cubehelix-long":g0,rgb:Ei};function oP(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Tg[e]}var t=e.type,n=e.gamma,r=Tg[t];return typeof n>"u"?r:r.gamma(n)}function aP(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=oP(t.interpolate);e.interpolate(n)}}const iP=Object.freeze(Object.defineProperty({__proto__:null,timeDay:Rn,timeDays:EM,timeFriday:V0,timeFridays:_M,timeHour:Lo,timeHours:SM,timeInterval:We,timeMillisecond:Vr,timeMilliseconds:F0,timeMinute:Ao,timeMinutes:xM,timeMonday:jo,timeMondays:PM,timeMonth:Bo,timeMonths:BM,timeSaturday:H0,timeSaturdays:DM,timeSecond:_t,timeSeconds:z0,timeSunday:tr,timeSundays:G0,timeThursday:nr,timeThursdays:NM,timeTickInterval:eg,timeTicks:R0,timeTuesday:B0,timeTuesdays:kM,timeWednesday:W0,timeWednesdays:OM,timeWeek:tr,timeWeeks:G0,timeYear:Dt,timeYears:VM,unixDay:yc,unixDays:MM,utcDay:Hr,utcDays:TM,utcFriday:q0,utcFridays:jM,utcHour:Fo,utcHours:CM,utcMillisecond:Vr,utcMilliseconds:F0,utcMinute:Io,utcMinutes:$M,utcMonday:zo,utcMondays:AM,utcMonth:Wo,utcMonths:WM,utcSaturday:K0,utcSaturdays:zM,utcSecond:_t,utcSeconds:z0,utcSunday:or,utcSundays:X0,utcThursday:ar,utcThursdays:FM,utcTickInterval:J0,utcTicks:Q0,utcTuesday:U0,utcTuesdays:IM,utcWednesday:Y0,utcWednesdays:LM,utcWeek:or,utcWeeks:X0,utcYear:At,utcYears:HM},Symbol.toStringTag,{value:"Module"}));var sP=new Date(Date.UTC(2020,1,2,3,4,5)),lP="%Y-%m-%d %H:%M";function Mg(e){var t=e.tickFormat(1,lP)(sP);return t==="2020-02-02 03:04"}var Pg={day:Rn,hour:Lo,minute:Ao,month:Bo,second:_t,week:tr,year:Dt},kg={day:Hr,hour:Fo,minute:Io,month:Wo,second:_t,week:or,year:At};function cP(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=Mg(r);if(typeof n=="string")r.nice(o?kg[n]:Pg[n]);else{var a=n.interval,i=n.step,s=(o?kg[a]:Pg[a]).every(i);s!=null&&r.nice(s)}}}}function uP(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function dP(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function fP(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(No))}function hP(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function pP(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}var Og=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],mP={domain:Z7,nice:cP,zero:pP,interpolate:aP,round:fP,align:J7,base:R7,clamp:eP,constant:tP,exponent:nP,padding:uP,range:Q7,reverse:dP,unknown:hP};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Og.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){mP[l](i,s)}),i}}var gP=nt("domain","range","reverse","align","padding","round");function Ng(e){return gP(gi(),e)}var vP=nt("domain","range","reverse","align","padding","round");function _g(e){return vP(Cm(),e)}var bP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Uo(e){return bP(ac(),e)}var yP=nt("domain","range","clamp","nice","round","unknown");function wP(e){return yP(dc(),e)}var xP=nt("domain","range","reverse","clamp","interpolate","nice","round");function Dg(e){return xP(vg(),e)}var $P=nt("domain","range","reverse","clamp","interpolate","nice","round");function Ag(e){return $P(bg(),e)}var SP=nt("domain","range","reverse","base","clamp","interpolate","nice","round");function Ig(e){return SP(sc(),e)}var CP=nt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Lg(e){return CP(_i(),e)}var EP=nt("domain","range","reverse","unknown");function Fg(e){return EP(mi(),e)}var TP=nt("domain","range","reverse","nice","zero");function jg(e){return TP(hc(),e)}var MP=nt("domain","range","reverse");function zg(e){return MP(fc(),e)}var PP=nt("domain","range","reverse","clamp","constant","nice","zero","round");function Bg(e){return PP(cc(),e)}var kP=nt("domain","range","reverse");function Wg(e){return kP(pc(),e)}var OP=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Vg(e){return OP(I0(),e)}function Yo(e){if(typeof e<"u"&&"type"in e)switch(e.type){case"linear":return Uo(e);case"log":return Ig(e);case"pow":return Lg(e);case"sqrt":return Vg(e);case"symlog":return Bg(e);case"time":return Dg(e);case"utc":return Ag(e);case"quantile":return zg(e);case"quantize":return jg(e);case"threshold":return Wg(e);case"ordinal":return Fg(e);case"point":return _g(e);case"band":return Ng(e)}return Uo(e)}var NP=nt.apply(void 0,Og);function _P(e,t){return NP(e.copy(),t)}function DP(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?Mg(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function Ec(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function Tc(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,o,a){return t==null||a.length<=t||o%Math.round((a.length-1)/t)===0})}function Hg(e){return e==null?void 0:e.toString()}var AP=new Set(["linear","pow","quantize","sqrt","symlog"]);function Mc(e){return AP.has(e.type)}const IP=Object.freeze(Object.defineProperty({__proto__:null,coerceNumber:Ec,createScale:Yo,getTicks:Tc,inferScaleType:DP,scaleBand:Ng,scaleCanBeZeroed:Mc,scaleLinear:Uo,scaleLog:Ig,scaleOrdinal:Fg,scalePoint:_g,scalePower:Lg,scaleQuantile:zg,scaleQuantize:jg,scaleRadial:wP,scaleSqrt:Vg,scaleSymlog:Bg,scaleThreshold:Wg,scaleTime:Dg,scaleUtc:Ag,toString:Hg,updateScale:_P},Symbol.toStringTag,{value:"Module"}));var LP=u.createContext({});const qt=LP;function Pc(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Ct(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const Gg=mr(E3),Ug=mr(IP);var kc=Math.PI,Oc=2*kc,ir=1e-6,FP=Oc-ir;function Nc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _c(){return new Nc}Nc.prototype=_c.prototype={constructor:Nc,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,f=i-t,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>ir)if(!(Math.abs(f*s-l*c)>ir)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-a,g=r-i,p=s*s+l*l,m=h*h+g*g,x=Math.sqrt(p),b=Math.sqrt(d),v=o*Math.tan((kc-Math.acos((p+d-m)/(2*x*b)))/2),w=v/b,E=v/x;Math.abs(w-1)>ir&&(this._+="L"+(e+w*c)+","+(t+w*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*g)+","+(this._x1=e+E*s)+","+(this._y1=t+E*l)}},arc:function(e,t,n,r,o,a){e=+e,t=+t,n=+n,a=!!a;var i=n*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,f=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>ir||Math.abs(this._y1-c)>ir)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Oc+Oc),d>FP?this._+="A"+n+","+n+",0,1,"+f+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c):d>ir&&(this._+="A"+n+","+n+",0,"+ +(d>=kc)+","+f+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Ur(e){return function(){return e}}function Yg(e){this._context=e}Yg.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jP(e){return new Yg(e)}function qg(e){return e[0]}function Kg(e){return e[1]}function zP(){var e=qg,t=Kg,n=Ur(!0),r=null,o=jP,a=null;function i(s){var l,c=s.length,f,d=!1,h;for(r==null&&(a=o(h=_c())),l=0;l<=c;++l)!(l<c&&n(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+t(f,l,s));if(h)return a=null,h+""||null}return i.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ur(+s),i):e},i.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ur(+s),i):t},i.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ur(!!s),i):n},i.curve=function(s){return arguments.length?(o=s,r!=null&&(a=o(r)),i):o},i.context=function(s){return arguments.length?(s==null?r=a=null:a=o(r=s),i):r},i}var BP=Array.prototype.slice;function WP(e){return e.source}function VP(e){return e.target}function HP(e){var t=WP,n=VP,r=qg,o=Kg,a=null;function i(){var s,l=BP.call(arguments),c=t.apply(this,l),f=n.apply(this,l);if(a||(a=s=_c()),e(a,+r.apply(this,(l[0]=c,l)),+o.apply(this,l),+r.apply(this,(l[0]=f,l)),+o.apply(this,l)),s)return a=null,s+""||null}return i.source=function(s){return arguments.length?(t=s,i):t},i.target=function(s){return arguments.length?(n=s,i):n},i.x=function(s){return arguments.length?(r=typeof s=="function"?s:Ur(+s),i):r},i.y=function(s){return arguments.length?(o=typeof s=="function"?s:Ur(+s),i):o},i.context=function(s){return arguments.length?(a=s??null,i):a},i}function GP(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function UP(){return HP(GP)}function Xg(e,t){e(t)}function YP(e){var t=e===void 0?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,i=zP();return n&&Xg(i.x,n),r&&Xg(i.y,r),o&&i.defined(o),a&&i.curve(a),i}var qP=["from","to","fill","className","innerRef"];function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function KP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Zg(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=KP(e,qP),f=n.x===o.x||n.y===o.y;return u.createElement("line",Dc({ref:l,className:ct("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var XP=["children","data","x","y","fill","className","curve","innerRef","defined"];function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function ZP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function QP(e){var t=e.children,n=e.data,r=n===void 0?[]:n,o=e.x,a=e.y,i=e.fill,s=i===void 0?"transparent":i,l=e.className,c=e.curve,f=e.innerRef,d=e.defined,h=d===void 0?function(){return!0}:d,g=ZP(e,XP),p=YP({x:o,y:a,defined:h,curve:c});return t?u.createElement(u.Fragment,null,t({path:p})):u.createElement("path",Ac({ref:f,className:ct("visx-linepath",l),d:p(r)||"",fill:s,strokeLinecap:"round"},g))}var JP=["className","innerRef"];function Ic(){return Ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic.apply(this,arguments)}function RP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function e4(e){var t=e.className,n=e.innerRef,r=RP(e,JP);return u.createElement("rect",Ic({ref:n,className:ct("visx-bar",t)},r))}var t4=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lc.apply(this,arguments)}function n4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function r4(e){var t=e.all,n=e.bottom,r=e.bottomLeft,o=e.bottomRight,a=e.height,i=e.left,s=e.radius,l=e.right,c=e.top,f=e.topLeft,d=e.topRight,h=e.width,g=e.x,p=e.y;d=t||c||l||d,o=t||n||l||o,r=t||n||i||r,f=t||c||i||f,s=Math.max(1,Math.min(s,Math.min(h,a)/2));var m=2*s,x=("M"+(g+s)+","+p+" h"+(h-m)+`
70
+ `+(d?"a"+s+","+s+" 0 0 1 "+s+","+s:"h"+s+"v"+s)+`
71
+ v`+(a-m)+`
72
+ `+(o?"a"+s+","+s+" 0 0 1 "+-s+","+s:"v"+s+"h"+-s)+`
73
+ h`+(m-h)+`
74
+ `+(r?"a"+s+","+s+" 0 0 1 "+-s+","+-s:"h"+-s+"v"+-s)+`
75
+ v`+(m-a)+`
76
+ `+(f?"a"+s+","+s+" 0 0 1 "+s+","+-s:"v"+-s+"h"+s)+`
77
77
  z`).split(`
78
- `).join("");return w}function R7(e){var t=e.children,n=e.className,r=e.innerRef,o=e.x,a=e.y,i=e.width,l=e.height,u=e.radius,s=e.all,d=s===void 0?!1:s,f=e.top,p=f===void 0?!1:f,m=e.bottom,h=m===void 0?!1:m,v=e.left,w=v===void 0?!1:v,g=e.right,y=g===void 0?!1:g,$=e.topLeft,S=$===void 0?!1:$,x=e.topRight,C=x===void 0?!1:x,E=e.bottomLeft,M=E===void 0?!1:E,T=e.bottomRight,j=T===void 0?!1:T,I=K7(e,Y7),B=X7({x:o,y:a,width:i,height:l,radius:u,all:d,top:p,bottom:h,left:w,right:y,topLeft:S,topRight:C,bottomLeft:M,bottomRight:j});return t?c.createElement(c.Fragment,null,t({path:B})):c.createElement("path",Yf({ref:r,className:ft("visx-bar-rounded",n),d:B},I))}function Z7(e){return typeof(e==null?void 0:e.x)=="number"?e==null?void 0:e.x:0}function Q7(e){return typeof(e==null?void 0:e.y)=="number"?e==null?void 0:e.y:0}function J7(e){return e==null?void 0:e.source}function e9(e){return e==null?void 0:e.target}var t9=["className","children","data","innerRef","path","x","y","source","target"];function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kf.apply(this,arguments)}function n9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function r9(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(a){var i=F7();return i.x(r),i.y(o),i.source(t),i.target(n),i(a)}}function o9(e){var t=e.className,n=e.children,r=e.data,o=e.innerRef,a=e.path,i=e.x,l=i===void 0?Q7:i,u=e.y,s=u===void 0?Z7:u,d=e.source,f=d===void 0?J7:d,p=e.target,m=p===void 0?e9:p,h=n9(e,t9),v=a||r9({source:f,target:m,x:l,y:s});return n?c.createElement(c.Fragment,null,n({path:v})):c.createElement("path",Kf({ref:o,className:ft("visx-link visx-link-horizontal-diagonal",t),d:v(r)||""},h))}var a9=["AxisComponent"];function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Al.apply(this,arguments)}function i9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function l9(e){var t,n,r,o,a,i,l,u=e.AxisComponent,s=i9(e,a9),d=c.useContext(rn),f=d.theme,p=d.xScale,m=d.yScale,h=d.margin,v=d.width,w=d.height,g=s.orientation,y=c.useMemo(function(){var M,T,j,I;return g==="left"||g==="right"?f==null||(M=f.axisStyles)==null||(T=M.y)==null?void 0:T[g]:f==null||(j=f.axisStyles)==null||(I=j.x)==null?void 0:I[g]},[f,g]),$=s.tickLabelProps,S=c.useMemo(function(){return $||y?function(M,T,j){return Al({},y==null?void 0:y.tickLabel,{width:g==="left"||g==="right"?h==null?void 0:h[g]:void 0},typeof $=="function"?$(M,T,j):$)}:void 0},[$,y,g,h]),x=g==="bottom"?(w??0)-((t=h==null?void 0:h.bottom)!=null?t:0):g==="top"&&(n=h==null?void 0:h.top)!=null?n:0,C=g==="left"?(r=h==null?void 0:h.left)!=null?r:0:g==="right"?(v??0)-((o=h==null?void 0:h.right)!=null?o:0):0,E=g==="left"||g==="right"?m:p;return E?c.createElement(u,Al({top:x,left:C,labelProps:y==null?void 0:y.axisLabel,stroke:y==null||(a=y.axisLine)==null?void 0:a.stroke,strokeWidth:y==null||(i=y.axisLine)==null?void 0:i.strokeWidth,tickLength:y==null?void 0:y.tickLength,tickStroke:y==null||(l=y.tickLine)==null?void 0:l.stroke},s,{tickLabelProps:S,scale:E})):null}var Il={};Il.__esModule=!0;var u9=Il.default=p9,s9=k1(c),c9=k1(Oi),f9=["from","to","fill","className","innerRef"];function k1(e){return e&&e.__esModule?e:{default:e}}function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xf.apply(this,arguments)}function d9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function p9(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,l=e.className,u=e.innerRef,s=d9(e,f9),d=n.x===o.x||n.y===o.y;return s9.default.createElement("line",Xf({ref:u,className:(0,c9.default)("visx-line",l),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:d?"crispEdges":"auto"},s))}var Ll={};Ll.__esModule=!0,Ll.default=h9;function h9(e){return"bandwidth"in e?e.bandwidth():0}var m9=L1,N1=xa(Si),D1=xa(c),v9=xa(Oi),g9=xa(Il),y9=P1,A1=eg,I1=S1,b9=xa(Ll),w9=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function xa(e){return e&&e.__esModule?e:{default:e}}function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function x9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function L1(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,l=e.stroke,u=l===void 0?"#eaf0f6":l,s=e.strokeWidth,d=s===void 0?1:s,f=e.strokeDasharray,p=e.className,m=e.children,h=e.numTicks,v=h===void 0?10:h,w=e.lineStyle,g=e.offset,y=e.tickValues,$=x9(e,w9),S=y??(0,I1.getTicks)(a,v),x=(g??0)+(0,b9.default)(a)/2,C=S.map(function(E,M){var T,j=((T=(0,I1.coerceNumber)(a(E)))!=null?T:0)+x;return{index:M,from:new A1.Point({x:0,y:j}),to:new A1.Point({x:i,y:j})}});return D1.default.createElement(y9.Group,{className:(0,v9.default)("visx-rows",p),top:n,left:o},m?m({lines:C}):C.map(function(E){var M=E.from,T=E.to,j=E.index;return D1.default.createElement(g9.default,Rf({key:"row-line-"+j,from:M,to:T,stroke:u,strokeWidth:d,strokeDasharray:f,style:w},$))}))}L1.propTypes={tickValues:N1.default.array,width:N1.default.number.isRequired};var $9=B1,F1=$a(Si),j1=$a(c),_9=$a(Oi),P9=$a(Il),S9=P1,W1=eg,z1=S1,O9=$a(Ll),M9=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function $a(e){return e&&e.__esModule?e:{default:e}}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(this,arguments)}function C9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function B1(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.height,l=e.stroke,u=l===void 0?"#eaf0f6":l,s=e.strokeWidth,d=s===void 0?1:s,f=e.strokeDasharray,p=e.className,m=e.numTicks,h=m===void 0?10:m,v=e.lineStyle,w=e.offset,g=e.tickValues,y=e.children,$=C9(e,M9),S=g??(0,z1.getTicks)(a,h),x=(w??0)+(0,O9.default)(a)/2,C=S.map(function(E,M){var T,j=((T=(0,z1.coerceNumber)(a(E)))!=null?T:0)+x;return{index:M,from:new W1.Point({x:j,y:0}),to:new W1.Point({x:j,y:i})}});return j1.default.createElement(S9.Group,{className:(0,_9.default)("visx-columns",p),top:n,left:o},y?y({lines:C}):C.map(function(E){var M=E.from,T=E.to,j=E.index;return j1.default.createElement(P9.default,Zf({key:"column-line-"+j,from:M,to:T,stroke:u,strokeWidth:d,strokeDasharray:f,style:v},$))}))}B1.propTypes={tickValues:F1.default.array,height:F1.default.number.isRequired};var E9=["rows","columns","GridRowsComponent","GridColumnsComponent"];function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fl.apply(this,arguments)}function T9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function q1(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,o=r===void 0?!0:r,a=e.GridRowsComponent,i=e.GridColumnsComponent,l=T9(e,E9),u=c.useContext(rn),s=u.theme,d=u.xScale,f=u.yScale,p=u.margin,m=u.innerWidth,h=u.innerHeight,v=s==null?void 0:s.gridStyles;return c.createElement(c.Fragment,null,n&&f&&m!=null&&c.createElement(a,Fl({left:p==null?void 0:p.left,lineStyle:v,width:m,scale:f},l)),o&&d&&h!=null&&c.createElement(i,Fl({top:p==null?void 0:p.top,lineStyle:v,height:h,scale:d},l)))}q1.propTypes={rows:ne.bool,columns:ne.bool};var k9={top:"top",left:"left",right:"right",bottom:"bottom"};const Yt=k9;function N9(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,o=e.range,a=e.tickLabelFontSize,i=e.tickLength,l=r===Yt.left||r===Yt.top?-1:1,u,s,d;if(r===Yt.top||r===Yt.bottom){var f=r===Yt.bottom&&typeof n.fontSize=="number"?n.fontSize:0;u=(Number(o[0])+Number(o[o.length-1]))/2,s=l*(i+t+a+f)}else u=l*((Number(o[0])+Number(o[o.length-1]))/2),s=-(i+t),d="rotate("+l*90+")";return{x:u,y:s,transform:d}}function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}function D9(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,a=e.tickComponent,i=e.tickLabelProps,l=e.tickStroke,u=l===void 0?"#222":l,s=e.tickTransform,d=e.ticks,f=e.strokeWidth,p=e.tickLineProps;return d.map(function(m){var h,v=m.value,w=m.index,g=m.from,y=m.to,$=m.formattedValue,S=(h=i[w])!=null?h:{},x=Math.max(10,typeof S.fontSize=="number"&&S.fontSize||0),C=y.y+(n&&r!==Yt.top?x:0);return c.createElement(Jn,{key:"visx-tick-"+v+"-"+w,className:ft("visx-axis-tick",o),transform:s},!t&&c.createElement(T1,_a({from:g,to:y,stroke:u,strokeWidth:f,strokeLinecap:"square"},p)),a?a(_a({},S,{x:y.x,y:C,formattedValue:$})):c.createElement(js,_a({x:y.x,y:C},S),$))})}function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jl.apply(this,arguments)}var H1={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function A9(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,a=e.hideTicks,i=e.horizontal,l=e.label,u=l===void 0?"":l,s=e.labelClassName,d=e.labelOffset,f=d===void 0?14:d,p=e.labelProps,m=p===void 0?H1:p,h=e.orientation,v=h===void 0?Yt.bottom:h,w=e.scale,g=e.stroke,y=g===void 0?"#222":g,$=e.strokeDasharray,S=e.strokeWidth,x=S===void 0?1:S,C=e.tickClassName,E=e.tickComponent,M=e.tickLineProps,T=e.tickLabelProps,j=e.tickLength,I=j===void 0?8:j,B=e.tickStroke,Y=B===void 0?"#222":B,q=e.tickTransform,P=e.ticks,L=e.ticksComponent,z=L===void 0?D9:L,H=jl({},H1,typeof T=="object"?T:null),N=P.map(function(W){var te=W.value,J=W.index;return typeof T=="function"?T(te,J,P):H}),D=Math.max.apply(Math,[10].concat(N.map(function(W){return typeof W.fontSize=="number"?W.fontSize:0})));return c.createElement(c.Fragment,null,z({hideTicks:a,horizontal:i,orientation:v,scale:w,tickClassName:C,tickComponent:E,tickLabelProps:N,tickStroke:Y,tickTransform:q,ticks:P,strokeWidth:x,tickLineProps:M}),!o&&c.createElement(T1,{className:ft("visx-axis-line",n),from:t,to:r,stroke:y,strokeWidth:x,strokeDasharray:$}),u&&c.createElement(js,jl({className:ft("visx-axis-label",s)},N9({labelOffset:f,labelProps:m,orientation:v,range:w.range(),tickLabelFontSize:D,tickLength:I}),m),u))}function I9(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(o){var a=n(o);return typeof a=="number"?a+r:a}}return e}function L9(e){var t=e;return"tickFormat"in t?t.tickFormat():_1}function Wl(e,t){var n=e.x,r=e.y;return new Ln(t?{x:n,y:r}:{x:r,y:n})}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(this,arguments)}var Jf=0;function F9(e){return e===void 0&&(e=Jf),typeof e=="number"?{start:e,end:e}:Qf({start:Jf,end:Jf},e)}var j9=["children","axisClassName","hideAxisLine","hideTicks","hideZero","innerRef","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ed.apply(this,arguments)}function W9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function td(e){var t=e.children,n=t===void 0?A9:t,r=e.axisClassName,o=e.hideAxisLine,a=o===void 0?!1:o,i=e.hideTicks,l=i===void 0?!1:i,u=e.hideZero,s=u===void 0?!1:u,d=e.innerRef,f=e.left,p=f===void 0?0:f,m=e.numTicks,h=m===void 0?10:m,v=e.orientation,w=v===void 0?Yt.bottom:v,g=e.rangePadding,y=g===void 0?0:g,$=e.scale,S=e.tickFormat,x=e.tickLength,C=x===void 0?8:x,E=e.tickValues,M=e.top,T=M===void 0?0:M,j=W9(e,j9),I=S??L9($),B=w===Yt.left,Y=w===Yt.top,q=Y||w===Yt.bottom,P=I9($),L=B||Y?-1:1,z=$.range(),H=F9(y),N=Wl({x:Number(z[0])+.5-H.start,y:0},q),D=Wl({x:Number(z[z.length-1])+.5+H.end,y:0},q),W=(E??Ff($,h)).filter(function(J){return!s||J!==0&&J!=="0"}).map(function(J,ae){return{value:J,index:ae}}),te=W.map(function(J){var ae=J.value,re=J.index,le=Lf(P(ae));return{value:ae,index:re,from:Wl({x:le,y:0},q),to:Wl({x:le,y:C*L},q),formattedValue:I(ae,re,W)}});return c.createElement(Jn,{className:ft("visx-axis",r),innerRef:d,top:T,left:p},n(ed({},j,{axisFromPoint:N,axisToPoint:D,hideAxisLine:a,hideTicks:l,hideZero:s,horizontal:q,numTicks:h,orientation:w,rangePadding:y,scale:$,tickFormat:I,tickLength:C,tickPosition:P,tickSign:L,ticks:te})))}function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nd.apply(this,arguments)}function U1(e){return c.createElement(l9,nd({AxisComponent:td},e))}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}function z9(e){return c.createElement(q1,rd({GridRowsComponent:m9,GridColumnsComponent:$9},e))}var B9=["tooltipOpen"];function q9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zl.apply(this,arguments)}function od(e){var t=c.useState(zl({tooltipOpen:!1},e)),n=t[0],r=t[1],o=c.useCallback(function(i){return r(typeof i=="function"?function(l){l.tooltipOpen;var u=q9(l,B9);return zl({},i(u),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:i.tooltipLeft,tooltipTop:i.tooltipTop,tooltipData:i.tooltipData})},[r]),a=c.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:a}}function H9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}var V1=function(e){H9(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?Cn.createPortal(this.props.children,this.node):null},t}(c.PureComponent);V1.propTypes={zIndex:ne.oneOfType([ne.number,ne.string])};var U9=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bl.apply(this,arguments)}function V9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var id={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},ld=c.forwardRef(function(e,t){var n=e.className,r=e.top,o=e.left,a=e.offsetLeft,i=a===void 0?10:a,l=e.offsetTop,u=l===void 0?10:l,s=e.style,d=s===void 0?id:s,f=e.children,p=e.unstyled,m=p===void 0?!1:p,h=e.applyPositionStyle,v=h===void 0?!1:h,w=V9(e,U9);return c.createElement("div",Bl({ref:t,className:ft("visx-tooltip",n),style:Bl({top:r==null||u==null?r:r+u,left:o==null||i==null?o:o+i},v&&{position:"absolute"},!m&&d)},w),f)});ld.propTypes={children:ne.node,className:ne.string,left:ne.number,offsetLeft:ne.number,offsetTop:ne.number,top:ne.number,applyPositionStyle:ne.bool,unstyled:ne.bool},ld.displayName="Tooltip";const G1=ld;function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ud.apply(this,arguments)}function G9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sd(e,t)}var Y1={top:0,right:0,bottom:0,left:0,width:0,height:0};function K9(e){var t;return t=function(n){Y9(r,n);function r(a){var i;return i=n.call(this,a)||this,i.state={rect:void 0,parentRect:void 0},i.nodeRef=c.createRef(),i.getRects=i.getRects.bind(G9(i)),i}var o=r.prototype;return o.componentDidMount=function(){var i,l=this;this.node=(i=this.nodeRef)!=null&&i.current?this.nodeRef.current:Cn.findDOMNode(this),this.setState(function(){return l.getRects()})},o.getRects=function(){if(!this.node)return this.state;var i=this.node,l=i.parentNode,u=i.getBoundingClientRect?i.getBoundingClientRect():Y1,s=l!=null&&l.getBoundingClientRect?l.getBoundingClientRect():Y1;return{rect:u,parentRect:s}},o.render=function(){return c.createElement(e,ud({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(c.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var K1=c.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),X9=K1.Provider;K1.Consumer;var R9=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ql.apply(this,arguments)}function Z9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function X1(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,o=e.offsetLeft,a=o===void 0?10:o,i=e.offsetTop,l=i===void 0?10:i,u=e.parentRect,s=e.rect,d=e.style,f=d===void 0?id:d,p=e.top,m=p===void 0?0:p,h=e.unstyled,v=h===void 0?!1:h,w=e.nodeRef,g=Z9(e,R9),y,$=!1,S=!1;if(s&&u){var x=r,C=m;if(u.width){var E=x+a+s.width-u.width,M=s.width-x-a;$=E>0&&E>M}else{var T=x+a+s.width-window.innerWidth,j=s.width-x-a;$=T>0&&T>j}if(u.height){var I=C+l+s.height-u.height,B=s.height-C-l;S=I>0&&I>B}else S=C+l+s.height>window.innerHeight;x=$?x-s.width-a:x+a,C=S?C-s.height-l:C+l,x=Math.round(x),C=Math.round(C),y="translate("+x+"px, "+C+"px)"}return c.createElement(G1,ql({ref:w,style:ql({left:0,top:0,transform:y},!v&&f)},g),c.createElement(X9,{value:{isFlippedVertically:!S,isFlippedHorizontally:!$}},t))}X1.propTypes={nodeRef:ne.oneOfType([ne.string,ne.func,ne.object])};const Q9=K9(X1);var J9=["detectBounds","zIndex"],eL=["left","top","detectBounds","zIndex"];function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cd.apply(this,arguments)}function R1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fd(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,o=t.zIndex,a=R1(t,J9),i=UT(a),l=i[0],u=i[1],s=i[2],d=c.useState(!1),f=d[0],p=d[1];c.useEffect(function(){p(!1)},[]);var m=c.useMemo(function(){return function(h){var v=h.left,w=v===void 0?0:v,g=h.top,y=g===void 0?0:g,$=h.detectBounds,S=h.zIndex,x=R1(h,eL),C=$??r,E=S??o,M=C?Q9:G1,T=f?0:window.scrollX,j=f?0:window.scrollY,I=w+(u.left||0)+T,B=y+(u.top||0)+j;return c.createElement(V1,{zIndex:E},c.createElement(M,cd({left:I,top:B},x)))}},[r,o,u.left,u.top,f]);return{containerRef:l,containerBounds:u,forceRefreshBounds:s,TooltipInPortal:m}}var tL=c.createContext(null);const Pa=tL;var nL=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],rL=["x","y"];function Z1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(this,arguments)}var dd={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},oL={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function Q1(e){var t=c.useContext(rn)||{},n=t.theme;return c.createElement("circle",$n({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}Q1.propTypes={isNearestDatum:ne.bool.isRequired};function aL(e){return c.createElement(Q1,e)}function J1(e){var t,n,r,o,a,i,l,u,s,d,f,p,m,h=e.debounce,v=e.detectBounds,w=e.horizontalCrosshairStyle,g=e.glyphStyle,y=e.renderTooltip,$=e.renderGlyph,S=$===void 0?aL:$,x=e.resizeObserverPolyfill,C=e.scroll,E=C===void 0?!0:C,M=e.showDatumGlyph,T=M===void 0?!1:M,j=e.showHorizontalCrosshair,I=j===void 0?!1:j,B=e.showSeriesGlyphs,Y=B===void 0?!1:B,q=e.showVerticalCrosshair,P=q===void 0?!1:q,L=e.snapTooltipToDatumX,z=L===void 0?!1:L,H=e.snapTooltipToDatumY,N=H===void 0?!1:H,D=e.verticalCrosshairStyle,W=e.zIndex,te=Z1(e,nL),J=c.useContext(rn)||{},ae=J.colorScale,re=J.theme,le=J.innerHeight,R=J.innerWidth,ce=J.margin,V=J.xScale,K=J.yScale,ie=J.dataRegistry,A=J.resizeObserverPolyfill,pe=c.useContext(Pa),me=fd({debounce:h,detectBounds:v,polyfill:A||x,scroll:E,zIndex:W}),Oe=me.containerRef,Ae=me.TooltipInPortal,Ue=me.forceRefreshBounds,on=c.useCallback(function(ut){var Nt;Oe((Nt=ut==null?void 0:ut.parentElement)!=null?Nt:null)},[Oe]),Un=pe!=null&&pe.tooltipOpen?y($n({},pe,{colorScale:ae})):null,Tt=(pe==null?void 0:pe.tooltipOpen)&&Un!=null,kt=c.useRef(!1);c.useEffect(function(){Tt&&!kt.current&&Ue(),kt.current=Tt},[Tt,Ue]);var ye=pe==null?void 0:pe.tooltipLeft,We=pe==null?void 0:pe.tooltipTop,Kt=V?Wf(V):0,Ie=K?Wf(K):0,an=c.useCallback(function(ut,Nt){var Sn,On,$t=ie==null?void 0:ie.get(ut),br=$t==null?void 0:$t.xAccessor,wr=$t==null?void 0:$t.yAccessor,_o=V&&br?(Sn=Number(V(br(Nt)))+Kt/2)!=null?Sn:0:void 0,Po=K&&wr?(On=Number(K(wr(Nt)))+Ie/2)!=null?On:0:void 0;return{left:_o,top:Po}},[ie,Kt,Ie,V,K]),Be=pe==null||(t=pe.tooltipData)==null?void 0:t.nearestDatum,Re=(n=Be==null?void 0:Be.key)!=null?n:"";if(Tt&&Be&&(z||N)){var _n=an(Re,Be.datum),mt=_n.left,ln=_n.top;ye=z&&Et(mt)?mt:ye,We=N&&Et(ln)?ln:We}var $o=[];if(Tt&&(T||Y)){var iu,lu=Number((iu=g==null?void 0:g.radius)!=null?iu:4);if(Y){var Ma,uu;Object.values((Ma=pe==null||(uu=pe.tooltipData)==null?void 0:uu.datumByKey)!=null?Ma:{}).forEach(function(ut){var Nt,Sn,On,$t=ut.key,br=ut.datum,wr=ut.index,_o=(Nt=(Sn=ae==null?void 0:ae($t))!=null?Sn:re==null||(On=re.htmlLabel)==null?void 0:On.color)!=null?Nt:"#222",Po=an($t,br),pu=Po.left,hu=Po.top;!Et(pu)||!Et(hu)||$o.push({key:$t,color:_o,datum:br,index:wr,size:lu,x:pu,y:hu,glyphStyle:g,isNearestDatum:Be?Be.key===$t:!1})})}else if(Be){var su=an(Re,Be.datum),un=su.left,Pn=su.top;if(Et(un)&&Et(Pn)){var Ca,Ea,Ta,cu,fu,xt,du=(Ca=(Ea=(Ta=(cu=Re&&(ae==null?void 0:ae(Re)))!=null?cu:null)!=null?Ta:re==null||(fu=re.gridStyles)==null?void 0:fu.stroke)!=null?Ea:re==null||(xt=re.htmlLabel)==null?void 0:xt.color)!=null?Ca:"#222";$o.push({key:Re,color:du,datum:Be.datum,index:Be.index,size:lu,x:un,y:Pn,glyphStyle:g,isNearestDatum:!0})}}}return c.createElement(c.Fragment,null,c.createElement("svg",{ref:on,style:oL}),Tt&&c.createElement(c.Fragment,null,P&&c.createElement(Ae,{className:"visx-crosshair visx-crosshair-vertical",left:ye,top:ce==null?void 0:ce.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:dd},c.createElement("svg",{width:"1",height:le,overflow:"visible"},c.createElement("line",$n({x1:0,x2:0,y1:0,y2:le,strokeWidth:1.5,stroke:(r=(o=re==null||(a=re.gridStyles)==null?void 0:a.stroke)!=null?o:re==null||(i=re.htmlLabel)==null?void 0:i.color)!=null?r:"#222"},D)))),I&&c.createElement(Ae,{className:"visx-crosshair visx-crosshair-horizontal",left:ce==null?void 0:ce.left,top:We,offsetLeft:0,offsetTop:0,detectBounds:!1,style:dd},c.createElement("svg",{width:R,height:"1",overflow:"visible"},c.createElement("line",$n({x1:0,x2:R,y1:0,y2:0,strokeWidth:1.5,stroke:(l=(u=re==null||(s=re.gridStyles)==null?void 0:s.stroke)!=null?u:re==null||(d=re.htmlLabel)==null?void 0:d.color)!=null?l:"#222"},w)))),$o.map(function(ut,Nt){var Sn=ut.x,On=ut.y,$t=Z1(ut,rL);return c.createElement(Ae,{key:Nt,className:"visx-tooltip-glyph",left:Sn,top:On,offsetLeft:0,offsetTop:0,detectBounds:!1,style:dd},c.createElement("svg",{overflow:"visible"},S($n({x:0,y:0},$t))))}),c.createElement(Ae,$n({left:ye,top:We,style:$n({},id,{background:(f=re==null?void 0:re.backgroundColor)!=null?f:"white",boxShadow:"0 1px 2px "+(re!=null&&(p=re.htmlLabel)!=null&&p.color?(re==null||(m=re.htmlLabel)==null?void 0:m.color)+"55":"#22222255")},re==null?void 0:re.htmlLabel)},te),Un)))}J1.propTypes={renderTooltip:ne.func.isRequired,renderGlyph:ne.func,snapTooltipToDatumX:ne.bool,snapTooltipToDatumY:ne.bool,showVerticalCrosshair:ne.bool,showHorizontalCrosshair:ne.bool,showDatumGlyph:ne.bool,showSeriesGlyphs:ne.bool};function ew(e){var t=c.useContext(Pa);return t!=null&&t.tooltipOpen?c.createElement(J1,e):null}ew.propTypes={renderTooltip:ne.func.isRequired,renderGlyph:ne.func,snapTooltipToDatumX:ne.bool,snapTooltipToDatumY:ne.bool,showVerticalCrosshair:ne.bool,showHorizontalCrosshair:ne.bool,showDatumGlyph:ne.bool,showSeriesGlyphs:ne.bool};var iL=Ei,lL=function(){return iL.Date.now()},uL=lL,sL=/\s/;function cL(e){for(var t=e.length;t--&&sL.test(e.charAt(t)););return t}var fL=cL,dL=fL,pL=/^\s+/;function hL(e){return e&&e.slice(0,dL(e)+1).replace(pL,"")}var mL=hL;function vL(e){return e!=null&&typeof e=="object"}var gL=vL,yL=Hv,bL=gL,wL="[object Symbol]";function xL(e){return typeof e=="symbol"||bL(e)&&yL(e)==wL}var $L=xL,_L=mL,tw=Ti,PL=$L,nw=0/0,SL=/^[-+]0x[0-9a-f]+$/i,OL=/^0b[01]+$/i,ML=/^0o[0-7]+$/i,CL=parseInt;function EL(e){if(typeof e=="number")return e;if(PL(e))return nw;if(tw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_L(e);var n=OL.test(e);return n||ML.test(e)?CL(e.slice(2),n?2:8):SL.test(e)?nw:+e}var TL=EL,kL=Ti,pd=uL,rw=TL,NL="Expected a function",DL=Math.max,AL=Math.min;function IL(e,t,n){var r,o,a,i,l,u,s=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(NL);t=rw(t)||0,kL(n)&&(d=!!n.leading,f="maxWait"in n,a=f?DL(rw(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(C){var E=r,M=o;return r=o=void 0,s=C,i=e.apply(M,E),i}function h(C){return s=C,l=setTimeout(g,t),d?m(C):i}function v(C){var E=C-u,M=C-s,T=t-E;return f?AL(T,a-M):T}function w(C){var E=C-u,M=C-s;return u===void 0||E>=t||E<0||f&&M>=a}function g(){var C=pd();if(w(C))return y(C);l=setTimeout(g,v(C))}function y(C){return l=void 0,p&&r?m(C):(r=o=void 0,i)}function $(){l!==void 0&&clearTimeout(l),s=0,r=u=o=l=void 0}function S(){return l===void 0?i:y(pd())}function x(){var C=pd(),E=w(C);if(r=arguments,o=this,u=C,E){if(l===void 0)return h(u);if(f)return clearTimeout(l),l=setTimeout(g,t),m(u)}return l===void 0&&(l=setTimeout(g,t)),i}return x.cancel=$,x.flush=S,x}var ow=IL;const aw=xr(ow);var LL=uw,zn=lw(Si),FL=lw(ow),bo=WL(c),jL=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function iw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iw=function(o){return o?n:t})(e)}function WL(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iw(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function lw(e){return e&&e.__esModule?e:{default:e}}function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hl.apply(this,arguments)}function zL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var BL=[],qL={width:"100%",height:"100%"};function uw(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?BL:a,l=e.parentSizeStyles,u=l===void 0?qL:l,s=e.enableDebounceLeadingCall,d=s===void 0?!0:s,f=e.resizeObserverPolyfill,p=zL(e,jL),m=(0,bo.useRef)(null),h=(0,bo.useRef)(0),v=(0,bo.useState)({width:0,height:0,top:0,left:0}),w=v[0],g=v[1],y=(0,bo.useMemo)(function(){var $=Array.isArray(i)?i:[i];return(0,FL.default)(function(S){g(function(x){var C=Object.keys(x),E=C.filter(function(T){return x[T]!==S[T]}),M=E.every(function(T){return $.includes(T)});return M?x:S})},o,{leading:d})},[o,d,i]);return(0,bo.useEffect)(function(){var $=f||window.ResizeObserver,S=new $(function(x){x.forEach(function(C){var E,M=(E=C==null?void 0:C.contentRect)!=null?E:{},T=M.left,j=M.top,I=M.width,B=M.height;h.current=window.requestAnimationFrame(function(){y({width:I,height:B,top:j,left:T})})})});return m.current&&S.observe(m.current),function(){window.cancelAnimationFrame(h.current),S.disconnect(),y.cancel()}},[y,f]),bo.default.createElement("div",Hl({style:u,ref:m,className:t},p),n(Hl({},w,{ref:m.current,resize:y})))}uw.propTypes={className:zn.default.string,debounceTime:zn.default.number,enableDebounceLeadingCall:zn.default.bool,ignoreDimensions:zn.default.oneOfType([zn.default.any,zn.default.arrayOf(zn.default.any)]),children:zn.default.func.isRequired};var HL=c.createContext(null);const sw=HL;function Bn(e,t,n){var r=c.useContext(sw),o=c.useRef();o.current=n;var a=c.useCallback(function(i,l,u){r&&r.emit(i,{event:l,svgPoint:ak(l),source:u})},[r]);return c.useEffect(function(){if(r&&e&&t){var i=function(u){var s;(!o.current||u!=null&&u.source&&(s=o.current)!=null&&s.includes(u.source))&&t(u)};return r.on(e,i),function(){return r==null?void 0:r.off(e,i)}}},[r,e,t]),r?a:null}function UL(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function VL(e){var t=e.children,n=c.useMemo(function(){return UL()},[]);return c.createElement(sw.Provider,{value:n},t)}function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hd.apply(this,arguments)}function cw(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,o=od(void 0),a=o.tooltipOpen,i=o.tooltipLeft,l=o.tooltipTop,u=o.tooltipData,s=o.updateTooltip,d=o.hideTooltip,f=c.useRef(null);function p(){f.current&&(f.current.cancel(),f.current=null)}c.useEffect(function(){return p},[]);var m=c.useRef(function(w){var g=w.svgPoint,y=w.index,$=w.key,S=w.datum,x=w.distanceX,C=w.distanceY;p();var E=Et(x)?x:1/0,M=Et(C)?C:1/0,T=Math.sqrt(Math.pow(E,2)+Math.pow(M,2));s(function(j){var I,B,Y,q=j.tooltipData,P=q!=null&&q.nearestDatum&&Et(q.nearestDatum.distance)?q.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:g==null?void 0:g.x,tooltipTop:g==null?void 0:g.y,tooltipData:{nearestDatum:((I=q==null||(B=q.nearestDatum)==null?void 0:B.key)!=null?I:"")!==$&&P<T?q==null?void 0:q.nearestDatum:{key:$,index:y,datum:S,distance:T},datumByKey:hd({},q==null?void 0:q.datumByKey,(Y={},Y[$]={datum:S,index:y,key:$},Y))}}})}),h=c.useCallback(function(){f.current=aw(d,n),f.current()},[d,n]),v=c.useMemo(function(){return{tooltipOpen:a,tooltipLeft:i,tooltipTop:l,tooltipData:u,updateTooltip:s,showTooltip:m.current,hideTooltip:h}},[h,u,i,a,l,s]);return c.createElement(Pa.Provider,{value:v},r)}cw.propTypes={hideTooltipDebounceMs:ne.number,children:ne.node.isRequired};var Sa={},md={};md.__esModule=!0,md.default=GL;function GL(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var vd={};vd.__esModule=!0,vd.default=YL;function YL(e,t){t.range&&("padding"in e,e.range(t.range))}var gd={};gd.__esModule=!0,gd.default=KL;function KL(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}var yd={};yd.__esModule=!0,yd.default=XL;function XL(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}var bd={};bd.__esModule=!0,bd.default=RL;function RL(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}var wd={};wd.__esModule=!0,wd.default=ZL;function ZL(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}var xd={};xd.__esModule=!0,xd.default=QL;function QL(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var $d={},_d={};_d.__esModule=!0,_d.default=JL;var qn=Gt,fw={lab:qn.interpolateLab,hcl:qn.interpolateHcl,"hcl-long":qn.interpolateHclLong,hsl:qn.interpolateHsl,"hsl-long":qn.interpolateHslLong,cubehelix:qn.interpolateCubehelix,"cubehelix-long":qn.interpolateCubehelixLong,rgb:qn.interpolateRgb};function JL(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return fw[e]}var t=e.type,n=e.gamma,r=fw[t];return typeof n>"u"?r:r.gamma(n)}$d.__esModule=!0,$d.default=n8;var e8=t8(_d);function t8(e){return e&&e.__esModule?e:{default:e}}function n8(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=(0,e8.default)(t.interpolate);e.interpolate(n)}}var Pd={},Sd={};Sd.__esModule=!0,Sd.default=a8;var r8=new Date(Date.UTC(2020,1,2,3,4,5)),o8="%Y-%m-%d %H:%M";function a8(e){var t=e.tickFormat(1,o8)(r8);return t==="2020-02-02 03:04"}Pd.__esModule=!0,Pd.default=u8;var pt=at,i8=l8(Sd);function l8(e){return e&&e.__esModule?e:{default:e}}var dw={day:pt.timeDay,hour:pt.timeHour,minute:pt.timeMinute,month:pt.timeMonth,second:pt.timeSecond,week:pt.timeWeek,year:pt.timeYear},pw={day:pt.utcDay,hour:pt.utcHour,minute:pt.utcMinute,month:pt.utcMonth,second:pt.utcSecond,week:pt.utcWeek,year:pt.utcYear};function u8(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=(0,i8.default)(r);if(typeof n=="string")r.nice(o?pw[n]:dw[n]);else{var a=n.interval,i=n.step,l=(o?pw[a]:dw[a]).every(i);l!=null&&r.nice(l)}}}}var Od={};Od.__esModule=!0,Od.default=s8;function s8(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}var Md={};Md.__esModule=!0,Md.default=c8;function c8(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var Cd={};Cd.__esModule=!0,Cd.default=d8;var f8=Gt;function d8(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(f8.interpolateRound))}var Ed={};Ed.__esModule=!0,Ed.default=p8;function p8(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}var Td={};Td.__esModule=!0,Td.default=h8;function h8(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],l=i[0],u=i[1],s=[Math.min(0,l),Math.max(0,u)];e.domain(a?s.reverse():s)}}Sa.__esModule=!0,Sa.ALL_OPERATORS=void 0,Sa.default=T8;var m8=ht(md),v8=ht(vd),g8=ht(gd),y8=ht(yd),b8=ht(bd),w8=ht(wd),x8=ht(xd),$8=ht($d),_8=ht(Pd),P8=ht(Od),S8=ht(Md),O8=ht(Cd),M8=ht(Ed),C8=ht(Td);function ht(e){return e&&e.__esModule?e:{default:e}}var hw=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];Sa.ALL_OPERATORS=hw;var E8={domain:m8.default,nice:_8.default,zero:C8.default,interpolate:$8.default,round:O8.default,align:g8.default,base:y8.default,clamp:b8.default,constant:w8.default,exponent:x8.default,padding:P8.default,range:v8.default,reverse:S8.default,unknown:M8.default};function T8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=hw.filter(function(a){return r.has(a)});return function(i,l){return typeof l<"u"&&o.forEach(function(u){E8[u](i,l)}),i}}var k8=L8,N8=ot,D8=A8(Sa);function A8(e){return e&&e.__esModule?e:{default:e}}var I8=(0,D8.default)("domain","range","reverse","unknown");function L8(e){return I8((0,N8.scaleOrdinal)(),e)}var Hn={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},Oa=Hn.gray,kd=Oa[7],F8=[Hn.cyan[9],Hn.cyan[3],Hn.yellow[5],Hn.red[4],Hn.grape[8],Hn.grape[5],Hn.pink[9]];function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(this,arguments)}var Nd={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function j8(e){var t,n,r,o,a,i,l=je({},Nd,{fill:kd,stroke:"none"},e.svgLabelBig),u=je({},Nd,{fontWeight:200,fontSize:11,fill:kd,stroke:"none"},e.svgLabelSmall),s=je({color:(t=(n=(r=(o=e.htmlLabel)==null?void 0:o.color)!=null?r:(a=e.svgLabelBig)==null?void 0:a.fill)!=null?n:(i=e.svgLabelSmall)==null?void 0:i.fill)!=null?t:kd},Nd,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:je({},s),svgLabelSmall:je({},u),svgLabelBig:je({},l),gridStyles:je({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:je({},l,{dy:"-0.25em"}),axisLine:je({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:je({},u,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:je({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:je({},l,{dy:"-0.25em"}),axisLine:je({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:je({},u,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:je({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:je({},l,{dx:"-1.25em"}),axisLine:je({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:je({},u,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:je({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:je({},l,{dx:"1.25em"}),axisLine:je({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:je({},u,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:je({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}const W8=j8({backgroundColor:"#fff",colors:F8,tickLength:4,svgLabelSmall:{fill:Oa[7]},svgLabelBig:{fill:Oa[9]},gridColor:Oa[5],gridColorDark:Oa[9]});var z8=c.createContext(W8);const B8=z8;var q8=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){i.key in o.registry&&o.registry[i.key]!=null&&console.debug("Overriding data registry key",i.key),o.registry[i.key]=i,o.registryKeys=Object.keys(o.registry)})},t.unregisterData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){delete o.registry[i],o.registryKeys=Object.keys(o.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function H8(){var e=c.useState(Math.random()),t=e[1],n=c.useMemo(function(){return new q8},[]);return c.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(o){return n.get(o)},keys:function(){return n.keys()}}},[n])}var Dd={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function U8(e){var t=c.useState({width:(e==null?void 0:e.width)==null?Dd.width:e.width,height:(e==null?void 0:e.height)==null?Dd.height:e.height,margin:(e==null?void 0:e.margin)==null?Dd.margin:e.margin}),n=t[0],r=t[1],o=c.useCallback(function(a){(a.width!==n.width||a.height!==n.height||a.margin.left!==n.margin.left||a.margin.right!==n.margin.right||a.margin.top!==n.margin.top||a.margin.bottom!==n.margin.bottom)&&r(a)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}function Ul(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function V8(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ad(e){let t,n,r;e.length!==2?(t=Ul,n=(l,u)=>Ul(e(l),u),r=(l,u)=>e(l)-u):(t=e===Ul||e===V8?e:G8,n=e,r=e);function o(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<0?s=f+1:d=f}while(s<d)}return s}function a(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<=0?s=f+1:d=f}while(s<d)}return s}function i(l,u,s=0,d=l.length){const f=o(l,u,s,d-1);return f>s&&r(l[f-1],u)>-r(l[f],u)?f-1:f}return{left:o,center:i,right:a}}function G8(){return 0}function Y8(e){return e===null?NaN:+e}const K8=Ad(Ul).left;Ad(Y8).center;function mw(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function X8(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function Id(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(this,arguments)}function R8(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,a=e.yScaleConfig,i=t.keys(),l=n[0],u=n[1],s=o[0],d=o[1],f=c.useMemo(function(){var m=i.map(function(g){return t.get(g)}),h=m.reduce(function(g,y){return y?g.concat(y.data.map(function($){return y.xAccessor($)})):g},[]);if(h.length!==0){var v=Id(r)?h:mw(h),w=jf(r)?wa(wo({range:[l,u],domain:v,zero:!0},r)):wa(wo({range:[l,u],domain:v},r));return m.forEach(function(g){g!=null&&g.xScale&&(w=g.xScale(w))}),w}},[t,r,i,l,u]),p=c.useMemo(function(){var m=i.map(function(g){return t.get(g)}),h=m.reduce(function(g,y){return y?g.concat(y.data.map(function($){return y.yAccessor($)})):g},[]);if(h.length!==0){var v=Id(a)?h:mw(h),w=jf(a)?wa(wo({range:[s,d],domain:v,zero:!0},a)):wa(wo({range:[s,d],domain:v},a));return m.forEach(function(g){g!=null&&g.yScale&&(w=g.yScale(w))}),w}},[t,a,i,s,d]);return{xScale:f,yScale:p}}function vw(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,a=e.children,i=e.horizontal,l=i===void 0?"auto":i,u=e.resizeObserverPolyfill,s=c.useContext(B8),d=n||s,f=U8(t),p=f[0],m=p.width,h=p.height,v=p.margin,w=f[1],g=Math.max(0,m-v.left-v.right),y=Math.max(0,h-v.top-v.bottom),$=H8(),S=R8({dataRegistry:$,xScaleConfig:r,yScaleConfig:o,xRange:[v.left,Math.max(0,m-v.right)],yRange:[Math.max(0,h-v.bottom),v.top]}),x=S.xScale,C=S.yScale,E=$.keys(),M=c.useMemo(function(){return k8({domain:E,range:d.colors})},[E,d.colors]),T=l==="auto"?Id(o)||o.type==="time"||o.type==="utc":l,j=c.useMemo(function(){return{dataRegistry:$,registerData:$.registerData,unregisterData:$.unregisterData,xScale:x,yScale:C,colorScale:M,theme:d,width:m,height:h,margin:v,innerWidth:g,innerHeight:y,setDimensions:w,horizontal:T,resizeObserverPolyfill:u}},[M,$,h,T,y,g,v,w,d,m,x,C,u]);return c.createElement(rn.Provider,{value:j},a)}vw.propTypes={children:ne.node.isRequired,horizontal:ne.oneOfType([ne.bool,ne.oneOf(["auto"])])};function gw(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,o=e.onPointerMove,a=o===void 0?!0:o,i=e.onPointerUp,l=i===void 0?!0:i,u=e.onPointerDown,s=u===void 0?!0:u,d=e.onFocus,f=d===void 0?!1:d,p=e.onBlur,m=p===void 0?!1:p,h=Bn(),v=c.useCallback(function(x){return h==null?void 0:h("pointermove",x,t)},[h,t]),w=c.useCallback(function(x){return h==null?void 0:h("pointerout",x,t)},[h,t]),g=c.useCallback(function(x){return h==null?void 0:h("pointerup",x,t)},[h,t]),y=c.useCallback(function(x){return h==null?void 0:h("pointerdown",x,t)},[h,t]),$=c.useCallback(function(x){return h==null?void 0:h("focus",x,t)},[h,t]),S=c.useCallback(function(x){return h==null?void 0:h("blur",x,t)},[h,t]);return{onPointerMove:a?v:void 0,onFocus:f?$:void 0,onBlur:m?S:void 0,onPointerOut:r?w:void 0,onPointerUp:l?g:void 0,onPointerDown:s?y:void 0}}var Z8="GLYPHSERIES_EVENT_SOURCE",Ld="XYCHART_EVENT_SOURCE";function yw(e){return!!e&&("clientX"in e||"changedTouches"in e)}function Q8(e){return!!e&&!yw(e)}function bw(e){var t=e.scale,n=e.accessor,r=e.scaledValue,o=e.data,a=t,i,l;if("invert"in a&&typeof a.invert=="function"){var u=Ad(n).left,s=Number(a.invert(r)),d=u(o,s),f=o[d-1],p=o[d];i=!f||Math.abs(s-n(f))>Math.abs(s-n(p))?p:f,l=i===f?d-1:d}else if("step"in a&&typeof a.step<"u"){var m=t.domain(),h=t.range().map(Number),v=[].concat(h).sort(function(C,E){return C-E}),w=X8(v[0],v[1],a.step()),g=K8(w,r),y=h[0]<h[1]?m:m.reverse(),$=y[g-1],S=o.findIndex(function(C){return String(n(C))===String($)});i=o[S],l=S}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(i==null||l==null)return null;var x=Math.abs(Number(a(n(i)))-r);return{datum:i,index:l,distance:x}}function J8(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,a=e.point,i=e.data;if(!a)return null;var l=bw({scale:t,accessor:n,scaledValue:a.x,data:i});return l?{datum:l.datum,index:l.index,distanceX:l.distance,distanceY:Math.abs(Number(r(o(l.datum)))-a.y)}:null}function e4(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,a=e.point,i=e.data;if(!a)return null;var l=bw({scale:t,accessor:n,scaledValue:a.y,data:i});return l?{datum:l.datum,index:l.index,distanceY:l.distance,distanceX:Math.abs(Number(r(o(l.datum)))-a.x)}:null}function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fd.apply(this,arguments)}var jd="__POINTER_EVENTS_ALL",Vl="__POINTER_EVENTS_NEAREST";function ww(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,a=e.onPointerMove,i=e.onPointerOut,l=e.onPointerUp,u=e.onPointerDown,s=e.allowedSources,d=c.useContext(rn),f=d.width,p=d.height,m=d.horizontal,h=d.dataRegistry,v=d.xScale,w=d.yScale,g=n||(m?e4:J8),y=c.useCallback(function(T){var j=T||{},I=j.svgPoint,B=j.event,Y={},q=null,P=1/0;if(T&&B&&I&&f&&p&&v&&w){var L,z=t===Vl||t===jd,H=z?(L=h==null?void 0:h.keys())!=null?L:[]:Array.isArray(t)?t:[t];H.forEach(function(D){var W=h==null?void 0:h.get(D);if(W){var te=g({dataKey:D,data:W.data,height:p,point:I,width:f,xAccessor:W.xAccessor,xScale:v,yAccessor:W.yAccessor,yScale:w});if(te&&(Y[D]=Fd({key:D,svgPoint:I,event:B},te),t===Vl)){var J,ae,re=Math.sqrt(((J=te.distanceX)!=null?J:Math.pow(1/0,2))+((ae=te.distanceY)!=null?ae:Math.pow(1/0,2)));q=re<P?Y[D]:q,P=Math.min(P,re)}}});var N=t===Vl?[q]:t===jd||Array.isArray(t)?Object.values(Y):[Y[t]];return N.filter(function(D){return D})}return[]},[t,h,v,w,f,p,g]),$=c.useCallback(function(T){a&&y(T).forEach(function(j){return a(j)})},[y,a]),S=c.useCallback(function(T){l&&y(T).forEach(function(j){return l(j)})},[y,l]),x=c.useCallback(function(T){u&&y(T).forEach(function(j){return u(j)})},[y,u]),C=c.useCallback(function(T){o&&y(T).forEach(function(j){return o(j)})},[y,o]),E=c.useCallback(function(T){var j=T==null?void 0:T.event;j&&yw(j)&&i&&i(j)},[i]),M=c.useCallback(function(T){var j=T==null?void 0:T.event;j&&Q8(j)&&r&&r(j)},[r]);Bn("pointermove",a?$:void 0,s),Bn("pointerout",i?E:void 0,s),Bn("pointerup",l?S:void 0,s),Bn("pointerdown",u?x:void 0,s),Bn("focus",o?C:void 0,s),Bn("blur",r?M:void 0,s)}function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gl.apply(this,arguments)}var t4={top:50,right:50,bottom:50,left:50},n4=[Ld];function xo(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,o=r===void 0?!0:r,a=e.children,i=e.height,l=e.horizontal,u=e.margin,s=u===void 0?t4:u,d=e.onPointerMove,f=e.onPointerOut,p=e.onPointerUp,m=e.onPointerDown,h=e.pointerEventsDataKey,v=h===void 0?"nearest":h,w=e.theme,g=e.width,y=e.xScale,$=e.yScale,S=e.resizeObserverPolyfill,x=c.useContext(rn),C=x.setDimensions,E=x.resizeObserverPolyfill,M=c.useContext(Pa),T=Bn();c.useEffect(function(){C&&g!=null&&i!=null&&g>0&&i>0&&C({width:g,height:i,margin:s})},[C,g,i,s]);var j=gw({source:Ld});return ww({dataKey:v==="nearest"?Vl:jd,onPointerMove:d,onPointerOut:f,onPointerUp:p,onPointerDown:m,allowedSources:n4}),C?g==null||i==null?c.createElement(LL,{resizeObserverPolyfill:E},function(I){return c.createElement(xo,Gl({},e,{width:e.width==null?I.width:e.width,height:e.height==null?I.height:e.height}))}):M==null?c.createElement(cw,null,c.createElement(xo,e)):T==null?c.createElement(VL,null,c.createElement(xo,e)):g<=0||i<=0?(console.info("XYChart has a zero width or height, bailing",{width:g,height:i}),null):c.createElement("svg",{width:g,height:i,"aria-label":n},a,o&&c.createElement("rect",Gl({x:s.left,y:s.top,width:g-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},j))):!y||!$?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):c.createElement(vw,{xScale:y,yScale:$,theme:w,initialDimensions:{width:g,height:i,margin:s},horizontal:l,resizeObserverPolyfill:S},c.createElement(xo,e))}xo.propTypes={accessibilityLabel:ne.string,captureEvents:ne.bool,width:ne.number,height:ne.number,children:ne.node.isRequired,horizontal:ne.oneOfType([ne.bool,ne.oneOf(["auto"])]),onPointerMove:ne.func,onPointerOut:ne.func,onPointerUp:ne.func,onPointerDown:ne.func,pointerEventsDataKey:ne.oneOf(["all","nearest"])};function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(this,arguments)}function r4(e){function t(n){var r=n.dataKey,o=n.data,a=n.xAccessor,i=n.yAccessor,l=c.useContext(rn),u=l.xScale,s=l.yScale,d=l.dataRegistry;c.useEffect(function(){return d&&d.registerData({key:r,data:o,xAccessor:a,yAccessor:i}),function(){return d==null?void 0:d.unregisterData(r)}},[d,r,o,a,i]);var f=d==null?void 0:d.get(r);if(!u||!s||!f)return null;var p=e;return c.createElement(p,Wd({},n,{xScale:u,yScale:s,data:f.data,xAccessor:f.xAccessor,yAccessor:f.yAccessor}))}return t}function xw(e,t,n){return n===void 0&&(n="center"),function(r){var o=e(t(r));if(Et(o)){var a=(n==="start"?0:Wf(e))/(n==="center"?2:1);return o+a}return NaN}}function o4(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,a=e.onBlur,i=e.onFocus,l=e.onPointerMove,u=e.onPointerOut,s=e.onPointerUp,d=e.onPointerDown,f=e.source,p=e.allowedSources,m=(t=c.useContext(Pa))!=null?t:{},h=m.showTooltip,v=m.hideTooltip,w=c.useCallback(function(x){h(x),l&&l(x)},[h,l]),g=c.useCallback(function(x){h(x),i&&i(x)},[h,i]),y=c.useCallback(function(x){v(),x&&u&&u(x)},[v,u]),$=c.useCallback(function(x){v(),x&&a&&a(x)},[v,a]),S=c.useCallback(function(x){h(x),d&&d(x)},[h,d]);return ww({dataKey:n,findNearestDatum:o,onBlur:r?$:void 0,onFocus:r?g:void 0,onPointerMove:r?w:void 0,onPointerOut:r?y:void 0,onPointerUp:r?s:void 0,onPointerDown:r?S:void 0,allowedSources:p}),gw({source:f,onBlur:!!a&&r,onFocus:!!i&&r,onPointerMove:!!l&&r,onPointerOut:!!u&&r,onPointerUp:!!s&&r,onPointerDown:!!d&&r})}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zd.apply(this,arguments)}function $w(e){var t,n,r,o=e.colorAccessor,a=e.data,i=e.dataKey,l=e.onBlur,u=e.onFocus,s=e.onPointerMove,d=e.onPointerOut,f=e.onPointerUp,p=e.onPointerDown,m=e.enableEvents,h=m===void 0?!0:m,v=e.renderGlyphs,w=e.size,g=w===void 0?8:w,y=e.xAccessor,$=e.xScale,S=e.yAccessor,x=e.yScale,C=c.useContext(rn),E=C.colorScale,M=C.theme,T=C.horizontal,j=c.useMemo(function(){return xw($,y)},[$,y]),I=c.useMemo(function(){return xw(x,S)},[x,S]),B=(t=(n=E==null?void 0:E(i))!=null?n:M==null||(r=M.colors)==null?void 0:r[0])!=null?t:"#222",Y=Z8+"-"+i,q=o4({dataKey:i,enableEvents:h,onBlur:l,onFocus:u,onPointerMove:s,onPointerOut:d,onPointerUp:f,onPointerDown:p,source:Y,allowedSources:[Ld,Y]}),P=c.useMemo(function(){return a.map(function(L,z){var H,N=j(L);if(!Et(N))return null;var D=I(L);return Et(D)?{key:""+z,x:N,y:D,color:(H=o==null?void 0:o(L,z))!=null?H:B,size:typeof g=="function"?g(L):g,datum:L}:null}).filter(function(L){return L})},[B,o,a,j,I,g]);return c.createElement(c.Fragment,null,v(zd({glyphs:P,xScale:$,yScale:x,horizontal:T},q)))}$w.propTypes={colorAccessor:ne.func,size:ne.oneOfType([ne.number,ne.func]),renderGlyphs:ne.func.isRequired};const a4=r4($w);function i4(e){var t=e.key,n=e.color,r=e.x,o=e.y,a=e.size,i=e.onBlur,l=e.onFocus,u=e.onPointerMove,s=e.onPointerOut,d=e.onPointerUp;return c.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:i||l?0:void 0,fill:n,r:a/2,cx:r,cy:o,onBlur:i,onFocus:l,onPointerMove:u,onPointerOut:s,onPointerUp:d})}var l4=["renderGlyph"];function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yl.apply(this,arguments)}function u4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function s4(e){var t=e.renderGlyph,n=t===void 0?i4:t,r=u4(e,l4),o=c.useCallback(function(a){var i=a.glyphs,l=a.onPointerMove,u=a.onPointerOut,s=a.onPointerUp,d=a.onFocus,f=a.onBlur;return i.map(function(p){return c.createElement(c.Fragment,{key:p.key},n(Yl({},p,{onPointerMove:l,onPointerOut:u,onPointerUp:s,onFocus:d,onBlur:f})))})},[n]);return c.createElement(a4,Yl({},r,{renderGlyphs:o}))}function _w(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=e.children;return c.createElement(Jn,{className:ft("visx-glyph",a),top:n,left:o},i)}_w.propTypes={top:ne.number,left:ne.number,className:ne.string,children:ne.node};var c4=["top","left","className"];function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}function f4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qd(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=f4(e,c4);return c.createElement(_w,{top:n,left:o},c.createElement("circle",Bd({className:ft("visx-glyph-dot",a)},i)))}qd.propTypes={className:ne.string,top:ne.number,left:ne.number,r:ne.number,cx:ne.number,cy:ne.number};var d4=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kl.apply(this,arguments)}function p4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var h4=[],m4={width:"100%",height:"100%"};function Xl(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?h4:a,l=e.parentSizeStyles,u=l===void 0?m4:l,s=e.enableDebounceLeadingCall,d=s===void 0?!0:s,f=e.resizeObserverPolyfill,p=p4(e,d4),m=c.useRef(null),h=c.useRef(0),v=c.useState({width:0,height:0,top:0,left:0}),w=v[0],g=v[1],y=c.useMemo(function(){var $=Array.isArray(i)?i:[i];return aw(function(S){g(function(x){var C=Object.keys(x),E=C.filter(function(T){return x[T]!==S[T]}),M=E.every(function(T){return $.includes(T)});return M?x:S})},o,{leading:d})},[o,d,i]);return c.useEffect(function(){var $=f||window.ResizeObserver,S=new $(function(x){x.forEach(function(C){var E,M=(E=C==null?void 0:C.contentRect)!=null?E:{},T=M.left,j=M.top,I=M.width,B=M.height;h.current=window.requestAnimationFrame(function(){y({width:I,height:B,top:j,left:T})})})});return m.current&&S.observe(m.current),function(){window.cancelAnimationFrame(h.current),S.disconnect(),y.cancel()}},[y,f]),c.createElement("div",Kl({style:u,ref:m,className:t},p),n(Kl({},w,{ref:m.current,resize:y})))}Xl.propTypes={className:ne.string,debounceTime:ne.number,enableDebounceLeadingCall:ne.bool,ignoreDimensions:ne.oneOfType([ne.any,ne.arrayOf(ne.any)]),children:ne.func.isRequired};const Pw=[{name:"default",dark:"#1565BC",light:"#99D2F9"},{name:"yellow",dark:"#8C6A00",light:"#FFDE88"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"purple",dark:"#7651BC",light:"#E7DAFF"},{name:"pink",dark:"#C01443",light:"#FAD4D4"},{name:"green",dark:"#44812F",light:"#B1E39F"},{name:"orange",dark:"#B96400",light:"#FFE7C5"},{name:"teal",dark:"#237C73",light:"#A1DFD5"},{name:"red",dark:"#C62C02",light:"#FFE1D9"}];function lt(e){return Pw[e%Pw.length]}function Hd({textLabel:e,axisCharLimit:t,x:n,y:r,textStyles:o}){return _.jsx(Vm,{children:_.jsxs(Gm,{children:[_.jsx(Ym,{asChild:!0,children:_.jsx("text",{className:"pointer-events-auto cursor-pointer",...o,x:n,y:r,children:e&&(e==null?void 0:e.length)>t?`${e==null?void 0:e.substring(0,t)}...`:e})}),_.jsx(Km,{children:_.jsx(bs,{className:"rabbit-ds",children:_.jsx("p",{children:e})})})]})})}const Sw=(e,t)=>c.Children.map(e,n=>c.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Ud({value:e,darkColor:t,lightColor:n}){return _.jsxs("div",{className:"px-2 py-1 justify-start items-center gap-2 inline-flex",children:[_.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"w-3 h-3 relative rounded-3xl border"}),_.jsx("div",{className:"justify-start items-start flex",children:_.jsx("div",{className:"text-zinc-800 text-xs font-normal leading-none",children:e})})]})}function Vd({label:e,value:t}){return _.jsxs("div",{className:"px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm",children:[_.jsx("div",{className:" text-stone-500 text-[10px] font-normal leading-none",children:e}),_.jsx("div",{className:"justify-start items-start text-sm flex font-medium",children:t||"-"})]})}function Xe({children:e,showSideBySide:t,tooltipTitle:n}){const r=Sw(e,Ud),o=Sw(e,Vd);return _.jsxs("div",{className:"rabbit-ds z-[1500] relative h-auto w-auto min-w-[200px] max-w-[400px] p-2 bg-white rounded-lg shadow flex-col justify-start items-start gap-2 inline-flex",children:[_.jsx("div",{className:"px-3 py-1 text-zinc-800 font-medium text-xs leading-none",children:n}),_.jsxs("div",{className:"w-full p-2 rounded-lg flex-col justify-start items-start flex",children:[t&&_.jsxs("div",{className:be("w-full flex"),children:[o&&o[0],_.jsx("div",{className:"w-0 border-r mx-3"}),o&&o[1]]}),!t&&_.jsx("div",{className:be("w-full grid gap-3 auto-rows-auto"),children:o})]}),r&&r.length>0?_.jsx("div",{className:"h-px px-2 w-full border-top bg-gray-100"}):null,r]})}Ud.displayName="Legend",Vd.displayName="Item",Xe.Legend=Ud,Xe.Item=Vd,Xe.defaultProps={showSideBySide:!1};function Ow({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:l,legendLightColor:u}){const s=e==null?void 0:e.toString(),d=t==null?void 0:t.toString();return _.jsxs(Xe,{tooltipTitle:n,showSideBySide:a,children:[_.jsx(Xe.Item,{label:r,value:s}),_.jsx(Xe.Item,{label:o,value:d}),_.jsx(Xe.Legend,{value:i,darkColor:l,lightColor:u})]})}Ow.defaultProps={xValue:void 0,yValue:void 0};function v4({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=c.useContext(rn),a=r?e.filter(i=>i.y!==null):e;return _.jsx(H7,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var l,u;return((l=o==null?void 0:o.xScale)==null?void 0:l.call(o,t(i)))+((u=o==null?void 0:o.xScale)==null?void 0:u.bandwidth())/2},y:i=>{var l;return(l=o==null?void 0:o.yScale)==null?void 0:l.call(o,n(i))}})}var Gd={exports:{}};(function(e,t){(function(n,r){r(t)})(Co,function(n){var r,o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,d=Math.pow,f=(b,O,k)=>O in b?o(b,O,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[O]=k,p=(b,O)=>{for(var k in O||(O={}))u.call(O,k)&&f(b,k,O[k]);if(l)for(var k of l(O))s.call(O,k)&&f(b,k,O[k]);return b},m=(b,O)=>a(b,i(O)),h=(b,O)=>{var k={};for(var F in b)u.call(b,F)&&O.indexOf(F)<0&&(k[F]=b[F]);if(b!=null&&l)for(var F of l(b))O.indexOf(F)<0&&s.call(b,F)&&(k[F]=b[F]);return k},v=(b,O,k)=>new Promise((F,G)=>{var Q=oe=>{try{Z(k.next(oe))}catch(ue){G(ue)}},U=oe=>{try{Z(k.throw(oe))}catch(ue){G(ue)}},Z=oe=>oe.done?F(oe.value):Promise.resolve(oe.value).then(Q,U);Z((k=k.apply(b,O)).next())});function w(b,O){return b[13]=1,b[14]=O>>8,b[15]=O&255,b[16]=O>>8,b[17]=O&255,b}const g="p".charCodeAt(0),y="H".charCodeAt(0),$="Y".charCodeAt(0),S="s".charCodeAt(0);let x;function C(){const b=new Int32Array(256);for(let O=0;O<256;O++){let k=O;for(let F=0;F<8;F++)k=k&1?3988292384^k>>>1:k>>>1;b[O]=k}return b}function E(b){let O=-1;x||(x=C());for(let k=0;k<b.length;k++)O=x[(O^b[k])&255]^O>>>8;return O^-1}function M(b){const O=b.length-1;for(let k=O;k>=4;k--)if(b[k-4]===9&&b[k-3]===g&&b[k-2]===y&&b[k-1]===$&&b[k]===S)return k-3;return 0}function T(b,O,k=!1){const F=new Uint8Array(13);O*=39.3701,F[0]=g,F[1]=y,F[2]=$,F[3]=S,F[4]=O>>>24,F[5]=O>>>16,F[6]=O>>>8,F[7]=O&255,F[8]=F[4],F[9]=F[5],F[10]=F[6],F[11]=F[7],F[12]=1;const G=E(F),Q=new Uint8Array(4);if(Q[0]=G>>>24,Q[1]=G>>>16,Q[2]=G>>>8,Q[3]=G&255,k){const U=M(b);return b.set(F,U),b.set(Q,U+13),b}else{const U=new Uint8Array(4);U[0]=0,U[1]=0,U[2]=0,U[3]=9;const Z=new Uint8Array(54);return Z.set(b,0),Z.set(U,33),Z.set(F,37),Z.set(Q,50),Z}}const j="AAlwSFlz",I="AAAJcEhZ",B="AAAACXBI";function Y(b){let O=b.indexOf(j);return O===-1&&(O=b.indexOf(I)),O===-1&&(O=b.indexOf(B)),O}const q="[modern-screenshot]",P=typeof window<"u",L=P&&"Worker"in window,z=P&&"atob"in window,H=P&&"btoa"in window,N=P?(r=window.navigator)==null?void 0:r.userAgent:"",D=N.includes("Chrome"),W=N.includes("AppleWebKit")&&!D,te=N.includes("Firefox"),J=b=>b&&"__CONTEXT__"in b,ae=b=>b.constructor.name==="CSSFontFaceRule",re=b=>b.constructor.name==="CSSImportRule",le=b=>b.nodeType===1,R=b=>typeof b.className=="object",ce=b=>b.tagName==="image",V=b=>b.tagName==="use",K=b=>le(b)&&typeof b.style<"u"&&!R(b),ie=b=>b.nodeType===8,A=b=>b.nodeType===3,pe=b=>b.tagName==="IMG",me=b=>b.tagName==="VIDEO",Oe=b=>b.tagName==="CANVAS",Ae=b=>b.tagName==="TEXTAREA",Ue=b=>b.tagName==="INPUT",on=b=>b.tagName==="STYLE",Un=b=>b.tagName==="SCRIPT",Tt=b=>b.tagName==="SELECT",kt=b=>b.tagName==="SLOT",ye=b=>b.tagName==="IFRAME",We=(...b)=>console.warn(q,...b),Kt=b=>console.time(`${q} ${b}`),Ie=b=>console.timeEnd(`${q} ${b}`),an=b=>{var O;const k=(O=b==null?void 0:b.createElement)==null?void 0:O.call(b,"canvas");return k&&(k.height=k.width=1),k&&"toDataURL"in k&&!!k.toDataURL("image/webp").includes("image/webp")},Be=b=>b.startsWith("data:");function Re(b,O){if(b.match(/^[a-z]+:\/\//i))return b;if(P&&b.match(/^\/\//))return window.location.protocol+b;if(b.match(/^[a-z]+:/i)||!P)return b;const k=_n().implementation.createHTMLDocument(),F=k.createElement("base"),G=k.createElement("a");return k.head.appendChild(F),k.body.appendChild(G),O&&(F.href=O),G.href=b,G.href}function _n(b){var O;return(O=b&&le(b)?b==null?void 0:b.ownerDocument:b)!=null?O:window.document}const mt="http://www.w3.org/2000/svg";function ln(b,O,k){const F=_n(k).createElementNS(mt,"svg");return F.setAttributeNS(null,"width",b.toString()),F.setAttributeNS(null,"height",O.toString()),F.setAttributeNS(null,"viewBox",`0 0 ${b} ${O}`),F}function $o(b,O){let k=new XMLSerializer().serializeToString(b);return O&&(k=k.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/ug,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(k)}`}function iu(b,O="image/png",k=1){return v(this,null,function*(){try{return yield new Promise((F,G)=>{b.toBlob(Q=>{Q?F(Q):G(new Error("Blob is null"))},O,k)})}catch(F){if(z)return We("Failed canvas to blob",{type:O,quality:k},F),lu(b.toDataURL(O,k));throw F}})}function lu(b){var O,k;const[F,G]=b.split(","),Q=(k=(O=F.match(/data:(.+);/))==null?void 0:O[1])!=null?k:void 0,U=window.atob(G),Z=U.length,oe=new Uint8Array(Z);for(let ue=0;ue<Z;ue+=1)oe[ue]=U.charCodeAt(ue);return new Blob([oe],{type:Q})}function Ma(b,O){return new Promise((k,F)=>{const G=new FileReader;G.onload=()=>k(G.result),G.onerror=()=>F(G.error),G.onabort=()=>F(new Error(`Failed read blob to ${O}`)),O==="dataUrl"?G.readAsDataURL(b):O==="arrayBuffer"&&G.readAsArrayBuffer(b)})}const uu=b=>Ma(b,"dataUrl"),su=b=>Ma(b,"arrayBuffer");function un(b,O){const k=_n(O).createElement("img");return k.decoding="sync",k.loading="eager",k.src=b,k}function Pn(b,O){return new Promise(k=>{const{timeout:F,ownerDocument:G,onError:Q}=O??{},U=typeof b=="string"?un(b,_n(G)):b;let Z=null,oe=null;function ue(){k(U),Z&&clearTimeout(Z),oe==null||oe()}if(F&&(Z=setTimeout(ue,F)),me(U)){const se=U.currentSrc||U.src;if(!se)return U.poster?Pn(U.poster,O).then(k):ue();if(U.readyState>=2)return ue();const ve=ue,fe=_e=>{We("Failed video load",se,_e),Q==null||Q(_e),ue()};oe=()=>{U.removeEventListener("loadeddata",ve),U.removeEventListener("error",fe)},U.addEventListener("loadeddata",ve,{once:!0}),U.addEventListener("error",fe,{once:!0})}else{const se=ce(U)?U.href.baseVal:U.currentSrc||U.src;if(!se)return ue();const ve=()=>v(this,null,function*(){if(pe(U)&&"decode"in U)try{yield U.decode()}catch(_e){We("Failed to decode image, trying to render anyway",U.dataset.originalSrc||se,_e)}ue()}),fe=_e=>{We("Failed image load",U.dataset.originalSrc||se,_e),ue()};if(pe(U)&&U.complete)return ve();oe=()=>{U.removeEventListener("load",ve),U.removeEventListener("error",fe)},U.addEventListener("load",ve,{once:!0}),U.addEventListener("error",fe,{once:!0})}})}function Ca(b,O){return v(this,null,function*(){K(b)&&(pe(b)||me(b)?yield Pn(b,{timeout:O}):yield Promise.all(["img","video"].flatMap(k=>Array.from(b.querySelectorAll(k)).map(F=>Pn(F,{timeout:O})))))})}const Ea=function(){let b=0;const O=()=>`0000${(Math.random()*d(36,4)<<0).toString(36)}`.slice(-4);return()=>(b+=1,`u${O()}${b}`)}();function Ta(b){return b==null?void 0:b.split(",").map(O=>O.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function cu(b){return{time:O=>b&&Kt(O),timeEnd:O=>b&&Ie(O),warn:(...O)=>b&&We(...O)}}function fu(b){return{cache:b?"no-cache":"force-cache"}}function xt(b,O){return v(this,null,function*(){return J(b)?b:du(b,m(p({},O),{autoDestruct:!0}))})}function du(b,O){return v(this,null,function*(){var k,F,G,Q,U;const{scale:Z=1,workerUrl:oe,workerNumber:ue=1}=O||{},se=!!(O!=null&&O.debug),ve=(k=O==null?void 0:O.features)!=null?k:!0,fe=(F=b.ownerDocument)!=null?F:P?window.document:void 0,_e=(Q=(G=b.ownerDocument)==null?void 0:G.defaultView)!=null?Q:P?window:void 0,$e=new Map,Se=m(p({width:0,height:0,quality:1,type:"image/png",scale:Z,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:se,fetch:p({requestInit:fu((U=O==null?void 0:O.fetch)==null?void 0:U.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},O==null?void 0:O.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:ue,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},O),{__CONTEXT__:!0,log:cu(se),node:b,ownerDocument:fe,ownerWindow:_e,dpi:Z===1?null:96*Z,svgStyleElement:ut(fe),svgDefsElement:fe==null?void 0:fe.createElementNS(mt,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(L&&oe&&ue?ue:0)].map(()=>{try{const ze=new Worker(oe);return ze.onmessage=Le=>v(this,null,function*(){var st,Mn,Vn,Ox;const{url:ip,result:Mx}=Le.data;Mx?(Mn=(st=$e.get(ip))==null?void 0:st.resolve)==null||Mn.call(st,Mx):(Ox=(Vn=$e.get(ip))==null?void 0:Vn.reject)==null||Ox.call(Vn,new Error(`Error receiving message from worker: ${ip}`))}),ze.onmessageerror=Le=>{var st,Mn;const{url:Vn}=Le.data;(Mn=(st=$e.get(Vn))==null?void 0:st.reject)==null||Mn.call(st,new Error(`Error receiving message from worker: ${Vn}`))},ze}catch(ze){return We("Failed to new Worker",ze),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[an(fe)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:$e,drawImageCount:0,tasks:[],features:ve,isEnable:ze=>{var Le;return typeof ve=="boolean"?ve:(Le=ve[ze])!=null?Le:!0}});Se.log.time("wait until load"),yield Ca(b,Se.timeout),Se.log.timeEnd("wait until load");const{width:Ee,height:Te}=Nt(b,Se);return Se.width=Ee,Se.height=Te,Se})}function ut(b){if(!b)return;const O=b.createElement("style"),k=O.ownerDocument.createTextNode(`
78
+ `).join("");return x}function o4(e){var t=e.children,n=e.className,r=e.innerRef,o=e.x,a=e.y,i=e.width,s=e.height,l=e.radius,c=e.all,f=c===void 0?!1:c,d=e.top,h=d===void 0?!1:d,g=e.bottom,p=g===void 0?!1:g,m=e.left,x=m===void 0?!1:m,b=e.right,v=b===void 0?!1:b,w=e.topLeft,E=w===void 0?!1:w,S=e.topRight,M=S===void 0?!1:S,N=e.bottomLeft,T=N===void 0?!1:N,O=e.bottomRight,F=O===void 0?!1:O,j=n4(e,t4),H=r4({x:o,y:a,width:i,height:s,radius:l,all:f,top:h,bottom:p,left:x,right:v,topLeft:E,topRight:M,bottomLeft:T,bottomRight:F});return t?u.createElement(u.Fragment,null,t({path:H})):u.createElement("path",Lc({ref:r,className:ct("visx-bar-rounded",n),d:H},j))}function a4(e){return typeof(e==null?void 0:e.x)=="number"?e==null?void 0:e.x:0}function i4(e){return typeof(e==null?void 0:e.y)=="number"?e==null?void 0:e.y:0}function s4(e){return e==null?void 0:e.source}function l4(e){return e==null?void 0:e.target}var c4=["className","children","data","innerRef","path","x","y","source","target"];function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}function u4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function d4(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(a){var i=UP();return i.x(r),i.y(o),i.source(t),i.target(n),i(a)}}function f4(e){var t=e.className,n=e.children,r=e.data,o=e.innerRef,a=e.path,i=e.x,s=i===void 0?i4:i,l=e.y,c=l===void 0?a4:l,f=e.source,d=f===void 0?s4:f,h=e.target,g=h===void 0?l4:h,p=u4(e,c4),m=a||d4({source:d,target:g,x:s,y:c});return n?u.createElement(u.Fragment,null,n({path:m})):u.createElement("path",Fc({ref:o,className:ct("visx-link visx-link-horizontal-diagonal",t),d:m(r)||""},p))}var h4=["AxisComponent"];function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}function p4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function m4(e){var t,n,r,o,a,i,s,l=e.AxisComponent,c=p4(e,h4),f=u.useContext(qt),d=f.theme,h=f.xScale,g=f.yScale,p=f.margin,m=f.width,x=f.height,b=c.orientation,v=u.useMemo(function(){var T,O,F,j;return b==="left"||b==="right"?d==null||(T=d.axisStyles)==null||(O=T.y)==null?void 0:O[b]:d==null||(F=d.axisStyles)==null||(j=F.x)==null?void 0:j[b]},[d,b]),w=c.tickLabelProps,E=u.useMemo(function(){return w||v?function(T,O,F){return Ii({},v==null?void 0:v.tickLabel,{width:b==="left"||b==="right"?p==null?void 0:p[b]:void 0},typeof w=="function"?w(T,O,F):w)}:void 0},[w,v,b,p]),S=b==="bottom"?(x??0)-((t=p==null?void 0:p.bottom)!=null?t:0):b==="top"&&(n=p==null?void 0:p.top)!=null?n:0,M=b==="left"?(r=p==null?void 0:p.left)!=null?r:0:b==="right"?(m??0)-((o=p==null?void 0:p.right)!=null?o:0):0,N=b==="left"||b==="right"?g:h;return N?u.createElement(l,Ii({top:S,left:M,labelProps:v==null?void 0:v.axisLabel,stroke:v==null||(a=v.axisLine)==null?void 0:a.stroke,strokeWidth:v==null||(i=v.axisLine)==null?void 0:i.strokeWidth,tickLength:v==null?void 0:v.tickLength,tickStroke:v==null||(s=v.tickLine)==null?void 0:s.stroke},c,{tickLabelProps:E,scale:N})):null}var Li={};Li.__esModule=!0;var g4=Li.default=x4,v4=Qg(u),b4=Qg(oi),y4=["from","to","fill","className","innerRef"];function Qg(e){return e&&e.__esModule?e:{default:e}}function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(this,arguments)}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function x4(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,a=e.fill,i=a===void 0?"transparent":a,s=e.className,l=e.innerRef,c=w4(e,y4),f=n.x===o.x||n.y===o.y;return v4.default.createElement("line",jc({ref:l,className:(0,b4.default)("visx-line",s),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:i,shapeRendering:f?"crispEdges":"auto"},c))}var Fi={};Fi.__esModule=!0,Fi.default=$4;function $4(e){return"bandwidth"in e?e.bandwidth():0}var S4=nv,Jg=qo(ri),Rg=qo(u),C4=qo(oi),E4=qo(Li),T4=Gg,ev=mm,tv=Ug,M4=qo(Fi),P4=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function qo(e){return e&&e.__esModule?e:{default:e}}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(this,arguments)}function k4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function nv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,b=e.offset,v=e.tickValues,w=k4(e,P4),E=v??(0,tv.getTicks)(a,m),S=(b??0)+(0,M4.default)(a)/2,M=E.map(function(N,T){var O,F=((O=(0,tv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:T,from:new ev.Point({x:0,y:F}),to:new ev.Point({x:i,y:F})}});return Rg.default.createElement(T4.Group,{className:(0,C4.default)("visx-rows",h),top:n,left:o},g?g({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return Rg.default.createElement(E4.default,zc({key:"row-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}nv.propTypes={tickValues:Jg.default.array,width:Jg.default.number.isRequired};var O4=sv,rv=Ko(ri),ov=Ko(u),N4=Ko(oi),_4=Ko(Li),D4=Gg,av=mm,iv=Ug,A4=Ko(Fi),I4=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Ko(e){return e&&e.__esModule?e:{default:e}}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function L4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.height,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.numTicks,p=g===void 0?10:g,m=e.lineStyle,x=e.offset,b=e.tickValues,v=e.children,w=L4(e,I4),E=b??(0,iv.getTicks)(a,p),S=(x??0)+(0,A4.default)(a)/2,M=E.map(function(N,T){var O,F=((O=(0,iv.coerceNumber)(a(N)))!=null?O:0)+S;return{index:T,from:new av.Point({x:F,y:0}),to:new av.Point({x:F,y:i})}});return ov.default.createElement(D4.Group,{className:(0,N4.default)("visx-columns",h),top:n,left:o},v?v({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return ov.default.createElement(_4.default,Bc({key:"column-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}sv.propTypes={tickValues:rv.default.array,height:rv.default.number.isRequired};var F4=["rows","columns","GridRowsComponent","GridColumnsComponent"];function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ji.apply(this,arguments)}function j4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function lv(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,o=r===void 0?!0:r,a=e.GridRowsComponent,i=e.GridColumnsComponent,s=j4(e,F4),l=u.useContext(qt),c=l.theme,f=l.xScale,d=l.yScale,h=l.margin,g=l.innerWidth,p=l.innerHeight,m=c==null?void 0:c.gridStyles;return u.createElement(u.Fragment,null,n&&d&&g!=null&&u.createElement(a,ji({left:h==null?void 0:h.left,lineStyle:m,width:g,scale:d},s)),o&&f&&p!=null&&u.createElement(i,ji({top:h==null?void 0:h.top,lineStyle:m,height:p,scale:f},s)))}lv.propTypes={rows:se.bool,columns:se.bool};var z4={top:"top",left:"left",right:"right",bottom:"bottom"};const It=z4;function B4(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,o=e.range,a=e.tickLabelFontSize,i=e.tickLength,s=r===It.left||r===It.top?-1:1,l,c,f;if(r===It.top||r===It.bottom){var d=r===It.bottom&&typeof n.fontSize=="number"?n.fontSize:0;l=(Number(o[0])+Number(o[o.length-1]))/2,c=s*(i+t+a+d)}else l=s*((Number(o[0])+Number(o[o.length-1]))/2),c=-(i+t),f="rotate("+s*90+")";return{x:l,y:c,transform:f}}function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function W4(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,a=e.tickComponent,i=e.tickLabelProps,s=e.tickStroke,l=s===void 0?"#222":s,c=e.tickTransform,f=e.ticks,d=e.strokeWidth,h=e.tickLineProps;return f.map(function(g){var p,m=g.value,x=g.index,b=g.from,v=g.to,w=g.formattedValue,E=(p=i[x])!=null?p:{},S=Math.max(10,typeof E.fontSize=="number"&&E.fontSize||0),M=v.y+(n&&r!==It.top?S:0);return u.createElement(qn,{key:"visx-tick-"+m+"-"+x,className:ct("visx-axis-tick",o),transform:c},!t&&u.createElement(Zg,Xo({from:b,to:v,stroke:l,strokeWidth:d,strokeLinecap:"square"},h)),a?a(Xo({},E,{x:v.x,y:M,formattedValue:w})):u.createElement(_l,Xo({x:v.x,y:M},E),w))})}function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}var cv={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function V4(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,a=e.hideTicks,i=e.horizontal,s=e.label,l=s===void 0?"":s,c=e.labelClassName,f=e.labelOffset,d=f===void 0?14:f,h=e.labelProps,g=h===void 0?cv:h,p=e.orientation,m=p===void 0?It.bottom:p,x=e.scale,b=e.stroke,v=b===void 0?"#222":b,w=e.strokeDasharray,E=e.strokeWidth,S=E===void 0?1:E,M=e.tickClassName,N=e.tickComponent,T=e.tickLineProps,O=e.tickLabelProps,F=e.tickLength,j=F===void 0?8:F,H=e.tickStroke,G=H===void 0?"#222":H,L=e.tickTransform,C=e.ticks,_=e.ticksComponent,B=_===void 0?W4:_,V=zi({},cv,typeof O=="object"?O:null),D=C.map(function(W){var ne=W.value,Q=W.index;return typeof O=="function"?O(ne,Q,C):V}),A=Math.max.apply(Math,[10].concat(D.map(function(W){return typeof W.fontSize=="number"?W.fontSize:0})));return u.createElement(u.Fragment,null,B({hideTicks:a,horizontal:i,orientation:m,scale:x,tickClassName:M,tickComponent:N,tickLabelProps:D,tickStroke:G,tickTransform:L,ticks:C,strokeWidth:S,tickLineProps:T}),!o&&u.createElement(Zg,{className:ct("visx-axis-line",n),from:t,to:r,stroke:v,strokeWidth:S,strokeDasharray:w}),l&&u.createElement(_l,zi({className:ct("visx-axis-label",c)},B4({labelOffset:d,labelProps:g,orientation:m,range:x.range(),tickLabelFontSize:A,tickLength:j}),g),l))}function H4(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(o){var a=n(o);return typeof a=="number"?a+r:a}}return e}function G4(e){var t=e;return"tickFormat"in t?t.tickFormat():Hg}function Bi(e,t){var n=e.x,r=e.y;return new Sn(t?{x:n,y:r}:{x:r,y:n})}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}var Vc=0;function U4(e){return e===void 0&&(e=Vc),typeof e=="number"?{start:e,end:e}:Wc({start:Vc,end:Vc},e)}var Y4=["children","axisClassName","hideAxisLine","hideTicks","hideZero","innerRef","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function q4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gc(e){var t=e.children,n=t===void 0?V4:t,r=e.axisClassName,o=e.hideAxisLine,a=o===void 0?!1:o,i=e.hideTicks,s=i===void 0?!1:i,l=e.hideZero,c=l===void 0?!1:l,f=e.innerRef,d=e.left,h=d===void 0?0:d,g=e.numTicks,p=g===void 0?10:g,m=e.orientation,x=m===void 0?It.bottom:m,b=e.rangePadding,v=b===void 0?0:b,w=e.scale,E=e.tickFormat,S=e.tickLength,M=S===void 0?8:S,N=e.tickValues,T=e.top,O=T===void 0?0:T,F=q4(e,Y4),j=E??G4(w),H=x===It.left,G=x===It.top,L=G||x===It.bottom,C=H4(w),_=H||G?-1:1,B=w.range(),V=U4(v),D=Bi({x:Number(B[0])+.5-V.start,y:0},L),A=Bi({x:Number(B[B.length-1])+.5+V.end,y:0},L),W=(N??Tc(w,p)).filter(function(Q){return!c||Q!==0&&Q!=="0"}).map(function(Q,re){return{value:Q,index:re}}),ne=W.map(function(Q){var re=Q.value,oe=Q.index,ue=Ec(C(re));return{value:re,index:oe,from:Bi({x:ue,y:0},L),to:Bi({x:ue,y:M*_},L),formattedValue:j(re,oe,W)}});return u.createElement(qn,{className:ct("visx-axis",r),innerRef:f,top:O,left:h},n(Hc({},F,{axisFromPoint:D,axisToPoint:A,hideAxisLine:a,hideTicks:s,hideZero:c,horizontal:L,numTicks:p,orientation:x,rangePadding:v,scale:w,tickFormat:j,tickLength:M,tickPosition:C,tickSign:_,ticks:ne})))}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uc.apply(this,arguments)}function uv(e){return u.createElement(m4,Uc({AxisComponent:Gc},e))}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}function K4(e){return u.createElement(lv,Yc({GridRowsComponent:S4,GridColumnsComponent:O4},e))}var X4=["tooltipOpen"];function Z4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}function qc(e){var t=u.useState(Wi({tooltipOpen:!1},e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(typeof i=="function"?function(s){s.tooltipOpen;var l=Z4(s,X4);return Wi({},i(l),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:i.tooltipLeft,tooltipTop:i.tooltipTop,tooltipData:i.tooltipData})},[r]),a=u.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:a}}function Q4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kc(e,t)}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Kc(e,t)}var dv=function(e){Q4(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?pn.createPortal(this.props.children,this.node):null},t}(u.PureComponent);dv.propTypes={zIndex:se.oneOfType([se.number,se.string])};var J4=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}function R4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xc={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Zc=u.forwardRef(function(e,t){var n=e.className,r=e.top,o=e.left,a=e.offsetLeft,i=a===void 0?10:a,s=e.offsetTop,l=s===void 0?10:s,c=e.style,f=c===void 0?Xc:c,d=e.children,h=e.unstyled,g=h===void 0?!1:h,p=e.applyPositionStyle,m=p===void 0?!1:p,x=R4(e,J4);return u.createElement("div",Vi({ref:t,className:ct("visx-tooltip",n),style:Vi({top:r==null||l==null?r:r+l,left:o==null||i==null?o:o+i},m&&{position:"absolute"},!g&&f)},x),d)});Zc.propTypes={children:se.node,className:se.string,left:se.number,offsetLeft:se.number,offsetTop:se.number,top:se.number,applyPositionStyle:se.bool,unstyled:se.bool},Zc.displayName="Tooltip";const fv=Zc;function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qc.apply(this,arguments)}function ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jc(e,t)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jc(e,t)}var hv={top:0,right:0,bottom:0,left:0,width:0,height:0};function nk(e){var t;return t=function(n){tk(r,n);function r(a){var i;return i=n.call(this,a)||this,i.state={rect:void 0,parentRect:void 0},i.nodeRef=u.createRef(),i.getRects=i.getRects.bind(ek(i)),i}var o=r.prototype;return o.componentDidMount=function(){var i,s=this;this.node=(i=this.nodeRef)!=null&&i.current?this.nodeRef.current:pn.findDOMNode(this),this.setState(function(){return s.getRects()})},o.getRects=function(){if(!this.node)return this.state;var i=this.node,s=i.parentNode,l=i.getBoundingClientRect?i.getBoundingClientRect():hv,c=s!=null&&s.getBoundingClientRect?s.getBoundingClientRect():hv;return{rect:l,parentRect:c}},o.render=function(){return u.createElement(e,Qc({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(u.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var pv=u.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),rk=pv.Provider;pv.Consumer;var ok=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi.apply(this,arguments)}function ak(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mv(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,o=e.offsetLeft,a=o===void 0?10:o,i=e.offsetTop,s=i===void 0?10:i,l=e.parentRect,c=e.rect,f=e.style,d=f===void 0?Xc:f,h=e.top,g=h===void 0?0:h,p=e.unstyled,m=p===void 0?!1:p,x=e.nodeRef,b=ak(e,ok),v,w=!1,E=!1;if(c&&l){var S=r,M=g;if(l.width){var N=S+a+c.width-l.width,T=c.width-S-a;w=N>0&&N>T}else{var O=S+a+c.width-window.innerWidth,F=c.width-S-a;w=O>0&&O>F}if(l.height){var j=M+s+c.height-l.height,H=c.height-M-s;E=j>0&&j>H}else E=M+s+c.height>window.innerHeight;S=w?S-c.width-a:S+a,M=E?M-c.height-s:M+s,S=Math.round(S),M=Math.round(M),v="translate("+S+"px, "+M+"px)"}return u.createElement(fv,Hi({ref:x,style:Hi({left:0,top:0,transform:v},!m&&d)},b),u.createElement(rk,{value:{isFlippedVertically:!E,isFlippedHorizontally:!w}},t))}mv.propTypes={nodeRef:se.oneOfType([se.string,se.func,se.object])};const ik=nk(mv);var sk=["detectBounds","zIndex"],lk=["left","top","detectBounds","zIndex"];function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rc.apply(this,arguments)}function gv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function eu(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,o=t.zIndex,a=gv(t,sk),i=j6(a),s=i[0],l=i[1],c=i[2],f=u.useState(!1),d=f[0],h=f[1];u.useEffect(function(){h(!1)},[]);var g=u.useMemo(function(){return function(p){var m=p.left,x=m===void 0?0:m,b=p.top,v=b===void 0?0:b,w=p.detectBounds,E=p.zIndex,S=gv(p,lk),M=w??r,N=E??o,T=M?ik:fv,O=d?0:window.scrollX,F=d?0:window.scrollY,j=x+(l.left||0)+O,H=v+(l.top||0)+F;return u.createElement(dv,{zIndex:N},u.createElement(T,Rc({left:j,top:H},S)))}},[r,o,l.left,l.top,d]);return{containerRef:s,containerBounds:l,forceRefreshBounds:c,TooltipInPortal:g}}var ck=u.createContext(null);const Zo=ck;var uk=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],dk=["x","y"];function vv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}var tu={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},fk={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function bv(e){var t=u.useContext(qt)||{},n=t.theme;return u.createElement("circle",cn({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}bv.propTypes={isNearestDatum:se.bool.isRequired};function hk(e){return u.createElement(bv,e)}function yv(e){var t,n,r,o,a,i,s,l,c,f,d,h,g,p=e.debounce,m=e.detectBounds,x=e.horizontalCrosshairStyle,b=e.glyphStyle,v=e.renderTooltip,w=e.renderGlyph,E=w===void 0?hk:w,S=e.resizeObserverPolyfill,M=e.scroll,N=M===void 0?!0:M,T=e.showDatumGlyph,O=T===void 0?!1:T,F=e.showHorizontalCrosshair,j=F===void 0?!1:F,H=e.showSeriesGlyphs,G=H===void 0?!1:H,L=e.showVerticalCrosshair,C=L===void 0?!1:L,_=e.snapTooltipToDatumX,B=_===void 0?!1:_,V=e.snapTooltipToDatumY,D=V===void 0?!1:V,A=e.verticalCrosshairStyle,W=e.zIndex,ne=vv(e,uk),Q=u.useContext(qt)||{},re=Q.colorScale,oe=Q.theme,ue=Q.innerHeight,X=Q.innerWidth,le=Q.margin,U=Q.xScale,Z=Q.yScale,ie=Q.dataRegistry,k=Q.resizeObserverPolyfill,te=u.useContext(Zo),ae=eu({debounce:p,detectBounds:m,polyfill:k||S,scroll:N,zIndex:W}),me=ae.containerRef,ye=ae.TooltipInPortal,Ee=ae.forceRefreshBounds,Ke=u.useCallback(function(it){var Tt;me((Tt=it==null?void 0:it.parentElement)!=null?Tt:null)},[me]),Xe=te!=null&&te.tooltipOpen?v(cn({},te,{colorScale:re})):null,ot=(te==null?void 0:te.tooltipOpen)&&Xe!=null,vt=u.useRef(!1);u.useEffect(function(){ot&&!vt.current&&Ee(),vt.current=ot},[ot,Ee]);var Kt=te==null?void 0:te.tooltipLeft,je=te==null?void 0:te.tooltipTop,cr=U?Pc(U):0,Qr=Z?Pc(Z):0,_n=u.useCallback(function(it,Tt){var dn,fn,yt=ie==null?void 0:ie.get(it),fr=yt==null?void 0:yt.xAccessor,hr=yt==null?void 0:yt.yAccessor,to=U&&fr?(dn=Number(U(fr(Tt)))+cr/2)!=null?dn:0:void 0,no=Z&&hr?(fn=Number(Z(hr(Tt)))+Qr/2)!=null?fn:0:void 0;return{left:to,top:no}},[ie,cr,Qr,U,Z]),Ze=te==null||(t=te.tooltipData)==null?void 0:t.nearestDatum,ft=(n=Ze==null?void 0:Ze.key)!=null?n:"";if(ot&&Ze&&(B||D)){var at=_n(ft,Ze.datum),Ft=at.left,un=at.top;Kt=B&&Ct(Ft)?Ft:Kt,je=D&&Ct(un)?un:je}var jt=[];if(ot&&(O||G)){var Jr,Rr=Number((Jr=b==null?void 0:b.radius)!=null?Jr:4);if(G){var ur,eo;Object.values((ur=te==null||(eo=te.tooltipData)==null?void 0:eo.datumByKey)!=null?ur:{}).forEach(function(it){var Tt,dn,fn,yt=it.key,fr=it.datum,hr=it.index,to=(Tt=(dn=re==null?void 0:re(yt))!=null?dn:oe==null||(fn=oe.htmlLabel)==null?void 0:fn.color)!=null?Tt:"#222",no=_n(yt,fr),ss=no.left,ls=no.top;!Ct(ss)||!Ct(ls)||jt.push({key:yt,color:to,datum:fr,index:hr,size:Rr,x:ss,y:ls,glyphStyle:b,isNearestDatum:Ze?Ze.key===yt:!1})})}else if(Ze){var dr=_n(ft,Ze.datum),Et=dr.left,zt=dr.top;if(Ct(Et)&&Ct(zt)){var Dn,An,ra,os,as,bt,is=(Dn=(An=(ra=(os=ft&&(re==null?void 0:re(ft)))!=null?os:null)!=null?ra:oe==null||(as=oe.gridStyles)==null?void 0:as.stroke)!=null?An:oe==null||(bt=oe.htmlLabel)==null?void 0:bt.color)!=null?Dn:"#222";jt.push({key:ft,color:is,datum:Ze.datum,index:Ze.index,size:Rr,x:Et,y:zt,glyphStyle:b,isNearestDatum:!0})}}}return u.createElement(u.Fragment,null,u.createElement("svg",{ref:Ke,style:fk}),ot&&u.createElement(u.Fragment,null,C&&u.createElement(ye,{className:"visx-crosshair visx-crosshair-vertical",left:Kt,top:le==null?void 0:le.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{width:"1",height:ue,overflow:"visible"},u.createElement("line",cn({x1:0,x2:0,y1:0,y2:ue,strokeWidth:1.5,stroke:(r=(o=oe==null||(a=oe.gridStyles)==null?void 0:a.stroke)!=null?o:oe==null||(i=oe.htmlLabel)==null?void 0:i.color)!=null?r:"#222"},A)))),j&&u.createElement(ye,{className:"visx-crosshair visx-crosshair-horizontal",left:le==null?void 0:le.left,top:je,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{width:X,height:"1",overflow:"visible"},u.createElement("line",cn({x1:0,x2:X,y1:0,y2:0,strokeWidth:1.5,stroke:(s=(l=oe==null||(c=oe.gridStyles)==null?void 0:c.stroke)!=null?l:oe==null||(f=oe.htmlLabel)==null?void 0:f.color)!=null?s:"#222"},x)))),jt.map(function(it,Tt){var dn=it.x,fn=it.y,yt=vv(it,dk);return u.createElement(ye,{key:Tt,className:"visx-tooltip-glyph",left:dn,top:fn,offsetLeft:0,offsetTop:0,detectBounds:!1,style:tu},u.createElement("svg",{overflow:"visible"},E(cn({x:0,y:0},yt))))}),u.createElement(ye,cn({left:Kt,top:je,style:cn({},Xc,{background:(d=oe==null?void 0:oe.backgroundColor)!=null?d:"white",boxShadow:"0 1px 2px "+(oe!=null&&(h=oe.htmlLabel)!=null&&h.color?(oe==null||(g=oe.htmlLabel)==null?void 0:g.color)+"55":"#22222255")},oe==null?void 0:oe.htmlLabel)},ne),Xe)))}yv.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};function wv(e){var t=u.useContext(Zo);return t!=null&&t.tooltipOpen?u.createElement(yv,e):null}wv.propTypes={renderTooltip:se.func.isRequired,renderGlyph:se.func,snapTooltipToDatumX:se.bool,snapTooltipToDatumY:se.bool,showVerticalCrosshair:se.bool,showHorizontalCrosshair:se.bool,showDatumGlyph:se.bool,showSeriesGlyphs:se.bool};var pk=si,mk=function(){return pk.Date.now()},gk=mk,vk=/\s/;function bk(e){for(var t=e.length;t--&&vk.test(e.charAt(t)););return t}var yk=bk,wk=yk,xk=/^\s+/;function $k(e){return e&&e.slice(0,wk(e)+1).replace(xk,"")}var Sk=$k;function Ck(e){return e!=null&&typeof e=="object"}var Ek=Ck,Tk=om,Mk=Ek,Pk="[object Symbol]";function kk(e){return typeof e=="symbol"||Mk(e)&&Tk(e)==Pk}var Ok=kk,Nk=Sk,xv=li,_k=Ok,$v=0/0,Dk=/^[-+]0x[0-9a-f]+$/i,Ak=/^0b[01]+$/i,Ik=/^0o[0-7]+$/i,Lk=parseInt;function Fk(e){if(typeof e=="number")return e;if(_k(e))return $v;if(xv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nk(e);var n=Ak.test(e);return n||Ik.test(e)?Lk(e.slice(2),n?2:8):Dk.test(e)?$v:+e}var jk=Fk,zk=li,nu=gk,Sv=jk,Bk="Expected a function",Wk=Math.max,Vk=Math.min;function Hk(e,t,n){var r,o,a,i,s,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Bk);t=Sv(t)||0,zk(n)&&(f=!!n.leading,d="maxWait"in n,a=d?Wk(Sv(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function g(M){var N=r,T=o;return r=o=void 0,c=M,i=e.apply(T,N),i}function p(M){return c=M,s=setTimeout(b,t),f?g(M):i}function m(M){var N=M-l,T=M-c,O=t-N;return d?Vk(O,a-T):O}function x(M){var N=M-l,T=M-c;return l===void 0||N>=t||N<0||d&&T>=a}function b(){var M=nu();if(x(M))return v(M);s=setTimeout(b,m(M))}function v(M){return s=void 0,h&&r?g(M):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function E(){return s===void 0?i:v(nu())}function S(){var M=nu(),N=x(M);if(r=arguments,o=this,l=M,N){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),i}return S.cancel=w,S.flush=E,S}var Cv=Hk;const Ev=pr(Cv);var Gk=Pv,Pn=Mv(ri),Uk=Mv(Cv),Yr=qk(u),Yk=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Tv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Tv=function(o){return o?n:t})(e)}function qk(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Tv(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Mv(e){return e&&e.__esModule?e:{default:e}}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gi.apply(this,arguments)}function Kk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xk=[],Zk={width:"100%",height:"100%"};function Pv(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?Xk:a,s=e.parentSizeStyles,l=s===void 0?Zk:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=Kk(e,Yk),g=(0,Yr.useRef)(null),p=(0,Yr.useRef)(0),m=(0,Yr.useState)({width:0,height:0,top:0,left:0}),x=m[0],b=m[1],v=(0,Yr.useMemo)(function(){var w=Array.isArray(i)?i:[i];return(0,Uk.default)(function(E){b(function(S){var M=Object.keys(S),N=M.filter(function(O){return S[O]!==E[O]}),T=N.every(function(O){return w.includes(O)});return T?S:E})},o,{leading:f})},[o,f,i]);return(0,Yr.useEffect)(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(M){var N,T=(N=M==null?void 0:M.contentRect)!=null?N:{},O=T.left,F=T.top,j=T.width,H=T.height;p.current=window.requestAnimationFrame(function(){v({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),v.cancel()}},[v,d]),Yr.default.createElement("div",Gi({style:l,ref:g,className:t},h),n(Gi({},x,{ref:g.current,resize:v})))}Pv.propTypes={className:Pn.default.string,debounceTime:Pn.default.number,enableDebounceLeadingCall:Pn.default.bool,ignoreDimensions:Pn.default.oneOfType([Pn.default.any,Pn.default.arrayOf(Pn.default.any)]),children:Pn.default.func.isRequired};var Qk=u.createContext(null);const kv=Qk;function kn(e,t,n){var r=u.useContext(kv),o=u.useRef();o.current=n;var a=u.useCallback(function(i,s,l){r&&r.emit(i,{event:s,svgPoint:R6(s),source:l})},[r]);return u.useEffect(function(){if(r&&e&&t){var i=function(l){var c;(!o.current||l!=null&&l.source&&(c=o.current)!=null&&c.includes(l.source))&&t(l)};return r.on(e,i),function(){return r==null?void 0:r.off(e,i)}}},[r,e,t]),r?a:null}function Jk(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function Rk(e){var t=e.children,n=u.useMemo(function(){return Jk()},[]);return u.createElement(kv.Provider,{value:n},t)}function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(this,arguments)}function Ov(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,o=qc(void 0),a=o.tooltipOpen,i=o.tooltipLeft,s=o.tooltipTop,l=o.tooltipData,c=o.updateTooltip,f=o.hideTooltip,d=u.useRef(null);function h(){d.current&&(d.current.cancel(),d.current=null)}u.useEffect(function(){return h},[]);var g=u.useRef(function(x){var b=x.svgPoint,v=x.index,w=x.key,E=x.datum,S=x.distanceX,M=x.distanceY;h();var N=Ct(S)?S:1/0,T=Ct(M)?M:1/0,O=Math.sqrt(Math.pow(N,2)+Math.pow(T,2));c(function(F){var j,H,G,L=F.tooltipData,C=L!=null&&L.nearestDatum&&Ct(L.nearestDatum.distance)?L.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:b==null?void 0:b.x,tooltipTop:b==null?void 0:b.y,tooltipData:{nearestDatum:((j=L==null||(H=L.nearestDatum)==null?void 0:H.key)!=null?j:"")!==w&&C<O?L==null?void 0:L.nearestDatum:{key:w,index:v,datum:E,distance:O},datumByKey:ru({},L==null?void 0:L.datumByKey,(G={},G[w]={datum:E,index:v,key:w},G))}}})}),p=u.useCallback(function(){d.current=Ev(f,n),d.current()},[f,n]),m=u.useMemo(function(){return{tooltipOpen:a,tooltipLeft:i,tooltipTop:s,tooltipData:l,updateTooltip:c,showTooltip:g.current,hideTooltip:p}},[p,l,i,a,s,c]);return u.createElement(Zo.Provider,{value:m},r)}Ov.propTypes={hideTooltipDebounceMs:se.number,children:se.node.isRequired};const eO=mr(X7);var Qo={},ou={};ou.__esModule=!0,ou.default=tO;function tO(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var au={};au.__esModule=!0,au.default=nO;function nO(e,t){t.range&&("padding"in e,e.range(t.range))}var iu={};iu.__esModule=!0,iu.default=rO;function rO(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}var su={};su.__esModule=!0,su.default=oO;function oO(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}var lu={};lu.__esModule=!0,lu.default=aO;function aO(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}var cu={};cu.__esModule=!0,cu.default=iO;function iO(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}var uu={};uu.__esModule=!0,uu.default=sO;function sO(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var du={},fu={};const Nv=mr(rP);fu.__esModule=!0,fu.default=lO;var On=Nv,_v={lab:On.interpolateLab,hcl:On.interpolateHcl,"hcl-long":On.interpolateHclLong,hsl:On.interpolateHsl,"hsl-long":On.interpolateHslLong,cubehelix:On.interpolateCubehelix,"cubehelix-long":On.interpolateCubehelixLong,rgb:On.interpolateRgb};function lO(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return _v[e]}var t=e.type,n=e.gamma,r=_v[t];return typeof n>"u"?r:r.gamma(n)}du.__esModule=!0,du.default=dO;var cO=uO(fu);function uO(e){return e&&e.__esModule?e:{default:e}}function dO(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=(0,cO.default)(t.interpolate);e.interpolate(n)}}var hu={};const fO=mr(iP);var pu={};pu.__esModule=!0,pu.default=mO;var hO=new Date(Date.UTC(2020,1,2,3,4,5)),pO="%Y-%m-%d %H:%M";function mO(e){var t=e.tickFormat(1,pO)(hO);return t==="2020-02-02 03:04"}hu.__esModule=!0,hu.default=bO;var ut=fO,gO=vO(pu);function vO(e){return e&&e.__esModule?e:{default:e}}var Dv={day:ut.timeDay,hour:ut.timeHour,minute:ut.timeMinute,month:ut.timeMonth,second:ut.timeSecond,week:ut.timeWeek,year:ut.timeYear},Av={day:ut.utcDay,hour:ut.utcHour,minute:ut.utcMinute,month:ut.utcMonth,second:ut.utcSecond,week:ut.utcWeek,year:ut.utcYear};function bO(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=(0,gO.default)(r);if(typeof n=="string")r.nice(o?Av[n]:Dv[n]);else{var a=n.interval,i=n.step,s=(o?Av[a]:Dv[a]).every(i);s!=null&&r.nice(s)}}}}var mu={};mu.__esModule=!0,mu.default=yO;function yO(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}var gu={};gu.__esModule=!0,gu.default=wO;function wO(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var vu={};vu.__esModule=!0,vu.default=$O;var xO=Nv;function $O(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(xO.interpolateRound))}var bu={};bu.__esModule=!0,bu.default=SO;function SO(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}var yu={};yu.__esModule=!0,yu.default=CO;function CO(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],a=o<r,i=a?[o,r]:[r,o],s=i[0],l=i[1],c=[Math.min(0,s),Math.max(0,l)];e.domain(a?c.reverse():c)}}Qo.__esModule=!0,Qo.ALL_OPERATORS=void 0,Qo.default=BO;var EO=dt(ou),TO=dt(au),MO=dt(iu),PO=dt(su),kO=dt(lu),OO=dt(cu),NO=dt(uu),_O=dt(du),DO=dt(hu),AO=dt(mu),IO=dt(gu),LO=dt(vu),FO=dt(bu),jO=dt(yu);function dt(e){return e&&e.__esModule?e:{default:e}}var Iv=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];Qo.ALL_OPERATORS=Iv;var zO={domain:EO.default,nice:DO.default,zero:jO.default,interpolate:_O.default,round:LO.default,align:MO.default,base:PO.default,clamp:kO.default,constant:OO.default,exponent:NO.default,padding:AO.default,range:TO.default,reverse:IO.default,unknown:FO.default};function BO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=Iv.filter(function(a){return r.has(a)});return function(i,s){return typeof s<"u"&&o.forEach(function(l){zO[l](i,s)}),i}}var WO=YO,VO=eO,HO=GO(Qo);function GO(e){return e&&e.__esModule?e:{default:e}}var UO=(0,HO.default)("domain","range","reverse","unknown");function YO(e){return UO((0,VO.scaleOrdinal)(),e)}var Nn={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},Jo=Nn.gray,wu=Jo[7],qO=[Nn.cyan[9],Nn.cyan[3],Nn.yellow[5],Nn.red[4],Nn.grape[8],Nn.grape[5],Nn.pink[9]];function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(this,arguments)}var xu={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function KO(e){var t,n,r,o,a,i,s=Fe({},xu,{fill:wu,stroke:"none"},e.svgLabelBig),l=Fe({},xu,{fontWeight:200,fontSize:11,fill:wu,stroke:"none"},e.svgLabelSmall),c=Fe({color:(t=(n=(r=(o=e.htmlLabel)==null?void 0:o.color)!=null?r:(a=e.svgLabelBig)==null?void 0:a.fill)!=null?n:(i=e.svgLabelSmall)==null?void 0:i.fill)!=null?t:wu},xu,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Fe({},c),svgLabelSmall:Fe({},l),svgLabelBig:Fe({},s),gridStyles:Fe({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Fe({},s,{dy:"-0.25em"}),axisLine:Fe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Fe({},l,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Fe({},s,{dx:"-1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Fe({},s,{dx:"1.25em"}),axisLine:Fe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Fe({},l,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Fe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}const XO=KO({backgroundColor:"#fff",colors:qO,tickLength:4,svgLabelSmall:{fill:Jo[7]},svgLabelBig:{fill:Jo[9]},gridColor:Jo[5],gridColorDark:Jo[9]});var ZO=u.createContext(XO);const QO=ZO;var JO=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){i.key in o.registry&&o.registry[i.key]!=null&&console.debug("Overriding data registry key",i.key),o.registry[i.key]=i,o.registryKeys=Object.keys(o.registry)})},t.unregisterData=function(r){var o=this,a=Array.isArray(r)?r:[r];a.forEach(function(i){delete o.registry[i],o.registryKeys=Object.keys(o.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function RO(){var e=u.useState(Math.random()),t=e[1],n=u.useMemo(function(){return new JO},[]);return u.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(o){return n.get(o)},keys:function(){return n.keys()}}},[n])}var $u={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function e9(e){var t=u.useState({width:(e==null?void 0:e.width)==null?$u.width:e.width,height:(e==null?void 0:e.height)==null?$u.height:e.height,margin:(e==null?void 0:e.margin)==null?$u.margin:e.margin}),n=t[0],r=t[1],o=u.useCallback(function(a){(a.width!==n.width||a.height!==n.height||a.margin.left!==n.margin.left||a.margin.right!==n.margin.right||a.margin.top!==n.margin.top||a.margin.bottom!==n.margin.bottom)&&r(a)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}function Ui(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t9(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Su(e){let t,n,r;e.length!==2?(t=Ui,n=(s,l)=>Ui(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ui||e===t9?e:n9,n=e,r=e);function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function i(s,l,c=0,f=s.length){const d=o(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:i,right:a}}function n9(){return 0}function r9(e){return e===null?NaN:+e}const o9=Su(Ui).left;Su(r9).center;function Lv(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function a9(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(o);++r<o;)a[r]=e+r*n;return a}function Cu(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}function i9(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,a=e.yScaleConfig,i=t.keys(),s=n[0],l=n[1],c=o[0],f=o[1],d=u.useMemo(function(){var g=i.map(function(b){return t.get(b)}),p=g.reduce(function(b,v){return v?b.concat(v.data.map(function(w){return v.xAccessor(w)})):b},[]);if(p.length!==0){var m=Cu(r)?p:Lv(p),x=Mc(r)?Yo(qr({range:[s,l],domain:m,zero:!0},r)):Yo(qr({range:[s,l],domain:m},r));return g.forEach(function(b){b!=null&&b.xScale&&(x=b.xScale(x))}),x}},[t,r,i,s,l]),h=u.useMemo(function(){var g=i.map(function(b){return t.get(b)}),p=g.reduce(function(b,v){return v?b.concat(v.data.map(function(w){return v.yAccessor(w)})):b},[]);if(p.length!==0){var m=Cu(a)?p:Lv(p),x=Mc(a)?Yo(qr({range:[c,f],domain:m,zero:!0},a)):Yo(qr({range:[c,f],domain:m},a));return g.forEach(function(b){b!=null&&b.yScale&&(x=b.yScale(x))}),x}},[t,a,i,c,f]);return{xScale:d,yScale:h}}function Fv(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,a=e.children,i=e.horizontal,s=i===void 0?"auto":i,l=e.resizeObserverPolyfill,c=u.useContext(QO),f=n||c,d=e9(t),h=d[0],g=h.width,p=h.height,m=h.margin,x=d[1],b=Math.max(0,g-m.left-m.right),v=Math.max(0,p-m.top-m.bottom),w=RO(),E=i9({dataRegistry:w,xScaleConfig:r,yScaleConfig:o,xRange:[m.left,Math.max(0,g-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),S=E.xScale,M=E.yScale,N=w.keys(),T=u.useMemo(function(){return WO({domain:N,range:f.colors})},[N,f.colors]),O=s==="auto"?Cu(o)||o.type==="time"||o.type==="utc":s,F=u.useMemo(function(){return{dataRegistry:w,registerData:w.registerData,unregisterData:w.unregisterData,xScale:S,yScale:M,colorScale:T,theme:f,width:g,height:p,margin:m,innerWidth:b,innerHeight:v,setDimensions:x,horizontal:O,resizeObserverPolyfill:l}},[T,w,p,O,v,b,m,x,f,g,S,M,l]);return u.createElement(qt.Provider,{value:F},a)}Fv.propTypes={children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])])};function jv(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,o=e.onPointerMove,a=o===void 0?!0:o,i=e.onPointerUp,s=i===void 0?!0:i,l=e.onPointerDown,c=l===void 0?!0:l,f=e.onFocus,d=f===void 0?!1:f,h=e.onBlur,g=h===void 0?!1:h,p=kn(),m=u.useCallback(function(S){return p==null?void 0:p("pointermove",S,t)},[p,t]),x=u.useCallback(function(S){return p==null?void 0:p("pointerout",S,t)},[p,t]),b=u.useCallback(function(S){return p==null?void 0:p("pointerup",S,t)},[p,t]),v=u.useCallback(function(S){return p==null?void 0:p("pointerdown",S,t)},[p,t]),w=u.useCallback(function(S){return p==null?void 0:p("focus",S,t)},[p,t]),E=u.useCallback(function(S){return p==null?void 0:p("blur",S,t)},[p,t]);return{onPointerMove:a?m:void 0,onFocus:d?w:void 0,onBlur:g?E:void 0,onPointerOut:r?x:void 0,onPointerUp:s?b:void 0,onPointerDown:c?v:void 0}}var s9="GLYPHSERIES_EVENT_SOURCE",Eu="XYCHART_EVENT_SOURCE";function zv(e){return!!e&&("clientX"in e||"changedTouches"in e)}function l9(e){return!!e&&!zv(e)}function Bv(e){var t=e.scale,n=e.accessor,r=e.scaledValue,o=e.data,a=t,i,s;if("invert"in a&&typeof a.invert=="function"){var l=Su(n).left,c=Number(a.invert(r)),f=l(o,c),d=o[f-1],h=o[f];i=!d||Math.abs(c-n(d))>Math.abs(c-n(h))?h:d,s=i===d?f-1:f}else if("step"in a&&typeof a.step<"u"){var g=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(M,N){return M-N}),x=a9(m[0],m[1],a.step()),b=o9(x,r),v=p[0]<p[1]?g:g.reverse(),w=v[b-1],E=o.findIndex(function(M){return String(n(M))===String(w)});i=o[E],s=E}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(i==null||s==null)return null;var S=Math.abs(Number(a(n(i)))-r);return{datum:i,index:s,distance:S}}function c9(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,a=e.point,i=e.data;if(!a)return null;var s=Bv({scale:t,accessor:n,scaledValue:a.x,data:i});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(o(s.datum)))-a.y)}:null}function u9(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,a=e.point,i=e.data;if(!a)return null;var s=Bv({scale:t,accessor:n,scaledValue:a.y,data:i});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(o(s.datum)))-a.x)}:null}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}var Mu="__POINTER_EVENTS_ALL",Yi="__POINTER_EVENTS_NEAREST";function Wv(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,a=e.onPointerMove,i=e.onPointerOut,s=e.onPointerUp,l=e.onPointerDown,c=e.allowedSources,f=u.useContext(qt),d=f.width,h=f.height,g=f.horizontal,p=f.dataRegistry,m=f.xScale,x=f.yScale,b=n||(g?u9:c9),v=u.useCallback(function(O){var F=O||{},j=F.svgPoint,H=F.event,G={},L=null,C=1/0;if(O&&H&&j&&d&&h&&m&&x){var _,B=t===Yi||t===Mu,V=B?(_=p==null?void 0:p.keys())!=null?_:[]:Array.isArray(t)?t:[t];V.forEach(function(A){var W=p==null?void 0:p.get(A);if(W){var ne=b({dataKey:A,data:W.data,height:h,point:j,width:d,xAccessor:W.xAccessor,xScale:m,yAccessor:W.yAccessor,yScale:x});if(ne&&(G[A]=Tu({key:A,svgPoint:j,event:H},ne),t===Yi)){var Q,re,oe=Math.sqrt(((Q=ne.distanceX)!=null?Q:Math.pow(1/0,2))+((re=ne.distanceY)!=null?re:Math.pow(1/0,2)));L=oe<C?G[A]:L,C=Math.min(C,oe)}}});var D=t===Yi?[L]:t===Mu||Array.isArray(t)?Object.values(G):[G[t]];return D.filter(function(A){return A})}return[]},[t,p,m,x,d,h,b]),w=u.useCallback(function(O){a&&v(O).forEach(function(F){return a(F)})},[v,a]),E=u.useCallback(function(O){s&&v(O).forEach(function(F){return s(F)})},[v,s]),S=u.useCallback(function(O){l&&v(O).forEach(function(F){return l(F)})},[v,l]),M=u.useCallback(function(O){o&&v(O).forEach(function(F){return o(F)})},[v,o]),N=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&zv(F)&&i&&i(F)},[i]),T=u.useCallback(function(O){var F=O==null?void 0:O.event;F&&l9(F)&&r&&r(F)},[r]);kn("pointermove",a?w:void 0,c),kn("pointerout",i?N:void 0,c),kn("pointerup",s?E:void 0,c),kn("pointerdown",l?S:void 0,c),kn("focus",o?M:void 0,c),kn("blur",r?T:void 0,c)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qi.apply(this,arguments)}var d9={top:50,right:50,bottom:50,left:50},f9=[Eu];function Kr(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,o=r===void 0?!0:r,a=e.children,i=e.height,s=e.horizontal,l=e.margin,c=l===void 0?d9:l,f=e.onPointerMove,d=e.onPointerOut,h=e.onPointerUp,g=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,x=e.theme,b=e.width,v=e.xScale,w=e.yScale,E=e.resizeObserverPolyfill,S=u.useContext(qt),M=S.setDimensions,N=S.resizeObserverPolyfill,T=u.useContext(Zo),O=kn();u.useEffect(function(){M&&b!=null&&i!=null&&b>0&&i>0&&M({width:b,height:i,margin:c})},[M,b,i,c]);var F=jv({source:Eu});return Wv({dataKey:m==="nearest"?Yi:Mu,onPointerMove:f,onPointerOut:d,onPointerUp:h,onPointerDown:g,allowedSources:f9}),M?b==null||i==null?u.createElement(Gk,{resizeObserverPolyfill:N},function(j){return u.createElement(Kr,qi({},e,{width:e.width==null?j.width:e.width,height:e.height==null?j.height:e.height}))}):T==null?u.createElement(Ov,null,u.createElement(Kr,e)):O==null?u.createElement(Rk,null,u.createElement(Kr,e)):b<=0||i<=0?(console.info("XYChart has a zero width or height, bailing",{width:b,height:i}),null):u.createElement("svg",{width:b,height:i,"aria-label":n},a,o&&u.createElement("rect",qi({x:c.left,y:c.top,width:b-c.left-c.right,height:i-c.top-c.bottom,fill:"transparent"},F))):!v||!w?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):u.createElement(Fv,{xScale:v,yScale:w,theme:x,initialDimensions:{width:b,height:i,margin:c},horizontal:s,resizeObserverPolyfill:E},u.createElement(Kr,e))}Kr.propTypes={accessibilityLabel:se.string,captureEvents:se.bool,width:se.number,height:se.number,children:se.node.isRequired,horizontal:se.oneOfType([se.bool,se.oneOf(["auto"])]),onPointerMove:se.func,onPointerOut:se.func,onPointerUp:se.func,onPointerDown:se.func,pointerEventsDataKey:se.oneOf(["all","nearest"])};function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}function h9(e){function t(n){var r=n.dataKey,o=n.data,a=n.xAccessor,i=n.yAccessor,s=u.useContext(qt),l=s.xScale,c=s.yScale,f=s.dataRegistry;u.useEffect(function(){return f&&f.registerData({key:r,data:o,xAccessor:a,yAccessor:i}),function(){return f==null?void 0:f.unregisterData(r)}},[f,r,o,a,i]);var d=f==null?void 0:f.get(r);if(!l||!c||!d)return null;var h=e;return u.createElement(h,Pu({},n,{xScale:l,yScale:c,data:d.data,xAccessor:d.xAccessor,yAccessor:d.yAccessor}))}return t}function Vv(e,t,n){return n===void 0&&(n="center"),function(r){var o=e(t(r));if(Ct(o)){var a=(n==="start"?0:Pc(e))/(n==="center"?2:1);return o+a}return NaN}}function p9(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,a=e.onBlur,i=e.onFocus,s=e.onPointerMove,l=e.onPointerOut,c=e.onPointerUp,f=e.onPointerDown,d=e.source,h=e.allowedSources,g=(t=u.useContext(Zo))!=null?t:{},p=g.showTooltip,m=g.hideTooltip,x=u.useCallback(function(S){p(S),s&&s(S)},[p,s]),b=u.useCallback(function(S){p(S),i&&i(S)},[p,i]),v=u.useCallback(function(S){m(),S&&l&&l(S)},[m,l]),w=u.useCallback(function(S){m(),S&&a&&a(S)},[m,a]),E=u.useCallback(function(S){p(S),f&&f(S)},[p,f]);return Wv({dataKey:n,findNearestDatum:o,onBlur:r?w:void 0,onFocus:r?b:void 0,onPointerMove:r?x:void 0,onPointerOut:r?v:void 0,onPointerUp:r?c:void 0,onPointerDown:r?E:void 0,allowedSources:h}),jv({source:d,onBlur:!!a&&r,onFocus:!!i&&r,onPointerMove:!!s&&r,onPointerOut:!!l&&r,onPointerUp:!!c&&r,onPointerDown:!!f&&r})}function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ku.apply(this,arguments)}function Hv(e){var t,n,r,o=e.colorAccessor,a=e.data,i=e.dataKey,s=e.onBlur,l=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,g=e.enableEvents,p=g===void 0?!0:g,m=e.renderGlyphs,x=e.size,b=x===void 0?8:x,v=e.xAccessor,w=e.xScale,E=e.yAccessor,S=e.yScale,M=u.useContext(qt),N=M.colorScale,T=M.theme,O=M.horizontal,F=u.useMemo(function(){return Vv(w,v)},[w,v]),j=u.useMemo(function(){return Vv(S,E)},[S,E]),H=(t=(n=N==null?void 0:N(i))!=null?n:T==null||(r=T.colors)==null?void 0:r[0])!=null?t:"#222",G=s9+"-"+i,L=p9({dataKey:i,enableEvents:p,onBlur:s,onFocus:l,onPointerMove:c,onPointerOut:f,onPointerUp:d,onPointerDown:h,source:G,allowedSources:[Eu,G]}),C=u.useMemo(function(){return a.map(function(_,B){var V,D=F(_);if(!Ct(D))return null;var A=j(_);return Ct(A)?{key:""+B,x:D,y:A,color:(V=o==null?void 0:o(_,B))!=null?V:H,size:typeof b=="function"?b(_):b,datum:_}:null}).filter(function(_){return _})},[H,o,a,F,j,b]);return u.createElement(u.Fragment,null,m(ku({glyphs:C,xScale:w,yScale:S,horizontal:O},L)))}Hv.propTypes={colorAccessor:se.func,size:se.oneOfType([se.number,se.func]),renderGlyphs:se.func.isRequired};const m9=h9(Hv);function g9(e){var t=e.key,n=e.color,r=e.x,o=e.y,a=e.size,i=e.onBlur,s=e.onFocus,l=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp;return u.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:i||s?0:void 0,fill:n,r:a/2,cx:r,cy:o,onBlur:i,onFocus:s,onPointerMove:l,onPointerOut:c,onPointerUp:f})}var v9=["renderGlyph"];function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ki.apply(this,arguments)}function b9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function y9(e){var t=e.renderGlyph,n=t===void 0?g9:t,r=b9(e,v9),o=u.useCallback(function(a){var i=a.glyphs,s=a.onPointerMove,l=a.onPointerOut,c=a.onPointerUp,f=a.onFocus,d=a.onBlur;return i.map(function(h){return u.createElement(u.Fragment,{key:h.key},n(Ki({},h,{onPointerMove:s,onPointerOut:l,onPointerUp:c,onFocus:f,onBlur:d})))})},[n]);return u.createElement(m9,Ki({},r,{renderGlyphs:o}))}function Gv(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=e.children;return u.createElement(qn,{className:ct("visx-glyph",a),top:n,left:o},i)}Gv.propTypes={top:se.number,left:se.number,className:se.string,children:se.node};var w9=["top","left","className"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}function x9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Nu(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.className,i=x9(e,w9);return u.createElement(Gv,{top:n,left:o},u.createElement("circle",Ou({className:ct("visx-glyph-dot",a)},i)))}Nu.propTypes={className:se.string,top:se.number,left:se.number,r:se.number,cx:se.number,cy:se.number};var $9=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xi.apply(this,arguments)}function S9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var C9=[],E9={width:"100%",height:"100%"};function Zi(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,a=e.ignoreDimensions,i=a===void 0?C9:a,s=e.parentSizeStyles,l=s===void 0?E9:s,c=e.enableDebounceLeadingCall,f=c===void 0?!0:c,d=e.resizeObserverPolyfill,h=S9(e,$9),g=u.useRef(null),p=u.useRef(0),m=u.useState({width:0,height:0,top:0,left:0}),x=m[0],b=m[1],v=u.useMemo(function(){var w=Array.isArray(i)?i:[i];return Ev(function(E){b(function(S){var M=Object.keys(S),N=M.filter(function(O){return S[O]!==E[O]}),T=N.every(function(O){return w.includes(O)});return T?S:E})},o,{leading:f})},[o,f,i]);return u.useEffect(function(){var w=d||window.ResizeObserver,E=new w(function(S){S.forEach(function(M){var N,T=(N=M==null?void 0:M.contentRect)!=null?N:{},O=T.left,F=T.top,j=T.width,H=T.height;p.current=window.requestAnimationFrame(function(){v({width:j,height:H,top:F,left:O})})})});return g.current&&E.observe(g.current),function(){window.cancelAnimationFrame(p.current),E.disconnect(),v.cancel()}},[v,d]),u.createElement("div",Xi({style:l,ref:g,className:t},h),n(Xi({},x,{ref:g.current,resize:v})))}Zi.propTypes={className:se.string,debounceTime:se.number,enableDebounceLeadingCall:se.bool,ignoreDimensions:se.oneOfType([se.any,se.arrayOf(se.any)]),children:se.func.isRequired};const Uv=[{name:"default",dark:"#1565BC",light:"#99D2F9"},{name:"yellow",dark:"#8C6A00",light:"#FFDE88"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"purple",dark:"#7651BC",light:"#E7DAFF"},{name:"pink",dark:"#C01443",light:"#FAD4D4"},{name:"green",dark:"#44812F",light:"#B1E39F"},{name:"orange",dark:"#B96400",light:"#FFE7C5"},{name:"teal",dark:"#237C73",light:"#A1DFD5"},{name:"red",dark:"#C62C02",light:"#FFE1D9"}];function rt(e){return Uv[e%Uv.length]}function _u({textLabel:e,axisCharLimit:t,x:n,y:r,textStyles:o}){return y.jsx(Hh,{children:y.jsxs(Gh,{children:[y.jsx(Uh,{asChild:!0,children:y.jsx("text",{className:"pointer-events-auto cursor-pointer",...o,x:n,y:r,children:e&&(e==null?void 0:e.length)>t?`${e==null?void 0:e.substring(0,t)}...`:e})}),y.jsx(Yh,{children:y.jsx(fl,{className:"rabbit-ds",children:y.jsx("p",{children:e})})})]})})}const Yv=(e,t)=>u.Children.map(e,n=>u.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Du({value:e,darkColor:t,lightColor:n}){return y.jsxs("div",{className:"px-2 py-1 justify-start items-center gap-2 inline-flex",children:[y.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"w-3 h-3 relative rounded-3xl border"}),y.jsx("div",{className:"justify-start items-start flex",children:y.jsx("div",{className:"text-zinc-800 text-xs font-normal leading-none",children:e})})]})}function Au({label:e,value:t}){return y.jsxs("div",{className:"px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm",children:[y.jsx("div",{className:" text-stone-500 text-[10px] font-normal leading-none",children:e}),y.jsx("div",{className:"justify-start items-start text-sm flex font-medium",children:t||"-"})]})}function Ye({children:e,showSideBySide:t,tooltipTitle:n}){const r=Yv(e,Du),o=Yv(e,Au);return y.jsxs("div",{className:"rabbit-ds z-[1500] relative h-auto w-auto min-w-[200px] max-w-[400px] p-2 bg-white rounded-lg shadow flex-col justify-start items-start gap-2 inline-flex",children:[y.jsx("div",{className:"px-3 py-1 text-zinc-800 font-medium text-xs leading-none",children:n}),y.jsxs("div",{className:"w-full p-2 rounded-lg flex-col justify-start items-start flex",children:[t&&y.jsxs("div",{className:ge("w-full flex"),children:[o&&o[0],y.jsx("div",{className:"w-0 border-r mx-3"}),o&&o[1]]}),!t&&y.jsx("div",{className:ge("w-full grid gap-3 auto-rows-auto"),children:o})]}),r&&r.length>0?y.jsx("div",{className:"h-px px-2 w-full border-top bg-gray-100"}):null,r]})}Du.displayName="Legend",Au.displayName="Item",Ye.Legend=Du,Ye.Item=Au,Ye.defaultProps={showSideBySide:!1};function qv({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const c=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return y.jsxs(Ye,{tooltipTitle:n,showSideBySide:a,children:[y.jsx(Ye.Item,{label:r,value:c}),y.jsx(Ye.Item,{label:o,value:f}),y.jsx(Ye.Legend,{value:i,darkColor:s,lightColor:l})]})}qv.defaultProps={xValue:void 0,yValue:void 0};function T9({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=u.useContext(qt),a=r?e.filter(i=>i.y!==null):e;return y.jsx(QP,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s,l;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))+((l=o==null?void 0:o.xScale)==null?void 0:l.bandwidth())/2},y:i=>{var s;return(s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i))}})}var Iu={exports:{}};(function(e,t){(function(n,r){r(t)})(io,function(n){var r,o=Object.defineProperty,a=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=Math.pow,d=($,P,I)=>P in $?o($,P,{enumerable:!0,configurable:!0,writable:!0,value:I}):$[P]=I,h=($,P)=>{for(var I in P||(P={}))l.call(P,I)&&d($,I,P[I]);if(s)for(var I of s(P))c.call(P,I)&&d($,I,P[I]);return $},g=($,P)=>a($,i(P)),p=($,P)=>{var I={};for(var z in $)l.call($,z)&&P.indexOf(z)<0&&(I[z]=$[z]);if($!=null&&s)for(var z of s($))P.indexOf(z)<0&&c.call($,z)&&(I[z]=$[z]);return I},m=($,P,I)=>new Promise((z,q)=>{var ee=ce=>{try{R(I.next(ce))}catch(de){q(de)}},Y=ce=>{try{R(I.throw(ce))}catch(de){q(de)}},R=ce=>ce.done?z(ce.value):Promise.resolve(ce.value).then(ee,Y);R((I=I.apply($,P)).next())});function x($,P){return $[13]=1,$[14]=P>>8,$[15]=P&255,$[16]=P>>8,$[17]=P&255,$}const b="p".charCodeAt(0),v="H".charCodeAt(0),w="Y".charCodeAt(0),E="s".charCodeAt(0);let S;function M(){const $=new Int32Array(256);for(let P=0;P<256;P++){let I=P;for(let z=0;z<8;z++)I=I&1?3988292384^I>>>1:I>>>1;$[P]=I}return $}function N($){let P=-1;S||(S=M());for(let I=0;I<$.length;I++)P=S[(P^$[I])&255]^P>>>8;return P^-1}function T($){const P=$.length-1;for(let I=P;I>=4;I--)if($[I-4]===9&&$[I-3]===b&&$[I-2]===v&&$[I-1]===w&&$[I]===E)return I-3;return 0}function O($,P,I=!1){const z=new Uint8Array(13);P*=39.3701,z[0]=b,z[1]=v,z[2]=w,z[3]=E,z[4]=P>>>24,z[5]=P>>>16,z[6]=P>>>8,z[7]=P&255,z[8]=z[4],z[9]=z[5],z[10]=z[6],z[11]=z[7],z[12]=1;const q=N(z),ee=new Uint8Array(4);if(ee[0]=q>>>24,ee[1]=q>>>16,ee[2]=q>>>8,ee[3]=q&255,I){const Y=T($);return $.set(z,Y),$.set(ee,Y+13),$}else{const Y=new Uint8Array(4);Y[0]=0,Y[1]=0,Y[2]=0,Y[3]=9;const R=new Uint8Array(54);return R.set($,0),R.set(Y,33),R.set(z,37),R.set(ee,50),R}}const F="AAlwSFlz",j="AAAJcEhZ",H="AAAACXBI";function G($){let P=$.indexOf(F);return P===-1&&(P=$.indexOf(j)),P===-1&&(P=$.indexOf(H)),P}const L="[modern-screenshot]",C=typeof window<"u",_=C&&"Worker"in window,B=C&&"atob"in window,V=C&&"btoa"in window,D=C?(r=window.navigator)==null?void 0:r.userAgent:"",A=D.includes("Chrome"),W=D.includes("AppleWebKit")&&!A,ne=D.includes("Firefox"),Q=$=>$&&"__CONTEXT__"in $,re=$=>$.constructor.name==="CSSFontFaceRule",oe=$=>$.constructor.name==="CSSImportRule",ue=$=>$.nodeType===1,X=$=>typeof $.className=="object",le=$=>$.tagName==="image",U=$=>$.tagName==="use",Z=$=>ue($)&&typeof $.style<"u"&&!X($),ie=$=>$.nodeType===8,k=$=>$.nodeType===3,te=$=>$.tagName==="IMG",ae=$=>$.tagName==="VIDEO",me=$=>$.tagName==="CANVAS",ye=$=>$.tagName==="TEXTAREA",Ee=$=>$.tagName==="INPUT",Ke=$=>$.tagName==="STYLE",Xe=$=>$.tagName==="SCRIPT",ot=$=>$.tagName==="SELECT",vt=$=>$.tagName==="SLOT",Kt=$=>$.tagName==="IFRAME",je=(...$)=>console.warn(L,...$),cr=$=>console.time(`${L} ${$}`),Qr=$=>console.timeEnd(`${L} ${$}`),_n=$=>{var P;const I=(P=$==null?void 0:$.createElement)==null?void 0:P.call($,"canvas");return I&&(I.height=I.width=1),I&&"toDataURL"in I&&!!I.toDataURL("image/webp").includes("image/webp")},Ze=$=>$.startsWith("data:");function ft($,P){if($.match(/^[a-z]+:\/\//i))return $;if(C&&$.match(/^\/\//))return window.location.protocol+$;if($.match(/^[a-z]+:/i)||!C)return $;const I=at().implementation.createHTMLDocument(),z=I.createElement("base"),q=I.createElement("a");return I.head.appendChild(z),I.body.appendChild(q),P&&(z.href=P),q.href=$,q.href}function at($){var P;return(P=$&&ue($)?$==null?void 0:$.ownerDocument:$)!=null?P:window.document}const Ft="http://www.w3.org/2000/svg";function un($,P,I){const z=at(I).createElementNS(Ft,"svg");return z.setAttributeNS(null,"width",$.toString()),z.setAttributeNS(null,"height",P.toString()),z.setAttributeNS(null,"viewBox",`0 0 ${$} ${P}`),z}function jt($,P){let I=new XMLSerializer().serializeToString($);return P&&(I=I.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/ug,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(I)}`}function Jr($,P="image/png",I=1){return m(this,null,function*(){try{return yield new Promise((z,q)=>{$.toBlob(ee=>{ee?z(ee):q(new Error("Blob is null"))},P,I)})}catch(z){if(B)return je("Failed canvas to blob",{type:P,quality:I},z),Rr($.toDataURL(P,I));throw z}})}function Rr($){var P,I;const[z,q]=$.split(","),ee=(I=(P=z.match(/data:(.+);/))==null?void 0:P[1])!=null?I:void 0,Y=window.atob(q),R=Y.length,ce=new Uint8Array(R);for(let de=0;de<R;de+=1)ce[de]=Y.charCodeAt(de);return new Blob([ce],{type:ee})}function ur($,P){return new Promise((I,z)=>{const q=new FileReader;q.onload=()=>I(q.result),q.onerror=()=>z(q.error),q.onabort=()=>z(new Error(`Failed read blob to ${P}`)),P==="dataUrl"?q.readAsDataURL($):P==="arrayBuffer"&&q.readAsArrayBuffer($)})}const eo=$=>ur($,"dataUrl"),dr=$=>ur($,"arrayBuffer");function Et($,P){const I=at(P).createElement("img");return I.decoding="sync",I.loading="eager",I.src=$,I}function zt($,P){return new Promise(I=>{const{timeout:z,ownerDocument:q,onError:ee}=P??{},Y=typeof $=="string"?Et($,at(q)):$;let R=null,ce=null;function de(){I(Y),R&&clearTimeout(R),ce==null||ce()}if(z&&(R=setTimeout(de,z)),ae(Y)){const fe=Y.currentSrc||Y.src;if(!fe)return Y.poster?zt(Y.poster,P).then(I):de();if(Y.readyState>=2)return de();const ve=de,he=Se=>{je("Failed video load",fe,Se),ee==null||ee(Se),de()};ce=()=>{Y.removeEventListener("loadeddata",ve),Y.removeEventListener("error",he)},Y.addEventListener("loadeddata",ve,{once:!0}),Y.addEventListener("error",he,{once:!0})}else{const fe=le(Y)?Y.href.baseVal:Y.currentSrc||Y.src;if(!fe)return de();const ve=()=>m(this,null,function*(){if(te(Y)&&"decode"in Y)try{yield Y.decode()}catch(Se){je("Failed to decode image, trying to render anyway",Y.dataset.originalSrc||fe,Se)}de()}),he=Se=>{je("Failed image load",Y.dataset.originalSrc||fe,Se),de()};if(te(Y)&&Y.complete)return ve();ce=()=>{Y.removeEventListener("load",ve),Y.removeEventListener("error",he)},Y.addEventListener("load",ve,{once:!0}),Y.addEventListener("error",he,{once:!0})}})}function Dn($,P){return m(this,null,function*(){Z($)&&(te($)||ae($)?yield zt($,{timeout:P}):yield Promise.all(["img","video"].flatMap(I=>Array.from($.querySelectorAll(I)).map(z=>zt(z,{timeout:P})))))})}const An=function(){let $=0;const P=()=>`0000${(Math.random()*f(36,4)<<0).toString(36)}`.slice(-4);return()=>($+=1,`u${P()}${$}`)}();function ra($){return $==null?void 0:$.split(",").map(P=>P.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function os($){return{time:P=>$&&cr(P),timeEnd:P=>$&&Qr(P),warn:(...P)=>$&&je(...P)}}function as($){return{cache:$?"no-cache":"force-cache"}}function bt($,P){return m(this,null,function*(){return Q($)?$:is($,g(h({},P),{autoDestruct:!0}))})}function is($,P){return m(this,null,function*(){var I,z,q,ee,Y;const{scale:R=1,workerUrl:ce,workerNumber:de=1}=P||{},fe=!!(P!=null&&P.debug),ve=(I=P==null?void 0:P.features)!=null?I:!0,he=(z=$.ownerDocument)!=null?z:C?window.document:void 0,Se=(ee=(q=$.ownerDocument)==null?void 0:q.defaultView)!=null?ee:C?window:void 0,$e=new Map,Te=g(h({width:0,height:0,quality:1,type:"image/png",scale:R,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:fe,fetch:h({requestInit:as((Y=P==null?void 0:P.fetch)==null?void 0:Y.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},P==null?void 0:P.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:de,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},P),{__CONTEXT__:!0,log:os(fe),node:$,ownerDocument:he,ownerWindow:Se,dpi:R===1?null:96*R,svgStyleElement:it(he),svgDefsElement:he==null?void 0:he.createElementNS(Ft,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(_&&ce&&de?de:0)].map(()=>{try{const ze=new Worker(ce);return ze.onmessage=Ie=>m(this,null,function*(){var st,hn,In,tb;const{url:rd,result:nb}=Ie.data;nb?(hn=(st=$e.get(rd))==null?void 0:st.resolve)==null||hn.call(st,nb):(tb=(In=$e.get(rd))==null?void 0:In.reject)==null||tb.call(In,new Error(`Error receiving message from worker: ${rd}`))}),ze.onmessageerror=Ie=>{var st,hn;const{url:In}=Ie.data;(hn=(st=$e.get(In))==null?void 0:st.reject)==null||hn.call(st,new Error(`Error receiving message from worker: ${In}`))},ze}catch(ze){return je("Failed to new Worker",ze),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[_n(he)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:$e,drawImageCount:0,tasks:[],features:ve,isEnable:ze=>{var Ie;return typeof ve=="boolean"?ve:(Ie=ve[ze])!=null?Ie:!0}});Te.log.time("wait until load"),yield Dn($,Te.timeout),Te.log.timeEnd("wait until load");const{width:Pe,height:ke}=Tt($,Te);return Te.width=Pe,Te.height=ke,Te})}function it($){if(!$)return;const P=$.createElement("style"),I=P.ownerDocument.createTextNode(`
79
79
  .______background-clip--text {
80
80
  background-clip: text;
81
81
  -webkit-background-clip: text;
82
82
  }
83
- `);return O.appendChild(k),O}function Nt(b,O){let{width:k,height:F}=O;if(le(b)&&(!k||!F)){const G=b.getBoundingClientRect();k=k||G.width||Number(b.getAttribute("width"))||0,F=F||G.height||Number(b.getAttribute("height"))||0}return{width:k,height:F}}function Sn(b,O){return v(this,null,function*(){const{log:k,timeout:F,drawImageCount:G,drawImageInterval:Q}=O;k.time("image to canvas");const U=yield Pn(b,{timeout:F}),{canvas:Z,context2d:oe}=On(b.ownerDocument,O),ue=()=>{try{oe==null||oe.drawImage(U,0,0,Z.width,Z.height)}catch(se){We("Failed to drawImage",se)}};if(ue(),O.isEnable("fixSvgXmlDecode"))for(let se=0;se<G;se++)yield new Promise(ve=>{setTimeout(()=>{ue(),ve()},se+Q)});return O.drawImageCount=0,k.timeEnd("image to canvas"),Z})}function On(b,O){const{width:k,height:F,scale:G,backgroundColor:Q,maximumCanvasSize:U}=O,Z=b.createElement("canvas");Z.width=Math.floor(k*G),Z.height=Math.floor(F*G),Z.style.width=`${k}px`,Z.style.height=`${F}px`,U&&(Z.width>U||Z.height>U)&&(Z.width>U&&Z.height>U?Z.width>Z.height?(Z.height*=U/Z.width,Z.width=U):(Z.width*=U/Z.height,Z.height=U):Z.width>U?(Z.height*=U/Z.width,Z.width=U):(Z.width*=U/Z.height,Z.height=U));const oe=Z.getContext("2d");return oe&&Q&&(oe.fillStyle=Q,oe.fillRect(0,0,Z.width,Z.height)),{canvas:Z,context2d:oe}}const $t=["width","height"],br=["stroke","fill"];function wr(b,O,k){var F;const{defaultComputedStyles:G,ownerDocument:Q}=k,U=b.nodeName.toLowerCase(),Z=R(b)&&U!=="svg",oe=Z?br.map(Te=>[Te,b.getAttribute(Te)]).filter(([,Te])=>Te!==null):[],ue=[Z&&"svg",U,oe.map((Te,ze)=>`${Te}=${ze}`).join(","),O].filter(Boolean).join(":");if(G.has(ue))return G.get(ue);let se=k.sandbox;if(!se)try{Q&&(se=Q.createElement("iframe"),se.id=`__SANDBOX__-${Ea()}`,se.width="0",se.height="0",se.style.visibility="hidden",se.style.position="fixed",Q.body.appendChild(se),(F=se.contentWindow)==null||F.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),k.sandbox=se)}catch(Te){We("Failed to create iframe sandbox",Te)}if(!se)return new Map;const ve=se.contentWindow;if(!ve)return new Map;const fe=ve.document;let _e,$e;Z?(_e=fe.createElementNS(mt,"svg"),$e=_e.ownerDocument.createElementNS(_e.namespaceURI,U),oe.forEach(([Te,ze])=>{$e.setAttributeNS(null,Te,ze)}),_e.appendChild($e)):_e=$e=fe.createElement(U),$e.textContent=" ",fe.body.appendChild(_e);const Se=ve.getComputedStyle($e,O),Ee=new Map;for(let Te=Se.length,ze=0;ze<Te;ze++){const Le=Se.item(ze);$t.includes(Le)||Ee.set(Le,Se.getPropertyValue(Le))}return fe.body.removeChild(_e),G.set(ue,Ee),Ee}function _o(b,O){var k;const F=new Map,G=[],Q=new Map;for(let U=b.length,Z=0;Z<U;Z++){const oe=b.item(Z),ue=b.getPropertyValue(oe),se=b.getPropertyPriority(oe),ve=oe.lastIndexOf("-"),fe=ve>-1?oe.substring(0,ve):void 0;if(fe){let _e=Q.get(fe);_e||(_e=new Map,Q.set(fe,_e)),_e.set(oe,[ue,se])}O.get(oe)===ue&&!se||(fe?G.push(fe):F.set(oe,[ue,se]))}for(let U=G.length,Z=0;Z<U;Z++)(k=Q.get(G[Z]))==null||k.forEach((oe,ue)=>F.set(ue,oe));return F}const Po=[":before",":after"],pu=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function hu(b,O,k,F){const{ownerWindow:G,svgStyleElement:Q,svgStyles:U}=F;if(!Q||!G)return;function Z(oe){var ue;const se=G.getComputedStyle(b,oe);let ve=se.getPropertyValue("content");if(!ve||ve==="none")return;ve=ve.replace(/(')|(")|(counter\(.+\))/g,"");const fe=[Ea()],_e=wr(b,oe,F),$e=[`content: '${ve}';`],Se=_o(se,_e);if(Se.delete("content"),Se.delete("-webkit-locale"),((ue=Se.get("background-clip"))==null?void 0:ue[0])==="text"&&O.classList.add("______background-clip--text"),Se.forEach(([ze,Le],st)=>{$e.push(`${st}: ${ze}${Le?" !important":""};`)}),$e.length===1)return;try{O.className=[O.className,...fe].join(" ")}catch{return}const Ee=$e.join(`
84
- `);let Te=U.get(Ee);Te||(Te=[],U.set(Ee,Te)),Te.push(`.${fe[0]}:${oe}`)}Po.forEach(Z),k&&pu.forEach(Z)}function UF(b,O){Ae(b)&&(O.innerHTML=b.value),(Ae(b)||Ue(b)||Tt(b))&&O.setAttribute("value",b.value)}function VF(b,O,k,F){var G,Q,U,Z;const{ownerWindow:oe}=F,ue=O.style,se=oe.getComputedStyle(b),ve=wr(b,null,F),fe=_o(se,ve);return fe.delete("transition-property"),fe.delete("all"),fe.delete("d"),fe.delete("content"),k&&(fe.delete("margin-top"),fe.delete("margin-right"),fe.delete("margin-bottom"),fe.delete("margin-left"),fe.delete("margin-block-start"),fe.delete("margin-block-end"),fe.delete("margin-inline-start"),fe.delete("margin-inline-end"),fe.set("box-sizing",["border-box",""])),((G=fe.get("background-clip"))==null?void 0:G[0])==="text"&&O.classList.add("______background-clip--text"),D&&(fe.has("font-kerning")||fe.set("font-kerning",["normal",""]),(((Q=fe.get("overflow-x"))==null?void 0:Q[0])==="hidden"||((U=fe.get("overflow-y"))==null?void 0:U[0])==="hidden")&&((Z=fe.get("text-overflow"))==null?void 0:Z[0])==="ellipsis"&&b.scrollWidth===b.clientWidth&&fe.set("text-overflow",["clip",""])),fe.forEach(([_e,$e],Se)=>{ue.setProperty(Se,_e,$e)}),fe}function GF(b,O){var k;try{if((k=b==null?void 0:b.contentDocument)!=null&&k.body)return mu(b.contentDocument.body,O)}catch(F){We("Failed to clone iframe",F)}return b.cloneNode(!1)}function hx(b){if(b.ownerDocument)try{const G=b.toDataURL();if(G!=="data:,")return un(G,b.ownerDocument)}catch{}const O=b.cloneNode(!1),k=b.getContext("2d"),F=O.getContext("2d");try{return k&&F&&F.putImageData(k.getImageData(0,0,b.width,b.height),0,0),O}catch(G){We("Failed to clone canvas",G)}return O}function YF(b){return v(this,null,function*(){if(b.ownerDocument&&!b.currentSrc&&b.poster)return un(b.poster,b.ownerDocument);const O=b.cloneNode(!1);O.crossOrigin="anonymous",b.currentSrc&&b.currentSrc!==b.src&&(O.src=b.currentSrc);const k=O.ownerDocument;if(k){let F=!0;if(yield Pn(O,{onError:()=>F=!1}),!F)return b.poster?un(b.poster,b.ownerDocument):O;O.currentTime=b.currentTime,yield new Promise(Q=>{O.addEventListener("seeked",Q,{once:!0})});const G=k.createElement("canvas");G.width=b.offsetWidth,G.height=b.offsetHeight;try{const Q=G.getContext("2d");Q&&Q.drawImage(O,0,0,G.width,G.height)}catch(Q){return We("Failed to clone video",Q),b.poster?un(b.poster,b.ownerDocument):O}return hx(G)}return O})}function KF(b){const O=b.cloneNode(!1);return b.currentSrc&&b.currentSrc!==b.src&&(O.src=b.currentSrc,O.srcset=""),O.loading==="lazy"&&(O.loading="eager"),O}function XF(b,O){return Oe(b)?hx(b):ye(b)?GF(b,O):pe(b)?KF(b):me(b)?YF(b):b.cloneNode(!1)}function mx(b,O,k){return v(this,null,function*(){le(O)&&(on(O)||Un(O))||k.filter&&!k.filter(O)||b.appendChild(yield mu(O,k))})}function vx(b,O,k){return v(this,null,function*(){var F,G;const Q=(G=le(b)?(F=b.shadowRoot)==null?void 0:F.firstChild:void 0)!=null?G:b.firstChild;for(let U=Q;U;U=U.nextSibling)if(!ie(U))if(le(U)&&kt(U)&&typeof U.assignedNodes=="function"){const Z=U.assignedNodes();for(let oe=0;oe<Z.length;oe++)yield mx(O,Z[oe],k)}else yield mx(O,U,k)})}function RF(b,O){const{backgroundColor:k,width:F,height:G,style:Q}=O,U=b.style;if(k&&U.setProperty("background-color",k,"important"),F&&U.setProperty("width",`${F}px`,"important"),G&&U.setProperty("height",`${G}px`,"important"),Q)for(const Z in Q)U[Z]=Q[Z]}const ZF=/^[\w-:]+$/;function mu(b,O,k=!1){return v(this,null,function*(){var F,G,Q,U;const{ownerDocument:Z,ownerWindow:oe,fontFamilies:ue}=O;if(Z&&A(b))return Z.createTextNode(b.data);if(Z&&oe&&le(b)&&(K(b)||R(b))){const ve=yield XF(b,O);if(O.isEnable("removeAbnormalAttributes")){const $e=ve.getAttributeNames();for(let Se=$e.length,Ee=0;Ee<Se;Ee++){const Te=$e[Ee];ZF.test(Te)||ve.removeAttribute(Te)}}const fe=VF(b,ve,k,O);k&&RF(ve,O);let _e=!1;if(O.isEnable("copyScrollbar")){const $e=[(F=fe.get("overflow-x"))==null?void 0:F[0],(G=fe.get("overflow-y"))==null?void 0:G[1]];_e=$e.includes("scroll")||($e.includes("auto")||$e.includes("overlay"))&&(b.scrollHeight>b.clientHeight||b.scrollWidth>b.clientWidth)}return hu(b,ve,_e,O),UF(b,ve),(U=Ta((Q=fe.get("font-family"))==null?void 0:Q[0]))==null||U.forEach($e=>ue.add($e)),me(b)||(yield vx(b,ve,O)),ve}const se=b.cloneNode(!1);return yield vx(b,se,O),se})}function gx(b){if(b.ownerDocument=void 0,b.ownerWindow=void 0,b.svgStyleElement=void 0,b.svgDefsElement=void 0,b.svgStyles.clear(),b.defaultComputedStyles.clear(),b.sandbox){try{b.sandbox.remove()}catch{}b.sandbox=void 0}b.workers=[],b.fontFamilies.clear(),b.fontCssTexts.clear(),b.requests.clear(),b.tasks=[]}function QF(b){const O=b,{url:k,timeout:F,responseType:G}=O,Q=h(O,["url","timeout","responseType"]),U=new AbortController,Z=F?setTimeout(()=>U.abort(),F):void 0;return fetch(k,p({signal:U.signal},Q)).then(oe=>{if(!oe.ok)throw new Error("Failed fetch, not 2xx response",{cause:oe});switch(G){case"dataUrl":return oe.blob().then(uu);case"text":default:return oe.text()}}).finally(()=>clearTimeout(Z))}function ka(b,O){const{url:k,requestType:F="text",responseType:G="text",imageDom:Q}=O;let U=k;const{timeout:Z,acceptOfImage:oe,requests:ue,fetch:{requestInit:se,bypassingCache:ve,placeholderImage:fe},workers:_e}=b;F==="image"&&(W||te)&&b.drawImageCount++;let $e=ue.get(k);if(!$e){ve&&ve instanceof RegExp&&ve.test(U)&&(U+=(/\?/.test(U)?"&":"?")+new Date().getTime());const Se=p({url:U,timeout:Z,responseType:G,headers:F==="image"?{accept:oe}:void 0},se);$e={type:F,resolve:void 0,reject:void 0,response:null},$e.response=(!W&&k.startsWith("http")&&_e.length?new Promise((Ee,Te)=>{_e[ue.size&_e.length-1].postMessage(p({rawUrl:k},Se)),$e.resolve=Ee,$e.reject=Te}):QF(Se)).catch(Ee=>{if(ue.delete(k),F==="image"&&fe)return We("Failed to fetch image base64, trying to use placeholder image",U),typeof fe=="string"?fe:fe(Q);throw Ee}),ue.set(k,$e)}return $e.response}function yx(b,O,k,F){return v(this,null,function*(){if(!bx(b))return b;for(const[G,Q]of JF(b,O))try{const U=yield ka(k,{url:Q,requestType:F?"image":"text",responseType:"dataUrl"});b=b.replace(ej(G),`$1${U}$3`)}catch(U){We("Failed to fetch css data url",G,U)}return b})}function bx(b){return/url\((['"]?)([^'"]+?)\1\)/.test(b)}const wx=/url\((['"]?)([^'"]+?)\1\)/g;function JF(b,O){const k=[];return b.replace(wx,(F,G,Q)=>(k.push([Q,Re(Q,O)]),F)),k.filter(([F])=>!Be(F))}function ej(b){const O=b.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${O})(['"]?\\))`,"g")}function tj(b,O){return v(this,null,function*(){const{ownerDocument:k,svgStyleElement:F,fontFamilies:G,fontCssTexts:Q,tasks:U,font:Z}=O;if(!(!k||!F||!G.size))if(Z&&Z.cssText){const oe=$x(Z.cssText,O);F.appendChild(k.createTextNode(`${oe}
85
- `))}else{const oe=Array.from(k.styleSheets).filter(ue=>{try{return"cssRules"in ue&&!!ue.cssRules.length}catch(se){return We(`Error while reading CSS rules from ${ue.href}`,se),!1}});yield Promise.all(oe.flatMap(ue=>Array.from(ue.cssRules).map((se,ve)=>v(this,null,function*(){if(re(se)){let fe=ve+1;const _e=se.href;let $e="";try{$e=yield ka(O,{url:_e,requestType:"text",responseType:"text"})}catch(Ee){We(`Error fetch remote css import from ${_e}`,Ee)}const Se=$e.replace(wx,(Ee,Te,ze)=>Ee.replace(ze,Re(ze,_e)));for(const Ee of rj(Se))try{ue.insertRule(Ee,Ee.startsWith("@import")?fe+=1:ue.cssRules.length)}catch(Te){We("Error inserting rule from remote css import",{rule:Ee,error:Te})}}})))),oe.flatMap(ue=>Array.from(ue.cssRules)).filter(ue=>{var se;return ae(ue)&&bx(ue.style.getPropertyValue("src"))&&((se=Ta(ue.style.getPropertyValue("font-family")))==null?void 0:se.some(ve=>G.has(ve)))}).forEach(ue=>{const se=ue,ve=Q.get(se.cssText);ve?F.appendChild(k.createTextNode(`${ve}
86
- `)):U.push(yx(se.cssText,se.parentStyleSheet?se.parentStyleSheet.href:null,O).then(fe=>{fe=$x(fe,O),Q.set(se.cssText,fe),F.appendChild(k.createTextNode(`${fe}
87
- `))}))})}})}const nj=/(\/\*[\s\S]*?\*\/)/gi,xx=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function rj(b){if(b==null)return[];const O=[];let k=b.replace(nj,"");for(;;){const Q=xx.exec(k);if(!Q)break;O.push(Q[0])}k=k.replace(xx,"");const F=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,G=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let Q=F.exec(k);if(Q)G.lastIndex=F.lastIndex;else if(Q=G.exec(k),Q)F.lastIndex=G.lastIndex;else break;O.push(Q[0])}return O}const oj=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,aj=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function $x(b,O){const{font:k}=O,F=k?k==null?void 0:k.preferredFormat:void 0;return F?b.replace(aj,G=>{for(;;){const[Q,,U]=oj.exec(G)||[];if(!U)return"";if(U===F)return`src: ${Q};`}}):b}function ij(b,O){if(pe(b)){const k=b.currentSrc||b.src;if(!Be(k))return[ka(O,{url:k,imageDom:b,requestType:"image",responseType:"dataUrl"}).then(F=>{F&&(b.srcset="",b.dataset.originalSrc=k,b.src=F||"")})];(W||te)&&O.drawImageCount++}else if(R(b)&&!Be(b.href.baseVal)){const k=b.href.baseVal;return[ka(O,{url:k,imageDom:b,requestType:"image",responseType:"dataUrl"}).then(F=>{F&&(b.dataset.originalSrc=k,b.href.baseVal=F||"")})]}return[]}const lj=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function uj(b,O){return lj.map(k=>{const F=b.getPropertyValue(k);return!F||F==="none"?null:((W||te)&&O.drawImageCount++,yx(F,null,O,!0).then(G=>{!G||F===G||b.setProperty(k,G,b.getPropertyPriority(k))}))}).filter(Boolean)}function sj(b,O){var k;const{ownerDocument:F,svgDefsElement:G}=O,Q=(k=b.getAttribute("href"))!=null?k:b.getAttribute("xlink:href");if(!Q)return[];const[U,Z]=Q.split("#");if(Z){const oe=`#${Z}`,ue=F==null?void 0:F.querySelector(`svg ${oe}`);if(U&&b.setAttribute("href",oe),G!=null&&G.querySelector(oe))return[];if(ue)return[mu(ue,O).then(se=>{G!=null&&G.querySelector(oe)||G==null||G.appendChild(se)})];if(U)return[ka(O,{url:U,responseType:"text"}).then(se=>{G==null||G.insertAdjacentHTML("beforeend",se)})]}return[]}function _x(b,O){const{tasks:k}=O;le(b)&&((pe(b)||ce(b))&&k.push(...ij(b,O)),V(b)&&k.push(...sj(b,O))),K(b)&&k.push(...uj(b.style,O)),b.childNodes.forEach(F=>{_x(F,O)})}function Px(b,O){return v(this,null,function*(){const k=yield xt(b,O);if(le(k.node)&&R(k.node))return k.node;const{ownerDocument:F,log:G,tasks:Q,svgStyleElement:U,svgDefsElement:Z,svgStyles:oe,font:ue,progress:se,autoDestruct:ve,onCloneNode:fe,onEmbedNode:_e,onCreateForeignObjectSvg:$e}=k;G.time("clone node");const Se=yield mu(k.node,k,!0);if(U&&F){let st="";oe.forEach((Mn,Vn)=>{st+=`${Mn.join(`,
83
+ `);return P.appendChild(I),P}function Tt($,P){let{width:I,height:z}=P;if(ue($)&&(!I||!z)){const q=$.getBoundingClientRect();I=I||q.width||Number($.getAttribute("width"))||0,z=z||q.height||Number($.getAttribute("height"))||0}return{width:I,height:z}}function dn($,P){return m(this,null,function*(){const{log:I,timeout:z,drawImageCount:q,drawImageInterval:ee}=P;I.time("image to canvas");const Y=yield zt($,{timeout:z}),{canvas:R,context2d:ce}=fn($.ownerDocument,P),de=()=>{try{ce==null||ce.drawImage(Y,0,0,R.width,R.height)}catch(fe){je("Failed to drawImage",fe)}};if(de(),P.isEnable("fixSvgXmlDecode"))for(let fe=0;fe<q;fe++)yield new Promise(ve=>{setTimeout(()=>{de(),ve()},fe+ee)});return P.drawImageCount=0,I.timeEnd("image to canvas"),R})}function fn($,P){const{width:I,height:z,scale:q,backgroundColor:ee,maximumCanvasSize:Y}=P,R=$.createElement("canvas");R.width=Math.floor(I*q),R.height=Math.floor(z*q),R.style.width=`${I}px`,R.style.height=`${z}px`,Y&&(R.width>Y||R.height>Y)&&(R.width>Y&&R.height>Y?R.width>R.height?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y):R.width>Y?(R.height*=Y/R.width,R.width=Y):(R.width*=Y/R.height,R.height=Y));const ce=R.getContext("2d");return ce&&ee&&(ce.fillStyle=ee,ce.fillRect(0,0,R.width,R.height)),{canvas:R,context2d:ce}}const yt=["width","height"],fr=["stroke","fill"];function hr($,P,I){var z;const{defaultComputedStyles:q,ownerDocument:ee}=I,Y=$.nodeName.toLowerCase(),R=X($)&&Y!=="svg",ce=R?fr.map(ke=>[ke,$.getAttribute(ke)]).filter(([,ke])=>ke!==null):[],de=[R&&"svg",Y,ce.map((ke,ze)=>`${ke}=${ze}`).join(","),P].filter(Boolean).join(":");if(q.has(de))return q.get(de);let fe=I.sandbox;if(!fe)try{ee&&(fe=ee.createElement("iframe"),fe.id=`__SANDBOX__-${An()}`,fe.width="0",fe.height="0",fe.style.visibility="hidden",fe.style.position="fixed",ee.body.appendChild(fe),(z=fe.contentWindow)==null||z.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),I.sandbox=fe)}catch(ke){je("Failed to create iframe sandbox",ke)}if(!fe)return new Map;const ve=fe.contentWindow;if(!ve)return new Map;const he=ve.document;let Se,$e;R?(Se=he.createElementNS(Ft,"svg"),$e=Se.ownerDocument.createElementNS(Se.namespaceURI,Y),ce.forEach(([ke,ze])=>{$e.setAttributeNS(null,ke,ze)}),Se.appendChild($e)):Se=$e=he.createElement(Y),$e.textContent=" ",he.body.appendChild(Se);const Te=ve.getComputedStyle($e,P),Pe=new Map;for(let ke=Te.length,ze=0;ze<ke;ze++){const Ie=Te.item(ze);yt.includes(Ie)||Pe.set(Ie,Te.getPropertyValue(Ie))}return he.body.removeChild(Se),q.set(de,Pe),Pe}function to($,P){var I;const z=new Map,q=[],ee=new Map;for(let Y=$.length,R=0;R<Y;R++){const ce=$.item(R),de=$.getPropertyValue(ce),fe=$.getPropertyPriority(ce),ve=ce.lastIndexOf("-"),he=ve>-1?ce.substring(0,ve):void 0;if(he){let Se=ee.get(he);Se||(Se=new Map,ee.set(he,Se)),Se.set(ce,[de,fe])}P.get(ce)===de&&!fe||(he?q.push(he):z.set(ce,[de,fe]))}for(let Y=q.length,R=0;R<Y;R++)(I=ee.get(q[R]))==null||I.forEach((ce,de)=>z.set(de,ce));return z}const no=[":before",":after"],ss=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function ls($,P,I,z){const{ownerWindow:q,svgStyleElement:ee,svgStyles:Y}=z;if(!ee||!q)return;function R(ce){var de;const fe=q.getComputedStyle($,ce);let ve=fe.getPropertyValue("content");if(!ve||ve==="none")return;ve=ve.replace(/(')|(")|(counter\(.+\))/g,"");const he=[An()],Se=hr($,ce,z),$e=[`content: '${ve}';`],Te=to(fe,Se);if(Te.delete("content"),Te.delete("-webkit-locale"),((de=Te.get("background-clip"))==null?void 0:de[0])==="text"&&P.classList.add("______background-clip--text"),Te.forEach(([ze,Ie],st)=>{$e.push(`${st}: ${ze}${Ie?" !important":""};`)}),$e.length===1)return;try{P.className=[P.className,...he].join(" ")}catch{return}const Pe=$e.join(`
84
+ `);let ke=Y.get(Pe);ke||(ke=[],Y.set(Pe,ke)),ke.push(`.${he[0]}:${ce}`)}no.forEach(R),I&&ss.forEach(R)}function jN($,P){ye($)&&(P.innerHTML=$.value),(ye($)||Ee($)||ot($))&&P.setAttribute("value",$.value)}function zN($,P,I,z){var q,ee,Y,R;const{ownerWindow:ce}=z,de=P.style,fe=ce.getComputedStyle($),ve=hr($,null,z),he=to(fe,ve);return he.delete("transition-property"),he.delete("all"),he.delete("d"),he.delete("content"),I&&(he.delete("margin-top"),he.delete("margin-right"),he.delete("margin-bottom"),he.delete("margin-left"),he.delete("margin-block-start"),he.delete("margin-block-end"),he.delete("margin-inline-start"),he.delete("margin-inline-end"),he.set("box-sizing",["border-box",""])),((q=he.get("background-clip"))==null?void 0:q[0])==="text"&&P.classList.add("______background-clip--text"),A&&(he.has("font-kerning")||he.set("font-kerning",["normal",""]),(((ee=he.get("overflow-x"))==null?void 0:ee[0])==="hidden"||((Y=he.get("overflow-y"))==null?void 0:Y[0])==="hidden")&&((R=he.get("text-overflow"))==null?void 0:R[0])==="ellipsis"&&$.scrollWidth===$.clientWidth&&he.set("text-overflow",["clip",""])),he.forEach(([Se,$e],Te)=>{de.setProperty(Te,Se,$e)}),he}function BN($,P){var I;try{if((I=$==null?void 0:$.contentDocument)!=null&&I.body)return cs($.contentDocument.body,P)}catch(z){je("Failed to clone iframe",z)}return $.cloneNode(!1)}function H1($){if($.ownerDocument)try{const q=$.toDataURL();if(q!=="data:,")return Et(q,$.ownerDocument)}catch{}const P=$.cloneNode(!1),I=$.getContext("2d"),z=P.getContext("2d");try{return I&&z&&z.putImageData(I.getImageData(0,0,$.width,$.height),0,0),P}catch(q){je("Failed to clone canvas",q)}return P}function WN($){return m(this,null,function*(){if($.ownerDocument&&!$.currentSrc&&$.poster)return Et($.poster,$.ownerDocument);const P=$.cloneNode(!1);P.crossOrigin="anonymous",$.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc);const I=P.ownerDocument;if(I){let z=!0;if(yield zt(P,{onError:()=>z=!1}),!z)return $.poster?Et($.poster,$.ownerDocument):P;P.currentTime=$.currentTime,yield new Promise(ee=>{P.addEventListener("seeked",ee,{once:!0})});const q=I.createElement("canvas");q.width=$.offsetWidth,q.height=$.offsetHeight;try{const ee=q.getContext("2d");ee&&ee.drawImage(P,0,0,q.width,q.height)}catch(ee){return je("Failed to clone video",ee),$.poster?Et($.poster,$.ownerDocument):P}return H1(q)}return P})}function VN($){const P=$.cloneNode(!1);return $.currentSrc&&$.currentSrc!==$.src&&(P.src=$.currentSrc,P.srcset=""),P.loading==="lazy"&&(P.loading="eager"),P}function HN($,P){return me($)?H1($):Kt($)?BN($,P):te($)?VN($):ae($)?WN($):$.cloneNode(!1)}function G1($,P,I){return m(this,null,function*(){ue(P)&&(Ke(P)||Xe(P))||I.filter&&!I.filter(P)||$.appendChild(yield cs(P,I))})}function U1($,P,I){return m(this,null,function*(){var z,q;const ee=(q=ue($)?(z=$.shadowRoot)==null?void 0:z.firstChild:void 0)!=null?q:$.firstChild;for(let Y=ee;Y;Y=Y.nextSibling)if(!ie(Y))if(ue(Y)&&vt(Y)&&typeof Y.assignedNodes=="function"){const R=Y.assignedNodes();for(let ce=0;ce<R.length;ce++)yield G1(P,R[ce],I)}else yield G1(P,Y,I)})}function GN($,P){const{backgroundColor:I,width:z,height:q,style:ee}=P,Y=$.style;if(I&&Y.setProperty("background-color",I,"important"),z&&Y.setProperty("width",`${z}px`,"important"),q&&Y.setProperty("height",`${q}px`,"important"),ee)for(const R in ee)Y[R]=ee[R]}const UN=/^[\w-:]+$/;function cs($,P,I=!1){return m(this,null,function*(){var z,q,ee,Y;const{ownerDocument:R,ownerWindow:ce,fontFamilies:de}=P;if(R&&k($))return R.createTextNode($.data);if(R&&ce&&ue($)&&(Z($)||X($))){const ve=yield HN($,P);if(P.isEnable("removeAbnormalAttributes")){const $e=ve.getAttributeNames();for(let Te=$e.length,Pe=0;Pe<Te;Pe++){const ke=$e[Pe];UN.test(ke)||ve.removeAttribute(ke)}}const he=zN($,ve,I,P);I&&GN(ve,P);let Se=!1;if(P.isEnable("copyScrollbar")){const $e=[(z=he.get("overflow-x"))==null?void 0:z[0],(q=he.get("overflow-y"))==null?void 0:q[1]];Se=$e.includes("scroll")||($e.includes("auto")||$e.includes("overlay"))&&($.scrollHeight>$.clientHeight||$.scrollWidth>$.clientWidth)}return ls($,ve,Se,P),jN($,ve),(Y=ra((ee=he.get("font-family"))==null?void 0:ee[0]))==null||Y.forEach($e=>de.add($e)),ae($)||(yield U1($,ve,P)),ve}const fe=$.cloneNode(!1);return yield U1($,fe,P),fe})}function Y1($){if($.ownerDocument=void 0,$.ownerWindow=void 0,$.svgStyleElement=void 0,$.svgDefsElement=void 0,$.svgStyles.clear(),$.defaultComputedStyles.clear(),$.sandbox){try{$.sandbox.remove()}catch{}$.sandbox=void 0}$.workers=[],$.fontFamilies.clear(),$.fontCssTexts.clear(),$.requests.clear(),$.tasks=[]}function YN($){const P=$,{url:I,timeout:z,responseType:q}=P,ee=p(P,["url","timeout","responseType"]),Y=new AbortController,R=z?setTimeout(()=>Y.abort(),z):void 0;return fetch(I,h({signal:Y.signal},ee)).then(ce=>{if(!ce.ok)throw new Error("Failed fetch, not 2xx response",{cause:ce});switch(q){case"dataUrl":return ce.blob().then(eo);case"text":default:return ce.text()}}).finally(()=>clearTimeout(R))}function oa($,P){const{url:I,requestType:z="text",responseType:q="text",imageDom:ee}=P;let Y=I;const{timeout:R,acceptOfImage:ce,requests:de,fetch:{requestInit:fe,bypassingCache:ve,placeholderImage:he},workers:Se}=$;z==="image"&&(W||ne)&&$.drawImageCount++;let $e=de.get(I);if(!$e){ve&&ve instanceof RegExp&&ve.test(Y)&&(Y+=(/\?/.test(Y)?"&":"?")+new Date().getTime());const Te=h({url:Y,timeout:R,responseType:q,headers:z==="image"?{accept:ce}:void 0},fe);$e={type:z,resolve:void 0,reject:void 0,response:null},$e.response=(!W&&I.startsWith("http")&&Se.length?new Promise((Pe,ke)=>{Se[de.size&Se.length-1].postMessage(h({rawUrl:I},Te)),$e.resolve=Pe,$e.reject=ke}):YN(Te)).catch(Pe=>{if(de.delete(I),z==="image"&&he)return je("Failed to fetch image base64, trying to use placeholder image",Y),typeof he=="string"?he:he(ee);throw Pe}),de.set(I,$e)}return $e.response}function q1($,P,I,z){return m(this,null,function*(){if(!K1($))return $;for(const[q,ee]of qN($,P))try{const Y=yield oa(I,{url:ee,requestType:z?"image":"text",responseType:"dataUrl"});$=$.replace(KN(q),`$1${Y}$3`)}catch(Y){je("Failed to fetch css data url",q,Y)}return $})}function K1($){return/url\((['"]?)([^'"]+?)\1\)/.test($)}const X1=/url\((['"]?)([^'"]+?)\1\)/g;function qN($,P){const I=[];return $.replace(X1,(z,q,ee)=>(I.push([ee,ft(ee,P)]),z)),I.filter(([z])=>!Ze(z))}function KN($){const P=$.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${P})(['"]?\\))`,"g")}function XN($,P){return m(this,null,function*(){const{ownerDocument:I,svgStyleElement:z,fontFamilies:q,fontCssTexts:ee,tasks:Y,font:R}=P;if(!(!I||!z||!q.size))if(R&&R.cssText){const ce=Q1(R.cssText,P);z.appendChild(I.createTextNode(`${ce}
85
+ `))}else{const ce=Array.from(I.styleSheets).filter(de=>{try{return"cssRules"in de&&!!de.cssRules.length}catch(fe){return je(`Error while reading CSS rules from ${de.href}`,fe),!1}});yield Promise.all(ce.flatMap(de=>Array.from(de.cssRules).map((fe,ve)=>m(this,null,function*(){if(oe(fe)){let he=ve+1;const Se=fe.href;let $e="";try{$e=yield oa(P,{url:Se,requestType:"text",responseType:"text"})}catch(Pe){je(`Error fetch remote css import from ${Se}`,Pe)}const Te=$e.replace(X1,(Pe,ke,ze)=>Pe.replace(ze,ft(ze,Se)));for(const Pe of QN(Te))try{de.insertRule(Pe,Pe.startsWith("@import")?he+=1:de.cssRules.length)}catch(ke){je("Error inserting rule from remote css import",{rule:Pe,error:ke})}}})))),ce.flatMap(de=>Array.from(de.cssRules)).filter(de=>{var fe;return re(de)&&K1(de.style.getPropertyValue("src"))&&((fe=ra(de.style.getPropertyValue("font-family")))==null?void 0:fe.some(ve=>q.has(ve)))}).forEach(de=>{const fe=de,ve=ee.get(fe.cssText);ve?z.appendChild(I.createTextNode(`${ve}
86
+ `)):Y.push(q1(fe.cssText,fe.parentStyleSheet?fe.parentStyleSheet.href:null,P).then(he=>{he=Q1(he,P),ee.set(fe.cssText,he),z.appendChild(I.createTextNode(`${he}
87
+ `))}))})}})}const ZN=/(\/\*[\s\S]*?\*\/)/gi,Z1=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function QN($){if($==null)return[];const P=[];let I=$.replace(ZN,"");for(;;){const ee=Z1.exec(I);if(!ee)break;P.push(ee[0])}I=I.replace(Z1,"");const z=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,q=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let ee=z.exec(I);if(ee)q.lastIndex=z.lastIndex;else if(ee=q.exec(I),ee)z.lastIndex=q.lastIndex;else break;P.push(ee[0])}return P}const JN=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,RN=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Q1($,P){const{font:I}=P,z=I?I==null?void 0:I.preferredFormat:void 0;return z?$.replace(RN,q=>{for(;;){const[ee,,Y]=JN.exec(q)||[];if(!Y)return"";if(Y===z)return`src: ${ee};`}}):$}function e_($,P){if(te($)){const I=$.currentSrc||$.src;if(!Ze(I))return[oa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.srcset="",$.dataset.originalSrc=I,$.src=z||"")})];(W||ne)&&P.drawImageCount++}else if(X($)&&!Ze($.href.baseVal)){const I=$.href.baseVal;return[oa(P,{url:I,imageDom:$,requestType:"image",responseType:"dataUrl"}).then(z=>{z&&($.dataset.originalSrc=I,$.href.baseVal=z||"")})]}return[]}const t_=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function n_($,P){return t_.map(I=>{const z=$.getPropertyValue(I);return!z||z==="none"?null:((W||ne)&&P.drawImageCount++,q1(z,null,P,!0).then(q=>{!q||z===q||$.setProperty(I,q,$.getPropertyPriority(I))}))}).filter(Boolean)}function r_($,P){var I;const{ownerDocument:z,svgDefsElement:q}=P,ee=(I=$.getAttribute("href"))!=null?I:$.getAttribute("xlink:href");if(!ee)return[];const[Y,R]=ee.split("#");if(R){const ce=`#${R}`,de=z==null?void 0:z.querySelector(`svg ${ce}`);if(Y&&$.setAttribute("href",ce),q!=null&&q.querySelector(ce))return[];if(de)return[cs(de,P).then(fe=>{q!=null&&q.querySelector(ce)||q==null||q.appendChild(fe)})];if(Y)return[oa(P,{url:Y,responseType:"text"}).then(fe=>{q==null||q.insertAdjacentHTML("beforeend",fe)})]}return[]}function J1($,P){const{tasks:I}=P;ue($)&&((te($)||le($))&&I.push(...e_($,P)),U($)&&I.push(...r_($,P))),Z($)&&I.push(...n_($.style,P)),$.childNodes.forEach(z=>{J1(z,P)})}function R1($,P){return m(this,null,function*(){const I=yield bt($,P);if(ue(I.node)&&X(I.node))return I.node;const{ownerDocument:z,log:q,tasks:ee,svgStyleElement:Y,svgDefsElement:R,svgStyles:ce,font:de,progress:fe,autoDestruct:ve,onCloneNode:he,onEmbedNode:Se,onCreateForeignObjectSvg:$e}=I;q.time("clone node");const Te=yield cs(I.node,I,!0);if(Y&&z){let st="";ce.forEach((hn,In)=>{st+=`${hn.join(`,
88
88
  `)} {
89
- ${Vn}
89
+ ${In}
90
90
  }
91
- `}),U.appendChild(F.createTextNode(st))}G.timeEnd("clone node"),fe==null||fe(Se),ue!==!1&&le(Se)&&(G.time("embed web font"),yield tj(Se,k),G.timeEnd("embed web font")),G.time("embed node"),_x(Se,k);const Ee=Q.length;let Te=0;const ze=()=>v(this,null,function*(){for(;;){const st=Q.pop();if(!st)break;try{yield st}catch(Mn){We("Failed to run task",Mn)}se==null||se(++Te,Ee)}});se==null||se(Te,Ee),yield Promise.all([...Array(4)].map(ze)),G.timeEnd("embed node"),_e==null||_e(Se);const Le=cj(Se,k);return Z&&Le.insertBefore(Z,Le.children[0]),U&&Le.insertBefore(U,Le.children[0]),ve&&gx(k),$e==null||$e(Le),Le})}function cj(b,O){const{width:k,height:F}=O,G=ln(k,F,b.ownerDocument),Q=G.ownerDocument.createElementNS(G.namespaceURI,"foreignObject");return Q.setAttributeNS(null,"x","0%"),Q.setAttributeNS(null,"y","0%"),Q.setAttributeNS(null,"width","100%"),Q.setAttributeNS(null,"height","100%"),Q.append(b),G.appendChild(Q),G}function vu(b,O){return v(this,null,function*(){var k;const F=yield xt(b,O),G=yield Px(F),Q=$o(G,F.isEnable("removeControlCharacter"));F.autoDestruct||(F.svgStyleElement=ut(F.ownerDocument),F.svgDefsElement=(k=F.ownerDocument)==null?void 0:k.createElementNS(mt,"defs"),F.svgStyles.clear());const U=un(Q,G.ownerDocument);return yield Sn(U,F)})}function fj(b,O){return v(this,null,function*(){const k=yield xt(b,O),{log:F,type:G,quality:Q,dpi:U}=k,Z=yield vu(k);F.time("canvas to blob");const oe=yield iu(Z,G,Q);if(["image/png","image/jpeg"].includes(G)&&U){const ue=yield su(oe.slice(0,33));let se=new Uint8Array(ue);return G==="image/png"?se=T(se,U):G==="image/jpeg"&&(se=w(se,U)),F.timeEnd("canvas to blob"),new Blob([se,oe.slice(33)],{type:G})}return F.timeEnd("canvas to blob"),oe})}function So(b,O){return v(this,null,function*(){const k=yield xt(b,O),{log:F,quality:G,type:Q,dpi:U}=k,Z=yield vu(k);F.time("canvas to data url");let oe=Z.toDataURL(Q,G);if(["image/png","image/jpeg"].includes(Q)&&U&&z&&H){const[ue,se]=oe.split(",");let ve=0,fe=!1;if(Q==="image/png"){const Le=Y(se);Le>=0?(ve=Math.ceil((Le+28)/3)*4,fe=!0):ve=33/3*4}else Q==="image/jpeg"&&(ve=18/3*4);const _e=se.substring(0,ve),$e=se.substring(ve),Se=window.atob(_e),Ee=new Uint8Array(Se.length);for(let Le=0;Le<Ee.length;Le++)Ee[Le]=Se.charCodeAt(Le);const Te=Q==="image/png"?T(Ee,U,fe):w(Ee,U),ze=window.btoa(String.fromCharCode(...Te));oe=[ue,",",ze,$e].join("")}return F.timeEnd("canvas to data url"),oe})}function Sx(b,O){return v(this,null,function*(){const k=yield xt(b,O),{width:F,height:G,ownerDocument:Q}=k,U=yield So(k),Z=ln(F,G,Q),oe=Z.ownerDocument.createElementNS(Z.namespaceURI,"image");return oe.setAttributeNS(null,"href",U),oe.setAttributeNS(null,"height","100%"),oe.setAttributeNS(null,"width","100%"),Z.appendChild(oe),$o(Z,k.isEnable("removeControlCharacter"))})}function dj(b,O){return v(this,null,function*(){const k=yield xt(b,O),{ownerDocument:F,width:G,height:Q,scale:U,type:Z}=k,oe=Z==="image/svg+xml"?yield Sx(k):yield So(k),ue=un(oe,F);return ue.width=Math.floor(G*U),ue.height=Math.floor(Q*U),ue.style.width=`${G}px`,ue.style.height=`${Q}px`,ue})}function pj(b,O){return v(this,null,function*(){return So(yield xt(b,m(p({},O),{type:"image/jpeg"})))})}function hj(b,O){return v(this,null,function*(){const k=yield xt(b,O),F=yield vu(k);return F.getContext("2d").getImageData(0,0,F.width,F.height).data})}function mj(b,O){return v(this,null,function*(){return So(yield xt(b,m(p({},O),{type:"image/png"})))})}function vj(b,O){return v(this,null,function*(){return So(yield xt(b,m(p({},O),{type:"image/webp"})))})}n.createContext=du,n.destroyContext=gx,n.domToBlob=fj,n.domToCanvas=vu,n.domToDataUrl=So,n.domToForeignObjectSvg=Px,n.domToImage=dj,n.domToJpeg=pj,n.domToPixel=hj,n.domToPng=mj,n.domToSvg=Sx,n.domToWebp=vj,n.loadMedia=Pn,n.waitUntilLoad=Ca,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Gd,Gd.exports);var g4=Gd.exports;const Yd=(e,t,n)=>{c.useImperativeHandle(t,()=>({download(){e.current&&g4.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},y4=({x:e,y:t,datum:n,size:r})=>_.jsx(qd,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),b4=({x:e,y:t,datum:n})=>_.jsx(qd,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),Rl={xAccessor:e=>e.x,yAccessor:e=>e.y},Mw=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,Cw=10,w4=5,Kd=c.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:l,yAxisDomain:u,xAxisUnitSymbol:s,yAxisUnitSymbol:d,tooltipTitle:f,mode:p,xAxisCharLimit:m,connectNulls:h=!1,maxNodesInMiniMode:v=w4,tooltipStackCharLimit:w=Cw},g)=>{const[y,$]=c.useState(e.map(M=>M.id)),S=c.useRef(null);Yd(S,g,`${a}-${i}-LineChart`);const x=c.useMemo(()=>o.map((M,T)=>({points:M.data.map((j,I)=>({x:r[I],y:j,nodeId:M.id,color:lt(T)}))})).slice(0,p==="mini"?v:o.length),[r,o,p,v]),C=c.useMemo(()=>p==="full"?x.filter(M=>y.includes(M.points[0].nodeId)):x,[x,y,p]),E=c.useMemo(()=>Math.floor((n-(p==="mini"?0:150))/(r.length*8)),[n,r,p]);return _.jsxs("div",{ref:S,id:"line-chart",className:"bg-white flex flex-col rabbit-ds",style:{width:n,height:t},children:[_.jsxs("div",{className:"w-full min-w-0 min-h-0 h-full flex flex-row",children:[_.jsx("div",{className:"w-full min-w-0 min-h-0 h-full",children:_.jsxs(xo,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,...l&&{domain:l}},yScale:{type:"linear",nice:!0,...u&&{domain:u}},children:[_.jsx(z9,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),_.jsx(U1,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:M=>s?Mw(M,s.symbol,s.position):M,rangePadding:{end:10},tickComponent:M=>_.jsx(Hd,{textLabel:M.formattedValue||"",x:M.x,y:M.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:m??E}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),_.jsx(U1,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>d?Mw(M,d.symbol,d.position):M,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),C.map((M,T)=>_.jsxs(_.Fragment,{children:[_.jsx(v4,{data:M.points,xAccessor:Rl.xAccessor,yAccessor:Rl.yAccessor,connectNulls:h}),_.jsx(s4,{dataKey:`Performance Management ${T}`,data:M.points,size:8,renderGlyph:y4,xAccessor:Rl.xAccessor,yAccessor:Rl.yAccessor})]})),_.jsx(ew,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:b4,renderTooltip:({tooltipData:M})=>{var I,B,Y,q,P,L;const T=e.find(z=>{var H;return z.id===((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.nodeId)}),j=((I=M==null?void 0:M.nearestDatum)==null?void 0:I.datum)&&((B=M==null?void 0:M.nearestDatum)==null?void 0:B.datum.x.length)<w;return _.jsx(Ow,{xValue:(Y=M==null?void 0:M.nearestDatum)==null?void 0:Y.datum.x,yValue:(q=M==null?void 0:M.nearestDatum)==null?void 0:q.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!j,tooltipTitle:f,legendValue:(T==null?void 0:T.name)||"",legendDarkColor:((P=M==null?void 0:M.nearestDatum)==null?void 0:P.datum.color.dark)||lt(0).dark,legendLightColor:((L=M==null?void 0:M.nearestDatum)==null?void 0:L.datum.color.light)||lt(0).light})}})]})}),p==="full"&&_.jsxs("div",{className:"w-64 p-4 bg-zinc-100 rounded-lg flex-col justify-start items-start gap-0.5 inline-flex text-xs grow-0 shrink-0 basis-auto",children:[_.jsxs("div",{className:"text-sm font-semibold pb-2",children:[_.jsx("span",{className:"pr-1",children:a}),"(",x.length,")"]}),x.map(M=>{const T=e.find(j=>j.id===M.points[0].nodeId);return T&&_.jsxs("div",{className:"flex justify-between items-center gap-1 py-1 w-full",children:[_.jsxs("div",{className:"flex justify-between items-center",children:[_.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border mr-1"}),T.name]}),_.jsx("div",{className:"flex items-center",children:_.jsx(Pp,{checked:y.includes(T.id),onCheckedChange:j=>{let I=[...y];j?I=[...y,T.id]:I.splice(y.indexOf(T.id),1),$(I)}})})]},T.id)})]})]}),p==="mini"&&_.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] text-[#666666] font-semibold",children:x.map(M=>{const T=e.find(j=>j.id===M.points[0].nodeId);return _.jsxs("div",{className:"flex justify-center items-center gap-1",children:[_.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),T==null?void 0:T.name]},T==null?void 0:T.id)})})]})}),x4={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:Cw,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};Kd.defaultProps=x4,Kd.displayName="LineBase";const Ew=c.forwardRef((e,t)=>_.jsx(Xl,{debounceTime:10,children:({width:n,height:r})=>_.jsx(Kd,{ref:t,width:n,height:r,...e})}));Ew.displayName="LineChart";const $4=Ew;function Tw(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function _4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function Xd(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function P4(e,t){return e.sourceLinks.length?e.depth:t-1}function Zl(e){return function(){return e}}function kw(e,t){return Ql(e.source,t.source)||e.index-t.index}function Nw(e,t){return Ql(e.target,t.target)||e.index-t.index}function Ql(e,t){return e.y0-t.y0}function Rd(e){return e.value}function S4(e){return e.index}function O4(e){return e.nodes}function M4(e){return e.links}function Dw(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Aw({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function C4(){let e=0,t=0,n=1,r=1,o=24,a=8,i,l=S4,u=P4,s,d,f=O4,p=M4,m=6;function h(){const P={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return v(P),w(P),g(P),y(P),x(P),Aw(P),P}h.update=function(P){return Aw(P),P},h.nodeId=function(P){return arguments.length?(l=typeof P=="function"?P:Zl(P),h):l},h.nodeAlign=function(P){return arguments.length?(u=typeof P=="function"?P:Zl(P),h):u},h.nodeSort=function(P){return arguments.length?(s=P,h):s},h.nodeWidth=function(P){return arguments.length?(o=+P,h):o},h.nodePadding=function(P){return arguments.length?(a=i=+P,h):a},h.nodes=function(P){return arguments.length?(f=typeof P=="function"?P:Zl(P),h):f},h.links=function(P){return arguments.length?(p=typeof P=="function"?P:Zl(P),h):p},h.linkSort=function(P){return arguments.length?(d=P,h):d},h.size=function(P){return arguments.length?(e=t=0,n=+P[0],r=+P[1],h):[n-e,r-t]},h.extent=function(P){return arguments.length?(e=+P[0][0],n=+P[1][0],t=+P[0][1],r=+P[1][1],h):[[e,t],[n,r]]},h.iterations=function(P){return arguments.length?(m=+P,h):m};function v({nodes:P,links:L}){for(const[H,N]of P.entries())N.index=H,N.sourceLinks=[],N.targetLinks=[];const z=new Map(P.map((H,N)=>[l(H,N,P),H]));for(const[H,N]of L.entries()){N.index=H;let{source:D,target:W}=N;typeof D!="object"&&(D=N.source=Dw(z,D)),typeof W!="object"&&(W=N.target=Dw(z,W)),D.sourceLinks.push(N),W.targetLinks.push(N)}if(d!=null)for(const{sourceLinks:H,targetLinks:N}of P)H.sort(d),N.sort(d)}function w({nodes:P}){for(const L of P)L.value=L.fixedValue===void 0?Math.max(Xd(L.sourceLinks,Rd),Xd(L.targetLinks,Rd)):L.fixedValue}function g({nodes:P}){const L=P.length;let z=new Set(P),H=new Set,N=0;for(;z.size;){for(const D of z){D.depth=N;for(const{target:W}of D.sourceLinks)H.add(W)}if(++N>L)throw new Error("circular link");z=H,H=new Set}}function y({nodes:P}){const L=P.length;let z=new Set(P),H=new Set,N=0;for(;z.size;){for(const D of z){D.height=N;for(const{source:W}of D.targetLinks)H.add(W)}if(++N>L)throw new Error("circular link");z=H,H=new Set}}function $({nodes:P}){const L=Tw(P,N=>N.depth)+1,z=(n-e-o)/(L-1),H=new Array(L);for(const N of P){const D=Math.max(0,Math.min(L-1,Math.floor(u.call(null,N,L))));N.layer=D,N.x0=e+D*z,N.x1=N.x0+o,H[D]?H[D].push(N):H[D]=[N]}if(s)for(const N of H)N.sort(s);return H}function S(P){const L=_4(P,z=>(r-t-(z.length-1)*i)/Xd(z,Rd));for(const z of P){let H=t;for(const N of z){N.y0=H,N.y1=H+N.value*L,H=N.y1+i;for(const D of N.sourceLinks)D.width=D.value*L}H=(r-H+i)/(z.length+1);for(let N=0;N<z.length;++N){const D=z[N];D.y0+=H*(N+1),D.y1+=H*(N+1)}B(z)}}function x(P){const L=$(P);i=Math.min(a,(r-t)/(Tw(L,z=>z.length)-1)),S(L);for(let z=0;z<m;++z){const H=Math.pow(.99,z),N=Math.max(1-H,(z+1)/m);E(L,H,N),C(L,H,N)}}function C(P,L,z){for(let H=1,N=P.length;H<N;++H){const D=P[H];for(const W of D){let te=0,J=0;for(const{source:re,value:le}of W.targetLinks){let R=le*(W.layer-re.layer);te+=Y(re,W)*R,J+=R}if(!(J>0))continue;let ae=(te/J-W.y0)*L;W.y0+=ae,W.y1+=ae,I(W)}s===void 0&&D.sort(Ql),M(D,z)}}function E(P,L,z){for(let H=P.length,N=H-2;N>=0;--N){const D=P[N];for(const W of D){let te=0,J=0;for(const{target:re,value:le}of W.sourceLinks){let R=le*(re.layer-W.layer);te+=q(W,re)*R,J+=R}if(!(J>0))continue;let ae=(te/J-W.y0)*L;W.y0+=ae,W.y1+=ae,I(W)}s===void 0&&D.sort(Ql),M(D,z)}}function M(P,L){const z=P.length>>1,H=P[z];j(P,H.y0-i,z-1,L),T(P,H.y1+i,z+1,L),j(P,r,P.length-1,L),T(P,t,0,L)}function T(P,L,z,H){for(;z<P.length;++z){const N=P[z],D=(L-N.y0)*H;D>1e-6&&(N.y0+=D,N.y1+=D),L=N.y1+i}}function j(P,L,z,H){for(;z>=0;--z){const N=P[z],D=(N.y1-L)*H;D>1e-6&&(N.y0-=D,N.y1-=D),L=N.y0-i}}function I({sourceLinks:P,targetLinks:L}){if(d===void 0){for(const{source:{sourceLinks:z}}of L)z.sort(Nw);for(const{target:{targetLinks:z}}of P)z.sort(kw)}}function B(P){if(d===void 0)for(const{sourceLinks:L,targetLinks:z}of P)L.sort(Nw),z.sort(kw)}function Y(P,L){let z=P.y0-(P.sourceLinks.length-1)*i/2;for(const{target:H,width:N}of P.sourceLinks){if(H===L)break;z+=N+i}for(const{source:H,width:N}of L.targetLinks){if(H===P)break;z-=N}return z}function q(P,L){let z=L.y0-(L.targetLinks.length-1)*i/2;for(const{source:H,width:N}of L.targetLinks){if(H===P)break;z+=N+i}for(const{target:H,width:N}of P.sourceLinks){if(H===L)break;z-=N}return z}return h}function E4({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var l,u,s,d;const a=e.source,i=e.target;return _.jsxs(Xe,{tooltipTitle:o,children:[_.jsx(Xe.Item,{label:t,value:a.name}),_.jsx(Xe.Item,{label:n,value:i.name}),_.jsx(Xe.Item,{label:r,value:e.weight.toString()}),_.jsx(Xe.Legend,{value:a.name,darkColor:(l=lt(a.index||0))==null?void 0:l.dark,lightColor:(u=lt(a.index||0))==null?void 0:u.light}),_.jsx(Xe.Legend,{value:i.name,darkColor:(s=lt(i.index||0))==null?void 0:s.dark,lightColor:(d=lt(i.index||0))==null?void 0:d.light})]})}const Iw=80,Lw=20,T4=30,k4=12,Fw=c.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},l)=>{const u=c.useMemo(()=>C4().nodeId(P=>P.id).nodeWidth(k4).nodePadding(T4).nodeAlign(P=>P.group),[]),s=c.useRef(null);Yd(s,l,`${n}-SankeyChart`);const[d,f]=c.useState(""),[p,m]=c.useState(null),{tooltipData:h,tooltipLeft:v,tooltipTop:w,tooltipOpen:g,showTooltip:y,hideTooltip:$}=od(),{containerBounds:S,containerRef:x,TooltipInPortal:C}=fd({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=c.useMemo(()=>u.extent([[Iw,Lw],[t-Iw,e-Lw-50]])({nodes:r,links:o.map(P=>({...P,value:Number(P.weight)}))}),[e,t,u,r,o]),M=c.useMemo(()=>Math.max(...E.nodes.map(P=>P.depth??0)),[E]),T=c.useMemo(()=>{const P={};let L=-1/0;return E.nodes.forEach(z=>{const{group:H}=z;P[H]?(P[H].x=Math.max(P[H].x??-1/0,z.x0??-1/0),P[H].y=Math.max(P[H].y??-1/0,z.y1??-1/0)):(P[H]={},P[H].x=z.x0,P[H].y=z.y1),L=Math.max(L,P[H].y??-1/0),P[H].y=L}),Object.keys(P).forEach(z=>{P[z].y=L}),P},[E]),j=c.useCallback(P=>{const L=u.nodeId()(P);f(d===L?"":L)},[d,u]),I=c.useCallback(()=>{f(""),m(null)},[]),B=c.useMemo(()=>d===""&&p===null?new Set:new Set(E.links.filter(P=>u.nodeId()(P.source)===d||u.nodeId()(P.target)===d||(p==null?void 0:p.source)===P.source&&(p==null?void 0:p.target)===P.target)),[d,E,p,u]),Y=c.useCallback((P,L)=>{const z=("clientX"in P?P.clientX:0)-S.left,H=("clientY"in P?P.clientY:0)-S.top;m(L),z&&H&&y({tooltipLeft:z,tooltipTop:H,tooltipData:L})},[y,S]),q=c.useCallback(()=>{I(),$()},[I,$]);return _.jsxs("div",{ref:s,className:"bg-white w-min h-min rabbit-ds",id:"sankey-chart",children:[_.jsxs("svg",{height:e,width:t,ref:x,children:[_.jsx("g",{children:E.links.map(P=>_.jsx(o9,{data:P,source:L=>({x:L.source.x1,y:L.y0}),target:L=>({x:L.target.x0,y:L.y1}),x:L=>L.x??0,y:L=>L.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>q(),onMouseMove:L=>Y(L,P),stroke:lt(P.source.index||0).light,strokeWidth:P.width,strokeOpacity:B.has(P)?.7:.4},P.index))}),_.jsx("g",{children:E.nodes.map(P=>{var L,z,H;return _.jsx("g",{children:_.jsx(R7,{x:P.x0??0,height:(P.y1??0)-(P.y0??0)+10,width:(P.x1??0)-(P.x0??0),y:(P.y0??0)-5,onMouseEnter:()=>j(P),onMouseLeave:()=>I(),radius:2,fill:d===P.id?(L=lt(P.index||0))==null?void 0:L.dark:(z=lt(P.index||0))==null?void 0:z.light,stroke:(H=lt(P.index||0))==null?void 0:H.dark,all:!0})},P.index)})}),_.jsx("g",{children:a.map(P=>_.jsx(Hd,{axisCharLimit:20,x:T[P.id].x??0,y:(T[P.id].y??0)+40,textLabel:P.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},P.id))}),_.jsxs("g",{children:[E.nodes.map(P=>_.jsx(Hd,{axisCharLimit:8,x:P.depth===M?(P.x1??0)+10:(P.x0??0)-10,y:(P.y0??0)+((P.y1??0)-(P.y0??0))/2,textLabel:P.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:P.depth===M?"start":"end",fill:"#666666"}},P.index)),E.nodes.map(P=>P.value&&_.jsx(js,{x:P.depth===M?(P.x1??0)+10:(P.x0??0)-10,y:(P.y0??0)+((P.y1??0)-(P.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:P.depth===M?"start":"end",fill:"#666666"},children:`(${P.value.toString()})`},P.index))]})]}),g&&h&&_.jsx(C,{top:w,left:v,unstyled:!0,applyPositionStyle:!0,children:_.jsx(E4,{tooltipData:h,fromLabel:`From: ${a[h.source.group].name}`,toLabel:`To: ${a[h.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});Fw.displayName="Sankey";const jw=c.forwardRef((e,t)=>_.jsx(Xl,{debounceTime:10,children:({width:n,height:r})=>n&&r&&_.jsx(Fw,{ref:t,width:n,height:r,...e})}));jw.displayName="SankeyChart";const N4=jw;function Jl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function D4(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ww(e){let t,n,r;e.length!==2?(t=Jl,n=(l,u)=>Jl(e(l),u),r=(l,u)=>e(l)-u):(t=e===Jl||e===D4?e:A4,n=e,r=e);function o(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<0?s=f+1:d=f}while(s<d)}return s}function a(l,u,s=0,d=l.length){if(s<d){if(t(u,u)!==0)return d;do{const f=s+d>>>1;n(l[f],u)<=0?s=f+1:d=f}while(s<d)}return s}function i(l,u,s=0,d=l.length){const f=o(l,u,s,d-1);return f>s&&r(l[f-1],u)>-r(l[f],u)?f-1:f}return{left:o,center:i,right:a}}function A4(){return 0}function I4(e){return e===null?NaN:+e}const L4=Ww(Jl).right;Ww(I4).center;const F4=L4;function j4(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}function eu(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}function W4(e){return e}var z4=Array.prototype,B4=z4.slice;function Zd(e){return()=>e}const q4=Math.sqrt(50),H4=Math.sqrt(10),U4=Math.sqrt(2);function tu(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=q4?10:a>=H4?5:a>=U4?2:1;let l,u,s;return o<0?(s=Math.pow(10,-o)/i,l=Math.round(e*s),u=Math.round(t*s),l/s<e&&++l,u/s>t&&--u,s=-s):(s=Math.pow(10,o)*i,l=Math.round(e/s),u=Math.round(t/s),l*s<e&&++l,u*s>t&&--u),u<l&&.5<=n&&n<2?tu(e,t,n*2):[l,u,s]}function V4(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,a,i]=r?tu(t,e,n):tu(e,t,n);if(!(a>=o))return[];const l=a-o+1,u=new Array(l);if(r)if(i<0)for(let s=0;s<l;++s)u[s]=(a-s)/-i;else for(let s=0;s<l;++s)u[s]=(a-s)*i;else if(i<0)for(let s=0;s<l;++s)u[s]=(o+s)/-i;else for(let s=0;s<l;++s)u[s]=(o+s)*i;return u}function Qd(e,t,n){return t=+t,e=+e,n=+n,tu(e,t,n)[2]}function G4(e,t,n){let r;for(;;){const o=Qd(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function Y4(e){return Math.max(1,Math.ceil(Math.log(j4(e))/Math.LN2)+1)}function K4(){var e=W4,t=eu,n=Y4;function r(o){Array.isArray(o)||(o=Array.from(o));var a,i=o.length,l,u,s=new Array(i);for(a=0;a<i;++a)s[a]=e(o[a],a,o);var d=t(s),f=d[0],p=d[1],m=n(s,f,p);if(!Array.isArray(m)){const $=p,S=+m;if(t===eu&&([f,p]=G4(f,p,S)),m=V4(f,p,S),m[0]<=f&&(u=Qd(f,p,S)),m[m.length-1]>=p)if($>=p&&t===eu){const x=Qd(f,p,S);isFinite(x)&&(x>0?p=(Math.floor(p/x)+1)*x:x<0&&(p=(Math.ceil(p*-x)+1)/-x))}else m.pop()}for(var h=m.length,v=0,w=h;m[v]<=f;)++v;for(;m[w-1]>p;)--w;(v||w<h)&&(m=m.slice(v,w),h=w-v);var g=new Array(h+1),y;for(a=0;a<=h;++a)y=g[a]=[],y.x0=a>0?m[a-1]:f,y.x1=a<h?m[a]:p;if(isFinite(u)){if(u>0)for(a=0;a<i;++a)(l=s[a])!=null&&f<=l&&l<=p&&g[Math.min(h,Math.floor((l-f)/u))].push(o[a]);else if(u<0){for(a=0;a<i;++a)if((l=s[a])!=null&&f<=l&&l<=p){const $=Math.floor((f-l)*u);g[Math.min(h,$+(m[$]<=l))].push(o[a])}}}else for(a=0;a<i;++a)(l=s[a])!=null&&f<=l&&l<=p&&g[F4(m,l,0,h)].push(o[a]);return g}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:Zd(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:Zd([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:Zd(Array.isArray(o)?B4.call(o):o),r):n},r}function X4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function R4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Z4(e){return e=nu(Math.abs(e)),e?e[1]:NaN}function Q4(e,t){return function(n,r){for(var o=n.length,a=[],i=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(n.substring(o-=l,o+l)),!((u+=l+1)>r));)l=e[i=(i+1)%e.length];return a.reverse().join(t)}}function J4(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var eF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jd(e){if(!(t=eF.exec(e)))throw new Error("invalid format: "+e);var t;return new ep({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Jd.prototype=ep.prototype;function ep(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ep.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 tF(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var zw;function nF(e,t){var n=nu(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(zw=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+nu(e,Math.max(0,t+a-1))[0]}function Bw(e,t){var n=nu(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const qw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:R4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Bw(e*100,t),r:Bw,s:nF,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Hw(e){return e}var Uw=Array.prototype.map,Vw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rF(e){var t=e.grouping===void 0||e.thousands===void 0?Hw:Q4(Uw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Hw:J4(Uw.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(f){f=Jd(f);var p=f.fill,m=f.align,h=f.sign,v=f.symbol,w=f.zero,g=f.width,y=f.comma,$=f.precision,S=f.trim,x=f.type;x==="n"?(y=!0,x="g"):qw[x]||($===void 0&&($=12),S=!0,x="g"),(w||p==="0"&&m==="=")&&(w=!0,p="0",m="=");var C=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",E=v==="$"?r:/[%p]/.test(x)?i:"",M=qw[x],T=/[defgprs%]/.test(x);$=$===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function j(I){var B=C,Y=E,q,P,L;if(x==="c")Y=M(I)+Y,I="";else{I=+I;var z=I<0||1/I<0;if(I=isNaN(I)?u:M(Math.abs(I),$),S&&(I=tF(I)),z&&+I==0&&h!=="+"&&(z=!1),B=(z?h==="("?h:l:h==="-"||h==="("?"":h)+B,Y=(x==="s"?Vw[8+zw/3]:"")+Y+(z&&h==="("?")":""),T){for(q=-1,P=I.length;++q<P;)if(L=I.charCodeAt(q),48>L||L>57){Y=(L===46?o+I.slice(q+1):I.slice(q))+Y,I=I.slice(0,q);break}}}y&&!w&&(I=t(I,1/0));var H=B.length+I.length+Y.length,N=H<g?new Array(g-H+1).join(p):"";switch(y&&w&&(I=t(N+I,N.length?g-Y.length:1/0),N=""),m){case"<":I=B+I+Y+N;break;case"=":I=B+N+I+Y;break;case"^":I=N.slice(0,H=N.length>>1)+B+I+Y+N.slice(H);break;default:I=N+B+I+Y;break}return a(I)}return j.toString=function(){return f+""},j}function d(f,p){var m=s((f=Jd(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(Z4(p)/3)))*3,v=Math.pow(10,-h),w=Vw[8+h/3];return function(g){return m(v*g)+w}}return{format:s,formatPrefix:d}}var ru,Gw;oF({thousands:",",grouping:[3],currency:["$",""]});function oF(e){return ru=rF(e),Gw=ru.format,ru.formatPrefix,ru}function aF(e){return"bandwidth"in e?e.bandwidth():0}var iF=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}function lF(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yw(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,l=e.stroke,u=l===void 0?"#eaf0f6":l,s=e.strokeWidth,d=s===void 0?1:s,f=e.strokeDasharray,p=e.className,m=e.children,h=e.numTicks,v=h===void 0?10:h,w=e.lineStyle,g=e.offset,y=e.tickValues,$=lF(e,iF),S=y??Ff(a,v),x=(g??0)+aF(a)/2,C=S.map(function(E,M){var T,j=((T=Lf(a(E)))!=null?T:0)+x;return{index:M,from:new Ln({x:0,y:j}),to:new Ln({x:i,y:j})}});return c.createElement(Jn,{className:ft("visx-rows",p),top:n,left:o},m?m({lines:C}):C.map(function(E){var M=E.from,T=E.to,j=E.index;return c.createElement(u9,tp({key:"row-line-"+j,from:M,to:T,stroke:u,strokeWidth:d,strokeDasharray:f,style:w},$))}))}Yw.propTypes={tickValues:ne.array,width:ne.number.isRequired};function Kw({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:l}){const u=e==null?void 0:e.toString(),s=t==null?void 0:t.toString();return _.jsxs(Xe,{tooltipTitle:n,showSideBySide:!0,children:[_.jsx(Xe.Item,{label:r,value:u}),_.jsx(Xe.Item,{label:o,value:s}),_.jsx(Xe.Legend,{value:a,darkColor:i,lightColor:l})]})}Kw.defaultProps={xValue:void 0,yValue:void 0};const Xw=20,Rw=50,np=80,ou=50,uF=10,sF=25,rp=c.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:l,maxBinCount:u=sF,minBinCount:s=uF,integerBins:d=!1,integerYAxis:f=!1},p)=>{const m=c.useMemo(()=>eu(a),[a]),{histogramDomain:h,threshold:v,thresholdInteger:w}=c.useMemo(()=>{const N=m[0]??0,D=N===m[1]?s+N:m[1]??0,W=D-N>s?D:s+N,te=Math.min(Math.max(D-N,s),u),J=Math.floor(m[0]??0),ae=Math.ceil(W);return{histogramDomain:r||(d?[J,ae]:[N,D]),threshold:te,thresholdInteger:Math.ceil(te)}},[m,r,d,u,s]),g=c.useMemo(()=>ba({domain:h,range:[ou,i-Rw],round:!0,nice:!0}),[h,i]),y=c.useMemo(()=>K4().domain(g.domain()).thresholds(o||(d?w:v))(a),[g,o,a,v,w,d]),$=c.useMemo(()=>ba({domain:[0,X4(y,N=>N.length)??0],range:[l-np,Xw],round:!0,nice:!0}),[y,l]),S=c.useMemo(()=>$.ticks().filter(N=>f?Number.isInteger(N):N),[f,$]),x=c.useRef(null);Yd(x,p,`${t}-${n}-Histogram`);const{tooltipData:C,tooltipLeft:E,tooltipTop:M,tooltipOpen:T,showTooltip:j,hideTooltip:I}=od(),{containerBounds:B,containerRef:Y,TooltipInPortal:q}=fd({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),P=i-ou-Rw,L=l-Xw-np-100,z=c.useCallback((N,D)=>{const W=("clientX"in N?N.clientX:0)-B.left,te=("clientY"in N?N.clientY:0)-B.top;W&&te&&j({tooltipLeft:W,tooltipTop:te,tooltipData:D})},[j,B]),H=c.useCallback(()=>{I()},[I]);return _.jsxs("div",{className:"bg-white flex flex-col rabbit-ds",style:{width:i,height:l},ref:x,children:[_.jsxs("svg",{width:i,height:l,ref:Y,children:[_.jsx(td,{orientation:"bottom",scale:g,top:l-np,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),_.jsx(td,{orientation:"left",scale:$,left:ou,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:f?Gw("d"):void 0,tickValues:S,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),_.jsxs(Jn,{children:[_.jsx(Yw,{scale:$,width:P,height:L,left:ou,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),y.map(N=>{const D=Math.abs($(0)-$(N.length)),W=Math.abs(g(N.x1??0)-g(N.x0??0));return _.jsx("g",{children:_.jsx(G7,{x:g(N.x0??0),y:$(N.length),width:W,height:D&&D-1,fill:lt(0).light,stroke:lt(0).dark,strokeWidth:1,onMouseMove:te=>z(te,N),onMouseLeave:()=>H()})},Math.random())})]})]}),T&&C&&_.jsx(q,{top:M,left:E,unstyled:!0,applyPositionStyle:!0,children:_.jsx(Kw,{xAxisLabel:t,xValue:`${C.x0} to ${C.x1}`,yAxisLabel:n,yValue:C.length,tooltipTitle:e,legendValue:n,legendDarkColor:lt(0).dark,legendLightColor:lt(0).light})},Math.random()),$.domain()[2]]})}),Zw=c.forwardRef((e,t)=>_.jsx(Xl,{debounceTime:10,children:({width:n,height:r})=>_.jsx(rp,{ref:t,width:n,height:r,...e})}));rp.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},rp.displayName="HistogramBase",Zw.displayName="HistogramChart";const cF=Zw;function fF({count:e,totalCount:t,title:n,subTitle:r,className:o,unstyledDimension:a=!1,style:i}){const l="max-w-[336px] min-h-[96px] min-w-[200px]";return _.jsxs("div",{className:be("rabbit-ds box-border px-2 py-4 bg-white rounded-lg shadow flex-col justify-center items-start gap-1 inline-flex",o,!a&&l),style:i,children:[_.jsxs("div",{className:"self-stretch px-3 py-1 flex items-baseline",children:[_.jsx("div",{className:"text-zinc-800 text-2xl font-semibold",children:e}),t&&t>0?_.jsxs("div",{className:"text-stone-500 text-xs font-normal",children:["/",t]}):null]}),_.jsx("div",{className:"self-stretch px-3 justify-start items-center gap-2 inline-flex",children:_.jsxs("div",{className:"grow shrink basis-0 flex-col justify-start items-start gap-0.5 inline-flex",children:[_.jsx("div",{className:"self-stretch justify-start items-start gap-2.5 inline-flex",children:_.jsx("div",{className:"grow shrink basis-0 text-zinc-800 text-xs font-semibold leading-none",children:n})}),r&&_.jsx("div",{className:"self-stretch justify-start py-2 items-center gap-1 inline-flex",children:_.jsx("div",{className:"grow shrink basis-0 text-stone-500 text-xs font-normal leading-none",children:r})})]})})]})}const au="ToggleGroup",[Qw,Nj]=vt(au,[Tr]),Jw=Tr(),dF=c.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return c.createElement(pF,X({},o,{ref:t}))}if(n==="multiple"){const o=r;return c.createElement(hF,X({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${au}\``)}),[ex,tx]=Qw(au),pF=c.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=_t({prop:n,defaultProp:r,onChange:o});return c.createElement(ex,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:l,onItemDeactivate:c.useCallback(()=>l(""),[l])},c.createElement(nx,X({},a,{ref:t})))}),hF=c.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=_t({prop:n,defaultProp:r,onChange:o}),u=c.useCallback(d=>l((f=[])=>[...f,d]),[l]),s=c.useCallback(d=>l((f=[])=>f.filter(p=>p!==d)),[l]);return c.createElement(ex,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:s},c.createElement(nx,X({},a,{ref:t})))}),[mF,vF]=Qw(au),nx=c.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...u}=e,s=Jw(n),d=_r(i),f={role:"group",dir:d,...u};return c.createElement(mF,{scope:n,rovingFocus:o,disabled:r},o?c.createElement(Xu,X({asChild:!0},s,{orientation:a,dir:d,loop:l}),c.createElement(we.div,X({},f,{ref:t}))):c.createElement(we.div,X({},f,{ref:t})))}),op="ToggleGroupItem",gF=c.forwardRef((e,t)=>{const n=tx(op,e.__scopeToggleGroup),r=vF(op,e.__scopeToggleGroup),o=Jw(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},u=c.useRef(null);return r.rovingFocus?c.createElement(Ru,X({asChild:!0},o,{focusable:!i,active:a,ref:u}),c.createElement(rx,X({},l,{ref:t}))):c.createElement(rx,X({},l,{ref:t}))}),rx=c.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=tx(op,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return c.createElement(Sp,X({},l,o,{ref:t,onPressedChange:u=>{u?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),yF=dF,bF=gF;function wF({children:e,...t}){return _.jsx(yF,{className:"flex gap-2",...t,children:e})}function xF({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return _.jsx(bF,{asChild:!0,value:e,...i,children:_.jsx("button",{type:"button",className:be("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:_.jsxs("div",{className:"px-4 py-1 rounded-full flex-row justify-start items-center gap-2.5 flex",children:[r?_.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:r}):null,_.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[o?_.jsx("span",{children:o}):null," ",a?_.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const ox=hi,ax=di,ix=fi,lx=gi,ux=mi,sx=vi,cx=c.forwardRef(({className:e,children:t,align:n="end",...r},o)=>_.jsx(pi,{ref:o,align:n,...r,children:t}));cx.displayName="SplitButtonDropdownContent";const $F=yt("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon"}},defaultVariants:{size:"normal"}});function _F({children:e,size:t,status:n,variant:r,...o}){return _.jsx("div",{className:"rabbit-ds flex flex-row",children:_.jsxs(ls,{children:[_.jsx(Pr,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),_.jsx(us,{asChild:!0,children:_.jsx(Pr,{variant:r,status:n,className:"rounded-l-none border-l-0",size:$F({size:t}),children:_.jsx(wu,{})})})]})})}ox.displayName="SplitButtonDropdownItem",ax.displayName="SplitButtonDropdownGroup",ix.displayName="SplitButtonDropdownRadioGroup",lx.displayName="SplitButtonDropdownLabel",ux.displayName="SplitButtonDropdownCheckboxItem",sx.displayName="SplitButtonDropdownRadioItem";function PF({status:e=Ve.ON_TRACK,startValue:t=0,targetValue:n=100,achievedValue:r=0,percentageToDisplay:o=0,metricName:a="",measureBy:i={isPrefix:!1,symbol:""}}){const l=a.length>35?`${a.slice(0,35)}...`:a,u=Ba(r),s=Ba(t),d=Ba(n);return _.jsxs("div",{className:"rabbit-ds w-full px-3 py-2 flex-col justify-center items-start inline-flex min-w-[304px] box-border",children:[_.jsx("div",{className:"w-full py-0.5 justify-start items-center gap-1 inline-flex h-4",children:_.jsx("div",{className:"text-right text-xs font-normal text-[#666666] leading-3",children:l})}),_.jsxs("div",{className:"w-full self-stretch justify-start items-start gap-1 inline-flex h-5",children:[_.jsx("div",{className:"w-9/12 h-5 justify-start items-start flex",children:_.jsx(Ap,{progressInPercentage:o,status:e})}),_.jsx("div",{className:"h-[20px] justify-start items-center gap-1 inline-flex grow",children:_.jsx("div",{className:" text-sm text-[#333333] leading-5 font-[590] w-full text-left ",children:i.isPrefix?i.symbol+u:u+i.symbol})})]}),_.jsxs("div",{className:"w-9/12 justify-between items-center inline-flex",children:[_.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:_.jsx("div",{className:"grow shrink basis-0 h-4 justify-start items-start gap-2.5 inline-flex",children:_.jsx("div",{className:" text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+s:s+i.symbol})})}),_.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:_.jsx("div",{className:"grow shrink basis-0 h-4 justify-end items-start gap-2.5 inline-flex",children:_.jsx("div",{className:"text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+d:d+i.symbol})})})]})]})}const SF=yt(["rabbit-ds w-full h-full py-2 px-3"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function OF(){return _.jsx("div",{className:"w-full h-full relative",children:_.jsxs("div",{className:"w-full h-full left-0 top-0 absolute bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0, 0, 0, 0.05)_inset]",children:[_.jsx("div",{className:"w-full h-full left-0 top-0 absolute mix-blend-darken bg-gradient-to-b from-slate-200 via-neutral-100 to-neutral-100 shadow-inner"}),_.jsx("div",{className:"w-full h-full left-0 top-0 absolute mix-blend-hard-light bg-gradient-to-b from-slate-200 via-neutral-100 to-neutral-100 shadow-inner"}),_.jsx("div",{className:"w-full h-full left-0 top-0 absolute opacity-60 mix-blend-multiply bg-gradient-to-r from-cyan-200 via-cyan-200 to-neutral-100 shadow-inner"}),_.jsx("div",{className:"w-full h-full left-0 top-0 absolute opacity-90 mix-blend-darken bg-gradient-to-b from-cyan-200 via-blue-100 to-sky-50 backdrop-blur-sm"}),_.jsx("div",{className:"w-full h-full left-0 top-0 absolute mix-blend-hard-light bg-gradient-to-r from-slate-100 via-neutral-100 to-cyan-200 shadow-inner"})]})})}const fx=c.forwardRef(({className:e,children:t,...n},r)=>_.jsxs("div",{className:"rabbit-ds w-20 h-screen relative",children:[_.jsx("div",{className:"w-full h-full absolute inset",children:_.jsx(OF,{})}),_.jsx("nav",{className:be(SF({className:e})),ref:r,...n,children:t})]}));fx.displayName="LeftNav";const ap=c.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?cn:"div";return _.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})});ap.displayName="LeftNavItem",ap.defaultProps={asChild:!1};const MF=yt(["w-full flex-col justify-start items-center gap-1 inline-flex"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),dx=c.forwardRef(({children:e,align:t,...n},r)=>_.jsx("div",{ref:r,className:be(MF({variant:t})),...n,children:e}));dx.displayName="LeftNavItem";const px=c.createContext({isOpen:!1,toggleOpen:()=>{}}),CF=()=>c.useContext(px);function EF(e){const{children:t,collapseButton:n,defaultOpen:r=!1}=e,o=e.open!==void 0,[a,i]=c.useState(r),l=c.useCallback(()=>{i(f=>!f)},[]),u=o?e.open:a,s=o?e.onToggle:l,d=c.useMemo(()=>({isOpen:u,toggleOpen:s}),[u,s]);return _.jsx(px.Provider,{value:d,children:_.jsxs("div",{className:`rabbit-ds relative h-screen transition-all ${u?"w-full":"w-0"} shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]`,children:[n,_.jsx("div",{className:u?"p-5":"w-0 h-0 overflow-hidden scale-0 opacity-0 invisible",children:t})]})})}function TF({children:e}){return _.jsx("div",{className:be("nav-group flex flex-col gap-1","after:h-[1px] after:bg-[#EBEFF3] after:w-full after:my-4 last:after:hidden"),children:e})}function kF({children:e}){return _.jsx("div",{className:"p-2 text-dark-medium font-semibold text-xs",children:e})}function NF({children:e,...t}){return _.jsx(Zm,{...t,children:e})}const DF=yt("",{variants:{variant:{default:"transition-transform rotate-0",collapsed:"transition-transform rotate-180"}},defaultVariants:{variant:"default"}});function AF({icon:e,className:t,isCollapsed:n,...r}){return _.jsx("button",{type:"button",className:be(DF({variant:n?"collapsed":"default"}),"bg-[#EBEFF3] cursor-pointer text-[#104F95] rounded-tl-full rounded-bl-full border border-solid border-[#CFD7DF] px-2","hover:text-white hover:bg-[#125AA9] hover:border-[#125AA9]",t),...r,children:_.jsx("div",{className:"h-6 w-6",children:e})})}function IF({...e}){const{isOpen:t,toggleOpen:n}=CF();return _.jsx(AF,{className:`absolute top-5 right-0 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function LF({className:e,...t}){return _.jsx(Pr,{className:be(e,"ml-2"),...t})}const FF={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function jF({title:e,achieved:t,status:n}){const r=FF[n];return _.jsx("div",{className:"rabbit-ds mr-auto",children:_.jsxs("div",{className:"flex flex-col p-2 gap-1",children:[_.jsx("div",{className:"text-sm font-semibold",children:e}),_.jsxs("div",{className:"flex items-end gap-3",children:[_.jsxs("div",{className:"flex flex-col",children:[_.jsx("span",{className:"text-xs text-dark-medium",children:"Achieved"}),_.jsxs("span",{className:be(r.colorScheme,"font-semibold text-2xl !bg-transparent"),children:[t,"%"]})]}),_.jsx(_i,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function WF({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return _.jsx("div",{className:"rabbit-ds mr-auto",children:_.jsxs("div",{className:"flex gap-2",children:[_.jsx(Lr,{size:"xl",children:_.jsx(Fr,{src:t,alt:"Avatar"})}),_.jsxs("div",{className:"flex flex-col items-start text-sm",children:[_.jsx("span",{className:"font-semibold",children:e}),_.jsx(_i,{className:"mt-0.5",variant:"outlined",children:r}),_.jsx("span",{className:"text-dark-medium mt-2",children:n}),_.jsxs("span",{className:"text-dark-medium mt-0.5",children:["Due by ",o]})]})]})})}function zF({employeeName:e,employeeProfilePhoto:t,designation:n}){return _.jsx("div",{className:"rabbit-ds mr-auto",children:_.jsxs("div",{className:"flex gap-2",children:[_.jsx(Lr,{size:"xl",children:_.jsx(Fr,{src:t,alt:"Avatar"})}),_.jsxs("div",{className:"flex flex-col items-start text-sm",children:[_.jsx("span",{className:"font-semibold",children:e}),_.jsx("span",{className:"text-dark-medium",children:n})]})]})})}function BF({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return _.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:_.jsxs("div",{className:"flex gap-2 w-full",children:[_.jsx(Lr,{size:"xl",children:_.jsx(Fr,{src:t,alt:"Avatar"})}),_.jsxs("div",{className:"flex flex-col items-start text-sm w-full",children:[_.jsx("span",{className:"font-semibold",children:e}),_.jsx(_i,{className:"mt-0.5",variant:"outlined",children:n}),_.jsx("span",{className:"text-dark-medium mt-2 w-full overflow-hidden whitespace-nowrap text-ellipsis",children:r})]})]})})}function qF({className:e,children:t}){return _.jsx("div",{className:be(e,"rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]"),children:t})}function HF({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3}){const[a,i]=c.useState(1),l=e.slice(0,o*a),u=e.length>o,s=e.length===l.length,d=()=>{i(f=>s?1:f+1)};return _.jsxs("div",{className:be("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[_.jsx("span",{className:"text-lg font-semibold",children:t}),_.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[_.jsx(Lr,{className:"h-24 w-24",children:_.jsx(Fr,{src:n,alt:t})}),_.jsx("span",{children:r})]}),l,u&&_.jsx("div",{className:"mx-auto",children:_.jsxs(Pr,{variant:"text",onClick:d,iconRight:s?_.jsx(Yx,{size:16}):_.jsx(wu,{size:16}),children:["View ",s?"less":"more"]})})]})}ee.Avatar=Lr,ee.AvatarFallback=vv,ee.AvatarImage=Fr,ee.Button=Pr,ee.CardKPI=fF,ee.Checkbox=Pp,ee.Chip=O$,ee.ChipGroup=wF,ee.ChipGroupItem=xF,ee.Dropdown=ls,ee.DropdownCheckboxItem=mi,ee.DropdownContent=pi,ee.DropdownGroup=di,ee.DropdownItem=hi,ee.DropdownLabel=gi,ee.DropdownPortal=wm,ee.DropdownRadioGroup=fi,ee.DropdownRadioItem=vi,ee.DropdownSeparator=fs,ee.DropdownSub=xm,ee.DropdownSubContent=cs,ee.DropdownSubTrigger=ss,ee.DropdownTrigger=us,ee.GoalsNudgeData=jF,ee.HistogramChart=cF,ee.Input=M$,ee.LeftNav=fx,ee.LeftNavGroup=dx,ee.LeftNavItem=ap,ee.LeftNavItemDropdown=ls,ee.LeftNavItemDropdownCheckboxItem=mi,ee.LeftNavItemDropdownContent=pi,ee.LeftNavItemDropdownGroup=di,ee.LeftNavItemDropdownItem=hi,ee.LeftNavItemDropdownLabel=gi,ee.LeftNavItemDropdownPortal=wm,ee.LeftNavItemDropdownRadioGroup=fi,ee.LeftNavItemDropdownRadioItem=vi,ee.LeftNavItemDropdownSeparator=fs,ee.LeftNavItemDropdownSub=xm,ee.LeftNavItemDropdownSubContent=cs,ee.LeftNavItemDropdownSubTrigger=ss,ee.LeftNavItemDropdownTrigger=us,ee.LineChart=$4,ee.ListItem=Zm,ee.ListItemLeftIcon=JM,ee.ListItemRightIcon=tC,ee.ListItemText=ZM,ee.NavButton=Xm,ee.NavCollapseButtonL2=IF,ee.NavGroupL2=TF,ee.NavGroupTitleL2=kF,ee.NavItemL2=NF,ee.NavL2=EF,ee.NavProfilePhoto=cv,ee.NudgeAction=LF,ee.NudgeCard=HF,ee.NudgeCardItem=qF,ee.ProgressBar=Ap,ee.ProgressInfo=PF,ee.ProgressSlider=p_,ee.RequestedFeedbackNudgeData=BF,ee.ReviewsNudgeData=WF,ee.SankeyChart=N4,ee.Select=xM,ee.SelectContent=Fm,ee.SelectGroup=$M,ee.SelectItem=Wm,ee.SelectLabel=jm,ee.SelectSeparator=zm,ee.SelectTrigger=Lm,ee.SelectValue=_M,ee.SharePraiseNudgeData=zF,ee.SplitButton=_F,ee.SplitButtonDropdownCheckboxItem=ux,ee.SplitButtonDropdownContent=cx,ee.SplitButtonDropdownGroup=ax,ee.SplitButtonDropdownItem=ox,ee.SplitButtonDropdownLabel=lx,ee.SplitButtonDropdownRadioGroup=ix,ee.SplitButtonDropdownRadioItem=sx,ee.Tabs=iv,ee.TabsContent=sv,ee.TabsList=lv,ee.TabsTrigger=uv,ee.Tag=_i,ee.Tooltip=Gm,ee.TooltipContent=bs,ee.TooltipPortal=Km,ee.TooltipProvider=Vm,ee.TooltipTrigger=Ym,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
91
+ `}),Y.appendChild(z.createTextNode(st))}q.timeEnd("clone node"),he==null||he(Te),de!==!1&&ue(Te)&&(q.time("embed web font"),yield XN(Te,I),q.timeEnd("embed web font")),q.time("embed node"),J1(Te,I);const Pe=ee.length;let ke=0;const ze=()=>m(this,null,function*(){for(;;){const st=ee.pop();if(!st)break;try{yield st}catch(hn){je("Failed to run task",hn)}fe==null||fe(++ke,Pe)}});fe==null||fe(ke,Pe),yield Promise.all([...Array(4)].map(ze)),q.timeEnd("embed node"),Se==null||Se(Te);const Ie=o_(Te,I);return R&&Ie.insertBefore(R,Ie.children[0]),Y&&Ie.insertBefore(Y,Ie.children[0]),ve&&Y1(I),$e==null||$e(Ie),Ie})}function o_($,P){const{width:I,height:z}=P,q=un(I,z,$.ownerDocument),ee=q.ownerDocument.createElementNS(q.namespaceURI,"foreignObject");return ee.setAttributeNS(null,"x","0%"),ee.setAttributeNS(null,"y","0%"),ee.setAttributeNS(null,"width","100%"),ee.setAttributeNS(null,"height","100%"),ee.append($),q.appendChild(ee),q}function us($,P){return m(this,null,function*(){var I;const z=yield bt($,P),q=yield R1(z),ee=jt(q,z.isEnable("removeControlCharacter"));z.autoDestruct||(z.svgStyleElement=it(z.ownerDocument),z.svgDefsElement=(I=z.ownerDocument)==null?void 0:I.createElementNS(Ft,"defs"),z.svgStyles.clear());const Y=Et(ee,q.ownerDocument);return yield dn(Y,z)})}function a_($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,type:q,quality:ee,dpi:Y}=I,R=yield us(I);z.time("canvas to blob");const ce=yield Jr(R,q,ee);if(["image/png","image/jpeg"].includes(q)&&Y){const de=yield dr(ce.slice(0,33));let fe=new Uint8Array(de);return q==="image/png"?fe=O(fe,Y):q==="image/jpeg"&&(fe=x(fe,Y)),z.timeEnd("canvas to blob"),new Blob([fe,ce.slice(33)],{type:q})}return z.timeEnd("canvas to blob"),ce})}function ro($,P){return m(this,null,function*(){const I=yield bt($,P),{log:z,quality:q,type:ee,dpi:Y}=I,R=yield us(I);z.time("canvas to data url");let ce=R.toDataURL(ee,q);if(["image/png","image/jpeg"].includes(ee)&&Y&&B&&V){const[de,fe]=ce.split(",");let ve=0,he=!1;if(ee==="image/png"){const Ie=G(fe);Ie>=0?(ve=Math.ceil((Ie+28)/3)*4,he=!0):ve=33/3*4}else ee==="image/jpeg"&&(ve=18/3*4);const Se=fe.substring(0,ve),$e=fe.substring(ve),Te=window.atob(Se),Pe=new Uint8Array(Te.length);for(let Ie=0;Ie<Pe.length;Ie++)Pe[Ie]=Te.charCodeAt(Ie);const ke=ee==="image/png"?O(Pe,Y,he):x(Pe,Y),ze=window.btoa(String.fromCharCode(...ke));ce=[de,",",ze,$e].join("")}return z.timeEnd("canvas to data url"),ce})}function eb($,P){return m(this,null,function*(){const I=yield bt($,P),{width:z,height:q,ownerDocument:ee}=I,Y=yield ro(I),R=un(z,q,ee),ce=R.ownerDocument.createElementNS(R.namespaceURI,"image");return ce.setAttributeNS(null,"href",Y),ce.setAttributeNS(null,"height","100%"),ce.setAttributeNS(null,"width","100%"),R.appendChild(ce),jt(R,I.isEnable("removeControlCharacter"))})}function i_($,P){return m(this,null,function*(){const I=yield bt($,P),{ownerDocument:z,width:q,height:ee,scale:Y,type:R}=I,ce=R==="image/svg+xml"?yield eb(I):yield ro(I),de=Et(ce,z);return de.width=Math.floor(q*Y),de.height=Math.floor(ee*Y),de.style.width=`${q}px`,de.style.height=`${ee}px`,de})}function s_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/jpeg"})))})}function l_($,P){return m(this,null,function*(){const I=yield bt($,P),z=yield us(I);return z.getContext("2d").getImageData(0,0,z.width,z.height).data})}function c_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/png"})))})}function u_($,P){return m(this,null,function*(){return ro(yield bt($,g(h({},P),{type:"image/webp"})))})}n.createContext=is,n.destroyContext=Y1,n.domToBlob=a_,n.domToCanvas=us,n.domToDataUrl=ro,n.domToForeignObjectSvg=R1,n.domToImage=i_,n.domToJpeg=s_,n.domToPixel=l_,n.domToPng=c_,n.domToSvg=eb,n.domToWebp=u_,n.loadMedia=zt,n.waitUntilLoad=Dn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Iu,Iu.exports);var M9=Iu.exports;const Lu=(e,t,n)=>{u.useImperativeHandle(t,()=>({download(){e.current&&M9.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},P9=({x:e,y:t,datum:n,size:r})=>y.jsx(Nu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),k9=({x:e,y:t,datum:n})=>y.jsx(Nu,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),Qi={xAccessor:e=>e.x,yAccessor:e=>e.y},Kv=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,Xv=10,O9=5,Fu=u.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:c,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:g,connectNulls:p=!1,maxNodesInMiniMode:m=O9,tooltipStackCharLimit:x=Xv},b)=>{const[v,w]=u.useState(e.map(T=>T.id)),E=u.useRef(null);Lu(E,b,`${a}-${i}-LineChart`);const S=u.useMemo(()=>o.map((T,O)=>({points:T.data.map((F,j)=>({x:r[j],y:F,nodeId:T.id,color:rt(O)}))})).slice(0,h==="mini"?m:o.length),[r,o,h,m]),M=u.useMemo(()=>h==="full"?S.filter(T=>v.includes(T.points[0].nodeId)):S,[S,v,h]),N=u.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return y.jsxs("div",{ref:E,id:"line-chart",className:"bg-white flex flex-col rabbit-ds",style:{width:n,height:t},children:[y.jsxs("div",{className:"w-full min-w-0 min-h-0 h-full flex flex-row",children:[y.jsx("div",{className:"w-full min-w-0 min-h-0 h-full",children:y.jsxs(Kr,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[y.jsx(K4,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),y.jsx(uv,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:T=>c?Kv(T,c.symbol,c.position):T,rangePadding:{end:10},tickComponent:T=>y.jsx(_u,{textLabel:T.formattedValue||"",x:T.x,y:T.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:g??N}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsx(uv,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?Kv(T,f.symbol,f.position):T,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),M.map((T,O)=>y.jsxs(y.Fragment,{children:[y.jsx(T9,{data:T.points,xAccessor:Qi.xAccessor,yAccessor:Qi.yAccessor,connectNulls:p}),y.jsx(y9,{dataKey:`Performance Management ${O}`,data:T.points,size:8,renderGlyph:P9,xAccessor:Qi.xAccessor,yAccessor:Qi.yAccessor})]})),y.jsx(wv,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:k9,renderTooltip:({tooltipData:T})=>{var j,H,G,L,C,_;const O=e.find(B=>{var V;return B.id===((V=T==null?void 0:T.nearestDatum)==null?void 0:V.datum.nodeId)}),F=((j=T==null?void 0:T.nearestDatum)==null?void 0:j.datum)&&((H=T==null?void 0:T.nearestDatum)==null?void 0:H.datum.x.length)<x;return y.jsx(qv,{xValue:(G=T==null?void 0:T.nearestDatum)==null?void 0:G.datum.x,yValue:(L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!F,tooltipTitle:d,legendValue:(O==null?void 0:O.name)||"",legendDarkColor:((C=T==null?void 0:T.nearestDatum)==null?void 0:C.datum.color.dark)||rt(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||rt(0).light})}})]})}),h==="full"&&y.jsxs("div",{className:"w-64 p-4 bg-zinc-100 rounded-lg flex-col justify-start items-start gap-0.5 inline-flex text-xs grow-0 shrink-0 basis-auto",children:[y.jsxs("div",{className:"text-sm font-semibold pb-2",children:[y.jsx("span",{className:"pr-1",children:a}),"(",S.length,")"]}),S.map(T=>{const O=e.find(F=>F.id===T.points[0].nodeId);return O&&y.jsxs("div",{className:"flex justify-between items-center gap-1 py-1 w-full",children:[y.jsxs("div",{className:"flex justify-between items-center",children:[y.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border mr-1"}),O.name]}),y.jsx("div",{className:"flex items-center",children:y.jsx(xd,{checked:v.includes(O.id),onCheckedChange:F=>{let j=[...v];F?j=[...v,O.id]:j.splice(v.indexOf(O.id),1),w(j)}})})]},O.id)})]})]}),h==="mini"&&y.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] text-[#666666] font-semibold",children:S.map(T=>{const O=e.find(F=>F.id===T.points[0].nodeId);return y.jsxs("div",{className:"flex justify-center items-center gap-1",children:[y.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),O==null?void 0:O.name]},O==null?void 0:O.id)})})]})}),N9={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:Xv,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};Fu.defaultProps=N9,Fu.displayName="LineBase";const Zv=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>y.jsx(Fu,{ref:t,width:n,height:r,...e})}));Zv.displayName="LineChart";const _9=Zv;function Qv(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function D9(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function ju(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function A9(e,t){return e.sourceLinks.length?e.depth:t-1}function Ji(e){return function(){return e}}function Jv(e,t){return Ri(e.source,t.source)||e.index-t.index}function Rv(e,t){return Ri(e.target,t.target)||e.index-t.index}function Ri(e,t){return e.y0-t.y0}function zu(e){return e.value}function I9(e){return e.index}function L9(e){return e.nodes}function F9(e){return e.links}function e1(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function t1({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function j9(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=I9,l=A9,c,f,d=L9,h=F9,g=6;function p(){const C={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return m(C),x(C),b(C),v(C),S(C),t1(C),C}p.update=function(C){return t1(C),C},p.nodeId=function(C){return arguments.length?(s=typeof C=="function"?C:Ji(C),p):s},p.nodeAlign=function(C){return arguments.length?(l=typeof C=="function"?C:Ji(C),p):l},p.nodeSort=function(C){return arguments.length?(c=C,p):c},p.nodeWidth=function(C){return arguments.length?(o=+C,p):o},p.nodePadding=function(C){return arguments.length?(a=i=+C,p):a},p.nodes=function(C){return arguments.length?(d=typeof C=="function"?C:Ji(C),p):d},p.links=function(C){return arguments.length?(h=typeof C=="function"?C:Ji(C),p):h},p.linkSort=function(C){return arguments.length?(f=C,p):f},p.size=function(C){return arguments.length?(e=t=0,n=+C[0],r=+C[1],p):[n-e,r-t]},p.extent=function(C){return arguments.length?(e=+C[0][0],n=+C[1][0],t=+C[0][1],r=+C[1][1],p):[[e,t],[n,r]]},p.iterations=function(C){return arguments.length?(g=+C,p):g};function m({nodes:C,links:_}){for(const[V,D]of C.entries())D.index=V,D.sourceLinks=[],D.targetLinks=[];const B=new Map(C.map((V,D)=>[s(V,D,C),V]));for(const[V,D]of _.entries()){D.index=V;let{source:A,target:W}=D;typeof A!="object"&&(A=D.source=e1(B,A)),typeof W!="object"&&(W=D.target=e1(B,W)),A.sourceLinks.push(D),W.targetLinks.push(D)}if(f!=null)for(const{sourceLinks:V,targetLinks:D}of C)V.sort(f),D.sort(f)}function x({nodes:C}){for(const _ of C)_.value=_.fixedValue===void 0?Math.max(ju(_.sourceLinks,zu),ju(_.targetLinks,zu)):_.fixedValue}function b({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.depth=D;for(const{target:W}of A.sourceLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function v({nodes:C}){const _=C.length;let B=new Set(C),V=new Set,D=0;for(;B.size;){for(const A of B){A.height=D;for(const{source:W}of A.targetLinks)V.add(W)}if(++D>_)throw new Error("circular link");B=V,V=new Set}}function w({nodes:C}){const _=Qv(C,D=>D.depth)+1,B=(n-e-o)/(_-1),V=new Array(_);for(const D of C){const A=Math.max(0,Math.min(_-1,Math.floor(l.call(null,D,_))));D.layer=A,D.x0=e+A*B,D.x1=D.x0+o,V[A]?V[A].push(D):V[A]=[D]}if(c)for(const D of V)D.sort(c);return V}function E(C){const _=D9(C,B=>(r-t-(B.length-1)*i)/ju(B,zu));for(const B of C){let V=t;for(const D of B){D.y0=V,D.y1=V+D.value*_,V=D.y1+i;for(const A of D.sourceLinks)A.width=A.value*_}V=(r-V+i)/(B.length+1);for(let D=0;D<B.length;++D){const A=B[D];A.y0+=V*(D+1),A.y1+=V*(D+1)}H(B)}}function S(C){const _=w(C);i=Math.min(a,(r-t)/(Qv(_,B=>B.length)-1)),E(_);for(let B=0;B<g;++B){const V=Math.pow(.99,B),D=Math.max(1-V,(B+1)/g);N(_,V,D),M(_,V,D)}}function M(C,_,B){for(let V=1,D=C.length;V<D;++V){const A=C[V];for(const W of A){let ne=0,Q=0;for(const{source:oe,value:ue}of W.targetLinks){let X=ue*(W.layer-oe.layer);ne+=G(oe,W)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(Ri),T(A,B)}}function N(C,_,B){for(let V=C.length,D=V-2;D>=0;--D){const A=C[D];for(const W of A){let ne=0,Q=0;for(const{target:oe,value:ue}of W.sourceLinks){let X=ue*(oe.layer-W.layer);ne+=L(W,oe)*X,Q+=X}if(!(Q>0))continue;let re=(ne/Q-W.y0)*_;W.y0+=re,W.y1+=re,j(W)}c===void 0&&A.sort(Ri),T(A,B)}}function T(C,_){const B=C.length>>1,V=C[B];F(C,V.y0-i,B-1,_),O(C,V.y1+i,B+1,_),F(C,r,C.length-1,_),O(C,t,0,_)}function O(C,_,B,V){for(;B<C.length;++B){const D=C[B],A=(_-D.y0)*V;A>1e-6&&(D.y0+=A,D.y1+=A),_=D.y1+i}}function F(C,_,B,V){for(;B>=0;--B){const D=C[B],A=(D.y1-_)*V;A>1e-6&&(D.y0-=A,D.y1-=A),_=D.y0-i}}function j({sourceLinks:C,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:B}}of _)B.sort(Rv);for(const{target:{targetLinks:B}}of C)B.sort(Jv)}}function H(C){if(f===void 0)for(const{sourceLinks:_,targetLinks:B}of C)_.sort(Rv),B.sort(Jv)}function G(C,_){let B=C.y0-(C.sourceLinks.length-1)*i/2;for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B+=D+i}for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B-=D}return B}function L(C,_){let B=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:V,width:D}of _.targetLinks){if(V===C)break;B+=D+i}for(const{target:V,width:D}of C.sourceLinks){if(V===_)break;B-=D}return B}return p}function z9({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var s,l,c,f;const a=e.source,i=e.target;return y.jsxs(Ye,{tooltipTitle:o,children:[y.jsx(Ye.Item,{label:t,value:a.name}),y.jsx(Ye.Item,{label:n,value:i.name}),y.jsx(Ye.Item,{label:r,value:e.weight.toString()}),y.jsx(Ye.Legend,{value:a.name,darkColor:(s=rt(a.index||0))==null?void 0:s.dark,lightColor:(l=rt(a.index||0))==null?void 0:l.light}),y.jsx(Ye.Legend,{value:i.name,darkColor:(c=rt(i.index||0))==null?void 0:c.dark,lightColor:(f=rt(i.index||0))==null?void 0:f.light})]})}const n1=80,r1=20,B9=30,W9=12,o1=u.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=u.useMemo(()=>j9().nodeId(C=>C.id).nodeWidth(W9).nodePadding(B9).nodeAlign(C=>C.group),[]),c=u.useRef(null);Lu(c,s,`${n}-SankeyChart`);const[f,d]=u.useState(""),[h,g]=u.useState(null),{tooltipData:p,tooltipLeft:m,tooltipTop:x,tooltipOpen:b,showTooltip:v,hideTooltip:w}=qc(),{containerBounds:E,containerRef:S,TooltipInPortal:M}=eu({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),N=u.useMemo(()=>l.extent([[n1,r1],[t-n1,e-r1-50]])({nodes:r,links:o.map(C=>({...C,value:Number(C.weight)}))}),[e,t,l,r,o]),T=u.useMemo(()=>Math.max(...N.nodes.map(C=>C.depth??0)),[N]),O=u.useMemo(()=>{const C={};let _=-1/0;return N.nodes.forEach(B=>{const{group:V}=B;C[V]?(C[V].x=Math.max(C[V].x??-1/0,B.x0??-1/0),C[V].y=Math.max(C[V].y??-1/0,B.y1??-1/0)):(C[V]={},C[V].x=B.x0,C[V].y=B.y1),_=Math.max(_,C[V].y??-1/0),C[V].y=_}),Object.keys(C).forEach(B=>{C[B].y=_}),C},[N]),F=u.useCallback(C=>{const _=l.nodeId()(C);d(f===_?"":_)},[f,l]),j=u.useCallback(()=>{d(""),g(null)},[]),H=u.useMemo(()=>f===""&&h===null?new Set:new Set(N.links.filter(C=>l.nodeId()(C.source)===f||l.nodeId()(C.target)===f||(h==null?void 0:h.source)===C.source&&(h==null?void 0:h.target)===C.target)),[f,N,h,l]),G=u.useCallback((C,_)=>{const B=("clientX"in C?C.clientX:0)-E.left,V=("clientY"in C?C.clientY:0)-E.top;g(_),B&&V&&v({tooltipLeft:B,tooltipTop:V,tooltipData:_})},[v,E]),L=u.useCallback(()=>{j(),w()},[j,w]);return y.jsxs("div",{ref:c,className:"bg-white w-min h-min rabbit-ds",id:"sankey-chart",children:[y.jsxs("svg",{height:e,width:t,ref:S,children:[y.jsx("g",{children:N.links.map(C=>y.jsx(f4,{data:C,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>L(),onMouseMove:_=>G(_,C),stroke:rt(C.source.index||0).light,strokeWidth:C.width,strokeOpacity:H.has(C)?.7:.4},C.index))}),y.jsx("g",{children:N.nodes.map(C=>{var _,B,V;return y.jsx("g",{children:y.jsx(o4,{x:C.x0??0,height:(C.y1??0)-(C.y0??0)+10,width:(C.x1??0)-(C.x0??0),y:(C.y0??0)-5,onMouseEnter:()=>F(C),onMouseLeave:()=>j(),radius:2,fill:f===C.id?(_=rt(C.index||0))==null?void 0:_.dark:(B=rt(C.index||0))==null?void 0:B.light,stroke:(V=rt(C.index||0))==null?void 0:V.dark,all:!0})},C.index)})}),y.jsx("g",{children:a.map(C=>y.jsx(_u,{axisCharLimit:20,x:O[C.id].x??0,y:(O[C.id].y??0)+40,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},C.id))}),y.jsxs("g",{children:[N.nodes.map(C=>y.jsx(_u,{axisCharLimit:8,x:C.depth===T?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2,textLabel:C.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:C.depth===T?"start":"end",fill:"#666666"}},C.index)),N.nodes.map(C=>C.value&&y.jsx(_l,{x:C.depth===T?(C.x1??0)+10:(C.x0??0)-10,y:(C.y0??0)+((C.y1??0)-(C.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:C.depth===T?"start":"end",fill:"#666666"},children:`(${C.value.toString()})`},C.index))]})]}),b&&p&&y.jsx(M,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:y.jsx(z9,{tooltipData:p,fromLabel:`From: ${a[p.source.group].name}`,toLabel:`To: ${a[p.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});o1.displayName="Sankey";const a1=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>n&&r&&y.jsx(o1,{ref:t,width:n,height:r,...e})}));a1.displayName="SankeyChart";const V9=a1;function H9(e){return"bandwidth"in e?e.bandwidth():0}var G9=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(this,arguments)}function U9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function i1(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,c=e.strokeWidth,f=c===void 0?1:c,d=e.strokeDasharray,h=e.className,g=e.children,p=e.numTicks,m=p===void 0?10:p,x=e.lineStyle,b=e.offset,v=e.tickValues,w=U9(e,G9),E=v??Tc(a,m),S=(b??0)+H9(a)/2,M=E.map(function(N,T){var O,F=((O=Ec(a(N)))!=null?O:0)+S;return{index:T,from:new Sn({x:0,y:F}),to:new Sn({x:i,y:F})}});return u.createElement(qn,{className:ct("visx-rows",h),top:n,left:o},g?g({lines:M}):M.map(function(N){var T=N.from,O=N.to,F=N.index;return u.createElement(g4,Bu({key:"row-line-"+F,from:T,to:O,stroke:l,strokeWidth:f,strokeDasharray:d,style:x},w))}))}i1.propTypes={tickValues:se.array,width:se.number.isRequired};function s1({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:s}){const l=e==null?void 0:e.toString(),c=t==null?void 0:t.toString();return y.jsxs(Ye,{tooltipTitle:n,showSideBySide:!0,children:[y.jsx(Ye.Item,{label:r,value:l}),y.jsx(Ye.Item,{label:o,value:c}),y.jsx(Ye.Legend,{value:a,darkColor:i,lightColor:s})]})}s1.defaultProps={xValue:void 0,yValue:void 0};const l1=20,c1=50,Wu=80,es=50,Y9=10,q9=25,Vu=u.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=q9,minBinCount:c=Y9,integerBins:f=!1,integerYAxis:d=!1},h)=>{const g=u.useMemo(()=>fi(a),[a]),{histogramDomain:p,threshold:m,thresholdInteger:x}=u.useMemo(()=>{const D=g[0]??0,A=D===g[1]?c+D:g[1]??0,W=A-D>c?A:c+D,ne=Math.min(Math.max(A-D,c),l),Q=Math.floor(g[0]??0),re=Math.ceil(W);return{histogramDomain:r||(f?[Q,re]:[D,A]),threshold:ne,thresholdInteger:Math.ceil(ne)}},[g,r,f,l,c]),b=u.useMemo(()=>Uo({domain:p,range:[es,i-c1],round:!0,nice:!0}),[p,i]),v=u.useMemo(()=>vT().domain(b.domain()).thresholds(o||(f?x:m))(a),[b,o,a,m,x,f]),w=u.useMemo(()=>Uo({domain:[0,jl(v,D=>D.length)??0],range:[s-Wu,l1],round:!0,nice:!0}),[v,s]),E=u.useMemo(()=>w.ticks().filter(D=>d?Number.isInteger(D):D),[d,w]),S=u.useRef(null);Lu(S,h,`${t}-${n}-Histogram`);const{tooltipData:M,tooltipLeft:N,tooltipTop:T,tooltipOpen:O,showTooltip:F,hideTooltip:j}=qc(),{containerBounds:H,containerRef:G,TooltipInPortal:L}=eu({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),C=i-es-c1,_=s-l1-Wu-100,B=u.useCallback((D,A)=>{const W=("clientX"in D?D.clientX:0)-H.left,ne=("clientY"in D?D.clientY:0)-H.top;W&&ne&&F({tooltipLeft:W,tooltipTop:ne,tooltipData:A})},[F,H]),V=u.useCallback(()=>{j()},[j]);return y.jsxs("div",{className:"bg-white flex flex-col rabbit-ds",style:{width:i,height:s},ref:S,children:[y.jsxs("svg",{width:i,height:s,ref:G,children:[y.jsx(Gc,{orientation:"bottom",scale:b,top:s-Wu,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsx(Gc,{orientation:"left",scale:w,left:es,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:d?Ni("d"):void 0,tickValues:E,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),y.jsxs(qn,{children:[y.jsx(i1,{scale:w,width:C,height:_,left:es,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),v.map(D=>{const A=Math.abs(w(0)-w(D.length)),W=Math.abs(b(D.x1??0)-b(D.x0??0));return y.jsx("g",{children:y.jsx(e4,{x:b(D.x0??0),y:w(D.length),width:W,height:A&&A-1,fill:rt(0).light,stroke:rt(0).dark,strokeWidth:1,onMouseMove:ne=>B(ne,D),onMouseLeave:()=>V()})},Math.random())})]})]}),O&&M&&y.jsx(L,{top:T,left:N,unstyled:!0,applyPositionStyle:!0,children:y.jsx(s1,{xAxisLabel:t,xValue:`${M.x0} to ${M.x1}`,yAxisLabel:n,yValue:M.length,tooltipTitle:e,legendValue:n,legendDarkColor:rt(0).dark,legendLightColor:rt(0).light})},Math.random()),w.domain()[2]]})}),u1=u.forwardRef((e,t)=>y.jsx(Zi,{debounceTime:10,children:({width:n,height:r})=>y.jsx(Vu,{ref:t,width:n,height:r,...e})}));Vu.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},Vu.displayName="HistogramBase",u1.displayName="HistogramChart";const K9=u1;function X9({count:e,totalCount:t,title:n,subTitle:r,className:o,unstyledDimension:a=!1,style:i}){const s="max-w-[336px] min-h-[96px] min-w-[200px]";return y.jsxs("div",{className:ge("rabbit-ds box-border px-2 py-4 bg-white rounded-lg shadow flex-col justify-center items-start gap-1 inline-flex",o,!a&&s),style:i,children:[y.jsxs("div",{className:"self-stretch px-3 py-1 flex items-baseline",children:[y.jsx("div",{className:"text-zinc-800 text-2xl font-semibold",children:e}),t&&t>0?y.jsxs("div",{className:"text-stone-500 text-xs font-normal",children:["/",t]}):null]}),y.jsx("div",{className:"self-stretch px-3 justify-start items-center gap-2 inline-flex",children:y.jsxs("div",{className:"grow shrink basis-0 flex-col justify-start items-start gap-0.5 inline-flex",children:[y.jsx("div",{className:"self-stretch justify-start items-start gap-2.5 inline-flex",children:y.jsx("div",{className:"grow shrink basis-0 text-zinc-800 text-xs font-semibold leading-none",children:n})}),r&&y.jsx("div",{className:"self-stretch justify-start py-2 items-center gap-1 inline-flex",children:y.jsx("div",{className:"grow shrink basis-0 text-stone-500 text-xs font-normal leading-none",children:r})})]})})]})}const ts="ToggleGroup",[d1,P_]=ht(ts,[Sr]),f1=Sr(),Z9=u.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.createElement(Q9,J({},o,{ref:t}))}if(n==="multiple"){const o=r;return u.createElement(J9,J({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${ts}\``)}),[h1,p1]=d1(ts),Q9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=wt({prop:n,defaultProp:r,onChange:o});return u.createElement(h1,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:u.useCallback(()=>s(""),[s])},u.createElement(m1,J({},a,{ref:t})))}),J9=u.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=wt({prop:n,defaultProp:r,onChange:o}),l=u.useCallback(f=>s((d=[])=>[...d,f]),[s]),c=u.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return u.createElement(h1,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},u.createElement(m1,J({},a,{ref:t})))}),[R9,e8]=d1(ts),m1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=f1(n),f=vr(i),d={role:"group",dir:f,...l};return u.createElement(R9,{scope:n,rovingFocus:o,disabled:r},o?u.createElement(Vs,J({asChild:!0},c,{orientation:a,dir:f,loop:s}),u.createElement(we.div,J({},d,{ref:t}))):u.createElement(we.div,J({},d,{ref:t})))}),Hu="ToggleGroupItem",t8=u.forwardRef((e,t)=>{const n=p1(Hu,e.__scopeToggleGroup),r=e8(Hu,e.__scopeToggleGroup),o=f1(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=u.useRef(null);return r.rovingFocus?u.createElement(Hs,J({asChild:!0},o,{focusable:!i,active:a,ref:l}),u.createElement(g1,J({},s,{ref:t}))):u.createElement(g1,J({},s,{ref:t}))}),g1=u.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=p1(Hu,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return u.createElement($d,J({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),n8=Z9,r8=t8;function o8({children:e,...t}){return y.jsx(n8,{className:"flex gap-2",...t,children:e})}function a8({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return y.jsx(r8,{asChild:!0,value:e,...i,children:y.jsx("button",{type:"button",className:ge("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer focus:outline-1 focus:outline-offset-2","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-dove-gray-500","data-[state=on]:border-sky-800 data-[state=on]:bg-sky-100 data-[state=on]:text-sky-800"),children:y.jsxs("div",{className:"px-4 py-1 rounded-full flex-row justify-start items-center gap-2.5 flex",children:[r?y.jsx("div",{className:"w-4 h-4 justify-center items-center flex",children:r}):null,y.jsxs("div",{className:"text-sm leading-tight font-semibold",children:[o?y.jsx("span",{children:o}):null," ",a?y.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const v1=Wa,b1=za,y1=ja,w1=Ga,x1=Va,$1=Ha,S1=u.forwardRef(({className:e,children:t,align:n="end",...r},o)=>y.jsx(Ba,{ref:o,align:n,...r,children:t}));S1.displayName="SplitButtonDropdownContent";const i8=qe("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon"}},defaultVariants:{size:"normal"}});function s8({children:e,size:t,status:n,variant:r,...o}){return y.jsx("div",{className:"rabbit-ds flex flex-row",children:y.jsxs(el,{children:[y.jsx(Qt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),y.jsx(tl,{asChild:!0,children:y.jsx(Qt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:i8({size:t}),children:y.jsx(ps,{})})})]})})}v1.displayName="SplitButtonDropdownItem",b1.displayName="SplitButtonDropdownGroup",y1.displayName="SplitButtonDropdownRadioGroup",w1.displayName="SplitButtonDropdownLabel",x1.displayName="SplitButtonDropdownCheckboxItem",$1.displayName="SplitButtonDropdownRadioItem";function l8({status:e=Ve.ON_TRACK,startValue:t=0,targetValue:n=100,achievedValue:r=0,percentageToDisplay:o=0,metricName:a="",measureBy:i={isPrefix:!1,symbol:""}}){const s=a.length>35?`${a.slice(0,35)}...`:a,l=pa(r),c=pa(t),f=pa(n);return y.jsxs("div",{className:"rabbit-ds w-full px-3 py-2 flex-col justify-center items-start inline-flex min-w-[304px] box-border",children:[y.jsx("div",{className:"w-full py-0.5 justify-start items-center gap-1 inline-flex h-4",children:y.jsx("div",{className:"text-right text-xs font-normal text-[#666666] leading-3",children:s})}),y.jsxs("div",{className:"w-full self-stretch justify-start items-start gap-1 inline-flex h-5",children:[y.jsx("div",{className:"w-9/12 h-5 justify-start items-start flex",children:y.jsx(Nd,{progressInPercentage:o,status:e})}),y.jsx("div",{className:"h-[20px] justify-start items-center gap-1 inline-flex grow",children:y.jsx("div",{className:" text-sm text-[#333333] leading-5 font-[590] w-full text-left ",children:i.isPrefix?i.symbol+l:l+i.symbol})})]}),y.jsxs("div",{className:"w-9/12 justify-between items-center inline-flex",children:[y.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:y.jsx("div",{className:"grow shrink basis-0 h-4 justify-start items-start gap-2.5 inline-flex",children:y.jsx("div",{className:" text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+c:c+i.symbol})})}),y.jsx("div",{className:"h-6 py-1 justify-start items-center gap-1 inline-flex box-border",children:y.jsx("div",{className:"grow shrink basis-0 h-4 justify-end items-start gap-2.5 inline-flex",children:y.jsx("div",{className:"text-[10px] leading-4 text-[#666666] font-[590] ",children:i.isPrefix?i.symbol+f:f+i.symbol})})})]})]})}const c8=qe(["rabbit-ds w-full h-full py-2 px-3"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function u8(){return y.jsx("div",{className:"w-full h-full relative",children:y.jsxs("div",{className:"w-full h-full left-0 top-0 absolute bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0, 0, 0, 0.05)_inset]",children:[y.jsx("div",{className:"absolute inset-0 w-full h-full",style:{background:"linear-gradient(180deg, rgba(231, 244, 247, 0.80) 0%, rgba(185, 239, 254, 0.80) 40%, rgba(136, 226, 252, 0.80) 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-darken",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full opacity-60 mix-blend-multiply",style:{background:"linear-gradient(89deg, #A0E7FC 0%, #A4E8FC 19%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full opacity-90 mix-blend-darken",style:{background:"linear-gradient(180deg, #AAE9FC 0%, #D7F1F8 40%, #F4FDFF 100%)",backdropFilter:"blur(4px)"}}),y.jsx("div",{className:"absolute inset-0 w-full h-full mix-blend-hard-light",style:{background:"linear-gradient(87deg, rgba(233, 245, 248, 0.60) 0%, rgba(247, 247, 247, 0.60) 19%, rgba(247, 247, 247, 0.60) 38%, rgba(161, 231, 252, 0.60) 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}})]})})}const C1=u.forwardRef(({className:e,children:t,...n},r)=>y.jsxs("div",{className:"rabbit-ds w-20 h-screen relative",children:[y.jsx("div",{className:"w-full h-full absolute inset",children:y.jsx(u8,{})}),y.jsx("nav",{className:ge(c8({className:e})),ref:r,...n,children:t})]}));C1.displayName="LeftNav";const Gu=u.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?Zt:"div";return y.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})});Gu.displayName="LeftNavItem",Gu.defaultProps={asChild:!1};const d8=qe(["w-full flex-col justify-start items-center gap-1 inline-flex"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),E1=u.forwardRef(({children:e,align:t,...n},r)=>y.jsx("div",{ref:r,className:ge(d8({variant:t})),...n,children:e}));E1.displayName="LeftNavItem";const T1=u.forwardRef((e,t)=>y.jsx(Qt,{ref:t,className:"rabbit-ds w-14 h-14 z-20",variant:"outline",children:y.jsxs("svg",{className:"z-20 w-6 h-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("g",{clipPath:"url(#clip0_1397_29183)",children:y.jsxs("g",{clipPath:"url(#clip1_1397_29183)",filter:"url(#filter0_d_1397_29183)",children:[y.jsx("path",{d:"M22.1654 14.8101C22.1654 15.8326 21.3386 16.6614 20.3187 16.6614C19.2988 16.6614 18.472 15.8326 18.472 14.8101C18.472 13.7877 19.2988 12.9589 20.3187 12.9589C21.3386 12.9589 22.1654 13.7877 22.1654 14.8101Z",fill:"#008EF0"}),y.jsx("path",{d:"M9.50932 5.28316C9.14769 5.45665 8.74267 5.5538 8.315 5.5538C6.78513 5.5538 5.54492 4.31054 5.54492 2.7769C5.54492 1.24326 6.78513 0 8.315 0C9.84488 0 11.0851 1.24326 11.0851 2.7769C11.0851 3.20559 10.9882 3.6116 10.8151 3.9741L14.3002 7.46776C14.4528 7.42686 14.6131 7.40506 14.7785 7.40506C15.7984 7.40506 16.6253 8.2339 16.6253 9.25633C16.6253 10.2788 15.7984 11.1076 14.7785 11.1076C13.7586 11.1076 12.9318 10.2788 12.9318 9.25633C12.9318 9.09048 12.9536 8.92973 12.9944 8.77678L9.50932 5.28316Z",fill:"#008EF0"}),y.jsx("path",{d:"M5.53426 9.24775C5.53426 10.2702 4.70745 11.099 3.68754 11.099C2.66762 11.099 1.84082 10.2702 1.84082 9.24775C1.84082 8.22532 2.66762 7.39648 3.68754 7.39648C4.70745 7.39648 5.53426 8.22532 5.53426 9.24775Z",fill:"#FFC200"}),y.jsx("path",{d:"M9.99463 16.5323C9.84207 16.5732 9.68173 16.595 9.5163 16.595C8.49639 16.595 7.66958 15.7661 7.66958 14.7437C7.66958 13.7213 8.49639 12.8924 9.5163 12.8924C10.5362 12.8924 11.363 13.7213 11.363 14.7437C11.363 14.9095 11.3413 15.0703 11.3005 15.2232L14.7855 18.7169C15.1471 18.5434 15.5521 18.4462 15.9798 18.4462C17.5097 18.4462 18.7499 19.6895 18.7499 21.2231C18.7499 22.7568 17.5097 24 15.9798 24C14.4499 24 13.2097 22.7568 13.2097 21.2231C13.2097 20.7944 13.3066 20.3884 13.4797 20.0259L9.99463 16.5323Z",fill:"#FFC200"}),y.jsx("path",{d:"M11.087 20.3604C11.087 21.3828 10.2602 22.2117 9.24028 22.2117C8.22036 22.2117 7.39355 21.3828 7.39355 20.3604C7.39355 19.338 8.22036 18.5092 9.24028 18.5092C10.2602 18.5092 11.087 19.338 11.087 20.3604Z",fill:"#EC3B64"}),y.jsx("path",{d:"M24.014 8.32719C24.014 9.86083 22.7738 11.1041 21.2439 11.1041C20.8197 11.1041 20.4178 11.0085 20.0584 10.8377L16.5673 14.3374C16.6063 14.4873 16.6271 14.6445 16.6271 14.8066C16.6271 15.8291 15.8003 16.6579 14.7804 16.6579C13.7605 16.6579 12.9337 15.8291 12.9337 14.8066C12.9337 13.7842 13.7605 12.9554 14.7804 12.9554C14.9495 12.9554 15.1134 12.9782 15.269 13.0208L18.748 9.53324C18.5723 9.1685 18.4738 8.75938 18.4738 8.32719C18.4738 6.79355 19.714 5.55029 21.2439 5.55029C22.7738 5.55029 24.014 6.79355 24.014 8.32719Z",fill:"#EC3B64"}),y.jsx("path",{d:"M16.6205 3.69746C16.6205 4.71988 15.7937 5.54872 14.7737 5.54872C13.7538 5.54872 12.927 4.71988 12.927 3.69746C12.927 2.67503 13.7538 1.84619 14.7737 1.84619C15.7937 1.84619 16.6205 2.67503 16.6205 3.69746Z",fill:"#5CC461"}),y.jsx("path",{d:"M11.0803 9.25125C11.0803 10.2737 10.2535 11.1025 9.23361 11.1025C9.07191 11.1025 8.91506 11.0817 8.7656 11.0425L5.27441 14.5423C5.44482 14.9026 5.54016 15.3055 5.54016 15.7307C5.54016 17.2643 4.29995 18.5076 2.77008 18.5076C1.24021 18.5076 0 17.2643 0 15.7307C0 14.197 1.24021 12.9538 2.77008 12.9538C3.20121 12.9538 3.60934 13.0525 3.97319 13.2287L7.45222 9.74107C7.40963 9.58505 7.38689 9.42081 7.38689 9.25125C7.38689 8.22883 8.21369 7.39999 9.23361 7.39999C10.2535 7.39999 11.0803 8.22883 11.0803 9.25125Z",fill:"#5CC461"})]})}),y.jsxs("defs",{children:[y.jsxs("filter",{id:"filter0_d_1397_29183",x:"-8",y:"-6",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y.jsx("feOffset",{dy:"2"}),y.jsx("feGaussianBlur",{stdDeviation:"4"}),y.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),y.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),y.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1397_29183"}),y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1397_29183",result:"shape"})]}),y.jsx("clipPath",{id:"clip0_1397_29183",children:y.jsx("rect",{width:"24",height:"24",rx:"8",fill:"white"})}),y.jsx("clipPath",{id:"clip1_1397_29183",children:y.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}));T1.displayName="LeftNavHome";const M1=u.createContext({isOpen:!1,toggleOpen:()=>{}}),f8=()=>u.useContext(M1),h8=qe("",{variants:{variant:{default:"transition-transform rotate-0",collapsed:"transition-transform rotate-180"}},defaultVariants:{variant:"default"}});function p8({className:e,isCollapsed:t,...n}){return y.jsx("button",{type:"button",className:ge(h8({variant:t?"collapsed":"default"}),"bg-[#EBEFF3] cursor-pointer text-[#104F95] rounded-tl-full rounded-bl-full border border-solid border-[#CFD7DF] px-2","hover:text-white hover:bg-[#125AA9] hover:border-[#125AA9]",e),...n,children:y.jsx(kr,{IconSVG:Xh})})}function P1({...e}){const{isOpen:t,toggleOpen:n}=f8();return y.jsx(p8,{className:`absolute top-5 right-0 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function m8(e){const{children:t,defaultOpen:n=!1}=e,r=e.open!==void 0,[o,a]=u.useState(n),i=u.useCallback(()=>{a(f=>!f)},[]),s=r?e.open:o,l=r?e.onToggle:i,c=u.useMemo(()=>({isOpen:s,toggleOpen:l}),[s,l]);return y.jsx(M1.Provider,{value:c,children:y.jsxs("div",{className:ge("rabbit-ds relative h-screen transition-all",s?"w-full":"w-0","shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"},children:[y.jsx(P1,{}),y.jsx("div",{className:s?"p-5":"w-0 h-0 overflow-hidden scale-0 opacity-0 invisible",children:t})]})})}function g8({children:e}){return y.jsx("div",{className:ge("nav-group flex flex-col gap-1","after:h-[1px] after:bg-[#EBEFF3] after:w-full after:my-4 last:after:hidden"),children:e})}function v8({children:e}){return y.jsx("div",{className:"p-2 text-dark-medium font-semibold text-xs",children:e})}function b8({children:e,...t}){return y.jsx(ep,{...t,children:e})}const y8=qe("",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function w8({className:e,orientation:t,...n}){return y.jsx("div",{className:y8({orientation:t}),children:y.jsx(Qt,{className:e,...n})})}const x8={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function $8({title:e,achieved:t,status:n}){const r=x8[n];return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex flex-col p-2 gap-1",children:[y.jsx("div",{className:"text-sm font-semibold",children:e}),y.jsxs("div",{className:"flex items-end gap-3",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs text-dark-medium",children:"Achieved"}),y.jsxs("span",{className:ge(r.colorScheme,"font-semibold text-2xl !bg-transparent"),children:[t,"%"]})]}),y.jsx(Za,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function S8({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Za,{className:"mt-0.5",variant:"outlined",children:r}),y.jsx("span",{className:"text-dark-medium mt-2",children:n}),y.jsxs("span",{className:"text-dark-medium mt-0.5",children:["Due by ",o]})]})]})})}function C8({employeeName:e,employeeProfilePhoto:t,designation:n}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx("span",{className:"text-dark-medium",children:n})]})]})})}function E8({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return y.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:"Avatar"})}),y.jsxs("div",{className:"flex flex-col items-start text-sm w-full",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Za,{className:"mt-0.5",variant:"outlined",children:n}),y.jsx("span",{className:"text-dark-medium mt-2 w-full overflow-hidden whitespace-nowrap text-ellipsis",children:r})]})]})})}const T8=qe("",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col min-w-max"}},defaultVariants:{orientation:"horizontal"}});function M8({className:e,children:t,orientation:n}){return y.jsx("div",{className:ge("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",T8({orientation:n}),e),children:t})}function P8({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3}){const[a,i]=u.useState(1),s=e.slice(0,o*a),l=e.length>o,c=e.length===s.length,f=()=>{i(d=>c?1:d+1)};return y.jsxs("div",{className:ge("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[y.jsx("span",{className:"text-lg font-semibold",children:t}),y.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[y.jsx(Hn,{className:"h-24 w-24",children:y.jsx(Gn,{src:n,alt:t})}),y.jsx("span",{children:r})]}),s,l&&y.jsx("div",{className:"mx-auto",children:y.jsxs(Qt,{variant:"text",onClick:f,iconRight:c?y.jsx($b,{size:16}):y.jsx(ps,{size:16}),children:["View ",c?"less":"more"]})})]})}function k8({surveyName:e,date:t}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(kr,{IconSVG:Zh}),y.jsxs("div",{className:"flex flex-col items-start text-sm",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsx(Np,{date:t,showRelativeTime:!0})]})]})})}const O8=qe("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function N8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,scheduleTime:r,variant:o}){return y.jsx("div",{className:"rabbit-ds mr-auto",children:y.jsxs("div",{className:ge("flex items-center text-sm gap-2",O8({variant:o})),children:[y.jsx(Hn,{size:"xl",children:y.jsx(Gn,{src:t,alt:e})}),y.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[y.jsx("span",{className:"font-semibold",children:e}),y.jsxs("span",{children:[n," • ",r]})]})]})})}function _8(e){return Object.prototype.toString.call(e)==="[object Object]"}function k1(e){return _8(e)||Array.isArray(e)}function D8(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Uu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!k1(s)||!k1(l)?s===l:Uu(s,l)})}function O1(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function A8(e,t){if(e.length!==t.length)return!1;const n=O1(e),r=O1(t);return n.every((o,a)=>{const i=r[a];return Uu(o,i)})}function Yu(e){return typeof e=="number"}function qu(e){return typeof e=="string"}function Ku(e){return typeof e=="boolean"}function N1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Be(e){return Math.abs(e)}function Xu(e){return Math.sign(e)}function ns(e,t){return Be(e-t)}function I8(e,t){if(e===0||t===0||Be(e)<=Be(t))return 0;const n=ns(Be(e),Be(t));return Be(n/e)}function Ro(e){return ta(e).map(Number)}function Lt(e){return e[ea(e)]}function ea(e){return Math.max(0,e.length-1)}function Zu(e,t){return t===ea(e)}function _1(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function ta(e){return Object.keys(e)}function D1(e,t){return[e,t].reduce((n,r)=>(ta(r).forEach(o=>{const a=n[o],i=r[o],s=N1(a)&&N1(i);n[o]=s?D1(a,i):i}),n),{})}function A1(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function L8(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,c){return qu(e)?n[e](l):e(t,l,c)}return{measure:i}}function F8(e,t){const n=e==="y"?"y":"x",r=e==="y"?"x":"y",o=s(),a=l();function i(f){const{width:d,height:h}=f;return n==="x"?d:h}function s(){return n==="y"?"top":t==="rtl"?"right":"left"}function l(){return n==="y"?"bottom":t==="rtl"?"left":"right"}return{scroll:n,cross:r,startEdge:o,endEdge:a,measureSize:i}}function sr(e,t){const n=Be(e-t);function r(c){return c<e}function o(c){return c>t}function a(c){return r(c)||o(c)}function i(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function I1(e,t,n){const{constrain:r}=sr(0,e),o=e+1;let a=i(t);function i(h){return n?Be((o+h)%o):r(h)}function s(){return a}function l(h){return a=i(h),d}function c(h){return f().set(s()+h)}function f(){return I1(e,s(),n)}const d={get:s,set:l,add:c,clone:f};return d}function j8(e){const t=e==="rtl"?-1:1;function n(o){return o*t}return{apply:n}}function na(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const c=o;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function z8(e,t,n,r,o,a,i,s,l,c,f,d,h,g,p,m,x,b,v,w){const{cross:E}=e,S=["INPUT","SELECT","TEXTAREA"],M={passive:!1},N=na(),T=na(),O=sr(50,225).constrain(p.measure(20)),F={mouse:300,touch:400},j={mouse:500,touch:600},H=m?43:25;let G=!1,L=0,C=0,_=!1,B=!1,V=!1,D=!1;function A(k){if(!w)return;function te(me){(Ku(w)||w(k,me))&&ue(me)}const ae=n;N.add(ae,"dragstart",me=>me.preventDefault(),M).add(ae,"touchmove",()=>{},M).add(ae,"touchend",()=>{}).add(ae,"touchstart",te).add(ae,"mousedown",te).add(ae,"touchcancel",le).add(ae,"contextmenu",le).add(ae,"click",U,!0)}function W(){N.clear(),T.clear()}function ne(){const k=D?r:n;T.add(k,"touchmove",X,M).add(k,"touchend",le).add(k,"mousemove",X,M).add(k,"mouseup",le)}function Q(k){const te=k.nodeName||"";return S.includes(te)}function re(){return(m?j:F)[D?"mouse":"touch"]}function oe(k,te){const ae=h.add(Xu(k)*-1),me=d.byDistance(k,!m).distance;return m||Be(k)<O?me:b&&te?me*.5:d.byIndex(ae.get(),0).distance}function ue(k){const te=A1(k,o);D=te,!(te&&k.button!==0)&&(Q(k.target)||(V=m&&te&&!k.buttons&&G,G=ns(a.get(),s.get())>=2,_=!0,i.pointerDown(k),f.useFriction(0).useDuration(0),a.set(s),ne(),L=i.readPoint(k),C=i.readPoint(k,E),g.emit("pointerDown")))}function X(k){const te=i.readPoint(k),ae=i.readPoint(k,E),me=ns(te,L),ye=ns(ae,C);if(!B&&!D&&(!k.cancelable||(B=me>ye,!B)))return le(k);const Ee=i.pointerMove(k);me>x&&(V=!0),f.useFriction(.3).useDuration(1),l.start(),a.add(t.apply(Ee)),k.preventDefault()}function le(k){const ae=d.byDistance(0,!1).index!==h.get(),me=i.pointerUp(k)*re(),ye=oe(t.apply(me),ae),Ee=I8(me,ye),Ke=H-10*Ee,Xe=v+Ee/50;B=!1,_=!1,T.clear(),f.useDuration(Ke).useFriction(Xe),c.distance(ye,!m),D=!1,g.emit("pointerUp")}function U(k){V&&(k.stopPropagation(),k.preventDefault())}function Z(){return _}return{init:A,pointerDown:Z,destroy:W}}function B8(e,t){let r,o;function a(d){return d.timeStamp}function i(d,h){const p=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(A1(d,t)?d:d.touches[0])[p]}function s(d){return r=d,o=d,i(d)}function l(d){const h=i(d)-i(o),g=a(d)-a(r)>170;return o=d,g&&(r=d),h}function c(d){if(!r||!o)return 0;const h=i(o)-i(r),g=a(d)-a(r),p=a(d)-a(o)>170,m=h/g;return g&&!p&&Be(m)>.1?m:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:i}}function W8(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function V8(e){function t(r){return e*(r/100)}return{measure:t}}function H8(e,t,n,r,o,a,i){let s,l,c=[],f=!1;function d(m){return o.measureSize(i.measure(m))}function h(m){if(!a)return;l=d(e),c=r.map(d);function x(v){for(const w of v){const E=w.target===e,S=r.indexOf(w.target),M=E?l:c[S],N=d(E?e:r[S]);if(Be(N-M)>=.5){n.requestAnimationFrame(()=>{m.reInit(),t.emit("resize")});break}}}s=new ResizeObserver(v=>{f||(Ku(a)||a(m,v))&&x(v)}),[e].concat(r).forEach(v=>s.observe(v))}function g(){s&&s.disconnect(),f=!0}return{init:h,destroy:g}}function G8(e,t,n,r,o){let a=0,i=0,s=r,l=o,c=e.get(),f=0;function d(){const S=n.get()-e.get(),M=!s;let N=0;return M?(a=0,e.set(n),N=S):(a+=S/s,a*=l,c+=a,e.add(a),N=c-f),i=Xu(N),f=c,E}function h(){const S=n.get()-t.get();return Be(S)<.001}function g(){return s}function p(){return i}function m(){return a}function x(){return v(r)}function b(){return w(o)}function v(S){return s=S,E}function w(S){return l=S,E}const E={direction:p,duration:g,velocity:m,seek:d,settled:h,useBaseFriction:b,useBaseDuration:x,useFriction:w,useDuration:v};return E}function U8(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=sr(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(g){if(!c())return;const p=e.reachedMin(t.get())?"min":"max",m=Be(e[p]-t.get()),x=n.get()-t.get(),b=s.constrain(m/i);n.subtract(x*b),!g&&Be(x)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(g){l=!g}return{constrain:f,toggleActive:d}}function Y8(e,t,n,r){const o=sr(-t+e,0),a=c(),i=l(),s=f();function l(){const h=a[0],g=Lt(a),p=a.lastIndexOf(h),m=a.indexOf(g)+1;return sr(p,m)}function c(){return n.map((h,g)=>{const p=!g,m=Zu(n,g);return p?o.max:m?o.min:o.constrain(h)}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e)return[o.max];if(r==="keepSnaps")return a;const{min:h,max:g}=i;return a.slice(h,g)}return{snapsContained:s,scrollContainLimit:i}}function q8(e,t,n){const r=t[0],o=n?r-e:Lt(t);return{limit:sr(o,r)}}function K8(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=sr(a,i);function c(h){return h===1?l(n.get()):h===-1?s(n.get()):!1}function f(h){if(!c(h))return;const g=e*(h*-1);r.forEach(p=>p.add(g))}return{loop:f}}function X8(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function Z8(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=d().map(t.measure),c=h(),f=g();function d(){return s(r).map(m=>Lt(m)[i]-m[0][a]).map(Be)}function h(){return r.map(m=>n[a]-m[a]).map(m=>-Be(m))}function g(){return s(c).map(m=>m[0]).map((m,x)=>m+l[x])}return{snaps:c,snapsAligned:f}}function Q8(e,t,n,r,o,a,i){const{groupSlides:s}=a,{min:l,max:c}=o,f=d();function d(){const g=s(i);return!n||r==="keepSnaps"||t<=e?g:g.slice(l,c).map((m,x,b)=>{const v=!x,w=Zu(b,x);if(v){const E=Lt(b[0])+1;return _1(E)}if(w){const E=ea(i)-Lt(b)[0]+1;return _1(E,Lt(b)[0])}return m})}return{slideRegistry:f}}function J8(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(p){return p.concat().sort((m,x)=>Be(m)-Be(x))[0]}function c(p){const m=e?i(p):s(p),x=t.map(v=>v-m).map(v=>f(v,0)).map((v,w)=>({diff:v,index:w})).sort((v,w)=>Be(v.diff)-Be(w.diff)),{index:b}=x[0];return{index:b,distance:m}}function f(p,m){const x=[p,p+n,p-n];if(!e)return x[0];if(!m)return l(x);const b=x.filter(v=>Xu(v)===m);return b.length?l(b):Lt(x)-n}function d(p,m){const x=t[p]-o.get(),b=f(x,m);return{index:p,distance:b}}function h(p,m){const x=o.get()+p,{index:b,distance:v}=c(x),w=!e&&a(x);if(!m||w)return{index:b,distance:p};const E=t[b]-v,S=p+f(E,0);return{index:b,distance:S}}return{byDistance:h,byIndex:d,shortcut:f}}function R8(e,t,n,r,o,a){function i(f){const d=f.distance,h=f.index!==t.get();o.add(d),d&&e.start(),h&&(n.set(t.get()),t.set(f.index),a.emit("select"))}function s(f,d){const h=r.byDistance(f,d);i(h)}function l(f,d){const h=t.clone().set(f),g=r.byIndex(h.get(),d);i(g)}return{distance:s,index:l}}function eN(e,t,n,r,o,a){let i=0;function s(){a.add(document,"keydown",l,!1),t.forEach(c)}function l(d){d.code==="Tab"&&(i=new Date().getTime())}function c(d){const h=()=>{if(new Date().getTime()-i>10)return;e.scrollLeft=0;const m=t.indexOf(d),x=n.findIndex(b=>b.includes(m));Yu(x)&&(o.useDuration(0),r.index(x,0))};a.add(d,"focus",h,{passive:!0,capture:!0})}return{init:s}}function rs(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return Yu(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function L1(e,t,n){const r=e.scroll==="x"?i:s,o=n.style;let a=!1;function i(h){return`translate3d(${h}px,0px,0px)`}function s(h){return`translate3d(0px,${h}px,0px)`}function l(h){a||(o.transform=r(t.apply(h)))}function c(h){a=!h}function f(){a||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:f,to:l,toggleActive:c}}function tN(e,t,n,r,o,a,i,s,l,c){const d=Ro(a),h=Ro(a).reverse(),g=v().concat(w());function p(T,O){return T.reduce((F,j)=>F-a[j],O)}function m(T,O){return T.reduce((F,j)=>p(F,O)>0?F.concat([j]):F,[])}function x(T){return i.map((O,F)=>({start:O-o[F]+.5+T,end:O+n-.5+T}))}function b(T,O,F){const j=x(O);return T.map(H=>{const G=F?0:-r,L=F?r:0,C=F?"end":"start",_=j[H][C];return{index:H,loopPoint:_,slideLocation:rs(-1),translate:L1(e,t,c[H]),target:()=>l.get()>_?G:L}})}function v(){const T=s[0],O=m(h,T);return b(O,r,!1)}function w(){const T=n-s[0]-1,O=m(d,T);return b(O,-r,!0)}function E(){return g.every(({index:T})=>{const O=d.filter(F=>F!==T);return p(O,n)<=.1})}function S(){g.forEach(T=>{const{target:O,translate:F,slideLocation:j}=T,H=O();H!==j.get()&&(F.to(H),j.set(H))})}function M(){g.forEach(T=>T.translate.clear())}return{canLoop:E,clear:M,loop:S,loopPoints:g}}function nN(e,t,n){let r,o=!1;function a(l){if(!n)return;function c(f){for(const d of f)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(Ku(n)||n(l,f))&&c(f)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function rN(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function c(){s=new IntersectionObserver(p=>{l||(p.forEach(m=>{const x=t.indexOf(m.target);o[x]=m}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>s.observe(p))}function f(){s&&s.disconnect(),l=!0}function d(p){return ta(o).reduce((m,x)=>{const b=parseInt(x),{isIntersecting:v}=o[b];return(p&&v||!p&&!v)&&m.push(b),m},[])}function h(p=!0){if(p&&a)return a;if(!p&&i)return i;const m=d(p);return p&&(a=m),p||(i=m),m}return{init:c,destroy:f,get:h}}function oN(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,f=p(),d=m(),h=n.map(i),g=x();function p(){if(!c)return 0;const v=n[0];return Be(t[s]-v[s])}function m(){if(!c)return 0;const v=a.getComputedStyle(Lt(r));return parseFloat(v.getPropertyValue(`margin-${l}`))}function x(){return n.map((v,w,E)=>{const S=!w,M=Zu(E,w);return S?h[w]+f:M?h[w]+d:E[w+1][s]-v[s]}).map(Be)}return{slideSizes:h,slideSizesWithGaps:g,startGap:f,endGap:d}}function aN(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:f}=e,d=Yu(r);function h(x,b){return Ro(x).filter(v=>v%b===0).map(v=>x.slice(v,v+b))}function g(x){return x.length?Ro(x).reduce((b,v)=>{const w=Lt(b)||0,E=w===0,S=v===ea(x),M=a[c]-i[w][c],N=a[c]-i[v][f],T=!o&&E?t.apply(s):0,O=!o&&S?t.apply(l):0;return Be(N-O-(M+T))>n&&b.push(v),S&&b.push(x.length),b},[]).map((b,v,w)=>{const E=Math.max(w[v-1]||0);return x.slice(E,b)}):[]}function p(x){return d?h(x,r):g(x)}return{groupSlides:p}}function iN(e,t,n,r,o,a,i,s){const{align:l,axis:c,direction:f,startIndex:d,loop:h,duration:g,dragFree:p,dragThreshold:m,inViewThreshold:x,slidesToScroll:b,skipSnaps:v,containScroll:w,watchResize:E,watchSlides:S,watchDrag:M}=a,N=W8(),T=N.measure(t),O=n.map(N.measure),F=j8(f),j=F8(c,f),H=j.measureSize(T),G=V8(H),L=L8(l,H),C=!h&&!!w,_=h||!!w,{slideSizes:B,slideSizesWithGaps:V,startGap:D,endGap:A}=oN(j,T,O,n,_,o),W=aN(j,F,H,b,h,T,O,D,A),{snaps:ne,snapsAligned:Q}=Z8(j,L,T,O,W),re=-Lt(ne)+Lt(V),{snapsContained:oe,scrollContainLimit:ue}=Y8(H,re,Q,w),X=C?oe:Q,{limit:le}=q8(re,X,h),U=I1(ea(X),d,h),Z=U.clone(),ie=Ro(n),k=({dragHandler:at,scrollBody:Ft,scrollBounds:un,options:{loop:jt}})=>{jt||un.constrain(at.pointerDown()),Ft.seek()},te=({scrollBody:at,translate:Ft,location:un,offsetLocation:jt,scrollLooper:Jr,slideLooper:Rr,dragHandler:ur,animation:eo,eventHandler:dr,options:{loop:Et}},zt)=>{const Dn=at.velocity(),An=at.settled();An&&!ur.pointerDown()&&(eo.stop(),dr.emit("settle")),An||dr.emit("scroll"),jt.set(un.get()-Dn+Dn*zt),Et&&(Jr.loop(at.direction()),Rr.loop()),Ft.to(jt.get())},ae={start:()=>s.start(ft),stop:()=>s.stop(ft),update:()=>k(ft),render:at=>te(ft,at)},me=.68,ye=X[U.get()],Ee=rs(ye),Ke=rs(ye),Xe=rs(ye),ot=G8(Ee,Ke,Xe,g,me),vt=J8(h,X,re,le,Xe),Kt=R8(ae,U,Z,vt,Xe,i),je=X8(le),cr=na(),Qr=rN(t,n,i,x),{slideRegistry:_n}=Q8(H,re,C,w,ue,W,ie),Ze=eN(e,n,_n,Kt,ot,cr),ft={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:T,slideRects:O,animation:ae,axis:j,direction:F,dragHandler:z8(j,F,e,r,o,Xe,B8(j,o),Ee,ae,Kt,ot,vt,U,i,G,p,m,v,me,M),eventStore:cr,percentOfView:G,index:U,indexPrevious:Z,limit:le,location:Ee,offsetLocation:Ke,options:a,resizeHandler:H8(t,i,o,n,j,E,N),scrollBody:ot,scrollBounds:U8(le,Ee,Xe,ot,G),scrollLooper:K8(re,le,Ke,[Ee,Ke,Xe]),scrollProgress:je,scrollSnapList:X.map(je.get),scrollSnaps:X,scrollTarget:vt,scrollTo:Kt,slideLooper:tN(j,F,H,re,B,V,ne,X,Ke,n),slideFocus:Ze,slidesHandler:nN(t,i,S),slidesInView:Qr,slideIndexes:ie,slideRegistry:_n,slidesToScroll:W,target:Xe,translate:L1(j,F,t)};return ft}function sN(e){const t=16.666666666666668;let n=[],r=null,o=0,a=0;function i(d){r||(r=d);const h=d-r;for(r=d,o+=h;o>=t;)n.forEach(({animation:p})=>p.update()),o-=t;const g=Be(o/t);n.forEach(({animation:p})=>p.render(g)),a&&e.requestAnimationFrame(i)}function s(d){n.includes(d)||n.push(d),!a&&(a=e.requestAnimationFrame(i))}function l(d){n=n.filter(h=>h!==d),!n.length&&(e.cancelAnimationFrame(a),r=null,o=0,a=0)}function c(){r=null,o=0}return{start:s,stop:l,reset:c,window:e}}function lN(){const e={};let t;function n(l){t=l}function r(l){return e[l]||[]}function o(l){return r(l).forEach(c=>c(t,l)),s}function a(l,c){return e[l]=r(l).concat([c]),s}function i(l,c){return e[l]=r(l).filter(f=>f!==c),s}const s={init:n,emit:o,off:i,on:a};return s}const cN={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function uN(e){function t(a,i){return D1(a,i||{})}function n(a){const i=a.breakpoints||{},s=ta(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(i=>ta(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function dN(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Xr(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=uN(o),i=dN(a),s=na(),l=na(),c=lN(),{animationRealms:f}=Xr,{mergeOptions:d,optionsAtMedia:h,optionsMediaQueries:g}=a,{on:p,off:m,emit:x}=c,b=G;let v=!1,w,E=d(cN,Xr.globalOptions),S=d(E),M=[],N,T,O;function F(){const{container:te,slides:ae}=S;T=(qu(te)?e.querySelector(te):te)||e.children[0];const ye=qu(ae)?T.querySelectorAll(ae):ae;O=[].slice.call(ye||T.children)}function j(te,ae){const me=iN(e,T,O,r,o,te,c,ae);if(te.loop&&!me.slideLooper.canLoop()){const ye=Object.assign({},te,{loop:!1});return j(ye,ae)}return me}function H(te,ae){if(v)return;const me=f.find(Ee=>Ee.window===o),ye=me||sN(o);me||f.push(ye),E=d(E,te),S=h(E),M=ae||M,F(),w=j(S,ye),g([E,...M.map(({options:Ee})=>Ee)]).forEach(Ee=>s.add(Ee,"change",G)),S.active&&(w.translate.to(w.location.get()),w.slidesInView.init(),w.slideFocus.init(),w.eventHandler.init(k),w.resizeHandler.init(k),w.slidesHandler.init(k),l.add(r,"visibilitychange",()=>{r.hidden&&ye.reset()}),w.options.loop&&w.slideLooper.loop(),T.offsetParent&&O.length&&w.dragHandler.init(k),N=i.init(k,M))}function G(te,ae){const me=Q();L(),H(d({startIndex:me},te),ae),c.emit("reInit")}function L(){w.dragHandler.destroy(),w.animation.stop(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),i.destroy(),s.clear(),l.clear()}function C(){v||(v=!0,s.clear(),L(),c.emit("destroy"))}function _(te,ae,me){!S.active||v||(w.scrollBody.useBaseFriction().useDuration(ae?0:S.duration),w.scrollTo.index(te,me||0))}function B(te){const ae=w.index.add(1).get();_(ae,te===!0,-1)}function V(te){const ae=w.index.add(-1).get();_(ae,te===!0,1)}function D(){return w.index.add(1).get()!==Q()}function A(){return w.index.add(-1).get()!==Q()}function W(){return w.scrollSnapList}function ne(){return w.scrollProgress.get(w.location.get())}function Q(){return w.index.get()}function re(){return w.indexPrevious.get()}function oe(){return w.slidesInView.get()}function ue(){return w.slidesInView.get(!1)}function X(){return N}function le(){return w}function U(){return e}function Z(){return T}function ie(){return O}const k={canScrollNext:D,canScrollPrev:A,containerNode:Z,internalEngine:le,destroy:C,off:m,on:p,emit:x,plugins:X,previousScrollSnap:re,reInit:b,rootNode:U,scrollNext:B,scrollPrev:V,scrollProgress:ne,scrollSnapList:W,scrollTo:_,selectedScrollSnap:Q,slideNodes:ie,slidesInView:oe,slidesNotInView:ue};return H(t,n),setTimeout(()=>c.emit("init"),0),k}Xr.animationRealms=[],Xr.globalOptions=void 0;function Qu(e={},t=[]){const n=u.useRef(e),r=u.useRef(t),[o,a]=u.useState(),[i,s]=u.useState(),l=u.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return u.useEffect(()=>{if(D8()&&i){Xr.globalOptions=Qu.globalOptions;const c=Xr(i,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[i,a]),u.useEffect(()=>{Uu(n.current,e)||(n.current=e,l())},[e,l]),u.useEffect(()=>{A8(r.current,t)||(r.current=t,l())},[t,l]),[s,o]}Qu.globalOptions=void 0;function lr(){return lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(this,arguments)}var fN=.996,hN=function(t,n){return n===void 0&&(n=fN),t*n/(1-n)};function pN(e){return e[e.length-1]}function mN(e){return e.reduce(function(t,n){return t+n})/e.length}var gN=function(t,n,r){return Math.min(Math.max(n,t),r)};function Ju(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function F1(e){return Math.max.apply(Math,e.map(Math.abs))}function Zr(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&Zr(t)}),e}function vN(){var e={};function t(o,a){return e[o]=(e[o]||[]).concat(a),function(){return n(o,a)}}function n(o,a){e[o]=(e[o]||[]).filter(function(i){return i!==a})}function r(o,a){o in e&&e[o].forEach(function(i){return i(a)})}return Zr({on:t,off:n,dispatch:r})}function bN(e){var t=[],n=function(i){return i.addEventListener("wheel",e,{passive:!1}),t.push(i),function(){return r(i)}},r=function(i){i.removeEventListener("wheel",e),t=t.filter(function(s){return s!==i})},o=function(){t.forEach(r)};return Zr({observe:n,unobserve:r,disconnect:o})}var yN=16*1.125,wN=typeof window<"u"&&window.innerHeight||800,Ru=[1,yN,wN];function xN(e){var t=e.deltaX*Ru[e.deltaMode],n=e.deltaY*Ru[e.deltaMode],r=(e.deltaZ||0)*Ru[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var $N=[-1,-1,-1];function SN(e,t){if(!t)return e;var n=t===!0?$N:t.map(function(r){return r?-1:1});return lr({},e,{axisDelta:e.axisDelta.map(function(r,o){return r*n[o]})})}var j1=700,CN=function(t){return lr({},t,{axisDelta:t.axisDelta.map(function(n){return gN(n,-j1,j1)})})},ed=process.env.NODE_ENV!=="production",EN=.6,TN=.96,MN=2,z1=5,B1=Zr({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),PN=400;function W1(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:PN}}function kN(e){e===void 0&&(e={});var t=vN(),n=t.on,r=t.off,o=t.dispatch,a=B1,i=W1(),s,l=!1,c,f=function(L){Array.isArray(L)?L.forEach(function(C){return p(C)}):p(L)},d=function(L){return L===void 0&&(L={}),Object.values(L).some(function(C){return C==null})?(ed&&console.error("updateOptions ignored! undefined & null options not allowed"),a):a=Zr(lr({},B1,a,L))},h=function(L){var C=lr({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:i.isMomentum,axisDelta:[0,0,0],axisVelocity:i.axisVelocity,axisMovement:i.axisMovement,get axisMovementProjection(){return Ju(C.axisMovement,C.axisVelocity.map(function(_){return hN(_)}))}},L);o("wheel",lr({},C,{previous:c})),c=C},g=function(L,C){var _=a,B=_.preventWheelAction,V=C[0],D=C[1],A=C[2];if(typeof B=="boolean")return B;switch(B){case"x":return Math.abs(V)>=L;case"y":return Math.abs(D)>=L;case"z":return Math.abs(A)>=L;default:return ed&&console.warn("unsupported preventWheelAction value: "+B,"warn"),!1}},p=function(L){var C=CN(SN(xN(L),a.reverseSign)),_=C.axisDelta,B=C.timeStamp,V=F1(_);if(L.preventDefault&&g(V,_)&&L.preventDefault(),i.isStarted?i.isMomentum&&V>Math.max(2,i.lastAbsDelta*2)&&(T(!0),M()):M(),V===0&&Object.is&&Object.is(L.deltaX,-0)){l=!0;return}s=L,i.axisMovement=Ju(i.axisMovement,_),i.lastAbsDelta=V,i.scrollPointsToMerge.push({axisDelta:_,timeStamp:B}),m(),h({axisDelta:_,isStart:!i.isStartPublished}),i.isStartPublished=!0,N()},m=function(){i.scrollPointsToMerge.length===MN?(i.scrollPoints.unshift({axisDeltaSum:i.scrollPointsToMerge.map(function(L){return L.axisDelta}).reduce(Ju),timeStamp:mN(i.scrollPointsToMerge.map(function(L){return L.timeStamp}))}),b(),i.scrollPointsToMerge.length=0,i.scrollPoints.length=1,i.isMomentum||E()):i.isStartPublished||x()},x=function(){i.axisVelocity=pN(i.scrollPointsToMerge).axisDelta.map(function(L){return L/i.willEndTimeout})},b=function(){var L=i.scrollPoints,C=L[0],_=L[1];if(!(!_||!C)){var B=C.timeStamp-_.timeStamp;if(B<=0){ed&&console.warn("invalid deltaTime");return}var V=C.axisDeltaSum.map(function(A){return A/B}),D=V.map(function(A,W){return A/(i.axisVelocity[W]||1)});i.axisVelocity=V,i.accelerationFactors.push(D),v(B)}},v=function(L){var C=Math.ceil(L/10)*10*1.2;i.isMomentum||(C=Math.max(100,C*2)),i.willEndTimeout=Math.min(1e3,Math.round(C))},w=function(L){return L===0?!0:L<=TN&&L>=EN},E=function(){if(i.accelerationFactors.length>=z1){if(l&&(l=!1,F1(i.axisVelocity)>=.2)){S();return}var L=i.accelerationFactors.slice(z1*-1),C=L.every(function(_){var B=!!_.reduce(function(D,A){return D&&D<1&&D===A?1:0}),V=_.filter(w).length===_.length;return B||V});C&&S(),i.accelerationFactors=L}},S=function(){i.isMomentum=!0},M=function(){i=W1(),i.isStarted=!0,i.startTime=Date.now(),c=void 0,l=!1},N=function(){var G;return function(){clearTimeout(G),G=setTimeout(T,i.willEndTimeout)}}(),T=function(L){L===void 0&&(L=!1),i.isStarted&&(i.isMomentum&&L?h({isEnding:!0,isMomentumCancel:!0}):h({isEnding:!0}),i.isMomentum=!1,i.isStarted=!1)},O=bN(f),F=O.observe,j=O.unobserve,H=O.disconnect;return d(e),Zr({on:n,off:r,observe:F,unobserve:j,disconnect:H,feedWheel:f,updateOptions:d})}var ON={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};td.globalOptions=void 0;var NN=process.env.NODE_ENV!=="production";function td(e){e===void 0&&(e={});var t,n=function(){};function r(a,i){var s,l,c=i.mergeOptions,f=i.optionsAtMedia,d=c(ON,td.globalOptions),h=c(d,e);t=f(h);var g=a.internalEngine(),p=(s=t.target)!=null?s:a.containerNode().parentNode,m=(l=t.forceWheelAxis)!=null?l:g.options.axis,x=kN({preventWheelAction:m,reverseSign:[!0,!0,!1]}),b=x.observe(p),v=x.on("wheel",H),w=!1,E;function S(G){try{E=new MouseEvent("mousedown",G.event),j(E)}catch{return NN&&console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"),n()}w=!0,N(),t.wheelDraggingClass&&p.classList.add(t.wheelDraggingClass)}function M(G){w=!1,j(F("mouseup",G)),T(),t.wheelDraggingClass&&p.classList.remove(t.wheelDraggingClass)}function N(){document.documentElement.addEventListener("mousemove",O,!0),document.documentElement.addEventListener("mouseup",O,!0),document.documentElement.addEventListener("mousedown",O,!0)}function T(){document.documentElement.removeEventListener("mousemove",O,!0),document.documentElement.removeEventListener("mouseup",O,!0),document.documentElement.removeEventListener("mousedown",O,!0)}function O(G){w&&G.isTrusted&&G.stopImmediatePropagation()}function F(G,L){var C,_;if(m===g.options.axis){var B=L.axisMovement;C=B[0],_=B[1]}else{var V=L.axisMovement;_=V[0],C=V[1]}return new MouseEvent(G,{clientX:E.clientX+C,clientY:E.clientY+_,screenX:E.screenX+C,screenY:E.screenY+_,movementX:C,movementY:_,button:0,bubbles:!0,cancelable:!0,composed:!0})}function j(G){a.containerNode().dispatchEvent(G)}function H(G){var L=G.axisDelta,C=L[0],_=L[1],B=m==="x"?C:_,V=m==="x"?_:C,D=G.isMomentum&&G.previous&&!G.previous.isMomentum,A=G.isEnding&&!G.isMomentum||D,W=Math.abs(B)>Math.abs(V);W&&!w&&!G.isMomentum&&S(G),w&&(A?M(G):j(F("mousemove",G)))}n=function(){b(),v(),T()}}var o={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return o}const V1=u.createContext({}),_N=e=>{const[t,n]=u.useState(!0),[r,o]=u.useState(!0),a=u.useCallback(()=>{e&&e.scrollPrev()},[e]),i=u.useCallback(()=>{e&&e.scrollNext()},[e]),s=u.useCallback(l=>{n(!l.canScrollPrev()),o(!l.canScrollNext())},[]);return u.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:a,onNextButtonClick:i}};function DN({children:e,options:t}){const[n,r]=Qu({align:"center",dragFree:!0,...t},[td()]),{prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}=_N(r),l=u.useMemo(()=>({emblaRef:n,emblaApi:r,prevBtnDisabled:o,nextBtnDisabled:a,onPrevButtonClick:i,onNextButtonClick:s}),[n,r,o,a,i,s]);return y.jsx(V1.Provider,{value:l,children:e})}const nd=()=>u.useContext(V1);function AN({children:e,...t}){return y.jsx(DN,{options:t,children:e})}function IN({children:e,prevButton:t,nextButton:n,className:r}){const{emblaRef:o}=nd();return y.jsx("div",{className:"rabbit-ds",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"overflow-hidden",ref:o,children:y.jsx("div",{className:ge("flex touch-pan-y gap-3",r),children:e})}),y.jsx("div",{className:"flex absolute h-full top-1/2 -translate-y-1/2",children:t}),y.jsx("div",{className:"flex absolute h-full top-1/2 right-0 -translate-y-1/2",children:n})]})})}function LN({children:e=y.jsx(kr,{IconSVG:qh}),className:t,containerClassName:n,...r}){const{prevBtnDisabled:o,onPrevButtonClick:a}=nd();return o?y.jsx("span",{}):y.jsx("div",{className:ge("w-[100px] flex items-center justify-start pl-2 bg-gradient-to-r from-white",n),children:y.jsx(Qt,{size:"icon",variant:"text",className:ge("bg-transparent",t),onClick:a,...r,children:e})})}function FN({children:e=y.jsx(kr,{IconSVG:Kh}),className:t,containerClassName:n,...r}){const{nextBtnDisabled:o,onNextButtonClick:a}=nd();return o?y.jsx("span",{}):y.jsx("div",{className:ge("w-[100px] flex items-center justify-end pr-2 bg-gradient-to-l from-white",n),children:y.jsx(Qt,{size:"icon",variant:"text",className:ge("bg-transparent",t),onClick:a,...r,children:e})})}K.Add=SS,K.Avatar=Hn,K.AvatarFallback=yp,K.AvatarImage=Gn,K.Button=Qt,K.CardKPI=X9,K.Carousel=AN,K.CarouselContainer=IN,K.CarouselNextButton=FN,K.CarouselPrevButton=LN,K.Checkbox=xd,K.ChevronLeftCircle=qh,K.ChevronRightCircle=Kh,K.Chip=ny,K.ChipGroup=o8,K.ChipGroupItem=a8,K.CollapseNavigation=Xh,K.Company=CS,K.DateTime=Np,K.Dropdown=el,K.DropdownCheckboxItem=Va,K.DropdownContent=Ba,K.DropdownGroup=za,K.DropdownItem=Wa,K.DropdownLabel=Ga,K.DropdownPortal=bh,K.DropdownRadioGroup=ja,K.DropdownRadioItem=Ha,K.DropdownSeparator=ol,K.DropdownSub=yh,K.DropdownSubContent=rl,K.DropdownSubTrigger=nl,K.DropdownTrigger=tl,K.EngagementNudgeData=k8,K.GoalsNudgeData=$8,K.HistogramChart=K9,K.Home=ES,K.Icon=kr,K.Input=ry,K.KnowTeamNudgeData=N8,K.LeftNav=C1,K.LeftNavGroup=E1,K.LeftNavHome=T1,K.LeftNavItem=Gu,K.LeftNavItemDropdown=el,K.LeftNavItemDropdownCheckboxItem=Va,K.LeftNavItemDropdownContent=Ba,K.LeftNavItemDropdownGroup=za,K.LeftNavItemDropdownItem=Wa,K.LeftNavItemDropdownLabel=Ga,K.LeftNavItemDropdownPortal=bh,K.LeftNavItemDropdownRadioGroup=ja,K.LeftNavItemDropdownRadioItem=Ha,K.LeftNavItemDropdownSeparator=ol,K.LeftNavItemDropdownSub=yh,K.LeftNavItemDropdownSubContent=rl,K.LeftNavItemDropdownSubTrigger=nl,K.LeftNavItemDropdownTrigger=tl,K.LineChart=_9,K.ListItem=ep,K.ListItemLeftIcon=IS,K.ListItemRightIcon=FS,K.ListItemText=DS,K.MeshLogo=TS,K.NavButton=Jh,K.NavCollapseButtonL2=P1,K.NavGroupL2=g8,K.NavGroupTitleL2=v8,K.NavItemL2=b8,K.NavL2=m8,K.NavProfilePhoto=hp,K.NudgeAction=w8,K.NudgeCard=P8,K.NudgeCardItem=M8,K.Person=MS,K.ProgressBar=Nd,K.ProgressInfo=l8,K.ProgressSlider=Hy,K.RequestedFeedbackNudgeData=E8,K.ReviewsNudgeData=S8,K.SankeyChart=V9,K.Search=PS,K.Select=Q$,K.SelectContent=Ih,K.SelectGroup=J$,K.SelectItem=Fh,K.SelectLabel=Lh,K.SelectSeparator=jh,K.SelectTrigger=Ah,K.SelectValue=R$,K.SharePraiseNudgeData=C8,K.SplitButton=s8,K.SplitButtonDropdownCheckboxItem=x1,K.SplitButtonDropdownContent=S1,K.SplitButtonDropdownGroup=b1,K.SplitButtonDropdownItem=v1,K.SplitButtonDropdownLabel=w1,K.SplitButtonDropdownRadioGroup=y1,K.SplitButtonDropdownRadioItem=$1,K.Survey=Zh,K.Tabs=cp,K.TabsContent=fp,K.TabsList=up,K.TabsTrigger=dp,K.Tag=Za,K.Team=kS,K.Tooltip=Gh,K.TooltipContent=fl,K.TooltipPortal=Yh,K.TooltipProvider=Hh,K.TooltipTrigger=Uh,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});