p-backlog 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cli.js +86 -25
  3. package/dist/web/assets/{CodeTab-V2SPooxh.js → CodeTab-DvhAb0kx.js} +1 -1
  4. package/dist/web/assets/{CostTab-D4rugc-u.js → CostTab-DHmrPaIY.js} +1 -1
  5. package/dist/web/assets/{EffectTab-BCaZDgQu.js → EffectTab-C-W3n29N.js} +1 -1
  6. package/dist/web/assets/{Figure-CFYBcH57.js → Figure-DUapj1C7.js} +1 -1
  7. package/dist/web/assets/{OverviewTab-kASqwnf1.js → OverviewTab-B-6PIEfD.js} +1 -1
  8. package/dist/web/assets/{Page-DI7Zd0Be.js → Page-U8D0vJva.js} +2 -2
  9. package/dist/web/assets/{QualityTab-CplJleEW.js → QualityTab-B9ahq43v.js} +1 -1
  10. package/dist/web/assets/ShareBar-B-seexQa.js +1 -0
  11. package/dist/web/assets/{StatsPage-FwqJDfSs.js → StatsPage-DBqHQi5S.js} +1 -1
  12. package/dist/web/assets/{StatsTabState-BSoHN7Xc.js → StatsTabState-DlqTtrvX.js} +1 -1
  13. package/dist/web/assets/{StatsTable-BfRFy0MD.js → StatsTable-ClPy3aOI.js} +1 -1
  14. package/dist/web/assets/UnavailableRepos-8SE6XJSM.js +1 -0
  15. package/dist/web/assets/{index-DV2SbUU8.js → index-wzgTQj7a.js} +2 -2
  16. package/dist/web/assets/{start-BOIixvFc.js → start-BR6m00jS.js} +4 -4
  17. package/dist/web/assets/{use-grain-panel-1Qp5t-fC.js → use-grain-panel-DpW0vjfB.js} +1 -1
  18. package/dist/web/assets/{web-paths-CM_0PJMa.js → web-paths-X1IR2jNR.js} +1 -1
  19. package/dist/web/index.html +1 -1
  20. package/package.json +1 -1
  21. package/skill/backlog/SKILL.md +8 -1
  22. package/skill/backlog-en/SKILL.md +9 -1
  23. package/dist/web/assets/ShareBar-BlEi1dd3.js +0 -1
  24. package/dist/web/assets/UnavailableRepos-C5PoIyCp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{A as r,a as i,dn as a,j as o,ln as s,un as c}from"./Page-DI7Zd0Be.js";import{C as l,S as u,_ as d,b as f,d as p,f as m,h,v as g}from"./index-DV2SbUU8.js";import{h as _,i as v,t as y}from"./start-BOIixvFc.js";import{a as b}from"./StatsTabState-BSoHN7Xc.js";var x=t(c()),S=s(),C=_();function w(e){return`≈ ${e}`}function T(e){return t=>d(e,t)}function E(e,t){return t===null?`—`:w(h(e,t))}function D(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=D(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function O(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=D(e))&&(r&&(r+=` `),r+=t);return r}var k=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function A(e){return typeof e==`string`&&k.includes(e)}var j=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function M(e){return typeof e==`string`&&j.has(e)}function N(e){return typeof e==`string`&&e.startsWith(`data-`)}function ee(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(M(n)||N(n))&&(t[n]=e[n]);return t}function te(e){if(e==null)return null;if((0,x.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ee(t)}return typeof e==`object`&&!Array.isArray(e)?ee(e):null}function P(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(M(n)||N(n)||A(n))&&(t[n]=e[n]);return t}function ne(e){return e==null?null:(0,x.isValidElement)(e)?P(e.props):typeof e==`object`&&!Array.isArray(e)?P(e):null}var re=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(null,arguments)}function ae(e,t){if(e==null)return{};var n,r,i=oe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var se=(0,x.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=ae(e,re),d=a||{width:r,height:i,x:0,y:0},f=O(`recharts-surface`,o);return x.createElement(`svg`,ie({},P(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),x.createElement(`title`,null,c),x.createElement(`desc`,null,l),n)}),ce=[`children`,`className`];function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function ue(e,t){if(e==null)return{};var n,r,i=de(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function de(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var fe=x.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ue(e,ce),a=O(`recharts-layer`,r);return x.createElement(`g`,le({className:a},P(i),{ref:t}),n)});function pe(e){return e===`__proto__`}var me=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function he(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:me.test(e);default:return!1}}function ge(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function _e(e){return typeof e==`symbol`||e instanceof Symbol}function ve(e){return e==null?``:ye(e)}function ye(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(ye).join(`,`);if(_e(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function be(e){if(Array.isArray(e))return e.map(ge);if(typeof e==`symbol`)return[e];e=ve(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function xe(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(pe(t))return n;let r=e[t];return r===void 0?he(t)&&!Object.hasOwn(e,t)?xe(e,be(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ge(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Se(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),pe(t))return n;let r=e[t];return r===void 0?n:r}}}function Se(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||pe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Ce=4;function we(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ce),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Te(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+we(i)+n},``)}var Ee=e=>e===0?0:e>0?1:-1,De=e=>typeof e==`number`&&e!=+e,Oe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!De(e),ke=e=>F(e)||typeof e==`string`,Ae=0,je=e=>{var t=++Ae;return`${e||``}${t}`},Me=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!F(e)&&typeof e!=`string`)return n;var i;if(Oe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return De(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Ne=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function I(e,t,n){return F(e)&&F(t)?we(e+n*(t-e)):t}function Pe(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):xe(e,t))===n)}var L=e=>e==null,Fe=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ie(e){return e!=null}function Le(){}function Re(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ze(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){var t=Ue(e,`string`);return typeof t==`symbol`?t:t+``}function Ue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var We=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Re(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Be({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Be({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Be({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Be({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Be({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Be({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Be({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Be({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||Oe(n.x))&&(F(n.y)||Oe(n.y))?Be({x:c+Me(n.x,g),y:l+Me(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Be({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ge=[`top`,`left`,`right`,`bottom`];function Ke(e){return e==null?!1:typeof e==`object`||Ge.includes(e)}var qe=(0,x.createContext)(null);function R(e){return function(){return e}}var Je=Math.PI,Ye=2*Je,Xe=1e-6,Ze=Ye-Xe;function Qe(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $e(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Qe;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var et=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Qe:$e(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Xe){if(!(Math.abs(u*s-c*l)>Xe)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Je-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Xe&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Xe||Math.abs(this._y1-l)>Xe)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Ye+Ye),d>Ze?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Xe&&this._append`A${n},${n},0,${+(d>=Je)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};et.prototype;function tt(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new et(t)}Array.prototype.slice;function nt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function rt(e){this._context=e}rt.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)}}};function it(e){return new rt(e)}function at(e){return e[0]}function ot(e){return e[1]}function st(e,t){var n=R(!0),r=null,i=it,a=null,o=tt(s);e=typeof e==`function`?e:e===void 0?at:R(e),t=typeof t==`function`?t:t===void 0?ot:R(t);function s(s){var c,l=(s=nt(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function ct(e,t,n){var r=null,i=R(!0),a=null,o=it,s=null,c=tt(l);e=typeof e==`function`?e:e===void 0?at:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ot:R(+n);function l(l){var u,d,f,p=(l=nt(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return st().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:R(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var lt=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function ut(e){return new lt(e,!0)}function dt(e){return new lt(e,!1)}function ft(){}function pt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function mt(e){this._context=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ht(e){return new mt(e)}function gt(e){this._context=e}gt.prototype={areaStart:ft,areaEnd:ft,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _t(e){return new gt(e)}function vt(e){this._context=e}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yt(e){return new vt(e)}function bt(e){this._context=e}bt.prototype={areaStart:ft,areaEnd:ft,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function xt(e){return new bt(e)}function St(e){return e<0?-1:1}function Ct(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(St(a)+St(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function wt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Tt(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Et(e){this._context=e}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Tt(this,this._t0,wt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(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;break;case 2:this._point=3,Tt(this,wt(this,n=Ct(this,e,t)),n);break;default:Tt(this,this._t0,n=Ct(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Dt(e){this._context=new Ot(e)}(Dt.prototype=Object.create(Et.prototype)).point=function(e,t){Et.prototype.point.call(this,t,e)};function Ot(e){this._context=e}Ot.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function kt(e){return new Et(e)}function At(e){return new Dt(e)}function jt(e){this._context=e}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Mt(e),i=Mt(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Mt(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Nt(e){return new jt(e)}function Pt(e,t){this._context=e,this._t=t}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ft(e){return new Pt(e,.5)}function It(e){return new Pt(e,0)}function Lt(e){return new Pt(e,1)}function Rt(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function zt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Bt(e,t){return e[t]}function Vt(e){let t=[];return t.key=e,t}function Ht(){var e=R([]),t=zt,n=Rt,r=Bt;function i(i){var a=Array.from(e.apply(this,arguments),Vt),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=nt(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?zt:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Rt,i):n},i}function Ut(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Rt(e,t)}}function Wt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Rt(e,t)}}function Gt(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Rt(e,t)}}var Kt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,x.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{A(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Jt=(e,t,n)=>r=>(e(t,n,r),null),Yt=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];A(i)&&typeof a==`function`&&(r||={},r[i]=Jt(a,t,n))}),r};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xt(Object(n),!0).forEach(function(t){Qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qt(e,t,n){return(t=$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=en(e,`string`);return typeof t==`symbol`?t:t+``}function en(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tn(e,t){var n=Zt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function nn(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function rn(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function an(e){return e}function on(e){return Number.isSafeInteger(e)&&e>=0}function sn(e){return e!=null&&typeof e!=`function`&&on(e.length)}function cn(e){return function(t){return xe(t,e)}}function ln(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function un(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function fn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var pn=`[object RegExp]`,mn=`[object String]`,hn=`[object Number]`,gn=`[object Boolean]`,_n=`[object Arguments]`,vn=`[object Symbol]`,yn=`[object Date]`,bn=`[object Map]`,xn=`[object Set]`,Sn=`[object Array]`,Cn=`[object Function]`,wn=`[object ArrayBuffer]`,Tn=`[object Object]`,En=`[object Error]`,Dn=`[object DataView]`,On=`[object Uint8Array]`,kn=`[object Uint8ClampedArray]`,An=`[object Uint16Array]`,jn=`[object Uint32Array]`,Mn=`[object BigUint64Array]`,Nn=`[object Int8Array]`,Pn=`[object Int16Array]`,Fn=`[object Int32Array]`,In=`[object BigInt64Array]`,Ln=`[object Float32Array]`,Rn=`[object Float64Array]`,zn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Bn(e){return zn.Buffer!==void 0&&zn.Buffer.isBuffer(e)}function Vn(e,t){return Hn(e,void 0,e,new Map,t)}function Hn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(ln(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Hn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,Hn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Hn(a,void 0,n,r,i));return t}if(Bn(e))return e.subarray();if(un(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Hn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Un(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Un(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Un(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(typeof e==`object`&&Wn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Un(t,e,n,r,i),t}return e}function Un(e,t,n=e,r,i){let a=[...Object.keys(t),...dn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=Hn(t[s],s,n,r,i))}}function Wn(e){switch(fn(e)){case _n:case Sn:case wn:case Dn:case gn:case yn:case Ln:case Rn:case Nn:case Pn:case Fn:case bn:case hn:case Tn:case pn:case xn:case mn:case vn:case On:case kn:case An:case jn:return!0;default:return!1}}function Gn(e){return Hn(e,void 0,e,new Map,void 0)}function Kn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function qn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Jn(e,t,n){return typeof n==`function`?Yn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Yn(t,r,e,s,!1):!!c},new Map,!0):Jn(e,t,()=>void 0)}function Yn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Xn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?Yn(e,{...t},n,r,i):Kn(e,t);default:return qn(e)&&i?typeof t!=`string`||t===``:Kn(e,t)}}function Xn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Qn(e,t,n,r);if(t instanceof Map)return Zn(e,t,n,r);if(t instanceof Set)return $n(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)ln(e)&&(e=Object(e));else{let t=fn(e);if(t!==`[object Object]`&&t!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function Zn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Qn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function $n(e,t,n,r){return t.size===0||e instanceof Set&&Qn([...e],[...t],n,r)}function er(e,t){return Jn(e,t,()=>void 0)}function tr(e){return e=Gn(e),t=>er(t,e)}function nr(e,t){return Vn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(fn(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Un(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case hn:case mn:case gn:{let t=new e.constructor(e?.valueOf());return Un(t,e),t}case _n:{let t={};return Un(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function rr(e){return nr(e)}var ir=/^(?:0|[1-9]\d*)$/;function ar(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return ir.test(e)}}function or(e){return typeof e==`object`&&!!e&&fn(e)===`[object Arguments]`}function sr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&he(t)&&!(t in Object(e))?be(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ge(n[e]);if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||or(r))&&ar(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function cr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ge(e)}return t=rr(t),function(n){let r=xe(n,e);return r===void 0?sr(n,e):t===void 0?r===void 0:er(r,t)}}function lr(e){if(e==null)return an;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?cr(e[0],e[1]):tr(e);default:return cn(e)}}function ur(e){return e===0?0:e}function dr(e,t=an){return sn(e)?nn(Array.from(e),rn(lr(t),1)).map(ur):[]}function fr(e,t,n){return t===!0?dr(e,n):typeof t==`function`?dr(e,t):e}var pr=n((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),mr=n(((e,t)=>{t.exports=pr()})),hr=n((e=>{var t=c(),n=mr();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),c!==void 0&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return c!==void 0&&c(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,c]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),gr=n(((e,t)=>{t.exports=hr()}))(),_r=(0,x.createContext)(null),vr=e=>e,z=()=>{var e=(0,x.useContext)(_r);return e?e.store.dispatch:vr},yr=()=>{},br=()=>yr,xr=(e,t)=>e===t;function B(e){var t=(0,x.useContext)(_r),n=(0,x.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:yr,[t,e]);return(0,gr.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:br,t?t.store.getState:yr,t?t.store.getState:yr,n,xr)}function Sr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Cr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var wr=e=>Array.isArray(e)?e:[e];function Tr(e){let t=Array.isArray(e[0])?e[0]:e;return Cr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Er(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Dr=class{constructor(e){this.value=e}deref(){return this.value}},Or=typeof WeakRef>`u`?Dr:WeakRef,kr=0,Ar=1;function jr(){return{s:kr,v:void 0,o:null,p:null}}function Mr(e){return e instanceof Or?e.deref():e}function Nr(e,t={}){let n=jr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=jr(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=jr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Ar)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Mr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Or(c):c}return s.s=Ar,s.v=c,c}return o.clearCache=()=>{n=jr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Pr(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Sr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Nr,argsMemoizeOptions:u=[]}={...n,...a},d=wr(c),f=wr(u),p=Tr(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Er(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var V=Pr(Nr);function Fr(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Ir(e,t,n){return qn(n)&&(typeof t==`number`&&sn(n)&&ar(t)&&t<n.length||typeof t==`string`&&t in n)?Kn(n[t],e):!1}function Lr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Rr=(e,t,n)=>{if(e!==t){let r=Lr(e),i=Lr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/;function Vr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||_e(e)?!0:typeof e==`string`&&(Br.test(e)||!zr.test(e))||t!=null&&Object.hasOwn(t,e)}function Hr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=sn(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Vr(e)?e:{key:e,path:be(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Ur(e,...t){let n=t.length;return n>1&&Ir(e,t[0],t[1])?t=[]:n>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,Fr(t),[`asc`])}var Wr=e=>e.legend.settings,Gr=e=>e.legend.size;V([e=>e.legend.payload,Wr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Ur(r,n):r});function Kr(e,t){return Zr(e)||Xr(e,t)||Jr(e,t)||qr()}function qr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{A as r,a as i,dn as a,j as o,ln as s,un as c}from"./Page-U8D0vJva.js";import{C as l,S as u,_ as d,b as f,d as p,f as m,h,v as g}from"./index-wzgTQj7a.js";import{h as _,i as v,t as y}from"./start-BR6m00jS.js";import{a as b}from"./StatsTabState-DlqTtrvX.js";var x=t(c()),S=s(),C=_();function w(e){return`≈ ${e}`}function T(e){return t=>d(e,t)}function E(e,t){return t===null?`—`:w(h(e,t))}function D(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=D(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function O(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=D(e))&&(r&&(r+=` `),r+=t);return r}var k=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function A(e){return typeof e==`string`&&k.includes(e)}var j=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function M(e){return typeof e==`string`&&j.has(e)}function N(e){return typeof e==`string`&&e.startsWith(`data-`)}function ee(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(M(n)||N(n))&&(t[n]=e[n]);return t}function te(e){if(e==null)return null;if((0,x.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ee(t)}return typeof e==`object`&&!Array.isArray(e)?ee(e):null}function P(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(M(n)||N(n)||A(n))&&(t[n]=e[n]);return t}function ne(e){return e==null?null:(0,x.isValidElement)(e)?P(e.props):typeof e==`object`&&!Array.isArray(e)?P(e):null}var re=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(null,arguments)}function ae(e,t){if(e==null)return{};var n,r,i=oe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var se=(0,x.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=ae(e,re),d=a||{width:r,height:i,x:0,y:0},f=O(`recharts-surface`,o);return x.createElement(`svg`,ie({},P(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),x.createElement(`title`,null,c),x.createElement(`desc`,null,l),n)}),ce=[`children`,`className`];function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le.apply(null,arguments)}function ue(e,t){if(e==null)return{};var n,r,i=de(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function de(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var fe=x.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ue(e,ce),a=O(`recharts-layer`,r);return x.createElement(`g`,le({className:a},P(i),{ref:t}),n)});function pe(e){return e===`__proto__`}var me=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function he(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:me.test(e);default:return!1}}function ge(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function _e(e){return typeof e==`symbol`||e instanceof Symbol}function ve(e){return e==null?``:ye(e)}function ye(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(ye).join(`,`);if(_e(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function be(e){if(Array.isArray(e))return e.map(ge);if(typeof e==`symbol`)return[e];e=ve(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function xe(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(pe(t))return n;let r=e[t];return r===void 0?he(t)&&!Object.hasOwn(e,t)?xe(e,be(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ge(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Se(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),pe(t))return n;let r=e[t];return r===void 0?n:r}}}function Se(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||pe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Ce=4;function we(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ce),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Te(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+we(i)+n},``)}var Ee=e=>e===0?0:e>0?1:-1,De=e=>typeof e==`number`&&e!=+e,Oe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!De(e),ke=e=>F(e)||typeof e==`string`,Ae=0,je=e=>{var t=++Ae;return`${e||``}${t}`},Me=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!F(e)&&typeof e!=`string`)return n;var i;if(Oe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return De(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Ne=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function I(e,t,n){return F(e)&&F(t)?we(e+n*(t-e)):t}function Pe(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):xe(e,t))===n)}var L=e=>e==null,Fe=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ie(e){return e!=null}function Le(){}function Re(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ze(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){var t=Ue(e,`string`);return typeof t==`symbol`?t:t+``}function Ue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var We=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Re(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Be({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Be({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Be({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Be({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Be({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Be({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Be({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Be({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||Oe(n.x))&&(F(n.y)||Oe(n.y))?Be({x:c+Me(n.x,g),y:l+Me(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Be({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ge=[`top`,`left`,`right`,`bottom`];function Ke(e){return e==null?!1:typeof e==`object`||Ge.includes(e)}var qe=(0,x.createContext)(null);function R(e){return function(){return e}}var Je=Math.PI,Ye=2*Je,Xe=1e-6,Ze=Ye-Xe;function Qe(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $e(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Qe;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var et=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Qe:$e(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Xe){if(!(Math.abs(u*s-c*l)>Xe)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Je-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Xe&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Xe||Math.abs(this._y1-l)>Xe)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Ye+Ye),d>Ze?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Xe&&this._append`A${n},${n},0,${+(d>=Je)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};et.prototype;function tt(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new et(t)}Array.prototype.slice;function nt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function rt(e){this._context=e}rt.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)}}};function it(e){return new rt(e)}function at(e){return e[0]}function ot(e){return e[1]}function st(e,t){var n=R(!0),r=null,i=it,a=null,o=tt(s);e=typeof e==`function`?e:e===void 0?at:R(e),t=typeof t==`function`?t:t===void 0?ot:R(t);function s(s){var c,l=(s=nt(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function ct(e,t,n){var r=null,i=R(!0),a=null,o=it,s=null,c=tt(l);e=typeof e==`function`?e:e===void 0?at:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ot:R(+n);function l(l){var u,d,f,p=(l=nt(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return st().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:R(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var lt=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function ut(e){return new lt(e,!0)}function dt(e){return new lt(e,!1)}function ft(){}function pt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function mt(e){this._context=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ht(e){return new mt(e)}function gt(e){this._context=e}gt.prototype={areaStart:ft,areaEnd:ft,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _t(e){return new gt(e)}function vt(e){this._context=e}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:pt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yt(e){return new vt(e)}function bt(e){this._context=e}bt.prototype={areaStart:ft,areaEnd:ft,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function xt(e){return new bt(e)}function St(e){return e<0?-1:1}function Ct(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(St(a)+St(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function wt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Tt(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Et(e){this._context=e}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Tt(this,this._t0,wt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(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;break;case 2:this._point=3,Tt(this,wt(this,n=Ct(this,e,t)),n);break;default:Tt(this,this._t0,n=Ct(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Dt(e){this._context=new Ot(e)}(Dt.prototype=Object.create(Et.prototype)).point=function(e,t){Et.prototype.point.call(this,t,e)};function Ot(e){this._context=e}Ot.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function kt(e){return new Et(e)}function At(e){return new Dt(e)}function jt(e){this._context=e}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Mt(e),i=Mt(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Mt(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Nt(e){return new jt(e)}function Pt(e,t){this._context=e,this._t=t}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ft(e){return new Pt(e,.5)}function It(e){return new Pt(e,0)}function Lt(e){return new Pt(e,1)}function Rt(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function zt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Bt(e,t){return e[t]}function Vt(e){let t=[];return t.key=e,t}function Ht(){var e=R([]),t=zt,n=Rt,r=Bt;function i(i){var a=Array.from(e.apply(this,arguments),Vt),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=nt(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?zt:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Rt,i):n},i}function Ut(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Rt(e,t)}}function Wt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Rt(e,t)}}function Gt(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Rt(e,t)}}var Kt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,x.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{A(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Jt=(e,t,n)=>r=>(e(t,n,r),null),Yt=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];A(i)&&typeof a==`function`&&(r||={},r[i]=Jt(a,t,n))}),r};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xt(Object(n),!0).forEach(function(t){Qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qt(e,t,n){return(t=$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=en(e,`string`);return typeof t==`symbol`?t:t+``}function en(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tn(e,t){var n=Zt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function nn(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function rn(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function an(e){return e}function on(e){return Number.isSafeInteger(e)&&e>=0}function sn(e){return e!=null&&typeof e!=`function`&&on(e.length)}function cn(e){return function(t){return xe(t,e)}}function ln(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function un(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function fn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var pn=`[object RegExp]`,mn=`[object String]`,hn=`[object Number]`,gn=`[object Boolean]`,_n=`[object Arguments]`,vn=`[object Symbol]`,yn=`[object Date]`,bn=`[object Map]`,xn=`[object Set]`,Sn=`[object Array]`,Cn=`[object Function]`,wn=`[object ArrayBuffer]`,Tn=`[object Object]`,En=`[object Error]`,Dn=`[object DataView]`,On=`[object Uint8Array]`,kn=`[object Uint8ClampedArray]`,An=`[object Uint16Array]`,jn=`[object Uint32Array]`,Mn=`[object BigUint64Array]`,Nn=`[object Int8Array]`,Pn=`[object Int16Array]`,Fn=`[object Int32Array]`,In=`[object BigInt64Array]`,Ln=`[object Float32Array]`,Rn=`[object Float64Array]`,zn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Bn(e){return zn.Buffer!==void 0&&zn.Buffer.isBuffer(e)}function Vn(e,t){return Hn(e,void 0,e,new Map,t)}function Hn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(ln(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Hn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,Hn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Hn(a,void 0,n,r,i));return t}if(Bn(e))return e.subarray();if(un(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Hn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Un(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Un(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Un(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Un(t,e,n,r,i),t}if(typeof e==`object`&&Wn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Un(t,e,n,r,i),t}return e}function Un(e,t,n=e,r,i){let a=[...Object.keys(t),...dn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=Hn(t[s],s,n,r,i))}}function Wn(e){switch(fn(e)){case _n:case Sn:case wn:case Dn:case gn:case yn:case Ln:case Rn:case Nn:case Pn:case Fn:case bn:case hn:case Tn:case pn:case xn:case mn:case vn:case On:case kn:case An:case jn:return!0;default:return!1}}function Gn(e){return Hn(e,void 0,e,new Map,void 0)}function Kn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function qn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Jn(e,t,n){return typeof n==`function`?Yn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Yn(t,r,e,s,!1):!!c},new Map,!0):Jn(e,t,()=>void 0)}function Yn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Xn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?Yn(e,{...t},n,r,i):Kn(e,t);default:return qn(e)&&i?typeof t!=`string`||t===``:Kn(e,t)}}function Xn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Qn(e,t,n,r);if(t instanceof Map)return Zn(e,t,n,r);if(t instanceof Set)return $n(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)ln(e)&&(e=Object(e));else{let t=fn(e);if(t!==`[object Object]`&&t!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function Zn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Qn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function $n(e,t,n,r){return t.size===0||e instanceof Set&&Qn([...e],[...t],n,r)}function er(e,t){return Jn(e,t,()=>void 0)}function tr(e){return e=Gn(e),t=>er(t,e)}function nr(e,t){return Vn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(fn(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Un(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case hn:case mn:case gn:{let t=new e.constructor(e?.valueOf());return Un(t,e),t}case _n:{let t={};return Un(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function rr(e){return nr(e)}var ir=/^(?:0|[1-9]\d*)$/;function ar(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return ir.test(e)}}function or(e){return typeof e==`object`&&!!e&&fn(e)===`[object Arguments]`}function sr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&he(t)&&!(t in Object(e))?be(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ge(n[e]);if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||or(r))&&ar(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function cr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ge(e)}return t=rr(t),function(n){let r=xe(n,e);return r===void 0?sr(n,e):t===void 0?r===void 0:er(r,t)}}function lr(e){if(e==null)return an;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?cr(e[0],e[1]):tr(e);default:return cn(e)}}function ur(e){return e===0?0:e}function dr(e,t=an){return sn(e)?nn(Array.from(e),rn(lr(t),1)).map(ur):[]}function fr(e,t,n){return t===!0?dr(e,n):typeof t==`function`?dr(e,t):e}var pr=n((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),mr=n(((e,t)=>{t.exports=pr()})),hr=n((e=>{var t=c(),n=mr();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),c!==void 0&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return c!==void 0&&c(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,c]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),gr=n(((e,t)=>{t.exports=hr()}))(),_r=(0,x.createContext)(null),vr=e=>e,z=()=>{var e=(0,x.useContext)(_r);return e?e.store.dispatch:vr},yr=()=>{},br=()=>yr,xr=(e,t)=>e===t;function B(e){var t=(0,x.useContext)(_r),n=(0,x.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:yr,[t,e]);return(0,gr.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:br,t?t.store.getState:yr,t?t.store.getState:yr,n,xr)}function Sr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Cr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var wr=e=>Array.isArray(e)?e:[e];function Tr(e){let t=Array.isArray(e[0])?e[0]:e;return Cr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Er(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Dr=class{constructor(e){this.value=e}deref(){return this.value}},Or=typeof WeakRef>`u`?Dr:WeakRef,kr=0,Ar=1;function jr(){return{s:kr,v:void 0,o:null,p:null}}function Mr(e){return e instanceof Or?e.deref():e}function Nr(e,t={}){let n=jr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=jr(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=jr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Ar)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Mr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Or(c):c}return s.s=Ar,s.v=c,c}return o.clearCache=()=>{n=jr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Pr(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Sr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Nr,argsMemoizeOptions:u=[]}={...n,...a},d=wr(c),f=wr(u),p=Tr(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Er(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var V=Pr(Nr);function Fr(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Ir(e,t,n){return qn(n)&&(typeof t==`number`&&sn(n)&&ar(t)&&t<n.length||typeof t==`string`&&t in n)?Kn(n[t],e):!1}function Lr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Rr=(e,t,n)=>{if(e!==t){let r=Lr(e),i=Lr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Br=/^\w*$/;function Vr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||_e(e)?!0:typeof e==`string`&&(Br.test(e)||!zr.test(e))||t!=null&&Object.hasOwn(t,e)}function Hr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=sn(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Vr(e)?e:{key:e,path:be(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Ur(e,...t){let n=t.length;return n>1&&Ir(e,t[0],t[1])?t=[]:n>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,Fr(t),[`asc`])}var Wr=e=>e.legend.settings,Gr=e=>e.legend.size;V([e=>e.legend.payload,Wr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Ur(r,n):r});function Kr(e,t){return Zr(e)||Xr(e,t)||Jr(e,t)||qr()}function qr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(e,t){if(e){if(typeof e==`string`)return Yr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,t):void 0}}function Yr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xr(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Zr(e){if(Array.isArray(e))return e}var Qr=1;function $r(e,t){return Math.abs(e.height-t.height)>Qr||Math.abs(e.left-t.left)>Qr||Math.abs(e.top-t.top)>Qr||Math.abs(e.width-t.width)>Qr}function ei(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function ti(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Kr((0,x.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,x.useRef)(null),a=(0,x.useRef)(n);a.current=n;var o=(0,x.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=ei(e);if($r(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=ei(e);$r(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,x.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function ni(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ri=typeof Symbol==`function`&&Symbol.observable||`@@observable`,ii=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ai={INIT:`@@redux/INIT${ii()}`,REPLACE:`@@redux/REPLACE${ii()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ii()}`};function oi(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function si(e,t,n){if(typeof e!=`function`)throw Error(ni(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ni(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ni(1));return n(si)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ni(3));return i}function d(e){if(typeof e!=`function`)throw Error(ni(4));if(c)throw Error(ni(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ni(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!oi(e))throw Error(ni(7));if(e.type===void 0)throw Error(ni(8));if(typeof e.type!=`string`)throw Error(ni(17));if(c)throw Error(ni(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ni(10));r=e,f({type:ai.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ni(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ri](){return this}}}return f({type:ai.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ri]:m}}function ci(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:ai.INIT})===void 0)throw Error(ni(12));if(n(void 0,{type:ai.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ni(13))})}function li(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{ci(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(ni(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function ui(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function di(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ni(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ui(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function fi(e){return oi(e)&&`type`in e&&typeof e.type==`string`}var pi=Symbol.for(`immer-nothing`),mi=Symbol.for(`immer-draftable`),hi=Symbol.for(`immer-state`);function gi(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var _i=Object,vi=_i.getPrototypeOf,yi=`constructor`,bi=`prototype`,xi=`configurable`,Si=`enumerable`,Ci=`writable`,wi=`value`,Ti=e=>!!e&&!!e[hi];function Ei(e){return e?ki(e)||Ii(e)||!!e[mi]||!!e[yi]?.[mi]||Li(e)||Ri(e):!1}var Di=_i[bi][yi].toString(),Oi=new WeakMap;function ki(e){if(!e||!zi(e))return!1;let t=vi(e);if(t===null||t===_i[bi])return!0;let n=_i.hasOwnProperty.call(t,yi)&&t[yi];if(n===Object)return!0;if(!Bi(n))return!1;let r=Oi.get(n);return r===void 0&&(r=Function.toString.call(n),Oi.set(n,r)),r===Di}function Ai(e,t,n=!0){ji(e)===0?(n?Reflect.ownKeys(e):_i.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ji(e){let t=e[hi];return t?t.type_:Ii(e)?1:Li(e)?2:Ri(e)?3:0}var Mi=(e,t,n=ji(e))=>n===2?e.has(t):_i[bi].hasOwnProperty.call(e,t),Ni=(e,t,n=ji(e))=>n===2?e.get(t):e[t],Pi=(e,t,n,r=ji(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Fi(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ii=Array.isArray,Li=e=>e instanceof Map,Ri=e=>e instanceof Set,zi=e=>typeof e==`object`,Bi=e=>typeof e==`function`,Vi=e=>typeof e==`boolean`;function Hi(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ui=e=>e.copy_||e.base_,Wi=e=>e.modified_?e.copy_:e.base_;function Gi(e,t){if(Li(e))return new Map(e);if(Ri(e))return new Set(e);if(Ii(e))return Array[bi].slice.call(e);let n=ki(e);if(t===!0||t===`class_only`&&!n){let t=_i.getOwnPropertyDescriptors(e);delete t[hi];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ci]===!1&&(a[Ci]=!0,a[xi]=!0),(a.get||a.set)&&(t[i]={[xi]:!0,[Ci]:!0,[Si]:a[Si],[wi]:e[i]})}return _i.create(vi(e),t)}{let t=vi(e);if(t!==null&&n)return{...e};let r=_i.create(t);return _i.assign(r,e)}}function Ki(e,t=!1){return Yi(e)||Ti(e)||!Ei(e)?e:(ji(e)>1&&_i.defineProperties(e,{set:Ji,add:Ji,clear:Ji,delete:Ji}),_i.freeze(e),t&&Ai(e,(e,t)=>{Ki(t,!0)},!1),e)}function qi(){gi(2)}var Ji={[wi]:qi};function Yi(e){return e===null||!zi(e)||_i.isFrozen(e)}var Xi=`MapSet`,Zi=`Patches`,Qi=`ArrayMethods`,$i={};function ea(e){let t=$i[e];return t||gi(0,e),t}var ta=e=>!!$i[e],na,ra=()=>na,ia=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ta(Xi)?ea(Xi):void 0,arrayMethodsPlugin_:ta(Qi)?ea(Qi):void 0});function aa(e,t){t&&(e.patchPlugin_=ea(Zi),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oa(e){sa(e),e.drafts_.forEach(la),e.drafts_=null}function sa(e){e===na&&(na=e.parent_)}var ca=e=>na=ia(na,e);function la(e){let t=e[hi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ua(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[hi].modified_&&(oa(t),gi(4)),Ei(e)&&(e=da(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[hi].base_,e,t)}else e=da(t,n);return fa(t,e,!0),oa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===pi?void 0:e}function da(e,t){if(Yi(t))return t;let n=t[hi];if(!n)return ba(t,e.handledSet_,e);if(!ma(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);va(n,e)}return n.copy_}function fa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ki(t,n)}function pa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ma=(e,t)=>e.scope_===t,ha=[];function ga(e,t,n,r){let i=Ui(e),a=e.type_;if(r!==void 0&&Ni(i,r,a)===t){Pi(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ai(i,(e,n)=>{if(Ti(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ha;for(let e of o)Pi(i,e,n,a)}function _a(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ma(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Wi(i);ga(e,i.draft_??i,a,n),va(i,r)})}function va(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}pa(e)}}function ya(e,t,n){let{scope_:r}=e;if(Ti(n)){let i=n[hi];ma(i,r)&&i.callbacks_.push(function(){ka(e),ga(e,n,Wi(i),t)})}else Ei(n)&&e.callbacks_.push(function(){let i=Ui(e);e.type_===3?i.has(n)&&ba(n,r.handledSet_,r):Ni(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ba(Ni(e.copy_,t,e.type_),r.handledSet_,r)})}function ba(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ti(e)||t.has(e)||!Ei(e)||Yi(e)?e:(t.add(e),Ai(e,(r,i)=>{if(Ti(i)){let t=i[hi];ma(t,n)&&(Pi(e,r,Wi(t),e.type_),pa(t))}else Ei(i)&&ba(i,t,n)}),e)}function xa(e,t){let n=Ii(e),r={type_:+!!n,scope_:t?t.scope_:ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Sa;n&&(i=[r],a=Ca);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Sa={get(e,t){if(t===hi)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Ui(e);if(!Mi(i,t,e.type_))return Ea(e,i,t);let a=i[t];if(e.finalized_||!Ei(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Hi(t))return a;if(a===wa(e.base_,t)||Ta(e,t,a)){ka(e);let n=e.type_===1?+t:t,r=ja(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Ui(e)},ownKeys(e){return Reflect.ownKeys(Ui(e))},set(e,t,n){let r=Da(Ui(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=wa(Ui(e),t),i=r?.[hi];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Fi(n,r)&&(n!==void 0||Mi(e.base_,t,e.type_)))return!0;ka(e),Oa(e)}return e.copy_[t]===n&&(n!==void 0||Mi(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),ya(e,t,n),!0)},deleteProperty(e,t){return ka(e),wa(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Oa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Ui(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ci]:!0,[xi]:e.type_!==1||t!==`length`,[Si]:r[Si],[wi]:n[t]}},defineProperty(){gi(11)},getPrototypeOf(e){return vi(e.base_)},setPrototypeOf(){gi(12)}},Ca={};for(let e in Sa){let t=Sa[e];Ca[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ca.deleteProperty=function(e,t){return Ca.set.call(this,e,t,void 0)},Ca.set=function(e,t,n){return Sa.set.call(this,e[0],t,n,e[0])};function wa(e,t){let n=e[hi];return(n?Ui(n):e)[t]}function Ta(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Ei(n)||n[hi]?!1:e.baseRefs_.has(n)}function Ea(e,t,n){let r=Da(t,n);return r?wi in r?r[wi]:r.get?.call(e.draft_):void 0}function Da(e,t){if(!(t in e))return;let n=vi(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=vi(n)}}function Oa(e){e.modified_||(e.modified_=!0,e.parent_&&Oa(e.parent_))}function ka(e){e.copy_||=(e.assigned_=new Map,Gi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Aa=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Bi(e)&&!Bi(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Bi(t)||gi(6),n!==void 0&&!Bi(n)&&gi(7);let r;if(Ei(e)){let i=ca(this),a=ja(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?oa(i):sa(i)}return aa(i,n),ua(r,i)}if(!e||!zi(e)){if(r=t(e),r===void 0&&(r=e),r===pi&&(r=void 0),this.autoFreeze_&&Ki(r,!0),n){let t=[],i=[];ea(Zi).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}gi(1,e)},this.produceWithPatches=(e,t)=>{if(Bi(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Vi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Vi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Vi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ei(e)||gi(8),Ti(e)&&(e=Ma(e));let t=ca(this),n=ja(t,e,void 0);return n[hi].isManual_=!0,sa(t),n}finishDraft(e,t){let n=e&&e[hi];(!n||!n.isManual_)&&gi(9);let{scope_:r}=n;return aa(r,t),ua(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=ea(Zi).applyPatches_;return Ti(e)?r(e,t):this.produce(e,e=>r(e,t))}};function ja(e,t,n,r){let[i,a]=Li(t)?ea(Xi).proxyMap_(t,n):Ri(t)?ea(Xi).proxySet_(t,n):xa(t,n);return(n?.scope_??ra()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?_a(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ma(e){return Ti(e)||gi(10,e),Na(e)}function Na(e){if(!Ei(e)||Yi(e))return e;let t=e[hi],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Gi(e,!0);return Ai(n,(e,t)=>{Pi(n,e,Na(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var Pa=new Aa().produce,H=e=>e;function Fa(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Ia=Fa(),La=Fa,Ra=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?ui:ui.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function za(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Jo(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>fi(t)&&t.type===e,n}var Ba=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Va(e){return Ei(e)?Pa(e,()=>{}):e}function Ha(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ua(e){return typeof e==`boolean`}var Wa=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ba;return t&&(Ua(t)?a.push(Ia):a.push(La(t.extraArgument))),a},Ga=`RTK_autoBatch`,U=()=>e=>({payload:e,meta:{[Ga]:!0}}),Ka=e=>t=>{setTimeout(t,e)},qa=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Ja=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?qa(window.requestAnimationFrame,100):Ka(10):e.type===`callback`?e.queueNotification:Ka(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Ga],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Ya=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ba(e);return n&&r.push(Ja(typeof n==`object`?n:void 0)),r};function Xa(e){let t=Wa(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(oi(n))c=li(n);else throw Error(Jo(1));let l;l=typeof r==`function`?r(t):t();let u=ui;i&&(u=Ra({trace:!1,...typeof i==`object`&&i}));let d=Ya(di(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return si(c,o,p)}function Za(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Jo(28));if(r in t)throw Error(Jo(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Qa(e){return typeof e==`function`}function $a(e,t){let[n,r,i]=Za(t),a;if(Qa(e))a=()=>Va(e());else{let t=Va(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(Ti(e)){let r=n(e,t);return r===void 0?e:r}if(Ei(e))return Pa(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}}return e},e)}return o.getInitialState=a,o}var eo=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,to=(e=21)=>{let t=``,n=e;for(;n--;)t+=eo[Math.random()*64|0];return t},no=Symbol.for(`rtk-slice-createasyncthunk`);function ro(e,t){return`${e}/${t}`}function io({creators:e}={}){let t=e?.asyncThunk?.[no];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Jo(11));let i=(typeof e.reducers==`function`?e.reducers(so()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Jo(12));if(n in o.sliceCaseReducersByType)throw Error(Jo(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:ro(n,r),createNotation:typeof e.reducers==`function`};lo(a)?fo(o,a,s,t):co(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Za(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return $a(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Ha(d,r,m)),i}function i(t=l){return Ha(Ha(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ao(a,t,()=>Ha(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ao(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var oo=io();function so(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function co({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!uo(r))throw Error(Jo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?za(e,o):za(e))}function lo(e){return e._reducerDefinitionType===`asyncThunk`}function uo(e){return e._reducerDefinitionType===`reducerWithPrepare`}function fo({type:e,reducerName:t},n,r,i){if(!i)throw Error(Jo(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||po,pending:s||po,rejected:c||po,settled:l||po})}function po(){}var mo=`task`,ho=`listener`,go=`completed`,_o=`cancelled`,vo=`task-${_o}`,yo=`task-${go}`,bo=`${ho}-${_o}`,xo=`${ho}-${go}`,So=class{constructor(e){this.code=e,this.message=`${mo} ${_o} (reason: ${e})`}code;name=`TaskAbortError`;message},Co=(e,t)=>{if(typeof e!=`function`)throw TypeError(Jo(32))},wo=()=>{},To=(e,t=wo)=>(e.catch(t),e),Eo=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Do=e=>{if(e.aborted)throw new So(e.reason)};function Oo(e,t){let n=wo;return new Promise((r,i)=>{let a=()=>i(new So(e.reason));if(e.aborted){a();return}n=Eo(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=wo})}var ko=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof So?`cancelled`:`rejected`,error:e}}finally{t?.()}},Ao=e=>t=>To(Oo(e,t).then(t=>(Do(e),t))),jo=e=>{let t=Ao(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Mo}=Object,No={},Po=`listenerMiddleware`,Fo=(e,t)=>{let n=t=>Eo(e,()=>t.abort(e.reason));return(r,i)=>{Co(r,`taskExecutor`);let a=new AbortController;n(a);let o=ko(async()=>{Do(e),Do(a.signal);let t=await r({pause:Ao(a.signal),delay:jo(a.signal),signal:a.signal});return Do(a.signal),t},()=>a.abort(yo));return i?.autoJoin&&t.push(o.catch(wo)),{result:Ao(e)(o),cancel(){a.abort(vo)}}}},Io=(e,t)=>{let n=async(n,r)=>{Do(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await Oo(t,Promise.race(a));return Do(t),e}finally{i()}};return((e,t)=>To(n(e,t)))},Lo=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=za(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Jo(21));return Co(a,`options.listener`),{predicate:i,type:t,effect:a}},Ro=Mo(e=>{let{type:t,predicate:n,effect:r}=Lo(e);return{id:to(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Jo(22))}}},{withTypes:()=>Ro}),zo=(e,t)=>{let{type:n,effect:r,predicate:i}=Lo(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Bo=e=>{e.pending.forEach(e=>{e.abort(bo)})},Vo=(e,t)=>()=>{for(let e of t.keys())Bo(e);e.clear()},Ho=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Uo=Mo(za(`${Po}/add`),{withTypes:()=>Uo}),Wo=za(`${Po}/removeAll`),Go=Mo(za(`${Po}/remove`),{withTypes:()=>Go}),Ko=(...e)=>{console.error(`${Po}/error`,...e)},qo=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Ko}=e;Co(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Bo(e)}),c=(e=>{let n=zo(t,e)??Ro(e);return s(n)});Mo(c,{withTypes:()=>c});let l=e=>{let n=zo(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Bo(n)),!!n};Mo(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Io(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Mo({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:jo(u.signal),pause:Ao(u.signal),extra:a,signal:u.signal,fork:Fo(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(bo),n.delete(e))})},cancel:()=>{u.abort(bo),e.pending.delete(u)},throwIfCancelled:()=>{Do(u.signal)}})))}catch(e){e instanceof So||Ho(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(xo),i(e),e.pending.delete(u)}},d=Vo(t,n);return{middleware:e=>n=>r=>{if(!fi(r))return n(r);if(Uo.match(r))return c(r.payload);if(Wo.match(r)){d();return}if(Go.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===No)throw Error(Jo(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Ho(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=No}return s},startListening:c,stopListening:l,clearListeners:d}};function Jo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Yo=oo({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),Xo=Yo.actions,Zo=Xo.setMargin,Qo=Xo.setLayout,$o=Xo.setChartSize,es=Xo.setScale,ts=Yo.reducer;function ns(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function W(e){return Number.isFinite(e)}function rs(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?is(Object(n),!0).forEach(function(t){os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function os(e,t,n){return(t=ss(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(e){var t=cs(e,`string`);return typeof t==`symbol`?t:t+``}function cs(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function G(e,t,n){return L(e)||L(t)?n:ke(t)?xe(e,t,n):typeof t==`function`?t(e):n}var ls=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(Ke(c)){if(c===`top`&&F(e.top))return as(as({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&F(e.bottom))return as(as({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&F(e.left))return as(as({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&F(e.right))return as(as({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&F(e[a]))return as(as({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&F(e[o]))return as(as({},e),{},{[o]:e[o]+(i||0)})}return e},us=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,ds=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},fs=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Ee(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return W(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Ie):c&&l?l.map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ie):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ie):o.domain().map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Ie)},ps=(e,t)=>{if(!t||t.length!==2||!F(t[0])||!F(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!F(e[0])||e[0]<n)&&(i[0]=n),(!F(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},ms={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=De(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Ut,none:Rt,silhouette:Wt,wiggle:Gt,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=De(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},hs=(e,t,n)=>{var r=ms[n]??Rt,i=Ht().keys(t).value((e,t)=>Number(G(e,t,0))).order(zt).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=G(e[i],t[r],0);Array.isArray(a)&&a.length===2&&F(a[0])&&F(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function gs(e){return e==null?void 0:String(e)}function _s(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!L(i[t.dataKey])){var s=Pe(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=G(i,L(o)?t.dataKey:o),l=t.scale.map(c);return F(l)?l:null}var vs=e=>{var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=G(a,t.dataKey,t.scale.domain()[o]);if(L(s))return null;var c=t.scale.map(s);return F(c)?c-i/2+r:null},ys=e=>{var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},bs=e=>{var t=e.flat(2).filter(F);return[Math.min(...t),Math.max(...t)]},xs=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Ss=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return xs(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=bs(ns(r,t,n));return!W(i[0])||!W(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},Cs=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ws=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ts=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Ur(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function Es(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return as(as({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ds(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Os=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},ks=(e,t)=>t===`centric`?e.angle:e.radius,As=e=>e.layout.width,js=e=>e.layout.height,Ms=e=>e.layout.scale,Ns=e=>e.layout.margin,Ps=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fs=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Is=`data-recharts-item-index`;function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ls(Object(n),!0).forEach(function(t){zs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zs(e,t,n){return(t=Bs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bs(e){var t=Vs(e,`string`);return typeof t==`symbol`?t:t+``}function Vs(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Hs=e=>e.brush.height;function Us(e){return Fs(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Ws(e){return Fs(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Gs(e){return Ps(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function Ks(e){return Ps(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var qs=V([As,js,Ns,Hs,Us,Ws,Gs,Ks,Wr,Gr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Rs(Rs({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=ls(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Rs(Rs({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Js=V(qs,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ys=V(As,js,(e,t)=>({x:0,y:0,width:e,height:t})),Xs=(0,x.createContext)(null),Zs=()=>(0,x.useContext)(Xs)!=null,Qs=e=>e.brush,$s=V([Qs,qs,Ns],(e,t,n)=>({height:e.height,x:F(e.x)?e.x:t.left,y:F(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:F(e.width)?e.width:t.width}));function ec(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function tc(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=ec(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function nc(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return tc(e,t,{leading:r,maxWait:t,trailing:i})}var rc=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}},ic={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ac=(e,t,n)=>{var r=n.width,i=r===void 0?ic.width:r,a=n.height,o=a===void 0?ic.height:a,s=n.aspect,c=n.maxHeight,l=Oe(i)?e:Number(i),u=Oe(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},oc={width:0,height:0,overflow:`visible`},sc={width:0,overflowX:`visible`},cc={height:0,overflowY:`visible`},lc={},uc=e=>{var t=e.width,n=e.height,r=Oe(t),i=Oe(n);return r&&i?oc:r?sc:i?cc:lc};function dc(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=ic.width,a=ic.height):i===void 0?i=r&&r>0?void 0:ic.width:a===void 0&&(a=r&&r>0?void 0:ic.height),{width:i,height:a}}var fc=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pc.apply(null,arguments)}function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(e,t,n){return(t=_c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e){var t=vc(e,`string`);return typeof t==`symbol`?t:t+``}function vc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function yc(e,t){return wc(e)||Cc(e,t)||xc(e,t)||bc()}function bc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xc(e,t){if(e){if(typeof e==`string`)return Sc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sc(e,t):void 0}}function Sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wc(e){if(Array.isArray(e))return e}function Tc(e,t){if(e==null)return{};var n,r,i=Ec(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ec(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dc=(0,x.createContext)(ic.initialDimension);function Oc(e){return rs(e.width)&&rs(e.height)}function kc(e){var t=e.children,n=e.width,r=e.height,i=(0,x.useMemo)(()=>({width:n,height:r}),[n,r]);return Oc(i)?x.createElement(Dc.Provider,{value:i},t):null}var Ac=()=>(0,x.useContext)(Dc),jc=(0,x.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?ic.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?ic.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,f=e.debounce,p=f===void 0?ic.debounce:f,m=e.id,h=e.className,g=e.onResize,_=e.style,v=_===void 0?{}:_,y=Tc(e,fc),b=(0,x.useRef)(null),S=(0,x.useRef)();S.current=g,(0,x.useImperativeHandle)(t,()=>b.current);var C=yc((0,x.useState)({containerWidth:i.width,containerHeight:i.height}),2),w=C[0],T=C[1],E=(0,x.useCallback)((e,t)=>{T(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,x.useEffect)(()=>{if(b.current==null||typeof ResizeObserver>`u`)return Le;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;E(i,a),(t=S.current)==null||t.call(S,i,a)}};p>0&&(e=nc(e,p,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=b.current.getBoundingClientRect(),r=n.width,i=n.height;return E(r,i),t.observe(b.current),()=>{t.disconnect()}},[E,p]);var D=w.containerWidth,k=w.containerHeight;rc(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var A=ac(D,k,{width:a,height:o,aspect:n,maxHeight:u}),j=A.calculatedWidth,M=A.calculatedHeight;return rc(D<0||k<0||j!=null&&j>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0,
4
4
  please check the style of container, or the props width(%s) and height(%s),
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{At as t,Bt as n,Ct as r,Dt as i,Et as a,Ft as o,Gt as s,Ht as c,Lt as l,Mt as u,Nt as d,Ot as f,Pt as p,Rt as m,St as h,Tt as g,Ut as _,Vt as v,Wt as y,_t as b,at as x,bt as S,ct as C,et as w,gt as T,it as E,jt as D,kt as O,mt as k,nt as A,ot as j,pt as M,rt as ee,tt as N,un as P,ut as F,vt as I,wt as te,xt as ne,yt as re,zt as L}from"./Page-DI7Zd0Be.js";import{t as ie}from"./index-DV2SbUU8.js";var ae={};function R(e,t){!e&&!ae[t]&&(ae[t]=!0,console.warn(t))}var z=e(P(),1),oe=[`HydrateFallback`,`hydrateFallbackElement`],se=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function ce({router:e,flushSync:t,onError:n,useTransitions:r}){r=g()||r;let[i,a]=z.useState(e.state),[o,s]=(0,z.useOptimistic)(i),[c,l]=z.useState(),[u,f]=z.useState({isTransitioning:!1}),[p,m]=z.useState(),[h,_]=z.useState(),[v,y]=z.useState(),x=z.useRef(new Map),C=z.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:d(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&x.current.set(t,e.data)}),o.forEach(e=>x.current.delete(e)),R(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(R(g==null||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!v){t&&u?t(()=>a(i)):r===!1?a(i):z.startTransition(()=>{r===!0&&s(e=>B(e,i)),a(i)});return}if(t&&u){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>_(n));return}h?(p?.resolve(),h.skipTransition(),y({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),f({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,h,p,r,s,n]);z.useLayoutEffect(()=>e.subscribe(C),[e,C]),z.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new se)},[u]),z.useEffect(()=>{if(p&&c&&e.window){let t=c,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):z.startTransition(()=>{r===!0&&s(e=>B(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})}),_(i)}},[c,p,e.window,r,s]),z.useEffect(()=>{p&&c&&o.location.key===c.location.key&&p.resolve()},[p,h,o.location,c]),z.useEffect(()=>{!u.isTransitioning&&v&&(l(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[u.isTransitioning,v]);let w=z.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),E=e.basename||`/`,D=z.useMemo(()=>({router:e,navigator:w,static:!1,basename:E,onError:n}),[e,w,E,n]),O=z.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),k=z.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),A=z.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),j=z.useMemo(()=>({fetchers:o.fetchers,fetcherData:x.current}),[o.fetchers]);return z.createElement(z.Fragment,null,z.createElement(T.Provider,{value:D},z.createElement(re.Provider,{value:O},z.createElement(I.Provider,{value:k},z.createElement(b.Provider,{value:A},z.createElement(S.Provider,{value:j},z.createElement(te.Provider,{value:u},z.createElement(pe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,useTransitions:r},z.createElement(le,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function B(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var le=z.memo(ue);function ue({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=z.useContext(T);return c(a,`You must render this element inside a <DataRouterContext.Provider> element`),k(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function de({to:e,replace:t,state:n,relative:a}){c(x(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:o,navigator:s}=z.useContext(h);y(!o,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:l}=z.useContext(r),{pathname:d}=j(),p=C(),g=m(e,u(l),d,a===`path`);f(typeof e==`string`?e:v(e),s.createHref(g),i(s),`reject`);let _=JSON.stringify(g);return z.useEffect(()=>{p(JSON.parse(_),{replace:t,state:n,relative:a})},[p,_,a,t,n]),null}function fe(e){return F(e.context)}function pe({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){c(!x(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),l=z.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=_(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:g}=n,v=z.useMemo(()=>{let e=L(u,s);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:g},navigationType:r}},[s,u,d,f,p,m,r,g]);return y(v!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:z.createElement(h.Provider,{value:l},z.createElement(ne.Provider,{children:t,value:v}))}z.Component;var V=`application/x-www-form-urlencoded`;function H(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function me(e){return H(e)&&e.tagName.toLowerCase()===`button`}function he(e){return H(e)&&e.tagName.toLowerCase()===`form`}function ge(e){return H(e)&&e.tagName.toLowerCase()===`input`}function _e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ve(e,t){return e.button===0&&(!t||t===`_self`)&&!_e(e)}function U(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ye(e,t){let n=U(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var W=null;function be(){if(W===null)try{new FormData(document.createElement(`form`),0),W=!1}catch{W=!0}return W}var xe=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function G(e){return e!=null&&!xe.has(e)?(y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`),null):e}function Se(e,t){let n,r,i,a,o;if(he(e)){let o=e.getAttribute(`action`);r=o?L(o,t):null,n=e.getAttribute(`method`)||`get`,i=G(e.getAttribute(`enctype`))||V,a=new FormData(e)}else if(me(e)||ge(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?L(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=G(e.getAttribute(`formenctype`))||G(o.getAttribute(`enctype`))||V,a=new FormData(o,e),!be()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(H(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=V,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Ce(e,t){if(e===!1||e==null)throw Error(t)}function we(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Te(e,t){if(e.id in t)return t[e.id];try{let n=await ie(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ee(e){return e!=null&&typeof e.page==`string`}function De(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Oe(e,t,n){return Ne((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Te(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(De).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function ke(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ae(e,t,{includeHydrateFallback:n}={}){return je(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function je(e){return[...new Set(e)]}function Me(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ne(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ee(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Me(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var K=z.createContext(void 0);K.displayName=`FrameworkContext`;function q(){let e=z.useContext(K);return Ce(e,`You must render this element inside a <HydratedRouter> element`),e}function Pe(e,t){let n=z.useContext(K),[r,i]=z.useState(!1),[a,o]=z.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=z.useRef(null);z.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),z.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:J(s,p),onBlur:J(c,m),onMouseEnter:J(l,p),onMouseLeave:J(u,m),onTouchStart:J(d,p)}]:[a,f,{}]:[!1,f,{}]}function J(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fe({page:e,...t}){let n=g(),{nonce:r}=q(),{router:i}=N(`PrefetchPageLinks`),a=z.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?z.createElement(Le,{page:e,matches:a,...t}):z.createElement(Re,{page:e,matches:a,...t})):null}function Ie(e){let{manifest:t,routeModules:n}=q(),[r,i]=z.useState([]);return z.useEffect(()=>{let r=!1;return Oe(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Le({page:e,matches:t,...n}){let r=j(),i=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=we(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return z.createElement(z.Fragment,null,i.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Re({page:e,matches:t,...n}){let r=j(),{manifest:i,routeModules:a}=q(),{matches:o}=ee(`PrefetchPageLinks`),{loaderData:s}=A(`PrefetchPageLinks`),c=z.useMemo(()=>ke(e,t,o,i,r,`data`),[e,t,o,i,r]),l=z.useMemo(()=>ke(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=we(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=z.useMemo(()=>Ae(l,i),[l,i]),f=Ie(l);return z.createElement(z.Fragment,null,u.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>z.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>z.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ze(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Be=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Be&&(window.__reactRouterVersion=`8`)}catch{}function Ve(e,t){return a({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:n({window:t?.window}),hydrationData:t?.hydrationData||He(),routes:e,mapRouteProperties:D,hydrationRouteProperties:oe,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function He(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ue(e.errors)}),e}function Ue(e){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(i&&i.__type===`RouteErrorResponse`)r[e]=new O(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type===`Error`){if(typeof i.__subType==`string`&&t.includes(i.__subType)){let t=window[i.__subType];if(typeof t==`function`)try{let n=new t(i.message);n.stack=``,r[e]=n}catch{}}if(r[e]==null){let t=Error(i.message);t.stack=``,r[e]=t}}else r[e]=i;return r}var Y=z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:c,target:u,to:d,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:_,...v},y){let{basename:b,navigator:x,useTransitions:S}=z.useContext(h),C=typeof d==`string`&&s.test(d),w=l(d,b);d=w.to;let T=E(d,{relative:r}),D=j(),O=null;if(o){let e=m(o,[],D.mask?D.mask.pathname:`/`,!0);b!==`/`&&(e.pathname=e.pathname===`/`?b:p([b,e.pathname])),O=x.createHref(e)}let[k,A,M]=Pe(n,v),ee=Ke(d,{replace:a,mask:o,state:c,target:u,preventScrollReset:f,relative:r,viewTransition:g,defaultShouldRevalidate:_,useTransitions:S});function N(t){e&&e(t),t.defaultPrevented||ee(t)}let P=!(w.isExternal||i),F=z.createElement(`a`,{...v,...M,href:(P?O:void 0)||w.absoluteURL||T,onClick:P?N:e,ref:ze(y,A),target:u,"data-discover":!C&&t===`render`?`true`:void 0});return k&&!C?z.createElement(z.Fragment,null,F,z.createElement(Fe,{page:T})):F});Y.displayName=`Link`;var We=z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=M(a,{relative:c.relative}),d=j(),f=z.useContext(I),{navigator:p,basename:m}=z.useContext(h),g=f!=null&&$e(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f?.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=L(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(b)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return z.createElement(Y,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});We.displayName=`NavLink`;var Ge=z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},g)=>{let{useTransitions:_}=z.useContext(h),v=Xe(),y=Ze(c,{relative:u}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&s.test(c);return z.createElement(`form`,{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,c=()=>v(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});_&&n!==!1?z.startTransition(()=>c()):c()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ge.displayName=`Form`;function Ke(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=C(),d=j(),f=M(e,{relative:o});return z.useCallback(p=>{if(ve(p,t)){p.preventDefault();let t=n===void 0?v(d)===v(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?z.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function qe(e){y(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=z.useRef(U(e)),n=z.useRef(!1),r=j(),i=z.useMemo(()=>ye(r.search,n.current?null:t.current),[r.search]),a=C();return[i,z.useCallback((e,t)=>{let r=U(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Je=0,Ye=()=>`__${String(++Je)}__`;function Xe(){let{router:e}=N(`useSubmit`),{basename:t}=z.useContext(h),n=w(`useSubmit`),r=e.fetch,i=e.navigate;return z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Se(e,t);a.navigate===!1?await r(a.fetcherKey||Ye(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ze(e,{relative:t}={}){let{basename:n}=z.useContext(h),i=z.useContext(r);c(i,`useFormAction must be used inside a RouteContext`);let[a]=i.matches.slice(-1),o={...M(e||`.`,{relative:t})},s=j();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:p([n,o.pathname])),v(o)}function Qe(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function $e(e,{relative:t}={}){let n=z.useContext(te);c(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N(`useViewTransitionState`),i=M(e,{relative:t});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return o(i.pathname,s)!=null||o(i.pathname,a)!=null}var X=`/p`,Z=`/t`,Q=`/stats`,et={task:`${Z}/:taskId`,projectList:`${X}/:projectId`,projectTask:`${X}/:projectId${Z}/:taskId`,stats:Q,projectStats:`${X}/:projectId${Q}`};function tt(e){return e===void 0?`/`:$(e)}function nt(e,t){return`${$(e)}${Z}/${t}`}function rt(e){return $(e)+Q}function $(e){return e===void 0?``:`${X}/${e}`}function it(e){return e===`overview`?null:e}function at(e,t){let n=it(t);return n===null?e:`${e}/${n}`}function ot(e,t){return at(rt(t),e)}export{at as a,Y as c,Qe as d,qe as f,ce as h,ot as i,We as l,fe as m,tt as n,it as o,de as p,rt as r,nt as s,et as t,Ve as u};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{At as t,Bt as n,Ct as r,Dt as i,Et as a,Ft as o,Gt as s,Ht as c,Lt as l,Mt as u,Nt as d,Ot as f,Pt as p,Rt as m,St as h,Tt as g,Ut as _,Vt as v,Wt as y,_t as b,at as x,bt as S,ct as C,et as w,gt as T,it as E,jt as D,kt as O,mt as k,nt as A,ot as j,pt as M,rt as ee,tt as N,un as P,ut as F,vt as I,wt as te,xt as ne,yt as re,zt as L}from"./Page-U8D0vJva.js";import{t as ie}from"./index-wzgTQj7a.js";var ae={};function R(e,t){!e&&!ae[t]&&(ae[t]=!0,console.warn(t))}var z=e(P(),1),oe=[`HydrateFallback`,`hydrateFallbackElement`],se=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function ce({router:e,flushSync:t,onError:n,useTransitions:r}){r=g()||r;let[i,a]=z.useState(e.state),[o,s]=(0,z.useOptimistic)(i),[c,l]=z.useState(),[u,f]=z.useState({isTransitioning:!1}),[p,m]=z.useState(),[h,_]=z.useState(),[v,y]=z.useState(),x=z.useRef(new Map),C=z.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:d(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&x.current.set(t,e.data)}),o.forEach(e=>x.current.delete(e)),R(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(R(g==null||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!v){t&&u?t(()=>a(i)):r===!1?a(i):z.startTransition(()=>{r===!0&&s(e=>B(e,i)),a(i)});return}if(t&&u){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>_(n));return}h?(p?.resolve(),h.skipTransition(),y({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),f({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,h,p,r,s,n]);z.useLayoutEffect(()=>e.subscribe(C),[e,C]),z.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new se)},[u]),z.useEffect(()=>{if(p&&c&&e.window){let t=c,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):z.startTransition(()=>{r===!0&&s(e=>B(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),_(void 0),l(void 0),f({isTransitioning:!1})}),_(i)}},[c,p,e.window,r,s]),z.useEffect(()=>{p&&c&&o.location.key===c.location.key&&p.resolve()},[p,h,o.location,c]),z.useEffect(()=>{!u.isTransitioning&&v&&(l(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[u.isTransitioning,v]);let w=z.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),E=e.basename||`/`,D=z.useMemo(()=>({router:e,navigator:w,static:!1,basename:E,onError:n}),[e,w,E,n]),O=z.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),k=z.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),A=z.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),j=z.useMemo(()=>({fetchers:o.fetchers,fetcherData:x.current}),[o.fetchers]);return z.createElement(z.Fragment,null,z.createElement(T.Provider,{value:D},z.createElement(re.Provider,{value:O},z.createElement(I.Provider,{value:k},z.createElement(b.Provider,{value:A},z.createElement(S.Provider,{value:j},z.createElement(te.Provider,{value:u},z.createElement(pe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,useTransitions:r},z.createElement(le,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function B(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var le=z.memo(ue);function ue({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=z.useContext(T);return c(a,`You must render this element inside a <DataRouterContext.Provider> element`),k(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function de({to:e,replace:t,state:n,relative:a}){c(x(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:o,navigator:s}=z.useContext(h);y(!o,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:l}=z.useContext(r),{pathname:d}=j(),p=C(),g=m(e,u(l),d,a===`path`);f(typeof e==`string`?e:v(e),s.createHref(g),i(s),`reject`);let _=JSON.stringify(g);return z.useEffect(()=>{p(JSON.parse(_),{replace:t,state:n,relative:a})},[p,_,a,t,n]),null}function fe(e){return F(e.context)}function pe({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){c(!x(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),l=z.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=_(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:g}=n,v=z.useMemo(()=>{let e=L(u,s);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:g},navigationType:r}},[s,u,d,f,p,m,r,g]);return y(v!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:z.createElement(h.Provider,{value:l},z.createElement(ne.Provider,{children:t,value:v}))}z.Component;var V=`application/x-www-form-urlencoded`;function H(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function me(e){return H(e)&&e.tagName.toLowerCase()===`button`}function he(e){return H(e)&&e.tagName.toLowerCase()===`form`}function ge(e){return H(e)&&e.tagName.toLowerCase()===`input`}function _e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ve(e,t){return e.button===0&&(!t||t===`_self`)&&!_e(e)}function U(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ye(e,t){let n=U(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var W=null;function be(){if(W===null)try{new FormData(document.createElement(`form`),0),W=!1}catch{W=!0}return W}var xe=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function G(e){return e!=null&&!xe.has(e)?(y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`),null):e}function Se(e,t){let n,r,i,a,o;if(he(e)){let o=e.getAttribute(`action`);r=o?L(o,t):null,n=e.getAttribute(`method`)||`get`,i=G(e.getAttribute(`enctype`))||V,a=new FormData(e)}else if(me(e)||ge(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?L(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=G(e.getAttribute(`formenctype`))||G(o.getAttribute(`enctype`))||V,a=new FormData(o,e),!be()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(H(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=V,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Ce(e,t){if(e===!1||e==null)throw Error(t)}function we(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Te(e,t){if(e.id in t)return t[e.id];try{let n=await ie(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ee(e){return e!=null&&typeof e.page==`string`}function De(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Oe(e,t,n){return Ne((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Te(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(De).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function ke(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ae(e,t,{includeHydrateFallback:n}={}){return je(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function je(e){return[...new Set(e)]}function Me(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ne(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ee(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Me(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var K=z.createContext(void 0);K.displayName=`FrameworkContext`;function q(){let e=z.useContext(K);return Ce(e,`You must render this element inside a <HydratedRouter> element`),e}function Pe(e,t){let n=z.useContext(K),[r,i]=z.useState(!1),[a,o]=z.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=z.useRef(null);z.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),z.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:J(s,p),onBlur:J(c,m),onMouseEnter:J(l,p),onMouseLeave:J(u,m),onTouchStart:J(d,p)}]:[a,f,{}]:[!1,f,{}]}function J(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fe({page:e,...t}){let n=g(),{nonce:r}=q(),{router:i}=N(`PrefetchPageLinks`),a=z.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?z.createElement(Le,{page:e,matches:a,...t}):z.createElement(Re,{page:e,matches:a,...t})):null}function Ie(e){let{manifest:t,routeModules:n}=q(),[r,i]=z.useState([]);return z.useEffect(()=>{let r=!1;return Oe(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Le({page:e,matches:t,...n}){let r=j(),i=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=we(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return z.createElement(z.Fragment,null,i.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Re({page:e,matches:t,...n}){let r=j(),{manifest:i,routeModules:a}=q(),{matches:o}=ee(`PrefetchPageLinks`),{loaderData:s}=A(`PrefetchPageLinks`),c=z.useMemo(()=>ke(e,t,o,i,r,`data`),[e,t,o,i,r]),l=z.useMemo(()=>ke(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=z.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=we(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=z.useMemo(()=>Ae(l,i),[l,i]),f=Ie(l);return z.createElement(z.Fragment,null,u.map(e=>z.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>z.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>z.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ze(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Be=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Be&&(window.__reactRouterVersion=`8`)}catch{}function Ve(e,t){return a({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:n({window:t?.window}),hydrationData:t?.hydrationData||He(),routes:e,mapRouteProperties:D,hydrationRouteProperties:oe,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function He(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ue(e.errors)}),e}function Ue(e){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(i&&i.__type===`RouteErrorResponse`)r[e]=new O(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type===`Error`){if(typeof i.__subType==`string`&&t.includes(i.__subType)){let t=window[i.__subType];if(typeof t==`function`)try{let n=new t(i.message);n.stack=``,r[e]=n}catch{}}if(r[e]==null){let t=Error(i.message);t.stack=``,r[e]=t}}else r[e]=i;return r}var Y=z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:c,target:u,to:d,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:_,...v},y){let{basename:b,navigator:x,useTransitions:S}=z.useContext(h),C=typeof d==`string`&&s.test(d),w=l(d,b);d=w.to;let T=E(d,{relative:r}),D=j(),O=null;if(o){let e=m(o,[],D.mask?D.mask.pathname:`/`,!0);b!==`/`&&(e.pathname=e.pathname===`/`?b:p([b,e.pathname])),O=x.createHref(e)}let[k,A,M]=Pe(n,v),ee=Ke(d,{replace:a,mask:o,state:c,target:u,preventScrollReset:f,relative:r,viewTransition:g,defaultShouldRevalidate:_,useTransitions:S});function N(t){e&&e(t),t.defaultPrevented||ee(t)}let P=!(w.isExternal||i),F=z.createElement(`a`,{...v,...M,href:(P?O:void 0)||w.absoluteURL||T,onClick:P?N:e,ref:ze(y,A),target:u,"data-discover":!C&&t===`render`?`true`:void 0});return k&&!C?z.createElement(z.Fragment,null,F,z.createElement(Fe,{page:T})):F});Y.displayName=`Link`;var We=z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=M(a,{relative:c.relative}),d=j(),f=z.useContext(I),{navigator:p,basename:m}=z.useContext(h),g=f!=null&&$e(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f?.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=L(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(b)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return z.createElement(Y,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});We.displayName=`NavLink`;var Ge=z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},g)=>{let{useTransitions:_}=z.useContext(h),v=Xe(),y=Ze(c,{relative:u}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&s.test(c);return z.createElement(`form`,{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,c=()=>v(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});_&&n!==!1?z.startTransition(()=>c()):c()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Ge.displayName=`Form`;function Ke(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=C(),d=j(),f=M(e,{relative:o});return z.useCallback(p=>{if(ve(p,t)){p.preventDefault();let t=n===void 0?v(d)===v(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?z.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function qe(e){y(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=z.useRef(U(e)),n=z.useRef(!1),r=j(),i=z.useMemo(()=>ye(r.search,n.current?null:t.current),[r.search]),a=C();return[i,z.useCallback((e,t)=>{let r=U(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Je=0,Ye=()=>`__${String(++Je)}__`;function Xe(){let{router:e}=N(`useSubmit`),{basename:t}=z.useContext(h),n=w(`useSubmit`),r=e.fetch,i=e.navigate;return z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Se(e,t);a.navigate===!1?await r(a.fetcherKey||Ye(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ze(e,{relative:t}={}){let{basename:n}=z.useContext(h),i=z.useContext(r);c(i,`useFormAction must be used inside a RouteContext`);let[a]=i.matches.slice(-1),o={...M(e||`.`,{relative:t})},s=j();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:p([n,o.pathname])),v(o)}function Qe(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function $e(e,{relative:t}={}){let n=z.useContext(te);c(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N(`useViewTransitionState`),i=M(e,{relative:t});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return o(i.pathname,s)!=null||o(i.pathname,a)!=null}var X=`/p`,Z=`/t`,Q=`/stats`,et={task:`${Z}/:taskId`,projectList:`${X}/:projectId`,projectTask:`${X}/:projectId${Z}/:taskId`,stats:Q,projectStats:`${X}/:projectId${Q}`};function tt(e){return e===void 0?`/`:$(e)}function nt(e,t){return`${$(e)}${Z}/${t}`}function rt(e){return $(e)+Q}function $(e){return e===void 0?``:`${X}/${e}`}function it(e){return e===`overview`?null:e}function at(e,t){let n=it(t);return n===null?e:`${e}/${n}`}function ot(e,t){return at(rt(t),e)}export{at as a,Y as c,Qe as d,qe as f,ce as h,ot as i,We as l,fe as m,tt as n,it as o,de as p,rt as r,nt as s,et as t,Ve as u};
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Backlog</title>
7
- <script type="module" crossorigin src="/assets/index-DV2SbUU8.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-wzgTQj7a.js"></script>
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p-backlog",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "Keep pull requests clean and audit findings safe: a local, autonomous backlog for Claude Code. The agent files out-of-scope issues as Markdown tasks with context and re-checks them as code changes. Optional web UI with metrics.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -84,7 +84,8 @@ description: Use when, while working on code, you notice a problem outside the c
84
84
  ## Взять задачу в работу
85
85
 
86
86
  «Возьми SPA-12» → `backlog take SPA-12`. «Возьми следующую» → `backlog take --next` (проект — по текущему
87
- репозиторию; из другого каталога добавь `--project <id>`). «Возьми все задачи по src/web/stats» →
87
+ репозиторию; из другого каталога добавь `--project <id>`); задачу, которая уже в работе и не менялась больше
88
+ суток, он выдаёт раньше новых — доделай её по чеклисту и «Заметкам». «Возьми все задачи по src/web/stats» →
88
89
  `backlog take --path src/web/stats`: берёт все открытые задачи, чей `source` внутри пути (заблокированные
89
90
  пропускает), и печатает их подряд через `---` (с `--json` — одним JSON-массивом) — исправляй их вместе,
90
91
  закрывай каждую.
@@ -122,6 +123,12 @@ description: Use when, while working on code, you notice a problem outside the c
122
123
  Когда: сообщение хука «после последней проверки менялся код задач» (в Cursor оно приходит следующим
123
124
  сообщением), просьба «проверь беклог» или «почисти беклог».
124
125
 
126
+ Перепроверку запросил хук — разбирай только задачи, названные в его сообщении; остальные кандидаты из
127
+ `backlog check --json` дождутся «проверь беклог». В Claude Code отдай эту перепроверку сабагенту (инструмент
128
+ Agent, `model: "sonnet"`): передай ID задач из сообщения хука и каталог репозитория, попроси вызвать скилл
129
+ `backlog`, пройти этот раздел и вернуть, что закрыто и что подтверждено. Каждый запрос сабагента не перечитывает
130
+ длинный контекст твоей сессии — ход обходится в разы дешевле. Ты сам сабагент — перепроверяй сам.
131
+
125
132
  1. `backlog check --json` из репозитория проекта (из другого каталога — `--project <id>`). Висячие ссылки,
126
133
  завершённые эпики и сдвинутые `source` он уже исправил сам — это поле `fixed`, список `{ kind, taskId, … }`:
127
134
  `references-removed` — убраны ссылки на несуществующие задачи `ids`; `epic-closed` — эпик закрыт, все его
@@ -91,7 +91,8 @@ out of its epic. An epic closes on its own once all its tasks are closed, and re
91
91
  ## Take a task
92
92
 
93
93
  "Take SPA-12" → `backlog take SPA-12`. "Take the next one" → `backlog take --next` (the project is picked
94
- from the current repository; from another directory add `--project <id>`). "Take all tasks for
94
+ from the current repository; from another directory add `--project <id>`); a task already in progress that
95
+ hasn't changed for over a day comes before new ones — finish it from its checklist and "Notes". "Take all tasks for
95
96
  src/web/stats" → `backlog take --path src/web/stats`: takes every open task whose `source` is inside that
96
97
  path (skipping blocked ones), and prints them one after another separated by `---` (with `--json` — one JSON
97
98
  array) — fix them together, closing each one.
@@ -131,6 +132,13 @@ array) — fix them together, closing each one.
131
132
  When: the hook message "code changed for tasks since the last check" (in Cursor it arrives as a follow-up
132
133
  message), a request to "check the backlog", or "clean up the backlog".
133
134
 
135
+ If the hook asked for the re-check, work only through the tasks its message names; the other candidates from
136
+ `backlog check --json` wait for "check the backlog". In Claude Code hand this re-check to a subagent (the Agent
137
+ tool, `model: "sonnet"`): pass the task IDs from the hook message and the repository directory, ask it to invoke
138
+ the `backlog` skill, go through this section and report what it closed and what it confirmed. The subagent's
139
+ requests don't re-read your session's long context, so the turn costs several times less. If you are the
140
+ subagent, do the re-check yourself.
141
+
134
142
  1. `backlog check --json` from the project's repository (from another directory — `--project <id>`).
135
143
  Dangling references, completed epics, and shifted `source` — it already fixed those itself; that's the
136
144
  `fixed` field, a list of `{ kind, taskId, … }`: `references-removed` — references to missing tasks `ids`
@@ -1 +0,0 @@
1
- import{ln as e}from"./Page-DI7Zd0Be.js";import{a as t}from"./start-BOIixvFc.js";var n={share:`_share_cpxwy_1`},r=e();function i({share:e}){return(0,r.jsx)(t,{fraction:e,className:n.share,"aria-hidden":`true`})}export{i as t};
@@ -1 +0,0 @@
1
- import{i as e,j as t,ln as n}from"./Page-DI7Zd0Be.js";import{i as r}from"./StatsTabState-BSoHN7Xc.js";var i=n();function a({repos:n}){let{stats:a}=t();return n.map(t=>(0,i.jsx)(e,{className:r.warning,role:`status`,children:a.unavailableRepo(t)},t))}export{a as t};